/**
 * Sumapeta LP メインスタイルシート
 *
 * TSXコンポーネントから変換したスタイルをここに記述
 */

/* ===================================
   Google Fonts (API経由でサブセット化)
   header.php の <link> タグで読み込み
   ローカルTTF版（10MB超）から切り替え済み
   =================================== */


/* ===================================
   ベースリセット・変数
   =================================== */
:root {
    /* プライマリカラー */
    --color-primary: #E55D48;
    --color-primary-safe: #CE503C;
    --color-primary-dark: #c94a38;

    /* テキストカラー */
    --color-text: #1e293b;
    --color-text-muted: #64748b;

    /* 背景カラー */
    --color-bg: #ffffff;
    --color-bg-gray: #f8fafc;

    /* その他 */
    --font-english: 'Inter', sans-serif;
    --font-japanese: 'Noto Sans JP', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-japanese);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   仮スタイル（開発中）
   =================================== */
.site-header {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-primary);
    text-decoration: none;
}

.site-footer {
    padding: 40px 20px;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* CLS Prevention: Reserve height for hero section */
#hero {
    min-height: 40em;
    /* モバイル基準 */
    contain-intrinsic-size: auto 40em;
}

@media (min-width: 1024px) {
    #hero {
        min-height: min(100vh, 60em);
        contain-intrinsic-size: auto min(100vh, 60em);
    }
}

/* ===================================
   カスタム装飾（index.html から移植）
   =================================== */

/* Grainy Mesh Gradient */
.bg-grainy-mesh {
    background-color: #fdfbf7;
    background-image:
        radial-gradient(at 10% 10%, rgba(229, 93, 72, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 0%, rgba(84, 185, 197, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(253, 251, 247, 1) 0px, transparent 50%),
        radial-gradient(at 80% 80%, rgba(206, 77, 113, 0.05) 0px, transparent 50%),
        radial-gradient(at 0% 90%, rgba(0, 120, 140, 0.05) 0px, transparent 50%);
}

/* Noise Texture Overlay */
.bg-noise {
    position: relative;
}

.bg-noise::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 0;
    /* CLS Prevention: prevent pseudo-element from affecting layout */
    contain: strict;
}

/* Marker Animation */
.text-marker {
    background: linear-gradient(transparent 60%, rgba(229, 93, 72, 0.3) 60%);
    background-size: 0% 100%;
    background-repeat: no-repeat;
    transition: background-size 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.6s;
    /* Wait for fade in */
}

[data-visible="true"] .text-marker {
    background-size: 100% 100%;
}

/* Diagonal rounded corners */
.rounded-diagonal {
    border-radius: 30px 0 30px 0;
}

/* Hover Fan Effect for Use Cases */
.fan-hover {
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.4s ease-in-out;
}

.group:hover .fan-hover {
    clip-path: circle(140% at 100% 0%);
}

/* ===================================
   スクロールアニメーション初期状態
   =================================== */
[data-fade-in] {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-fade-in][data-direction="up"] {
    transform: translateY(30px);
}

[data-fade-in][data-direction="down"] {
    transform: translateY(-30px);
}

[data-fade-in][data-direction="left"] {
    transform: translateX(30px);
}

[data-fade-in][data-direction="right"] {
    transform: translateX(-30px);
}

[data-fade-in][data-visible="true"] {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===================================
   シミュレーター用アニメーション
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

/* Chrome, Safari, Edge, Opera - 常にスクロールバーを表示（React版の挙動再現） */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* スクロールバーを完全に非表示にする */
.scrollbar-hide {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* モバイル用ボタン出現アニメーション */
@media (max-width: 767px) {
    .usecase-card .fan-button {
        transform: translateX(100%) translateY(-100%);
        transition: transform 0.3s ease-out;
    }

    .usecase-card.is-active .fan-button {
        transform: translateX(0) translateY(0);
    }
}

/* Benefit画像バウンドアニメーション（1回だけ） */
@keyframes bounce-once {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* ===================================
   本文エリア 行間調整（单記事ページ）
   prose クラスや WordPress ブロックCSS との競合対策
   =================================== */

/* Voice詳細ページ・Column詳細ページの本文 */
body.single-voice .prose p,
body.single-voice .prose li,
body.single-column .prose p,
body.single-column .prose li,
body.single-voice .entry-content p,
body.single-voice .entry-content li,
body.single-column .entry-content p,
body.single-column .entry-content li,
body.single-voice article p,
body.single-voice article li,
body.single-column article p,
body.single-column article li,
body.single-voice main p,
body.single-voice main li,
body.single-column main p,
body.single-column main li {
    line-height: 2 !important;
}

/* ===================================
   太字（b / strong）：オレンジマーカー風ハイライト
   記事詳細ページのブロックエディタ本文に適用
   =================================== */

.prose b,
.prose strong {
    background: linear-gradient(transparent 55%, rgba(229, 93, 72, 0.18) 55%);
    font-weight: 700;
    padding: 0 0.1em;
}

/* 見出し内の太字にはマーカーを適用しない */
.prose :is(h1, h2, h3, h4, h5, h6) b,
.prose :is(h1, h2, h3, h4, h5, h6) strong {
    background: none;
    padding: 0;
}

/* ===================================
   FAQページ: ブロックエディタ「詳細」ブロック スタイル
   WordPress の wp-block-details をアコーディオンUIに変換
   =================================== */

/* コンテナの間隔 */
.faq-content>.wp-block-details {
    margin-bottom: 1rem;
}

/* 各FAQカード */
.faq-content details.wp-block-details {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 1.5rem;
    border: none;
}

/* 質問部分（summary） */
.faq-content details.wp-block-details>summary {
    display: flex;
    align-items: flex-start;
    font-weight: 700;
    font-size: 1.125rem;
    color: #1e293b;
    cursor: pointer;
    list-style: none;
    gap: 1rem;
}

/* Q. マーカー（オレンジ） */
.faq-content details.wp-block-details>summary::before {
    content: 'Q.';
    flex-shrink: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #CE503C;
    line-height: 1.4;
}

/* ミッションラリー用のQ. マーカー（ブルー） */
.missionrally-faq-content details.wp-block-details>summary::before {
    color: #00788c;
}

/* Safariのデフォルト三角形を消す */
.faq-content details.wp-block-details>summary::-webkit-details-marker {
    display: none;
}

/* 開閉矢印を疑似要素で追加 */
.faq-content details.wp-block-details>summary::after {
    content: '';
    flex-shrink: 0;
    margin-left: auto;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg fill='none' height='24' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.2s ease;
}

.faq-content details.wp-block-details[open]>summary::after {
    transform: rotate(180deg);
}

/* 回答部分 */
.faq-content details.wp-block-details>*:not(summary) {
    color: #475569;
    line-height: 1.75;
    margin-top: 1rem;
    padding-top: 0;
    padding-left: 2.25rem;
    position: relative;
}

/* A. マーカー（ダークグレー） */
.faq-content details.wp-block-details>*:not(summary):first-of-type::before {
    content: 'A.';
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* 回答の段落間隔 */
.faq-content details.wp-block-details p {
    margin-bottom: 0.5rem;
}

.faq-content details.wp-block-details p:last-child {
    margin-bottom: 0;
}
/* ===================================
   お役立ち記事のデフォルト見出しデザイン (H2, H3)
   ※Quiz Rally記事やGutenbergの標準エディタ(.prose)のすべてに適用
   =================================== */
.prose h2,
#quiz-rally-article h2 {
    display: block;
    position: relative;
    margin-top: 4rem;
    margin-bottom: 2.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 4px solid #f1f5f9; /* 細めのグレー下線 → 4pxの太線に変更 */
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    scroll-margin-top: 7rem;
    background-color: transparent;
    border-top: none;
    box-shadow: none;
    border-radius: 0;
    padding-left: 0;
}
@media (min-width: 768px) {
    .prose h2,
    #quiz-rally-article h2 {
        font-size: 1.5rem;
    }
}
.prose h2::before,
#quiz-rally-article h2::before {
    display: none;
}
.prose h2::after,
#quiz-rally-article h2::after {
    content: "";
    position: absolute;
    bottom: -4px; /* グレーのボーダー(4px)と被せる */
    left: 0;
    width: 7rem; /* 元の3.5remの2倍の長さ */
    height: 4px; /* オレンジの太線 */
    background-color: var(--color-primary);
    border-radius: 9999px;
}

.prose h3,
#quiz-rally-article h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    border: none;
    padding: 0;
    background: transparent;
}
@media (min-width: 768px) {
    .prose h3,
    #quiz-rally-article h3 {
        font-size: 1.25rem;
    }
}
.prose h3::before,
#quiz-rally-article h3::before {
    content: "";
    display: block;
    width: 6px;
    height: 1.5rem;
    background-color: var(--color-primary);
    border-radius: 9999px;
    flex-shrink: 0;
}
.prose h3::after,
#quiz-rally-article h3::after {
    display: none;
}

/* 特殊なH3（DEMO体験やCTA）ではバーを表示しない */
#quiz-rally-article h3.qr-plain-h3::before,
#quiz-rally-article div.qr-plain-h3::before {
    display: none;
}

/* 内容が空の見出し（誤操作によるブロック残骸など）は非表示にする */
#quiz-rally-article h3:empty,
.prose h3:empty {
    display: none;
}

/* ===================================
   箇条書き（リスト）の余白調整
   =================================== */
.prose ul,
.prose ol {
    padding-left: 2rem; /* 外側の余白を拡大 */
}

.prose li {
    padding-left: 1.25rem; /* ドットとテキストの間隔をさらに離す */
    margin-bottom: 0.625rem;
}

/* リスト項目内でテキストが折り返した際の行間を本文（2）より狭くする。
   項目同士の間隔は上の margin-bottom で確保しているため詰まって見えない。 */
.prose li,
.entry-content li,
body.single-voice .prose li,
body.single-column .prose li,
body.single-voice .entry-content li,
body.single-column .entry-content li,
body.single-voice article li,
body.single-column article li,
body.single-voice main li,
body.single-column main li {
    line-height: 1.7 !important;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

/* ===================================
   担当者コメント（吹き出し）ブロック
   =================================== */
.sumapeta-balloon {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.sumapeta-balloon-avatar {
    flex-shrink: 0;
    width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sumapeta-balloon-avatar figure {
    margin: 0 !important;
    margin-bottom: 10px !important; /* 5mmくらいに調整 */
    display: flex;
    justify-content: center;
}

.sumapeta-balloon-avatar img {
    width: 64px !important;
    height: 64px !important;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 !important;
}

.sumapeta-balloon-avatar p.sumapeta-balloon-name {
    font-size: 0.85rem !important; /* 名前を少し見やすく */
    line-height: 1.2 !important; /* 行間をさらに狭く */
    margin: 0 !important;
    color: #475569;
    font-weight: normal !important;
    text-align: center;
    background: none !important;
    padding: 0 !important;

    /* 長い社名を1行で出すため、列(90px)より広く取って左右へ均等にはみ出させる。
       列そのものは広げていないので、吹き出し本体の位置は既存記事のまま変わらない。
       右のはみ出し13pxは吹き出しとの間隔(24px)に収まる。 */
    width: 116px;
    margin-left: -13px !important;
    margin-right: -13px !important;
}

/* name="社名|氏名" と書いたときの1行目（社名・部署）。
   全角10文字までならこのサイズで折り返さずに収まる。 */
.sumapeta-balloon-avatar .sumapeta-balloon-org {
    display: block;
    font-size: 0.7rem;
    line-height: 1.25;
    white-space: nowrap;
}

.sumapeta-balloon-content {
    position: relative;
    background-color: #f9f8f4;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    flex-grow: 1;
}

/* 吹き出しのしっぽ（左側） */
.sumapeta-balloon-content::before {
    content: "";
    position: absolute;
    top: 20px;
    left: -12px;
    border-style: solid;
    border-width: 10px 14px 10px 0;
    border-color: transparent #f9f8f4 transparent transparent;
}

.sumapeta-balloon-content p {
    margin: 0 !important;
    line-height: 2 !important; /* 本文と同じ行間に揃える */
}

.sumapeta-balloon-content p + p {
    margin-top: 0.75em !important;
}

/* Tailwindのリセットで消える箇条書き（ul/ol）を吹き出し内だけ復元 */
.sumapeta-balloon-content ul,
.sumapeta-balloon-content ol {
    list-style: revert !important;
    margin: 0.75em 0 !important;
    padding-left: 1.5em !important;
}

.sumapeta-balloon-content li {
    line-height: 1.7 !important; /* リストは本文より狭い行間で統一 */
}

/* ===================================
   Tipsゾーン ショートコード
   =================================== */
.sumapeta-tips-box {
    background-color: #fdf4f1;
    border: none;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}

.sumapeta-tips-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem; /* 1remから0.5remへ（余白を減らす） */
    color: #1e293b;
    flex-wrap: wrap;
}

.sumapeta-tips-icon {
    display: flex;
    align-items: center;
    color: #E55D48;
}

.sumapeta-tips-icon svg {
    width: 24px;
    height: 24px;
}

.sumapeta-tips-label {
    color: #E55D48;
    letter-spacing: 0.05em;
}

.sumapeta-tips-title {
    margin-left: 0.25rem;
    color: #E55D48;
}

.sumapeta-tips-content p:first-child {
    margin-top: 0 !important;
}

.sumapeta-tips-content p:empty {
    display: none !important;
}

.sumapeta-tips-content p:last-child {
    margin-bottom: 0 !important;
}

/* Tailwindのリセットで消える箇条書き（ul/ol）をTipsゾーン内だけ復元 */
.sumapeta-tips-content ul,
.sumapeta-tips-content ol {
    list-style: revert !important;
    margin: 0.75em 0 !important;
    padding-left: 1.5em !important;
}

.sumapeta-tips-content li {
    line-height: 1.75 !important;
}

/* ─────────────────────────────────────────────
   トップページ「導入企業様の声」
   スマホではアイコン(80px)＋余白(20px)で本文の列が
   200px程度まで狭まり、そこへ64pxの引用符モチーフが
   重なって見出しが読みにくかった。
   モバイルだけ各パーツを詰めて、本文の幅を稼ぐ。
   768px以上（Tailwindのmd:）の表示は変更しない。
   ───────────────────────────────────────────── */
@media (max-width: 767px) {

    #voice .voice-card__head {
        gap: 0.75rem;
    }

    #voice .voice-card__icon {
        width: 56px;
    }

    /* 見出しと企業名の左インデントを外して本文幅にまわす */
    #voice .voice-card__title,
    #voice .voice-card__meta {
        padding-left: 0;
    }

    #voice .voice-card__title {
        margin-bottom: 0.5rem;
        font-size: 1rem;
        line-height: 1.6;
    }

    /* 装飾の引用符。縮小して左上の角へ寄せ、本文の裏で主張させない */
    #voice .voice-card__quote {
        top: -0.5rem;
        left: -0.375rem;
    }

    #voice .voice-card__quote svg {
        width: 38px;
        height: 38px;
    }

    /* 企業名と「詳しく見る」は左右に振り分けて1行に収める */
    #voice .voice-card__meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
}

/* ============================================
   FUNCTION セクション（トップ #func）
   ビルド済み Tailwind に sm: バリアントや w-24 などが
   含まれていないため、新設ブロックのレイアウトは
   ここに手書きで持たせている。
   ============================================ */
#func .func-block {
    margin-top: 3.5rem;
}

#func .func-block:first-of-type {
    margin-top: 0.5rem;
}

#func .func-block__head {
    margin-bottom: 1.5rem;
    text-align: left;
}

#func .func-block__title {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    /* 3つの見出しは黒で統一。強調は頭のチェックマークで出す */
    color: rgb(15 23 42);
}

/* 見出し頭のオレンジ丸チェック */
#func .func-block__check {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.375rem;
    height: 1.375rem;
    color: #fff;
    background: rgb(206 80 60);
    border-radius: 9999px;
}

#func .func-block__check svg {
    width: 0.75rem;
    height: 0.75rem;
}

#func .func-block__lead {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.8;
    color: rgb(71 85 105);
}

#func .func-block__lead--strong {
    font-weight: 700;
    color: rgb(51 65 85);
}

#func .func-block__emph {
    font-size: 1.15em;
}

/* --- ①② 選べる〇〇（スタンプ取得方法／特典受け取りタイプ） --- */
/* 枠・背景は持たせない。画像とラベルだけを並べる */
#func .func-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* 横の間隔は、隣の円どうしが当たらない下限として12px確保する */
    gap: 1.25rem 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#func .func-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.375rem;
    text-align: center;
}

#func .func-choice__visual {
    position: relative;
    display: block;
    width: 88px;
    max-width: 100%;
    isolation: isolate;
}

#func .func-choice__visual::before {
    content: '';
    position: absolute;
    z-index: -1;
    /* スマホでは幅いっぱいまで使うため、はみ出しは控えめにする */
    inset: -8%;
    border-radius: 50%;
    /* スタンプは BENEFIT 01 と同じ薄オレンジ */
    background: #ffedd5;
}

/* 特典受け取りタイプの円は薄い水色 */
#func .func-choice-grid--reward .func-choice__visual::before {
    background: #dcf0f5;
}

#func .func-choice__visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
}

/* 円のサイズは変えず、中のイラストだけ0.8倍にする */
#func .func-choice--shrink .func-choice__visual img {
    width: 80%;
    margin: 10% auto;
}

/* ラベルは円の下端に重ねる。イラストは円の中央にあるので、
   下端に置けば絵と文字がぶつからない。白の下敷きで可読性を確保する。 */
#func .func-choice--has-image .func-choice__label {
    position: relative;
    z-index: 3;
    margin-top: -0.75rem;
    padding: 0.1875rem 0.5rem;
    background: rgb(255 255 255 / .88);
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgb(15 23 42 / .08);
}

#func .func-choice__label {
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.35;
    color: rgb(51 65 85);
}

/* ¥のオプション印。ファンクション内は濃いグレーで全部統一 */
#func .func-badge-yen {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: rgb(71 85 105);
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgb(15 23 42 / .12);
}

#func .func-badge-yen--inline,
#func .func-note .func-badge-yen {
    position: static;
    margin-right: 0.25rem;
    vertical-align: -3px;
}

#func .func-note {
    /* 凡例は「おすすめのオプション」ブロックの右下に置く */
    margin-top: 0.875rem;
    text-align: right;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.7;
    color: rgb(100 116 139);
}

/* スクリーンリーダー専用。¥は装飾なので、
   ラベル側にテキストでオプションである旨を持たせる */
#func .func-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- ③ 目玉オプション --- */
/* スマホは2カラム。768px以上も2カラム、1024px以上で4カラムになる */
#func .func-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* 枠が無いぶん、区切りは余白で見せる。
       横は隣のピンク下地どうしが3mm（約11px）以上離れるよう 24px 確保する。 */
    gap: 2rem 1rem;
}

/* カード（白背景・枠線・影）は持たせない。①②のマスと同じ縦積み・中央揃え */
#func .func-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-align: center;
}

/* 薄いオレンジ〜ピンクの下地。画像はこの上のレイヤーに置く。
   下地は要素の内側に収める（外へ張り出すと隣のカードのピンクと接触する）。 */
#func .func-option__visual {
    position: relative;
    width: 100%;
    max-width: 200px;
    isolation: isolate;
}

/* スマホ2カラムでは1枚あたりが狭いので、上限を外して枠内いっぱいに使う */
@media (max-width: 767px) {
    #func .func-option__visual,
    #func .func-option__body {
        max-width: 100%;
    }
}

#func .func-option__visual::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(135deg, #fdeee7 0%, #fbe4e4 55%, #f9dfe8 100%);
    border-radius: 1rem;
}

/* 画像は下地より小さくして内側に余白を持たせる */
#func .func-option__visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 82%;
    height: auto;
    margin-inline: auto;
}

/* 本文はピンク下地と同じ幅（200px）に収めて左揃え */
#func .func-option__body {
    width: 100%;
    max-width: 200px;
    min-width: 0;
    margin-top: 0.75rem;
    text-align: left;
}

/* オプション名だけセンター揃え（本文は左揃えのまま） */
#func .func-option__title {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    color: rgb(15 23 42);
    text-align: center;
}

/* ¥はピンク下地の内側・右上。色は①②のバッジと同じ濃いグレー */
#func .func-option__badge {
    position: absolute;
    z-index: 2;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: rgb(71 85 105);
    border-radius: 9999px;
}

#func .func-option__desc {
    font-size: 0.75rem;
    line-height: 1.75;
    color: rgb(71 85 105);
}

/* タブレット以上: カードは2列 */
@media (min-width: 768px) {
    #func .func-block {
        margin-top: 4rem;
    }

    #func .func-block__title {
        font-size: 1.5rem;
    }

    #func .func-block__lead {
        font-size: 1rem;
    }

    #func .func-choice-grid {
        gap: 1.5rem 0.75rem;
    }

    #func .func-choice__visual {
        width: 84px;
    }

    #func .func-choice__visual::before {
        inset: -12%;
    }

    #func .func-choice__label {
        font-size: 0.75rem;
    }

    /* 特典は5つなので、この幅から1行に収まる。
       取得方法9つは3列3行のまま（5列だと5+4で割れて収まりが悪い） */
    #func .func-choice-grid--reward {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    #func .func-note {
        font-size: 0.75rem;
    }

    #func .func-option-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #func .func-option__title {
        font-size: 0.875rem;
    }

    #func .func-option__desc {
        font-size: 0.8125rem;
    }
}

/* デスクトップ: 取得方法9つを1行、オプションを4列 */
@media (min-width: 1024px) {
    /* 取得方法10個は5列×2行、特典5個は1行 */
    #func .func-choice-grid--stamp,
    #func .func-choice-grid--reward {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    #func .func-choice__visual {
        width: 96px;
    }

    #func .func-option-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ============================================
   ページ内アンカーの着地位置
   固定ヘッダー（スマホ76px／PC86px）に見出しが隠れないよう、
   ハッシュジャンプ時の上余白を確保する。
   main.js のスムーススクロールは「ヘッダー高さ＋20px」を引いた
   位置に着地させているので、その値に合わせて 7rem = 112px。

   #func は見出しブロックがネガティブマージンでセクション上端
   ぎりぎり（PCで16px、スマホで64px）に置かれているため、
   この余白が無いと確実にヘッダーへ潜り込む。
   ============================================ */
#about,
#benefit,
#why,
#func,
#price,
#flow,
#demo,
#voice {
    scroll-margin-top: 7rem;
}
