/*
Theme Name: Starfruit Ringo
Theme URI: https://ydhome.jp/
Author: Starfruit Ringo Co., Ltd.
Author URI: https://ydhome.jp/
Description: 株式会社スターフルーツリンゴ コーポレートサイト用オリジナルWordPressテーマ（リト／Re：カエルン／資金相談 各ページ対応）。
Version: 1.0.7
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: starfruit-ringo
*/

    /* -------------------------------------
       1. 全体リセットとテーマカラー・基本設定
    -------------------------------------- */
    :root {
        --primary-color: #4a7c59;
        --primary-dark: #2c5237;
        --accent-color: #f6c026;
        --accent-dark: #dca71a;
        /* テラコッタ／ブルーの2色を追加し、グリーン＋イエロー2色だけだった
           アクセントカラーを増やしてトーンに変化を持たせる
           （リト＝テラコッタ、Re：カエルン＝既存イエロー、資金相談＝ブルー、という
           使い分けの土台にする） */
        --accent-terracotta: #c1704a;
        --accent-terracotta-dark: #9c5637;
        --accent-blue: #5c7f95;
        --accent-blue-dark: #3f5f73;
        --dark-bg: #3a5a40;
        --text-color: #333333;
        /* 真っ白ではなく、漆喰壁のような温かみのあるオフホワイトに変更 */
        --bg-color: #f8f5ee;
        --bg-soft: #f2f6f0;
        --border-color: #e0e0e0;
        --danger-color: #c65b4a;
    }
    * { margin: 0; padding: 0; box-sizing: border-box; max-width: 100%; }
    html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
    /* -------------------------------------
       フルページ切り替え（画面は固定のまま、スクロール操作で
       次のセクションへ画面ごと切り替わるフルスクリーン演出）
    -------------------------------------- */
    html.fp-mode, html.fp-mode body { overflow: hidden; height: 100%; }
    /* footerは通常フロー要素として文末（FAQの後）に配置しているため、
       フルページ演出中（他の全セクションがposition:fixedで文書の流れから外れている間）は
       footerだけが文書内で唯一の通常フロー要素となり、ページ最上部に幅いっぱいの
       帯として見えてしまう（別タブが透けて見えるような表示不具合の原因）。
       フルページ演出が終わる（html.fp-modeが外れる）までは非表示にしておく。 */
    html.fp-mode footer { display: none; }
    /* セクションは .fp-section クラスで判定する（IDのハードコード管理をやめ、
       セクションを分割・追加してもCSS/JSの修正が不要になるようにする） */
    .fp-section {
        transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
        /* transform/opacityの変化をGPU合成に任せて、切り替え時の一瞬のカクつき・
           ちらつきを防ぐ（ブラウザに事前最適化のヒントを与える）。 */
        will-change: transform, opacity;
        backface-visibility: hidden;
    }
    html.fp-mode .fp-section {
        position: fixed; top: 0; left: 0; right: 0; margin: 0 auto !important;
        height: 100vh; height: 100dvh; overflow-x: hidden;
        z-index: 3; background-color: var(--bg-color);
        /* フルページ演出中も漆喰壁のような質感をそのまま見せるため、bodyと同じ
           ノイズ／色ムラをここにも重ねる（水紋演出には触れない） */
        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
            radial-gradient(ellipse 640px 460px at 8% 6%, rgba(255,255,255,0.55), transparent 62%),
            radial-gradient(ellipse 560px 420px at 92% 12%, rgba(74,124,89,0.035), transparent 58%),
            radial-gradient(ellipse 720px 520px at 24% 62%, rgba(255,255,255,0.45), transparent 60%),
            radial-gradient(ellipse 600px 460px at 80% 88%, rgba(140,110,70,0.04), transparent 58%),
            radial-gradient(ellipse 500px 400px at 50% 32%, rgba(0,0,0,0.02), transparent 60%);
        background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
    }
    /* 斜め背景（::before/::after）を持つセクションは、外枠は固定サイズのまま動かさず、
       内側の <section> だけをスクロール領域にする（背景が100vh分しかなく、
       スクロールで下の方が背景無し＝白抜けになるのを防ぐため） */
    html.fp-mode .fp-section.skew-layer-dark, html.fp-mode .fp-section.skew-layer-soft {
        overflow-y: hidden;
        /* 通常フロー用の大きな上下パディング（80px/76px）は連続スクロール時の
           セクション間の余白だったが、フルページ表示では1画面＝1シーンなので
           不要。中の<section>側で既に十分な余白を持っているため、ここは最小限に。
           ただし上部は固定ヘッダー（半透明）と文字・画像が重ならないよう、
           ヘッダーの高さ分をきちんと確保する。 */
        padding-top: 88px; padding-bottom: 24px;
    }
    html.fp-mode .fp-section.skew-layer-dark > section,
    html.fp-mode .fp-section.skew-layer-soft > section {
        height: 100%; overflow-y: auto; overflow-x: hidden; box-sizing: border-box;
        -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
        display: flex; flex-direction: column;
        /* justify-content:center のままだと、中身が画面より高い場合に上側が
           ヘッダーの裏に隠れて（scrollTopを0より前には戻せないため）見えなくなり、
           結果としてスクロールバーだけが出て中身の頭が切れて見えるバグになる。
           safe center 対応ブラウザでは「収まる時だけ中央寄せ、はみ出す時は先頭寄せ」
           になり、非対応ブラウザ向けには常に先頭寄せ（flex-start）にフォールバックする。 */
        justify-content: flex-start;
    }
    @supports (justify-content: safe center) {
        html.fp-mode .fp-section.skew-layer-dark > section,
        html.fp-mode .fp-section.skew-layer-soft > section {
            justify-content: safe center;
        }
    }
    /* 上記以外（背景が単色/画像で高さに依存しないセクション）はそのまま自身をスクロール領域にする。
       各セクションが画面の高さより短い場合は縦方向中央に配置し、上下に間延びした
       余白が偏って見えないようにする（メインビジュアルは専用レイアウトなので対象外）。
       上部パディングは固定ヘッダーと重ならないよう、ヘッダー高さ分を確保する。
       中身が高さを超える場合の挙動は上のskew-layer系と同じ理由で safe center を使う。 */
    html.fp-mode .fp-section:not(.skew-layer-dark):not(.skew-layer-soft):not(.mv) {
        overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
        display: flex; flex-direction: column; justify-content: flex-start;
        padding-top: 88px !important;
    }
    @supports (justify-content: safe center) {
        html.fp-mode .fp-section:not(.skew-layer-dark):not(.skew-layer-soft):not(.mv) {
            justify-content: safe center;
        }
    }
    @media (max-width: 768px) {
        html.fp-mode .fp-section.skew-layer-dark,
        html.fp-mode .fp-section.skew-layer-soft {
            padding-top: 70px;
        }
        html.fp-mode .fp-section:not(.skew-layer-dark):not(.skew-layer-soft):not(.mv) {
            padding-top: 70px !important;
        }
    }
    @media (max-width: 768px) and (max-height: 600px) {
        html.fp-mode .fp-section.skew-layer-dark,
        html.fp-mode .fp-section.skew-layer-soft {
            padding-top: 58px;
        }
        html.fp-mode .fp-section:not(.skew-layer-dark):not(.skew-layer-soft):not(.mv) {
            padding-top: 58px !important;
        }
    }
    /* PC・タブレットでもブラウザウィンドウの高さが低い（ウィンドウを最大化していない、
       ツールバーが多い等）場合に、各セクションの中身がヘッダー分の余白を含めて
       画面に収まらずスクロールバーが出てしまうことがあるため、幅に関わらず
       「高さが低い」ことを基準にカードや見出しをコンパクトにする。 */
    @media (max-height: 760px) {
        .sec-title { font-size: 1.55rem; margin-bottom: 10px; padding-bottom: 10px; }
        .sec-lead { font-size: 0.85rem; margin-bottom: 18px; line-height: 1.6; }
        .rito-subhead { margin-bottom: 12px; font-size: 1.02rem; }
        .plan-switcher { margin-bottom: 8px; gap: 16px; }
        .plan-switch-dots { margin-bottom: 12px; }
        .plan-note { padding: 10px 16px; font-size: 0.76rem; }
        .plan-note strong { margin-bottom: 3px; }
        .plan-grid { gap: 12px; }
        .plan-card { padding: 16px 12px; }
        .plan-card h4 { font-size: 0.86rem; margin-bottom: 4px; }
        .plan-card p { font-size: 0.72rem; margin-bottom: 6px; line-height: 1.45; }
        .plan-switcher-block .plan-photo { width: 56px; height: 56px; margin-bottom: 6px; }
        .strength-compact-card .strength-compact-media { margin-bottom: 8px; }
        .strength-compact-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
        .strength-compact-card p { font-size: 0.74rem; line-height: 1.5; }
        .compare-card { padding: 16px 16px; }
        .compare-media { aspect-ratio: 21/9; margin: -16px -16px 10px; width: calc(100% + 32px); }
        .compare-card p.desc { font-size: 0.76rem; line-height: 1.45; }
        .compare-mark { margin: 6px 0; }
        .pillar-card { padding: 20px 18px; }
        .pillar-card p { font-size: 0.8rem; margin-bottom: 8px; }
        .value-reason-grid { gap: 14px; }
        .value-reason-card { padding: 18px 18px 16px; gap: 6px; }
        .value-reason-card p { font-size: 0.78rem; line-height: 1.5; }
    }
    @media (max-height: 640px) {
        .sec-title { font-size: 1.35rem; margin-bottom: 8px; padding-bottom: 8px; }
        .sec-lead { font-size: 0.78rem; margin-bottom: 12px; }
        .strength-row { margin-bottom: 0; }
    }
    body {
        font-family: var(--font-sans);
        color: var(--text-color);
        line-height: 1.8;
        /* 真っ白のベタ塗りではなく、漆喰壁のようにムラのある質感を出す。
           1) 微細なノイズ（feTurbulenceのSVGをdata URIで埋め込み）で粒状感、
           2) 大きくぼかした色ムラ（radial-gradient）で塗りムラ感を追加。
           水紋演出（.bg-ripple、z-index:-10）は変更せず従来通り最前面に見える
           ようにするため、ここはbody自体の背景（常にどの要素より下）として扱う。 */
        background-color: var(--bg-color);
        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
            radial-gradient(ellipse 640px 460px at 8% 6%, rgba(255,255,255,0.55), transparent 62%),
            radial-gradient(ellipse 560px 420px at 92% 12%, rgba(74,124,89,0.035), transparent 58%),
            radial-gradient(ellipse 720px 520px at 24% 62%, rgba(255,255,255,0.45), transparent 60%),
            radial-gradient(ellipse 600px 460px at 80% 88%, rgba(140,110,70,0.04), transparent 58%),
            radial-gradient(ellipse 500px 400px at 50% 32%, rgba(0,0,0,0.02), transparent 60%);
        background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
        -webkit-font-smoothing: antialiased;
        overflow-x: hidden;
        width: 100%;
        /* 日本語（カタカナ・漢字等）と英単語・数字が混ざる箇所で、単語の
           途中（例:「Re：カエル」+「ン」、"NEW BUI"+"LD" のような分断）で
           改行されてしまうのを防ぐ。keep-allでCJK文字列も「ひとかたまり」の
           単語として扱われるようになり、改行は語句の区切り（助詞や記号の後
           など）でのみ起こるようになる。
           ただし、句読点の少ない長い一文（本文の段落など）ではkeep-allにより
           「区切りなし＝改行不可の塊」が生まれることがあり、overflow-wrapが
           通常の break-word のままだと、その塊がflexアイテムの中で正しく
           折り返されず、カラム幅からはみ出して画面端で見切れてしまう不具合が
           あった（break-wordは行内の折り返しには効くが、flexアイテムの
           サイズ計算＝はみ出し判定には反映されないケースがあるため）。
           anywhereはサイズ計算にも反映されるため、通常時（十分な幅がある場合）は
           keep-allの区切りルールがそのまま優先され、幅が足りない場合の
           最終手段としてのみ強制改行が働く＝両立できる。 */
        word-break: keep-all;
        overflow-wrap: anywhere;
    }
    a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
    a:hover { opacity: 0.8; }
    img { max-width: 100%; height: auto; vertical-align: bottom; display: block; }
    ul { list-style: none; }
    button { font-family: inherit; }
    .serif-heading { font-family: var(--font-sans); }
    .icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
    .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    /* -------------------------------------
       スクロール登場アニメーション
    -------------------------------------- */
    .reveal, .reveal-left, .reveal-right, .reveal-zoom {
        opacity: 0;
        transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.7s ease;
        filter: blur(6px);
    }
    .reveal { transform: translateY(38px) scale(0.97); }
    .reveal-left { transform: translateX(-70px) rotate(-4deg); }
    .reveal-right { transform: translateX(70px) rotate(4deg); }
    .reveal-zoom { transform: scale(0.85) rotate(-3deg); }
    .reveal.active, .reveal-left.active, .reveal-right.active, .reveal-zoom.active {
        opacity: 1; transform: none; filter: blur(0);
    }
    /* 横長の枠向け：中央から左右にしゅっと開くように現れる登場演出 */
    /* 注: clip-path の%指定はブラウザによってIntersectionObserverの交差判定を
       常に0にしてしまう不具合があるため、transform: scaleX() で同様の見た目を実現する */
    .reveal-unfold {
        opacity: 0;
        transform: scaleX(0.05);
        transition: opacity 0.5s ease, transform 0.75s cubic-bezier(0.65, 0, 0.35, 1);
    }
    .reveal-unfold.active { opacity: 1; transform: scaleX(1); }
    .delay-100 { transition-delay: 0.1s; }
    .delay-200 { transition-delay: 0.2s; }
    .delay-300 { transition-delay: 0.3s; }
    .delay-400 { transition-delay: 0.4s; }
    /* 水紋の動く背景 */
    .bg-ripple {
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        z-index: -10; pointer-events: none; overflow: hidden;
    }
    .ripple-circle {
        position: absolute; border-radius: 50%;
        border: 2.5px solid rgba(74, 124, 89, 0.24);
        animation: ripple linear infinite;
        transform: translate(-50%, -50%);
        opacity: 0;
    }
    /* 画面中央1箇所からだけでなく、大小さまざまな波紋が画面のあちこちから
       ランダムなタイミングで複数同時に広がって見えるように、円ごとに
       開始位置・最大サイズ・再生時間・開始タイミングをずらす。
       以前は控えめにしすぎて目立たなくなっていたため、線の色・不透明度を
       引き上げてしっかり視認できるようにしている（ただしテキストの可読性は
       妨げない程度に留める）。 */
    .ripple-circle:nth-child(1) { top: 18%; left: 14%; --ripple-max: 30vw; animation-duration: 14s; animation-delay: 0s; }
    .ripple-circle:nth-child(2) { top: 70%; left: 82%; --ripple-max: 44vw; animation-duration: 18s; animation-delay: 3s; }
    .ripple-circle:nth-child(3) { top: 42%; left: 50%; --ripple-max: 58vw; animation-duration: 22s; animation-delay: 6.5s; }
    .ripple-circle:nth-child(4) { top: 88%; left: 22%; --ripple-max: 20vw; animation-duration: 10s; animation-delay: 1.5s; }
    .ripple-circle:nth-child(5) { top: 8%; left: 68%; --ripple-max: 36vw; animation-duration: 16s; animation-delay: 8s; }
    .ripple-circle:nth-child(6) { top: 55%; left: 6%; --ripple-max: 50vw; animation-duration: 20s; animation-delay: 11s; }
    .ripple-circle:nth-child(7) { top: 28%; left: 92%; --ripple-max: 24vw; animation-duration: 12s; animation-delay: 4.5s; }
    .ripple-circle:nth-child(8) { top: 78%; left: 52%; --ripple-max: 40vw; animation-duration: 17s; animation-delay: 13s; }
    @keyframes ripple {
        0% { width: 0; height: 0; opacity: 0.85; }
        70% { opacity: 0.4; }
        100% { width: var(--ripple-max, 150vw); height: var(--ripple-max, 150vw); opacity: 0; }
    }
    /* -------------------------------------
       スプラッシュ（オープニング）アニメーション
    -------------------------------------- */
    #splash-screen {
        position: fixed; inset: 0; z-index: 9999;
        display: flex; align-items: center; justify-content: center;
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
        clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 50% 0%, 0% 0%);
    }
    /* 背景が家の形にすぼまりながらフェードアウトして消えていく終了アニメーション */
    #splash-screen.hide {
        animation: splashHouseExit 1.3s cubic-bezier(0.6, 0, 0.4, 1) forwards;
        pointer-events: none;
    }
    @keyframes splashHouseExit {
        0% { clip-path: polygon(0% 100%, 100% 100%, 100% 0%, 50% 0%, 0% 0%); opacity: 1; }
        50% { clip-path: polygon(32% 78%, 68% 78%, 68% 46%, 50% 28%, 32% 46%); opacity: 1; }
        100% { clip-path: polygon(46% 58%, 54% 58%, 54% 52%, 50% 48%, 46% 52%); opacity: 0; }
    }
    .splash-inner { text-align: center; color: #fff; padding: 20px; }
    .splash-mark {
        width: 380px; max-width: 78vw; margin: 0 auto; display: flex; align-items: center; justify-content: center;
        opacity: 0; animation: splashMarkIn 0.9s cubic-bezier(0.25,1,0.5,1) 0.15s forwards;
    }
    .splash-mark img { width: 100%; height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.25)); }
    .splash-bar { width: 140px; height: 2px; background: rgba(255,255,255,0.25); margin: 34px auto 0; overflow: hidden; opacity: 0; animation: splashTextIn 0.6s ease 0.5s forwards; }
    .splash-bar::after { content:''; display:block; width: 40%; height: 100%; background: var(--accent-color); animation: splashBar 1.3s ease 0.6s forwards; }
    @media (max-width: 480px) { .splash-mark { width: 260px; } }
    @keyframes splashMarkIn { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }
    @keyframes splashTextIn { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }
    @keyframes splashBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
    /* -------------------------------------
       左側の目次（TOC）ナビゲーション
    -------------------------------------- */
    .toc-item {
        width: 14px; height: 14px; border-radius: 50%;
        background-color: rgba(74, 124, 89, 0.3); border: 2px solid var(--primary-color);
        cursor: pointer; transition: all 0.3s; position: relative;
    }
    .toc-item.active { background-color: var(--accent-color); border-color: var(--accent-color); transform: scale(1.3); }
    .toc-item::after {
        content: attr(data-label); position: absolute; left: 25px; top: -4px;
        background: var(--primary-dark); color: #fff; padding: 2px 10px; border-radius: 4px;
        font-size: 12px; white-space: nowrap;
        opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; transform: translateX(-10px);
    }
    .toc-item:hover::after { opacity: 1; transform: translateX(0); }
    /* -------------------------------------
       2. ヘッダー
    -------------------------------------- */
    header {
        position: fixed; top: 0; width: 100%;
        /* 通常時は邪魔にならないよう半透明。カーソルが近づく／触れると濃くなる。
           サイト内の他セクションの背景と同じ水玉状の波紋模様を薄く重ねて、
           ヘッダーの帯にも統一感を持たせる。 */
        background:
            repeating-radial-gradient(circle at 94% 25%, rgba(74,124,89,0.07) 0, rgba(74,124,89,0.07) 1px, transparent 1px, transparent 16px),
            repeating-radial-gradient(circle at 40% 80%, rgba(74,124,89,0.05) 0, rgba(74,124,89,0.05) 1px, transparent 1px, transparent 22px),
            rgba(255, 255, 255, 0.38);
        display: flex; justify-content: space-between; align-items: center;
        gap: 8px;
        padding: 12px 5%; z-index: 1000;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.3s;
    }
    header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
    /* カーソルが近づいた（header-near）／実際にホバーしたときは濃く表示 */
    header:hover, header.header-near {
        background:
            repeating-radial-gradient(circle at 94% 25%, rgba(74,124,89,0.05) 0, rgba(74,124,89,0.05) 1px, transparent 1px, transparent 16px),
            repeating-radial-gradient(circle at 40% 80%, rgba(74,124,89,0.04) 0, rgba(74,124,89,0.04) 1px, transparent 1px, transparent 22px),
            rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    /* スマホ・タブレットなど「ホバー」が存在しない端末では常に濃く（見やすく）表示する */
    @media (hover: none), (pointer: coarse) {
        header {
            background:
                repeating-radial-gradient(circle at 94% 25%, rgba(74,124,89,0.05) 0, rgba(74,124,89,0.05) 1px, transparent 1px, transparent 16px),
                repeating-radial-gradient(circle at 40% 80%, rgba(74,124,89,0.04) 0, rgba(74,124,89,0.04) 1px, transparent 1px, transparent 22px),
                rgba(255, 255, 255, 0.97);
            backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        }
    }
    .logo-container { display: flex; align-items: center; gap: 12px; min-width: 0; }
    .logo-img {
        height: 40px; width: 46px; flex-shrink: 0;
        background-image: url('assets/img/site-logo.png');
        background-size: contain; background-repeat: no-repeat; background-position: center;
    }
    .logo-text-group { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
    .logo-text {
        font-size: 1.05rem; font-weight: bold; color: var(--primary-color); letter-spacing: 0.02em;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .logo-sub { font-size: 0.65rem; color: var(--accent-dark); font-weight: bold; letter-spacing: 0.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* ヘッダー内の目次（各セクションへのショートカット）。狭い画面では
       隠して、ロゴ・電話・お問い合わせボタンを優先する。 */
    .header-toc { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; flex-shrink: 0; }
    .header-toc button {
        /* .toc-item（左側の丸ドットナビ）と data-target 連携のためクラスを共有しているが、
           丸ドット用の width/height/border-radius/背景/position/擬似要素は全て打ち消す。 */
        width: auto; height: auto; min-width: 0; max-width: none;
        background-color: transparent; border: none; position: static; transform: none;
        font-family: inherit; cursor: pointer;
        font-size: 0.78rem; font-weight: bold; color: var(--text-color); opacity: 0.75;
        padding: 7px 9px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
        transition: background 0.2s, color 0.2s, opacity 0.2s;
    }
    .header-toc button::after { content: none; }
    .header-toc button:hover { background: var(--bg-soft); opacity: 1; }
    .header-toc button.active { color: var(--primary-color); opacity: 1; background: var(--bg-soft); transform: none; }
    /* 複数セクションにまたがる大テーマ（Re：カエルン／リト／ローン等）の現在地表示。
       同じグループのセクションが続く間は表示されたまま残り、
       グループが切り替わる（＝終わる）瞬間にフェードで消える。 */
    .group-badge {
        position: fixed; top: 84px; left: 24px; z-index: 500;
        background: rgba(30, 40, 30, 0.74); color: #fff;
        padding: 7px 18px; border-radius: 20px;
        font-size: 0.8rem; font-weight: bold; letter-spacing: 0.04em;
        opacity: 0; transform: translateY(-6px); pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
        backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    }
    .group-badge.visible { opacity: 1; transform: translateY(0); }
    @media (max-width: 768px) {
        .group-badge { top: 64px; left: 14px; font-size: 0.7rem; padding: 6px 14px; }
    }
    @media (max-width: 1240px) {
        .header-toc { display: none; }
    }
    .header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
    .tel-link {
        display: none; align-items: center; gap: 6px; font-weight: bold; font-size: 0.95rem; color: var(--primary-dark);
    }
    .tel-btn {
        font-weight: bold; font-size: 0.9rem; white-space: nowrap; font-family: inherit;
        color: #fff; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        padding: 10px 22px; border-radius: 30px; border: none; display: flex; align-items: center; gap: 6px;
        transition: all 0.3s; cursor: pointer; box-shadow: 0 4px 10px rgba(74, 124, 89, 0.3);
    }
    .tel-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(74, 124, 89, 0.4); opacity: 1; }
    .tel-btn-short { display: none; }
    /* -------------------------------------
       3. フローティングボタン
    -------------------------------------- */
    .float-btns {
        position: fixed; right: 0; top: 50%; transform: translateY(-50%);
        display: flex; flex-direction: column; gap: 10px; z-index: 990;
    }
    .float-btns a, .float-btns button {
        display: flex; align-items: center; justify-content: center;
        width: 140px; padding: 15px 10px; background: #fff; color: var(--primary-color);
        font-size: 0.82rem; font-weight: bold; font-family: inherit; cursor: pointer;
        text-align: center; line-height: 1.4; border: 2px solid var(--primary-color);
        border-right: none; border-radius: 12px 0 0 12px;
        box-shadow: -4px 5px 15px rgba(0,0,0,0.08); transition: all 0.3s;
    }
    .float-btns a:hover, .float-btns button:hover { background: var(--primary-color); color: #fff; width: 150px; opacity: 1; }
    @media (max-width: 1400px) { .float-btns { display: none; } }
    /* -------------------------------------
       4. メインビジュアル（変更なし部分）
    -------------------------------------- */
    .mv {
        margin-top: 66px; position: relative; height: 90vh; width: 100%; overflow: hidden;
        background: var(--primary-dark);
    }
    .slide {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background-size: cover; background-position: center;
        opacity: 0; transform: scale(1);
        transition: opacity 2.5s ease-in-out, transform 10s linear;
    }
    .slide.active { opacity: 1; transform: scale(1.08); z-index: 1; }
    .mv::after {
        content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: linear-gradient(to right, rgba(44,82,55,0.6), rgba(44,82,55,0.2)); z-index: 2; pointer-events: none;
    }
    .mv-content {
        position: relative; z-index: 3; width: 100%; height: 100%;
        display: flex; justify-content: center; align-items: center; text-align: center;
        box-sizing: border-box;
        /* フルページ表示中は .mv も他のセクションと同じく画面いっぱい（高さ100vh・
           margin:0扱い）で固定表示されるため、.mv自身のmargin-topだけでは
           固定ヘッダーとの間隔を確保できず、画面の高さが十分でない場合に
           縦書きテキストの上端がヘッダーの帯の裏に隠れてしまうことがあった。
           他のセクションと同様、中央寄せの基準となるこの内側の要素に
           ヘッダー分の上余白を持たせることで、常にヘッダーの下に収まるようにする。
           下側も同様に、画面下部のSCROLL案内と文字が重ならないよう余白を確保する。 */
        padding-top: 88px;
        padding-bottom: 110px;
    }
    .mv-content h1 {
        font-family: var(--font-sans);
        color: #fff;
        /* 最長行（13文字）が、ヘッダー分の上余白(88px)とSCROLL案内分の下余白(110px)を
           除いた残りの高さに必ず収まるよう、文字ごとの高さ(line-height:1.08 + gap:0.06em、
           13文字なら合計およそ14.76em)から逆算したフォントサイズを使う。
           これにより、画面の高さが変わっても見出しがヘッダーやSCROLL案内と
           重ならないようにしている。 */
        font-size: clamp(1.8rem, calc((100vh - 198px) / 14.76), 3.5rem);
        font-weight: normal;
        text-shadow: 0 4px 15px rgba(0,0,0,0.5);
        /* 見出しの縦書きは CSS の writing-mode:vertical-rl ではなく、
           flexbox（行=縦方向のcolumn、行同士はrow-reverseで右から左）で組んでいる。
           一文字ずつ .mv-char の span/divに分けてふわっと表示するアニメーションを
           実装した際、writing-mode:vertical-rl + 1文字だけの独立した要素という
           組み合わせで、フォント（特に代替フォントのNoto Serif JP）の縦書き用
           メトリクス次第では一部の漢字（例：理・想・暮・住など）だけ行送りの
           基準位置がブラウザ側で正しく計算されず、隣の文字と重なって表示されて
           しまう不具合が発生した。box-sizeやvertical-alignなど様々な指定で
           回避を試みたが、これは文字の描画位置そのものがフォント側の縦書き
           メトリクスに依存するため解消できなかった。writing-modeを使わず
           flexboxで縦方向に文字を積み上げる形にすることで、フォントの縦書き
           メトリクスに依存しない、常に安定したレイアウトにしている
           （見た目は縦書きと同じになる）。 */
        display: flex;
        flex-direction: row-reverse;
        align-items: flex-start;
        justify-content: center;
        gap: 0.85em;
        flex-shrink: 0;
    }
    /* 縦書きの1行分（例：「あきらめない理想の暮らしを」）に対応する縦方向の文字列。 */
    .mv-content h1 .mv-line {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.06em;
    }
    /* メインビジュアルの見出しを一文字ずつ、ふわっと浮かび上がるように表示する演出。
       JSで各文字を.mv-charで囲み、順番にアニメーション開始時刻をずらす。 */
    .mv-content h1 .mv-char {
        display: block;
        line-height: 1.08;
        opacity: 0;
        transform: translateY(18px) scale(0.8);
        filter: blur(3px);
        animation: mvCharIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
        animation-play-state: paused;
    }
    .mv-content h1.mv-chars-run .mv-char { animation-play-state: running; }
    @keyframes mvCharIn {
        0% { opacity: 0; transform: translateY(18px) scale(0.8); filter: blur(3px); }
        55% { opacity: 1; filter: blur(0); }
        100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
    }
    .scroll-prompt {
        position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
        z-index: 10; display: flex; flex-direction: column; align-items: center;
        color: #fff; font-size: 0.9rem; font-weight: bold;
        animation: bounce 2s infinite; letter-spacing: 2px;
    }
    .scroll-prompt .arrow {
        width: 20px; height: 20px; border-right: 3px solid #fff; border-bottom: 3px solid #fff;
        transform: rotate(45deg); margin-top: 10px;
    }
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
        40% { transform: translate(-50%, -15px); }
        60% { transform: translate(-50%, -7px); }
    }
    @media (max-width: 768px) {
        .scroll-prompt { bottom: 8px; font-size: 0.62rem; letter-spacing: 1px; }
        .scroll-prompt .arrow { width: 12px; height: 12px; margin-top: 5px; border-width: 2px; }
    }
    /* -------------------------------------
       5. 斜め背景レイヤー
    -------------------------------------- */
    /* 上下の余白をあえて非対称にし、全セクションが判で押したように
       均等な間隔で並ぶ単調さを減らす（通常スクロールページのみ。
       フルページ演出中は別ルールで上書きされるため影響しない） */
    .skew-layer-dark {
        position: relative; padding: 80px 20px; margin: 74px 0 108px; color: #fff; z-index: 1; overflow: hidden;
        /* 帯自体が斜めにカットされた形をしているため、通常のbox-shadowではなく
           filter:drop-shadow（要素の実際の見た目のシルエットに沿って影を落とす）を使う。
           overflow:hiddenと組み合わせても、drop-shadowの影自体はクリップされずに
           外側へはみ出して表示される（両立可能な組み合わせ）。 */
        filter: drop-shadow(0 4px 10px rgba(0,0,0,0.16)) drop-shadow(0 24px 42px rgba(0,0,0,0.22));
    }
    .skew-layer-dark::before {
        content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background:
            repeating-radial-gradient(circle at 18% 25%, rgba(255,255,255,0.07) 0, rgba(255,255,255,0.07) 1px, transparent 1px, transparent 20px),
            repeating-radial-gradient(circle at 82% 78%, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 26px),
            linear-gradient(135deg, var(--primary-dark), var(--primary-color));
        z-index: -1;
        /* 角の斜めカットは幅に比例しない固定pxのclip-pathで表現し、
           ワイド画面で切れ込みが際限なく大きくなる（＝下の要素に被る）のを防ぐ */
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 100px));
        box-shadow: inset 0 10px 30px rgba(0,0,0,0.3);
    }
    .skew-layer-dark::after {
        content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(246, 192, 38, 0.85);
        z-index: -2;
    }
    .skew-layer-soft {
        position: relative; padding: 80px 20px; margin: 108px 0 74px; z-index: 1; overflow: hidden;
        /* .skew-layer-darkと同じ理由でfilter:drop-shadowを使用（斜めカット形状に沿った影） */
        filter: drop-shadow(0 4px 10px rgba(44,82,55,0.09)) drop-shadow(0 22px 40px rgba(44,82,55,0.13));
    }
    .skew-layer-soft::before {
        content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background:
            repeating-radial-gradient(circle at 15% 20%, rgba(74,124,89,0.06) 0, rgba(74,124,89,0.06) 1px, transparent 1px, transparent 20px),
            repeating-radial-gradient(circle at 85% 80%, rgba(74,124,89,0.05) 0, rgba(74,124,89,0.05) 1px, transparent 1px, transparent 26px),
            var(--bg-soft);
        z-index: -1;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 100px), 0 100%);
    }
    /* 帯の背景を、右上から斜めに左下へカーペットを敷くように登場させる演出。
       スクロールで画面に入った瞬間に一度だけ再生する（他の .reveal 系と同じ一方向）。
       transform-origin を右上に置き、そこから回転・縮小した状態→定位置へ、という
       動きにすることで「右上から斜めに広がる」動きに見せる。 */
    .skew-reveal::before {
        transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.85s ease;
        transform-origin: 100% 0%;
        transform: translate(6%, -12%) rotate(-7deg) scale(0.35);
        opacity: 0;
    }
    .skew-reveal.skew-in::before { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
    .skew-layer-dark.skew-reveal::after {
        transition: opacity 1s ease 0.2s;
        opacity: 0;
    }
    .skew-layer-dark.skew-reveal.skew-in::after { opacity: 1; }
    @media (prefers-reduced-motion: reduce) {
        .skew-reveal::before, .skew-layer-dark.skew-reveal::after { transition: none; transform: none; opacity: 1; }
    }
    @media (max-width: 520px) {
        .skew-layer-dark::before { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 54px)); }
        .skew-layer-soft::before { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 54px), 0 100%); }
    }
    /* -------------------------------------
       6. 共通セクション
    -------------------------------------- */
    section { padding: 38px 32px; max-width: 1320px; margin: 0 auto; position: relative; z-index: 2; }
    @media (max-width: 900px) {
        section { max-width: 1100px; }
    }
    .sec-subtitle {
        /* 見出し本体（sec-title）とのサイズ・太さの差を広げるため、
           あえて小さめ・広めの字間にして「ラベル感」を強める */
        text-align: center; color: var(--accent-dark);
        font-size: 0.82rem; letter-spacing: 0.26em; margin-bottom: 12px; display: block; text-transform: uppercase; font-weight: 800;
    }
    .sec-title {
        font-family: var(--font-sans);
        /* sec-leadとのコントラストを強めるため、サイズを少し大きく・太さも
           太字寄りに引き上げ、色もより濃いプライマリーダークに変更 */
        text-align: center; font-size: 2.2rem; margin-bottom: 22px; color: var(--primary-dark);
        padding-bottom: 22px; position: relative; font-weight: 900; line-height: 1.55;
    }
    .sec-title::after {
        content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
        width: 0; height: 5px; background: var(--accent-color); border-radius: 3px;
        box-shadow: 0 3px 6px rgba(220,167,26,0.35);
        transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s;
    }
    .sec-title.active::after { width: 80px; }
    .sec-lead {
        /* タイトルより軽い太さ・小さめサイズ・やわらかい色にして
           メリハリ（コントラスト）をつける */
        text-align: center; max-width: 760px; margin: 0 auto 42px; color: #666;
        font-size: 0.94rem; font-weight: 400;
    }
    .title-tail-wrap { position: relative; display: inline-block; }
    .skew-layer-dark .sec-title, .skew-layer-dark .sec-lead { color: #fff; }
    .skew-layer-dark .sec-subtitle { color: var(--accent-color); }
    /* CTA 帯 */
    .cta-inner {
        max-width: 850px; margin: 40px auto 0; background: #fff; padding: 40px 50px; border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.25); border: 4px solid var(--accent-color);
        display: block; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer;
        text-align: center; color: var(--text-color); position: relative; overflow: hidden;
        /* フルページ表示のセクション（縦方向flexboxのコンテナ）の中に
           このカードを置くと、画面の高さが低いスマホ（横向き含む）では
           カードの内容（見出し・本文・ボタン）が入りきらない場合に、
           overflow:hiddenを指定した要素はflexboxの「自動最小サイズ」が0に
           なる仕様により、中身がちぎれて見えなくなるまで潰されてしまう
           不具合があった（見出しの文章が下端で見切れる形で発生）。
           flex-shrink:0で「このカードは潰さない」ことを明示し、画面に
           収まらない分はセクション側のスクロールに任せるようにする。 */
        flex-shrink: 0;
    }
    .cta-inner:hover { transform: translateY(-8px); box-shadow: 0 30px 50px rgba(0,0,0,0.3); opacity: 1; }
    .cta-inner h3 { font-family: var(--font-sans); color: var(--primary-dark); font-size: 1.6rem; margin-bottom: 12px; font-weight: 900; }
    .cta-inner p { font-size: 0.9rem; color: #666; margin-bottom: 0; font-weight: 400; }
    .cta-btn-mock {
        display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: #fff;
        /* 単色イエローだけでなく、テラコッタへ抜けるグラデーションにして
           単調な塗りムラのない配色にならないようにする */
        background: linear-gradient(120deg, var(--accent-color), var(--accent-terracotta));
        padding: 14px 34px; border-radius: 30px; font-weight: bold;
        box-shadow: 0 10px 22px rgba(193,112,74,0.28);
    }
    .cta-note { text-align: center; font-size: 0.8rem; color: #888; margin-top: 14px; }
    /* -------------------------------------
       FOR YOU（こんな方におすすめ）
    -------------------------------------- */
    .recommend-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .recommend-item {
        display: flex; align-items: center; gap: 18px;
        background: repeating-radial-gradient(circle at 92% 15%, rgba(74,124,89,0.035) 0, rgba(74,124,89,0.035) 1px, transparent 1px, transparent 16px), #fff;
        border: 1px solid var(--border-color);
        border-left: 6px solid var(--primary-color); border-radius: 12px; padding: 22px 24px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s;
    }
    .recommend-item:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(0,0,0,0.1); }
    .recommend-num {
        flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--primary-color); color: #fff;
        display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem;
    }
    .recommend-item p { font-weight: bold; color: var(--primary-dark); font-size: 1.02rem; }
    /* 規格住宅の特長（画像付きの大きめカード表示） */
    .rito-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 760px; margin: 0 auto; }
    .rito-feature-card { text-align: left; }
    .rito-feature-card .rito-feature-media {
        width: 100%; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; margin-bottom: 16px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    }
    .rito-feature-card .rito-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .rito-feature-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
    .rito-feature-card .recommend-num { width: 40px; height: 40px; }
    .rito-feature-card h4 { font-family: var(--font-sans); font-size: 1.15rem; color: var(--primary-color); }
    .rito-feature-card p { font-size: 0.92rem; color: #444; line-height: 1.7; font-weight: normal; }
    @media (max-width: 768px) {
        .rito-feature-grid { grid-template-columns: 1fr; gap: 16px; max-width: 420px; }
        .rito-feature-card h4 { font-size: 1rem; }
        .rito-feature-card p { font-size: 0.82rem; line-height: 1.6; }
    }
    /* -------------------------------------
       比較セクション
    -------------------------------------- */
    /* 比較の2カードはフルページ化で1画面=1カードずつに分割したため、
       2カラムグリッドではなく中央寄せの単カラムにする */
    .compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 1080px; gap: 28px; margin: 10px auto 0; align-items: stretch; }
    .compare-card { border-radius: 16px; padding: 28px 24px; text-align: center; position: relative; display: flex; flex-direction: column; }
    /* max-width:100%（共通リセット）が calc(100% + 48px) の「はみ出し」指定を
       打ち消してしまい、画像がカード枠の右側まで届かず隙間ができるため、
       ここだけ明示的に max-width を解除する。 */
    .compare-media { position: relative; width: calc(100% + 48px); max-width: none; margin: -28px -24px 18px; aspect-ratio: 16/9; overflow: hidden; border-radius: 16px 16px 0 0; background: #ddd; flex-shrink: 0; }
    .compare-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
    .compare-card.bad .compare-media img { filter: grayscale(65%) brightness(0.92); }
    .compare-card.bad {
        background: repeating-radial-gradient(circle at 25% 30%, rgba(0,0,0,0.03) 0, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 16px), #f5f5f5;
        border: 2px solid var(--border-color);
    }
    .compare-card.good {
        background: repeating-radial-gradient(circle at 25% 30%, rgba(74,124,89,0.06) 0, rgba(74,124,89,0.06) 1px, transparent 1px, transparent 16px), #eef7f0;
        border: 2px solid var(--primary-color);
    }
    .compare-card h4 { font-size: 1.1rem; margin-bottom: 6px; color: #555; }
    .compare-card.good h4 { color: var(--primary-dark); }
    .compare-mark { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: bold; font-size: 1.3rem; margin: 14px 0; position: relative; }
    .compare-card.bad .compare-mark { color: var(--danger-color); }
    .compare-card.good .compare-mark { color: var(--primary-color); }
    .compare-mark .icon { width: 1.3rem; height: 1.3rem; }
    .compare-card p.desc { font-size: 0.9rem; color: #666; }
    .compare-arrow { text-align: center; margin: 26px 0; color: var(--accent-dark); }
    .compare-arrow .icon { width: 34px; height: 34px; transform: rotate(90deg); }
    /* -------------------------------------
       強み（STRENGTHS）
    -------------------------------------- */
    .strength-row { display: flex; gap: 44px; align-items: center; margin-bottom: 58px; }
    .strength-row:nth-child(even) { flex-direction: row-reverse; }
    .strength-row:last-child { margin-bottom: 0; }
    .strength-visual {
        flex: 0 0 160px; width: 160px; height: 160px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
        background:
            repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.12) 0, rgba(255,255,255,0.12) 1px, transparent 1px, transparent 14px),
            linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: #fff;
        box-shadow: 0 15px 30px rgba(74,124,89,0.3);
    }
    .strength-visual .icon { width: 62px; height: 62px; }
    .strength-text h3 { font-family: var(--font-sans); font-size: 1.4rem; margin-bottom: 14px; color: var(--primary-color); }
    .strength-text p { font-size: 0.95rem; color: #444; }
    /* -------------------------------------
       BEFORE&AFTER / 施工事例
    -------------------------------------- */
    .example-card {
        background: #fff; margin-bottom: 42px; border-radius: 20px; overflow: hidden;
        box-shadow: 0 15px 40px rgba(0,0,0,0.08); transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
    .example-card:last-child { margin-bottom: 0; }
    .example-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.16); }
    .example-card-inner { display: flex; }
    .example-photos { width: 52%; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; }
    .example-info { width: 48%; padding: 38px; display: flex; flex-direction: column; justify-content: center; }
    .example-info h4 { font-family: var(--font-sans); font-size: 1.35rem; margin-bottom: 16px; color: var(--primary-color); line-height: 1.5; }
    .example-info p { font-size: 0.92rem; margin-bottom: 20px; color: #555; }
    .example-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
    .example-tags span {
        display: inline-flex; align-items: center; gap: 5px; background: var(--bg-soft); color: var(--primary-dark);
        font-size: 0.78rem; font-weight: bold; padding: 6px 12px; border-radius: 20px; border: 1px solid #dce8de;
    }
    .example-tags .icon { width: 0.9em; height: 0.9em; color: var(--primary-color); }
    .example-note { font-size: 0.75rem; color: #999; }
    .example-reason {
        background: repeating-radial-gradient(circle at 90% 15%, rgba(74,124,89,0.05) 0, rgba(74,124,89,0.05) 1px, transparent 1px, transparent 16px), var(--bg-soft);
        border-left: 4px solid var(--accent-color); padding: 14px 18px; border-radius: 8px; font-size: 0.85rem; color: #555;
    }
    .example-reason strong { display: block; color: var(--primary-dark); margin-bottom: 4px; font-size: 0.85rem; }
    .example-spec { font-size: 0.85rem; background: #f9f9f9; padding: 18px; border-radius: 10px; border-left: 5px solid var(--accent-color); list-style: none; margin-top: 6px; }
    .example-spec li { margin-bottom: 6px; color: var(--text-color); font-weight: bold; }
    /* 複数の事例カードを1画面にまとめて表示するためのコンパクト版。
       画像は左、テキストは右のまま、余白・文字サイズだけを詰める。 */
    .example-card-stack { display: flex; flex-direction: column; gap: 16px; }
    .example-card.compact { margin-bottom: 0; }
    .example-card.compact .example-photos { width: 42%; }
    .example-card.compact .example-info { width: 58%; padding: 18px 26px; }
    .example-card.compact .example-info h4 { font-size: 1.05rem; margin-bottom: 8px; }
    .example-card.compact .example-info p { font-size: 0.8rem; margin-bottom: 10px; line-height: 1.5; }
    .example-card.compact .example-tags { margin-bottom: 8px; gap: 6px; }
    .example-card.compact .example-tags span { font-size: 0.7rem; padding: 4px 9px; }
    .example-card.compact .example-reason { padding: 8px 14px; font-size: 0.74rem; }
    .example-card.compact .example-reason strong { font-size: 0.74rem; margin-bottom: 2px; }
    .example-card.compact .example-note { font-size: 0.68rem; }
    /* ベースの .example-photo { min-height: 220px } はデフォルト（1画面に1件）向けの値で、
       複数件をコンパクトに並べる compact 版では小さすぎる下限になり、画像列の高さに
       引きずられてカード全体が画面をはみ出す原因になる。ここで打ち消す。 */
    .example-card.compact .example-photos { align-self: stretch; }
    .example-card.compact .example-photo { min-height: 0; height: 100%; }
    /* デスクトップ／タブレット幅では2枚のカードを縦に積まず横並びにする。
       これにより専有する縦の高さがほぼ半分になり画面内に収まりやすくなる上、
       写真を各カードの上部いっぱいに大きく見せられる（枠の形も他セクションと
       差別化できるよう左右非対称の角丸にする）。 */
    @media (min-width: 769px) {
        .example-card-stack { flex-direction: row; align-items: stretch; gap: 28px; }
        .example-card-stack .example-card.compact { flex: 1; min-width: 0; margin-bottom: 0; border-radius: 28px 28px 28px 4px; }
        #cases .example-card-stack .example-card.compact { border-radius: 4px 28px 28px 28px; }
        .example-card.compact .example-card-inner { flex-direction: column; height: 100%; }
        .example-card.compact .example-photos { width: 100%; }
        .example-card.compact .example-photo { aspect-ratio: 16/9; height: auto; min-height: 0; }
        .example-card.compact .example-info { width: 100%; padding: 20px 26px 22px; }
        #cases .example-card.compact .example-photo { aspect-ratio: 28/9; }
        #cases .example-card.compact .example-info { padding: 14px 24px 16px; }
        #cases .example-card.compact .example-info h4 { margin-bottom: 5px; }
        #cases .example-card.compact .example-reason { padding: 6px 12px; font-size: 0.68rem; }
        #cases .example-card.compact .example-reason strong { font-size: 0.68rem; margin-bottom: 1px; }
        #cases .example-card.compact .example-info p { margin-bottom: 5px; }
        #cases .example-card.compact .example-tags { margin-bottom: 5px; }
        #cases .example-card.compact .example-note { display: none; }
    }
    /* かなり縦が短いビューポート（低めのノートPCなど）向けの追加調整。
       事例カードの理由ボックスを畳んで、確実に1画面に収める。 */
    @media (min-width: 769px) and (max-height: 760px) {
        #cases .example-card.compact .example-photo { aspect-ratio: 40/9; }
        #cases .example-card.compact .example-tags { display: none; }
        #cases .example-card.compact .example-reason { display: none; }
    }
    @media (max-width: 768px) {
        .example-card.compact .example-card-inner { flex-direction: row; align-items: stretch; }
        .example-card.compact .example-photos { width: 38%; height: auto; }
        .example-card.compact .example-photo { min-height: 0; height: auto; aspect-ratio: 4/3; }
        .example-card.compact .example-info { width: 62%; padding: 12px 14px; }
        .example-card.compact .example-info h4 { font-size: 0.86rem; margin-bottom: 4px; line-height: 1.35; }
        .example-card.compact .example-info p { font-size: 0.68rem; margin-bottom: 6px; line-height: 1.4; }
        .example-card.compact .example-tags { display: none; }
        .example-card.compact .example-reason { display: none; }
        .example-card.compact .example-note { display: none; }
    }
    /* スマホでも縦が短い機種（iPhone SEなど）では、2枚のカード＋見出し・リード文が
       画面に収まりきらないことがあるため、さらに一段階詰める。 */
    @media (max-width: 768px) and (max-height: 700px) {
        .example-card-stack { gap: 10px; }
        .example-card.compact .example-info { padding: 8px 12px; }
        .example-card.compact .example-info h4 { font-size: 0.78rem; line-height: 1.3; margin-bottom: 3px; }
        .example-card.compact .example-info p { font-size: 0.64rem; line-height: 1.35; margin-bottom: 0; }
        .example-card.compact .example-photo { aspect-ratio: 16/9; }
        #examples .sec-lead, #cases .sec-lead { margin-bottom: 10px; }
        #examples .sec-title, #cases .sec-title { font-size: 1.1rem; margin-bottom: 6px; padding-bottom: 8px; }
    }
    @media (max-width: 768px) and (max-height: 600px) {
        .example-card.compact .example-info p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        #examples .sec-lead, #cases .sec-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.72rem; }
    }
    /* Strengths（強み）：3項目を1画面の横並びカードにまとめる */
    .strength-compact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
    .strength-compact-card { text-align: left; }
    .strength-compact-card .strength-compact-media {
        width: 100%; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; margin-bottom: 14px;
        box-shadow: 0 10px 24px rgba(0,0,0,0.12); position: relative;
    }
    .strength-compact-card .strength-compact-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .strength-compact-card .strength-compact-media.icon-media {
        display: flex; align-items: center; justify-content: center; background: var(--bg-soft); color: var(--primary-color);
    }
    .strength-compact-card .strength-compact-media.icon-media .icon { width: 44px; height: 44px; }
    .strength-compact-card h3 {
        font-family: var(--font-sans); font-size: 1.02rem; margin-bottom: 8px; color: var(--primary-color); line-height: 1.4;
    }
    .strength-compact-card p { font-size: 0.78rem; color: #444; line-height: 1.6; }
    @media (max-width: 768px) {
        .strength-compact-grid { grid-template-columns: 1fr; gap: 14px; }
        .strength-compact-card { display: flex; align-items: center; gap: 14px; text-align: left; }
        .strength-compact-card .strength-compact-media { width: 88px; height: 88px; aspect-ratio: auto; margin-bottom: 0; flex-shrink: 0; }
        .strength-compact-card .strength-compact-media.icon-media .icon { width: 30px; height: 30px; }
        .strength-compact-card h3 { font-size: 0.9rem; margin-bottom: 4px; }
        .strength-compact-card p { font-size: 0.72rem; line-height: 1.5; }
    }
    /* -------------------------------------
       CUSTOMIZE（選べるプラン／タブ）
    -------------------------------------- */
    .plan-tabs { display: flex; max-width: 500px; margin: 0 auto 40px; border-radius: 30px; overflow: visible; border: 2px solid var(--primary-color); }
    .plan-tabs input { display: none; }
    .plan-tabs label {
        flex: 1; text-align: center; padding: 14px 10px; font-weight: bold; cursor: pointer; background: #fff; color: var(--primary-color);
        transition: background 0.3s, color 0.3s; font-size: 0.95rem; position: relative;
    }
    .plan-tabs label:first-child { border-radius: 28px 0 0 28px; }
    .plan-tabs label:last-child { border-radius: 0 28px 28px 0; }
    #tab-standard:checked ~ .plan-tabs label[for="tab-standard"],
    #tab-option:checked ~ .plan-tabs label[for="tab-option"] {
        background: var(--primary-color); color: #fff;
    }
    /* オプションプランタブ：未選択の間は目を引くように点滅させてクリックを誘う */
    .plan-tabs label[for="tab-option"] {
        animation: tabOptionPulse 1.8s ease-in-out infinite;
    }
    #tab-option:checked ~ .plan-tabs label[for="tab-option"] {
        animation: none;
        box-shadow: none;
    }
    @keyframes tabOptionPulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(246, 192, 38, 0.65); transform: scale(1); }
        50% { box-shadow: 0 0 0 8px rgba(246, 192, 38, 0); transform: scale(1.05); }
    }
    @media (prefers-reduced-motion: reduce) {
        .plan-tabs label[for="tab-option"] { animation: none; }
    }
    .plan-panels { position: relative; }
    .plan-panel { display: none; animation: fadeUp 0.5s ease; }
    #tab-standard:checked ~ .plan-panels #panel-standard { display: block; }
    #tab-option:checked ~ .plan-panels #panel-option { display: block; }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: translateY(0);} }
    .plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
    /* Customize（標準／オプション）は1画面=2枚ずつに分割したため、
       4カラムグリッドではなく中央寄せの2カラムにする */
    .plan-grid.plan-grid-pair { grid-template-columns: repeat(2, 1fr); max-width: 560px; margin: 0 auto; }
    .plan-card {
        background: repeating-radial-gradient(circle at 90% 8%, rgba(74,124,89,0.035) 0, rgba(74,124,89,0.035) 1px, transparent 1px, transparent 16px), #fff;
        border: 1px solid var(--border-color); border-radius: 14px; padding: 26px 18px; text-align: center;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s;
        display: flex; flex-direction: column;
    }
    .plan-card:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(0,0,0,0.1); }
    .plan-icon {
        width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
        background: var(--bg-soft); color: var(--primary-color);
    }
    .plan-card.option .plan-icon { background: #fff4e2; color: var(--accent-dark); }
    .plan-icon .icon { width: 26px; height: 26px; }
    .plan-card h4 { font-size: 0.98rem; margin-bottom: 8px; color: var(--primary-dark); }
    .plan-card p { font-size: 0.82rem; color: #666; margin-bottom: 12px; }
    /* カード内の高さがテキスト量によって異なっても、バッジ・画像などの「締めの要素」は
       常にカード下端に揃うように統一する */
    .plan-card .plan-badge, .plan-card .plan-shapes { margin-top: auto; }
    .plan-badge { display: inline-block; font-size: 0.72rem; font-weight: bold; padding: 4px 12px; border-radius: 20px; }
    .plan-badge.free { background: var(--primary-color); color: #fff; }
    .plan-badge.option { background: var(--accent-color); color: #fff; }
    .plan-shapes { display: flex; justify-content: center; gap: 14px; padding-top: 10px; }
    .plan-shape { display: flex; flex-direction: column; align-items: center; gap: 6px; }
    .plan-shape-icon {
        width: 46px; height: 46px; border-radius: 10px; background: var(--bg-soft); color: var(--primary-color);
        display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color);
    }
    .plan-shape-icon .icon { width: 24px; height: 24px; }
    .plan-shape span { font-size: 0.68rem; font-weight: bold; color: #666; }
    .plan-group-head { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
    .plan-group-head:not(:first-child) { margin-top: 40px; }
    .plan-group-head .plan-group-icon {
        width: 34px; height: 34px; border-radius: 8px; background: var(--bg-soft); color: var(--primary-color);
        display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); flex-shrink: 0;
    }
    .plan-group-head .plan-group-icon .icon { width: 18px; height: 18px; }
    .plan-group-head h4 { font-size: 1.02rem; color: var(--primary-dark); }
    /* 坪数別プラン：正方形／長方形を矢印で切り替えるスイッチャー */
    .plan-switcher { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 14px; }
    .plan-switch-arrow {
        width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: #fff;
        color: var(--primary-color); display: flex; align-items: center; justify-content: center; cursor: pointer;
        flex-shrink: 0; transition: background 0.2s, transform 0.2s; padding: 0;
    }
    .plan-switch-arrow:hover { background: var(--bg-soft); transform: scale(1.06); }
    .plan-switch-arrow .icon { width: 20px; height: 20px; }
    /* 「標準プラン」表示中など、まだ見ていない他のプランがあることに気づいてもらうため、
       次へ進む矢印をやさしく点滅（パルス）させるヒント演出。 */
    .plan-switch-arrow.plan-switch-arrow-hint { animation: planArrowHint 1.6s ease-in-out infinite; }
    @keyframes planArrowHint {
        0%, 100% { box-shadow: 0 0 0 0 rgba(74, 124, 89, 0.45); transform: scale(1); }
        50% { box-shadow: 0 0 0 9px rgba(74, 124, 89, 0); transform: scale(1.08); }
    }
    .plan-switch-label { display: flex; align-items: center; gap: 10px; min-width: 170px; justify-content: center; }
    .plan-switch-label h4 { font-size: 1.05rem; color: var(--primary-dark); }
    .plan-switch-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; }
    .plan-switch-dots span {
        width: 8px; height: 8px; border-radius: 50%; background: var(--border-color); cursor: pointer;
        transition: background 0.2s, transform 0.2s;
    }
    .plan-switch-dots span.active { background: var(--primary-color); transform: scale(1.2); }
    [data-plan-panel] { animation: fadeUp 0.4s ease; }
    [data-plan-panel][hidden] { display: none; }
    .plan-image-ph {
        width: 100%; border-radius: 10px; margin-bottom: 14px; background: var(--bg-soft);
        border: 1px dashed #b9d3bd; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
        color: var(--primary-color);
    }
    /* 正方形プラン・長方形プランのどちらも、画像比率とカードの枠の大きさを揃えるため
       間取り画像は常に4:3で統一する（「正方形/長方形」は建物の形状を表す名称であり、
       掲載する写真自体の縦横比ではないため）。 */
    .plan-image-ph.shape-square, .plan-image-ph.shape-rect { aspect-ratio: 4 / 3; }
    @media (max-width: 768px) {
        /* アイコンのプレースホルダーなので、狭い画面では正方形比率にこだわらず
           固定高さにしてカード全体の高さを詰める（1画面に収めるため） */
        .plan-image-ph.shape-square, .plan-image-ph.shape-rect { aspect-ratio: auto; height: 60px; margin-bottom: 8px; }
        .plan-image-ph .icon { width: 22px; height: 22px; }
        .plan-image-ph span { display: none; }
    }
    .plan-image-ph .icon { width: 32px; height: 32px; }
    .plan-image-ph span { font-size: 0.64rem; font-weight: bold; color: #8a9a8c; }
    /* 実際の間取り画像を設定したカードは、破線枠のプレースホルダー装飾を外して
       写真をそのままカード幅いっぱいに敷き詰める */
    .plan-image-ph.has-photo { border: none; background: var(--bg-soft); padding: 0; }
    .plan-image-ph.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
    /* 坪数別プラン（正方形／長方形）のカードは、クリックすると詳細と大きな画像を
       モーダルで表示できるようにする */
    #rito-plans .plan-card { cursor: pointer; }
    #rito-plans .plan-card:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 3px; }
    .plan-card-more {
        display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
        font-size: 0.78rem; font-weight: bold; color: var(--primary-color);
    }
    .plan-card-more .icon-arrow { transition: transform 0.2s; }
    #rito-plans .plan-card:hover .plan-card-more .icon-arrow { transform: translateX(4px); }
    /* プラン詳細モーダルは、間取り画像が主役になるようテキストより優先して大きく見せる。
       ただし、固定の余白で枠を大きくすると画面が低い端末でスクロールが必要になってしまうため、
       枠は「アスペクト比」で大きさを指定するにとどめる。これなら画面が低いときは
       枠と画像が一緒に縮んでスクロールなしで収まり、画面に余裕があるときはそのぶん
       大きく表示される（.modal-content の max-height + overflow-y:auto はそれでも
       収まりきらない場合の保険として残す）。 */
    /* 「.modal-content { max-width:640px }」より後ろで定義されていて上書きされてしまうため、
       #planModal を付けて詳細度を上げ、確実にこちらの幅が効くようにする */
    #planModal .plan-modal-content { max-width: 900px; padding: 32px 30px; overflow-y: auto; }
    /* 画像の縦横比（4:3）自体は変えず、枠を少し縦長のアスペクト比にすることで
       枠の中に上下の余白ができ、以前より枠自体はゆったり大きく見える。
       overflow:hidden の要素は flex 内で自動的に縮小できてしまう性質を利用し、
       画面が低いときは枠・画像とも一緒に縮小してスクロールを避ける
       （= 常に画像は枠内に収まり、切れることもスクロールも発生しない）。 */
    .plan-modal-image {
        width: 100%; aspect-ratio: 4 / 3.3; border-radius: 12px; overflow: hidden; margin-bottom: 18px;
        background: var(--bg-soft); min-height: 0;
    }
    /* 間取り図は写真と違い、端の寸法線や文字が切れると内容が伝わらなくなるため、
       object-fit:cover（はみ出た部分を切り取る）ではなく contain（全体を収める）にする */
    .plan-modal-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
    .plan-modal-image .plan-image-ph { height: 100%; border-radius: 0; border: none; margin-bottom: 0; }
    .plan-modal-image .plan-image-ph .icon { width: 48px; height: 48px; }
    .plan-modal-image .plan-image-ph span { font-size: 0.85rem; }
    /* プランA・B 2種類の間取りがあるカードは、ボタンで切り替えて1枚ずつ表示する。
       この場合 .plan-modal-image 自体は「トグルボタン＋画像枠」を縦に並べる入れ物になるため、
       ここに直接 aspect-ratio を指定すると画像枠（.plan-ab-image-wrap）の縮小が
       連動しなくなり、画面が低いときに画像だけが枠からはみ出して見切れてしまう。
       そこで .plan-modal-image.has-two 自身を縦方向 flex にし、.plan-ab-image-wrap を
       flex:1 1 auto + min-height:0 にすることで、画面が低いときは
       トグルボタン以外（＝画像枠と画像）がまとめて連動して縮み、
       スクロールも見切れも発生しないようにする。 */
    .plan-modal-image.has-two {
        aspect-ratio: auto; background: none; overflow: visible;
        display: flex; flex-direction: column; min-height: 0;
    }
    .plan-ab-toggle { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; flex-shrink: 0; }
    .plan-ab-btn {
        padding: 6px 20px; border-radius: 20px; border: 1px solid var(--border-color); background: #fff;
        color: var(--text-color); font-size: 0.85rem; font-weight: bold; cursor: pointer;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .plan-ab-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
    .plan-ab-image-wrap {
        width: 100%; aspect-ratio: 4 / 3.3; border-radius: 10px; overflow: hidden; background: var(--bg-soft);
        flex: 1 1 auto; min-height: 0;
    }
    .plan-ab-image { display: block; width: 100%; height: 100%; object-fit: contain; }
    #planModal .modal-content h2 { margin-bottom: 10px; }
    #planModal .modal-content p { color: #666; line-height: 1.8; }
    .plan-note {
        margin-top: 28px;
        background: repeating-radial-gradient(circle at 88% 20%, rgba(74,124,89,0.05) 0, rgba(74,124,89,0.05) 1px, transparent 1px, transparent 18px), var(--bg-soft);
        border: 1px dashed #b9d3bd; border-radius: 12px; padding: 22px 26px; text-align: center; font-size: 0.88rem; color: #555; position: relative;
        /* 平坦に見えないよう、うっすらとした影を追加 */
        box-shadow: 0 12px 26px rgba(44,82,55,0.07);
    }
    .plan-note strong { color: var(--primary-dark); display: block; margin-bottom: 6px; }
    /* 各セクションの枠からひょこっと顔を出すカエルの装飾 */
    .peek-frog { position: absolute; z-index: 4; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.22)); animation: frogBob 3.2s ease-in-out infinite; }
    @keyframes frogBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
    @keyframes frogBobMobile { 0%, 100% { transform: scale(0.75) translateY(0) rotate(-2deg); } 50% { transform: scale(0.75) translateY(-8px) rotate(2deg); } }
    @media (max-width: 560px) { .peek-frog { animation: frogBobMobile 3.2s ease-in-out infinite; } }
    @media (prefers-reduced-motion: reduce) {
        .reveal, .reveal-left, .reveal-right, .reveal-zoom, .reveal-unfold, .peek-frog, .value-frog, .contact-frog, .sec-title::after {
            animation: none !important; transition: none !important;
        }
        .mv-content h1 .mv-char {
            animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important;
        }
        .plan-switch-arrow.plan-switch-arrow-hint { animation: none !important; }
    }
    /* -------------------------------------
       LOAN & PLAN
    -------------------------------------- */
    .loan-section-media { max-width: 900px; margin: 0 auto 32px; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 32px rgba(0,0,0,0.3); }
    .loan-section-media img { display: block; width: 100%; height: 320px; object-fit: cover; }
    .loan-chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 30px 0 50px; }
    .loan-chip {
        display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.4); color: #fff; padding: 10px 20px; border-radius: 30px; font-size: 0.85rem; font-weight: bold;
    }
    .loan-chip .icon { color: var(--accent-color); width: 1.05em; height: 1.05em; }
    /* 「こんな方に選ばれています」の5項目を、画像付きのカードとして並べる */
    .loan-persona-grid { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1100px; gap: 18px; margin: 30px auto 50px; }
    .loan-persona {
        background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 14px;
        overflow: hidden; text-align: center; transition: transform 0.3s, background 0.3s;
    }
    .loan-persona:hover { transform: translateY(-6px); background: rgba(255,255,255,0.16); }
    .loan-persona-media { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }
    .loan-persona-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
    .loan-persona-body { padding: 14px 10px; }
    .loan-persona h4 {
        font-size: 0.8rem; margin: 0; color: #fff; line-height: 1.4;
        display: flex; align-items: center; justify-content: center; gap: 6px;
    }
    .loan-persona h4 .icon { color: var(--accent-color); width: 1em; height: 1em; flex-shrink: 0; }
    @media (max-width: 900px) {
        .loan-persona-grid { grid-template-columns: repeat(3, 1fr); max-width: 620px; }
    }
    @media (max-width: 520px) {
        .loan-persona-grid { grid-template-columns: repeat(2, 1fr); max-width: 360px; gap: 10px; margin: 16px auto 30px; }
        .loan-persona h4 { font-size: 0.72rem; }
        .loan-persona-body { padding: 8px 6px; }
    }
    /* 3項目を1画面にまとめて横並びで表示する */
    .loan-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 980px; gap: 20px; margin: 0 auto; }
    .loan-feature {
        background: repeating-radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 1px, transparent 1px, transparent 18px), rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.18); border-radius: 14px; padding: 24px 18px; text-align: center;
        backdrop-filter: blur(4px); transition: transform 0.3s, background 0.3s;
    }
    .loan-feature:hover { transform: translateY(-6px); background: rgba(255,255,255,0.16); }
    .loan-feature .plan-icon { background: rgba(255,255,255,0.14); color: var(--accent-color); }
    .loan-feature h4 { font-size: 1rem; margin-bottom: 10px; color: #fff; }
    .loan-feature p { font-size: 0.85rem; color: #ddd; }
    /* -------------------------------------
       2大柱（Re：カエルン／rito）イントロ
    -------------------------------------- */
    .pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 980px; margin: 0 auto; }
    .pillar-card {
        /* 縦方向は各カードとも高さが揃う（グリッドで自動的に等しい高さになる）ため、
           flex縦積み＋リンクにmargin-top:autoを使い、見出しの行数に関わらず
           「くわしく見る →」の高さ位置を3枚とも揃える */
        display: flex; flex-direction: column; text-align: center; padding: 38px 26px 34px; border-radius: 18px; text-decoration: none;
        background: repeating-radial-gradient(circle at 88% 12%, rgba(74,124,89,0.04) 0, rgba(74,124,89,0.04) 1px, transparent 1px, transparent 16px), var(--card-tint, #fff);
        border: 1px solid var(--border-color); border-top: 5px solid var(--primary-color);
        /* シャドウを2層に分け、近い影（色付き・淡い）と遠い影（黒・広め）を
           重ねることで単調な平面感を減らす */
        box-shadow: 0 3px 8px rgba(44,82,55,0.07), 0 20px 38px rgba(0,0,0,0.10);
        transition: transform 0.3s, box-shadow 0.3s; color: var(--text-color); cursor: pointer;
        /* isolationで独立したスタッキングコンテキストを作り、内部の::beforeが
           他要素のz-index計算に影響されず必ずこのカードの背後に収まるようにする */
        position: relative; isolation: isolate;
    }
    /* カードの背後にもう一枚、色付きのカードがわずかにずれて重なって
       見えるようにし、「重なりが少ない」印象を減らす */
    .pillar-card::before {
        content: ''; position: absolute; inset: 12px -8px -8px 12px; z-index: -1;
        background: var(--card-accent, var(--primary-color)); opacity: 0.14; border-radius: 18px;
        transition: transform 0.3s, opacity 0.3s;
    }
    .pillar-card:hover::before { transform: translate(5px, 5px); opacity: 0.22; }
    .pillar-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 14px rgba(44,82,55,0.10), 0 28px 48px rgba(0,0,0,0.16); opacity: 1;
    }
    /* 3枚カード（リト／Re：カエルン／資金相談）はそれぞれ違う色味の淡いトーンをあて、
       グリーン＋イエローだけだった配色にテラコッタ・ブルーを加える */
    .pillar-grid-3 .pillar-card:nth-child(1) {
        border-top-color: var(--accent-terracotta); --card-accent: var(--accent-terracotta); --card-tint: #fbede6;
    }
    .pillar-grid-3 .pillar-card:nth-child(1) .pillar-eyebrow { color: var(--accent-terracotta-dark); }
    .pillar-grid-3 .pillar-card:nth-child(2) {
        border-top-color: var(--accent-dark); --card-accent: var(--accent-color); --card-tint: #fdf6e2;
    }
    .pillar-grid-3 .pillar-card:nth-child(3) {
        border-top-color: var(--accent-blue); --card-accent: var(--accent-blue); --card-tint: #eaf1f4;
    }
    .pillar-grid-3 .pillar-card:nth-child(3) .pillar-eyebrow { color: var(--accent-blue-dark); }
    .pillar-card .pillar-eyebrow { display: block; font-size: 0.78rem; letter-spacing: 0.18em; font-weight: 800; color: var(--accent-dark); text-transform: uppercase; margin-bottom: 10px; }
    .pillar-card h3 {
        /* 見出しが1行／2行のどちらでも、見出し自体の開始位置・下の本文（p）の開始位置が
           揃うように、2行分の高さを常に確保し、上詰め＋中央寄せで表示する
           （em指定なのでスマホ用の文字サイズ変更にも追従する） */
        font-family: var(--font-sans); font-size: 1.5rem; color: var(--primary-dark); margin-bottom: 12px; font-weight: 900;
        line-height: 1.3; min-height: 2.6em; text-align: center;
    }
    .pillar-card p { font-size: 0.88rem; color: #666; margin-bottom: 16px; font-weight: 400; }
    .pillar-card .pillar-link {
        display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: bold; color: var(--primary-dark);
        margin-top: auto; align-self: center;
    }
    .pillar-card .pillar-link .icon { width: 1em; height: 1em; }
    @media (max-width: 640px) {
        /* 1カラムに崩すと2枚の縦積みで画面からはみ出すため、2カラムのまま
           余白・文字サイズを詰めて1画面に収める */
        .pillar-card { padding: 22px 14px; }
        .pillar-card .pillar-eyebrow { font-size: 0.66rem; margin-bottom: 6px; }
        .pillar-card h3 { font-size: 1.1rem; margin-bottom: 8px; min-height: 2.5em; }
        .pillar-card p { font-size: 0.78rem; margin-bottom: 10px; line-height: 1.5; }
        .pillar-grid { gap: 14px; }
    }
    @media (max-width: 640px) and (max-height: 600px) {
        .pillar-card { padding: 16px 12px; }
        .pillar-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
        #pillars .sec-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    }
    /* -------------------------------------
       rito（小さな規格住宅）
    -------------------------------------- */
    /* フルページ化で1画面=1名ずつに分割したため、3カラムグリッドではなく
       中央寄せの単カラムにする */
    .rito-persona-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 940px; gap: 24px; margin: 0 auto 20px; }
    .rito-persona {
        background: repeating-radial-gradient(circle at 90% 10%, rgba(74,124,89,0.035) 0, rgba(74,124,89,0.035) 1px, transparent 1px, transparent 16px), #fff;
        border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden; position: relative;
        box-shadow: 0 8px 20px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; text-align: center;
    }
    .rito-persona:hover { transform: translateY(-6px) scale(1); box-shadow: 0 16px 30px rgba(0,0,0,0.1); }
    .rito-persona img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
    .rito-persona-body { padding: 18px 16px; }
    .rito-persona h4 { font-size: 0.98rem; margin-bottom: 8px; color: var(--primary-dark); }
    .rito-persona p { font-size: 0.83rem; color: #666; }
    /* 「お一人暮らしの方」→「二人暮らしを始める方」→「セカンドハウスとして」の順に
       1枚ずつ大きくなって元に戻る、を繰り返す演出。transform-origin を中央にして
       拡大時に隣のカードへ不自然に重ならないようにし、拡大中のカードを最前面に出す。 */
    .rito-persona-grid .rito-persona {
        transform-origin: center center;
        animation: ritoPersonaPulse 4.5s ease-in-out infinite;
        will-change: transform;
    }
    .rito-persona-grid .rito-persona:nth-child(1) { animation-delay: 0s; }
    .rito-persona-grid .rito-persona:nth-child(2) { animation-delay: 1.5s; }
    .rito-persona-grid .rito-persona:nth-child(3) { animation-delay: 3s; }
    @keyframes ritoPersonaPulse {
        0%, 33.4%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(0,0,0,0.05); z-index: 1; }
        16.7% { transform: scale(1.08); box-shadow: 0 20px 38px rgba(0,0,0,0.16); z-index: 2; }
    }
    @media (prefers-reduced-motion: reduce) {
        .rito-persona-grid .rito-persona { animation: none; }
    }
    .rito-subhead {
        font-family: var(--font-sans); font-size: 1.15rem; color: var(--primary-color);
        text-align: center; margin: 0 0 22px; font-weight: bold;
    }
    @media (max-width: 768px) {
        /* 3枚を正方形で縦積みすると画面からはみ出すため、画像は小さいサムネイルにして
           横並び（画像左・テキスト右）のコンパクトなリスト表示にする */
        .rito-persona-grid { grid-template-columns: 1fr; gap: 12px; max-width: 480px; }
        .rito-persona { display: flex; align-items: center; text-align: left; }
        .rito-persona img { width: 78px; height: 78px; aspect-ratio: auto; flex-shrink: 0; }
        .rito-persona-body { padding: 10px 12px; }
        .rito-persona h4 { font-size: 0.84rem; margin-bottom: 2px; }
        .rito-persona p { font-size: 0.7rem; line-height: 1.4; }
    }
    /* -------------------------------------
       FAQ（アコーディオン）
    -------------------------------------- */
    /* 9件すべてを1カラムに縦積みせず、複数カラムのグリッドで一覧できるようにする */
    .faq-list { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
    @media (max-width: 900px) { .faq-list { grid-template-columns: repeat(2, 1fr); max-width: 720px; } }
    @media (max-width: 560px) { .faq-list { grid-template-columns: 1fr; max-width: 480px; } }
    .faq-item { border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; background: #fff; }
    .faq-item summary {
        list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; gap: 14px;
        font-weight: bold; color: var(--primary-dark); font-size: 0.98rem; position: relative;
    }
    .faq-item summary::-webkit-details-marker { display: none; }
    .faq-q-mark {
        flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-color); color: #fff;
        display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.95rem;
    }
    .faq-q-text {
        /* 質問文が長くて2行に折り返す場合でも、右端のシェブロンアイコンや
           丸数字と重ならないよう、残りの幅ぴったりに収まるようにする。
           min-width:0がないと、flexアイテムは内容量に応じて必要以上に幅を
           取ろうとし、右のアイコンとテキストが重なって表示されてしまう。 */
        flex: 1 1 auto; min-width: 0;
    }
    .faq-chevron { margin-left: auto; transition: transform 0.3s; color: var(--primary-color); }
    .faq-item[open] .faq-chevron { transform: rotate(180deg); }
    .faq-answer { display: flex; gap: 14px; padding: 0 24px 22px 24px; font-size: 0.9rem; color: #555; animation: fadeUp 0.35s ease; }
    .faq-a-mark {
        flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-color); color: #fff;
        display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.95rem;
    }
    /* -------------------------------------
       CONTACT
    -------------------------------------- */
    .contact-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 40px; }
    .contact-badges span {
        display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--primary-color); color: var(--primary-dark);
        padding: 9px 18px; border-radius: 30px; font-size: 0.85rem; font-weight: bold;
    }
    .contact-badges .icon { color: var(--primary-color); }
    .contact-form-wrap { max-width: 680px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); padding: 44px; border: 1px solid var(--border-color); }
    .form-group { margin-bottom: 22px; }
    .form-group label { display: block; font-size: 0.88rem; font-weight: bold; color: var(--primary-dark); margin-bottom: 8px; }
    .required-mark { color: var(--danger-color); font-size: 0.75rem; margin-left: 4px; }
    .optional-mark { color: #999; font-size: 0.75rem; margin-left: 4px; font-weight: normal; }
    .form-group input, .form-group select, .form-group textarea {
        width: 100%; padding: 14px 16px; border: 1px solid #ddd; border-radius: 10px; font-size: 1rem; background-color: #fafafa; transition: 0.3s;
        font-family: inherit;
    }
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
        border-color: var(--primary-color); outline: none; background: #fff; box-shadow: 0 0 0 3px rgba(74,124,89,0.12);
    }
    .form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
    button.btn-primary {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: #fff; border: none; padding: 16px; border-radius: 30px;
        cursor: pointer; font-weight: bold; width: 100%; font-size: 1rem; transition: 0.3s; box-shadow: 0 5px 15px rgba(74,124,89,0.2);
        display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    button.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(74,124,89,0.3); }
    button.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
    .form-msg { margin-top: 18px; padding: 14px 18px; border-radius: 10px; font-size: 0.88rem; display: none; }
    .form-msg.show { display: flex; align-items: center; gap: 10px; }
    .form-msg.success { background: #eef7f0; color: var(--primary-dark); border: 1px solid var(--primary-color); }
    .form-msg.error { background: #fdeceb; color: var(--danger-color); border: 1px solid var(--danger-color); }
    .form-privacy-note { text-align: center; font-size: 0.78rem; color: #888; margin-top: 16px; }
    .form-privacy-note a { text-decoration: underline; color: var(--primary-color); }
    /* -------------------------------------
       会社情報・フッター
    -------------------------------------- */
    footer { background-color: #1f2e23; color: #ccc; padding: 60px 20px 30px; font-size: 0.85rem; }
    .footer-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; }
    .footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-bottom: 30px; }
    .footer-links button {
        background: none; border: none; color: #ccc; font-size: 0.85rem; cursor: pointer; text-decoration: underline; padding: 4px;
    }
    .footer-links button:hover { color: #fff; }
    .footer-brand { font-family: var(--font-sans); font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
    .footer-service { color: var(--accent-color); font-weight: bold; margin-bottom: 20px; font-size: 0.95rem; }
    .footer-info { display: inline-flex; flex-direction: column; gap: 8px; text-align: left; margin: 0 auto 24px; }
    .footer-info div { display: flex; align-items: center; gap: 8px; }
    .footer-info .icon { color: var(--accent-color); flex-shrink: 0; }
    .footer-copy { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.78rem; color: #999; }
    /* -------------------------------------
       ポリシー用モーダル
    -------------------------------------- */
    .modal-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
        z-index: 1001; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; display: flex; justify-content: center; align-items: center; padding: 20px;
    }
    .modal-overlay.active { opacity: 1; visibility: visible; }
    .modal-content {
        background: #fff; width: 100%; max-width: 640px; border-radius: 20px; padding: 40px 34px;
        box-shadow: 0 25px 60px rgba(0,0,0,0.3); transform: translateY(30px) scale(0.96); transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        position: relative; display: flex; flex-direction: column; max-height: 85vh;
    }
    .modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
    .modal-content h2 { font-family: var(--font-sans); color: var(--primary-color); margin-bottom: 18px; padding-right: 30px; }
    .modal-body { overflow-y: auto; font-size: 0.88rem; color: #555; }
    .modal-body h3 { color: var(--primary-dark); font-size: 0.95rem; margin: 18px 0 6px; }
    .modal-body p { margin-bottom: 10px; }
    .close-btn { position: absolute; top: 18px; right: 20px; font-size: 30px; cursor: pointer; color: #999; transition: color 0.3s; line-height: 1; background: none; border: none; }
    .close-btn:hover { color: #333; }
    .contact-modal-content { max-width: 720px; }
    .contact-modal-content .contact-form-wrap { max-width: none; box-shadow: none; border: none; padding: 0; border-radius: 0; position: static; }
    .contact-modal-content .contact-frog { top: -44px; right: auto; left: 34px; width: 92px; }
    .contact-modal-content .sec-title { padding-bottom: 14px; opacity: 1; filter: none; transform: none; }
    .contact-modal-content .sec-title::after { width: 80px; }
    .contact-modal-content .sec-lead { margin-bottom: 26px; }
    /* スマホでフォームを開いたときだけ表示する「スクロールしてください」の案内。
       他のテキストに重ならないよう、モーダル下部に浮かせたピル状の帯として表示する。 */
    .modal-scroll-hint {
        display: none;
        position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
        background: rgba(44,82,55,0.92); color: #fff; font-size: 0.72rem; font-weight: bold;
        padding: 7px 16px; border-radius: 20px; white-space: nowrap; pointer-events: none;
        box-shadow: 0 6px 16px rgba(0,0,0,0.28); z-index: 6;
        opacity: 0; transition: opacity 0.35s ease;
        align-items: center; gap: 6px;
    }
    .modal-scroll-hint-arrow { display: inline-block; }
    .modal-scroll-hint.show { opacity: 1; }
    .modal-scroll-hint.show .modal-scroll-hint-arrow { animation: modalScrollHintBounce 1.4s ease-in-out infinite; }
    @keyframes modalScrollHintBounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(4px); }
    }
    @media (max-width: 768px) {
        .modal-scroll-hint { display: flex; }
    }
    @media (prefers-reduced-motion: reduce) {
        .modal-scroll-hint.show .modal-scroll-hint-arrow { animation: none; }
    }
    @media (max-width: 900px) {
        .strength-row, .strength-row:nth-child(even) { flex-direction: column; text-align: center; gap: 24px; }
        .example-card-inner { flex-direction: column; }
        .example-photos, .example-info { width: 100%; }
        .example-photos { grid-auto-rows: auto; }
        .example-photo { height: auto; min-height: 0; aspect-ratio: 4/3; }
        .plan-grid { grid-template-columns: repeat(2, 1fr); }
        /* ローン特徴セクション：チップ行＋3カードを1画面に収めるため、
           チップを小さく、カードは横並び（アイコン＋テキスト）のコンパクト表示にする。 */
        .loan-section-media { margin: 0 auto 16px; }
        .loan-section-media img { height: 180px; }
        .loan-chip-row { gap: 6px; margin: 10px 0 14px; }
        .loan-chip { font-size: 0.66rem; padding: 5px 10px; }
        .loan-feature-grid { grid-template-columns: 1fr; gap: 8px; }
        .loan-feature {
            display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 14px;
        }
        .loan-feature .plan-icon { width: 38px; height: 38px; margin: 0; flex-shrink: 0; }
        .loan-feature .plan-icon .icon { width: 18px; height: 18px; }
        .loan-feature h4 { font-size: 0.78rem; margin-bottom: 2px; }
        .loan-feature p { font-size: 0.64rem; line-height: 1.4; }
        .recommend-list { grid-template-columns: 1fr; }
        /* 900px幅まではまだ2カラムを維持し、600px以下になって初めて縦積みにする
           （早く縦積みにすると画像2枚分の高さが必要になり、縦の短いノートPCなどで
           画面をはみ出してしまうため）。 */
        .compare-card { padding: 14px 14px; }
        .compare-card h4 { font-size: 0.92rem; margin-bottom: 2px; }
        .compare-mark { font-size: 1rem; margin: 6px 0; }
        .compare-mark .icon { width: 1rem; height: 1rem; }
        .compare-card p.desc { font-size: 0.74rem; line-height: 1.45; }
    }
    @media (max-width: 600px) {
        .compare-grid { grid-template-columns: 1fr; gap: 10px; max-width: 460px; }
        .compare-media { aspect-ratio: 24/9; margin: -14px -14px 8px; width: calc(100% + 28px); max-width: none; }
    }
    @media (max-width: 600px) and (max-height: 720px) {
        .compare-grid { gap: 6px; }
        .compare-card { padding: 10px 12px; }
        .compare-media { aspect-ratio: 32/9; margin: -10px -12px 6px; width: calc(100% + 24px); }
        .compare-card p.desc { font-size: 0.68rem; line-height: 1.35; }
        .compare-mark { margin: 3px 0; }
    }
    @media (max-width: 600px) and (max-height: 600px) {
        .compare-media { aspect-ratio: 40/9; }
        .compare-card p.desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    }
    @media (max-width: 900px) and (min-width: 601px) {
        .compare-media { aspect-ratio: 16/9; }
    }
    @media (max-width: 768px) {
        header { padding: 12px 4%; }
        .logo-text { font-size: 0.9rem; }
        .logo-sub { font-size: 0.58rem; }
        .tel-btn { padding: 9px 16px; font-size: 0.8rem; }
        .mv { height: 80vh; margin-top: 58px; }
        .mv-content { padding-top: 70px; padding-bottom: 80px; }
        .mv-content h1 {
            font-size: clamp(1.1rem, 3.6vh, 2rem);
            padding: 0 10px;
            gap: 0.5em;
            text-shadow: 0 3px 10px rgba(0,0,0,0.9);
        }
        .mv-content h1 .mv-line { gap: 0.08em; }
        .skew-layer-dark, .skew-layer-soft { padding: 76px 15px; margin: 80px 0; }
        section { padding: 20px 20px; }
        /* 1画面に収める必要があるフルページ表示では、見出し・リード文の余白を
           詰めてコンテンツ本体のスペースを確保する */
        .sec-title { font-size: 1.28rem; margin-bottom: 10px; padding-bottom: 12px; }
        .sec-lead { font-size: 0.8rem; margin-bottom: 18px; line-height: 1.6; }
        .rito-subhead { font-size: 0.95rem; margin-bottom: 12px; }
        .cta-inner { padding: 30px 24px; }
        .plan-grid { grid-template-columns: 1fr 1fr; }
        .contact-form-wrap { padding: 28px 20px; }
        .modal-content { padding: 30px 20px; }
        .reveal-left { transform: translateX(-32px) rotate(-2deg); }
        .reveal-right { transform: translateX(32px) rotate(2deg); }
        /* Customize（標準／オプション切り替え）は他より項目の説明文が長いため、
           カード自体をさらに小さくして1画面に収める */
        .plan-switcher-block .plan-photo { width: 64px; height: 64px; margin-bottom: 8px; }
        .plan-switcher-block .plan-card { padding: 14px 10px; }
        .plan-switcher-block .plan-card h4 { font-size: 0.78rem; margin-bottom: 4px; line-height: 1.3; }
        .plan-switcher-block .plan-card p { font-size: 0.66rem; line-height: 1.4; margin-bottom: 6px; }
        .plan-switcher-block .plan-badge { font-size: 0.62rem; padding: 3px 9px; }
        .plan-switcher-block .plan-switcher { margin-bottom: 8px; gap: 14px; }
        .plan-switcher-block .plan-switch-dots { margin-bottom: 10px; }
        .plan-switcher-block .plan-switch-arrow { width: 32px; height: 32px; }
        .plan-switcher-block .plan-switch-label h4 { font-size: 0.9rem; }
    }
    @media (max-width: 480px) {
        .plan-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
        .plan-card { padding: 18px 10px; }
        .example-photos { grid-template-columns: 1fr; }
        .plan-photo { width: 100px; height: 100px; border-radius: 16px; }
        .plan-photo img { border-radius: 16px; }
        .plan-photo-badge { width: 30px; height: 30px; bottom: -7px; right: -7px; }
        .plan-photo-badge .icon { width: 15px; height: 15px; }
    }
    @media (max-width: 520px) {
        .tel-btn-full { display: none; }
        .tel-btn-short { display: inline; }
    }
    @media (max-width: 420px) {
        header { padding: 10px 3%; gap: 6px; }
        .logo-container { gap: 8px; }
        .logo-img { height: 30px; width: 35px; }
        .logo-text { font-size: 0.72rem; }
        .logo-sub { display: none; }
        .tel-btn { padding: 8px 12px; font-size: 0.72rem; gap: 4px; }
        .tel-btn .icon { width: 0.95em; height: 0.95em; }
        .mv { margin-top: 52px; }
    }
    /* 横向きや画面が極端に低い端末では縦書きだと文字が収まらないため、
       その場合のみ横書きに切り替えて表示崩れを防ぐ */
    @media (max-height: 420px) {
        /* 横向きや画面が極端に低い端末では縦書きだと文字が収まらないため、
           行を縦方向(column)ではなく横方向(row)に並べ、各行も上から下ではなく
           左から右に文字を並べる通常の横書きレイアウトに切り替える。 */
        .mv-content h1 {
            flex-direction: column;
            align-items: center;
            gap: 0.2em;
            font-size: 1.5rem;
            letter-spacing: 0.05em;
            padding: 0 20px;
        }
        .mv-content h1 .mv-line {
            flex-direction: row;
            gap: 0.05em;
        }
    }

    /* -------------------------------------
       LPから取り込んだ画像まわりのスタイル
    -------------------------------------- */
    .value-media { position: relative; max-width: 720px; margin: 0 auto 38px; }
    .value-media img.value-photo { width: 100%; display: block; border-radius: 20px; box-shadow: 0 20px 45px rgba(0,0,0,0.18); }
    .value-frog { position: absolute; bottom: -4%; right: -96px; width: 130px; z-index: 3; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.25)); animation: frogBob 3.2s ease-in-out infinite; }
    /* 「新築より安く、建売より選べる。」セクションを画像・文章の横並びレイアウトに変更。
       画面が低い環境でも1画面に収まるよう縦の積み上げをやめ、他セクション（ローンなど）
       とは異なる角丸（左下だけ角を立てる）にして、サイト全体で枠の形が単調にならないようにする。 */
    /* 画面いっぱいに写真を見せたいという要望に合わせ、このセクションだけは
       共通の section{max-width / padding} を外し、左半分に画像を画面端から
       画面端まで敷き詰め、右半分に見出し・本文を配置するフルブリードの
       2カラムレイアウトにする。 */
    #value, #rito { max-width: none !important; padding: 0 !important; margin: 0 !important; }
    /* この padding-top:0 はデスクトップ幅の「左右フルブリード2カラム」用。
       #value / #rito はIDセレクタのため詳細度が高く、後述するスマホ用の
       padding-top（ヘッダー避け）を通常のクラスセレクタで上書きしようとしても
       効かない（IDの詳細度に負ける）。そのため、スマホ幅では下の
       @media 内で同じ #value.fp-section / #rito.fp-section を使って
       明示的に上書きする（詳細度を揃えた上で、後に書かれた方が勝つ）。 */
    html.fp-mode #value.fp-section, html.fp-mode #rito.fp-section { padding-top: 0 !important; }
    /* フルページ表示ではこの2セクション自体が100vh/100dvhの外枠を持ち、
       中身が短い場合は縦方向中央寄せ（safe center）にする共通ルールが
       効いてしまう。.value-layoutはmin-height:640pxしか指定していないため、
       画面がそれより高いと上下に均等な余白ができてしまい、下側の余白が
       「画像の下に隙間がある」ように見える不具合になっていた。
       この2セクションは画面いっぱいに写真を敷き詰めたいので、外枠の
       高さいっぱいまで.value-layoutを伸ばして余白が出ないようにする。 */
    html.fp-mode #value.fp-section .value-layout,
    html.fp-mode #rito.fp-section .value-layout {
        flex: 1 1 auto; height: 100%; min-height: 0;
    }
    /* 通常スクロールページ（リト／REカエルン詳細ページ）では画面固定(100vh)の
       フルページ演出を使わないため、高さは親要素基準の100%ではなく、
       画面いっぱいの見え方を保つ最小高さを直接指定する。 */
    .value-layout { display: flex; align-items: stretch; gap: 0; min-height: 640px; width: 100%; }
    /* ホームの「リト」紹介セクションのみ、画像とテキストを左右反転する
       （デスクトップ幅のみ。スマホ幅は下の @media で縦積みに戻るため対象外） */
    .value-layout.reverse { flex-direction: row-reverse; }
    .value-layout .value-media-col { flex: 0 0 50%; max-width: 50%; position: relative; overflow: hidden; }
    .value-layout .value-media-col img.value-photo {
        width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 0; box-shadow: none;
    }
    /* 画像とテキストの境目にごく薄い影を落とし、2枚が完全にフラットに
       並んでいるだけに見えないよう、わずかな重なり感を出す */
    .value-layout .value-media-col::after {
        content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
        background: linear-gradient(90deg, transparent 60%, rgba(0,0,0,0.16) 100%);
    }
    .value-layout.reverse .value-media-col::after {
        background: linear-gradient(270deg, transparent 60%, rgba(0,0,0,0.16) 100%);
    }
    .value-layout .value-media-col .value-frog { position: absolute; bottom: 26px; right: 26px; left: auto; z-index: 2; }
    .value-layout .value-text-col {
        flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center;
        padding: 108px 64px 40px 64px; position: relative;
    }
    /* テキスト背後にぼかした色の丸みをひとつ重ね、平面的に見えないようにする
       （リト＝テラコッタ、Re：カエルン＝グリーンで色分け） */
    .value-layout .value-text-col::before {
        content: ''; position: absolute; top: 22px; left: 40px; width: 240px; height: 240px;
        background: radial-gradient(circle, rgba(74,124,89,0.10), transparent 70%);
        z-index: 0; pointer-events: none;
    }
    #rito .value-layout .value-text-col::before {
        background: radial-gradient(circle, rgba(193,112,74,0.12), transparent 70%);
    }
    /* min-width:0がないと、縦積みflexコンテナ(value-text-col)の子要素は
       文章量に応じたmin-content幅を確保しようとし、特にword-break:keep-all
       （単語の途中で改行しない設定）と組み合わさると、句読点や助詞でしか
       改行できない長い日本語の段落が「1つの折り返せない塊」とみなされて
       右端からはみ出し、画面から文章が切れて見えてしまう不具合があった。 */
    .value-layout .value-text-col > * { position: relative; z-index: 1; min-width: 0; }
    .value-layout .value-text-col .sec-subtitle,
    .value-layout .value-text-col .sec-title,
    .value-layout .value-text-col .sec-lead { text-align: left; }
    .value-layout .value-text-col .sec-title::after { left: 0; transform: none; }
    .value-layout .value-text-col .sec-lead { margin: 0; max-width: 620px; }
    /* ホームのリト／Re：カエルン紹介セクション末尾に付ける、各サービスページへのリンク */
    .value-layout .value-text-col .value-more-link {
        display: inline-flex; align-items: center; gap: 6px; width: fit-content;
        margin-top: 22px; font-size: 0.9rem; font-weight: bold; color: var(--primary-dark);
        text-decoration: none; border-bottom: 1px solid var(--primary-dark); padding-bottom: 3px;
        transition: opacity 0.2s, gap 0.2s;
    }
    .value-layout .value-text-col .value-more-link:hover { opacity: 0.68; gap: 11px; }
    .value-layout .value-text-col .value-more-link .icon-arrow { display: inline-block; transition: transform 0.2s; }
    .value-layout .value-text-col .value-more-link:hover .icon-arrow { transform: translateX(3px); }
    /* リトのリンクはテラコッタに（3枚カードの色分けと揃える） */
    #rito .value-more-link { color: var(--accent-terracotta-dark); border-bottom-color: var(--accent-terracotta-dark); }
    @media (max-width: 900px) {
        .value-layout .value-text-col { padding: 100px 40px 32px; }
    }
    @media (max-width: 768px) {
        /* .value-layout.reverse は2クラスぶんの詳細度を持つため、ここで
           .value-layout 単体だけを上書きしても、スマホ幅でホームの「リト」
           セクション（.reverse付き）だけ横並び(row-reverse)のまま崩れて
           しまっていた。.reverse も明示的に含めて確実に縦積みにする。 */
        .value-layout, .value-layout.reverse { flex-direction: column; gap: 0; }
        .value-layout .value-media-col { flex: 0 0 auto; width: 100%; max-width: none; height: 34vh; min-height: 200px; }
        .value-layout .value-text-col { padding: 24px 24px 20px; flex: 1; }
        .value-layout .value-text-col .sec-subtitle,
        .value-layout .value-text-col .sec-title,
        .value-layout .value-text-col .sec-lead { text-align: center; }
        .value-layout .value-text-col .sec-title::after { left: 50%; transform: translateX(-50%); }
        .value-layout .value-text-col .sec-lead { margin: 0 auto; }
        .value-layout .value-text-col .value-more-link { margin: 18px auto 0; }
        /* スマホ幅では画像とテキストが縦積みになり、画像帯の高さも
           34vh程度しかない。デスクトップ用の padding-top:0（画像を
           ヘッダーの裏まで敷き詰めるフルブリード演出）をそのまま
           適用すると、ただでさえ低い画像帯の上側がヘッダーに隠れて
           見えなくなってしまう。スマホでは他の通常セクションと同じく
           ヘッダー分の余白を確保し、画像帯がヘッダーの下からきちんと
           見えるようにする。 */
        html.fp-mode #value.fp-section, html.fp-mode #rito.fp-section { padding-top: 70px !important; }
        /* カエルのバッジ画像は元々「画像帯の中に収まる控えめな飾り」の
           想定だったが、.value-layout .value-media-col .value-frog の
           セレクタ詳細度がスマホ用の縮小ルールより高いため、幅だけ
           縮んで位置(bottom/right)が縮まらず、画像帯が低いスマホでは
           はみ出した上端が親要素のoverflow:hiddenでマスクのように
           切れて見えてしまっていた。ここで同じ詳細度のセレクタを使い、
           画像帯の高さに収まるサイズ・位置に確実に上書きする。 */
        .value-layout .value-media-col .value-frog { width: 64px; right: 10px; bottom: 10px; }
    }
    @media (max-width: 768px) and (max-height: 700px) {
        .value-layout .value-media-col { height: 26vh; min-height: 150px; }
    }
    @media (max-width: 768px) and (max-height: 600px) {
        html.fp-mode #value.fp-section, html.fp-mode #rito.fp-section { padding-top: 58px !important; }
    }
    /* 「選ばれる4つの理由」セクション：以前は小さな1行リストのみで単調だったため、
       アイコン付きのカードを大きめに配置し、番号の透かし・短い説明文・
       カードごとのアクセントカラーの切り替えで視覚的なメリハリを出す。
       さらに右側に大きな写真を添えて、文字だけの単調さを解消する。 */
    .value-points-layout { display: flex; align-items: center; gap: 48px; }
    .value-points-layout .value-points-text-col { flex: 1.2; min-width: 0; }
    .value-points-layout .value-points-text-col .sec-subtitle,
    .value-points-layout .value-points-text-col .rito-subhead { text-align: left; }
    .value-points-layout .value-points-media-col { flex: 0 0 40%; max-width: 460px; position: relative; }
    .value-points-layout .value-points-media-col img {
        width: 100%; display: block; border-radius: 4px 32px 32px 32px;
        box-shadow: 0 20px 45px rgba(0,0,0,0.2);
    }
    @media (max-width: 900px) {
        .value-points-layout { flex-direction: column-reverse; gap: 22px; }
        .value-points-layout .value-points-media-col { max-width: 320px; width: 60%; margin: 0 auto; }
        .value-points-layout .value-points-text-col .sec-subtitle,
        .value-points-layout .value-points-text-col .rito-subhead { text-align: center; }
    }
    @media (max-width: 900px) and (max-height: 760px) {
        .value-points-layout { gap: 12px; }
        .value-points-layout .value-points-media-col { max-width: 180px; width: 40%; }
    }
    @media (max-width: 480px) {
        .value-points-layout .value-points-media-col { max-width: 150px; width: 42%; }
    }
    .value-reason-grid {
        display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
        max-width: 900px; margin: 0 auto;
    }
    .value-points-layout .value-reason-grid { max-width: none; margin: 0; }
    .value-reason-card {
        position: relative; overflow: hidden; background: #fff;
        border: 1px solid var(--border-color); border-radius: 20px;
        padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 10px;
        box-shadow: 0 10px 28px rgba(0,0,0,0.06);
        transition: transform 0.35s ease, box-shadow 0.35s ease;
    }
    .value-reason-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,0.12); }
    .value-reason-card .value-reason-index {
        position: absolute; top: -6px; right: 10px; font-family: var(--font-sans);
        font-size: 3.6rem; font-weight: bold; color: var(--primary-color); opacity: 0.08; line-height: 1;
        pointer-events: none;
    }
    .value-reason-card .value-reason-icon {
        width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
        display: flex; align-items: center; justify-content: center;
        background: var(--primary-color); color: #fff; box-shadow: 0 8px 16px rgba(74,124,89,0.3);
    }
    .value-reason-card:nth-child(2n) .value-reason-icon { background: var(--accent-color); box-shadow: 0 8px 16px rgba(246,192,38,0.35); }
    .value-reason-card h4 { font-size: 1.12rem; font-weight: bold; color: var(--primary-color); margin: 0; }
    .value-reason-card p { font-size: 0.88rem; color: #666; line-height: 1.7; margin: 0; }
    @media (max-width: 600px) {
        /* 縦1列で4枚並べると縦に長くなりすぎて画面に収まらないため、
           スマホでも2×2のグリッドを維持し、余白・文字量だけを詰める。 */
        .value-reason-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 420px; }
        .value-reason-card { padding: 16px 14px 14px; gap: 6px; border-radius: 16px; }
        .value-reason-card .value-reason-icon { width: 38px; height: 38px; border-radius: 10px; }
        .value-reason-card .value-reason-icon .icon { width: 18px !important; height: 18px !important; }
        .value-reason-card .value-reason-index { font-size: 2.4rem; top: -4px; right: 6px; }
        .value-reason-card h4 { font-size: 0.86rem; line-height: 1.4; }
        .value-reason-card p {
            font-size: 0.68rem; line-height: 1.45;
            display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
        }
    }
    @media (max-width: 600px) and (max-height: 700px) {
        .value-reason-card p { -webkit-line-clamp: 2; }
    }
    .recommend-item { justify-content: flex-start; }
    .recommend-item .recommend-text { flex: 1; }
    .recommend-thumb { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex-shrink: 0; margin-left: auto; box-shadow: 0 6px 14px rgba(0,0,0,0.12); }
    .strength-photo { flex: 0 0 380px; position: relative; }
    .strength-photo::before {
        content: ''; position: absolute; top: -14px; left: -14px; width: 100%; height: 100%;
        background: var(--accent-color); border-radius: 16px; z-index: 0;
    }
    .strength-row:nth-child(even) .strength-photo::before { left: auto; right: -14px; }
    .strength-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; box-shadow: 0 15px 35px rgba(0,0,0,0.15); display: block; transition: transform 0.5s; }
    .strength-row:hover .strength-photo img { transform: scale(1.04); }
    .strength-badge {
        position: absolute; z-index: 2; bottom: -16px; right: -16px; width: 54px; height: 54px; border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: #fff;
        display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    }
    .strength-row:nth-child(even) .strength-badge { right: auto; left: -16px; }
    .strength-badge .icon { width: 24px; height: 24px; }
    .example-photo { position: relative; height: 100%; min-height: 220px; overflow: hidden; background: #eee; }
    .example-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
    .example-card:hover .example-photo img { transform: scale(1.06); }
    .example-photo .tag-flag {
        position: absolute; top: 10px; left: 10px; font-size: 0.68rem; font-weight: bold; color: #fff;
        padding: 4px 12px; border-radius: 20px; letter-spacing: 0.05em; z-index: 2;
    }
    .example-photo.before .tag-flag { background: #6b6b6b; }
    .example-photo.after .tag-flag { background: var(--primary-color); }
    .plan-photo { position: relative; width: 128px; height: 128px; margin: 0 auto 16px; box-shadow: 0 10px 20px rgba(0,0,0,0.14); border-radius: 18px; }
    .plan-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 18px; }
    .plan-photo-badge {
        position: absolute; bottom: -9px; right: -9px; width: 36px; height: 36px; border-radius: 50%;
        background: var(--primary-color); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    .plan-photo-badge .icon { width: 18px; height: 18px; }
    .plan-card.option .plan-photo-badge { background: var(--accent-color); }
    .loan-media { max-width: 820px; margin: 0 auto 34px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 45px rgba(0,0,0,0.3); }
    .loan-media img { width: 100%; display: block; }
    /* ローンセクション：画像が見切れないよう左右2カラム（画像=左／テキスト=右）にする。
       画像はwidth:100%・height:autoで必ず全体を表示し、トリミングしない。 */
    .loan-layout { display: flex; align-items: center; gap: 44px; }
    .loan-layout .loan-media-col { flex: 0 0 42%; max-width: 420px; }
    .loan-layout .loan-media-col img {
        width: 100%; height: auto; display: block; border-radius: 20px;
        box-shadow: 0 20px 45px rgba(0,0,0,0.3);
    }
    .loan-layout .loan-text-col { flex: 1; min-width: 0; }
    .loan-layout .loan-text-col .sec-subtitle,
    .loan-layout .loan-text-col .sec-title,
    .loan-layout .loan-text-col .sec-lead { text-align: left; }
    .loan-layout .loan-text-col .sec-title::after { left: 0; transform: none; }
    .loan-layout .loan-text-col .sec-lead { margin: 0; max-width: none; }
    @media (max-width: 900px) {
        .loan-layout { flex-direction: column; gap: 20px; }
        .loan-layout .loan-media-col { flex: 0 0 auto; width: 56%; max-width: 300px; }
        .loan-layout .loan-text-col .sec-subtitle,
        .loan-layout .loan-text-col .sec-title,
        .loan-layout .loan-text-col .sec-lead { text-align: center; }
        .loan-layout .loan-text-col .sec-title::after { left: 50%; transform: translateX(-50%); }
        .loan-layout .loan-text-col .sec-lead { margin: 0 auto; }
    }
    @media (max-width: 480px) {
        .loan-layout .loan-media-col { width: 62%; max-width: 220px; }
    }
    .contact-form-wrap { position: relative; }
    .contact-frog { position: absolute; top: -58px; right: 20px; width: 108px; z-index: 3; filter: drop-shadow(0 8px 14px rgba(0,0,0,0.2)); animation: frogBob 3.2s ease-in-out infinite; }
    @media (max-width: 900px) {
        .value-frog { width: 96px; bottom: -4%; right: -16px; }
        .strength-photo { flex: 0 0 auto; width: 280px; margin: 0 auto; }
    }
    @media (max-width: 480px) {
        .recommend-thumb { display: none; }
    }
    /* -------------------------------------
       スマホ表示でカエルの装飾が画面外にはみ出して
       途切れて見えるのを防ぐための調整（幅・位置を控えめに）
    -------------------------------------- */
    @media (max-width: 640px) {
        .value-frog { width: 86px; right: 6px; bottom: 6px; }
        .compare-mark .peek-frog { top: -10px !important; right: -50px !important; width: 46px !important; }
        .title-tail-wrap .peek-frog { bottom: -10px !important; right: -52px !important; width: 50px !important; }
        .plan-note { padding-top: 64px !important; }
        .plan-note .peek-frog { width: 58px !important; top: 10px !important; left: 12px !important; }
        .contact-modal-content .contact-frog {
            display: block; top: -20px; left: auto; right: 44px; width: 52px;
        }
    }

/* =========================================================
   追加CSS：4ページ構成化（トップ／リト／REカエルン／資金相談）対応
   ========================================================= */

/* ヘッダーメニューを <button> から <a> リンクに変更したための追従スタイル */
.header-toc a {
    width: auto; height: auto; min-width: 0; max-width: none;
    background-color: transparent; border: none; position: static; transform: none;
    font-family: inherit; cursor: pointer; text-decoration: none;
    font-size: 0.78rem; font-weight: bold; color: var(--text-color); opacity: 0.75;
    padding: 7px 9px; border-radius: 20px; white-space: nowrap; flex-shrink: 0;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
    display: inline-block;
}
.header-toc a::after { content: none; }
.header-toc a:hover { background: var(--bg-soft); opacity: 1; }
.header-toc a.active { color: var(--primary-color); opacity: 1; background: var(--bg-soft); transform: none; }

/* サブページ（リト／REカエルン／資金相談）：フルページ演出を使わず、
   通常の縦スクロールページとして表示する。固定ヘッダーの高さ分だけ
   本文の先頭にゆとりを持たせる。 */
body.subpage { padding-top: 88px; }
@media (max-width: 768px) { body.subpage { padding-top: 70px; } }
@media (max-width: 768px) and (max-height: 600px) { body.subpage { padding-top: 58px; } }
/* サブページでは footer を隠す fp-mode 専用ルールが効かないよう、通常表示にする */
body.subpage footer { display: block; }

/* ホームの「選べるいろいろな選択肢」：3枚カード（リト／REカエルン／資金相談） */
.pillar-grid.pillar-grid-3 { grid-template-columns: repeat(3, 1fr); max-width: 1180px; }
@media (max-width: 900px) { .pillar-grid.pillar-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillar-grid.pillar-grid-3 { grid-template-columns: 1fr; max-width: 420px; } }

/* フッター：会社名が記載された最後の帯を、他セクションと同じ斜め帯の
   グリーングラデーションに統一する（旧：単色の暗い帯） */
footer {
    background:
        repeating-radial-gradient(circle at 18% 25%, rgba(255,255,255,0.07) 0, rgba(255,255,255,0.07) 1px, transparent 1px, transparent 20px),
        repeating-radial-gradient(circle at 82% 78%, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 26px),
        linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* =========================================================
   「こんなことができます」（cases）：CASE1／CASE2 切り替え式レイアウト。
   左に写真（BEFORE/AFTER）、右にテキスト。
   以前は写真の枠(.case-photo)に高さを指定せず、中のimgの
   height:100%（親の高さが定まらないため実質autoとして扱われる）と
   max-height:280pxだけで高さを決めていたため、枠の実際の高さが
   画像の縦横比・max-height指定の兼ね合いで写真ごとに微妙にずれ、
   「画像の大きさが枠に合っていない」（枠からはみ出す／枠の中で
   小さく浮いて見える）不具合になっていた。
   aspect-ratioで枠自体の大きさを写真の縦横比に関わらず固定し、
   object-fit:coverで必ず枠いっぱいに敷き詰めることで、2枚の写真の
   大きさ・見え方を揃える。 */
.case-switcher-block .case-layout {
    display: flex; align-items: stretch; gap: 40px;
}
.case-media-col { flex: 0 0 46%; max-width: 520px; min-width: 0; }
.case-photo-pair { display: flex; flex-direction: column; gap: 14px; }
.case-photo {
    position: relative; border-radius: 20px; overflow: hidden;
    background: #eee; box-shadow: 0 14px 32px rgba(0,0,0,0.12);
    aspect-ratio: 4 / 3;
}
.case-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-photo .tag-flag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    color: #fff; font-size: 0.7rem; font-weight: bold; letter-spacing: 0.05em;
    padding: 4px 12px; border-radius: 20px;
}
.case-photo.before .tag-flag { background: #6b6b6b; }
.case-photo.after .tag-flag { background: var(--primary-color); }
.case-text-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.case-text-col h4 { font-size: 1.15rem; color: var(--primary-dark); margin-bottom: 12px; line-height: 1.5; }
.case-text-col p { font-size: 0.92rem; color: #555; line-height: 1.75; margin-bottom: 16px; }
@media (max-width: 900px) {
    .case-switcher-block .case-layout { flex-direction: column; }
    .case-media-col { max-width: 460px; width: 100%; margin: 0 auto; }
}

/* =========================================================
   モバイル・タブレット用ハンバーガーメニュー（4ページ構成化に伴い、
   ヘッダーのサイト内メニューが単なる「セクションへのジャンプ」から
   「ページ間の移動」という必須ナビゲーションに変わったため、
   1240px未満で単純に隠すだけだった従来の挙動をやめ、
   代わりに開閉式のメニューを用意する） */
.menu-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; flex-shrink: 0; padding: 0;
    align-items: center; justify-content: center; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    content: ""; display: block; width: 22px; height: 2px; background: var(--primary-dark);
    transition: transform 0.25s ease, opacity 0.25s ease; position: relative;
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.open span::after { top: 0; transform: rotate(-45deg); }
.mobile-nav-panel {
    position: fixed; top: 0; left: 0; right: 0; z-index: 999;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    display: flex; flex-direction: column;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
    padding: 0 5%;
}
.mobile-nav-panel.open { max-height: 420px; opacity: 1; padding: 78px 5% 18px; }
.mobile-nav-panel a {
    display: block; padding: 14px 4px; font-size: 0.98rem; font-weight: bold;
    color: var(--text-color); text-decoration: none; border-bottom: 1px solid var(--border-color);
}
.mobile-nav-panel a.active { color: var(--primary-color); }
@media (max-width: 1240px) {
    .menu-toggle { display: inline-flex; }
}
@media (min-width: 1241px) {
    .mobile-nav-panel { display: none !important; }
}

/* =========================================================
   アクセシビリティ：視差効果（モーション）を減らす設定への対応
   OS／ブラウザ側で「視差効果を減らす」がオンになっているユーザー向けに、
   このサイト内のあらゆるアニメーション・トランジションを実質的に
   オフ（瞬時に切り替わる状態）にする。

   このサイトには、ページ上部の各所に個別の prefers-reduced-motion
   対応（reveal演出・パルス演出・矢印ヒントなど）がすでに入っているが、
   ・ホームのフルページ切り替え演出（画面ごとスライドする、最も
     「視差効果」に近い動き）
   ・背景の水紋アニメーション（.bg-ripple、常時ループ）
   ・オープニングのスプラッシュ演出（ロゴ拡大・バー・退場アニメ）
   ・スクロール促進の上下バウンス（.scroll-prompt）
   ・カード等のホバー時の浮き上がり（transform）
   ・モーダル／モバイルメニューの開閉モーション
   など、まだ個別に対応していないものも多く残っていたため、最後に
   まとめて「そもそも animation/transition の再生時間をほぼ0にする」
   包括的なルールを追加し、抜け漏れなく確実に軽減されるようにする。
   （個別の !important 指定と重複する場合もあるが、後方に置くことで
   矛盾なく上書きされ、副作用はない）
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    /* 背景の水紋（常時ループするアニメーション）はそもそも非表示にする。
       上のanimation-durationだけでは「一瞬だけ再生されて消える」形になり
       ちらつきの原因になり得るため、要素ごと消してしまうのが確実。 */
    .bg-ripple { display: none !important; }
    /* オープニングのスプラッシュも、動きを見せずに済ませられるよう
       最初から非表示にする（JS側の表示/非表示切り替えとは独立して安全）。 */
    #splash-screen { display: none !important; }
    .noscript-splash { display: none !important; }
}

/* -------------------------------------
   会社概要ページ（会社情報テーブル・地図）
-------------------------------------- */
.company-table {
    width: 100%;
    max-width: 820px;
    margin: 0 auto 48px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e2ddd0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(44,82,55,0.08);
}
.company-table th, .company-table td {
    text-align: left;
    padding: 18px 24px;
    border-bottom: 1px solid #e7e2d6;
    font-size: 0.95rem;
    line-height: 1.7;
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th {
    width: 34%;
    background: var(--bg-color);
    color: var(--primary-dark);
    font-weight: bold;
    white-space: nowrap;
    border-right: 1px solid #e7e2d6;
}
.company-table td { color: var(--text-color); }
@media (max-width: 640px) {
    .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td { display: block; width: 100%; }
    .company-table th { white-space: normal; padding-bottom: 6px; border-bottom: none; border-right: none; }
    .company-table td { padding-top: 0; }
    .company-table tr { padding: 14px 0; border-bottom: 1px solid #e7e2d6; }
    .company-table tr:last-child { border-bottom: none; }
}
.company-map-wrap {
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid #e2ddd0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(44,82,55,0.08);
}
.company-map-wrap iframe {
    display: block;
    width: 100%;
    height: 560px;
    border: 0;
}
@media (max-width: 640px) {
    .company-map-wrap iframe { height: 400px; }
}

/* =========================================================
   デザイン刷新（v2）：モダン・シンプル・ゴシック体統一
   ---------------------------------------------------------
   ・フォントはゴシック体（サンセリフ）に統一
   ・配色は「グリーン（主役）＋白＋ごく薄いグレーグリーン」、
     アクセントは黄色1色（ボタン・下線のみ）に整理
   ・斜め背景／水紋／漆喰の質感／フルページ切替などの装飾は廃止し、
     上から順に読み進める通常の縦スクロール構成に
   ※ このブロックは style.css の末尾に置き、既存ルールを上書きします。
   ========================================================= */
:root {
    --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
    --primary-color: #3f7a55;
    --primary-dark: #1f4a32;
    --accent-color: #f6c026;
    --accent-dark: #c99a12;
    /* 以前は3サービスを色分けしていたテラコッタ／ブルーを、グリーンに統一 */
    --accent-terracotta: var(--primary-color);
    --accent-terracotta-dark: var(--primary-dark);
    --accent-blue: var(--primary-color);
    --accent-blue-dark: var(--primary-dark);
    --bg-color: #ffffff;
    --bg-soft: #f2f6f3;
    --border-color: #e2e8e4;
    --text-color: #1f2a24;
    --text-sub: #4a5650;
    --radius-card: 16px;
    --shadow-card: 0 1px 2px rgba(20, 45, 30, 0.05), 0 8px 24px rgba(20, 45, 30, 0.07);
}
html { scroll-padding-top: 84px; }
body, button, input, select, textarea, .serif-heading { font-family: var(--font-sans); }
body {
    background: #fff !important;
    background-image: none !important;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.9;
    font-feature-settings: "palt" 1;
}
h1, h2, h3, h4 { font-family: var(--font-sans); letter-spacing: 0.01em; }

/* 装飾の廃止 */
#splash-screen, .group-badge,
.peek-frog, .value-frog { display: none !important; }

/* ---------- ヘッダー ---------- */
header {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 var(--border-color) !important;
}
header:hover, header.header-near { background: #fff !important; }
.logo-text { color: var(--primary-dark); font-weight: 800; }
.header-toc a { font-size: 0.86rem; font-weight: 700; opacity: 1; color: var(--text-color); }
.header-toc a:hover { background: var(--bg-soft); color: var(--primary-dark); }
.header-toc a.active { background: transparent; color: var(--primary-color); box-shadow: inset 0 -3px 0 var(--accent-color); border-radius: 0; }
.tel-link { font-weight: 800; }
.tel-btn {
    background: var(--primary-color) !important; box-shadow: none !important; font-weight: 800;
    border-radius: 999px;
}
.tel-btn:hover { background: var(--primary-dark) !important; transform: none; }

/* ---------- 共通ボタン ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 34px; border-radius: 999px; font-weight: 800; font-size: 1rem; line-height: 1.3;
    border: 2px solid transparent; cursor: pointer; text-decoration: none; font-family: inherit;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { opacity: 1; transform: translateY(-2px); }
.btn-accent { background: var(--accent-color); color: #2b2200; }
.btn-accent:hover { background: #ffd24d; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.85); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- 斜め背景 → フラットな帯に ---------- */
.skew-layer-soft, .skew-layer-dark {
    filter: none !important; margin: 0 !important; padding: 80px 24px !important; overflow: visible !important; color: var(--text-color);
}
.skew-layer-soft::before, .skew-layer-dark::before {
    clip-path: none !important; transform: none !important; opacity: 1 !important; box-shadow: none !important;
    background: transparent !important;
}
.skew-layer-soft:nth-of-type(even)::before { background: rgba(242, 246, 243, 0.45) !important; }
.skew-layer-dark { color: #fff; }
.skew-layer-dark::before { background: var(--primary-dark) !important; }
.skew-layer-dark .sec-subtitle { color: var(--accent-color); }
.skew-layer-dark .sec-title, .skew-layer-dark .sec-lead { color: #fff; }
.skew-layer-dark + .skew-layer-dark { padding-top: 0 !important; }
.skew-layer-dark + .skew-layer-dark .sec-title { margin-top: 0; }

section { max-width: 1180px; padding: 0 24px; }
.skew-layer-soft > section, .skew-layer-dark > section { padding: 0 !important; }
body.subpage { padding-top: var(--header-h, 68px); }

/* ---------- 見出し・本文の強弱 ---------- */
.sec-subtitle {
    color: var(--primary-color); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.22em; margin-bottom: 10px;
}
.sec-title {
    font-family: var(--font-sans); font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 900; line-height: 1.4;
    color: var(--primary-dark); padding-bottom: 22px; margin-bottom: 20px; letter-spacing: 0.01em;
}
.sec-title::after { width: 56px !important; height: 4px; box-shadow: none; background: var(--accent-color); border-radius: 2px; }
.sec-lead { color: var(--text-sub); font-size: 1.05rem; font-weight: 500; line-height: 2; margin-bottom: 44px; max-width: 780px; }
.sec-lead strong, .faq-answer strong { font-weight: 800; }
.sec-lead strong, .faq-answer strong { color: var(--primary-dark); background: linear-gradient(transparent 62%, rgba(246, 192, 38, 0.5) 62%); }
.rito-subhead { font-weight: 800; color: var(--primary-dark); font-size: 1.35rem; }
.value-layout .value-text-col .sec-title::after { margin: 0; }

/* ---------- カード類を共通デザインに ---------- */
.plan-card, .rito-feature-card, .recommend-item, .faq-item, .compare-card, .strength-compact-card,
.pillar-card, .case-card, .example-card, .loan-note {
    border-radius: var(--radius-card);
}
.recommend-item {
    background: #fff !important; border: 1px solid var(--border-color); border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
}
.recommend-item:hover, .plan-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 45, 30, 0.06), 0 14px 30px rgba(20, 45, 30, 0.1); }
.recommend-num { background: var(--primary-color); font-weight: 800; }
.recommend-item p { font-weight: 800; font-size: 1.06rem; }
.plan-card { border: 1px solid var(--border-color); box-shadow: var(--shadow-card); background: #fff; }
.plan-card h4 { font-size: 1.05rem; font-weight: 800; }
.plan-card p { color: var(--text-sub); }
.rito-feature-card h4, .strength-text h3, .example-info h4 { font-weight: 800; color: var(--primary-dark); }
.rito-feature-card h4 { font-size: 1.3rem; }
.strength-text h3 { font-size: 1.5rem; }
.rito-feature-card .rito-feature-media { box-shadow: none; border-radius: var(--radius-card); }
.value-media img.value-photo { box-shadow: none; }

/* ---------- ホーム「選べるいろいろな選択肢」：枠は全て白で統一 ---------- */
#pillars.skew-layer-soft::before { background: rgba(242, 246, 243, 0.45) !important; }
.pillar-grid { gap: 24px; }
.pillar-card,
.pillar-grid-3 .pillar-card:nth-child(1),
.pillar-grid-3 .pillar-card:nth-child(2),
.pillar-grid-3 .pillar-card:nth-child(3) {
    background: #fff !important; background-image: none !important;
    border: 3px solid #ffffff !important; border-top: 3px solid #ffffff !important;
    box-shadow: 0 2px 4px rgba(20, 45, 30, 0.05), 0 12px 32px rgba(20, 45, 30, 0.09);
    padding: 40px 28px 32px; text-align: left; align-items: flex-start;
    --card-accent: var(--primary-color); --card-tint: #fff;
}
.pillar-card::before { display: none !important; }
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20, 45, 30, 0.06), 0 18px 40px rgba(20, 45, 30, 0.14); }
.pillar-card .pillar-eyebrow,
.pillar-grid-3 .pillar-card:nth-child(1) .pillar-eyebrow,
.pillar-grid-3 .pillar-card:nth-child(3) .pillar-eyebrow { color: var(--primary-color); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.2em; }
.pillar-card h3 { font-family: var(--font-sans); font-size: 1.55rem; font-weight: 900; color: var(--primary-dark); text-align: left; min-height: 0; margin-bottom: 14px; line-height: 1.4; }
.pillar-card p { font-size: 0.98rem; color: var(--text-sub); line-height: 1.85; font-weight: 500; }
.pillar-card .pillar-link {
    align-self: stretch; justify-content: space-between; margin-top: auto; padding-top: 16px;
    border-top: 1px solid var(--border-color); font-size: 0.95rem; font-weight: 800; color: var(--primary-color);
}
.pillar-card:hover .pillar-link { color: var(--primary-dark); }

/* ---------- ホーム：リト／Re：カエルン紹介（画像＋文章） ---------- */
section#rito, section#value { padding: 64px 24px 80px !important; }
.home-block { padding: 88px 24px; background: transparent; }
.home-block.alt { background: rgba(242, 246, 243, 0.45); }
.value-layout { max-width: 1180px; margin: 0 auto; min-height: 0; gap: 56px; align-items: center; }
.value-layout .value-media-col { flex: 0 0 calc(50% - 28px); max-width: calc(50% - 28px); border-radius: 20px; }
.value-layout .value-media-col img.value-photo { aspect-ratio: 4 / 3; height: auto; border-radius: 20px; }
.value-layout .value-media-col::after, .value-layout.reverse .value-media-col::after, .value-layout .value-text-col::before { display: none; }
.value-layout .value-text-col, #rito .value-layout .value-text-col { padding: 0; }
.value-layout .value-text-col .sec-lead { max-width: none; font-size: 1.05rem; }
.value-layout .value-text-col .value-more-link, #rito .value-more-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; padding: 14px 28px; width: fit-content;
    background: var(--primary-color); color: #fff; border: 2px solid var(--primary-color); border-radius: 999px; font-weight: 800; font-size: 0.98rem;
}
.value-layout .value-text-col .value-more-link:hover, #rito .value-more-link:hover { background: var(--primary-dark); border-color: var(--primary-dark); opacity: 1; gap: 12px; }
.home-finance { text-align: center; }
.home-finance .sec-lead { margin-bottom: 30px; }
.btn-outline { background: #fff; color: var(--primary-color); border-color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }
.btn-solid { background: var(--primary-color); color: #fff; }
.btn-solid:hover { background: var(--primary-dark); }

/* ---------- ご案内（プラン注記）／CTA帯 ---------- */
.plan-note { background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-card); box-shadow: none; }
.plan-note strong { color: var(--primary-dark); font-weight: 800; }
.cta-inner {
    background: var(--primary-dark); color: #fff; border: none; border-radius: 24px; padding: 56px 40px;
    box-shadow: none; max-width: 960px;
}
.cta-inner:hover { transform: none; box-shadow: none; }
.cta-inner h3 { font-family: var(--font-sans); color: #fff; font-size: clamp(1.45rem, 3vw, 2.1rem); font-weight: 900; line-height: 1.5; }
.cta-inner p { color: rgba(255, 255, 255, 0.88); font-size: 1rem; font-weight: 500; }
.cta-btn-mock {
    background: var(--accent-color); color: #2b2200; box-shadow: none; font-weight: 800; font-size: 1.05rem;
    padding: 16px 40px; border-radius: 999px; transition: background 0.2s, transform 0.2s;
}
.cta-inner:hover .cta-btn-mock { background: #ffd24d; transform: translateY(-2px); }
.cta-note { color: rgba(255, 255, 255, 0.75); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border-color); box-shadow: none; background: #fff; }
.faq-q-text { font-weight: 800; color: var(--primary-dark); }
.faq-q-mark { background: var(--primary-color); }
.faq-answer { color: var(--text-sub); font-size: 0.96rem; }

/* ---------- フォーム・モーダル ---------- */
.modal-content { border-radius: 20px; }
.modal-content h2 { font-family: var(--font-sans); font-weight: 900; color: var(--primary-dark); font-size: 1.5rem; }
.modal-body { color: var(--text-sub); font-size: 0.94rem; }
.modal-body h3 { color: var(--primary-dark); font-weight: 800; font-size: 1.05rem; margin: 26px 0 8px; padding-left: 10px; border-left: 4px solid var(--accent-color); line-height: 1.4; }
.modal-body h4 { color: var(--primary-color); font-weight: 800; font-size: 0.95rem; margin: 14px 0 4px; }
.modal-body p { margin-bottom: 10px; line-height: 1.9; }
.modal-body .policy-list { list-style: none; margin: 0 0 12px; padding: 0; }
.modal-body .policy-list li { position: relative; padding-left: 1.2em; margin-bottom: 6px; line-height: 1.8; }
.modal-body .policy-list li::before { content: ""; position: absolute; left: 0.2em; top: 0.85em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary-color); }
.modal-body .policy-note { font-size: 0.85rem; color: #6b756f; }
.modal-body .policy-contact { font-style: normal; background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; line-height: 1.9; color: var(--text-color); font-weight: 600; margin-bottom: 12px; }
.modal-body .policy-enact { text-align: right; margin-top: 22px; font-weight: 700; color: var(--text-color); }
#privacyModal .modal-content { max-width: 800px; }
.sec-title { font-family: var(--font-sans); }
.contact-badges span { font-weight: 700; }
.form-group label { font-weight: 800; }
.required-mark { color: #c0392b; font-weight: 800; }

/* ---------- フローティングボタン／フッター ---------- */
.float-btns button { background: var(--primary-color); color: #fff; border: none; border-radius: 14px 0 0 14px; font-weight: 800; box-shadow: 0 6px 20px rgba(20, 45, 30, 0.25); }
.float-btns button:hover { background: var(--primary-dark); width: 150px; }
footer { background: var(--primary-dark); }
.footer-brand { font-family: var(--font-sans); font-weight: 800; font-size: 1.15rem; }
.footer-service { color: var(--accent-color); }

/* ---------- 資金相談ページ（濃い帯）の内部カードを整える ---------- */
.loan-persona, .loan-feature { border-radius: var(--radius-card); }
.loan-feature h4, .loan-persona h4 { font-weight: 800; }

/* ---------- スマホ ---------- */
@media (max-width: 900px) {
    .value-layout, .value-layout.reverse { flex-direction: column; gap: 28px; }
    .value-layout .value-media-col { flex: none; max-width: 100%; width: 100%; }
}
@media (max-width: 768px) {
    body { font-size: 15.5px; }
    .skew-layer-soft, .skew-layer-dark { padding: 56px 18px !important; }
    .home-block { padding: 56px 18px; }
    .sec-title { font-size: 1.6rem; }
    .sec-lead { font-size: 1rem; line-height: 1.9; margin-bottom: 30px; }
    .pillar-card, .pillar-grid-3 .pillar-card:nth-child(n) { padding: 28px 22px 24px; }
    .pillar-card h3 { font-size: 1.35rem; }
    .pillar-card p { display: block; -webkit-line-clamp: unset; }
    #pillars .sec-lead { display: block; -webkit-line-clamp: unset; }
    .cta-inner { padding: 40px 22px; border-radius: 18px; }
    .modal-content { padding: 32px 20px; }
}
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* 長い本文は、行頭に「。」が来ない／語句の途中で不自然に切れない折り返しに */
.sec-lead, .pillar-card p, .faq-answer p, .modal-body p, .modal-body li {
    word-break: normal; word-break: auto-phrase; line-break: strict; overflow-wrap: break-word;
}
p, li, td, th, dd, .recommend-item p, .plan-card p, .loan-persona h4, .faq-q-text {
    word-break: normal; word-break: auto-phrase; line-break: strict; overflow-wrap: break-word;
}
.loan-chip { font-size: 0.95rem; font-weight: 800; }
.plan-card .plan-badge, .badge { font-weight: 800; }

.ripple-circle { border-color: rgba(63, 122, 85, 0.34); }

/* ---------- カエルのキャラクター：セクションごとに1匹ずつ配置 ---------- */
:root { --frog-a: url('assets/img/peek-frog.png'); --frog-b: url('assets/img/peek-frog-2.png'); --frog-c: url('assets/img/value-frog.png'); }
.skew-layer-soft, .skew-layer-dark, .home-block { position: relative; }
.skew-layer-soft::after, .skew-layer-dark::after, .home-block::after {
    content: ""; display: block !important; position: absolute; z-index: 3; pointer-events: none;
    top: auto; left: auto; bottom: calc(100% - 62px); right: max(20px, calc((100% - 1120px) / 2));
    width: 88px; height: 100px; opacity: 1 !important; transition: none;
    background: var(--frog-a) center bottom / contain no-repeat;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2));
    animation: frogBob 3.2s ease-in-out infinite;
}
.skew-layer-soft:nth-of-type(even)::after { background-image: var(--frog-b); right: auto; left: max(20px, calc((100% - 1120px) / 2)); }
.skew-layer-dark::after { background-image: var(--frog-c); width: 72px; height: 113px; }
#home-rito::after { background-image: var(--frog-c); width: 72px; height: 113px; right: max(20px, calc((100% - 1120px) / 2)); }
#home-kaerun::after { background-image: var(--frog-a); right: auto; left: max(20px, calc((100% - 1120px) / 2)); }
#financing-teaser::after { background-image: var(--frog-b); }
@media (max-width: 768px) {
    .skew-layer-soft::after, .skew-layer-dark::after, .home-block::after { width: 62px; height: 70px; bottom: calc(100% - 44px); right: 16px; }
    .skew-layer-dark::after, #home-rito::after { width: 52px; height: 82px; }
    .skew-layer-soft:nth-of-type(even)::after, #home-kaerun::after { right: auto; left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .skew-layer-soft::after, .skew-layer-dark::after, .home-block::after { animation: none; }
}

/* スマホ：Re：カエルンの強み（画像＋見出し＋説明）が横並びで潰れないよう、2列グリッドに */
@media (max-width: 768px) {
    .strength-compact-card { display: grid; grid-template-columns: 88px 1fr; column-gap: 14px; align-items: center; }
    .strength-compact-card .strength-compact-media { grid-row: 1 / span 2; }
    .strength-compact-card h3 { grid-column: 2; align-self: end; font-size: 1rem; }
    .strength-compact-card p { grid-column: 2; align-self: start; }
}

/* =========================================================
   ホームのメインビジュアル：ヘッダーの直下から画面の下端まで、
   最初の画面にぴったり収まる全画面表示（どの端末・画面サイズでも自動調整）
   ・ヘッダーの実測高さ(--header-h)をJSが反映 → ヘッダーとの隙間・はみ出しなし
   ・100svh（ブラウザのツールバーを除いた「常に見えている高さ」）を基準にするため、
     スマホのアドレスバーが出ていても最初の画面で全体が見える
   ・縦書き見出しの大きさは、使える高さから自動計算
   ========================================================= */
:root { --header-h: 66px; --adminbar-h: 0px; }
body.admin-bar { --adminbar-h: 32px; }
@media (max-width: 782px) { body.admin-bar { --adminbar-h: 46px; } }
body.admin-bar header { top: var(--adminbar-h); }
.mv {
    --mv-h: calc(100vh - var(--header-h) - var(--adminbar-h));
    margin-top: var(--header-h); height: var(--mv-h); min-height: 0; width: 100%;
}
@supports (height: 100svh) {
    .mv { --mv-h: calc(100svh - var(--header-h) - var(--adminbar-h)); }
}
.mv-content { padding: 24px 16px 96px; height: 100%; box-sizing: border-box; }
.mv-content h1 { font-size: clamp(1.5rem, calc((var(--mv-h) - 128px) / 14.76), 4.5rem); }
.slide, .slide.active { background-size: cover; background-position: center; }
.scroll-prompt { bottom: 28px; }
/* 高さの低い横向きスマホなど：縦書きでは収まらないので、横書き3行に切り替える */
@media (max-height: 560px) and (orientation: landscape) {
    .mv-content { padding: 12px 16px 56px; }
    .mv-content h1 { flex-direction: column; align-items: center; gap: 0.15em; font-size: clamp(1.1rem, calc((var(--mv-h) - 70px) / 3.6), 2.4rem); }
    .mv-content h1 .mv-line { flex-direction: row; gap: 0; }
    .mv-content h1 .mv-char { line-height: 1.2; }
    .scroll-prompt { bottom: 6px; }
    .scroll-prompt .arrow { width: 10px; height: 10px; margin-top: 3px; border-width: 2px; }
}
@media (max-height: 360px) { .scroll-prompt { display: none; } .mv-content { padding-bottom: 12px; } }
/* 最初の画面（メインビジュアル）にカエルが重ならないよう、最初のセクションのカエルは枠の内側に */
#pillars::after { bottom: auto !important; top: 14px; }
@media (max-width: 768px) { #pillars::after { top: 8px; } }
