/* ============================================================
   Narrav — /service/manga-marketing.html 専用スタイル
   service-top.css（共通レイヤー）の後に読み込む前提。
   共通レイヤーの変数・.section / .container / .btn を利用する。
   ============================================================ */

/* ---------- 共通パーツ ---------- */
.sec-eyebrow {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .18em;
    color: var(--red);
    margin-bottom: .6rem;
}

/* ---------- ヒーロー：オファー導線 ---------- */
.hero-sample-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: .95rem;
    color: var(--navy);
    border-bottom: 2px solid rgba(4, 49, 132, .25);
    padding-bottom: 2px;
}
.hero-sample-link:hover { color: var(--red); border-bottom-color: var(--red); }

/* ---------- マンガの3つの力 ---------- */
.merit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.merit-card {
    position: relative;
    padding: 2.4rem 1.8rem 1.8rem;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.merit-no {
    position: absolute; top: -.9rem; left: 1.6rem;
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--navy); color: #fff;
    font-family: var(--font-en); font-weight: 700; font-size: 1rem;
}
.merit-card h3 {
    font-family: var(--font-head); font-weight: 900; font-size: 1.25rem;
    color: var(--navy-deep); margin-bottom: .7rem;
}
.merit-card p { font-size: .93rem; color: var(--text-mut); }
.merit-outcome {
    margin-top: 2.2rem; text-align: center;
    font-size: 1.05rem; font-weight: 700; color: var(--navy-deep);
}
.merit-outcome b { color: var(--red); }

/* ---------- 料金：費用が発生するタイミング ---------- */
.cost-steps-wrap {
    margin-top: 3.2rem; padding: 2.4rem 2rem;
    background: #fff; border-radius: 14px; border: 1px solid var(--line-soft);
}
.cost-steps-title {
    text-align: center; font-family: var(--font-head); font-weight: 900;
    font-size: 1.5rem; color: var(--navy-deep);
}
.cost-steps-lead { text-align: center; color: var(--text-mut); font-size: .92rem; margin-bottom: 2rem; }
.cost-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.cost-step {
    position: relative; padding: 2.2rem 1.4rem 1.4rem;
    border: 2px solid var(--line); border-radius: 10px; background: var(--paper-2);
}
.cost-step.is-paid { border-color: var(--red); background: rgba(232, 0, 44, .04); }
.cost-step:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -1.25rem;
    width: 0; height: 0; transform: translateY(-50%);
    border-left: .75rem solid var(--navy);
    border-top: .6rem solid transparent; border-bottom: .6rem solid transparent;
}
.cost-badge {
    position: absolute; top: -.85rem; left: 1.2rem;
    padding: .2em 1em; border-radius: 999px;
    font-size: .78rem; font-weight: 700; color: #fff;
}
.cost-badge.free { background: var(--navy); }
.cost-badge.paid { background: var(--red); }
.cost-no { font-family: var(--font-en); font-size: .78rem; letter-spacing: .1em; color: var(--text-mut); }
.cost-step h4 {
    font-family: var(--font-head); font-weight: 900; font-size: 1.08rem;
    color: var(--navy-deep); margin: .2rem 0 .5rem;
}
.cost-step p { font-size: .88rem; color: var(--text-mut); }
.cost-step a { color: var(--teal); text-decoration: underline; }

.flow-lead-note { margin-top: 2.4rem; text-align: center; font-size: .9rem; color: var(--text-mut); }

/* ---------- こんな課題ありませんか（4カード） ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.prob-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--line-soft); box-shadow: var(--shadow);
    display: flex; flex-direction: column;
}
.prob-visual { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.prob-visual img { width: 100%; height: 100%; object-fit: cover; }
.prob-card h3 {
    font-family: var(--font-head); font-weight: 900; font-size: 1.05rem;
    color: var(--navy-deep); padding: 1.1rem 1.2rem .6rem; line-height: 1.5;
}
.prob-points { padding: 0 1.2rem 1.4rem; display: grid; gap: .45rem; }
.prob-points li {
    position: relative; padding-left: 1.4em;
    font-size: .86rem; color: var(--text-mut); line-height: 1.7;
}
.prob-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--red); font-weight: 700; }
.prob-more { margin-top: 2rem; text-align: center; font-size: .95rem; }

/* ---------- 選ばれる魅力 ---------- */
.why-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: start; }
.why-list { display: grid; gap: 1.6rem; counter-reset: why; }
.why-item { position: relative; padding-left: 3.4rem; counter-increment: why; }
.why-item::before {
    content: counter(why, decimal-leading-zero);
    position: absolute; left: 0; top: .1rem;
    font-family: var(--font-en); font-weight: 700; font-size: 1.5rem;
    color: var(--red); opacity: .85;
}
.why-item h3 {
    font-family: var(--font-head); font-weight: 900; font-size: 1.12rem;
    color: var(--navy-deep); margin-bottom: .35rem;
}
.why-item p { font-size: .93rem; color: var(--text-mut); }
.why-visual { display: grid; gap: 1.2rem; }
.why-fig { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.why-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.why-fig figcaption { padding: .7rem 1rem 1rem; font-size: .82rem; color: var(--text-mut); }

/* ---------- 効果メトリクス ---------- */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.metric-card {
    background: #fff; border-radius: 12px; padding: 2rem 1.6rem;
    border-top: 4px solid var(--red); box-shadow: var(--shadow); text-align: center;
}
.metric-label { font-weight: 700; font-size: .95rem; color: var(--navy-deep); }
.metric-num {
    font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15; color: var(--red); margin: .4rem 0 .1rem;
}
.metric-num small { font-size: .42em; margin-left: .1em; }
.metric-num .ph {
    font-family: var(--font-jp); font-size: .34em; font-weight: 700;
    color: var(--text-mut); background: rgba(232, 0, 44, .08);
    padding: .1em .5em; border-radius: 6px; vertical-align: middle;
}
.metric-cap { font-weight: 700; color: var(--navy); font-size: 1rem; }
.metric-desc { margin-top: .8rem; font-size: .88rem; color: var(--text-mut); text-align: left; }

/* ---------- 制作サンプル カルーセル ---------- */
.carousel { display: flex; align-items: center; gap: .8rem; }
.carousel-viewport { flex: 1; overflow: hidden; }
.carousel-track {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * 1.4rem) / 3);
    gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding-bottom: .4rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.sample-item {
    scroll-snap-align: start; background: #fff;
    border: 1px solid var(--line-soft); border-radius: 12px;
    overflow: hidden; box-shadow: var(--shadow);
}
.sample-visual { aspect-ratio: 4 / 3; background: var(--paper-3); }
.sample-visual img { width: 100%; height: 100%; object-fit: cover; }
.sample-label { font-family: var(--font-head); font-weight: 900; color: var(--navy-deep); padding: 1rem 1.2rem .3rem; }
.sample-desc { padding: 0 1.2rem; font-size: .87rem; color: var(--text-mut); }
.sample-link { display: inline-block; padding: .8rem 1.2rem 1.2rem; font-weight: 700; font-size: .88rem; color: var(--red); }
.sample-link:hover { text-decoration: underline; }
.carousel-btn {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
    background: #fff; border: 2px solid var(--navy); color: var(--navy);
    display: grid; place-items: center; cursor: pointer;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.carousel-btn:hover { background: var(--navy); color: #fff; }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.4rem; }
.carousel-dot {
    width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
    background: var(--line); cursor: pointer; transition: background .25s var(--ease);
}
.carousel-dot.is-active { background: var(--red); }

/* ---------- 無料診断オファー ---------- */
.offer-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.6rem; align-items: center; }
.offer-thumb {
    position: relative; display: block; padding: 0; border: 0; cursor: pointer;
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.offer-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.offer-thumb-badge {
    position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
    background: rgba(4, 49, 132, .92); color: #fff; font-weight: 700; font-size: .85rem;
    padding: .5em 1.4em; border-radius: 999px; white-space: nowrap;
}
.offer-thumb:hover .offer-thumb-badge { background: var(--red); }
.offer-copy h3 { font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; color: var(--navy-deep); margin-bottom: .9rem; }
.offer-points { display: grid; gap: .5rem; margin-bottom: 1.6rem; }
.offer-points li { position: relative; padding-left: 1.5em; font-size: .95rem; }
.offer-points li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.offer-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.offer-note { margin-top: 1rem; font-size: .85rem; color: var(--text-mut); }

.offer-modal {
    max-width: min(640px, 92vw); border: 0; border-radius: 14px;
    padding: 2rem; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.offer-modal::backdrop { background: rgba(0, 0, 0, .6); }
.offer-modal img { border-radius: 10px; margin-bottom: 1.2rem; }
.offer-modal-cap { font-size: .88rem; color: var(--text-mut); margin-bottom: 1.2rem; }
.offer-modal-close {
    position: absolute; top: .6rem; right: .8rem;
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: var(--paper-2); color: var(--navy-deep);
    font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.offer-modal-close:hover { background: var(--red); color: #fff; }

/* ---------- 最終CTA 追加パーツ ---------- */
.contact-hook { font-family: var(--font-head); font-weight: 900; font-size: 1.15rem; color: var(--red); margin-bottom: .4rem; }
.contact-visual { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.6rem 0; }
.contact-visual figure { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.contact-visual img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.contact-visual figcaption { padding: .6rem .8rem .9rem; font-size: .78rem; color: var(--text-mut); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.6rem 0 1rem; }
.lead-route { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.2rem 0; }
.lead-route-item { display: grid; gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy-deep); }
.lead-route-item strong { font-size: .9rem; }
.lead-route-item span { font-size: .78rem; color: var(--text-mut); line-height: 1.55; }
.lead-route-item:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- PC右下フローティングCTA ---------- */
.float-cta {
    position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 1150;
    width: 236px; display: grid; gap: .5rem;
    opacity: 0; transform: translateY(20px); pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.float-cta.visible { opacity: 1; transform: none; pointer-events: auto; }
.float-cta-btn {
    position: relative; display: grid; gap: .1rem; text-align: center;
    background: var(--red); color: #fff; border-radius: 12px;
    padding: 1.1rem 1rem .9rem;
    font-family: var(--font-head); font-weight: 900; font-size: 1rem;
    box-shadow: 0 10px 26px rgba(232, 0, 44, .34);
}
.float-cta-btn:hover { background: var(--red-dark); }
.float-cta-badge {
    position: absolute; top: -.7rem; left: 50%; transform: translateX(-50%);
    background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700;
    padding: .15em 1em; border-radius: 999px;
}
.float-cta-btn small { font-size: .7rem; font-weight: 400; opacity: .92; }
.float-cta-sub {
    text-align: center; background: #fff; color: var(--navy);
    border: 2px solid var(--navy); border-radius: 10px;
    padding: .6rem; font-weight: 700; font-size: .88rem;
}
.float-cta-sub:hover { background: var(--navy); color: #fff; }

/* ---------- レスポンシブ ---------- */
/* ---------- AI×メディアミックス ---------- */
.mm-mix-flow {
    display: flex; align-items: stretch; justify-content: center;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.mm-mix-step {
    display: flex; flex-direction: column; justify-content: center;
    padding: 1.1rem 1.8rem; text-align: center;
    background: #fff; border: 1px solid var(--line-soft); border-radius: 12px;
    box-shadow: var(--shadow);
}
.mm-mix-step .lbl {
    display: block; font-family: var(--font-en); font-weight: 700;
    font-size: .72rem; letter-spacing: .16em; color: var(--text-mut); margin-bottom: .3rem;
}
.mm-mix-step .val { font-weight: 700; font-size: 1.05rem; color: var(--navy); line-height: 1.5; }
.mm-mix-step.is-out { background: var(--navy); border-color: var(--navy); }
.mm-mix-step.is-out .lbl { color: rgba(255,255,255,.72); }
.mm-mix-step.is-out .val { color: #fff; }
.mm-mix-ai {
    display: inline-flex; align-items: center; gap: .5rem; align-self: center;
    font-family: var(--font-en); font-weight: 700; font-size: 1rem; letter-spacing: .12em;
    color: #fff; background: var(--red); border-radius: 999px; padding: .5rem 1.2rem;
}
.mm-mix-ai svg { width: 1.15rem; height: 1.15rem; }

.mm-mix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.mm-mix-card {
    padding: 1.7rem 1.5rem;
    background: #fff; border: 1px solid var(--line-soft); border-radius: 12px;
    box-shadow: var(--shadow);
}
.mm-mix-card h3 {
    position: relative; padding-left: .9rem; margin-bottom: .6rem;
    font-size: 1.02rem; font-weight: 700; color: var(--navy); line-height: 1.6;
}
.mm-mix-card h3::before {
    content: ''; position: absolute; left: 0; top: .34em;
    width: 4px; height: 1em; background: var(--red); border-radius: 2px;
}
.mm-mix-card p { font-size: .9rem; color: var(--text); line-height: 1.9; }

.mm-mix-outcome { margin-top: 1.8rem; text-align: center; font-size: 1.02rem; color: var(--ink); }
.mm-mix-outcome b { color: var(--red); }

@media (max-width: 1024px) {
    .mm-mix-grid { grid-template-columns: repeat(2, 1fr); }
    .merit-grid { grid-template-columns: 1fr; }
    .cost-steps { grid-template-columns: 1fr; gap: 2rem; }
    .cost-step:not(:last-child)::after {
        top: auto; bottom: -1.4rem; right: 50%; transform: translateX(50%);
        border-left: .6rem solid transparent; border-right: .6rem solid transparent;
        border-top: .75rem solid var(--navy); border-bottom: 0;
    }
    .prob-grid { grid-template-columns: repeat(2, 1fr); }
    .why-inner { grid-template-columns: 1fr; gap: 2rem; }
    .why-visual { grid-template-columns: repeat(2, 1fr); }
    .carousel-track { grid-auto-columns: calc((100% - 1.4rem) / 2); }
    .offer-inner { grid-template-columns: 1fr; }
    .float-cta { display: none; }
}

@media (max-width: 768px) {
    .mm-mix-grid { grid-template-columns: 1fr; }
    .mm-mix-flow { flex-direction: column; align-items: stretch; gap: .8rem; }
    .mm-mix-ai svg { transform: rotate(90deg); }
    .prob-grid { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: 1fr; }
    .why-visual { grid-template-columns: 1fr; }
    .carousel-track { grid-auto-columns: 100%; }
    .carousel-btn { display: none; }
    .cost-steps-wrap { padding: 2rem 1.2rem; }
    .offer-actions .btn, .contact-actions .btn { width: 100%; }
    .lead-route { grid-template-columns: 1fr; }
    .hero-sample-link { justify-content: center; width: 100%; }
}
