/*
 * product.css
 * 製品案内ページ専用スタイル
 */

.product-page {
    padding-bottom: 0;
}

/* ---------- Intro ---------- */
.product-intro {
    background: var(--color-gray);
    padding: 120px 0;
}

.product-intro__inner {
    max-width: calc(var(--container-width-lg) + var(--container-padding) * 2);
    margin-inline: auto;
    padding-inline: var(--container-padding);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.product-intro__text {
    flex: 1 1 400px;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    padding: 80px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-xl);
}

.product-intro__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    text-align: center;
}

.product-intro__catch {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.05em;
    line-height: 1.65;
}

.product-intro__kana {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.25em;
    margin-bottom: -8px;
}

.product-intro__name {
    font-family: var(--font-number);
    font-weight: 600;
    font-size: clamp(2.25rem, 1.6rem + 2vw, 3.625rem);
    line-height: 1;
    color: var(--color-blue);
    letter-spacing: 0.05em;
    margin-top: -0.25em;
}

.product-intro__divider {
    width: 100%;
    border: none;
    border-top: 1px solid var(--color-gray);
    margin: 0;
}

.product-intro__lead {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.05em;
}

.product-intro__photo {
    flex: 1 1 400px;
    max-width: 600px;
    aspect-ratio: 600 / 571;
    overflow: hidden;
}

.product-intro__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

/* ---------- Feature (4つの特徴 - トップページと同一内容) ---------- */
.product-feature-area {
    padding: 0 0 180px;
    background: linear-gradient(to bottom, var(--color-gray), var(--color-white));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.product-feature-area__header {
    text-align: center;
}

.product-feature-area__label {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.1em;
    color: var(--color-lightblue);
    margin-bottom: 4px;
}

.product-feature-area__title {
    font-weight: 700;
    font-size: var(--font-size-heading);
    color: var(--color-blue);
}

.product-feature-area__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 44px 56px;
    max-width: 900px;
    width: 100%;
}

@media (min-width: 700px) {
    .feature-card:nth-child(2n) {
        transform: translateY(60px);
    }

    .product-feature-area__grid.reveal-group .feature-card.reveal-item:nth-child(2n) {
        transform: translateY(calc(60px + 28px));
    }

    .product-feature-area__grid.reveal-group.is-in-view .feature-card.reveal-item:nth-child(2n) {
        transform: translateY(60px);
    }
}

.feature-card {
    position: relative;
    background: var(--color-white);
    min-height: 360px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 12px 28px rgba(8, 48, 140, 0.15);
}

.feature-card__icon {
    position: absolute;
    right: 24px;
    bottom: 32px;
    height: 120px;
    aspect-ratio: 200 / 140;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
}

.feature-card__icon--economy {
    background-image: url("../images/icon-feature-economy.svg");
}

.feature-card__icon--insulation {
    background-image: url("../images/icon-feature-insulation.svg");
}

.feature-card__icon--soundproof {
    background-image: url("../images/icon-feature-soundproof.svg");
}

.feature-card__icon--condensation {
    background-image: url("../images/icon-feature-condensation.svg");
}

.feature-card__body {
    position: relative;
    z-index: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-card__head {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.feature-card__title {
    font-weight: 700;
    font-size: 24px;
    white-space: nowrap;
}

.feature-card__line {
    flex: 1 0 0;
    height: 1px;
    background: var(--color-lightblue);
}

.feature-card__num {
    font-family: var(--font-number);
    font-size: 52px;
    font-weight: 500;
    line-height: 1;
    color: rgba(90, 201, 254, 0.5);
    letter-spacing: 0.05em;
}

.feature-card__desc {
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

/* ---------- Lineup (サイズ一覧・接続部品) ---------- */
.product-lineup-area {
    padding: 120px var(--container-padding);
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.product-lineup {
    display: flex;
    flex-direction: column;
}

.product-lineup__heading {
    position: relative;
}

.product-lineup__heading-bg {
    height: 200px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.product-lineup__heading-card {
    position: relative;
    margin: -80px 40px 0;
    background: var(--color-white);
    box-shadow: 0 2px 5px rgba(26, 26, 26, 0.1);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.product-lineup__heading-label {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.product-lineup__heading-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-lightblue));
}

.product-lineup__heading-label p {
    color: var(--color-blue);
    font-weight: 700;
    line-height: 1.25;
}

.product-lineup__heading-label p span:first-child {
    font-size: 18px;
    letter-spacing: 0.05em;
}

.product-lineup__heading-label p span+span {
    font-size: 28px;
    letter-spacing: 0.05em;
    margin-left: 8px;
}

.product-lineup__heading-desc {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.05em;
}

.product-lineup__row {
    margin-top: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    padding: 0 40px;
}

.product-lineup__table {
    width: 100%;
    overflow-x: auto;

    &::after {
        content: "単位：mm（E列は曲げ半径）";
        display: block;
        font-size: 14px;
        margin-top: 8px;
        padding-left: 8px;
    }
}

.product-lineup__images {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: var(--spacing-md);
}

.product-lineup__images img {
    width: 100%;
    flex: 1 1 0;
    display: block;
    object-fit: cover;
}

.product-lineup__images img:first-child {
    aspect-ratio: 426 / 402;
}

.product-lineup__images img:last-child {
    aspect-ratio: 426 / 310;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);

}

.size-table th,
.size-table td {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 20px;
    font-family: 'Inter', 'Zen Kaku Gothic New', sans-serif;
    text-align: center;
    border-bottom: 1px solid var(--color-gray);
    white-space: nowrap;
}

.size-table td:first-child {
    text-align: left;
}

.size-table thead th {
    background: var(--color-gray);
    font-weight: 600;
    border-top: 1px solid var(--color-gray);
}

.size-table tbody tr:nth-child(even) {
    background: var(--color-row-stripe);
}

/* 接続部品(コネクター/コーナーキー) */
.product-lineup__parts-row {
    margin-top: var(--spacing-xl);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.product-lineup__part {
    flex: 1 1 300px;
    margin: 0;
    text-align: center;
    position: relative;
}

.product-lineup__part img {
    width: 100%;
    aspect-ratio: 388 / 200;
    object-fit: cover;
    display: block;
}

.product-lineup__part figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 14px;
    padding: 1em;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.product-dl-banner__area {
    margin-bottom: 120px;
}

.product-dl-banner {
    display: block;
    max-width: 1200px;
    margin-inline: auto;
    transform: scale(1);
    transition: transform 0.3s ease;

    &:hover {
        transform: scale(1.02);
    }

}

.product-dl-banner img {
    width: 100%;
    aspect-ratio: 1200 / 300;
    object-fit: cover;
    display: block;
}

/* ---------- Our Challenge ---------- */
.product-challenge {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: var(--color-white);
    overflow: hidden;
}

.product-challenge__body {
    flex: 2 1 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-xl);
    padding: 80px var(--container-padding);
}

.product-challenge__watermark {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: clamp(48px, 6vw, 88px);
    line-height: 1;
    color: var(--color-lightblue);
    opacity: 0.5;
    letter-spacing: 0.1em;
    margin: 0;
}

.product-challenge__card {
    max-width: 800px;
    background: linear-gradient(to right, var(--color-blue), #8ab3d4);
    color: var(--color-white);
    padding: var(--container-padding);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.product-challenge__heading {
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.product-challenge__line {
    width: 160px;
    height: 4px;
    background: var(--color-lightblue);
}

.product-challenge__text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.product-challenge__text p {
    font-weight: 700;
    font-size: var(--font-size-body);
    line-height: 1.75;
    letter-spacing: 0.05em;
}

.product-challenge__images {
    flex: 1 1 400px;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.product-challenge__photo--1 {
    width: 100%;
    aspect-ratio: 640 / 427;
    object-fit: cover;
}

.product-challenge__photo--2 {
    width: 75%;
    margin-left: 17.5%;
    aspect-ratio: 480 / 320;
    object-fit: cover;
}

@media (max-width: 1096px) {
    .product-lineup__heading-card {
        margin-inline: var(--spacing-lg);
    }

    .product-challenge__images {
        padding-inline: var(--container-padding);
    }

    .product-lineup__images {
        flex-direction: column;
    }
}

/* ---------- SP (デザイン指定なし。既存パターン踏襲でよしなに調整) ---------- */
@media (max-width: 600px) {

    .product-intro {
        padding: 80px 0;
    }

    .product-intro__inner {
        padding-inline: 16px;
    }

    .product-intro__text {
        padding: 32px 20px;
    }

    .product-intro__catch {
        font-size: 18px;
    }

    .product-intro__lead {
        font-size: 14px;
    }

    .product-feature-area {
        padding: 0 16px 80px;
    }

    .feature-card__title {
        font-size: 20px;
    }

    .feature-card__icon {
        width: 160px;
        height: 112px;
    }

    .product-lineup-area {
        padding: 80px 16px;
        gap: 48px;
    }

    .product-lineup__heading-card {
        margin: -64px 16px 0;
        padding: var(--spacing-lg) 20px;
        gap: 16px;
    }

    .product-lineup__heading-label {
        align-items: center;
    }

    .product-lineup__heading-label p span:first-child {
        font-size: 15px;
    }

    .product-lineup__heading-label p span+span {
        font-size: 22px;
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .product-lineup__row {
        padding: 0 16px;
    }

    .product-lineup__heading-desc {
        font-size: 14px;
    }

    .product-challenge__card {
        padding: 24px;
    }

    .product-challenge__heading {
        font-size: 16px;
    }

    .product-challenge__text p {
        font-size: 13px;
    }

    .product-challenge__body {
        padding: 48px 16px;
        gap: 24px;
    }


    .product-challenge__images {
        padding: 0;
    }

    .product-challenge__photo--1 {
        padding-left: 10%;
    }

    .product-challenge__photo--2 {
        padding-right: 10%;
        margin-left: 0;
        margin-bottom: 80px;
        width: 100%;
    }

    .size-table thead th,
    .size-table th {
        width: 160px;
    }

    .size-table th,
    .size-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .product-dl-banner__area {
        margin-bottom: 0;
        padding: 0 16px;
    }

    .product-dl-banner img {
        aspect-ratio: 800 / 400;
    }

}