/*
 * 商品詳細（新デザイン）で、新項目が未入力の旧商品が既存WYSIWYG（見出し文・特徴）を表示するときの最低限の体裁。
 * 受領CSS renewal.css は Tailwind の preflight で ul/ol/h*/table の装飾を全部消しているため、.rnw-legacy の中だけ戻す。
 * 受領CSSは無改変（このファイルを商品ページでだけ後読みする）。新項目を入力した商品では .rnw-legacy は出ない。
 */
.rnw-legacy p { margin: 0 0 1em; }
.rnw-legacy p:last-child { margin-bottom: 0; }
.rnw-legacy ul { list-style: disc; padding-left: 1.5em; margin: 0 0 1em; }
.rnw-legacy ol { list-style: decimal; padding-left: 1.5em; margin: 0 0 1em; }
.rnw-legacy h2, .rnw-legacy h3, .rnw-legacy h4, .rnw-legacy h5 { font-weight: 700; margin: 1.2em 0 .5em; line-height: 1.5; }
.rnw-legacy h2 { font-size: 1.3em; }
.rnw-legacy h3 { font-size: 1.15em; max-width: none; }
.rnw-legacy h4, .rnw-legacy h5 { font-size: 1em; }
.rnw-legacy strong, .rnw-legacy b { font-weight: 700; }
.rnw-legacy img { max-width: 100%; height: auto; }
.rnw-legacy table { border-collapse: collapse; margin: 0 0 1em; }
.rnw-legacy th, .rnw-legacy td { border: 1px solid #d9d7d1; padding: .4em .8em; vertical-align: top; }
.rnw-legacy a { color: #d7222b; text-decoration: underline; }
.product-detail-page .product-lead.rnw-legacy { color: #4f5558; font-size: 16px; line-height: 2; }
.product-feature-grid section.rnw-legacy p { color: #575c5f; font-size: 14px; line-height: 2; }

/* 2026-09-09 「特徴」を表示時に分けた残り（使用手順・商品ラインナップ等）＝カードの下の「詳しい情報」枠 */
.product-feature-grid section.rnw-more { color: #575c5f; font-size: 14px; line-height: 2; }
.rnw-legacy .wp-caption { display: inline-block; max-width: 100%; margin: 0 12px 12px 0; vertical-align: top; }
.rnw-legacy .wp-caption img { display: block; height: auto; }
.rnw-legacy .wp-caption-text { font-size: 12px; margin: .3em 0 0; text-align: center; }
.rnw-legacy figure { display: inline-block; max-width: 100%; margin: 0 12px 12px 0; vertical-align: top; }
.rnw-legacy figcaption { font-size: 12px; margin: .3em 0 0; text-align: center; }
/* 「詳しい情報」枠と旧「特徴」1枠は、カード用の列グリッド（番号｜見出し｜本文）に巻き込まない＝普通の1段組み・横幅いっぱい */
.product-feature-grid > section.rnw-legacy { display: block; grid-column: 1 / -1; }
.product-feature-grid > section.rnw-legacy > * { grid-column: auto; max-width: none; }
.product-feature-grid > section.rnw-legacy h3 { font-size: 1.15em; margin: 1.2em 0 .5em; }
.product-feature-grid > section.rnw-legacy p { margin: 0 0 1em; }
/* fixes 側がカードを「番号｜見出し｜本文」の列グリッドにしているので、詳しい情報枠はそれより強く1段組みに固定 */
.product-detail-page .product-feature-grid > section.rnw-legacy,
.product-detail-page .product-feature-grid > section.rnw-legacy.wide { display: block !important; grid-template-columns: none !important; }
.product-detail-page .product-feature-grid > section.rnw-legacy > * { grid-column: auto !important; grid-row: auto !important; }

/* 2026-09-09 「詳しい情報」は井上さんデザインの「動画と関連情報」の枠の最後に置く（カードの下ではない） */
.product-related-section > section.product-more { background: #fff; border: 1px solid #d9d7d1; padding: 42px; margin-top: 24px; color: #575c5f; font-size: 14px; line-height: 2; }
.product-related-section > section.product-more > header { margin: 0 0 24px; }
.product-related-section > section.product-more > header small { display: block; color: #d7222b; font-size: 12px; letter-spacing: .12em; margin: 0 0 6px; }
.product-related-section > section.product-more > header h3 { font-size: 23px; line-height: 1.45; margin: 0; }
.product-related-section > section.product-more .product-more-body > * { max-width: none; }

/* 2026-09-10 「特徴」に貼った画像を井上さんの枠に着せる（BAN-ZI側は今まで通り貼るだけ・single-product_register.php）
   ・LINE UP: 写真の前の文（前書）と後の文（注記）。>div は受領CSSでグリッドなので aside を使う
   ・資料カード: 説明文（p）はラベルと「資料を見る」の間。全部が「特徴」から来る
   ・SPRAY APPLICATION: BAN-ZI側のWAGNER画像＝バナー(受領の .product-wagner-banner)＋見出し画像(全幅)＋推奨機器の画像(2列) */
.product-detail-page .product-lineup-section > aside { max-width: none; margin: 0 0 28px; color: #575c5f; font-size: 14px; line-height: 2; }
.product-detail-page .product-lineup-section > aside.product-lineup-notes { margin: 28px 0 0; }
.product-detail-page .product-lineup-section > aside p { margin: 0 0 .6em; }
.product-detail-page .product-lineup-section > aside p:last-child { margin-bottom: 0; }
.product-detail-page .product-lineup-section > aside h4 { font-size: 16px; font-weight: 800; margin: 0 0 .4em; line-height: 1.6; }
.product-detail-page .product-guides > aside.product-guides-intro { margin: -8px 0 24px; color: #575c5f; font-size: 14px; line-height: 2; max-width: none; }
.product-detail-page .product-guides > aside.product-guides-intro p { margin: 0 0 .6em; }
.product-detail-page .product-guides > div > a p { flex: 1 1 auto; margin: 8px 0 0; color: #62676a; font-size: 12px; line-height: 1.8; max-width: none; }
.product-detail-page .product-spray span.product-wagner-banner { display: block; margin-bottom: 22px; }
.product-detail-page .product-spray .product-spray-full { display: block; margin: 0 0 22px; }
.product-detail-page .product-spray .product-spray-full img,
.product-detail-page .product-spray span.product-wagner-banner img { width: 100%; height: auto; display: block; }
.product-detail-page .product-spray .product-spray-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product-detail-page .product-spray .product-spray-images a { display: block; }
.product-detail-page .product-spray .product-spray-images img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .product-detail-page .product-spray .product-spray-images { grid-template-columns: 1fr; } }

/* 移行済みの特長：本文→画像と説明→注記の順を保つ。商品詳細だけに適用。 */
.product-detail-page .product-feature-grid .product-feature-content { grid-column: 3; color: #575c5f; font-size: 14px; line-height: 1.9; min-width: 0; }
.product-detail-page .product-feature-content p { margin: 0 0 .8em; }
.product-detail-page .product-feature-content ul { list-style: disc; padding-left: 1.5em; }
.product-detail-page .product-feature-content ol { list-style: decimal; padding-left: 1.5em; }
.product-detail-page .product-feature-content a { text-decoration: underline; }
.product-detail-page .product-feature-media { margin-top: 16px; }
.product-detail-page .product-feature-media img { max-width: 100%; width: auto; height: auto; display: block; margin-bottom: 8px; }
@media (max-width: 800px) { .product-detail-page .product-feature-grid .product-feature-content { grid-column: 2; margin-top: 12px; } }

/* 2026-09-14: 動画・関連情報も特長／主な仕様と同じ横幅・左右余白に揃える。 */
.product-detail-page .product-related-section {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(5vw, 38px);
    padding-right: max(5vw, 38px);
}
.product-detail-page .product-related-section > header {
    max-width: 1120px;
}
@media (max-width: 620px) {
    .product-detail-page .product-related-section {
        padding-left: 6vw;
        padding-right: 6vw;
    }
}

/* 2026-09-14: 商品ラインナップの見出し・写真・説明を特長／主な仕様のインナーに揃える。 */
.product-detail-page .product-lineup-section {
    /* 上のセクションとの境界に余白を設ける。 */
    margin-top: 40px;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(5vw, 38px);
    padding-right: max(5vw, 38px);
}
.product-detail-page .product-lineup-section > header,
.product-detail-page .product-lineup-section > aside {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}
/* 右側に説明欄のない見出しは、空の2列目まで使う。 */
.product-detail-page .product-lineup-section > header > h2 {
    grid-column: 1 / -1;
}
@media (min-width: 621px) {
    .product-detail-page .product-lineup-section > div {
        max-width: 1120px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 620px) {
    .product-detail-page .product-lineup-section {
        margin-top: 24px;
        padding-left: 6vw;
        padding-right: 6vw;
    }
}

/* 2026-09-14: 商品名をPCで約60〜64pxに抑える。620px以下の既存38px指定は維持。 */
@media (min-width: 621px) {
    .product-detail-page .product-hero h1 {
        font-size: clamp(42px, 4.2vw, 64px);
    }
}
