/* ======================================================
   基本設定
====================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', Meiryo, sans-serif;
    background: #f5f0eb;
    color: #333;
    line-height: 1.7;
    min-height: 100vh;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px 48px;
}
.container--narrow {
    max-width: 480px;
}
.main-content {
    padding-top: 4px;
}

/* ======================================================
   ヘッダー
====================================================== */
.site-header {
    text-align: center;
    padding: 40px 0 24px;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a3728;
    letter-spacing: .05em;
}

.site-subtitle {
    margin-top: 6px;
    font-size: .9rem;
    color: #888;
}

/* ======================================================
   カード
====================================================== */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4a3728;
    border-left: 4px solid #c9a96e;
    padding-left: 10px;
    margin-bottom: 16px;
}

/* ======================================================
   メッセージカード
====================================================== */
.card--message {
    background: linear-gradient(135deg, #fffdf8, #fff8ee);
    border-left: 6px solid #c9a96e;
}

.message-header {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.color-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    color: #fff;
    font-size: .8rem;
    font-weight: bold;
    background: #888;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

.phase-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: bold;
}

.phase--spring { background: #e8f5e9; color: #2e7d32; }
.phase--summer { background: #fff3e0; color: #e65100; }
.phase--autumn { background: #fce4ec; color: #880e4f; }
.phase--winter { background: #e3f2fd; color: #0d47a1; }

.message-main {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a3728;
    margin-bottom: 8px;
}

.message-sub {
    font-size: .95rem;
    color: #666;
    margin-bottom: 6px;
}

.message-encourage {
    font-size: .9rem;
    color: #c9a96e;
    font-style: italic;
}

/* ======================================================
   フォーム
====================================================== */
.fortune-form { margin-top: 8px; }

.error-msg {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: .9rem;
    margin-bottom: 16px;
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: .9rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 6px;
}

.form-label.required::after {
    content: ' *';
    color: #e53935;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    background: #fafafa;
    transition: border-color .2s;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #c9a96e;
    background: #fff;
}

.form-input--time { width: auto; }

.form-hint { font-size: .8rem; color: #999; margin-top: 4px; }

.date-inputs {
    display: flex;
    gap: 8px;
}

.date-inputs .form-select { width: auto; flex: 1; }

.radio-group {
    display: flex;
    gap: 24px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: .95rem;
}

.form-actions { margin-top: 24px; text-align: center; }

/* ======================================================
   ボタン
====================================================== */
.btn {
    display: inline-block;
    padding: 12px 36px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity .2s, transform .1s;
}

.btn:active { transform: scale(.98); }

.btn--primary {
    background: linear-gradient(135deg, #c9a96e, #a67c52);
    color: #fff;
    box-shadow: 0 3px 10px rgba(169,124,82,.3);
}

.btn--primary:hover { opacity: .9; }

.btn--secondary {
    background: #f0ece6;
    color: #4a3728;
}

.btn--secondary:hover { opacity: .85; }

/* ======================================================
   命式グリッド
====================================================== */
.meishiki-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.meishiki-col {
    text-align: center;
    flex: 1;
    min-width: 80px;
    padding: 12px 8px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #eee;
}

.meishiki-col--main {
    background: #fff8ee;
    border-color: #c9a96e;
}

.meishiki-label {
    font-size: .75rem;
    color: #999;
    margin-bottom: 6px;
}

.meishiki-kanshi {
    font-size: 1.6rem;
    font-weight: bold;
    color: #4a3728;
    letter-spacing: .1em;
}

.meishiki-gogyo {
    font-size: .8rem;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.kubo-info {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
    font-size: .9rem;
    color: #666;
}

.info-label { font-weight: bold; color: #555; }
.kubo-value { color: #c9a96e; font-weight: bold; }

/* ======================================================
   五行カラー
====================================================== */
.gogyo--ki     { background: #e8f5e9; color: #2e7d32; }
.gogyo--hi     { background: #fce4ec; color: #c62828; }
.gogyo--tsuchi { background: #fff8e1; color: #f57f17; }
.gogyo--kin    { background: #f3e5f5; color: #6a1b9a; }
.gogyo--mizu   { background: #e3f2fd; color: #0d47a1; }

/* ======================================================
   パーソナリティーカラー
====================================================== */
.color-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.color-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.color-label {
    font-size: .75rem;
    color: #999;
    margin-bottom: 8px;
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 3px solid rgba(0,0,0,.1);
}

.color-item--main .color-circle {
    width: 76px;
    height: 76px;
    border-color: #c9a96e;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.color-name { font-weight: bold; font-size: .95rem; }
.color-character { font-size: .75rem; color: #888; margin-top: 2px; }
.color-jyuni { font-size: .75rem; color: #aaa; }

/* ======================================================
   五行グループヘッダー
====================================================== */
.gogyo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.gogyo-type { font-size: 1.2rem; font-weight: bold; }
.gogyo-name { font-size: 1rem; }
.gogyo-sign { font-size: .85rem; opacity: .7; }

/* ======================================================
   通変星
====================================================== */
.tsuhen-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tsuhen-name { font-size: 1.3rem; font-weight: bold; color: #4a3728; }
.tsuhen-type { font-size: .9rem; color: #888; }
.tsuhen-name-detail { font-size: .85rem; color: #aaa; }

/* ======================================================
   テキストコンテンツ
====================================================== */
.text-content {
    font-size: .9rem;
    line-height: 1.8;
    color: #555;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid #e0d5c5;
    max-height: 300px;
    overflow-y: auto;
}

/* ======================================================
   五行バランス
====================================================== */
.balance-grid { display: flex; flex-direction: column; gap: 8px; }

.balance-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.balance-label {
    width: 28px;
    text-align: center;
    font-weight: bold;
    font-size: .9rem;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}

.balance-bar {
    flex: 1;
    height: 12px;
    background: #f0ece6;
    border-radius: 6px;
    overflow: hidden;
}

.balance-fill {
    height: 100%;
    border-radius: 6px;
    transition: width .4s ease;
}

.balance-fill.gogyo--ki     { background: #4caf50; }
.balance-fill.gogyo--hi     { background: #ef5350; }
.balance-fill.gogyo--tsuchi { background: #ffb300; }
.balance-fill.gogyo--kin    { background: #ab47bc; }
.balance-fill.gogyo--mizu   { background: #42a5f5; }

.balance-val { width: 24px; text-align: right; font-size: .85rem; color: #999; }

/* ======================================================
   週間運勢
====================================================== */
.week-grid {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.week-grid--compact .week-day {
    min-width: 60px;
    padding: 8px 4px;
    font-size: .85rem;
}

.week-day {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 10px 6px;
    border-radius: 8px;
    background: #fafafa;
    border: 1px solid #eee;
}

.week-day--today {
    background: #fff8ee;
    border-color: #c9a96e;
    box-shadow: 0 2px 6px rgba(201,169,110,.2);
}

.week-date { font-size: .8rem; color: #888; }
.week-weekday { font-size: .8rem; color: #555; font-weight: bold; margin-bottom: 4px; }
.week-stars { font-size: .7rem; color: #f0a500; margin-bottom: 4px; }

.week-gogyo {
    font-size: .72rem;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
}

.special-badge {
    display: inline-block;
    font-size: .65rem;
    padding: 1px 5px;
    background: #fce4ec;
    color: #c62828;
    border-radius: 8px;
    margin-top: 3px;
}

/* ======================================================
   年運・大運
====================================================== */
.nenun-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fafafa;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.nenun-item--current {
    background: #fff8ee;
    border: 1px solid #c9a96e;
}

.nenun-year { font-weight: bold; font-size: 1.1rem; color: #4a3728; min-width: 60px; }
.nenun-kanshi { font-size: 1.1rem; color: #555; }
.nenun-phase { font-size: .85rem; padding: 3px 10px; border-radius: 12px; }
.nenun-saiun { font-size: .85rem; color: #888; }

.taiun-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f0ff;
    border-radius: 8px;
    flex-wrap: wrap;
}

.taiun-age { font-size: .85rem; color: #888; }
.taiun-kanshi { font-size: 1.3rem; font-weight: bold; color: #4a3728; }
.taiun-gogyo { font-size: .9rem; color: #666; }
.taiun-phase { font-size: .85rem; padding: 3px 10px; border-radius: 12px; }

/* ======================================================
   情報ボックス
====================================================== */
.info-box {
    padding: 16px 20px;
    background: #f0ece6;
    border-radius: 10px;
    font-size: .85rem;
    color: #666;
    line-height: 1.8;
    margin-top: 8px;
}

/* ======================================================
   戻るボタン
====================================================== */
.back-action {
    text-align: center;
    margin-top: 8px;
}

/* ======================================================
   詳細鑑定カード
====================================================== */
.card--reading {
    border-top: 5px solid #c9a96e;
}

.reading-loading {
    text-align: center;
    padding: 40px 0;
}

.reading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0ece6;
    border-top-color: #c9a96e;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.reading-loading-text {
    font-size: .88rem;
    color: #aaa;
}

.reading-body {
    font-size: .95rem;
    line-height: 1.9;
    color: #444;
}

.reading-body h2 {
    font-size: 1.05rem;
    font-weight: bold;
    color: #4a3728;
    border-left: 4px solid #c9a96e;
    padding-left: 10px;
    margin: 24px 0 10px;
}

.reading-body h3 {
    font-size: .95rem;
    font-weight: bold;
    color: #666;
    margin: 16px 0 6px;
}

.reading-body p {
    margin-bottom: 12px;
}

.reading-body ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.reading-body li {
    margin-bottom: 6px;
}

.reading-body strong {
    color: #4a3728;
}

.reading-body blockquote {
    border-left: 4px solid #c9a96e;
    padding: 12px 16px;
    background: #fff8ee;
    border-radius: 0 8px 8px 0;
    margin: 16px 0;
    font-style: italic;
    color: #555;
}

.reading-error {
    padding: 20px;
    background: #fce4ec;
    border-radius: 8px;
    color: #c62828;
    font-size: .88rem;
}

/* ======================================================
   週間ヒント
====================================================== */
.week-hint {
    font-size: .78rem;
    color: #aaa;
    text-align: center;
    margin-bottom: 10px;
}

.week-day {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.week-day:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.week-day--special {
    border-color: #f0c040;
}

.week-special-dot {
    font-size: .7rem;
    color: #f0a500;
    margin-top: 3px;
}

/* ======================================================
   日別ナビゲーション
====================================================== */
.day-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 8px;
}

.day-nav__arrow {
    font-size: .9rem;
    color: #c9a96e;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e0d5c5;
    transition: background .2s;
}

.day-nav__arrow:hover { background: #f9f4ec; }

.day-nav__back {
    font-size: .8rem;
    color: #aaa;
    text-decoration: none;
}

/* ======================================================
   日別ヘッダー
====================================================== */
.card--day-header {
    border-top: 5px solid #c9a96e;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.day-date-block { flex: 1; }

.day-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: bold;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
    letter-spacing: .05em;
}

.day-badge--today  { background: #c9a96e; color: #fff; }
.day-badge--future { background: #e8f5e9; color: #2e7d32; }
.day-badge--past   { background: #f5f5f5; color: #999; }

.day-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a3728;
}

.day-person {
    font-size: .85rem;
    color: #888;
    margin-top: 4px;
}

.day-score-block {
    text-align: right;
}

.day-stars {
    font-size: 1rem;
    color: #f0a500;
}

.day-level {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 14px;
    font-size: .85rem;
    font-weight: bold;
    margin-top: 4px;
}

.level--great  { background: #ff6b35; color: #fff; }
.level--good   { background: #4caf50; color: #fff; }
.level--normal { background: #f0ece6; color: #555; }
.level--caution{ background: #ff9800; color: #fff; }
.level--bad    { background: #9e9e9e; color: #fff; }

.day-star-num {
    font-size: .75rem;
    color: #bbb;
    margin-top: 2px;
}

.special-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
}

.special-flag-badge {
    display: inline-block;
    padding: 3px 12px;
    background: linear-gradient(135deg, #fff8dc, #fce4ec);
    border: 1px solid #f0c040;
    border-radius: 14px;
    font-size: .78rem;
    font-weight: bold;
    color: #7b5c00;
}

/* ======================================================
   エネルギーグリッド
====================================================== */
.energy-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.energy-item {
    flex: 1;
    min-width: 130px;
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.energy-label {
    font-size: .72rem;
    color: #aaa;
    margin-bottom: 6px;
}

.energy-main {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.energy-unki {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: bold;
    margin-bottom: 6px;
}

.unki--good    { background: #e8f5e9; color: #2e7d32; }
.unki--bad     { background: #fce4ec; color: #c62828; }
.unki--neutral { background: #fff3e0; color: #e65100; }

.energy-desc {
    font-size: .82rem;
    color: #666;
    line-height: 1.6;
}

.energy-phase {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: .75rem;
    margin-top: 4px;
}

.jyuni-info {
    padding-top: 12px;
    border-top: 1px dashed #eee;
    font-size: .9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.jyuni-value { font-weight: bold; color: #4a3728; }

.jyuni-color {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 10px;
    font-size: .78rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

/* ======================================================
   特別な運気カード
====================================================== */
.card--special {
    background: linear-gradient(135deg, #fffdf0, #fff8e1);
    border: 1px solid #f0c040;
}

.special-detail {
    padding: 10px 0;
    border-bottom: 1px dashed #f0e0a0;
}

.special-detail:last-child { border-bottom: none; }

.special-detail-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #f0c040;
    color: #5c4200;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: bold;
    margin-right: 6px;
}

.special-detail-area {
    font-size: .8rem;
    color: #aaa;
}

.special-detail-desc {
    font-size: .85rem;
    color: #666;
    margin-top: 6px;
    line-height: 1.7;
}

/* ======================================================
   メッセージ・アクション
====================================================== */
.message-action {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff8ee;
    border-radius: 8px;
    border: 1px solid #e0d5c5;
    font-size: .88rem;
    color: #4a3728;
}

.message-action-label {
    display: block;
    font-size: .72rem;
    color: #c9a96e;
    font-weight: bold;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ======================================================
   日別ナビ下部
====================================================== */
.day-nav-bottom { padding: 16px; }

.day-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.btn--nav {
    padding: 10px 20px;
    font-size: .9rem;
}

.btn--ghost {
    background: transparent;
    color: #aaa;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: .82rem;
    text-decoration: none;
    transition: background .2s;
}

.btn--ghost:hover { background: #f5f5f5; }

/* ======================================================
   レスポンシブ
====================================================== */
/* ======================================================
   ロックカード（お試し制限）
====================================================== */
.card--locked {
    background: linear-gradient(135deg, #fdf6ff 0%, #f0f4ff 100%);
    border: 2px dashed #b39ddb;
    text-align: center;
    padding: 2rem 1.5rem;
}
.locked-header {
    margin-bottom: 1.2rem;
}
.locked-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: .4rem;
}
.locked-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #5c35a0;
}
.locked-list {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin: 0 auto 1.5rem;
    padding: 0;
}
.locked-list li {
    padding: .4rem 0;
    font-size: .95rem;
    color: #444;
}
.btn--large {
    font-size: 1.05rem;
    padding: .9rem 2rem;
    width: 100%;
    max-width: 320px;
}
.locked-note {
    margin-top: .8rem;
    font-size: .8rem;
    color: #888;
}

/* LINEボタン */
.btn--line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: #06c755;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    padding: .75rem 1.5rem;
    text-decoration: none;
    transition: background .2s;
}
.btn--line:hover { background: #05a847; }
.btn-line-icon {
    background: #fff;
    color: #06c755;
    font-size: .7rem;
    font-weight: bold;
    border-radius: 4px;
    padding: 1px 4px;
}

/* ログインバナー */
/* 無料鑑定バナー */
.card--free-reading-banner {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border-left: 4px solid #f59e0b;
    text-align: center;
    padding: 2rem 1.5rem;
}
.free-reading-banner__icon {
    font-size: 2rem;
    margin-bottom: .5rem;
}
.free-reading-banner__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: .6rem;
}
.free-reading-banner__body {
    font-size: .9rem;
    color: #78350f;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.card--login-banner {
    background: #e8f5e9;
    border-left: 4px solid #06c755;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.login-banner-text {
    font-size: .9rem;
    color: #2e7d32;
}

@media (max-width: 480px) {
    .site-title { font-size: 1.4rem; }
    .meishiki-kanshi { font-size: 1.3rem; }
    .color-circle { width: 50px; height: 50px; }
    .color-item--main .color-circle { width: 64px; height: 64px; }
    .week-day { min-width: 68px; }
    .color-circle--large { width: 72px; height: 72px; }
    .gogyo-badge--large { font-size: 1.2rem; padding: 10px 20px; }
}

/* ======================================================
   無料鑑定フォーム
====================================================== */
.card--intro {
    background: linear-gradient(135deg, #f0f4ff, #f8f0ff);
    border: 1px solid #d0c0f0;
}
.reading-intro-text {
    font-size: .95rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}
.reading-intro-note {
    font-size: .82rem;
    color: #888;
}
.reading-step {
    position: relative;
    padding-top: 36px;
}
.reading-step__num {
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: .72rem;
    font-weight: bold;
    color: #888;
    letter-spacing: .08em;
}
.reading-step__title {
    font-size: 1rem;
    font-weight: bold;
    color: #4a3728;
    margin-bottom: 4px;
}
.reading-step__note {
    font-size: .82rem;
    color: #aaa;
    margin-bottom: 14px;
}
.reading-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.reading-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid #e8ddd0;
    background: #fff;
    transition: border-color .15s, background .15s;
}
.reading-option:hover { border-color: #c8a060; background: #fffaf3; }
.reading-option input[type="radio"] { margin-top: 2px; flex-shrink: 0; accent-color: #c8a060; }
.reading-option input[type="radio"]:checked + .reading-option__label { color: #7a5000; font-weight: bold; }
.reading-option:has(input:checked) { border-color: #c8a060; background: #fffaf0; }
.reading-option__label { font-size: .92rem; color: #444; line-height: 1.5; }
.reading-textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px 12px;
    border: 1px solid #e8ddd0;
    border-radius: 8px;
    font-size: .92rem;
    font-family: inherit;
    resize: vertical;
    color: #333;
}
.reading-textarea:focus { outline: none; border-color: #c8a060; }
.reading-char-limit { font-size: .78rem; color: #aaa; margin-top: 4px; text-align: right; }

/* 確認画面 */
.card--confirm-banner {
    text-align: center;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border: 1px solid #c8e6c9;
    padding: 32px 24px;
}
.confirm-banner-icon { font-size: 2.4rem; margin-bottom: 8px; }
.confirm-banner-title { font-size: 1.2rem; font-weight: bold; color: #2e7d32; margin-bottom: 8px; }
.confirm-banner-body { font-size: .92rem; color: #444; }

.card--best-day { text-align: center; }
.best-day-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0; }
.best-day-date { font-size: 1.6rem; font-weight: bold; color: #4a3728; }
.best-day-stars { font-size: 1.3rem; }
.best-day-level { font-size: 1rem; font-weight: bold; }
.best-day-note { font-size: .82rem; color: #888; }

.confirm-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .92rem; }
.confirm-dl dt { color: #888; font-weight: bold; white-space: nowrap; }
.confirm-dl dd { color: #333; }

.card--cancel { text-align: center; background: #fafafa; }
.cancel-note { font-size: .82rem; color: #aaa; margin-bottom: 12px; }

/* ======================================================
   お試しページ追加スタイル
====================================================== */

/* 五行グループカード */
.gogyo-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background .15s;
}
.gogyo-inner:hover { background: #f5f0eb; }
.gogyo-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.gogyo-category {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 999px;
    background: #f5f0eb;
}
.gogyo-sign {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}
.gogyo-name-badge {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 6px;
    background: #f5f0eb;
}
.gogyo-full-label {
    font-size: .88rem;
    color: #888;
}
.gogyo-tap-hint {
    font-size: .8rem;
    color: #aaa;
}

/* パーソナリティーカラーカード */
.kubo-badge {
    display: inline-block;
    font-size: .88rem;
    background: #fff3e0;
    border: 1px solid #ffcc80;
    border-radius: 6px;
    padding: 4px 12px;
    margin-bottom: 16px;
    color: #e65100;
}
.color-triple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.color-triple-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px 4px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color .15s, background .15s;
}
.color-triple-item:hover { background: #f5f0eb; }
.color-triple-item--main {
    border-color: #e0c090;
    background: #fffaf3;
}
.color-triple-label {
    font-size: .78rem;
    color: #888;
    font-weight: bold;
}
.color-circle--medium {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.color-triple-name {
    font-size: .88rem;
    font-weight: bold;
    color: #4a3728;
}
.color-tap-hint {
    font-size: .72rem;
    color: #bbb;
}
/* 通変星行 */
.tsuhen-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f0e8df;
}
.tsuhen-label {
    font-size: .82rem;
    color: #888;
    white-space: nowrap;
}
.tsuhen-badge {
    font-size: .85rem;
    background: #f0e8df;
    border-radius: 6px;
    padding: 3px 10px;
    color: #4a3728;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.star-kind {
    font-size: .68rem;
    opacity: .75;
    white-space: nowrap;
}
/* 三角レイアウト */
.color-triangle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px 8px;
    margin-top: 8px;
}
.color-tri-node--top {
    grid-column: 1 / 3;
    justify-self: center;
    width: min(260px, 100%);
}
.color-tri-node--left  { grid-column: 1; }
.color-tri-node--right { grid-column: 2; }

.color-tri-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px 10px;
    border-radius: 14px;
    border: 2px solid #e8ddd0;
    background: #fffaf5;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    text-align: center;
}
/* 表面・前世のスタータグは横並び */
.color-tri-node--left .star-tag,
.color-tri-node--right .star-tag {
    display: inline-flex;
}
.color-tri-node--left .star-tags,
.color-tri-node--right .star-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}
.color-tri-node:hover { border-color: #c8a060; background: #fff5e8; }

.color-tri-node--top {
    border-color: #d4a840;
    background: #fffbf0;
}
.ctn-label {
    font-size: .72rem;
    font-weight: bold;
    color: #888;
    letter-spacing: .05em;
}
.ctn-circle {
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.ctn-name {
    font-size: .95rem;
    font-weight: bold;
    color: #4a3728;
}
.ctn-tap {
    font-size: .7rem;
    color: #bbb;
    margin-top: 2px;
}

/* スタータグ */
.star-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .8rem;
    background: #f0e8df;
    border-radius: 5px;
    padding: 2px 8px;
    color: #4a3728;
    margin: 1px;
}
.star-tag--main {
    background: #fff3cd;
    border: 1.5px solid #e8b800;
    color: #7a5500;
    font-weight: bold;
    font-size: .88rem;
    padding: 3px 10px;
}
.color-tri-node--right .star-tag--main {
    background: #fde8f0;
    border-color: #e0709a;
    color: #8a1040;
}
.star-tag-kind {
    font-size: .68rem;
    opacity: .75;
    font-weight: normal;
}

/* 特別な星（通変星とは完全に別スタイル） */
.special-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed #d0c8c0;
    width: 100%;
}
.special-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: .72rem;
    color: #5060a0;
    background: transparent;
    border: 1px solid #9ab0e8;
    border-radius: 3px;
    padding: 1px 6px;
    letter-spacing: .02em;
}
.special-tag-kind {
    font-size: .65rem;
    color: #90a0c0;
}
/* 本質・柱間フラグ行（三角形の下） */
.special-flags-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0e8df;
}
.special-flags-label {
    font-size: .75rem;
    color: #aaa;
    white-space: nowrap;
}

/* モーダル内カラー説明 */
.modal-color-desc {
    font-size: .85rem;
    color: #666;
    line-height: 1.7;
    background: #f8f4ef;
    border-radius: 8px;
    padding: 10px 14px;
}

/* カラーカード（後方互換） */
.color-circle--large {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* 週間運気（クリック可） */
.week-day--locked {
    cursor: pointer;
    position: relative;
}
.week-day--locked::after {
    content: '🔒';
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: .65rem;
    opacity: .6;
}
.week-day--locked:hover {
    background: #f5f0eb;
}
.card-note {
    font-size: .82rem;
    color: #999;
    margin: -8px 0 12px;
}

/* CTA カード */
.card--cta {
    text-align: center;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border: 1px solid #c8e6c9;
}
.cta-text {
    font-size: .95rem;
    color: #2e7d32;
    margin-bottom: 16px;
    font-weight: 500;
}

/* モーダル */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}
.modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    max-width: 360px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.modal-box--wide {
    max-width: 480px;
    text-align: left;
}
.modal-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.modal-list li {
    font-size: .9rem;
    color: #444;
    padding: 6px 10px 6px 20px;
    border-left: 3px solid #e0c090;
    background: #fffaf3;
    border-radius: 0 6px 6px 0;
    position: relative;
}
.modal-list li::before {
    content: '▸';
    position: absolute;
    left: 6px;
    color: #c8a060;
}
.modal-color-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0e8df;
}
.modal-color-label {
    font-size: .8rem;
    color: #888;
}
.modal-color-header .modal-title {
    margin: 0;
}
.modal-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4a3728;
}
.modal-body {
    font-size: .9rem;
    color: #555;
    line-height: 1.7;
}
.modal-close {
    margin-top: 4px;
    font-size: .85rem;
}

/* ======================================================
   無料鑑定メッセージ（マイページ）
====================================================== */
.card--messages {
    padding-bottom: 8px;
}

/* 各鑑定アイテム */
.reading-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0e8df;
}
.reading-item:last-of-type {
    border-bottom: none;
}

/* メタ行（テーマ・日付） */
.reading-item__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.reading-item__theme {
    font-size: .8rem;
    font-weight: 600;
    background: #f0e8df;
    color: #7a5c44;
    padding: 2px 10px;
    border-radius: 99px;
}
.reading-item__date {
    font-size: .82rem;
    color: #999;
}
.reading-item__status {
    font-size: .8rem;
    color: #c8a060;
    font-weight: 600;
    animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

/* メッセージ吹き出し */
.reading-bubble {
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    position: relative;
}
.reading-bubble--main {
    background: #fff9f0;
    border-left: 4px solid #c8a060;
}
.reading-bubble--sub {
    background: #f5f9ff;
    border-left: 4px solid #90b8e0;
}
.reading-bubble__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.reading-bubble--main .reading-bubble__label { color: #c8a060; }
.reading-bubble--sub  .reading-bubble__label { color: #6a9abf; }
.reading-bubble__text {
    font-size: .95rem;
    line-height: 1.8;
    color: #333;
    white-space: pre-line;
}

/* 準備中表示 */
.reading-pending {
    text-align: center;
    padding: 20px 16px;
    background: #fffbf5;
    border-radius: 10px;
    border: 1px dashed #e2c99a;
}
.reading-pending__icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.reading-pending__text {
    font-size: .88rem;
    color: #888;
    line-height: 1.7;
}
.reading-pending__date {
    margin-top: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: #c8a060;
}

/* 空・申込ボタン */
.reading-empty-text {
    font-size: .9rem;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.7;
}
.reading-cta {
    text-align: center;
    padding: 8px 0 12px;
}
.btn--sm {
    padding: 8px 20px;
    font-size: .85rem;
}

/* ======================================================
   プラン制限（週間グリッド・day画面）
====================================================== */
.week-day--locked {
    opacity: .6;
    cursor: default;
    position: relative;
    background: #f5f0eb;
}
.week-day__lock {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: .75rem;
    line-height: 1;
}
.week-upgrade-hint {
    margin-top: 10px;
    font-size: .82rem;
    color: #aaa;
    text-align: center;
}
.week-upgrade-link {
    color: #c8a060;
    font-weight: 600;
    text-decoration: none;
}
.week-upgrade-link:hover { text-decoration: underline; }

/* 前後ナビ：無効状態 */
.day-nav__arrow--disabled {
    color: #ccc;
    cursor: default;
    pointer-events: none;
}

/* アップグレードウォール */
.card--upgrade {
    text-align: center;
    padding: 40px 24px;
}
.upgrade-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.upgrade-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a3728;
    margin-bottom: 12px;
}
.upgrade-body {
    font-size: .92rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ======================================================
   取扱説明書 CTA カード（view.php）
====================================================== */
.card--reading-cta {
    background: linear-gradient(135deg, #fffdf5, #fff8e8);
    border-left: 5px solid #c8a060;
}
.reading-cta-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.reading-cta-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.reading-cta-text {
    flex: 1;
}
.reading-cta-title {
    font-size: 1rem;
    font-weight: bold;
    color: #4a3728;
    margin-bottom: 4px;
}
.reading-cta-desc {
    font-size: .85rem;
    color: #888;
}

/* ======================================================
   取扱説明書ページ（reading.php）
====================================================== */
.reading-header {
    text-align: center;
}

.card--reading-section {
    /* 既存 .card スタイルを継承 */
}

.reading-section-title {
    /* 既存 .card-title を継承 */
}

/* 五行タイプバッジ */
.reading-type-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: bold;
    background: #f0ece6;
    color: #4a3728;
    margin-bottom: 12px;
}
.reading-type-badge.gogyo--ki     { background: #e8f5e9; color: #2e7d32; }
.reading-type-badge.gogyo--hi     { background: #fff3e0; color: #e65100; }
.reading-type-badge.gogyo--tsuchi { background: #fef9e7; color: #7d6608; }
.reading-type-badge.gogyo--kin    { background: #f5f5f5; color: #555; }
.reading-type-badge.gogyo--mizu   { background: #e3f2fd; color: #1565c0; }

/* 基本性格テキスト */
.reading-nature {
    font-size: .95rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 12px;
}

/* キーワード */
.reading-keywords {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.reading-keyword-label {
    font-size: .78rem;
    background: #c8a060;
    color: #fff;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: bold;
    flex-shrink: 0;
}
.reading-keyword-value {
    font-size: .9rem;
    color: #666;
}

/* 五行関係バッジ */
.gogyo-relation-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: bold;
    margin-bottom: 10px;
    background: #f0ece6;
    color: #4a3728;
}
.relation-sousho_give, .relation-sousho_get {
    background: #e8f5e9;
    color: #2e7d32;
}
.relation-soukoku_give, .relation-soukoku_get {
    background: #fff3e0;
    color: #bf360c;
}
.relation-same {
    background: #e3f2fd;
    color: #1565c0;
}

.gogyo-relation-desc {
    font-size: .9rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 10px;
}

.compat-text {
    font-size: .9rem;
    color: #4a3728;
    font-weight: 600;
    border-left: 3px solid #c8a060;
    padding-left: 10px;
    margin-top: 4px;
}

/* 相性カード */
.card--compat {
    background: linear-gradient(135deg, #fffdf8, #fff8ee);
}
.compat-inner {
    text-align: center;
}
.compat-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: .9rem;
    color: #555;
}
.compat-you, .compat-them {
    font-weight: 600;
    color: #4a3728;
}
.compat-arrow {
    color: #c8a060;
    font-size: 1.1rem;
}
.compat-stars {
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.compat-level {
    display: inline-block;
    font-size: .8rem;
    font-weight: bold;
    padding: 2px 12px;
    border-radius: 20px;
}

/* 接し方ブロック */
.approach-block {
    background: #f9f7f4;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
}
.approach-block--avoid {
    background: #fff5f5;
}
.approach-block--timing {
    background: #f0f8ff;
}
.approach-block__label {
    font-size: .78rem;
    font-weight: bold;
    color: #c8a060;
    margin-bottom: 4px;
}
.approach-block--avoid   .approach-block__label { color: #c0392b; }
.approach-block--timing  .approach-block__label { color: #2980b9; }
.approach-block__text {
    font-size: .9rem;
    color: #444;
    line-height: 1.75;
}

/* 最良日ハイライト */
.best-day-highlight {
    text-align: center;
    background: linear-gradient(135deg, #fffdf5, #fff3cd);
    border: 2px solid #c8a060;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 10px;
}
.best-day-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a3728;
    margin-bottom: 4px;
}
.best-day-stars {
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.best-day-gogyo {
    font-size: .85rem;
    font-weight: bold;
}
.best-day-desc {
    font-size: .85rem;
    color: #888;
    margin-bottom: 0;
}

/* 最良日マーク */
.week-day--best {
    border: 2px solid #c8a060;
    background: #fffdf0;
    position: relative;
}
.week-day__best-mark {
    font-size: .65rem;
    background: #c8a060;
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
    margin-top: 2px;
    text-align: center;
    font-weight: bold;
}

/* ======================================================
   有料プランページ
====================================================== */
.plan-current-card {
    text-align: center;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border: 1px solid #a5d6a7;
}
.plan-current-badge {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    font-size: .85rem;
    font-weight: bold;
    padding: 4px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.plan-current-text {
    font-size: .9rem;
    color: #2e7d32;
    line-height: 1.7;
}
.plan-hero-card {
    text-align: center;
    background: linear-gradient(135deg, #fffdf5, #fff3cd);
    border-left: 5px solid #c8a060;
    padding: 28px 24px;
}
.plan-hero-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.plan-hero-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #4a3728;
    line-height: 1.5;
    margin-bottom: 10px;
}
.plan-hero-sub {
    font-size: .9rem;
    color: #888;
    line-height: 1.7;
}
.plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.plan-table th,
.plan-table td {
    padding: 9px 8px;
    border-bottom: 1px solid #f0e8df;
    text-align: center;
}
.plan-table__feat {
    text-align: left;
    color: #4a3728;
    font-weight: 600;
    width: 55%;
}
.plan-table td:first-child {
    text-align: left;
    color: #555;
}
.plan-table__free { color: #888; width: 20%; }
.plan-table__paid { color: #c8a060; font-weight: bold; width: 25%; }
.plan-table__highlight td {
    background: #fffaf0;
}
.plan-check { color: #2e7d32; font-weight: bold; }
.plan-cross  { color: #bbb; }
.plan-price-card {
    text-align: center;
    padding: 28px 24px;
}
.plan-price-label {
    font-size: .85rem;
    color: #888;
    margin-bottom: 4px;
}
.plan-price-amount {
    font-size: 1.2rem;
    color: #4a3728;
    font-weight: bold;
    margin-bottom: 4px;
}
.plan-price-amount span {
    font-size: 2.6rem;
}
.plan-price-note {
    font-size: .78rem;
    color: #aaa;
    margin-bottom: 20px;
}
.plan-cta-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}
.plan-coming-text {
    font-size: .88rem;
    color: #aaa;
    line-height: 1.7;
}

/* mypage contacts CTA */
.card--contacts-link .btn--ghost {
    border: 2px solid #c8a060;
    color: #c8a060;
    background: transparent;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background .15s;
}
.card--contacts-link .btn--ghost:hover {
    background: #fff8e8;
}

/* ======================================================
   グローバルナビ（共通）
====================================================== */
.global-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 14px;
    border-bottom: 1px solid #e8ddd4;
    margin-bottom: 16px;
    position: relative;
}
.global-nav__title {
    font-size: 1rem;
    font-weight: bold;
    color: #4a3728;
    flex: 1;
    text-align: center;
}
.global-nav__back {
    font-size: .85rem;
    color: #c8a060;
    text-decoration: none;
    font-weight: 600;
    min-width: 60px;
}
.global-nav__back:hover { text-decoration: underline; }
.global-nav__link {
    font-size: .85rem;
    color: #c8a060;
    text-decoration: none;
    font-weight: 600;
}
.global-nav__link:hover { text-decoration: underline; }
.global-nav__links {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 60px;
    justify-content: flex-end;
}
.global-nav__link--logout {
    color: #aaa;
}

/* ハンバーガーボタン */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 32px;
    justify-content: center;
}
.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #4a3728;
    border-radius: 2px;
    transition: all .25s ease;
}
.hamburger-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ドロワーオーバーレイ */
.drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 900;
}
.drawer-overlay.is-open { display: block; }

/* ドロワーパネル */
.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 240px;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    z-index: 901;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.drawer-panel.is-open {
    transform: translateX(0);
}
.drawer-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f0e8df;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drawer-title {
    font-size: .95rem;
    font-weight: bold;
    color: #4a3728;
}
.drawer-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    padding: 2px 4px;
}
.drawer-menu {
    list-style: none;
    padding: 12px 0;
    flex: 1;
}
.drawer-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    font-size: .95rem;
    color: #4a3728;
    text-decoration: none;
    transition: background .15s;
}
.drawer-menu li a:hover { background: #fffaf3; }
.drawer-menu li a .drawer-icon {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}
.drawer-menu__divider {
    border: none;
    border-top: 1px solid #f0e8df;
    margin: 8px 20px;
}
.drawer-menu li a.drawer-link--logout {
    color: #aaa;
    font-size: .88rem;
}

/* ======================================================
   マイページヘッダー
====================================================== */
.mypage-header {
    text-align: center;
    padding: 16px 0 12px;
    margin-bottom: 8px;
}
.mypage-header__name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #4a3728;
    margin-bottom: 6px;
}
.mypage-header__color {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: #7a5c44;
    margin-bottom: 6px;
}
.mypage-header__meta {
    font-size: .85rem;
    color: #888;
    margin-bottom: 4px;
}
.mypage-header__phase {
    margin-top: 4px;
}
.color-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    vertical-align: middle;
}
.color-dot-small {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
}

/* ======================================================
   今日の運勢カード（マイページ）
====================================================== */
.card--today-unsei {
    background: linear-gradient(135deg, #fffdf8, #fff8ee);
}
.today-unsei-inner {
    text-align: center;
}
.today-gogyo-label {
    font-size: .9rem;
    color: #666;
    margin-bottom: 8px;
}
.today-stars {
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 4px;
}
.today-level {
    display: inline-block;
    font-size: .85rem;
    font-weight: bold;
    padding: 3px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.today-unsei-message {
    font-size: .9rem;
    color: #555;
    line-height: 1.75;
    margin-top: 8px;
    text-align: left;
    background: #fffaf4;
    border-radius: 8px;
    padding: 10px 14px;
}
.card-date {
    font-size: .85rem;
    font-weight: normal;
    color: #aaa;
    margin-left: 6px;
}
.week-hint {
    font-size: .82rem;
    color: #aaa;
    margin: -6px 0 10px;
}

/* ======================================================
   連絡先リスト
====================================================== */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
/* ======================================================
   連絡先カード（週間ストリップ付き）
====================================================== */
.contact-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    transition: box-shadow .15s;
    overflow: hidden;
}
.contact-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.contact-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
}
.contact-card__name {
    font-size: 1rem;
    font-weight: bold;
    color: #4a3728;
}
.contact-card__header-right {
    display: flex;
    align-items: center;
    gap: 5px;
}
.contact-card__color-name {
    font-size: .78rem;
    color: #888;
}

/* 週間ストリップ */
.contact-week-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid #f0e8df;
}
.cwday {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 7px 2px 6px;
    border-right: 1px solid #f5ede5;
    position: relative;
    background: #fafafa;
    transition: background .1s;
}
.cwday:last-child { border-right: none; }

.cwday--today {
    background: #fff8ee;
}
.cwday--best {
    background: linear-gradient(180deg, #fffbe8, #fff3cc);
    z-index: 1;
}
.cwday--today.cwday--best {
    background: linear-gradient(180deg, #fff4d6, #ffe8a0);
}

.cwday__weekday {
    font-size: .68rem;
    color: #aaa;
    font-weight: 600;
    margin-bottom: 1px;
}
.cwday--today  .cwday__weekday { color: #c8a060; }
.cwday--best   .cwday__weekday { color: #b07800; }

.cwday__date {
    font-size: .8rem;
    font-weight: bold;
    color: #555;
    margin-bottom: 3px;
}
.cwday--best .cwday__date { color: #7a4f00; }

.cwday__stars {
    font-size: .7rem;
    color: #f0a500;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 3px;
}
.cwday__gogyo {
    font-size: .62rem;
    font-weight: bold;
    padding: 1px 4px;
    border-radius: 6px;
    line-height: 1.3;
}

/* 表示切り替えタブ */
.emotion-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.emotion-tab {
    flex: 1;
    min-width: 0;
    padding: 5px 4px;
    font-size: .72rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #f9f5f0;
    color: #8b6a50;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    transition: background .15s, color .15s, border-color .15s;
}
.emotion-tab.is-active {
    background: #c8a060;
    color: #fff;
    border-color: #c8a060;
    font-weight: bold;
}

/* ストリップ上部のメトリクスラベル（JS で表示切り替え） */
.strip-metric-label {
    font-size: .72rem;
    color: #8b6a50;
    padding: 4px 0 2px 2px;
    font-weight: bold;
}
.strip-metric-label span { display: none; }

/* スコアアイコン（JS で表示切り替え） */
.cwday__score { display: none; }

/* 感情アイコン（ラベル別） */
.cwday__score {
    font-size: .65rem;
    line-height: 1;
    letter-spacing: -.05em;
    margin-bottom: 2px;
    text-align: center;
}
.emotion-icons--general { color: #c8a060; } /* ★ 総合運：ゴールド */
.emotion-icons--social  { color: #e05c7a; } /* ♥ 交流：ピンク */
.emotion-icons--fun     { color: #e07830; } /* ◆ 楽しみ：オレンジ */
.emotion-icons--action  { color: #4a8abf; } /* ▲ 行動：ブルー */
.emotion-icons--rest    { color: #9988bb; } /* ● 疲れ：ラベンダー */

/* 感情ラベル */
.cwday__emotion {
    font-size: .52rem;
    color: #8b6a50;
    text-align: center;
    line-height: 1.2;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 1px;
}

/* 最良マーク（cwday--best のときだけ表示） */
.cwday__best-mark { display: none; }
.cwday--best .cwday__best-mark { display: block; }
.cwday__best-mark {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #c8a060;
    color: #fff;
    font-size: .55rem;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 0 0 5px 5px;
    letter-spacing: .04em;
    white-space: nowrap;
}

.card--empty {
    text-align: center;
    padding: 40px 24px;
    color: #888;
}
.card--empty p {
    margin-bottom: 16px;
}

/* ===== フッター ===== */
.site-footer {
    margin-top: 48px;
    padding: 24px 16px;
    border-top: 1px solid #eee;
    text-align: center;
}
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-nav a {
    color: #888;
    font-size: 0.8rem;
    text-decoration: none;
}
.footer-nav a:hover {
    color: #555;
    text-decoration: underline;
}

/* ===== ポリシー・規約ページ ===== */
.policy-updated {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 24px;
}
.policy-section {
    margin-bottom: 28px;
}
.policy-section h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
}
.policy-section p,
.policy-section ul {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
}
.policy-section ul {
    padding-left: 20px;
}
.policy-section li {
    margin-bottom: 4px;
}
