@charset "UTF-8";
/* /service_adaf/（ADアフィリエイトLP）専用。
   page-service_adaf.php だけが filemtime 付きで読み込む。
   ifaf・mailaf には読み込まれないので、#problems / #pricing / #reason /
   #operation / #cases のように3LPで同じIDを使っている指定を書いても
   ほかのLPには当たらない（2026-10-29 ADAF_DESIGN_PROD_BRIEF §1-3）。
   中身は /test/adaf/ の test-adaf.css と同じ。lp-additions.css（3LP共通）と
   重なるセレクタは0件であることを確認済み。
   TEST_DESIGN_BRIEF §0 のルール：
   - セレクタは必ず対象セクション（.section-about-ad など）から始める。
     p{} h2{} .lp p{} のような広いセレクタは書かない
   - word-break: auto-phrase / text-wrap: balance は使わない。
     readability.css:26 が main h1,h2,h3 に当てているので、新しい見出しでは打ち消す
   - 改行は <br class="u_sp"> / <br class="u_pc">（design.css:4538 の既存ヘルパー。
     767px を境に出し分け）と white-space: nowrap で明示する
*/

/* 新規ユーティリティ。テーマ全体で .nowrap の使用箇所は0件だったので、
   付けた要素以外には影響しない */
.nowrap {
    white-space: nowrap;
}

/* ============================================================
   §2 「ADアフィリエイト（アドアフィリエイト）とは？」
   ============================================================ */

/* 見出し。既存は 48px + white-space:nowrap で実測 1094px あり、
   コンテナ内寸（1280pxで960px）を超えていた。1025〜1199px では
   画面幅も超えて左右が切れていたので、1行のまま幅に追従させる */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .section-about-ad .about-ad-title {
        font-size: clamp(24px, 3.8vw, 38px);
    }
}

@media screen and (min-width: 1025px) {
    .section-about-ad .about-ad-title {
        /* 上限42pxだとWebKitで実寸965px＞内寸960pxになるため41pxに下げる */
        font-size: clamp(28px, 3.25vw, 41px);
    }
}

/* ブロックが2つから6つに増えたので、既存の 60px は空きすぎる */
.section-about-ad .about-ad-container {
    gap: 40px;
}

.section-about-ad .about-ad-def,
.section-about-ad .about-ad-points,
.section-about-ad .about-ad-map,
.section-about-ad .about-ad-cta,
.section-about-ad .about-ad-fold {
    width: 100%;
}

/* --- 定義1文 --- */
.section-about-ad .about-ad-def {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;
    color: #222;
}

/* 320px で横スクロールが8〜9px出ていた（2026-11-04）。
   原因はこの文の <span class="nowrap">アフィリエイトを組み合わせた、</span> で、
   20px だと実測 307.8px（WebKit 309px）あり、左の余白20pxと合わせて
   画面幅320pxを超えていた。359px以下だけ文字を画面幅に追従させる。
   1行のままなので語の途中で折れない（TEST_DESIGN_BRIEF §0）。
   360px以上（360・375・390・412px など）は 20px のままで見た目は変わらない */
@media screen and (max-width: 359px) {
    .section-about-ad .about-ad-def {
        font-size: clamp(16px, 5.6vw, 20px);
    }
}

/* --- 要点カード3枚 --- */
.section-about-ad .about-ad-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.section-about-ad .about-ad-point {
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.section-about-ad .about-ad-point-no {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    /* #00a7bf は白背景で 2.88:1 しかなくWCAG AAに届かない。
       関係図のラベルと同じ #00707f（5.53:1）に揃える */
    color: #00707f;
}

.section-about-ad .about-ad-point-title {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    color: #222;
    /* readability.css:26 の main h3 への指定を打ち消す（§0-2） */
    text-wrap: initial;
    word-break: normal;
    overflow-wrap: normal;
}

.section-about-ad .about-ad-point-text {
    margin: 0;
    width: 100%;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    text-align: left;
    color: #222;
}

/* --- 4者の関係図 --- */
.section-about-ad .about-ad-map {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 既定は縦積み。横4列は、4つのノード＋3つの矢印（実測で約775px必要）が
   セクション内寸に収まる1100px以上でだけ使う。768pxから4列にすると
   内寸688pxに775pxを詰め込むことになり、ページに横スクロールが出る */
.section-about-ad .about-ad-map-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
}

@media screen and (min-width: 1100px) {
    .section-about-ad .about-ad-map-list {
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    }
}

.section-about-ad .about-ad-map-node {
    background: #fff;
    border: 2px solid #00c2de;
    border-radius: 14px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
}

.section-about-ad .about-ad-map-role {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #222;
}

.section-about-ad .about-ad-map-desc {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #555;
    white-space: nowrap;
}

.section-about-ad .about-ad-map-link {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 0;
}

.section-about-ad .about-ad-map-link::after {
    content: '↓';
    font-size: 18px;
    line-height: 1;
    color: #00a7bf;
}

@media screen and (min-width: 1100px) {
    .section-about-ad .about-ad-map-link {
        flex-direction: column;
        gap: 2px;
        padding: 0 8px;
    }

    .section-about-ad .about-ad-map-link::after {
        content: '→';
        font-size: 20px;
    }
}

.section-about-ad .about-ad-map-link-text {
    font-size: 12px;
    line-height: 1.4;
    color: #00707f;
    white-space: nowrap;
}

.section-about-ad .about-ad-map-note {
    margin: 0;
    border: 1px dashed #00a7bf;
    border-radius: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.6);
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    text-align: center;
    color: #222;
}

/* --- 詳しく見るボタン --- */
.section-about-ad .about-ad-cta {
    margin: 0;
    text-align: center;
}

.section-about-ad .about-ad-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 360px;
    padding: 14px 32px;
    background: #fff;
    border: 1px solid #222;
    border-radius: 28px;
    color: #222;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.section-about-ad .about-ad-cta-link:hover {
    background: #222;
    color: #fff;
}

/* --- 既存の2段落を畳む --- */
/* FAQの .faq-item / .faq-answer を使い回すと index.css:2954 の
   max-height:0; overflow:hidden を一緒に拾って中身が出なくなるため、
   クラスを分けて見た目だけ写す */
.section-about-ad .about-ad-fold {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
}

.section-about-ad .about-ad-fold-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 28px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    color: #222;
}

.section-about-ad .about-ad-fold-summary::-webkit-details-marker {
    display: none;
}

.section-about-ad .about-ad-fold-summary::after {
    content: '+';
    margin-left: auto;
    font-size: 28px;
    line-height: 1;
    color: #999;
    flex: 0 0 auto;
}

.section-about-ad .about-ad-fold[open] .about-ad-fold-summary::after {
    content: '\2212';
}

.section-about-ad .about-ad-fold-body {
    padding: 0 28px 24px;
}

/* 畳んだ中の本文。design.css:1718 が .about-ad-text p に 20px/36px を
   直接当てていて、同1746/1771 の縮小指定（18px/32px・16px/26px）は
   div 側に書かれていたため p に届いていなかった。既存の意図どおりの値を
   p に当て直す */
.section-about-ad .about-ad-fold .about-ad-text,
.section-about-ad .about-ad-fold .about-ad-text p {
    max-width: none;
}

.section-about-ad .about-ad-fold .about-ad-text p + p {
    margin-top: 1.2em;
}

@media screen and (max-width: 1024px) {
    .section-about-ad .about-ad-fold .about-ad-text p {
        font-size: 18px;
        line-height: 32px;
    }
}

/* --- SP（≤767px） --- */
@media screen and (max-width: 767px) {
    .section-about-ad .about-ad-container {
        gap: 24px;
    }

    .section-about-ad .about-ad-points {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-about-ad .about-ad-point {
        border-radius: 20px;
        padding: 22px 20px 24px;
    }

    .section-about-ad .about-ad-point-text {
        font-size: 15px;
    }

    .section-about-ad .about-ad-map-note {
        font-size: 14px;
        text-align: left;
    }

    .section-about-ad .about-ad-cta-link {
        display: flex;
        width: 100%;
        min-width: 0;
        padding: 14px 16px;
        /* 320pxだと nowrap のラベルが枠線に接触するので幅に追従させる */
        font-size: clamp(13px, 4vw, 15px);
    }

    .section-about-ad .about-ad-fold-summary {
        font-size: 16px;
        padding: 16px 20px;
        gap: 12px;
    }

    .section-about-ad .about-ad-fold-body {
        padding: 0 20px 18px;
    }

    .section-about-ad .about-ad-fold .about-ad-text p {
        font-size: 16px;
        line-height: 26px;
    }
}

/* ============================================================
   §3 ファーストビュー（SPのみ変更。PCは2カラム＋フォームのまま）
   ============================================================ */

/* 導入ブロックはSP専用 */
.main-visual .fv-sp-lead {
    display: none;
}

@media screen and (max-width: 767px) {
    .main-visual .fv-sp-lead {
        display: block;
        margin: 18px 0 22px;
    }

    /* h1の直後に9項目のフォームが出ていた。SPはボタンを押したときだけ開く。
       .contact-new-right は背景も余白も持たないので、消しても白い箱が残らない
       （背景と padding は子の #ad .contact-form-box 側）。
       同じクラス名が下部の #contact にもあるため .main-visual で必ず絞る */
    .main-visual .contact-new-right {
        display: none;
    }

    .main-visual .contact-new-right.is-open {
        display: block;
    }

    /* 帯（数字3つ＋注記）はFVのチップと注記に統合したので、SPでは重複を消す。
       裸の .lp-stats だと本番CSSに移したとき3LP全部の帯が消えるので、
       ファーストビューの直後にある帯だけに限定する */
    .main-visual + .lp-stats {
        display: none;
    }

    .main-visual .fv-sp-sub {
        margin: 0 0 14px;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.7;
        text-align: center;
        color: #222;
    }

    .main-visual .fv-sp-chips {
        list-style: none;
        margin: 0 0 18px;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    /* 見た目は既存の帯（readability.css の .lp-stats-item）から */
    .main-visual .fv-sp-chip {
        margin: 0;
        padding: 7px 12px;
        background: #e2fffb;
        border-radius: 16px;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.4;
        color: #222;
        white-space: nowrap;
    }

    /* 2026-10-28：下にあった「サービス資料を見る →」を外したので、
       ボタンと注記のあいだを取り直す（以前はリンクを挟んで約70px空いていた） */
    .main-visual .fv-sp-cta {
        margin: 0 0 20px;
    }

    /* 既存の送信ボタンは #33c8b2 だが、白文字とのコントラストが 2.09:1 しかなく
       WCAG AA（18pxは4.5:1必要）に届かない。同系統で濃い #0f8073（4.82:1）にする */
    .main-visual .fv-sp-cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 56px;
        padding: 12px 16px;
        background: #0f8073;
        border-radius: 28px;
        color: #fff;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.4;
        white-space: nowrap;
    }

    .main-visual .fv-sp-note {
        margin: 0;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 13px;
        line-height: 1.7;
        text-align: left;
        color: #666;
    }
}

/* ============================================================
   §4 改行の崩れ（該当箇所だけ・375pxで実測して直したもの）
   ============================================================ */

/* 理由のh2は .section-title が display:flex。そのままでは中のテキストと
   <span>・<br> が別々のフレックスアイテムになって横に並んでしまう
   （768〜806pxで「手数料／が 10〜15% で成立する／理由」と分解されていた）。
   斜線装飾（::before/::after）は lp-additions.css:152 で全幅 content:none 済みで
   flex にしておく理由がもう無いので、全幅で block に戻す */
#reason .lpadd-title {
    display: block;
    text-align: center;
    line-height: 1.4;
}

@media screen and (max-width: 767px) {
    /* お悩みカード2行目「なかなか見つけられなくて」が実測240px、
       カード内寸が227pxで「て」が1文字落ちていた。文字サイズ（20px）は
       そのままに、カードの左右paddingを24px→12pxにして内寸251pxを確保する */
    #problems .problem-card {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* 375pxは20pxのまま（内寸251px・文字240px）。
       374px以下は内寸が足りず「て」が落ちるので幅に追従させる */
    @media screen and (max-width: 374px) {
        #problems .problem-text p {
            font-size: min(18px, 5vw);
        }
    }

    /* 料金の例示ボックス：（税抜）が position:absolute の上付きだった。
       金額と同じ行にそのまま並べる */
    #pricing .pricing-tax-note {
        position: static;
        display: inline;
        /* 360px以下で「（税／抜）」と括弧の中で折れるのを防ぐ */
        white-space: nowrap;
        margin-left: 4px;
        font-size: 14px;
        line-height: inherit;
        vertical-align: baseline;
    }

    /* 数字が途中で折り返して矢印だけ行末に残っていた。
       nowrapで1行に固定し、幅に収まるサイズにする */
    #operation .lpadd-big {
        white-space: nowrap;
        font-size: clamp(22px, 7vw, 36px);
    }

    #cases .lpadd-case .lpadd-stat-val {
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    /* --stat-fs を上書きすると lp-additions.css:144 の
       dt:last-of-type { font-size: max(14px, var(--stat-fs)*0.45) } が連動して
       「結果」ラベルまで 18px→14px に縮むので、数値側に直接当てる */
    #cases .lpadd-case .lpadd-stat-val {
        font-size: clamp(22px, 7vw, 36px);
    }
}


/* ==========================================================================
   料金表まわりの文言の追加（2026-11-21）
   1) 大手ASPの列の下の注記（<span class="pricing-asp-note">）
   2) 計算例の結果バーの一文（<p class="pricing-calc-payout">）
   design.css の .pricing-table-cell は line-height:68px（SPは36px）なので、
   .price-note-small と同じやり方で負のマージンで行間を詰める。
   design.css には ?ver= が付かないため、ここ（lp-*.css / test-*.css）に書く。
   ========================================================================== */

.pricing-comparison-table .pricing-table-asp .pricing-asp-note {
    display: block;
    font-size: 11px;
    line-height: 15px;
    margin-top: -16px;
    padding-bottom: 4px;
    font-weight: 400;
    letter-spacing: 0;
}

.pricing-calculation-box .pricing-calc-result .pricing-calc-payout {
    font-size: 20px;
    line-height: 34px;
    padding: 0 24px;
}

@media screen and (max-width: 767px) {
    .pricing-comparison-table .pricing-table-asp .pricing-asp-note {
        font-size: 8px;
        line-height: 11px;
        margin-top: -9px;
        padding-bottom: 3px;
    }

    .pricing-calculation-box .pricing-calc-result .pricing-calc-payout {
        font-size: 14px;
        line-height: 22px;
        padding: 0 14px;
    }
}
