@charset "utf-8";

/*
page-agent.css - サイト固有の差分（AIが触る領域）
プレフィックス：p-
編集者 人間：編集する（微調整程度）
	   AI ：編集する（cursorエージェントが自由に編集をがりがり進める）
役割：ページ固有スタイル。レスポンシブもこのファイル内で完結。
禁止：c- の上書き（原則禁止）
	 共通化すべきスタイル
	 layout構造の再定義
*/
/* =========================================================
ここまではテンプレート
内部ページ用CSSを以下に記述
========================================================= */

/* ------------------------------------------------------------
   内部ページ共通（main#page 配下）
   トップページ（page-main.css）と同じ設計：見出しは明朝、金の装飾ライン
------------------------------------------------------------ */
#page,
#view {/*#view＝お知らせ詳細。内部ページと同じ外側の余白にそろえる*/
    padding: 4.8rem 4.8rem 8.0rem;
}
#page > article > h1,
#view > article > h1 {
    font-family: var(--font-mincho);
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1.5;
    text-align: center;
    padding: 0 0 2.4rem;
    margin: 0 0 4.0rem;
    position: relative;
}
#page > article > h1::after,
#view > article > h1::after {
    position: absolute;
    content: "";
    display: block;
    width: 10.3rem;
    height: 0.7rem;
    left: 50%;
    bottom: 0.2rem;
    transform: translateX(-50%);
    background: url(../images/icon/heading_deco.svg) no-repeat center center;
    background-size: contain;
}

/* リード文（ページ中央の読みやすい幅に置く）
   1段落目は文字数に合わせた幅のブロックを中央に置く。
   1行に収まるキャッチはそのまま中央に見え、2行以上の説明文になると左揃えになる
   （中央揃えのままだと、行の途中で単語が切れて読みにくいため） */
.p-lead {
    max-width: 92rem;
    margin-left: auto;
    margin-right: auto;
}
.p-lead p {
    line-height: 2.0;
}
.p-lead p:first-child {
    font-family: var(--font-mincho);
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 1.6rem;
    text-align: left;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* セクション共通
   セクション間隔は layout.css のリズム（main article section の margin-top）に任せる。
   ここで margin を再定義しない */
.p-sec h2 {
    font-family: var(--font-mincho);
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1.5;
    text-align: center;
    padding: 0 0 2.0rem;
    margin: 0 0 3.2rem;
    position: relative;
}
.p-sec h2::after {
    position: absolute;
    content: "";
    display: block;
    width: 10.3rem;
    height: 0.7rem;
    left: 50%;
    bottom: 0.2rem;
    transform: translateX(-50%);
    background: url(../images/icon/heading_deco.svg) no-repeat center center;
    background-size: contain;
}
.p-sec h3 {
    font-family: var(--font-mincho);
    font-weight: 800;
    font-size: 2.0rem;
    line-height: 1.6;
    margin: 3.2rem 0 1.2rem;
}
.p-sec > p {
    line-height: 1.9;
    margin-bottom: 1.6rem;
}

/* 汎用リスト（金の角マーカー） */
.p-list {
    list-style: none;
    margin: 1.6rem 0 2.4rem;
}
.p-list li {
    position: relative;
    padding-left: 2.0rem;
    line-height: 1.9;
    margin-bottom: 0.8rem;
}
.p-list li::before {
    position: absolute;
    content: "";
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    left: 0.2rem;
    top: 1.0rem;
    background-color: var(--color-gold);
}

/* 注意書きボックス */
.p-note {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: var(--color-ivory);
    padding: 2.0rem 2.4rem;
    margin: 2.4rem 0;
}
.p-note p {
    line-height: 1.9;
}

/* カード型リンク（下層・関連ページへの誘導）
   gridで全カードを同幅に揃える（flexだと折り返した行だけ幅が変わり不揃いになる） */
.p-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 28.0rem), 1fr));
    gap: 2.4rem;
}
.p-cards > section {
    margin-top: 0;/*layout.cssの入れ子section 6remを打ち消し、gapで管理*/
}
.p-cards > section a {
    display: block;
    height: 100%;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.4rem;
    text-decoration: none;
    color: var(--color-txt);
    transition: box-shadow 0.2s;
}
.p-cards > section a:hover {
    box-shadow: var(--shadow-md);
}
.p-cards > section h3 {
    font-family: var(--font-mincho);
    font-weight: 800;
    font-size: 2.0rem;
    margin: 0 0 1.2rem;
    padding-right: 2.4rem;
    position: relative;
}
.p-cards > section h3::after {
    position: absolute;
    content: "\f138";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    right: 0;
    top: 0.2rem;
    color: var(--color-red);
}
.p-cards > section p {
    line-height: 1.8;
    font-size: 1.6rem;
    margin-bottom: 0;
}
/* 現在ページのカード（リンクにせず、現在地バッジで区別する） */
.p-cards > section.is-here > div {
    display: block;
    height: 100%;
    background-color: var(--color-ivory);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.4rem;
    color: var(--color-txt);
}
.p-cards > section.is-here > div::before {
    content: "現在のページ";
    display: inline-block;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--color-white);
    background-color: var(--color-gold);
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    margin-bottom: 1.2rem;
}
.p-cards > section.is-here h3 {
    padding-right: 0;
}
.p-cards > section.is-here h3::after {
    content: none;/*矢印はリンクの印のため現在ページには付けない*/
}

/* 番号付き特徴ブロック */
.p-num > section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 2.8rem;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 3.2rem;
    margin-top: 0;/*layout.cssの入れ子section 6remを打ち消す*/
    margin-bottom: 2.4rem;
}
.p-num__no {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 3.6rem;
    line-height: 1;
    color: var(--color-gold);
}
.p-num__body {
    flex: 1;
    min-width: 24.0rem;
}
.p-num__body h3 {
    margin-top: 0;
}
.p-num__body p {
    line-height: 1.9;
    margin-bottom: 1.2rem;
}
.p-num__img {
    width: 23.7rem;
    align-self: center;
}
.p-num__img img {
    max-width: 100%;
    height: auto;
}

/* 流れ（縦ステップ） */
.p-steps {
    counter-reset: steps;
}
.p-steps > section {
    position: relative;
    counter-increment: steps;
    background-color: var(--color-ivory);
    border-radius: var(--radius-md);
    padding: 2.4rem 2.8rem 2.4rem 8.4rem;
    margin-top: 0;/*layout.cssの入れ子section 6remを打ち消す*/
    margin-bottom: 2.0rem;
}
.p-steps > section::before {
    position: absolute;
    content: counter(steps, decimal-leading-zero);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1;
    left: 2.8rem;
    top: 2.6rem;
    color: var(--color-gold);
}
.p-steps > section:not(:last-child)::after {
    position: absolute;
    content: "";
    display: block;
    width: 0.2rem;
    height: 2.0rem;
    left: 4.6rem;
    bottom: -2.0rem;
    background-color: var(--color-gold);
}
.p-steps h3 {
    display: flex;
    align-items: center;
    gap: 1.0rem;
    font-family: var(--font-mincho);
    font-weight: 800;
    font-size: 2.0rem;
    margin: 0 0 1.0rem;
}
.p-steps p {
    line-height: 1.9;
}

/* 関連リンク（テキスト） */
.p-links {
    margin: 1.6rem 0;
}
.p-links a::after {
    content: "\f138";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;/*インライン化して親aの下線が矢印に引かれないようにする*/
    margin-left: 0.6rem;
    color: var(--color-red);
}

/* サイズ展開チップ（100〜5Lのラインナップを視覚的に見せる） */
.p-sizechips {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: 2.8rem 3.2rem;
    margin: 2.4rem 0;
}
.p-sizechips__label {
    font-weight: bold;
    margin: 2.0rem 0 1.2rem;
}
.p-sizechips__label:first-child {
    margin-top: 0;
}
.p-sizechips ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.0rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.p-sizechips ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 6.4rem;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background-color: var(--color-ivory);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1.7rem;
    color: var(--color-navy);
}
.p-sizechips__note {
    margin-top: 1.6rem;
    padding-left: 2.4rem;
    position: relative;
}
.p-sizechips__note::before {
    position: absolute;
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    left: 0;
    color: var(--color-gold);
}

/* ヒーロー的に大きく見せる写真（カラム幅いっぱい） */
.p-hero-figure {
    margin: 4.0rem 0 0;
}
.p-hero-figure img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
.p-hero-figure figcaption {
    font-size: 1.6rem;
    line-height: 1.7;
    margin-top: 0.8rem;
}

/* 写真＋キャプション（横並び。1枚のときは中央寄せ） */
.p-figures {
    display: flex;
    flex-wrap: wrap;
    gap: 2.4rem;
    justify-content: center;
    margin: 2.4rem 0;
}
.p-figures figure {
    flex: 1 1 26.0rem;
    max-width: 40.0rem;
    margin: 0;
}
.p-figures img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
.p-figures figcaption {
    font-size: 1.6rem;
    line-height: 1.7;
    margin-top: 0.8rem;
}
/* 写真4枚は2×2で並べる（3枚＋1枚と孤立するのを防ぐ） */
.p-figures--quad {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 82.0rem;
    margin-left: auto;
    margin-right: auto;
}
.p-figures--quad figure {
    max-width: none;
}
/* 縦横比の違う画像を並べるとき、高さをそろえる（幅は縦横比なり） */
.p-figures--fit {
    align-items: flex-start;
}
.p-figures--fit figure {
    flex: 0 1 auto;
    max-width: 100%;
}
.p-figures--fit img {
    width: auto;
    max-width: 100%;
    height: 30.0rem;
    object-fit: contain;
}

/* CTA */
.p-cta {
    margin: 8.0rem auto 0;
    background-color: var(--color-navy);
    border-radius: var(--radius-md);
    padding: 4.8rem 4.0rem;
    text-align: center;
    color: var(--color-cream);
}
.p-cta h2 {
    font-family: var(--font-mincho);
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1.6;
    color: var(--color-cream);
    margin-bottom: 1.6rem;
}
.p-cta p {
    line-height: 1.9;
    margin-bottom: 2.8rem;
    text-align: left;/*本文段落は中央寄せしない（スマホの改行が乱れるため）*/
}
.p-cta__btn a {
    display: inline-block;
    background-color: var(--color-red);
    color: var(--color-white);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 999px;
    padding: 1.6rem 4.8rem;
    transition: opacity 0.2s;
}
.p-cta__btn a:hover {
    opacity: 0.85;
}

/* FAQ（/faq）
   c-faq3は「1details=1段落」想定でp直下すべてにAが付くため、
   Aは最初の段落だけに表示し、2段落目以降と個別ページリンクでは消す */
details.c-faq3 > p + p::before {
    content: none;
}
details.c-faq3 > p.c-more {
    padding-bottom: 3.2rem;
}

/* 横スクロールする表（価格・仕様のサイズ表など）
   枠線と見出し固定は c-scroll に任せ、ここでは横スクロールだけを足す */
.p-sizetable {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2.4rem;
}
.p-sizetable table {
    width: 100%;
    min-width: 64rem;
    border-collapse: collapse;
    font-size: 1.6rem;
}
.p-sizetable--narrow table {
    min-width: 0;
}
.p-sizetable caption {
    text-align: left;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

/* 横スクロールの案内
   scroll-hint（手のアイコン）は表の中央に一瞬出るだけで気づかれにくいため、
   スクロールが必要な表には、右端のフェードと、表の上の常設ラベルも付ける。
   is-scrollable / is-right-scrollable は scroll-hint が付け外しするクラス
   （右端までスクロールするとフェードは消える） */
.p-sizetable.is-right-scrollable {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 3.2rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 3.2rem), transparent);
}
.p-sizetable .scroll-hint-icon-wrap {
    display: none;/*手のアイコン枠は使わない（ラベルとフェードで案内する）*/
}

@media screen and (max-width:1279px){
}/* max-width 1279px */

@media screen and (max-width: 1025px) {
    #page,
    #view {
        padding: 3.2rem 3.2rem 6.4rem;
    }
    .p-num > section {
        padding: 2.4rem;
    }
    .p-num__img {
        margin-top: 1.6rem;
    }
}/* max-width 1025px */

@media screen and (max-width: 600px) {
    #page,
    #view {
        padding: 2.4rem 1.6rem 4.8rem;
    }
    #page > article > h1,
    #view > article > h1 {
        font-size: 2.6rem;
    }
    .p-figures--quad {
        grid-template-columns: 1fr;
    }
    .p-figures--fit figure {
        flex: 1 1 100%;
    }
    .p-figures--fit img {
        width: 100%;
        height: auto;
    }
    .p-lead p:first-child {
        font-size: 2.0rem;
    }
    .p-sec h2 {
        font-size: 2.2rem;
    }
    .p-sec h3 {
        font-size: 1.9rem;
    }
    .p-num > section {
        display: block;
        padding: 2.0rem;
    }
    .p-num__no {
        font-size: 2.8rem;
        margin-bottom: 1.2rem;
    }
    .p-num__img {
        width: 100%;
        max-width: 23.7rem;
        margin: 1.6rem auto 0;
    }
    .p-steps > section {
        padding: 2.0rem 1.6rem 2.0rem 6.4rem;
    }
    .p-steps > section::before {
        left: 1.6rem;
        top: 2.2rem;
        font-size: 2.2rem;
    }
    .p-steps > section:not(:last-child)::after {
        left: 3.0rem;
    }
    .p-cta {
        padding: 3.2rem 2.0rem;
    }
    .p-cta h2 {
        font-size: 2.0rem;
    }
    /* 3列以下の表（有料オプション・料金の計算例）は、料金の列が画面の右外に出てしまわないよう、
       表の最小幅を小さくする */
    .p-sizetable table:not(:has(thead th:nth-child(4))) {
        min-width: 44.0rem;
    }
    /* 表の見出し（caption）は中央に置き、横にスクロールしても動かないよう左端に固定する。
       幅は表を包む枠（#page の左右の余白 1.6rem×2 を引いた画面幅）に合わせる */
    /* display:block にすると表の1列目に紛れ込んで列の幅を画面幅まで広げ、
       料金などの列が隠れて横スクロールできなくなる。table-caption のまま固定する */
    .p-sizetable caption {
        position: sticky;
        left: 0;
        width: calc(100vw - 3.2rem);
        text-align: center;
    }
    .p-sizetable.is-scrollable::before {
        content: "← 横にスクロールできます →";
        display: block;
        position: sticky;
        left: 0;
        font-size: 1.6rem;
        font-weight: 700;
        line-height: 1.5;
        text-align: center;
        color: var(--color-red);
        padding: 0 0 0.8rem;
    }
}/* max-width 600px */
