/* ====== yugen.css（indexのトンマナを全ページ標準にする） ====== */
:root {
    --shira-yuki: #ffffff;
    --kinari: #fcfaf5;
    --fuji: #f3f0f7;
    --sumi-light: #333333;
    --kin-paku: #c5a059;
    --kin-hikari: rgba(197, 160, 89, 0.2);
    --glass-white: rgba(255, 255, 255, 0.85);
    --text-main: #2c2c2c;
    --text-sub: #666666;
    --accent-red: #b33e3e;
    --line: rgba(197, 160, 89, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    background-color: var(--kinari);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 10%, #fff0f5 0%, transparent 30%),
        radial-gradient(circle at 90% 20%, #f0f7ff 0%, transparent 30%),
        linear-gradient(135deg, var(--shira-yuki) 0%, var(--fuji) 100%);

    /* ✅ 追記：文字の読みやすさ（壊さない） */
    font-size: 16px;
    line-height: 2.05;
    -webkit-text-size-adjust: 100%;
}

.washi-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 60px 20px 100px;
    text-align: center;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 12px 48px;
    border: 2px solid var(--kin-paku);
    font-size: 20px;
    color: var(--kin-paku);
    letter-spacing: 0.4em;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.4;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--sumi-light);
}

.sub-text {
    font-size: 1.1rem;
    color: var(--text-sub);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* PCデフォルト：横並び(row) */
.points {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}

.point-item {
    font-size: 15px;
    color: var(--kin-paku);
    background: white;
    padding: 12px 30px;
    border-radius: 50px;
    border: 1px solid var(--line);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* PCでは一行 */
}

.card {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
    text-align: left;
}

.card-h2 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--sumi-light);
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-h2::before {
    content: "";
    width: 4px;
    height: 1.2rem;
    background: var(--accent-red);
    display: inline-block;
}

.label {
    display: block;
    font-size: 0.9rem;
    color: var(--kin-paku);
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.form-group {
    margin-bottom: 35px;
}

.birth-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 15px;
}

select {
    width: 100%;
    appearance: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    transition: all 0.3s;
}

select:focus {
    border-color: var(--kin-paku);
    box-shadow: 0 0 10px var(--kin-hikari);
}

/* 期間選択とボタンの間の余白を最大化 */
.form-group.last {
    margin-bottom: 60px;
}

.btn-submit {
    width: 100%;
    padding: 22px;
    border: none;
    border-radius: 8px;
    background: var(--sumi-light);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.4em;
    cursor: pointer;
    transition: all 0.4s;
    font-family: 'Shippori Mincho', serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background: var(--accent-red);
    box-shadow: 0 8px 25px rgba(179, 62, 62, 0.3);
    transform: translateY(-2px);
}

.wisdom-list {
    list-style: none;
    padding: 0;
}

.wisdom-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 14px;
    line-height: 1.9;
    font-size: 0.95rem;
    color: var(--text-sub);
}

.wisdom-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--kin-paku);
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 18px 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: "+";
    color: var(--kin-paku);
    font-size: 1.2rem;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-content {
    padding-top: 12px;
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.8;
}

footer {
    margin-top: 60px;
    font-size: 0.75rem;
    color: var(--text-sub);
    line-height: 1.8;
    text-align: center;
}

.footer-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 1rem;
}

.footer-links a {
    color: var(--kin-paku);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* =========================================
   レスポンシブ設定（モバイル）
   ========================================= */
@media (max-width: 768px) {
    .container {
        padding-top: 40px;
    }

    /* モバイルでは縦並びに */
    .points {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .point-item {
        width: 100%;
        max-width: 380px;
        text-align: center;
        padding: 14px 20px;
        white-space: normal;
        /* 折り返し許可 */
    }

    .birth-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 40px 24px;
    }

    h1 {
        font-size: 2rem;
    }

    .form-group.last {
        margin-bottom: 40px;
    }
}

/* ====== 追加：base/partials 用（全ページ統一のため） ====== */
/* base.html の <main class="main"> をセンタリング */
.main {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* header/footer partials が class を持つ場合にも馴染むように */
/* ====== 改善版ヘッダー CSS ====== */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 10px 0;

    /* ✅ B案：少し暖かい“紙感”で同化を防ぐ */
    background: rgba(245, 244, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* ✅ 境界を上品に見せる */
    border-bottom: 1px solid rgba(197, 160, 89, 0.20);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.site-header__inner {
    width: 100%;
    max-width: 900px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* TOPボタンを「印」のようなデザインに */
.site-header__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--kin-paku);
    border-radius: 50%;
    /* 正円に */
    background: var(--shira-yuki);
    color: var(--kin-paku);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.1);
}

.site-header__brand:hover {
    background: var(--kin-paku);
    color: white;
    transform: rotate(10deg) scale(1.05);
    /* わずかに回転させて「遊び」を */
}

/* ナビゲーションのリスト化 */
.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
}

.site-header__nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s;
}

/* リンクの下線アニメーション（金箔色） */
.site-header__nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--kin-paku);
    transition: width 0.3s;
}

.site-header__nav a:hover {
    color: var(--kin-paku);
}

.site-header__nav a:hover::after {
    width: 100%;
}

/* モバイル最適化 */
@media (max-width: 768px) {
    .site-header__inner {
        padding: 0 16px;
    }

    .nav-list {
        gap: 12px;
    }

    .site-header__nav a {
        font-size: 0.85rem;
    }

    .site-header__brand {
        width: 48px;
        height: 48px;
        font-size: 0.75rem;
    }
}

/* ===== Header nav 視認性UP（間隔/太字/金色） ===== */
.site-header__nav a {
    color: var(--kin-paku);
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;

    /* ここが「少しずつ離す」 */
    margin-left: 22px;

    /* クリックしやすさもUP */
    padding: 10px 12px;
    border-radius: 999px;

    transition: .2s ease;
}

.site-header__nav a:hover {
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 8px 22px rgba(197, 160, 89, .14);
    transform: translateY(-1px);
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 18px;
    /* ←好みで 14〜24 */
}

/* ===== モバイル：ヘッダーを横一列・折り返し禁止・サイズUP ===== */
@media (max-width: 768px) {
    .site-header__inner {
        flex-wrap: nowrap;
        gap: 12px;
    }

    /* ナビは折り返さない。収まらない場合は横スクロール */
    .site-header__nav {
        display: flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0px;
        padding: 6px 2px;
    }

    /* スクロールバーを目立たせない（任意） */
    .site-header__nav::-webkit-scrollbar {
        height: 4px;
    }

    .site-header__nav a {
        font-size: 1.05rem;
        /* ←好みで 1.0〜1.15 */
        font-weight: 800;
        padding: 10px 12px;
        margin-left: 0;
        /* gap運用 */
    }

    /* TOPボタンも少しだけ存在感UP */
    .site-header__brand {
        font-size: 1.05rem;
        padding: 10px 14px;
        flex: 0 0 auto;
    }
}

/* ===== Footer：ヘッダー同様に「境界線で区切る」＋リンクは文字だけ ===== */

.site-footer,
footer {
    margin-top: 40px;
    padding: 22px 0 34px;

    /* ✅ コンテンツとの境界線 */
    border-top: 1px solid rgba(197, 160, 89, .22);
}

/* 中央揃え（フッターリンク・コピーライト用） */
.site-footer,
footer {
    text-align: center;
}

/* リンク群：ボタン感撤去 → 文字だけ */
.site-footer__links,
.footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 26px;
    /* ヘッダーっぽく少し離す */
    flex-wrap: wrap;
    margin: 8px 0 12px;
}

/* ✅ フッターリンク：ボタン枠・背景を完全に消す（文字だけ） */
.site-footer__links a,
.footer-links a {
    color: rgba(197, 160, 89, .92);
    font-weight: 800;
    letter-spacing: .10em;

    /* ボタンっぽさ完全撤去 */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;

    text-decoration: none;
    transition: opacity .2s ease, text-decoration-color .2s ease;
}

.site-footer__links a:hover,
.footer-links a:hover {
    opacity: .9;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.site-footer__links a:hover,
.footer-links a:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
    opacity: .92;
}

/* コピーライト：控えめに */
.site-footer__copy,
footer p,
footer div {
    color: rgba(0, 0, 0, .55);
    line-height: 1.9;
}

/* 免責本文：長文は左揃え＋幅制限で読みやすく */
footer p,
footer .small {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* 免責（長文）は中央揃えにしない */
footer p[style*="【免責事項】"],
footer p.small,
footer p.small+p.small {
    text-align: left;
    opacity: .78;
}

/* モバイル：押しやすさは維持しつつ、ボタンにはしない */
@media (max-width: 768px) {

    .site-footer__links,
    .footer-links {
        gap: 18px;
    }

    .site-footer__links a,
    .footer-links a {
        font-size: 1.02rem;
        /* 少しだけ上げる */
    }

    footer p,
    footer .small {
        padding: 0 14px;
    }
}

.site-footer__links,
.footer-links {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

footer p[style*="【免責事項】"] {
    max-width: 760px;
    font-size: .92rem !important;
}

/* ===== 全体運（サマリー）もカード化：ダイジェストと統一 ===== */
.summary-section {
    padding: 26px 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    /* 既存カードが白なら合わせる */
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    border: 1px solid rgba(197, 160, 89, .14);
    /* 金の境界線を薄く */
    margin-bottom: 22px;
    /* 下のグリッドと距離 */
}

/* モバイルで詰まり過ぎない */
@media (max-width: 640px) {
    .summary-section {
        padding: 18px 18px;
        border-radius: 18px;
        margin-bottom: 16px;
    }
}

/* =========================
   TOP（index）専用：幅を締めて読みやすく
   ========================= */
.home-top .hero-card {
    max-width: 760px;
    /* 白枠が広い問題を解消 */
    margin-left: auto;
    margin-right: auto;
}

.home-top .birth-grid {
    max-width: 560px;
    /* セレクトが広い問題を解消 */
    margin: 18px auto 0;
}

/* セレクト内の見た目を整える（中央寄りでスッキリ） */
.home-top select {
    text-align: center;
    text-align-last: center;
    /* Chrome系で効く */
}

/* モバイルは“1カラムなので幅100%でOK”＋文字少し大きめ */
@media (max-width: 768px) {
    .home-top .hero-card {
        max-width: 92vw;
    }

    .home-top .birth-grid {
        max-width: 92vw;
    }
}

/* =========================
   Header：文字サイズ微調整
   ========================= */
.site-header a,
.site-header nav a,
.header-nav a {
    font-size: 1rem;
    /* ← ここが肝：だいたい 14px→15.5px くらいの体感 */
}