/* ===========================
   AI四柱推命占い - スタイルシート
   =========================== */

/* --- リセット & ベース --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0a0a1a;
    --color-bg-card: #13132b;
    --color-bg-card-hover: #1a1a3a;
    --color-text: #e0e0f0;
    --color-text-muted: #8888aa;
    --color-accent: #c9a84c;
    --color-accent-light: #e8cc6e;
    --color-border: #2a2a4a;
    --color-error: #e74c3c;

    /* 五行カラー */
    --gogyo-wood: #4caf50;
    --gogyo-fire: #f44336;
    --gogyo-earth: #ff9800;
    --gogyo-metal: #9e9e9e;
    --gogyo-water: #2196f3;

    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.8;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* --- 星空背景アニメーション --- */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 15% 85%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 45% 45%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.2), transparent);
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* --- レイアウト --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* --- ヘッダー --- */
header {
    text-align: center;
    padding: 30px 0 20px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 1;
}

.brand-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.parent-brand-logo {
    display: inline-block;
    line-height: 0;
    transition: transform 0.25s;
}

.parent-brand-logo:hover {
    transform: scale(1.03);
}

.parent-brand-logo img {
    height: 64px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 0 10px rgba(255, 215, 110, 0.15));
}

@media (max-width: 600px) {
    .parent-brand-logo img { height: 52px; }
}

.site-title {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.12em;
    margin-top: 2px;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-title a:hover {
    color: var(--color-accent-light);
}

.site-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    letter-spacing: 0.1em;
}

/* --- ヒーローセクション --- */
.hero {
    text-align: center;
    padding: 50px 0 30px;
}

.hero h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.hero-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 2;
}

/* --- フォームセクション --- */
.form-section {
    display: flex;
    justify-content: center;
    padding: 20px 0 40px;
}

.form-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.form-card h3 {
    font-family: var(--font-serif);
    text-align: center;
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-unit input,
.input-with-unit select {
    flex: 1;
    padding: 12px 16px;
    background: #0d0d20;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.3s;
}

.input-with-unit input:focus,
.input-with-unit select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.input-with-unit .unit {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    min-width: 20px;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.error-message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--color-error);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--color-error);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--color-accent), #a8883a);
    color: #0a0a1a;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.15em;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

.btn-submit:disabled,
.btn-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- 情報セクション --- */
.info-section {
    padding: 30px 0 50px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.info-icon {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 14px;
}

.info-card h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-accent-light);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===========================
   結果ページ
   =========================== */

.result-header {
    text-align: center;
    padding: 40px 0 20px;
}

.result-header h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

.result-birth {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-top: 8px;
}

/* --- 命式テーブル --- */
.meishiki-section {
    padding: 20px 0;
}

.meishiki-section h3,
.gogyo-section h3,
.reading-section h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.nikkan-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--color-bg-card);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.nikkan-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.nikkan-value {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.nikkan-detail {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.meishiki-table-wrapper {
    overflow-x: auto;
}

.meishiki-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.meishiki-table th,
.meishiki-table td {
    padding: 14px 16px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.meishiki-table thead th {
    background: rgba(201, 168, 76, 0.1);
    color: var(--color-accent);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
}

.meishiki-table tbody th {
    background: rgba(201, 168, 76, 0.05);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
}

.kanshi-cell {
    position: relative;
}

.kanshi-char {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.gogyo-label {
    font-size: 0.7rem;
    display: block;
    margin-top: 4px;
    opacity: 0.7;
}

.jusshin-cell,
.tsuhen-cell,
.twelve-cell,
.zoukan-cell {
    font-size: 0.9rem;
}

/* 五行カラー */
.gogyo-木 { color: var(--gogyo-wood); }
.gogyo-火 { color: var(--gogyo-fire); }
.gogyo-土 { color: var(--gogyo-earth); }
.gogyo-金 { color: var(--gogyo-metal); }
.gogyo-水 { color: var(--gogyo-water); }

/* --- 五行バランス --- */
.gogyo-section {
    padding: 30px 0;
}

.gogyo-chart {
    max-width: 500px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
}

.gogyo-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gogyo-bar-container:last-child {
    margin-bottom: 0;
}

.gogyo-name {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.gogyo-bar-bg {
    flex: 1;
    height: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
}

.gogyo-bar {
    height: 100%;
    border-radius: 12px;
    transition: width 1s ease;
    min-width: 4px;
}

.gogyo-bar-木 { background: linear-gradient(90deg, var(--gogyo-wood), #66bb6a); }
.gogyo-bar-火 { background: linear-gradient(90deg, var(--gogyo-fire), #ef5350); }
.gogyo-bar-土 { background: linear-gradient(90deg, var(--gogyo-earth), #ffb74d); }
.gogyo-bar-金 { background: linear-gradient(90deg, var(--gogyo-metal), #bdbdbd); }
.gogyo-bar-水 { background: linear-gradient(90deg, var(--gogyo-water), #42a5f5); }

.gogyo-count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    min-width: 20px;
    text-align: center;
}

/* --- AI鑑定結果 --- */
.reading-section {
    padding: 30px 0;
}

.reading-content {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    line-height: 2;
    font-size: 0.95rem;
}

.reading-content h2,
.reading-content h3 {
    font-family: var(--font-serif);
    color: var(--color-accent);
    border-bottom: none;
    text-align: left;
    padding-bottom: 0;
    margin-top: 28px;
    margin-bottom: 12px;
}

.reading-content h2:first-child,
.reading-content h3:first-child {
    margin-top: 0;
}

.reading-content h2 {
    font-size: 1.15rem;
}

.reading-content h3 {
    font-size: 1.05rem;
}

/* --- 戻るボタン --- */
.back-section {
    text-align: center;
    padding: 20px 0 50px;
}

.btn-back {
    display: inline-block;
    padding: 14px 40px;
    background: transparent;
    color: var(--color-accent);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid var(--color-accent);
    border-radius: 10px;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.btn-back:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

/* --- フッター --- */
footer {
    text-align: center;
    padding: 24px 0 30px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 12px;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.footer-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 4px 12px;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
}

/* ===========================
   法務ページ（プライバシーポリシー / 利用規約 / 運営者情報）
   =========================== */

.legal-page {
    max-width: 760px;
    margin: 40px auto;
    padding: 40px 36px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    line-height: 1.95;
}

.legal-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 18px;
}

.legal-updated {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}

.legal-intro {
    color: var(--color-text);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 2;
}

.legal-page h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-accent-light);
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(201, 168, 76, 0.25);
    letter-spacing: 0.05em;
}

.legal-page h3:first-of-type {
    margin-top: 8px;
}

.legal-page p {
    margin-bottom: 14px;
    font-size: 0.92rem;
    color: var(--color-text);
}

.legal-page ul {
    margin: 12px 0 18px 24px;
    color: var(--color-text);
    font-size: 0.92rem;
}

.legal-page ul li {
    margin-bottom: 8px;
    line-height: 1.85;
}

.legal-page strong {
    color: var(--color-accent-light);
    font-weight: 700;
}

.legal-page a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px dotted rgba(201, 168, 76, 0.5);
    padding-bottom: 1px;
    transition: color 0.3s, border-color 0.3s;
}

.legal-page a:hover {
    color: var(--color-accent-light);
    border-bottom-color: var(--color-accent-light);
}

.legal-page code {
    background: rgba(255, 255, 255, 0.06);
    color: #e8cc6e;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 0.85em;
}

.legal-notice {
    background: rgba(201, 168, 76, 0.07);
    border-left: 3px solid var(--color-accent);
    padding: 14px 18px;
    margin: 20px 0 28px;
    border-radius: 4px;
}

.legal-notice p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
    font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    line-height: 1.7;
}

.legal-table th {
    width: 28%;
    color: var(--color-accent);
    font-family: var(--font-serif);
    font-weight: 500;
    background: rgba(201, 168, 76, 0.05);
}

.legal-table td {
    color: var(--color-text);
}

/* ===========================
   節気の境界日警告
   =========================== */

.setsuiri-warning,
.setsuiri-note {
    max-width: 720px;
    margin: 16px auto 4px;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: var(--font-serif);
    font-size: 0.88rem;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.setsuiri-warning {
    background: rgba(220, 130, 50, 0.08);
    border-left: 3px solid rgba(220, 130, 50, 0.65);
    color: rgba(232, 200, 160, 0.95);
}

.setsuiri-note {
    background: rgba(201, 168, 76, 0.06);
    border-left: 3px solid rgba(201, 168, 76, 0.55);
    color: rgba(232, 220, 180, 0.85);
}

.setsuiri-icon {
    flex: 0 0 auto;
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(220, 130, 50, 0.85);
}

.setsuiri-note .setsuiri-icon {
    color: var(--color-accent);
}

/* ===========================
   九星気学 吉方位
   =========================== */

.direction-summary-section {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.direction-summary-card {
    width: 100%;
    max-width: 720px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 22px 28px;
}

.direction-summary-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px 4px;
    border-bottom: 1px dashed rgba(201, 168, 76, 0.18);
    font-size: 0.92rem;
}

.direction-summary-row:last-child {
    border-bottom: none;
}

.direction-summary-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.direction-summary-value {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-accent-light);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

/* 方位盤 (3x3 grid) */
.houiban-section {
    padding: 30px 0;
}

.houiban-section h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.houiban-caption {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.houiban-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 540px;
    margin: 0 auto;
    aspect-ratio: 1;
}

.houiban-cell {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 110px;
}

.houiban-cell[title] {
    cursor: help;
}

.houiban-direction {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.houiban-star {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
    line-height: 1.1;
}

.houiban-label {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
}

/* level 別の色分け */
.houiban-cell.level-best {
    background: linear-gradient(135deg, rgba(232, 204, 110, 0.12), rgba(255, 217, 122, 0.06));
    border-color: rgba(232, 204, 110, 0.7);
    box-shadow: 0 0 16px rgba(232, 204, 110, 0.18);
}

.houiban-cell.level-best .houiban-star {
    color: #ffd97a;
    text-shadow: 0 0 12px rgba(255, 217, 122, 0.4);
}

.houiban-cell.level-best .houiban-label {
    color: #f3dd95;
    font-weight: 700;
}

.houiban-cell.level-good {
    background: rgba(201, 168, 76, 0.06);
    border-color: rgba(201, 168, 76, 0.5);
}

.houiban-cell.level-good .houiban-star {
    color: var(--color-accent-light);
}

.houiban-cell.level-good .houiban-label {
    color: var(--color-accent);
}

.houiban-cell.level-neutral {
    /* デフォルトと同じ */
}

.houiban-cell.level-bad {
    background: rgba(180, 80, 80, 0.06);
    border-color: rgba(180, 80, 80, 0.4);
}

.houiban-cell.level-bad .houiban-star {
    color: #c66060;
}

.houiban-cell.level-bad .houiban-label {
    color: #c66060;
}

.houiban-cell.level-worst {
    background: rgba(160, 50, 50, 0.12);
    border-color: rgba(160, 50, 50, 0.6);
}

.houiban-cell.level-worst .houiban-star {
    color: #d04040;
    text-shadow: 0 0 10px rgba(180, 50, 50, 0.4);
}

.houiban-cell.level-worst .houiban-label {
    color: #d04040;
    font-weight: 700;
}

.houiban-cell.houiban-center {
    background: rgba(13, 13, 32, 0.7);
    border-color: rgba(201, 168, 76, 0.4);
}

.houiban-center .houiban-direction {
    color: var(--color-accent);
}

.houiban-center .houiban-star {
    color: var(--color-accent-light);
}

/* アクション推奨カード */
.action-recommendations-section {
    padding: 30px 0;
}

.action-recommendations-section h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.action-card {
    max-width: 720px;
    margin: 0 auto 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 18px 22px;
}

.action-card.action-good {
    border-left: 4px solid var(--color-accent);
}

.action-card.action-bad {
    border-left: 4px solid #c66060;
}

.action-card.action-seat {
    border-left: 4px solid #6ea8c9;
}

.action-card-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-accent-light);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.action-card.action-bad .action-card-title {
    color: #d8a060;
}

.action-card.action-seat .action-card-title {
    color: #8ec0e0;
}

.action-directions {
    margin-bottom: 10px;
    line-height: 2.2;
}

.action-direction-tag {
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 4px;
    padding: 5px 12px;
    border-radius: 16px;
    font-family: var(--font-serif);
    font-size: 0.88rem;
    letter-spacing: 0.05em;
}

.action-direction-tag.good {
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.55);
    color: var(--color-accent-light);
}

.action-direction-tag.bad {
    background: rgba(180, 80, 80, 0.12);
    border: 1px solid rgba(180, 80, 80, 0.45);
    color: #d8a0a0;
}

.action-direction-empty {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.action-suggestions {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-top: 6px;
}

.action-suggestions strong {
    color: var(--color-text);
    margin-right: 4px;
}

/* 最大吉方カード（最重要） */
.saidai-kichi-section {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.saidai-kichi-card {
    width: 100%;
    max-width: 720px;
    background: linear-gradient(135deg, rgba(232, 204, 110, 0.12), rgba(13, 13, 32, 0.85));
    border: 2px solid rgba(232, 204, 110, 0.55);
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(232, 204, 110, 0.12);
}

.saidai-kichi-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #ffd97a;
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: 0.15em;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(255, 217, 122, 0.35);
}

.saidai-kichi-directions {
    text-align: center;
    margin-bottom: 16px;
    line-height: 2.2;
}

.saidai-tag {
    font-size: 1rem !important;
    padding: 8px 18px !important;
    margin: 0 4px 4px !important;
}

.cancel-tag {
    background: rgba(180, 130, 80, 0.10);
    border: 1px dashed rgba(200, 130, 80, 0.5);
    color: rgba(220, 180, 140, 0.9);
}

.action-direction-tag.neutral {
    /* 相殺方位用 — 中庸色 */
}

.saidai-kichi-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.85;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid rgba(201, 168, 76, 0.4);
    border-radius: 4px;
}

.saidai-kichi-note strong {
    color: var(--color-accent-light);
}

.saidai-kichi-subsection {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.saidai-kichi-subtitle {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

.lifetime-tendency-note {
    max-width: 720px;
    margin: 16px auto 24px;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid rgba(110, 168, 201, 0.5);
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.85;
    color: var(--color-text-muted);
}

.lifetime-tendency-note strong {
    color: var(--color-text);
    font-weight: 700;
}

/* 命盤セクション固有のスタイル */
.meiban-pair-section {
    padding: 30px 0;
}

.meiban-pair-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #ffd97a;
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
    text-shadow: 0 0 12px rgba(255, 217, 122, 0.25);
    letter-spacing: 0.08em;
}

.meiban-pair-caption {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.85;
    margin-bottom: 26px;
    padding: 0 12px;
}

.meiban-pair-caption strong {
    color: var(--color-accent-light);
    font-weight: 700;
}

.meiban-pair-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.meiban-section {
    padding: 0;
}

.meiban-section .houiban-grid {
    max-width: 100%;
    margin-bottom: 12px;
}

.meiban-mode-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: 0.1em;
}

.meiban-rikkou .meiban-mode-title {
    color: #f3dd95;
}

.meiban-zazan .meiban-mode-title {
    color: #8ec0e0;
}

.meiban-mode-usage {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-left: 2px solid rgba(201, 168, 76, 0.35);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.meiban-rikkou .meiban-mode-usage {
    border-left-color: rgba(201, 168, 76, 0.45);
}

.meiban-zazan .meiban-mode-usage {
    border-left-color: rgba(110, 168, 201, 0.45);
}

.meiban-mode-usage strong {
    color: var(--color-text);
    margin-right: 4px;
}

.houiban-cell.meiban-self {
    background: linear-gradient(135deg, rgba(232, 204, 110, 0.18), rgba(13, 13, 32, 0.85));
    border: 2px solid rgba(232, 204, 110, 0.7);
    box-shadow: 0 0 18px rgba(232, 204, 110, 0.25);
}

.meiban-self .houiban-star {
    color: #ffd97a !important;
    text-shadow: 0 0 14px rgba(255, 217, 122, 0.5);
    font-size: 1.5rem !important;
}

.meiban-self .houiban-label {
    color: #f3dd95 !important;
    font-weight: 700;
}

@media (max-width: 768px) {
    .meiban-pair-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 奇門遁甲ティーザー（経営者プラン誘導） */
.kimon-teaser-section {
    padding: 36px 0;
    display: flex;
    justify-content: center;
}

.kimon-teaser-card {
    width: 100%;
    max-width: 760px;
    background: linear-gradient(135deg, rgba(20, 16, 8, 0.92), rgba(13, 13, 32, 0.92));
    border: 1px solid rgba(232, 204, 110, 0.35);
    border-radius: 14px;
    padding: 36px 30px 28px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.kimon-teaser-badge {
    position: absolute;
    top: -12px;
    left: 28px;
    background: linear-gradient(135deg, #c9a84c, #8a7a4a);
    color: #0a0a1a;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    padding: 5px 14px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.35);
}

.kimon-teaser-title {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.3rem;
    color: #ffd97a;
    text-align: center;
    margin-bottom: 18px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 14px rgba(255, 217, 122, 0.25);
}

.kimon-teaser-lead {
    font-size: 0.92rem;
    line-height: 2;
    color: var(--color-text);
    margin-bottom: 20px;
    text-align: center;
}

.kimon-teaser-lead strong {
    color: var(--color-accent-light);
    font-weight: 700;
}

.kimon-teaser-compare {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    font-size: 0.85rem;
}

.kimon-teaser-compare th,
.kimon-teaser-compare td {
    padding: 10px 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    line-height: 1.7;
    text-align: left;
}

.kimon-teaser-compare thead th {
    background: rgba(201, 168, 76, 0.08);
    color: var(--color-accent);
    font-family: var(--font-serif);
    font-weight: 500;
    text-align: center;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.kimon-teaser-compare tbody td:first-child {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    width: 24%;
}

.kimon-teaser-compare tbody td:nth-child(2) {
    color: var(--color-text);
    width: 32%;
}

.kimon-teaser-compare tbody td:nth-child(3) {
    color: #f3dd95;
    width: 44%;
    background: rgba(232, 204, 110, 0.04);
}

.kimon-teaser-compare strong {
    color: #ffd97a;
    font-weight: 700;
}

.kimon-teaser-note {
    background: rgba(0, 0, 0, 0.25);
    border-left: 3px solid rgba(110, 168, 201, 0.55);
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 0.86rem;
    line-height: 1.95;
    color: var(--color-text-muted);
    margin: 20px 0 22px;
}

.kimon-teaser-note strong {
    color: #8ec0e0;
    font-weight: 700;
}

.kimon-teaser-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(232, 204, 110, 0.08), rgba(201, 168, 76, 0.04));
    border: 1px solid rgba(201, 168, 76, 0.45);
    border-radius: 8px;
    gap: 6px;
}

.kimon-teaser-cta-label {
    font-family: var(--font-serif);
    font-size: 0.78rem;
    color: var(--color-accent);
    letter-spacing: 0.25em;
    font-weight: 700;
}

.kimon-teaser-cta-text {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--color-accent-light);
    text-align: center;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .kimon-teaser-card {
        padding: 30px 18px 22px;
    }

    .kimon-teaser-compare {
        font-size: 0.78rem;
    }

    .kimon-teaser-compare th,
    .kimon-teaser-compare td {
        padding: 8px 6px;
    }
}

/* ===========================
   神社推薦カード
   =========================== */

.shrine-list-section {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 800px;
    margin: 0 auto;
}

.shrine-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.shrine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.shrine-card-header {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.18), rgba(20, 16, 8, 0.9));
    border-bottom: 1px solid rgba(201, 168, 76, 0.35);
    padding: 16px 22px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.shrine-card-rank {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 0.18em;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    flex: 0 0 auto;
}

.shrine-card-name {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent-light);
    margin: 0;
    letter-spacing: 0.05em;
    line-height: 1.4;
    flex: 1 1 auto;
}

.shrine-card-prefecture {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 6px;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.shrine-card-body {
    padding: 18px 22px 20px;
}

.shrine-card-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 14px;
    padding: 8px 0;
    align-items: baseline;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.shrine-card-row:last-of-type {
    border-bottom: none;
}

.shrine-card-label {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

.shrine-card-value {
    color: var(--color-text);
    line-height: 1.7;
}

.shrine-deity {
    font-family: var(--font-serif);
    color: var(--color-accent-light);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.shrine-benefit-tag {
    display: inline-block;
    background: rgba(201, 168, 76, 0.10);
    border: 1px solid rgba(201, 168, 76, 0.35);
    color: var(--color-accent);
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 12px;
    margin: 2px 4px 2px 0;
    letter-spacing: 0.03em;
}

.shrine-card-description {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--color-text);
}

.shrine-card-reasons {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(232, 204, 110, 0.05);
    border-left: 3px solid rgba(201, 168, 76, 0.55);
    border-radius: 4px;
}

.shrine-card-reasons-title {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--color-accent-light);
    margin-bottom: 6px;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.shrine-card-reasons ul {
    margin: 0;
    padding-left: 22px;
    font-size: 0.86rem;
    line-height: 1.85;
    color: var(--color-text);
}

.shrine-card-reasons ul li {
    margin-bottom: 4px;
}

.shrine-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.shrine-action-link {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.5);
    border-radius: 8px;
    color: var(--color-accent);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    white-space: nowrap;
}

.shrine-action-link:hover {
    background: rgba(201, 168, 76, 0.1);
    color: var(--color-accent-light);
    border-color: var(--color-accent-light);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.2);
}

.shrine-action-link.maps-link {
    background: rgba(110, 168, 201, 0.06);
    border-color: rgba(110, 168, 201, 0.45);
    color: #8ec0e0;
}

.shrine-action-link.maps-link:hover {
    background: rgba(110, 168, 201, 0.15);
    border-color: #8ec0e0;
    color: #b8d8f0;
    box-shadow: 0 4px 12px rgba(110, 168, 201, 0.2);
}

.shrine-empty-section {
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px 20px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .shrine-card-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .shrine-card-name {
        font-size: 1.1rem;
    }

    .shrine-card-actions {
        flex-direction: column;
    }
}

/* ===========================
   風水・家相診断
   =========================== */

.form-subheading {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--color-accent);
    margin: 26px 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(201, 168, 76, 0.25);
    letter-spacing: 0.08em;
}

.form-subheading:first-of-type {
    margin-top: 0;
}

.required-mark {
    display: inline-block;
    background: rgba(220, 80, 80, 0.18);
    color: #d8a0a0;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    letter-spacing: 0.1em;
}

/* 家相スコアカード */
.fengshui-score-section {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.fengshui-score-card {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(135deg, rgba(13, 13, 32, 0.85), rgba(20, 16, 8, 0.85));
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px 32px;
    text-align: center;
}

.fengshui-score-card.grade-high {
    border-color: rgba(232, 204, 110, 0.65);
    box-shadow: 0 4px 20px rgba(232, 204, 110, 0.15);
}

.fengshui-score-card.grade-mid {
    border-color: rgba(201, 168, 76, 0.4);
}

.fengshui-score-card.grade-low {
    border-color: rgba(180, 130, 80, 0.35);
}

.fengshui-score-label {
    font-family: var(--font-serif);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    letter-spacing: 0.25em;
    text-indent: 0.25em;
    margin-bottom: 8px;
}

.fengshui-score-number {
    margin: 8px 0;
}

.fengshui-score-value {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent-light);
}

.fengshui-score-card.grade-high .fengshui-score-value {
    color: #f3dd95;
    text-shadow: 0 0 16px rgba(232, 204, 110, 0.4);
}

.fengshui-score-card.grade-low .fengshui-score-value {
    color: #c8a070;
}

.fengshui-score-unit {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-left: 4px;
}

.fengshui-score-grade {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-accent);
    letter-spacing: 0.18em;
}

/* 八宅マップ */
.hachitaku-section {
    padding: 30px 0;
}

.hachitaku-section h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.hachitaku-caption {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.hachitaku-grid {
    max-width: 540px;
}

.houiban-cell.hachitaku-self {
    background: linear-gradient(135deg, rgba(232, 204, 110, 0.18), rgba(13, 13, 32, 0.85));
    border: 2px solid rgba(232, 204, 110, 0.7);
    box-shadow: 0 0 18px rgba(232, 204, 110, 0.25);
}

.hachitaku-self .houiban-star {
    color: #ffd97a !important;
    text-shadow: 0 0 14px rgba(255, 217, 122, 0.5);
    font-size: 1.5rem !important;
}

.hachitaku-self .houiban-label {
    color: #f3dd95 !important;
    font-weight: 700;
}

/* 部屋評価カード */
.fengshui-rooms-section {
    padding: 30px 0;
}

.fengshui-rooms-section h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.fengshui-rooms-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fengshui-room-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 16px 20px;
}

.fengshui-room-card.grade-high {
    border-left: 4px solid var(--color-accent);
}

.fengshui-room-card.grade-mid {
    border-left: 4px solid rgba(201, 168, 76, 0.4);
}

.fengshui-room-card.grade-low {
    border-left: 4px solid #c66060;
}

.fengshui-room-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.fengshui-room-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-accent-light);
    letter-spacing: 0.05em;
}

.fengshui-room-direction {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 12px;
    border-radius: 12px;
}

.fengshui-room-score {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-accent);
    font-weight: 700;
}

.fengshui-room-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.fengshui-tag {
    display: inline-block;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.fengshui-tag.tag-best {
    background: rgba(232, 204, 110, 0.15);
    border-color: rgba(232, 204, 110, 0.55);
    color: #ffd97a;
}

.fengshui-tag.tag-good {
    background: rgba(201, 168, 76, 0.10);
    border-color: rgba(201, 168, 76, 0.45);
    color: var(--color-accent);
}

.fengshui-tag.tag-neutral {
    color: var(--color-text-muted);
}

.fengshui-tag.tag-bad {
    background: rgba(180, 80, 80, 0.10);
    border-color: rgba(180, 80, 80, 0.4);
    color: #d8a0a0;
}

.fengshui-tag.tag-worst {
    background: rgba(160, 50, 50, 0.18);
    border-color: rgba(160, 50, 50, 0.55);
    color: #d04040;
}

.fengshui-tag.tag-trad-ideal {
    background: rgba(110, 168, 201, 0.10);
    border-color: rgba(110, 168, 201, 0.4);
    color: #8ec0e0;
}

.fengshui-tag.tag-trad-avoid {
    background: rgba(180, 130, 80, 0.10);
    border-color: rgba(180, 130, 80, 0.4);
    color: #d8a060;
}

.fengshui-tag.tag-trad-neutral {
    color: var(--color-text-muted);
}

.fengshui-room-comment {
    font-size: 0.88rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* アドバイスリスト */
.fengshui-advice-section {
    padding: 20px 0 30px;
}

.fengshui-advice-section h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.fengshui-advice-list {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
}

.fengshui-advice-list li {
    padding: 10px 16px;
    margin-bottom: 8px;
    background: rgba(232, 204, 110, 0.05);
    border-left: 3px solid rgba(201, 168, 76, 0.55);
    border-radius: 4px;
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--color-text);
}

.fengshui-advice-list li::before {
    content: "✦ ";
    color: var(--color-accent);
    font-weight: 700;
    margin-right: 4px;
}

@media (max-width: 768px) {
    .fengshui-room-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ===========================
   画像鑑定（手相・人相）
   =========================== */

.vision-privacy-notice {
    max-width: 720px;
    margin: 16px auto 24px;
    padding: 14px 20px;
    background: rgba(110, 168, 201, 0.08);
    border-left: 3px solid rgba(110, 168, 201, 0.6);
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.85;
    color: var(--color-text);
}

.vision-privacy-notice strong {
    color: #8ec0e0;
    font-weight: 700;
}

.vision-privacy-notice a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px dotted rgba(201, 168, 76, 0.5);
}

.vision-privacy-notice a:hover {
    color: var(--color-accent-light);
}

.vision-file-input {
    width: 100%;
    padding: 14px;
    background: #0d0d20;
    border: 1px dashed rgba(201, 168, 76, 0.45);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    cursor: pointer;
}

.vision-file-input:hover {
    border-color: var(--color-accent);
    background: rgba(201, 168, 76, 0.04);
}

.vision-file-input::file-selector-button {
    background: rgba(201, 168, 76, 0.15);
    color: var(--color-accent);
    border: 1px solid rgba(201, 168, 76, 0.45);
    padding: 6px 14px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.vision-file-input::file-selector-button:hover {
    background: rgba(201, 168, 76, 0.25);
    color: var(--color-accent-light);
}

.vision-preview {
    margin-top: 12px;
    text-align: center;
    min-height: 0;
}

.vision-preview img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .direction-summary-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .houiban-grid {
        max-width: 100%;
    }

    .houiban-cell {
        min-height: 90px;
        padding: 10px 4px;
    }

    .houiban-star {
        font-size: 1.1rem;
    }

    .houiban-direction,
    .houiban-label {
        font-size: 0.72rem;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding: 28px 22px;
        margin: 20px auto;
    }

    .legal-title {
        font-size: 1.3rem;
    }

    .legal-table th,
    .legal-table td {
        display: block;
        width: 100%;
        padding: 8px 10px;
    }

    .legal-table th {
        background: rgba(201, 168, 76, 0.08);
        border-bottom: none;
    }

    .legal-table td {
        padding-top: 4px;
        padding-bottom: 14px;
    }
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .hero-description br {
        display: none;
    }

    .form-card {
        padding: 28px 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nikkan-info {
        flex-direction: column;
        gap: 8px;
    }

    .nikkan-value {
        font-size: 2rem;
    }

    .meishiki-table th,
    .meishiki-table td {
        padding: 10px 8px;
    }

    .kanshi-char {
        font-size: 1.4rem;
    }

    .reading-content {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .site-title {
        font-size: 1.3rem;
    }
}

/* ===========================
   警告オーバーレイ（OP演出）
   =========================== */

.warning-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #050304;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.warning-overlay.warning-fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 金の薄い後光（神社の灯明のような暖色の脈動） */
.warning-overlay::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at center, rgba(120, 90, 30, 0.28) 0%, rgba(40, 30, 10, 0.15) 35%, transparent 70%),
        radial-gradient(ellipse at center, rgba(201, 168, 76, 0.06) 0%, transparent 50%);
    animation: warning-pulse 7s ease-in-out infinite;
    pointer-events: none;
}

@keyframes warning-pulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
}

/* ノイズ層（CRT風） */
.warning-noise {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
    opacity: 0.04; /* より控えめに（高級感アップ） */
    pointer-events: none;
    animation: warning-noise-shift 0.6s steps(6) infinite;
    mix-blend-mode: screen;
}

@keyframes warning-noise-shift {
    0%   { transform: translate(0, 0); }
    20%  { transform: translate(-2%, 1%); }
    40%  { transform: translate(1%, -2%); }
    60%  { transform: translate(-1%, -1%); }
    80%  { transform: translate(2%, 2%); }
    100% { transform: translate(0, 0); }
}

.warning-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 光柱（後光・神々しさ）— 強調行が出る瞬間に立ち上る */
.warning-rays {
    position: absolute;
    top: 50%; left: 50%;
    width: 720px; height: 100%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(180deg,
            transparent 0%,
            rgba(232, 204, 110, 0.08) 25%,
            rgba(232, 204, 110, 0.22) 50%,
            rgba(232, 204, 110, 0.08) 75%,
            transparent 100%);
    filter: blur(50px);
    opacity: 0;
    animation: warning-rays-burst 5s ease-out 2.7s both;
}

@keyframes warning-rays-burst {
    0%   { opacity: 0; transform: translateX(-50%) scaleY(0.4) scaleX(0.6); }
    25%  { opacity: 1; transform: translateX(-50%) scaleY(1.0) scaleX(1.0); }
    100% { opacity: 0.55; transform: translateX(-50%) scaleY(1.05) scaleX(1.05); }
}

/* 強調行が出る瞬間の一閃（screen-wide フラッシュ） */
.warning-flash {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    background: radial-gradient(circle at center, rgba(255, 230, 150, 0.55) 0%, rgba(255, 220, 130, 0.18) 18%, transparent 38%);
    opacity: 0;
    animation: warning-flash-burst 1.4s cubic-bezier(0.16, 1, 0.3, 1) 2.85s forwards;
    mix-blend-mode: screen;
}

@keyframes warning-flash-burst {
    0%   { opacity: 0; transform: scale(0.7); }
    15%  { opacity: 1; transform: scale(1.0); }
    100% { opacity: 0; transform: scale(1.4); }
}

.warning-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 30px;
    max-width: 720px;
    /* 高級感アップ: shake は外し、ゆったりとした上下のドリフトに変更 */
    animation: warning-drift 11s ease-in-out infinite;
}

@keyframes warning-drift {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-3px); }
}

.warning-line {
    /* 高級感アップ: しっぽり明朝（Shippori Mincho）を優先採用 */
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    color: #f0e8d8;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 2.4;
    letter-spacing: 0.18em;
    /* letter-spacing の末尾余白を相殺して視覚的な中央寄せにする */
    text-indent: 0.18em;
    /* 暖色の控えめな後光（金の灯火のような） */
    text-shadow: 0 0 14px rgba(201, 168, 76, 0.35), 0 0 28px rgba(201, 168, 76, 0.18);
    /* fill-mode: both = 遅延中は 0% 状態（不可視）、アニメ後は 100%（可視）。
       万一アニメが発火しなくてもデフォルトで可視のままになるよう
       静的な opacity:0 / transform は置かない */
    animation: warning-line-in 1.3s ease-out both;
}

.warning-content > .warning-line:nth-child(1) { animation-delay: 0.4s; }
.warning-content > .warning-line:nth-child(2) { animation-delay: 1.6s; }
.warning-content > .warning-line:nth-child(3) { animation-delay: 2.8s; }
.warning-content > .warning-line:nth-child(4) { animation-delay: 4.0s; }
.warning-content > .warning-proceed { animation-delay: 5.4s; }

.warning-line.warning-header {
    font-size: 1.0rem;
    color: #c9a84c; /* gold accent (サイト共通) */
    letter-spacing: 0.4em;
    /* letter-spacing の末尾余白で左に寄って見えるのを補正 */
    text-indent: 0.4em;
    margin-bottom: 1.6em;
    text-shadow: 0 0 18px rgba(232, 204, 110, 0.6), 0 0 40px rgba(201, 168, 76, 0.35);
}

.warning-line.warning-emphasis {
    font-size: 1.9rem;
    font-weight: 800;
    color: #f3dd95; /* 鮮やかな金 */
    text-shadow: 0 0 18px rgba(232, 204, 110, 0.85), 0 0 42px rgba(201, 168, 76, 0.5);
    margin: 0.6em 0;
    letter-spacing: 0.22em;
    text-indent: 0.22em;
}

.warning-line.warning-question {
    margin-top: 1.7em;
    font-size: 1.55rem;
    color: #fff5dc;
    text-shadow: 0 0 16px rgba(232, 204, 110, 0.5), 0 0 32px rgba(201, 168, 76, 0.25);
}

@keyframes warning-line-in {
    0%   { opacity: 0; transform: translateY(10px); filter: blur(4px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes warning-fade-in {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}

.warning-proceed {
    margin-top: 2.5em;
    padding: 14px 60px;
    background: transparent;
    color: #f3dd95;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.1rem;
    font-weight: 500;
    border: 1px solid rgba(201, 168, 76, 0.55);
    border-radius: 2px;
    cursor: pointer;
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    animation: warning-line-in 1.3s ease-out both;
    transition: background 0.4s, color 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.warning-proceed:hover {
    background: rgba(201, 168, 76, 0.12);
    box-shadow: 0 0 32px rgba(232, 204, 110, 0.4);
    color: #fff5dc;
    border-color: rgba(232, 204, 110, 0.9);
}

.warning-sound-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(220, 80, 80, 0.4);
    color: rgba(255, 220, 220, 0.85);
    padding: 9px 14px;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    letter-spacing: 0.1em;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
    line-height: 1;
    animation: warning-sound-pulse 2.4s ease-in-out infinite;
}

.warning-sound-toggle:hover {
    color: #fff;
    border-color: rgba(220, 80, 80, 0.85);
    background: rgba(80, 0, 0, 0.5);
    box-shadow: 0 0 18px rgba(220, 30, 30, 0.4);
    animation: none;
}

.warning-sound-toggle.warning-sound-on {
    border-color: rgba(180, 200, 180, 0.45);
    color: rgba(220, 240, 220, 0.9);
    animation: none;
}

.warning-sound-icon {
    font-size: 1.05rem;
    line-height: 1;
}

.warning-sound-label {
    font-size: 0.78rem;
    line-height: 1;
}

@keyframes warning-sound-pulse {
    0%, 100% { box-shadow: 0 0 0 rgba(220, 30, 30, 0); }
    50%      { box-shadow: 0 0 18px rgba(220, 30, 30, 0.45); }
}

.warning-skip-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.28);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    animation: warning-fade-in 2s ease-out 6.5s both;
    pointer-events: none;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .warning-line { font-size: 1.05rem; letter-spacing: 0.12em; line-height: 2.2; }
    .warning-line.warning-emphasis { font-size: 1.35rem; }
    .warning-line.warning-question { font-size: 1.15rem; }
    .warning-line.warning-header { font-size: 0.85rem; letter-spacing: 0.3em; }
    .warning-proceed { padding: 12px 40px; font-size: 0.95rem; letter-spacing: 0.25em; }
    .warning-skip-hint { font-size: 0.65rem; letter-spacing: 0.15em; bottom: 20px; }
}

/* ===========================
   相性占い（Compatibility）
   =========================== */

/* index.html 下部の補助リンク */
.form-aux-link {
    margin-top: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.form-aux-link a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px dotted rgba(201, 168, 76, 0.5);
    padding-bottom: 1px;
    transition: color 0.3s, border-color 0.3s;
}

.form-aux-link a:hover {
    color: var(--color-accent-light);
    border-bottom-color: var(--color-accent-light);
}

/* トップ: 他占術メニュー（カテゴリ別アコーディオン） */
.aux-menu {
    margin-top: 22px;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.aux-menu-lead {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0 0 12px;
}

.aux-cat {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 8px;
    background: rgba(20, 15, 35, 0.25);
    overflow: hidden;
}

.aux-cat > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 16px;
    font-weight: 600;
    color: var(--color-accent);
    user-select: none;
}

.aux-cat > summary::-webkit-details-marker { display: none; }

.aux-cat > summary::after {
    content: "＋";
    color: var(--color-text-muted);
    font-weight: 400;
    flex-shrink: 0;
}

.aux-cat[open] > summary::after { content: "−"; }

.aux-cat[open] > summary {
    border-bottom: 1px dashed var(--color-border);
}

.aux-cat-name { display: inline-flex; align-items: center; }

.aux-cat-count {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 10px;
    padding: 1px 9px;
}

.aux-cat-body {
    display: flex;
    flex-direction: column;
    padding: 6px;
}

.aux-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--color-accent);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.aux-item:hover { background: rgba(255, 215, 110, 0.1); }

.aux-item small {
    color: var(--color-text-muted);
    font-size: 0.76rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aux-cat-pro {
    border-color: rgba(201, 165, 72, 0.45);
    background: linear-gradient(135deg, rgba(80, 50, 30, 0.18), rgba(20, 15, 35, 0.25));
}

.aux-cat-pro > summary { color: #d9b75e; }

/* アコーディオン見出し行 + すべて開く/閉じるトグル */
.aux-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.aux-menu-head .aux-menu-lead {
    margin: 0;
    flex: 1;
    text-align: left;
}

.aux-toggle-all {
    flex-shrink: 0;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 16px;
    padding: 5px 14px;
    color: var(--color-accent);
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.aux-toggle-all:hover {
    background: rgba(201, 168, 76, 0.22);
    border-color: var(--color-accent);
}

/* フォーム化したアコーディオン項目（POST送信ボタンを .aux-item と同じ体裁に） */
button.aux-item-btn {
    background: none;
    border: none;
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* result.html の次アクション誘導 */
.next-action-section {
    padding: 10px 0 30px;
}
.daily-once-note {
    max-width: 520px;
    margin: 4px auto 18px;
    text-align: center;
    color: #cbbf95;
    font-size: 0.95em;
    line-height: 1.7;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
}

.next-action-card {
    max-width: 520px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(232, 204, 110, 0.04));
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 12px;
    padding: 22px 28px;
    text-align: center;
}

.next-action-lead {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}

.btn-next-action {
    display: inline-block;
    padding: 10px 28px;
    background: transparent;
    color: var(--color-accent);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(201, 168, 76, 0.7);
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.btn-next-action:hover {
    background: rgba(201, 168, 76, 0.12);
    color: var(--color-accent-light);
    border-color: var(--color-accent-light);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.2);
    transform: translateY(-2px);
}

/* 相性占いフォーム: 2列グリッド */
.compat-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.compat-person-card {
    background: rgba(13, 13, 32, 0.55);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px 18px;
}

.compat-person-card.compat-person-a {
    border-color: rgba(201, 168, 76, 0.45);
}

.compat-person-card.compat-person-b {
    border-color: rgba(110, 168, 201, 0.35);
}

.compat-person-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: 0.15em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.compat-person-card.compat-person-b .compat-person-title {
    color: #6ea8c9;
}

.compat-name-input {
    width: 100%;
    padding: 12px 16px;
    background: #0d0d20;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.3s;
}

.compat-name-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.compat-relationship-row {
    margin-bottom: 24px;
}

.compat-relationship-select {
    /* `.input-with-unit select` を継承するので個別スタイルは控えめに */
    width: 100%;
}

/* 相性占い結果ページ */
.compat-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 20px 0;
}

.compat-person-block h3 {
    /* 既存の .meishiki-section h3 を踏襲、微調整のみ */
    font-size: 1.15rem;
}

/* 相性スコア（％表示） */
.compat-score-section {
    padding: 30px 0 10px;
    display: flex;
    justify-content: center;
}

.compat-score-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 36px;
    background: linear-gradient(135deg, rgba(13, 13, 32, 0.85), rgba(20, 16, 8, 0.85));
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.compat-score-label {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.3em;
    text-indent: 0.3em;
}

.compat-score-ring {
    position: relative;
    width: 160px;
    height: 160px;
}

.compat-score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
}

.compat-score-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 6;
}

.compat-score-fill {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dasharray 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 0 6px rgba(232, 204, 110, 0.55));
}

.compat-score-card.grade-high .compat-score-fill {
    stroke: #e8cc6e;
    filter: drop-shadow(0 0 10px rgba(232, 204, 110, 0.85));
}

.compat-score-card.grade-mid .compat-score-fill {
    stroke: #c9a84c;
    filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.5));
}

.compat-score-card.grade-low .compat-score-fill {
    stroke: #8a7a4a;
    filter: drop-shadow(0 0 4px rgba(138, 122, 74, 0.4));
}

.compat-score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    line-height: 1;
}

.compat-score-value {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--color-accent-light);
    letter-spacing: 0;
}

.compat-score-card.grade-high .compat-score-value {
    color: #f3dd95;
    text-shadow: 0 0 18px rgba(232, 204, 110, 0.5);
}

.compat-score-card.grade-low .compat-score-value {
    color: #b8a570;
}

.compat-score-unit {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-left: 2px;
}

.compat-score-grade {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-accent);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
}

.compat-score-caption {
    font-family: var(--font-serif);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: -2px;
    letter-spacing: 0.06em;
    max-width: 320px;
    line-height: 1.5;
}

.compat-score-card.grade-high .compat-score-caption {
    color: rgba(232, 204, 110, 0.85);
}

.compat-score-rarity {
    margin-top: 8px;
    font-size: 0.78rem;
    padding: 3px 12px;
    border-radius: 14px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    background: rgba(201, 168, 76, 0.10);
    color: var(--color-accent-light);
    letter-spacing: 0.05em;
}

/* 命式詳細の段階的開示（初期は折りたたみ、クリックで展開） */
.meishiki-collapse {
    margin-top: 4px;
}
.meishiki-collapse-summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.82rem;
    color: var(--color-accent-light);
    padding: 7px 12px;
    border: 1px dashed rgba(201, 168, 76, 0.4);
    border-radius: 10px;
    background: rgba(201, 168, 76, 0.06);
    text-align: center;
    transition: background 0.2s;
    user-select: none;
}
.meishiki-collapse-summary:hover {
    background: rgba(201, 168, 76, 0.14);
}
.meishiki-collapse-summary::-webkit-details-marker {
    display: none;
}
.meishiki-collapse-summary::before {
    content: "▸ ";
}
.meishiki-collapse[open] > .meishiki-collapse-summary::before {
    content: "▾ ";
}
.meishiki-collapse[open] > .meishiki-collapse-summary {
    margin-bottom: 10px;
}

/* 八宅方位図: タップ可能セル＋情報バー（スマホ対応） */
.houiban-tappable {
    cursor: pointer;
}
.houiban-tappable:hover {
    outline: 1px solid rgba(201, 168, 76, 0.5);
}
.houiban-cell.houiban-active {
    outline: 2px solid var(--color-accent);
    outline-offset: -2px;
}
.houiban-info {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    background: rgba(201, 168, 76, 0.06);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text);
}
.houiban-info-rooms {
    color: var(--color-accent-light);
}

.compat-metrics-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 30px auto;
    max-width: 720px;
}

.compat-metrics-section h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.compat-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 6px;
    border-bottom: 1px dashed rgba(201, 168, 76, 0.18);
    font-size: 0.92rem;
}

.compat-metric-row:last-child {
    border-bottom: none;
}

.compat-metric-label {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.compat-metric-value {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-accent-light);
    letter-spacing: 0.08em;
}

.compat-combined-gogyo {
    /* 既存の .gogyo-section を継承、見出しだけ調整 */
}

.compat-kizuna-summary {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin: 0 0 12px;
}
.compat-kizuna-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.compat-kizuna-chip {
    display: inline-block;
    font-size: 0.8rem;
    padding: 4px 11px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}
.compat-kizuna-chip.kizuna-pos {
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.45);
    color: var(--color-accent-light);
}
.compat-kizuna-chip.kizuna-neg {
    background: rgba(180, 80, 80, 0.10);
    border-color: rgba(180, 80, 80, 0.4);
    color: #d8a0a0;
}

@media (max-width: 768px) {
    .compat-form-grid,
    .compat-result-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .compat-metric-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .next-action-card {
        padding: 18px 20px;
    }

    .compat-score-card {
        padding: 22px 28px;
    }

    .compat-score-ring {
        width: 130px;
        height: 130px;
    }

    .compat-score-value {
        font-size: 2.6rem;
    }
}

/* ===========================
   広告枠（AdSense プレースホルダ）
   =========================== */

.ad-slot {
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.ad-slot-banner {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    padding: 24px;
}

.ad-slot-rect {
    width: 100%;
    max-width: 336px;
    min-height: 280px;
    padding: 24px;
}

.ad-slot-label {
    font-family: var(--font-sans);
}

.ad-slot-label::before {
    content: "AD ";
    opacity: 0.5;
    margin-right: 6px;
}

/* ===========================
   命式日運（Daily Fortune）
   =========================== */

.daily-summary-section {
    padding: 20px 0;
}

.daily-summary-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 22px 28px;
}

.daily-summary-row {
    display: grid;
    grid-template-columns: 130px 100px 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px 4px;
    border-bottom: 1px dashed rgba(201, 168, 76, 0.18);
    font-size: 0.92rem;
}

.daily-summary-row:last-child {
    border-bottom: none;
}

.daily-summary-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.daily-summary-value {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
}

.daily-summary-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 16px;
    color: var(--color-accent-light);
    font-family: var(--font-serif);
    font-size: 0.92rem;
    text-align: center;
    letter-spacing: 0.08em;
}

.daily-summary-detail {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.daily-lucky-section {
    padding: 30px 0;
}

.daily-lucky-section h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.daily-lucky-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 720px;
    margin: 0 auto;
}

.daily-lucky-card {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(232, 204, 110, 0.04));
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 12px;
    padding: 22px 16px;
    text-align: center;
}

.daily-lucky-icon {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
    line-height: 1;
}

.daily-lucky-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.08em;
}

.daily-lucky-value {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--color-accent-light);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .daily-summary-row {
        grid-template-columns: 1fr;
        gap: 6px;
        text-align: left;
    }

    .daily-summary-value,
    .daily-summary-tag {
        text-align: left;
        justify-self: start;
    }

    .daily-lucky-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ad-slot-banner {
        min-height: 60px;
        padding: 16px;
    }

    .ad-slot-rect {
        min-height: 200px;
    }
}

/* ===========================
   おみくじ
   =========================== */

.omikuji-question-input {
    width: 100%;
    padding: 12px 16px;
    background: #0d0d20;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s;
}

.omikuji-question-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.btn-omikuji-draw {
    background: linear-gradient(135deg, #c9a84c, #a8883a);
    letter-spacing: 0.3em;
    text-indent: 0.3em;
}

/* 御籤の紙 */
.omikuji-result-section {
    padding: 30px 0;
    display: flex;
    justify-content: center;
}

.omikuji-paper {
    width: 100%;
    max-width: 480px;
    background:
        linear-gradient(180deg, rgba(20, 16, 8, 0.92), rgba(13, 13, 32, 0.95)),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(201, 168, 76, 0.04) 40px,
            rgba(201, 168, 76, 0.04) 41px
        );
    border: 1px solid rgba(201, 168, 76, 0.5);
    border-radius: 4px;
    padding: 36px 32px 30px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-align: center;
    position: relative;
}

.omikuji-paper::before,
.omikuji-paper::after {
    /* 紙の上下に細い装飾線 */
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.5), transparent);
}
.omikuji-paper::before { top: 14px; }
.omikuji-paper::after  { bottom: 14px; }

.omikuji-paper-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-serif);
    color: var(--color-text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(201, 168, 76, 0.25);
}

.omikuji-paper-no {
    color: var(--color-accent);
    font-weight: 700;
}

.omikuji-rank-label {
    font-family: var(--font-serif);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.4em;
    text-indent: 0.4em;
    margin-bottom: 6px;
}

.omikuji-rank-text {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.05em;
    margin: 8px 0 22px;
    color: var(--color-accent-light);
    text-shadow: 0 0 24px rgba(232, 204, 110, 0.5);
}

/* ランクごとの色味 */
.omikuji-paper.rank-best .omikuji-rank-text {
    color: #ffd97a;
    text-shadow:
        0 0 28px rgba(255, 217, 122, 0.85),
        0 0 56px rgba(255, 217, 122, 0.45);
    font-size: 4.6rem;
}

.omikuji-paper.rank-best {
    border-color: rgba(255, 217, 122, 0.7);
    box-shadow:
        0 8px 36px rgba(255, 217, 122, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.omikuji-paper.rank-great .omikuji-rank-text {
    color: #f3dd95;
    text-shadow: 0 0 22px rgba(232, 204, 110, 0.7);
}

.omikuji-paper.rank-good .omikuji-rank-text {
    color: #e8cc6e;
}

.omikuji-paper.rank-normal .omikuji-rank-text {
    color: #d8c688;
    text-shadow: 0 0 14px rgba(216, 198, 136, 0.4);
}

.omikuji-paper.rank-modest .omikuji-rank-text {
    color: #a89a72;
    text-shadow: 0 0 8px rgba(168, 154, 114, 0.3);
}

.omikuji-paper.rank-bad {
    border-color: rgba(180, 80, 80, 0.55);
}
.omikuji-paper.rank-bad .omikuji-rank-text {
    color: #c66060;
    text-shadow: 0 0 18px rgba(198, 96, 96, 0.55);
}

.omikuji-paper.rank-worst {
    border-color: rgba(160, 50, 50, 0.7);
    background:
        linear-gradient(180deg, rgba(20, 6, 6, 0.95), rgba(8, 4, 4, 0.97)),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(160, 50, 50, 0.06) 40px,
            rgba(160, 50, 50, 0.06) 41px
        );
}
.omikuji-paper.rank-worst .omikuji-rank-text {
    color: #b04040;
    text-shadow: 0 0 22px rgba(176, 64, 64, 0.65);
}

.omikuji-question-echo {
    margin: 4px 0 18px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(201, 168, 76, 0.55);
    text-align: left;
    font-family: var(--font-serif);
    font-size: 0.92rem;
    color: var(--color-text);
    line-height: 1.7;
}

.omikuji-question-mark {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 700;
    margin-right: 8px;
    letter-spacing: 0.1em;
}

.omikuji-meishiki-tag {
    margin-top: 14px;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.omikuji-meishiki-tag .gogyo-木,
.omikuji-meishiki-tag .gogyo-火,
.omikuji-meishiki-tag .gogyo-土,
.omikuji-meishiki-tag .gogyo-金,
.omikuji-meishiki-tag .gogyo-水 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 2px;
}

/* 御籤本文（AI鑑定の表示） */
.omikuji-reading-section h3 {
    text-align: center;
}

.omikuji-reading {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    line-height: 2.1;
    letter-spacing: 0.02em;
}

/* 本日すでに引いた御籤の通知バナー（フォームページ上部） */
.omikuji-today-banner-section {
    padding: 30px 0 10px;
    display: flex;
    justify-content: center;
}

.omikuji-today-banner {
    max-width: 480px;
    width: 100%;
    background: linear-gradient(135deg, rgba(20, 16, 8, 0.85), rgba(13, 13, 32, 0.9));
    border: 1px solid rgba(201, 168, 76, 0.55);
    border-radius: 8px;
    padding: 22px 26px;
    text-align: center;
}

.omikuji-today-banner.rank-best {
    border-color: rgba(255, 217, 122, 0.7);
    box-shadow: 0 6px 24px rgba(255, 217, 122, 0.15);
}

.omikuji-today-banner.rank-bad,
.omikuji-today-banner.rank-worst {
    border-color: rgba(180, 80, 80, 0.55);
}

.omikuji-today-label {
    font-family: var(--font-serif);
    font-size: 0.78rem;
    color: var(--color-text-muted);
    letter-spacing: 0.3em;
    text-indent: 0.3em;
    margin-bottom: 10px;
}

.omikuji-today-rank {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-accent-light);
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.omikuji-today-banner.rank-best .omikuji-today-rank {
    color: #ffd97a;
    text-shadow: 0 0 16px rgba(255, 217, 122, 0.55);
}

.omikuji-today-banner.rank-bad .omikuji-today-rank,
.omikuji-today-banner.rank-worst .omikuji-today-rank {
    color: #c66060;
}

.omikuji-today-question {
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid rgba(201, 168, 76, 0.5);
    padding: 8px 14px;
    margin-bottom: 14px;
    text-align: left;
    font-family: var(--font-serif);
    font-size: 0.88rem;
    color: var(--color-text);
}

.omikuji-today-note {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.omikuji-today-note strong {
    color: var(--color-accent-light);
    font-weight: 700;
}

/* 再引きボタンの強調を抑える */
.btn-omikuji-redraw {
    background: linear-gradient(135deg, #8a7a4a, #6a5d36);
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    font-size: 1rem;
}

.btn-omikuji-redraw:hover {
    background: linear-gradient(135deg, #a8883a, #8a7a4a);
}

/* 結果ページ上部の再引き通知 */
.omikuji-redraw-notice-section {
    padding: 20px 0 0;
    display: flex;
    justify-content: center;
}

.omikuji-redraw-notice {
    max-width: 560px;
    background: rgba(180, 80, 80, 0.08);
    border: 1px dashed rgba(180, 80, 80, 0.45);
    border-radius: 8px;
    padding: 14px 18px;
    text-align: center;
    color: rgba(232, 192, 160, 0.85);
    font-family: var(--font-serif);
    font-size: 0.88rem;
    line-height: 1.8;
}

.omikuji-redraw-notice strong {
    color: #d8a560;
    font-weight: 700;
}

@media (max-width: 768px) {
    .omikuji-paper {
        padding: 28px 22px 24px;
    }

    .omikuji-rank-text {
        font-size: 3.4rem;
    }

    .omikuji-paper.rank-best .omikuji-rank-text {
        font-size: 3.7rem;
    }

    .omikuji-paper-header {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
    }

    .omikuji-today-banner {
        padding: 18px 20px;
    }

    .omikuji-today-rank {
        font-size: 1.4rem;
    }
}

/* ============================================================
   奇門遁甲（経営者プラン）
   ============================================================ */

.kimon-pro-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #c9a548 0%, #f3d27e 50%, #c9a548 100%);
    color: #1a0f00;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    border-radius: 2px;
    margin-bottom: 12px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(201, 165, 72, 0.3);
}

.aux-pro-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #c9a548 0%, #f3d27e 50%, #c9a548 100%);
    color: #1a0f00;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: middle;
}

.form-aux-link-pro {
    border-top: 1px dashed rgba(201, 165, 72, 0.4);
    padding-top: 12px;
    margin-top: 16px;
}

.form-aux-link-pro a {
    color: #c9a548;
    font-weight: 600;
}

.kimon-teaser-cta-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #2a1a08 0%, #3a2410 100%);
    border: 1px solid #c9a548;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.kimon-teaser-cta-link:hover {
    background: linear-gradient(135deg, #3a2410 0%, #4a3018 100%);
    box-shadow: 0 4px 12px rgba(201, 165, 72, 0.3);
    transform: translateY(-1px);
}

.kimon-teaser-cta-label {
    background: linear-gradient(135deg, #c9a548 0%, #f3d27e 50%, #c9a548 100%);
    color: #1a0f00;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    border-radius: 2px;
    flex-shrink: 0;
}

.kimon-teaser-cta-text {
    color: #f3d27e;
    font-weight: 600;
    font-size: 1.05rem;
}

.kimon-result-header {
    text-align: center;
    margin-bottom: 30px;
}

.kimon-result-header .kimon-pro-badge {
    margin-bottom: 16px;
}

.kimon-summary-section {
    margin: 30px 0;
}

.kimon-summary-card {
    background: linear-gradient(135deg, #1a0f00 0%, #2a1a08 100%);
    border: 1px solid #c9a548;
    border-radius: 6px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.kimon-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(201, 165, 72, 0.2);
}

.kimon-summary-row:last-child {
    border-bottom: none;
}

.kimon-summary-row.kimon-summary-highlight {
    background: rgba(201, 165, 72, 0.06);
    margin: 4px -8px;
    padding: 10px 8px;
    border-radius: 4px;
}

.kimon-summary-label {
    color: #b8a070;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

.kimon-summary-value {
    color: #f3d27e;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.kimon-kyoku-value {
    color: #f3d27e;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.kimon-board-section {
    margin: 40px 0;
}

.kimon-board-title {
    text-align: center;
    color: #f3d27e;
    margin-bottom: 8px;
}

.kimon-board-caption {
    text-align: center;
    color: #b8a070;
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.kimon-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 6px;
    max-width: 720px;
    margin: 0 auto;
    padding: 14px;
    background: linear-gradient(135deg, #100800 0%, #1f1206 100%);
    border: 2px solid #c9a548;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5),
                inset 0 0 12px rgba(201, 165, 72, 0.08);
}

.kimon-cell {
    background: rgba(20, 12, 0, 0.7);
    border: 1px solid rgba(201, 165, 72, 0.4);
    border-radius: 4px;
    padding: 10px 10px 8px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    font-size: 0.86rem;
    color: #e6d4a8;
    transition: all 0.2s ease;
}

.kimon-cell-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(201, 165, 72, 0.25);
}

.kimon-cell-direction {
    color: #f3d27e;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.kimon-cell-kyu {
    color: #8a7548;
    font-size: 0.72rem;
}

.kimon-cell-shin,
.kimon-cell-ten,
.kimon-cell-jin,
.kimon-cell-chiban {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.kimon-cell-tag {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: rgba(201, 165, 72, 0.2);
    color: #c9a548;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.kimon-cell-shin {
    color: #d4b878;
}

.kimon-cell-ten {
    color: #f0d9a8;
    font-weight: 600;
}

.kimon-cell-jin {
    color: #e8c878;
}

.kimon-cell-chiban {
    color: #f3d27e;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: auto;
    padding-top: 4px;
    border-top: 1px dashed rgba(201, 165, 72, 0.2);
}

.kimon-cell-chiban-note {
    color: #8a7548;
    font-size: 0.7rem;
    font-weight: 400;
    margin-left: auto;
}

.kimon-cell-chifu .kimon-cell-tag,
.kimon-cell-chishi .kimon-cell-tag {
    background: linear-gradient(135deg, #c9a548 0%, #f3d27e 100%);
    color: #1a0f00;
}

.kimon-cell-mark {
    color: #f3d27e;
    font-size: 0.7rem;
    margin-left: 4px;
    text-shadow: 0 0 4px rgba(243, 210, 126, 0.5);
}

.kimon-cell-label {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.5);
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.kimon-cell.level-best {
    border-color: #f3d27e;
    box-shadow: 0 0 12px rgba(243, 210, 126, 0.25),
                inset 0 0 8px rgba(243, 210, 126, 0.08);
    background: rgba(40, 25, 5, 0.85);
}

.kimon-cell.level-best .kimon-cell-label {
    color: #f3d27e;
    background: rgba(243, 210, 126, 0.15);
    font-weight: 700;
}

.kimon-cell.level-good {
    border-color: rgba(201, 165, 72, 0.6);
    background: rgba(30, 20, 4, 0.75);
}

.kimon-cell.level-good .kimon-cell-label {
    color: #c9a548;
}

.kimon-cell.level-neutral {
    opacity: 0.85;
}

.kimon-cell.level-neutral .kimon-cell-label {
    color: #8a7548;
}

.kimon-cell.level-bad {
    border-color: rgba(160, 80, 80, 0.5);
    background: rgba(28, 12, 12, 0.75);
}

.kimon-cell.level-bad .kimon-cell-label {
    color: #c87878;
}

.kimon-cell.level-worst {
    border-color: rgba(180, 60, 60, 0.7);
    background: rgba(35, 10, 10, 0.85);
    box-shadow: 0 0 8px rgba(180, 60, 60, 0.18);
}

.kimon-cell.level-worst .kimon-cell-label {
    color: #d86060;
    font-weight: 700;
}

.kimon-cell-center {
    background: linear-gradient(135deg, #2a1a08 0%, #3a2410 100%);
    border: 1px solid #c9a548;
    box-shadow: inset 0 0 8px rgba(201, 165, 72, 0.15);
}

.kimon-cell-center .kimon-cell-direction {
    color: #f3d27e;
}

.kimon-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 30px 0;
}

.kimon-action-card {
    padding: 18px 20px;
    border-radius: 6px;
    border: 1px solid;
    background: linear-gradient(135deg, #1a0f00 0%, #2a1a08 100%);
}

.kimon-action-good {
    border-color: rgba(243, 210, 126, 0.5);
    box-shadow: 0 2px 12px rgba(243, 210, 126, 0.1);
}

.kimon-action-bad {
    border-color: rgba(180, 80, 80, 0.5);
    box-shadow: 0 2px 12px rgba(180, 80, 80, 0.08);
}

.kimon-action-card h3 {
    margin-bottom: 14px;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
}

.kimon-action-good h3 {
    color: #f3d27e;
}

.kimon-action-bad h3 {
    color: #d88080;
}

.kimon-action-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.kimon-action-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(201, 165, 72, 0.18);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kimon-action-list li:last-child {
    border-bottom: none;
}

.kimon-action-dir {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f3d27e;
    margin-right: 10px;
    display: inline-block;
}

.kimon-action-label {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(201, 165, 72, 0.18);
    color: #f3d27e;
}

.kimon-action-list li.level-best .kimon-action-label {
    background: linear-gradient(135deg, #c9a548 0%, #f3d27e 100%);
    color: #1a0f00;
}

.kimon-action-list li.level-worst .kimon-action-label {
    background: rgba(180, 60, 60, 0.6);
    color: #ffefef;
}

.kimon-action-list li.level-bad .kimon-action-label {
    background: rgba(180, 80, 80, 0.45);
    color: #ffe8e8;
}

.kimon-action-detail {
    color: #b8a070;
    font-size: 0.82rem;
    margin-top: 4px;
}

.kimon-action-usage {
    color: #b8a070;
    font-size: 0.88rem;
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px dashed rgba(201, 165, 72, 0.2);
}

.kimon-kakkyoku-section {
    margin: 30px 0;
}

.kimon-kakkyoku-section h3 {
    color: #f3d27e;
    margin-bottom: 6px;
}

.kimon-kakkyoku-caption {
    color: #b8a070;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.kimon-kakkyoku-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.kimon-kakkyoku-item {
    padding: 14px 16px;
    border-radius: 4px;
    border-left: 4px solid;
    background: rgba(20, 12, 0, 0.6);
}

.kimon-kakkyoku-good {
    border-left-color: #f3d27e;
    background: rgba(40, 25, 5, 0.5);
}

.kimon-kakkyoku-bad {
    border-left-color: #d86060;
    background: rgba(35, 10, 10, 0.5);
}

.kimon-kakkyoku-name {
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f3d27e;
}

.kimon-kakkyoku-good .kimon-kakkyoku-name {
    color: #f3d27e;
}

.kimon-kakkyoku-bad .kimon-kakkyoku-name {
    color: #ec9090;
}

.kimon-kakkyoku-kichi {
    font-size: 0.82rem;
    color: #b8a070;
    margin: 2px 0 6px;
}

.kimon-kakkyoku-desc {
    font-size: 0.92rem;
    color: #d8c890;
    margin: 0;
    line-height: 1.6;
}

.kimon-reading-section {
    background: linear-gradient(135deg, #1a0f00 0%, #2a1a08 100%);
    border: 1px solid #c9a548;
}

.kimon-glossary-section {
    margin: 30px 0;
}

.kimon-glossary-section details {
    background: rgba(20, 12, 0, 0.6);
    border: 1px solid rgba(201, 165, 72, 0.3);
    border-radius: 4px;
    padding: 14px 18px;
}

.kimon-glossary-section summary {
    cursor: pointer;
    color: #f3d27e;
    font-weight: 600;
    padding: 4px 0;
    user-select: none;
}

.kimon-glossary-content {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed rgba(201, 165, 72, 0.25);
}

.kimon-glossary-content h4 {
    color: #c9a548;
    margin: 12px 0 6px;
    font-size: 0.98rem;
}

.kimon-glossary-content ul {
    margin: 0;
    padding-left: 22px;
    color: #d8c890;
    font-size: 0.9rem;
    line-height: 1.7;
}

.kimon-intro-section {
    margin: 30px 0;
}

.kimon-intro-card {
    padding: 22px 26px;
    background: linear-gradient(135deg, #1a0f00 0%, #2a1a08 100%);
    border: 1px solid #c9a548;
    border-radius: 6px;
    color: #d8c890;
    line-height: 1.75;
}

.kimon-intro-card h3 {
    color: #f3d27e;
    margin-top: 0;
    margin-bottom: 12px;
}

.kimon-intro-card h4 {
    color: #c9a548;
    margin: 18px 0 8px;
    font-size: 1rem;
}

.kimon-four-plates {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kimon-four-plates li {
    padding: 8px 0 8px 24px;
    border-bottom: 1px dashed rgba(201, 165, 72, 0.2);
    position: relative;
    font-size: 0.94rem;
}

.kimon-four-plates li:last-child {
    border-bottom: none;
}

.kimon-four-plates li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: #c9a548;
    font-size: 0.75rem;
    top: 11px;
}

@media (max-width: 720px) {
    .kimon-board {
        max-width: 100%;
        gap: 4px;
        padding: 8px;
    }

    .kimon-cell {
        min-height: 130px;
        padding: 8px 6px 6px;
        font-size: 0.78rem;
    }

    .kimon-cell-direction {
        font-size: 0.92rem;
    }

    .kimon-cell-kyu {
        font-size: 0.65rem;
    }

    .kimon-cell-tag {
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 0.62rem;
    }

    .kimon-cell-chiban {
        font-size: 0.85rem;
    }

    .kimon-cell-label {
        font-size: 0.62rem;
    }

    .kimon-summary-grid {
        grid-template-columns: 1fr;
    }

    .kimon-action-dir {
        font-size: 1rem;
    }
}

/* =========================================================================
   Team Building (Executive Plan) — チームビルディング
   ========================================================================= */

/* --- 入力フォームのコントロール --- */
.team-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.6rem 0 1.2rem;
    flex-wrap: wrap;
}

.btn-team-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-team-action:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #0a0a0a;
}

.btn-team-action:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-team-action-danger {
    color: #ff8a8a;
    border-color: #ff8a8a;
}

.btn-team-action-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff8a8a, #c25555);
    color: #0a0a0a;
}

.team-count-badge {
    margin-left: auto;
    padding: 0.35rem 0.85rem;
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
}

/* --- メンバーカード（フォーム） --- */
.team-member-card {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.team-member-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.15);
}

.team-member-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.7rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.25);
}

.team-member-num {
    color: #d4af37;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.team-member-num-value {
    display: inline-block;
    min-width: 1.6rem;
    text-align: center;
    padding: 0.05rem 0.35rem;
    background: rgba(212, 175, 55, 0.18);
    border-radius: 4px;
    margin: 0 0.2rem;
}

.form-row-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.7rem;
    margin-bottom: 0.6rem;
}

.form-row-team .form-group {
    margin-bottom: 0;
}

.form-row-team .form-group label {
    font-size: 0.82rem;
    margin-bottom: 0.25rem;
}

.form-row-team .form-group input[type="text"],
.form-row-team .form-group input[type="number"],
.form-row-team .form-group select {
    font-size: 0.92rem;
    padding: 0.45rem 0.65rem;
}

/* --- 結果ページ：サマリーバッジ／ピル --- */
.team-role-pill {
    display: inline-block;
    margin: 0.15rem 0.25rem 0.15rem 0;
    padding: 0.18rem 0.6rem;
    background: rgba(212, 175, 55, 0.12);
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

.team-pair-stat {
    display: inline-block;
    margin: 0 0.3rem 0.15rem 0;
    padding: 0.18rem 0.65rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.team-pair-stat-harmony {
    background: rgba(102, 187, 106, 0.18);
    color: #8bd28e;
    border: 1px solid rgba(102, 187, 106, 0.4);
}

.team-pair-stat-friction {
    background: rgba(229, 115, 115, 0.18);
    color: #ef9a9a;
    border: 1px solid rgba(229, 115, 115, 0.4);
}

/* --- セクション共通 --- */
.team-section {
    max-width: 980px;
    margin: 1.6rem auto 1.8rem;
    padding: 1.4rem 1.4rem 1.5rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
}

.team-section-title {
    color: #d4af37;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    letter-spacing: 0.03em;
}

/* --- 合算五行バー --- */
.team-gogyo-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-gogyo-bar-row {
    display: grid;
    grid-template-columns: 2.4rem 1fr 2.5rem;
    align-items: center;
    gap: 0.75rem;
}

.team-gogyo-label {
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #d4af37;
}

.team-gogyo-bar-track {
    height: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.team-gogyo-bar-fill {
    height: 100%;
    border-radius: 9px;
    transition: width 0.4s ease-out;
}

.team-gogyo-木 .team-gogyo-bar-fill { background: linear-gradient(90deg, #4a8c3e, #7fc35a); }
.team-gogyo-火 .team-gogyo-bar-fill { background: linear-gradient(90deg, #c93f3f, #f06868); }
.team-gogyo-土 .team-gogyo-bar-fill { background: linear-gradient(90deg, #8a6f3a, #d4af37); }
.team-gogyo-金 .team-gogyo-bar-fill { background: linear-gradient(90deg, #b3b3b3, #e8e8e8); }
.team-gogyo-水 .team-gogyo-bar-fill { background: linear-gradient(90deg, #2e5b8a, #5e9bd4); }

.team-gogyo-bar-value {
    text-align: right;
    font-size: 0.9rem;
    color: #cccccc;
    font-variant-numeric: tabular-nums;
}

/* --- メンバー結果カードグリッド --- */
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.85rem;
}

.team-result-card {
    background: linear-gradient(135deg, rgba(40, 32, 18, 0.45), rgba(20, 18, 14, 0.55));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
    padding: 0.85rem 0.95rem 0.95rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.team-result-card-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    flex-wrap: wrap;
}

.team-result-card-num {
    font-size: 0.78rem;
    color: #888;
    letter-spacing: 0.05em;
}

.team-result-card-name {
    font-size: 1.05rem;
    color: #d4af37;
    font-weight: 600;
}

.team-result-card-role-input {
    margin-left: auto;
    font-size: 0.78rem;
    color: #aaa;
    font-style: italic;
}

.team-result-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.team-result-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: #d4d4d4;
}

.team-result-label {
    min-width: 5.5rem;
    color: #aaa;
    font-size: 0.82rem;
}

.team-result-value {
    color: #e0e0e0;
}

.team-result-nikkan {
    font-size: 1rem;
    font-weight: 600;
    color: #f0d770;
}

.team-result-trait {
    font-size: 0.85rem;
    color: #b8b8b8;
    line-height: 1.55;
    padding: 0.4rem 0.55rem;
    background: rgba(212, 175, 55, 0.06);
    border-left: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 3px;
}

.team-result-role-category {
    margin-top: 0.2rem;
}

.team-role-category-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #0a0a0a;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.team-result-role-desc {
    font-size: 0.85rem;
    color: #c4c4c4;
    line-height: 1.5;
}

.team-result-scores {
    gap: 0.4rem;
}

.team-score-pill {
    padding: 0.15rem 0.55rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 999px;
    font-size: 0.78rem;
    color: #cfcfcf;
    font-variant-numeric: tabular-nums;
}

.team-result-balance-bars {
    display: inline-flex;
    gap: 0.25rem;
}

.team-balance-pip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.6rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #fff;
}

.team-balance-pip-木 { background: rgba(74, 140, 62, 0.45); }
.team-balance-pip-火 { background: rgba(201, 63, 63, 0.45); }
.team-balance-pip-土 { background: rgba(138, 111, 58, 0.45); }
.team-balance-pip-金 { background: rgba(179, 179, 179, 0.45); color: #1a1a1a; border-color: rgba(212, 175, 55, 0.4); }
.team-balance-pip-水 { background: rgba(46, 91, 138, 0.45); }

/* --- 候補者グリッド --- */
.team-candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.team-candidate-card {
    padding: 1rem 1.05rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.22);
}

.team-candidate-card h4 {
    margin: 0 0 0.7rem;
    padding-bottom: 0.4rem;
    color: #d4af37;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.team-candidate-leader { border-left: 3px solid #d4af37; }
.team-candidate-support { border-left: 3px solid #6da4d4; }
.team-candidate-outreach { border-left: 3px solid #d47a4a; }

.team-candidate-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: team-cand;
}

.team-candidate-list li {
    counter-increment: team-cand;
    margin: 0 0 0.65rem;
    padding: 0.5rem 0.65rem 0.55rem 2.2rem;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 6px;
    position: relative;
    line-height: 1.45;
}

.team-candidate-list li::before {
    content: counter(team-cand);
    position: absolute;
    left: 0.55rem;
    top: 0.5rem;
    width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.85);
    color: #0a0a0a;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
}

.team-candidate-name {
    display: inline-block;
    font-weight: 600;
    color: #f0d770;
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

.team-candidate-cat {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background: rgba(212, 175, 55, 0.14);
    border-radius: 3px;
    font-size: 0.75rem;
    color: #cfcfcf;
}

.team-candidate-score {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    color: #999;
    font-variant-numeric: tabular-nums;
}

.team-candidate-empty {
    margin: 0;
    color: #888;
    font-size: 0.88rem;
    line-height: 1.5;
    font-style: italic;
}

/* --- ペアマトリクス --- */
.team-pairs-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.team-pair-row {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid transparent;
    font-size: 0.88rem;
}

.team-pair-harmony { border-left-color: #66bb6a; background: rgba(102, 187, 106, 0.06); }
.team-pair-friction { border-left-color: #e57373; background: rgba(229, 115, 115, 0.06); }
.team-pair-leadership { border-left-color: #d4af37; background: rgba(212, 175, 55, 0.06); }
.team-pair-neutral { border-left-color: #777; }

.team-pair-tag {
    text-align: center;
    padding: 0.18rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.team-pair-tag-harmony { background: rgba(102, 187, 106, 0.25); color: #a5d6a7; }
.team-pair-tag-friction { background: rgba(229, 115, 115, 0.25); color: #ffab91; }
.team-pair-tag-leadership { background: rgba(212, 175, 55, 0.28); color: #f0d770; }
.team-pair-tag-neutral { background: rgba(150, 150, 150, 0.18); color: #b0b0b0; }

.team-pair-names {
    color: #e0e0e0;
    font-weight: 500;
}

.team-pair-relations {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    font-size: 0.78rem;
    color: #999;
}

.team-pair-jusshin {
    color: #cfcfcf;
}

.team-pair-gogyo {
    font-size: 0.74rem;
    color: #888;
}

/* --- 戻るボタン拡張 --- */
.btn-back-pro {
    background: linear-gradient(135deg, #2a2519, #1a1611);
    color: #d4af37;
    border-color: rgba(212, 175, 55, 0.5);
}

.btn-back-pro:hover {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #0a0a0a;
}

/* --- レスポンシブ --- */
@media (max-width: 600px) {
    .team-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .team-count-badge {
        margin-left: 0;
        text-align: center;
    }
    .team-pair-row {
        grid-template-columns: 4rem 1fr;
        grid-template-rows: auto auto;
    }
    .team-pair-relations {
        grid-column: 1 / -1;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    .form-row-team {
        grid-template-columns: 1fr 1fr;
    }
    .team-result-card-role-input {
        margin-left: 0;
    }
    .team-gogyo-bar-row {
        grid-template-columns: 2rem 1fr 2rem;
        gap: 0.5rem;
    }
}

/* ===========================================================================
   紫微斗数（/zi-wei）— 12宮命盤
   =========================================================================== */

.ziwei-summary-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 720px;
    margin: 24px auto;
}

.ziwei-summary-card,
.ziwei-sihua-card {
    background: linear-gradient(135deg, #1a0e02 0%, #2a1808 100%);
    border: 1px solid #c9a548;
    border-radius: 6px;
    padding: 18px 20px;
    color: #e6d4a8;
}

.ziwei-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(201, 165, 72, 0.25);
}

.ziwei-summary-row:last-child {
    border-bottom: none;
}

.ziwei-summary-label {
    color: #b8a070;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
}

.ziwei-summary-value {
    color: #f3d27e;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.05rem;
}

.ziwei-summary-highlight .ziwei-summary-value {
    color: #ffd87a;
    font-weight: 700;
    font-size: 1.15rem;
}

.ziwei-sihua-card h4 {
    text-align: center;
    color: #f3d27e;
    font-size: 1.05rem;
    margin: 0 0 12px;
    letter-spacing: 0.1em;
}

.ziwei-sihua-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ziwei-sihua {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    padding: 8px 10px;
    background: rgba(20, 12, 0, 0.6);
    border: 1px solid rgba(201, 165, 72, 0.3);
    border-radius: 4px;
    align-items: baseline;
}

.sihua-label {
    grid-row: 1 / span 2;
    color: #f3d27e;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    align-self: center;
}

.sihua-roku .sihua-label { color: #8fc987; }
.sihua-ken .sihua-label { color: #ffd87a; }
.sihua-ka .sihua-label { color: #87b8c9; }
.sihua-ki .sihua-label { color: #d99090; }

.sihua-star {
    color: #f3d27e;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.sihua-meaning {
    color: #b8a070;
    font-size: 0.78rem;
    grid-column: 2;
}

.ziwei-board-section {
    margin: 32px 0;
}

.ziwei-board-title {
    text-align: center;
    color: #f3d27e;
    margin-bottom: 8px;
}

.ziwei-board-caption {
    text-align: center;
    color: #b8a070;
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.ziwei-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, minmax(120px, auto));
    gap: 6px;
    max-width: 920px;
    margin: 0 auto;
    padding: 14px;
    background: linear-gradient(135deg, #100800 0%, #1f1206 100%);
    border: 2px solid #c9a548;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5),
                inset 0 0 12px rgba(201, 165, 72, 0.08);
}

.ziwei-cell {
    background: rgba(20, 12, 0, 0.7);
    border: 1px solid rgba(201, 165, 72, 0.4);
    border-radius: 4px;
    padding: 10px 10px 8px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #e6d4a8;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.ziwei-cell-life {
    border-color: #ffd87a;
    box-shadow: 0 0 12px rgba(255, 216, 122, 0.25),
                inset 0 0 8px rgba(255, 216, 122, 0.05);
    background: linear-gradient(135deg, rgba(40, 24, 4, 0.85), rgba(20, 12, 0, 0.85));
}

.ziwei-cell-body {
    border-color: #87b8c9;
    box-shadow: 0 0 8px rgba(135, 184, 201, 0.18);
}

.ziwei-cell-life.ziwei-cell-body {
    /* 命宮 = 身宮 のときは命宮スタイルを優先しつつ二重縁取り風 */
    box-shadow: 0 0 12px rgba(255, 216, 122, 0.3),
                inset 0 0 0 1px rgba(135, 184, 201, 0.5);
}

.ziwei-cell-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(201, 165, 72, 0.25);
}

.ziwei-cell-palace {
    color: #f3d27e;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.ziwei-cell-life .ziwei-cell-palace {
    color: #ffd87a;
}

.ziwei-cell-branch {
    color: #b8a070;
    font-size: 0.85rem;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
}

.ziwei-cell-stars {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-content: flex-start;
    flex: 1;
}

.ziwei-star {
    color: #f3d27e;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 0.95rem;
    padding: 1px 5px;
    background: rgba(201, 165, 72, 0.08);
    border: 1px solid rgba(201, 165, 72, 0.3);
    border-radius: 3px;
    letter-spacing: 0.04em;
}

.ziwei-no-star {
    color: #6e5f4a;
    font-size: 0.82rem;
    font-style: italic;
}

.ziwei-board-center {
    grid-row: 2 / span 2;
    grid-column: 2 / span 2;
    background: rgba(15, 8, 0, 0.8);
    border: 1px solid rgba(201, 165, 72, 0.5);
    border-radius: 4px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.ziwei-center-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(201, 165, 72, 0.2);
}

.ziwei-center-row:last-child {
    border-bottom: none;
}

.ziwei-center-label {
    color: #b8a070;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.ziwei-center-value {
    color: #f3d27e;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 0.95rem;
    text-align: right;
}

.ziwei-stars-section {
    max-width: 920px;
    margin: 32px auto;
}

.ziwei-stars-section h3 {
    text-align: center;
    color: #f3d27e;
    margin-bottom: 18px;
}

.ziwei-stars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.ziwei-star-item {
    background: rgba(20, 12, 0, 0.7);
    border: 1px solid rgba(201, 165, 72, 0.3);
    border-radius: 4px;
    padding: 12px 14px;
    color: #e6d4a8;
}

.ziwei-star-name {
    color: #f3d27e;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.08em;
}

.ziwei-star-position {
    color: #ffd87a;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.ziwei-star-system {
    color: #87b8c9;
    font-size: 0.78rem;
    margin-bottom: 6px;
}

.ziwei-star-meaning {
    color: #c9b890;
    font-size: 0.85rem;
    line-height: 1.5;
}

.ziwei-intro-section {
    max-width: 820px;
    margin: 32px auto;
}

.ziwei-intro-card {
    background: rgba(20, 12, 0, 0.6);
    border: 1px solid rgba(201, 165, 72, 0.4);
    border-radius: 6px;
    padding: 24px 28px;
    color: #d4c198;
    line-height: 1.7;
}

.ziwei-intro-card h3 {
    color: #f3d27e;
    margin: 0 0 12px;
    text-align: center;
}

.ziwei-intro-card h4 {
    color: #ffd87a;
    margin: 18px 0 8px;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.ziwei-palace-list {
    margin: 0;
    padding-left: 22px;
}

.ziwei-palace-list li {
    margin: 6px 0;
}

.result-birth-sub {
    text-align: center;
    color: #b8a070;
    font-size: 0.92rem;
    margin-top: -4px;
    margin-bottom: 16px;
}

@media (max-width: 720px) {
    .ziwei-summary-section {
        grid-template-columns: 1fr;
    }
    .ziwei-board {
        grid-template-rows: repeat(4, minmax(100px, auto));
    }
    .ziwei-cell {
        font-size: 0.78rem;
        padding: 8px 8px 6px;
        min-height: 100px;
    }
    .ziwei-cell-palace {
        font-size: 0.92rem;
    }
    .ziwei-star {
        font-size: 0.85rem;
        padding: 0 4px;
    }
    .ziwei-board-center {
        padding: 10px 12px;
        gap: 6px;
    }
    .ziwei-center-label,
    .ziwei-center-value {
        font-size: 0.78rem;
    }
}

/* ============================================================
   五行レーダーチャート / 大運タイムライン
   ============================================================ */

.gogyo-visual-wrapper {
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 16px;
}

.gogyo-radar {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto;
}

.radar-grid {
    fill: rgba(255, 255, 255, 0.03);
    stroke: rgba(180, 180, 220, 0.25);
    stroke-width: 1;
}

.radar-axis {
    stroke: rgba(180, 180, 220, 0.35);
    stroke-width: 1;
}

.radar-data {
    fill: rgba(255, 200, 80, 0.18);
    stroke: rgba(255, 200, 80, 0.85);
    stroke-width: 2;
    stroke-linejoin: round;
}

.radar-point {
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1.5;
}

.radar-label {
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
}

.gogyo-fill-木 { fill: var(--gogyo-wood); }
.gogyo-fill-火 { fill: var(--gogyo-fire); }
.gogyo-fill-土 { fill: var(--gogyo-earth); }
.gogyo-fill-金 { fill: var(--gogyo-metal); }
.gogyo-fill-水 { fill: var(--gogyo-water); }

.gogyo-text-木 { fill: var(--gogyo-wood); }
.gogyo-text-火 { fill: var(--gogyo-fire); }
.gogyo-text-土 { fill: var(--gogyo-earth); }
.gogyo-text-金 { fill: var(--gogyo-metal); }
.gogyo-text-水 { fill: var(--gogyo-water); }

@media (max-width: 720px) {
    .gogyo-visual-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .gogyo-radar {
        max-width: 280px;
    }
}

/* 大運タイムライン */

.daiun-section {
    margin-top: 36px;
}

.daiun-section h3 {
    margin-bottom: 8px;
}

.daiun-meta {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.daiun-meta strong {
    color: rgba(255, 220, 130, 1);
    font-weight: 600;
}

.daiun-timeline {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 14px;
}

.daiun-cell {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.daiun-age {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

.daiun-kanshi {
    display: flex;
    justify-content: center;
    gap: 2px;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.daiun-tenkan,
.daiun-chishi {
    display: inline-block;
}

.daiun-tsuhen {
    font-size: 0.78rem;
    color: rgba(255, 220, 150, 0.9);
    line-height: 1.2;
}

.daiun-twelve {
    font-size: 0.7rem;
    color: rgba(180, 200, 240, 0.85);
}

.daiun-theme {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 215, 110, 0.18);
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.daiun-theme-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 215, 110, 0.95);
    text-align: center;
    line-height: 1.3;
}

.daiun-theme-phase {
    font-size: 0.68rem;
    color: rgba(180, 200, 240, 0.85);
    text-align: center;
    line-height: 1.2;
}

.daiun-theme-action {
    font-size: 0.7rem;
    color: rgba(241, 238, 216, 0.92);
    line-height: 1.4;
    padding: 2px 4px;
    background: rgba(255, 215, 110, 0.06);
    border-radius: 4px;
}

.daiun-theme-caution {
    font-size: 0.68rem;
    color: rgba(255, 180, 180, 0.85);
    line-height: 1.4;
    padding: 2px 4px;
    background: rgba(204, 102, 102, 0.08);
    border-radius: 4px;
}

@media (max-width: 900px) {
    .daiun-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .daiun-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .daiun-theme-title { font-size: 0.85rem; }
    .daiun-theme-action, .daiun-theme-caution { font-size: 0.78rem; }
}

/* ===== 4運勢スコア (fortune_score) ===== */

.fscore-section {
    max-width: 1080px;
    margin: 28px auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.fscore-section h3 {
    color: #ffd76e;
    margin: 0 0 14px;
    text-align: center;
    font-size: 1.15em;
}

.fscore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.fscore-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1.5px solid rgba(255, 215, 110, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: #f1eed8;
}

.fscore-level-大吉 { border-color: #ffd76e; box-shadow: 0 0 14px rgba(255,215,110,0.3); }
.fscore-level-吉   { border-color: #d4b34a; }
.fscore-level-中   { border-color: rgba(241,207,106,0.4); }
.fscore-level-注意 { border-color: rgba(204,102,102,0.5); }
.fscore-level-凶   { border-color: #cc4444; }

.fscore-name {
    font-size: 1.05em;
    color: #ffd76e;
    font-weight: 700;
    margin-bottom: 6px;
}

.fscore-circle {
    width: 110px;
    height: 110px;
    margin: 6px auto 8px;
}

.fscore-svg { width: 100%; height: 100%; }

.fscore-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.fscore-fill {
    fill: none;
    stroke: url(#fscoreGrad);
    stroke: #ffd76e;
    stroke-width: 8;
    stroke-linecap: round;
}

.fscore-level-大吉 .fscore-fill { stroke: #ffd76e; }
.fscore-level-吉   .fscore-fill { stroke: #d4b34a; }
.fscore-level-中   .fscore-fill { stroke: #aaa099; }
.fscore-level-注意 .fscore-fill { stroke: #cc6666; }
.fscore-level-凶   .fscore-fill { stroke: #cc4444; }

.fscore-num {
    font-family: "Meiryo", "メイリオ", sans-serif;
    font-size: 28px;
    font-weight: 700;
    fill: #ffffff;
}

.fscore-level {
    color: #f1cf6a;
    font-size: 0.95em;
    margin: 4px 0;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(20,15,35,0.5);
    display: inline-block;
}

.fscore-comment {
    color: #d8d8c8;
    font-size: 0.85em;
    line-height: 1.55;
    margin-top: 6px;
}

.fscore-total {
    margin-top: 16px;
    padding: 12px 18px;
    background: rgba(20, 15, 35, 0.5);
    border-radius: 8px;
    text-align: center;
    color: #f1eed8;
    border-left: 4px solid #ffd76e;
}

.fscore-total-label { color: #f1cf6a; margin-right: 6px; }
.fscore-total-num { font-size: 1.7em; font-weight: 700; color: #ffd76e; }
.fscore-total-sub { font-size: 0.9em; color: #aaa099; margin-right: 12px; }
.fscore-total-meta { font-size: 0.92em; color: #d8d8c8; }

/* ===== 覚醒スコア (大運・流年の合算) ===== */
.awaken-section {
    margin: 22px 0;
    padding: 18px 16px;
    background: linear-gradient(160deg, rgba(60, 24, 24, 0.45), rgba(28, 18, 38, 0.5));
    border: 1px solid rgba(255, 142, 90, 0.35);
    border-radius: 12px;
}
.awaken-section h3 {
    color: #ffb27a;
    margin: 0 0 8px;
    font-size: 1.15em;
}
.awaken-lead {
    font-size: 0.92em;
    line-height: 1.7;
    color: #ecdfd2;
    margin: 0 0 14px;
}
.awaken-lead strong { color: #ffd0a0; }
.awaken-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.awaken-card {
    padding: 10px 12px;
    background: rgba(15, 12, 26, 0.5);
    border-radius: 9px;
    text-align: center;
    border-top: 3px solid #6b6256;
}
.awaken-card.awaken-up { border-top-color: #ff8e5a; }
.awaken-card.awaken-down { border-top-color: #5a8edf; }
.awaken-name { font-size: 0.92em; color: #cfc6b8; margin-bottom: 4px; }
.awaken-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.awaken-base { font-size: 1.25em; font-weight: 600; color: #9a9486; }
.awaken-arrow { font-size: 1.0em; color: #ff8e5a; }
.awaken-card.awaken-down .awaken-arrow { color: #5a8edf; }
.awaken-now { font-size: 1.9em; font-weight: 800; color: #ffd76e; }
.awaken-delta { font-size: 0.84em; color: #d8cdbe; margin-top: 4px; }
.awaken-total {
    margin-top: 14px;
    padding: 12px 18px;
    background: rgba(20, 15, 35, 0.55);
    border-radius: 8px;
    text-align: center;
    color: #f1eed8;
    border-left: 4px solid #ff8e5a;
    font-size: 1.05em;
}
.awaken-total .awaken-base { font-size: 1.3em; }
.awaken-total .awaken-now { font-size: 1.7em; }
.awaken-total-delta { display: inline-block; margin-left: 10px; color: #ffb27a; font-size: 0.9em; font-weight: 700; }
.awaken-note { font-size: 0.8em; color: #a59c8e; margin: 10px 0 0; }
@media (max-width: 520px) {
    .awaken-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== 流年運グラフ (year_fortune) ===== */

.yf-section {
    max-width: 1080px;
    margin: 28px auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    color: #f1eed8;
}

.yf-section h3 {
    color: #ffd76e;
    margin: 0 0 8px;
    text-align: center;
    font-size: 1.15em;
}

.yf-summary {
    line-height: 1.75;
    color: #f1eed8;
    background: rgba(20, 15, 35, 0.4);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 215, 110, 0.4);
    margin: 10px 0;
}

.yf-meta {
    text-align: center;
    color: #f1cf6a;
    margin-bottom: 12px;
    font-size: 0.93em;
}

.yf-meta strong { color: #ffd76e; }

.yf-chart-wrap {
    overflow-x: auto;
}

.yf-chart {
    width: 100%;
    min-width: 600px;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.yf-line {
    stroke: #ffd76e;
    stroke-width: 2.5;
    fill: none;
    filter: drop-shadow(0 0 4px rgba(255, 215, 110, 0.35));
}

.yf-dot { fill: #ffd76e; stroke: rgba(20,15,35,0.7); stroke-width: 2; }
.yf-level-大吉 { fill: #ffd76e; }
.yf-level-吉   { fill: #d4b34a; }
.yf-level-中   { fill: #aaa099; }
.yf-level-注意 { fill: #cc6666; }
.yf-level-凶   { fill: #cc4444; }

.yf-score {
    font-family: "Meiryo", "メイリオ", sans-serif;
    font-size: 11px;
    fill: #ffffff;
    font-weight: 600;
}

.yf-month {
    font-family: "Meiryo", "メイリオ", sans-serif;
    font-size: 11px;
    fill: #f1cf6a;
}

.yf-axis {
    font-family: "Meiryo", "メイリオ", sans-serif;
    font-size: 11px;
    fill: rgba(241, 207, 106, 0.65);
}

.yf-detail {
    margin-top: 14px;
    background: rgba(20, 15, 35, 0.4);
    border-radius: 8px;
    padding: 10px 14px;
}

.yf-detail summary {
    cursor: pointer;
    color: #f1cf6a;
    font-weight: 600;
    padding: 4px 0;
}

.yf-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    color: #f1eed8;
    font-size: 0.92em;
}

.yf-table th {
    background: rgba(20, 15, 35, 0.55);
    color: #ffd76e;
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 110, 0.3);
}

.yf-table td {
    padding: 6px 8px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.15);
}

.yf-row.yf-level-大吉 td { color: #ffd76e; }
.yf-row.yf-level-注意 td { color: #ffcccc; }
.yf-row.yf-level-凶 td   { color: #ff9999; }

@media (max-width: 600px) {
    .fscore-grid { grid-template-columns: 1fr 1fr; }
    .fscore-circle { width: 90px; height: 90px; }
}

/* ===== バイオリズム (/biorhythm) ===== */

.bio-section {
    max-width: 1080px;
    margin: 28px auto;
    padding: 0 16px;
}

.bio-today-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.bio-today-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1.5px solid rgba(255, 215, 110, 0.25);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    color: #f1eed8;
}

.bio-cycle-p { border-color: #ff6b6b; }       /* 身体=赤系 */
.bio-cycle-e { border-color: #6bcf7f; }       /* 感情=緑系 */
.bio-cycle-i { border-color: #5e9aff; }       /* 知性=青系 */

.bio-phase-高調期 { background: linear-gradient(135deg, rgba(80,50,30,0.6), rgba(40,30,60,0.55)); box-shadow: 0 0 12px rgba(255,215,110,0.25); }
.bio-phase-低調期 { background: linear-gradient(135deg, rgba(40,30,40,0.5), rgba(30,25,50,0.5)); opacity: 0.85; }
.bio-phase-臨界   { background: linear-gradient(135deg, rgba(80,40,40,0.6), rgba(40,30,60,0.55)); border-style: dashed; }

.bio-today-name {
    font-size: 1.1em;
    font-weight: 700;
    color: #ffd76e;
}

.bio-today-value {
    font-size: 2.4em;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin: 6px 0;
    font-family: "Consolas", monospace;
}

.bio-today-phase {
    font-size: 1em;
    color: #f1cf6a;
    padding: 2px 12px;
    border-radius: 12px;
    background: rgba(20, 15, 35, 0.55);
    display: inline-block;
    margin-bottom: 4px;
}

.bio-today-cycle {
    font-size: 0.82em;
    color: #aaa099;
}

.bio-summary {
    text-align: center;
    color: #f1eed8;
    background: rgba(20, 15, 35, 0.4);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 215, 110, 0.4);
    line-height: 1.7;
}

/* チャート */

.bio-chart-wrap { overflow-x: auto; }

/* グラフのホバー・ツールチップ */
.biochart-host { position: relative; }
.bio-chart { cursor: crosshair; }
.biochart-cursor {
    stroke: rgba(255, 215, 110, 0.65);
    stroke-width: 1.5;
    stroke-dasharray: 4, 4;
    pointer-events: none;
}
.biochart-cursor-dot {
    stroke: #fff;
    stroke-width: 1.5;
    pointer-events: none;
}
.biochart-tip {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    background: rgba(20, 14, 30, 0.96);
    color: #f1eed8;
    border: 1px solid rgba(255, 215, 110, 0.5);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.82em;
    line-height: 1.55;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.biochart-tip strong { color: #ffd76e; }
.biochart-tip small { color: #aaa099; }

.bio-chart {
    width: 100%;
    min-width: 720px;
    max-width: 920px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.bio-line {
    stroke-width: 2.5;
    fill: none;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.4));
}
.bio-line-p { stroke: #ff6b6b; }
.bio-line-e { stroke: #6bcf7f; }
.bio-line-i { stroke: #5e9aff; }

.bio-dot { stroke: #fff; stroke-width: 1.5; }
.bio-dot-p { fill: #ff6b6b; }
.bio-dot-e { fill: #6bcf7f; }
.bio-dot-i { fill: #5e9aff; }

.bio-axis {
    font-family: "Meiryo", "メイリオ", sans-serif;
    font-size: 11px;
    fill: rgba(241, 207, 106, 0.7);
}

.bio-today-label {
    font-family: "Meiryo", "メイリオ", sans-serif;
    font-size: 11px;
    fill: #ffd76e;
    font-weight: 600;
}

.bio-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.bio-leg {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f1eed8;
    font-size: 0.92em;
}

.bio-leg-bar {
    display: inline-block;
    width: 24px;
    height: 3px;
    border-radius: 2px;
}

.bio-leg-p .bio-leg-bar { background: #ff6b6b; }
.bio-leg-e .bio-leg-bar { background: #6bcf7f; }
.bio-leg-i .bio-leg-bar { background: #5e9aff; }

/* 臨界日 */

.bio-critical-note {
    color: #ffcccc;
    background: rgba(204, 102, 102, 0.15);
    border-left: 3px solid rgba(204, 102, 102, 0.6);
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.bio-critical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.bio-critical-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    color: #f1eed8;
}

.bio-critical-card.bio-cycle-p { border-color: rgba(255, 107, 107, 0.6); }
.bio-critical-card.bio-cycle-e { border-color: rgba(107, 207, 127, 0.6); }
.bio-critical-card.bio-cycle-i { border-color: rgba(94, 154, 255, 0.6); }

.bio-critical-date {
    font-size: 1.2em;
    font-weight: 700;
    color: #ffd76e;
}

.bio-critical-cycle {
    font-size: 1em;
    color: #ffffff;
    margin: 4px 0;
}

.bio-critical-dir {
    font-size: 0.85em;
    color: #aaa099;
}

@media (max-width: 600px) {
    .bio-today-grid { grid-template-columns: 1fr; }
    .bio-today-value { font-size: 2em; }
}

/* ===== 開運カレンダー内バイオリズム ===== */

.cal-bio {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 110, 0.18);
}

.cal-bio-link {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
}

.cal-bio-link a { color: #ffd76e; text-decoration: none; }
.cal-bio-link a:hover { text-decoration: underline; }

/* ===== 一生のバイオリズム (/life-biorhythm) ===== */

.lifebio-progress {
    position: relative;
    height: 26px;
    background: rgba(20, 15, 35, 0.6);
    border: 1px solid rgba(255, 215, 110, 0.3);
    border-radius: 13px;
    overflow: hidden;
    margin: 10px 0 18px;
}

.lifebio-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5e9aff, #6bcf7f, #ffd76e);
    border-radius: 13px 0 0 13px;
}

.lifebio-progress-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    line-height: 26px;
    text-align: center;
    font-size: 0.85em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.lifebio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.lifebio-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    color: #f1eed8;
}

.lifebio-card-label { font-size: 0.85em; color: #aaa099; }
.lifebio-card-value { font-size: 1.7em; font-weight: 700; color: #ffd76e; margin-top: 4px; }
.lifebio-card-value small { font-size: 0.5em; color: #f1eed8; margin-left: 3px; }

.lifebio-peak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.lifebio-peak {
    border-radius: 10px;
    padding: 16px;
    color: #f1eed8;
}

.lifebio-peak-high {
    background: rgba(60, 70, 40, 0.5);
    border: 1px solid rgba(107, 207, 127, 0.5);
}

.lifebio-peak-low {
    background: rgba(60, 40, 50, 0.5);
    border: 1px solid rgba(255, 107, 107, 0.5);
}

.lifebio-peak-tag { font-weight: 700; font-size: 1.05em; margin-bottom: 6px; }
.lifebio-peak-high .lifebio-peak-tag { color: #9fe6ad; }
.lifebio-peak-low .lifebio-peak-tag { color: #ffb0b0; }
.lifebio-peak-date { font-size: 1.4em; font-weight: 700; color: #ffd76e; }
.lifebio-peak-vals { font-size: 0.9em; margin: 6px 0; color: #fff; }
.lifebio-peak-note { font-size: 0.85em; color: #c9c2bb; line-height: 1.6; }

.lifebio-chart-note {
    text-align: center;
    font-size: 0.85em;
    color: #aaa099;
    margin-top: 8px;
    line-height: 1.6;
}

/* 一生の総合運気 合成波 */
.lifebio-wave-line {
    stroke: #ffd76e;
    stroke-width: 2.5;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(255, 215, 110, 0.45));
}

.lifebio-wave-fill {
    fill: rgba(255, 215, 110, 0.12);
}

.bio-leg-combined .bio-leg-bar { background: #ffd76e; }

/* 一生の運気（大運）用神バッジ */
.lf-yongshin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    justify-content: center;
    margin: 4px 0 10px;
    font-size: 0.92em;
    color: #f1eed8;
}
.lf-ys-strength {
    font-weight: 700;
    color: #ffd76e;
    background: rgba(255, 215, 110, 0.12);
    border: 1px solid rgba(255, 215, 110, 0.4);
    border-radius: 14px;
    padding: 2px 12px;
}
.lf-ys-group { color: #c9c2bb; }
.lf-ys-chip {
    display: inline-block;
    min-width: 1.5em;
    text-align: center;
    font-weight: 700;
    border-radius: 6px;
    padding: 1px 6px;
    margin: 0 2px;
    background: rgba(255, 255, 255, 0.08);
}
.lf-ys-unfav .lf-ys-chip { opacity: 0.6; }

/* 一生の運気（大運）期間カード */
.lf-period-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.lf-period {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 10px;
    padding: 12px;
    color: #f1eed8;
    text-align: center;
}
.lf-period-current {
    border-color: rgba(255, 215, 110, 0.7);
    box-shadow: 0 0 14px rgba(255, 215, 110, 0.3);
}
.lf-period-age { font-size: 0.9em; color: #aaa099; }
.lf-now {
    font-size: 0.72em; color: #2a160c; background: #ffcf6a;
    padding: 1px 6px; border-radius: 8px; font-weight: 700;
}
.lf-period-kanshi {
    font-size: 1.5em; font-weight: 700;
    font-family: "Shippori Mincho", "ＭＳ 明朝", serif;
    margin: 2px 0;
}
.lf-period-twelve { font-size: 0.95em; }
.lf-period-twelve strong { color: #ffd76e; font-size: 1.1em; }
.lf-score-track {
    height: 10px; background: rgba(20, 12, 8, 0.6);
    border-radius: 5px; overflow: hidden; margin: 6px 0 3px;
    border: 1px solid rgba(255, 215, 110, 0.2);
}
.lf-score-fill {
    height: 100%; border-radius: 5px;
    background: linear-gradient(90deg, #5e9aff, #6bcf7f, #ffd76e);
}
.lf-period-score { font-size: 0.82em; color: #ffd76e; }
.lf-period-tsu { font-size: 0.8em; color: #c9c2bb; }
.lf-period-hint { font-size: 0.8em; color: #aaa099; line-height: 1.5; margin-top: 3px; }
.lf-period-phase {
    font-size: 0.95em; color: #ffd76e; margin: 4px 0 2px;
}
.lf-period-phase strong { font-weight: 700; }
.lf-period-energy { font-size: 0.78em; color: #aaa099; margin-left: 2px; }
.lf-period-action {
    font-size: 0.85em; color: #f1eed8; line-height: 1.55; margin-top: 8px;
    padding: 6px 8px; border-left: 2px solid rgba(255, 215, 110, 0.55);
    background: rgba(255, 215, 110, 0.06); text-align: left; border-radius: 0 4px 4px 0;
}

/* いまのステージ・スポットライト */
.lf-current-spotlight {
    margin-top: 22px;
}
.lf-current-card {
    background: linear-gradient(165deg, rgba(60, 45, 95, 0.7), rgba(35, 22, 60, 0.7));
    border: 2px solid rgba(255, 215, 110, 0.55);
    border-radius: 14px;
    padding: 22px 24px;
    color: #f1eed8;
    box-shadow: 0 0 22px rgba(255, 215, 110, 0.18);
}
.lf-current-kanshi {
    font-size: 2.4em; font-weight: 700;
    font-family: "Shippori Mincho", "ＭＳ 明朝", serif;
    text-align: center; margin-bottom: 10px; color: #ffe1a1;
    letter-spacing: 0.08em;
}
.lf-current-phase {
    font-size: 1.15em; color: #ffd76e; margin-bottom: 6px;
}
.lf-current-phase strong { color: #fff; font-weight: 700; }
.lf-current-energy { font-size: 0.9em; color: #d9c9a6; margin-left: 4px; }
.lf-current-twelve { font-size: 0.92em; color: #c9c2bb; margin-bottom: 8px; }
.lf-current-hint { font-size: 0.95em; line-height: 1.7; color: #f1eed8; margin-bottom: 14px; }
.lf-current-action {
    font-size: 1em; line-height: 1.75;
    padding: 12px 14px;
    background: rgba(255, 215, 110, 0.1);
    border-left: 3px solid #ffcf6a;
    border-radius: 0 6px 6px 0;
    color: #fff;
}
.lf-current-action strong { color: #ffd76e; }

/* 現大運 10年の年別チャート */
.lf-stage-years-section { margin-top: 22px; }
.lf-stage-years-note {
    font-size: 0.9em; color: #c9c2bb; line-height: 1.6;
    margin: 6px 0 14px;
}
.lf-stage-chart-wrap {
    background: rgba(20, 12, 8, 0.4);
    border: 1px solid rgba(255, 215, 110, 0.18);
    border-radius: 10px;
    padding: 10px 6px 4px;
    margin-bottom: 16px;
    overflow-x: auto;
}
.lf-stage-chart { width: 100%; min-width: 560px; height: auto; }
.lf-stage-line {
    stroke: rgba(255, 215, 110, 0.85);
    stroke-width: 2.2;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.lf-stage-dot {
    fill: #ffd76e;
    stroke: rgba(40, 30, 60, 0.9);
    stroke-width: 1.5;
}
.lf-stage-dot-current {
    fill: #fff;
    stroke: #ffcf6a;
    stroke-width: 2.5;
}
.lf-stage-year-sub { font-size: 9px; fill: #aaa099; }
.bio-axis { font-size: 11px; fill: #aaa099; }

.lf-year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 4px;
}
.lf-year-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.22);
    border-radius: 9px;
    padding: 10px 12px;
    color: #f1eed8;
}
.lf-year-card-current {
    border-color: rgba(255, 215, 110, 0.75);
    background: rgba(60, 45, 95, 0.65);
    box-shadow: 0 0 10px rgba(255, 215, 110, 0.22);
}
.lf-year-head {
    display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
    font-size: 0.85em; color: #c9c2bb; margin-bottom: 2px;
}
.lf-year-age { font-size: 1.1em; font-weight: 700; color: #ffd76e; }
.lf-year-year { color: #aaa099; }
.lf-year-kanshi {
    font-family: "Shippori Mincho", "ＭＳ 明朝", serif;
    font-size: 1.4em; font-weight: 700; color: #fff;
    letter-spacing: 0.06em; margin: 2px 0 4px;
}
.lf-year-meta { font-size: 0.78em; color: #c9c2bb; margin-bottom: 6px; }
.lf-year-theme { font-size: 0.95em; color: #ffd76e; margin-bottom: 4px; font-weight: 600; }
.lf-year-action { font-size: 0.83em; color: #f1eed8; line-height: 1.55; }
.lf-year-caution {
    font-size: 0.78em; color: #ffc4a3; line-height: 1.5; margin-top: 6px;
    padding: 4px 6px; border-left: 2px solid rgba(255, 130, 90, 0.55);
    background: rgba(255, 130, 90, 0.08); border-radius: 0 4px 4px 0;
}
.lf-period-caution {
    font-size: 0.78em; color: #ffc4a3; line-height: 1.5; margin-top: 6px;
    padding: 4px 6px; border-left: 2px solid rgba(255, 130, 90, 0.5);
    background: rgba(255, 130, 90, 0.07); border-radius: 0 4px 4px 0; text-align: left;
}
.lf-current-caution {
    font-size: 0.9em; line-height: 1.65; margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255, 130, 90, 0.1);
    border-left: 3px solid rgba(255, 130, 90, 0.65);
    border-radius: 0 6px 6px 0;
    color: #ffe2cc;
}
.lf-current-caution strong { color: #ffb38a; }

/* === ヘッダーのログイン/プラン === */
.header-user {
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 0.85em;
}
.header-user a { color: #ffd76e; text-decoration: none; }
.header-plan-badge {
    display: inline-block; padding: 2px 8px; border-radius: 9px;
    font-size: 0.8em; font-weight: 700; line-height: 1.4;
    background: rgba(255, 215, 110, 0.18);
    border: 1px solid rgba(255, 215, 110, 0.45);
    color: #ffd76e;
}
.header-plan-badge.plan-free { color: #c9c2bb; border-color: rgba(200, 195, 187, 0.4); background: rgba(120, 110, 100, 0.18); }
.header-plan-badge.plan-single { color: #ffce8a; }
.header-plan-badge.plan-basic { color: #ffd76e; border-color: rgba(255, 215, 110, 0.6); background: rgba(255, 215, 110, 0.12); }
.header-plan-badge.plan-light { color: #ffd76e; }
.header-plan-badge.plan-standard { color: #ffe1a1; background: rgba(255, 215, 110, 0.3); }
.header-plan-badge.plan-executive {
    color: #fff; background: linear-gradient(135deg, #b08d2f, #d4af37);
    border-color: #ffd76e;
}
.header-logout-form { display: inline; margin: 0; }
.header-logout-btn {
    background: transparent; border: 1px solid rgba(241, 207, 106, 0.4);
    color: #c9c2bb; padding: 2px 9px; border-radius: 9px;
    font-size: 0.78em; cursor: pointer;
}
.header-logout-btn:hover { color: #ffd76e; border-color: #ffd76e; }
.header-login-link {
    border: 1px solid rgba(241, 207, 106, 0.5); padding: 3px 10px; border-radius: 9px;
    color: #ffd76e; text-decoration: none;
}
.header-login-link:hover { background: rgba(255, 215, 110, 0.12); }
/* ログイン/ユーザー欄をヘッダー右上に固定配置 */
header .container { position: relative; }
.header-auth {
    position: absolute; top: 0; right: 0;
    display: flex; align-items: center; justify-content: flex-end;
    font-size: 0.85em; z-index: 2;
}
/* 狭い画面では絶対配置をやめて中央上に重ねず通常フローへ */
@media (max-width: 640px) {
    header .container { position: static; }
    .header-auth {
        position: static; justify-content: center;
        margin: 0 0 8px; width: 100%;
    }
}

/* === ログイン画面 === */
.login-card { max-width: 560px; margin: 0 auto; }
.login-sent {
    text-align: center; padding: 12px 8px;
}
.login-sent h3 { color: #ffd76e; margin-bottom: 12px; }
.login-sent-note { font-size: 0.85em; color: #aaa099; margin-top: 14px; }
.login-pricing-link {
    margin-top: 24px; padding-top: 18px;
    border-top: 1px solid rgba(255, 215, 110, 0.18);
    font-size: 0.9em; color: #aaa099; line-height: 1.7;
}
.login-pricing-link a { color: #ffd76e; }

/* === 料金ページ === */
.pricing-campaign-banner {
    max-width: 1080px; margin: 18px auto 4px; padding: 14px 18px;
    background: linear-gradient(135deg, rgba(255, 215, 110, 0.18), rgba(180, 90, 50, 0.25));
    border: 1px solid rgba(255, 215, 110, 0.55);
    border-radius: 10px; color: #ffe1a1; font-weight: 700;
    text-align: center;
}
.pricing-section { max-width: 1200px; margin: 18px auto; padding: 0 14px; }
.pricing-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.pricing-card {
    background: rgba(40, 30, 60, 0.6);
    border: 1px solid rgba(255, 215, 110, 0.28);
    border-radius: 14px; padding: 22px 20px; color: #f1eed8;
    display: flex; flex-direction: column;
    position: relative;
}
.pricing-card-featured {
    border-color: #ffd76e;
    box-shadow: 0 0 22px rgba(255, 215, 110, 0.32);
    transform: translateY(-4px);
}
.pricing-card-exec {
    background: linear-gradient(165deg, rgba(80, 55, 25, 0.55), rgba(30, 20, 12, 0.7));
    border-color: rgba(255, 215, 110, 0.55);
}
.pricing-badge {
    position: absolute; top: -12px; right: 14px;
    background: #ffcf6a; color: #2a160c; font-weight: 700;
    padding: 4px 10px; border-radius: 12px; font-size: 0.78em;
}
.pricing-tier { font-size: 1.05em; color: #ffd76e; font-weight: 700; letter-spacing: 0.05em; }
.pricing-price {
    margin: 12px 0 16px; line-height: 1.1;
}
.pricing-yen {
    font-size: 2em; font-weight: 700; color: #fff;
    font-family: "Shippori Mincho", serif;
}
.pricing-unit { font-size: 0.78em; color: #aaa099; margin-left: 6px; }
.pricing-features {
    list-style: none; padding: 0; margin: 0 0 18px;
    font-size: 0.88em; line-height: 1.85; color: #d6cfc1; flex-grow: 1;
}
.btn-pricing {
    display: block; text-align: center; text-decoration: none;
    padding: 10px 14px; border-radius: 9px;
    background: rgba(255, 215, 110, 0.15);
    border: 1px solid rgba(255, 215, 110, 0.4);
    color: #ffd76e; font-weight: 700; transition: background 0.2s;
}
.btn-pricing:hover { background: rgba(255, 215, 110, 0.3); }
.btn-pricing-featured {
    background: #ffcf6a; color: #2a160c; border-color: #ffcf6a;
}
.btn-pricing-featured:hover { background: #ffd76e; }
.btn-pricing-exec {
    background: linear-gradient(135deg, #b08d2f, #d4af37);
    color: #fff; border-color: #ffd76e;
}
.pricing-note {
    max-width: 720px; margin: 18px auto 0; text-align: center;
    color: #aaa099; font-size: 0.82em; line-height: 1.7;
}

/* === プラン診断クイズ === */
.quiz-section { max-width: 720px; margin: 0 auto 36px; padding: 0 14px; }
.quiz-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.3);
    border-radius: 14px; padding: 28px 24px; color: #f1eed8;
    box-shadow: 0 0 20px rgba(255, 215, 110, 0.12);
}
.quiz-progress {
    height: 6px; background: rgba(20, 12, 8, 0.6); border-radius: 4px; overflow: hidden;
    margin-bottom: 6px;
}
.quiz-progress-bar {
    height: 100%; background: linear-gradient(90deg, #b08d2f, #ffd76e);
    width: 25%; transition: width 0.4s ease;
}
.quiz-step-counter { font-size: 0.82em; color: #aaa099; text-align: right; margin-bottom: 18px; }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: quiz-fade-in 0.35s ease; }
@keyframes quiz-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.quiz-question {
    font-size: 1.15em; color: #ffd76e;
    font-family: "Shippori Mincho", serif; margin: 0 0 16px;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
    background: rgba(20, 12, 8, 0.5);
    border: 1px solid rgba(255, 215, 110, 0.35);
    color: #f1eed8;
    text-align: left; padding: 14px 18px; border-radius: 9px;
    font-size: 0.95em; line-height: 1.5;
    cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.quiz-option:hover {
    background: rgba(255, 215, 110, 0.12);
    border-color: #ffd76e; transform: translateX(2px);
}
.quiz-result {
    text-align: center; padding: 18px 8px;
}
.quiz-result-tag {
    color: #aaa099; font-size: 0.85em; letter-spacing: 0.15em;
    margin-bottom: 6px;
}
.quiz-result-name {
    font-size: 2em; color: #ffd76e; font-weight: 700;
    font-family: "Shippori Mincho", serif; margin-bottom: 4px;
}
.quiz-result-price {
    font-size: 1.1em; color: #fff; margin-bottom: 12px;
}
.quiz-result-why {
    font-size: 0.95em; line-height: 1.85; color: #d6cfc1;
    padding: 0 6px;
}
.quiz-action-row {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    margin-top: 16px; margin-bottom: 16px;
}
.btn-quiz-cta {
    background: linear-gradient(135deg, #b08d2f, #d4af37);
    color: #fff; border: 2px solid #ffd76e;
    padding: 12px 24px; border-radius: 9px;
    font-weight: 700; text-decoration: none; font-size: 0.95em;
}
.btn-quiz-secondary {
    color: #ffd76e; border: 1px solid rgba(255, 215, 110, 0.4);
    padding: 12px 20px; border-radius: 9px;
    text-decoration: none; font-size: 0.92em;
}
.quiz-restart {
    display: block; margin: 0 auto;
    background: transparent; color: #aaa099;
    border: 1px solid rgba(170, 160, 153, 0.3);
    padding: 6px 14px; border-radius: 8px;
    font-size: 0.82em; cursor: pointer;
}

/* === エグゼクティブ専用LP === */
.exec-hero {
    background: linear-gradient(155deg, rgba(80, 55, 25, 0.7), rgba(30, 20, 12, 0.9));
    border-bottom: 2px solid rgba(255, 215, 110, 0.4);
    padding: 50px 18px 40px;
    margin: -16px 0 0;
}
.exec-hero-inner {
    max-width: 980px; margin: 0 auto; text-align: center;
}
.exec-eyebrow {
    font-size: 0.95em; letter-spacing: 0.18em; color: #d4af37;
    margin-bottom: 8px;
}
.exec-title {
    font-size: 2.6em; color: #fff;
    font-family: "Shippori Mincho", "ＭＳ 明朝", serif;
    margin: 8px 0 14px;
}
.exec-title-em {
    background: linear-gradient(135deg, #ffe1a1, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.exec-tagline {
    font-size: 1.05em; line-height: 1.85; color: #f1eed8;
    margin-bottom: 28px;
}
.exec-tagline strong {
    color: #ffd76e; font-size: 1.2em;
}
.exec-cta-row {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    align-items: center;
}
.exec-cta-form { display: inline-block; margin: 0; }
.btn-exec-cta {
    background: linear-gradient(135deg, #b08d2f, #d4af37);
    color: #fff; border: 2px solid #ffd76e;
    padding: 14px 36px; font-size: 1.05em; font-weight: 700;
    border-radius: 10px; cursor: pointer; text-decoration: none;
    display: inline-block; box-shadow: 0 4px 18px rgba(255, 215, 110, 0.32);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-exec-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(255, 215, 110, 0.5); }
.btn-exec-secondary {
    background: transparent; color: #ffd76e;
    border: 1px solid rgba(255, 215, 110, 0.5);
    padding: 12px 24px; border-radius: 10px; text-decoration: none;
}
.exec-campaign-line {
    margin-top: 18px; color: #ffe1a1; font-size: 0.95em;
}

.exec-section-title {
    text-align: center; color: #ffd76e;
    font-family: "Shippori Mincho", "ＭＳ 明朝", serif;
    font-size: 1.5em; margin: 36px 0 22px;
}

.exec-pain { max-width: 1080px; margin: 0 auto; padding: 24px 18px; }
.exec-pain-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.exec-pain-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 12px; padding: 22px 20px; color: #f1eed8;
}
.exec-pain-icon { font-size: 1.8em; margin-bottom: 8px; }
.exec-pain-card h4 { color: #ffd76e; margin: 0 0 8px; font-size: 1.05em; }
.exec-pain-card p { font-size: 0.88em; line-height: 1.7; color: #d6cfc1; margin: 0; }

.exec-features-deep { max-width: 1080px; margin: 0 auto; padding: 24px 18px; }
.exec-features-list {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.exec-feature-item {
    background: rgba(40, 30, 60, 0.45);
    border-left: 3px solid #d4af37;
    padding: 14px 18px; color: #f1eed8;
    border-radius: 0 8px 8px 0;
}
.exec-feature-item h4 { color: #ffe1a1; margin: 0 0 6px; font-size: 1em; }
.exec-feature-item p { font-size: 0.85em; line-height: 1.7; color: #d6cfc1; margin: 0; }

.exec-target { max-width: 1080px; margin: 0 auto; padding: 24px 18px; }
.exec-target-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.exec-target-card {
    background: rgba(40, 30, 60, 0.4);
    border: 1px solid rgba(255, 215, 110, 0.2);
    border-radius: 10px; padding: 16px; color: #f1eed8;
}
.exec-target-card h4 { color: #ffd76e; margin: 0 0 6px; font-size: 0.98em; }
.exec-target-card p { font-size: 0.85em; line-height: 1.7; color: #d6cfc1; margin: 0; }

.exec-price-detail { max-width: 720px; margin: 24px auto; padding: 24px 18px; }
.exec-price-box {
    background: linear-gradient(160deg, rgba(80, 55, 25, 0.5), rgba(30, 20, 12, 0.6));
    border: 2px solid rgba(255, 215, 110, 0.55);
    border-radius: 14px; padding: 28px 24px; color: #f1eed8;
}
.exec-price-main {
    text-align: center; margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 215, 110, 0.25);
}
.exec-price-yen {
    font-size: 3em; font-weight: 700; color: #fff;
    font-family: "Shippori Mincho", serif;
}
.exec-price-unit { font-size: 0.95em; color: #aaa099; margin-left: 8px; }
.exec-price-notes {
    list-style: none; padding: 0; margin: 0;
    font-size: 0.9em; line-height: 1.9; color: #d6cfc1;
}

.exec-compare { max-width: 1080px; margin: 0 auto; padding: 24px 18px; }
.exec-compare-note {
    text-align: center; color: #d6cfc1; font-size: 0.92em;
    line-height: 1.85; margin-bottom: 18px;
}
.exec-compare-note strong { color: #ffd76e; }
.exec-compare-wrap { overflow-x: auto; }
.exec-compare-table {
    width: 100%; min-width: 720px;
    border-collapse: collapse;
    background: rgba(20, 12, 8, 0.5);
    color: #f1eed8; font-size: 0.88em;
}
.exec-compare-table th, .exec-compare-table td {
    padding: 10px 8px; text-align: center;
    border-bottom: 1px solid rgba(255, 215, 110, 0.15);
}
.exec-compare-table th {
    background: rgba(80, 55, 25, 0.5);
    color: #ffd76e; font-weight: 600;
    border-bottom: 2px solid rgba(255, 215, 110, 0.45);
    line-height: 1.4;
}
.exec-compare-table th small { display: block; font-size: 0.78em; color: #d6cfc1; margin-top: 3px; }
.exec-compare-feature {
    text-align: left !important; min-width: 180px;
    background: rgba(80, 55, 25, 0.6) !important;
}
.exec-compare-exec {
    background: linear-gradient(135deg, rgba(176, 141, 47, 0.7), rgba(212, 175, 55, 0.7)) !important;
    color: #fff !important;
}
.exec-compare-table tbody td:first-child {
    text-align: left; color: #d6cfc1;
}
.exec-compare-highlight {
    background: rgba(255, 215, 110, 0.06);
}
.exec-compare-highlight td:first-child {
    color: #ffd76e !important;
}
.exec-compare-foot {
    font-size: 0.8em; color: #aaa099; text-align: center; margin-top: 12px;
}

.exec-faq { max-width: 880px; margin: 0 auto 40px; padding: 24px 18px; }
.exec-faq-item {
    background: rgba(40, 30, 60, 0.4);
    border: 1px solid rgba(255, 215, 110, 0.2);
    border-radius: 10px; padding: 14px 18px; color: #f1eed8;
    margin-bottom: 10px;
}
.exec-faq-item summary {
    cursor: pointer; color: #ffd76e; font-weight: 600;
    list-style-position: inside;
}
.exec-faq-item p {
    margin: 10px 0 0; padding-left: 4px;
    font-size: 0.9em; line-height: 1.8; color: #d6cfc1;
}

/* === アカウント === */
.account-meta {
    display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px;
    margin-bottom: 22px;
}
.account-meta dt { color: #aaa099; font-size: 0.88em; }
.account-meta dd { margin: 0; color: #f1eed8; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.account-trial-pill {
    display: inline-block; margin-left: 8px; padding: 2px 9px;
    background: linear-gradient(135deg, #5e9aff, #6bcf7f);
    color: #fff; font-size: 0.78em; font-weight: 700;
    border-radius: 9px; letter-spacing: 0.05em;
}
.account-upgrade {
    border-color: rgba(255, 215, 110, 0.45);
    box-shadow: 0 0 14px rgba(255, 215, 110, 0.15);
}
.account-upgrade h3 { color: #ffd76e; }
.account-upgrade p { line-height: 1.85; margin-bottom: 14px; }
.account-upgrade strong { color: #ffd76e; }
.account-next-features {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px;
}
.account-next-chip {
    background: rgba(255, 215, 110, 0.15);
    border: 1px solid rgba(255, 215, 110, 0.45);
    color: #ffd76e; padding: 4px 11px;
    border-radius: 9px; font-size: 0.82em;
}
.account-feature-grid {
    display: grid; gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 14px;
}
.account-feature-item {
    display: flex; align-items: center; gap: 8px;
    background: rgba(40, 30, 60, 0.4);
    border: 1px solid rgba(255, 215, 110, 0.18);
    border-radius: 8px; padding: 8px 12px;
    color: #f1eed8; font-size: 0.9em;
}
.account-feature-check { color: #6bcf7f; font-weight: 700; }

/* === Admin: アウトリーチ生成結果 === */
.outreach-item {
    background: rgba(20, 12, 8, 0.6);
    border: 1px solid rgba(255, 215, 110, 0.2);
    border-radius: 8px; padding: 12px 14px; margin-bottom: 12px;
    color: #f1eed8;
}
.outreach-head {
    display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
    font-size: 0.92em; margin-bottom: 6px;
}
.outreach-head code {
    background: rgba(255, 215, 110, 0.12);
    padding: 1px 6px; border-radius: 4px; font-size: 0.92em;
}
.outreach-subject {
    color: #ffd76e; font-size: 0.92em; margin-bottom: 6px;
}
.outreach-body {
    width: 100%; height: 220px;
    font-family: monospace; font-size: 0.82em;
    background: #1c1610; color: #e8e0d0;
    padding: 10px; border-radius: 6px;
    border: 1px solid rgba(255, 215, 110, 0.2);
}

/* 命式トップ運勢スコアのアクション欄 */
.fscore-action {
    font-size: 0.78em; color: #f1eed8; line-height: 1.55; margin-top: 6px;
    padding: 6px 8px; border-left: 2px solid rgba(255, 215, 110, 0.5);
    background: rgba(255, 215, 110, 0.06); border-radius: 0 4px 4px 0;
    text-align: left;
}

.lifebio-reset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.lifebio-reset-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    color: #f1eed8;
}

.lifebio-reset-future { border-color: rgba(255, 215, 110, 0.6); }
.lifebio-reset-past { opacity: 0.6; }
.lifebio-reset-age { font-size: 1.3em; font-weight: 700; color: #ffd76e; }
.lifebio-reset-date { font-size: 0.95em; color: #fff; margin: 3px 0; }
.lifebio-reset-state { font-size: 0.8em; color: #aaa099; }

@media (max-width: 600px) {
    .lifebio-grid { grid-template-columns: 1fr; }
}

/* ===== タロット × カバラ (/tarot-kabbalah) ===== */

.tk-section {
    max-width: 1080px;
    margin: 28px auto;
    padding: 0 16px;
}

/* 3枚カード */

.tk-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.tk-card {
    background: linear-gradient(165deg, rgba(60, 40, 90, 0.65), rgba(30, 20, 50, 0.65));
    border: 2px solid rgba(255, 215, 110, 0.4);
    border-radius: 12px;
    padding: 16px;
    color: #f1eed8;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tk-card.tk-reversed {
    background: linear-gradient(345deg, rgba(60, 40, 90, 0.65), rgba(80, 30, 50, 0.55));
    border-color: rgba(255, 153, 102, 0.5);
}

.tk-card.tk-reversed::before {
    content: "⇧";
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.4em;
    color: rgba(255, 153, 102, 0.7);
    transform: rotate(180deg);
}

.tk-pos {
    color: #ffd76e;
    font-weight: 700;
    font-size: 0.92em;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.3);
    padding-bottom: 6px;
}

/* ライダー版カード画像 */

.tk-card-img-wrap {
    position: relative;
    margin: 8px auto 4px;
    width: 100%;
    max-width: 230px;
}

.tk-card-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 110, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    background: #f3ecd8;
}

.tk-card-img-rev {
    transform: rotate(180deg);
}

.tk-card-img-badge {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(180, 60, 50, 0.9);
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.05em;
}

.tk-credit {
    text-align: center;
    font-size: 0.78em;
    color: #968ea0;
    margin-top: 12px;
}

.tk-card-no {
    color: rgba(255, 215, 110, 0.55);
    font-size: 0.8em;
    margin-top: 4px;
}

.tk-card-name {
    font-size: 1.5em;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-top: 2px;
}

.tk-card-en {
    color: #f1cf6a;
    font-size: 0.82em;
    font-style: italic;
}

.tk-orient {
    color: #ffd76e;
    font-size: 0.9em;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(20, 15, 35, 0.55);
    display: inline-block;
    margin: 4px auto;
    border: 1px solid rgba(255, 215, 110, 0.3);
}

.tk-card.tk-reversed .tk-orient {
    color: #ffaa77;
    border-color: rgba(255, 153, 102, 0.4);
}

.tk-hebrew {
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: baseline;
    margin: 4px 0;
}

.tk-heb-char {
    font-size: 1.7em;
    font-weight: 700;
    color: #ffd76e;
    line-height: 1;
}

.tk-heb-name {
    font-size: 0.82em;
    color: #d8d8c8;
}

.tk-heb-val {
    font-size: 0.75em;
    color: #aaa099;
}

.tk-path {
    color: #f1cf6a;
    font-size: 0.78em;
    background: rgba(20, 15, 35, 0.4);
    padding: 4px 8px;
    border-radius: 6px;
}

.tk-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.tk-kw-chip {
    background: rgba(255, 215, 110, 0.15);
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.78em;
    border: 1px solid rgba(255, 215, 110, 0.3);
}

.tk-meaning {
    line-height: 1.55;
    font-size: 0.88em;
    color: #d8d8c8;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 215, 110, 0.18);
    text-align: left;
}

/* 生命の樹 SVG */

.tk-tree-wrap {
    max-width: 520px;
    margin: 0 auto;
    background: radial-gradient(ellipse at center, rgba(20, 15, 35, 0.85) 0%, rgba(10, 8, 25, 0.95) 80%);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 12px;
    padding: 24px;
}

.tk-tree {
    width: 100%;
    height: auto;
    display: block;
}

.tk-sep {
    fill: rgba(40, 30, 70, 0.85);
    stroke: rgba(241, 207, 106, 0.5);
    stroke-width: 0.4;
}

.tk-sep-active {
    fill: #ffd76e;
    stroke: #ffeec0;
    stroke-width: 0.6;
    filter: drop-shadow(0 0 2px rgba(255, 215, 110, 0.8));
}

.tk-sep-no {
    font-family: "Meiryo", sans-serif;
    font-size: 4px;
    fill: #fff;
    font-weight: 700;
    text-anchor: middle;
}

.tk-sep-active + .tk-sep-no { fill: #2a1a1a; }

.tk-sep-name {
    font-family: "Meiryo", sans-serif;
    font-size: 2.5px;
    fill: rgba(241, 207, 106, 0.85);
    text-anchor: middle;
}

.tk-path-active {
    stroke: rgba(255, 215, 110, 0.75);
    fill: none;
    filter: drop-shadow(0 0 1px rgba(255, 215, 110, 0.9));
}

/* 生命の樹 凡例 */

.tk-tree-legend {
    margin-top: 12px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(20, 15, 35, 0.45);
    padding: 10px 16px;
    border-radius: 8px;
    color: #f1eed8;
}

.tk-leg-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
    font-size: 0.92em;
}

.tk-leg-sample {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.tk-leg-active-sep {
    border-radius: 50%;
    background: #ffd76e;
    box-shadow: 0 0 4px rgba(255, 215, 110, 0.6);
}

.tk-leg-active-path {
    height: 3px;
    margin-top: 6px;
    background: rgba(255, 215, 110, 0.75);
    border-radius: 2px;
}

/* ゲマトリア詳細 */

.tk-gema-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 10px;
    padding: 18px 22px;
    color: #f1eed8;
}

.tk-gema-input {
    margin-bottom: 8px;
    color: #d8d8c8;
}

.tk-gema-input strong { color: #ffd76e; }

.tk-gema-letters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 10px 0;
    background: rgba(20, 15, 35, 0.4);
    padding: 8px;
    border-radius: 6px;
}

.tk-gema-cell {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 38px;
    padding: 4px 6px;
    background: rgba(255, 215, 110, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 110, 0.2);
}

.tk-gema-latin {
    color: #f1cf6a;
    font-size: 0.85em;
    font-weight: 700;
}

.tk-gema-heb {
    color: #ffffff;
    font-size: 1.15em;
    font-weight: 700;
    line-height: 1;
    margin: 2px 0;
}

.tk-gema-val {
    color: #aaa099;
    font-size: 0.72em;
}

.tk-gema-sum {
    margin: 12px 0 4px;
    color: #f1eed8;
}

.tk-gema-sum strong {
    color: #ffd76e;
    font-size: 1.15em;
    padding: 1px 8px;
    background: rgba(20, 15, 35, 0.55);
    border-radius: 8px;
    margin: 0 4px;
}

.tk-gema-master {
    color: #ffaa77;
    font-weight: 700;
    padding: 1px 8px;
    border: 1px solid rgba(255, 153, 102, 0.5);
    border-radius: 10px;
    margin-left: 6px;
    font-size: 0.9em;
}

.tk-gema-sep {
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(255, 215, 110, 0.1);
    border-left: 3px solid rgba(255, 215, 110, 0.5);
    border-radius: 4px;
}

.tk-gema-sep strong { color: #ffd76e; }

.tk-gema-expl {
    line-height: 1.7;
    color: #d8d8c8;
}

@media (max-width: 720px) {
    .tk-cards-grid { grid-template-columns: 1fr; }
}

/* ===== 易経 64卦 (/yi-jing) ===== */

.yj-form-card { background: linear-gradient(165deg, rgba(20,15,30,0.7), rgba(35,25,45,0.6)); }

.yj-intro-card { border-color: rgba(255, 215, 110, 0.18); }

.yj-coin {
    display: inline-block;
    margin: 0 3px;
    padding: 2px 8px;
    border-radius: 50%;
    background: rgba(255, 215, 110, 0.15);
    color: #ffd76e;
    font-weight: 700;
    font-family: "Consolas", monospace;
}

.yj-section {
    max-width: 1080px;
    margin: 28px auto;
    padding: 0 16px;
}

/* 卦カードペア */

.yj-hexagram-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.yj-hexagram-pair:has(> :only-child) {
    grid-template-columns: minmax(0, 460px);
    justify-content: center;
}

.yj-hexagram-card {
    background:
        linear-gradient(180deg, rgba(25, 22, 35, 0.95) 0%, rgba(15, 13, 25, 0.95) 100%);
    border: 1px solid rgba(255, 215, 110, 0.3);
    border-radius: 14px;
    padding: 24px;
    color: #f1eed8;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.yj-hexagram-card.yj-transformed {
    background: linear-gradient(180deg, rgba(35, 28, 22, 0.92) 0%, rgba(20, 16, 12, 0.95) 100%);
    border-color: rgba(255, 175, 80, 0.4);
}

.yj-hex-label {
    color: #ffd76e;
    font-weight: 700;
    font-size: 0.95em;
    letter-spacing: 0.15em;
    padding: 2px 12px;
    border-radius: 12px;
    background: rgba(20, 15, 35, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.35);
    display: inline-block;
    align-self: center;
}

.yj-transformed .yj-hex-label { color: #ffaa66; border-color: rgba(255, 175, 80, 0.4); }

.yj-hex-no {
    color: rgba(255, 215, 110, 0.55);
    font-size: 0.85em;
    font-family: "Shippori Mincho", "Times New Roman", serif;
    letter-spacing: 0.2em;
}

.yj-hex-name {
    font-size: 2.2em;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    font-family: "Shippori Mincho", "ＭＳ 明朝", serif;
    letter-spacing: 0.08em;
}

.yj-hex-yomi {
    color: rgba(255, 215, 110, 0.7);
    font-size: 0.88em;
    margin-top: -4px;
    font-style: italic;
}

/* 卦図SVG */

.yj-hex-svg {
    width: 200px;
    height: auto;
    margin: 10px auto;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    padding: 6px;
    border: 1px solid rgba(255, 215, 110, 0.18);
}

.yj-line-yang { stroke: #ffd76e; }
.yj-line-yin  { stroke: #d4b34a; }

.yj-line-changing {
    stroke: #ff8855 !important;
    filter: drop-shadow(0 0 3px rgba(255, 153, 102, 0.8));
}

.yj-changing-mark {
    fill: #ff8855;
    filter: drop-shadow(0 0 2px rgba(255, 153, 102, 0.9));
}

.yj-hex-trigrams {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #d8d8c8;
    font-size: 0.9em;
}

.yj-hex-tri {
    background: rgba(20, 15, 35, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    text-align: left;
}

.yj-hex-summary {
    line-height: 1.75;
    color: #f1eed8;
    background: rgba(20, 15, 35, 0.4);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 215, 110, 0.5);
    text-align: left;
    font-size: 0.92em;
}

.yj-hex-keywords {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.yj-kw-chip {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255, 215, 110, 0.13);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85em;
    border: 1px solid rgba(255, 215, 110, 0.3);
}

/* 変爻情報 */

.yj-changing-info {
    margin-top: 20px;
    background: rgba(40, 25, 20, 0.55);
    border: 1px solid rgba(255, 175, 80, 0.35);
    border-left: 4px solid #ff8855;
    padding: 14px 20px;
    border-radius: 8px;
    color: #f1eed8;
    line-height: 1.7;
}

.yj-changing-info strong { color: #ff8855; margin-right: 6px; }

.yj-changing-note {
    margin-top: 6px;
    color: #d8d8c8;
    font-size: 0.92em;
}

.yj-changing-note em { color: #ffd76e; font-style: normal; }

/* AI鑑定（易者風） */

.yj-reading {
    background: linear-gradient(165deg, rgba(20, 15, 25, 0.7), rgba(35, 28, 22, 0.6));
    border-color: rgba(255, 215, 110, 0.3);
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "ＭＳ 明朝", serif;
    line-height: 1.95;
}

@media (max-width: 720px) {
    .yj-hexagram-pair { grid-template-columns: 1fr; }
    .yj-hex-name { font-size: 1.8em; }
    .yj-hex-svg { width: 160px; }
}

/* ===== チベット密教 MO占い (/tibetan-mo) ===== */

.tm-form-card { background: linear-gradient(165deg, rgba(50, 25, 18, 0.7), rgba(35, 20, 15, 0.65)); }

.tm-intro-card {
    background: linear-gradient(135deg, rgba(70, 30, 20, 0.45), rgba(40, 25, 18, 0.4));
    border-color: rgba(255, 175, 80, 0.3);
}

.tm-syllable-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    color: #f1eed8;
}

.tm-syllable-table th, .tm-syllable-table td {
    padding: 6px 10px;
    border-bottom: 1px dashed rgba(255, 175, 80, 0.2);
    text-align: left;
    font-size: 0.92em;
}

.tm-syllable-table th {
    background: rgba(70, 30, 20, 0.4);
    color: #ffaa66;
}

.tm-tibetan-small {
    font-family: "Noto Sans Tibetan", "Microsoft Himalaya", "Jomolhari", serif;
    font-size: 1.25em;
    color: #ffd76e;
}

.tm-mantra-line {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 1.1em;
    color: #ffd76e;
    letter-spacing: 0.1em;
}

.tm-mantra-syl {
    color: #ffaa66;
    font-weight: 600;
    margin: 0 2px;
}

/* セクション */

.tm-section {
    max-width: 1080px;
    margin: 28px auto;
    padding: 0 16px;
}

/* 3つのサイコロカード */

.tm-rolls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tm-roll-card {
    background:
        linear-gradient(180deg, rgba(55, 25, 18, 0.85), rgba(35, 18, 12, 0.9));
    border: 2px solid rgba(255, 175, 80, 0.4);
    border-radius: 14px;
    padding: 20px 18px;
    text-align: center;
    color: #f1eed8;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tm-pos-0 { border-color: rgba(255, 140, 80, 0.55); }   /* 身 = 火/橙 */
.tm-pos-1 { border-color: rgba(255, 215, 110, 0.55); }  /* 語 = 金/黄 */
.tm-pos-2 { border-color: rgba(180, 140, 220, 0.55); }  /* 意 = 紫/青 */

.tm-roll-pos {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tm-pos-name {
    color: #ffd76e;
    font-weight: 700;
    font-size: 1.2em;
    font-family: "Shippori Mincho", "ＭＳ 明朝", serif;
}

.tm-pos-meaning {
    color: rgba(255, 175, 80, 0.85);
    font-size: 0.82em;
}

/* 身口意 詰まり診断 */

.tm-gate-body { border-color: rgba(255, 140, 80, 0.55); }    /* 身 = 火/橙 */
.tm-gate-speech { border-color: rgba(255, 215, 110, 0.55); } /* 口 = 金/黄 */
.tm-gate-mind { border-color: rgba(180, 140, 220, 0.55); }  /* 意 = 紫 */

.tm-gate-primary {
    border-width: 3px;
    box-shadow: 0 0 18px rgba(255, 175, 80, 0.35);
}

.tm-primary-star {
    font-size: 0.62em;
    color: #ffcf6a;
    background: rgba(180, 90, 40, 0.5);
    padding: 1px 6px;
    border-radius: 8px;
    vertical-align: middle;
}

.tm-primary-banner {
    background: linear-gradient(180deg, rgba(70, 35, 22, 0.85), rgba(45, 22, 14, 0.9));
    border: 1px solid rgba(255, 175, 80, 0.5);
    border-radius: 12px;
    padding: 16px 18px;
    text-align: center;
}

.tm-primary-tag {
    display: inline-block;
    font-size: 0.78em;
    color: #2a160c;
    background: #ffcf6a;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 12px;
    letter-spacing: 0.06em;
}

.tm-primary-gate {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: #ffd76e;
    font-family: "Shippori Mincho", "ＭＳ 明朝", serif;
    margin: 8px 0 6px;
}

.tm-primary-summary {
    color: #f1eed8;
    font-size: 0.95em;
    line-height: 1.75;
    margin: 0;
}

.tm-score-wrap { margin: 2px 0 4px; }

.tm-score-bar-track {
    height: 14px;
    background: rgba(20, 12, 8, 0.6);
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 175, 80, 0.25);
}

.tm-score-bar-fill {
    height: 100%;
    border-radius: 7px;
}

.tm-level-強 { background: linear-gradient(90deg, #c0392b, #e8704a); }
.tm-level-中 { background: linear-gradient(90deg, #c98a2a, #ffcf6a); }
.tm-level-通 { background: linear-gradient(90deg, #4a8c5a, #7fc98a); }

.tm-score-num { font-size: 0.88em; color: #f1eed8; margin-top: 5px; }
.tm-score-num strong { color: #ffd76e; font-size: 1.15em; }
.tm-level-label { color: #c9b89a; }

.tm-gate-desc { font-size: 0.84em; color: #d8cab0; line-height: 1.6; }
.tm-gate-clog { font-size: 0.86em; color: #ffb9a0; line-height: 1.6; }
.tm-gate-release { font-size: 0.9em; color: #ffd76e; line-height: 1.6; }

.tm-syl-label {
    font-size: 0.72em;
    color: rgba(255, 175, 80, 0.8);
    letter-spacing: 0.05em;
}

/* サイコロ */

.tm-die {
    width: 100px;
    height: 100px;
    margin: 4px auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}

.tm-die-body {
    fill: linear-gradient(135deg, #f0e6d2, #d8c89a);
    fill: #f5ecd0;
    stroke: rgba(120, 70, 30, 0.5);
    stroke-width: 1.5;
}

.tm-die-pip {
    fill: #6e2d18;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.3));
}

/* 真言音節 */

.tm-syllable-block {
    background: rgba(20, 12, 8, 0.65);
    border-radius: 12px;
    padding: 12px 8px;
    border: 1px solid rgba(255, 175, 80, 0.3);
}

.tm-tibetan {
    font-family: "Noto Sans Tibetan", "Microsoft Himalaya", "Jomolhari", serif;
    font-size: 3em;
    color: #ffd76e;
    line-height: 1.1;
    text-shadow: 0 0 8px rgba(255, 215, 110, 0.4);
}

.tm-syl-jp {
    font-size: 1.4em;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2px;
}

.tm-syl-romaji {
    color: #f1cf6a;
    font-size: 0.88em;
    font-style: italic;
}

.tm-syl-meaning {
    color: #ffd76e;
    font-weight: 600;
    font-size: 0.95em;
}

.tm-syl-expanded {
    color: #d8d8c8;
    font-size: 0.85em;
    line-height: 1.6;
}

.tm-syl-guidance {
    background: rgba(255, 175, 80, 0.12);
    border-left: 3px solid rgba(255, 175, 80, 0.6);
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.88em;
    color: #ffeec0;
    line-height: 1.55;
    text-align: left;
    margin-top: 4px;
}

.tm-pos-note {
    margin-top: 18px;
    padding: 12px 18px;
    background: rgba(40, 22, 15, 0.55);
    border-left: 4px solid rgba(255, 175, 80, 0.5);
    border-radius: 8px;
    color: #d8d8c8;
    line-height: 1.7;
    font-size: 0.92em;
}

.tm-pos-note strong { color: #ffd76e; }

/* AI鑑定（チベット風） */

.tm-reading {
    background: linear-gradient(165deg, rgba(45, 22, 15, 0.6), rgba(30, 18, 12, 0.55));
    border-color: rgba(255, 175, 80, 0.35);
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    line-height: 1.95;
}

@media (max-width: 720px) {
    .tm-rolls-grid { grid-template-columns: 1fr; }
    .tm-tibetan { font-size: 2.4em; }
}

/* ===== 天命館 統合ダッシュボード (/dashboard) ===== */

.dash-hero {
    background: linear-gradient(135deg, rgba(40, 30, 80, 0.6), rgba(60, 40, 30, 0.5));
}

.dash-form-card { background: linear-gradient(165deg, rgba(40, 30, 70, 0.7), rgba(30, 25, 50, 0.65)); }

.dash-required {
    color: #ff9999;
    font-size: 0.75em;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(204, 102, 102, 0.18);
    border: 1px solid rgba(204, 102, 102, 0.4);
    margin-left: 6px;
}

.dash-optional {
    color: #aaa099;
    font-size: 0.75em;
    margin-left: 6px;
}

/* 時刻任意化まわりの注釈 */
.dash-field-note {
    font-size: 0.78rem;
    color: #aaa099;
    line-height: 1.6;
    margin: 6px 0 0;
}

.dash-hour-notice {
    max-width: 1280px;
    margin: 12px auto 0;
    padding: 10px 14px;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #f1e6c8;
    background: rgba(120, 95, 50, 0.28);
    border: 1px solid rgba(255, 215, 110, 0.4);
    border-radius: 10px;
    text-align: center;
}

.dash-pillar-note {
    font-size: 0.75rem;
    color: #aaa099;
    margin: 4px 0 0;
}

.dash-score-note {
    font-size: 0.78rem;
    color: #aaa099;
    line-height: 1.6;
    margin: 0 0 4px;
}

.dash-tile-locked {
    opacity: 0.72;
    border-style: dashed;
}

.dash-tile-locked-note {
    font-size: 0.85rem;
    color: #c9c2b0;
    line-height: 1.7;
}

.dash-result-header {
    background: linear-gradient(180deg, rgba(50, 35, 80, 0.7), rgba(30, 22, 50, 0.55));
    padding: 30px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 110, 0.35);
}

/* ダッシュボード タイルグリッド */

.dash-grid {
    max-width: 1280px;
    margin: 28px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.dash-tile {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 12px;
    padding: 16px 18px;
    color: #f1eed8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-tile-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.25);
}

.dash-tile-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd76e, #d4b34a);
    color: #2a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: "Shippori Mincho", serif;
    flex-shrink: 0;
}

.dash-tile-title {
    flex: 1;
    color: #ffd76e;
    font-weight: 700;
    font-size: 1.02em;
}

/* 詳細ボタンをフォーム化してもレイアウトを保つ（form を box 化しない） */
.dash-more-form { display: contents; }

.dash-more {
    color: #f1cf6a;
    text-decoration: none;
    font-size: 0.82em;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(20, 15, 35, 0.45);
    border: 1px solid rgba(255, 215, 110, 0.2);
    cursor: pointer;
    font-family: inherit;
    line-height: 1.5;
}

.dash-more:hover { background: rgba(255, 215, 110, 0.15); }

/* 命式ミニ */

.dash-meishiki-nikkan {
    font-size: 1.05em;
    margin-bottom: 8px;
}

.dash-meishiki-nikkan strong {
    color: #ffd76e;
    font-size: 1.3em;
}

.dash-tag {
    display: inline-block;
    padding: 1px 8px;
    margin-left: 4px;
    background: rgba(255, 215, 110, 0.12);
    border-radius: 8px;
    font-size: 0.82em;
    border: 1px solid rgba(255, 215, 110, 0.25);
}

.dash-pillar-mini {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
    margin: 6px 0;
}

.dash-pillar-mini td {
    padding: 3px 8px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.12);
}

.dash-pillar-mini td:first-child { color: #f1cf6a; width: 40px; }
.dash-pillar-tsu { color: #d8d8c8; font-size: 0.92em; }

.dash-gogyo-bars-mini {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-gogyo-row-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-gogyo-name-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 0.85em;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.dash-gogyo-bar-track-mini {
    flex: 1;
    height: 8px;
    background: rgba(20, 15, 35, 0.5);
    border-radius: 4px;
    overflow: hidden;
}

.dash-gogyo-bar-fill-mini {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ffd76e, #d4b34a);
}

.dash-gogyo-count-mini {
    width: 20px;
    text-align: right;
    color: #ffd76e;
    font-weight: 600;
    font-size: 0.85em;
}

/* スコア */

.dash-scores-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.dash-score-cell {
    background: rgba(20, 15, 35, 0.5);
    border: 1px solid rgba(255, 215, 110, 0.2);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
}

.dash-score-cell.seimei-judge-大吉 { border-color: #ffd76e; }
.dash-score-cell.seimei-judge-吉 { border-color: #d4b34a; }
.dash-score-cell.seimei-judge-中 { border-color: rgba(241, 207, 106, 0.3); }
.dash-score-cell.seimei-judge-注意 { border-color: rgba(204, 102, 102, 0.5); }
.dash-score-cell.seimei-judge-凶 { border-color: #cc4444; }

.dash-score-name { font-size: 0.85em; color: #f1cf6a; }
.dash-score-num { font-size: 1.7em; font-weight: 700; color: #fff; line-height: 1.1; }
.dash-tile-awaken { border-left: 3px solid #ff8e5a; }
.dash-tile-awaken .dash-score-num { font-size: 1.2em; }
.dash-awk-arrow { color: #ff8e5a; font-size: 0.7em; margin: 0 3px; vertical-align: middle; }
.dash-score-level { font-size: 0.78em; color: #d8d8c8; }

.dash-score-total {
    margin-top: 8px;
    text-align: center;
    color: #f1eed8;
    font-size: 0.92em;
    padding: 6px;
    background: rgba(20, 15, 35, 0.4);
    border-radius: 6px;
}

.dash-score-total strong { color: #ffd76e; font-size: 1.3em; }

/* 大運 */

.dash-daiun-card {
    background: rgba(20, 15, 35, 0.4);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.dash-daiun-age { color: #ffd76e; font-weight: 700; font-size: 1.05em; }

.dash-daiun-kanshi {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 6px 0;
}

.dash-daiun-kanshi span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.15em;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
}

.dash-daiun-info { color: #d8d8c8; font-size: 0.9em; }
.dash-daiun-theme { color: #ffd76e; font-size: 0.95em; margin-top: 6px; }
.dash-daiun-action { color: #d8d8c8; font-size: 0.88em; margin-top: 4px; }

/* バイオ */

.dash-bio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dash-bio-cell {
    background: rgba(20, 15, 35, 0.5);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    border: 1.5px solid;
}

.dash-bio-cell.bio-cycle-p { border-color: rgba(255, 107, 107, 0.5); }
.dash-bio-cell.bio-cycle-e { border-color: rgba(107, 207, 127, 0.5); }
.dash-bio-cell.bio-cycle-i { border-color: rgba(94, 154, 255, 0.5); }

.dash-bio-label { display: block; font-size: 0.82em; color: #f1cf6a; }
.dash-bio-val {
    display: block;
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    font-family: "Consolas", monospace;
    margin: 2px 0;
}
.dash-bio-phase { display: block; font-size: 0.78em; color: #d8d8c8; }

/* 命式日運(今日) */

.dash-daily-info { color: #f1eed8; }

.dash-daily-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0;
    font-size: 0.95em;
}

.dash-daily-label { color: #f1cf6a; font-size: 0.85em; min-width: 76px; }

.dash-daily-kanshi {
    font-size: 1.25em;
    font-weight: 700;
    font-family: "Consolas", monospace;
}

.dash-daily-sub { color: #d8d8c8; font-size: 0.82em; }

.dash-daily-lucky {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 215, 110, 0.18);
}

.dash-daily-lucky-item { color: #ffd76e; font-size: 0.92em; }

/* 流年 */

.dash-yf-summary { color: #f1eed8; }
.dash-yf-summary strong { color: #ffd76e; }
.dash-yf-meta { color: #d8d8c8; font-size: 0.92em; margin-top: 6px; }
.dash-yf-meta strong { color: #ffd76e; }

/* 紫微 */

.dash-ziwei-info { color: #f1eed8; font-size: 0.95em; line-height: 1.7; }
.dash-ziwei-info strong { color: #ffd76e; }
.dash-ziwei-stars { margin-top: 6px; }

.dash-star-chip {
    display: inline-block;
    background: rgba(180, 120, 220, 0.18);
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.85em;
    margin: 2px;
    border: 1px solid rgba(180, 120, 220, 0.35);
}

/* 適職 */

.dash-career-top {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.dash-tsu-chip {
    background: rgba(255, 215, 110, 0.15);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.88em;
    border: 1px solid rgba(255, 215, 110, 0.35);
}

.dash-career-industries { font-size: 0.88em; color: #d8d8c8; }

.dash-ind-chip {
    display: inline-block;
    background: rgba(76, 175, 108, 0.15);
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.82em;
    margin: 2px;
    border: 1px solid rgba(76, 175, 108, 0.3);
}

/* 姓名 */

.dash-seimei-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.dash-seimei-cell {
    background: rgba(20, 15, 35, 0.5);
    border: 1px solid rgba(255, 215, 110, 0.2);
    border-radius: 6px;
    padding: 6px 2px;
    text-align: center;
}

.dash-seimei-cell.seimei-judge-大吉 { border-color: #ffd76e; }
.dash-seimei-cell.seimei-judge-凶 { border-color: rgba(204, 102, 102, 0.5); }
.dash-seimei-cell.seimei-judge-大凶 { border-color: #cc4444; }

.dash-seimei-name { display: block; font-size: 0.72em; color: #f1cf6a; }
.dash-seimei-num { display: block; font-size: 1.2em; font-weight: 700; color: #fff; }
.dash-seimei-judge { display: block; font-size: 0.7em; color: #d8d8c8; }

.dash-seimei-overall {
    margin-top: 8px;
    text-align: center;
    color: #f1eed8;
    font-size: 0.92em;
    padding: 6px;
    background: rgba(20, 15, 35, 0.4);
    border-radius: 6px;
}

/* 統合シンクロ */

.dash-integ-judge {
    text-align: center;
    color: #ffd76e;
    font-size: 1.6em;
    font-weight: 700;
    padding: 8px;
    background: rgba(20, 15, 35, 0.45);
    border-radius: 8px;
}

.dash-integ-meta {
    margin-top: 8px;
    color: #d8d8c8;
    font-size: 0.92em;
    text-align: center;
}

/* ハブ（個別機能リンク集） */

.dash-hub {
    max-width: 1080px;
    margin: 28px auto;
    padding: 0 16px;
}

.dash-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

/* ハブのボタンをフォーム化してもグリッドを保つ */
.dash-hub-form { display: contents; }

.dash-hub-link {
    display: block;
    width: 100%;
    background: rgba(40, 30, 60, 0.6);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    color: #f1eed8;
    text-decoration: none;
    text-align: center;
    font-size: 0.92em;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.dash-hub-link:hover {
    background: rgba(255, 215, 110, 0.15);
    border-color: #ffd76e;
    color: #fff;
    transform: translateY(-2px);
}

.dash-hub-pro {
    background: linear-gradient(135deg, rgba(80, 50, 30, 0.55), rgba(40, 30, 60, 0.55));
    border-color: rgba(255, 215, 110, 0.5);
    color: #ffd76e;
    font-weight: 600;
}

.dash-hub-pro::after {
    content: " PRO";
    font-size: 0.7em;
    color: #d4b34a;
    margin-left: 2px;
}

@media (max-width: 600px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dash-seimei-grid { grid-template-columns: repeat(3, 1fr); }
    .dash-bio-grid { grid-template-columns: 1fr; }
}

.dash-promo-section {
    max-width: 720px;
    margin: 20px auto 0;
    padding: 0 16px;
}

.dash-promo-link {
    display: block;
    background: linear-gradient(135deg, rgba(80, 50, 120, 0.7), rgba(50, 30, 80, 0.7));
    border: 1.5px solid rgba(255, 215, 110, 0.55);
    border-radius: 12px;
    padding: 16px 22px;
    text-align: center;
    text-decoration: none;
    color: #ffd76e;
    font-size: 1em;
    transition: all 0.25s;
    box-shadow: 0 0 16px rgba(255, 215, 110, 0.18);
}

.dash-promo-link:hover {
    background: linear-gradient(135deg, rgba(100, 60, 140, 0.85), rgba(60, 40, 90, 0.85));
    box-shadow: 0 0 22px rgba(255, 215, 110, 0.35);
    transform: translateY(-1px);
}

.dash-promo-link strong {
    color: #fff;
    font-size: 1.1em;
}

/* ===== 開運カレンダー (/calendar) ===== */

.cal-section-label {
    color: #ffd76e;
    margin-top: 20px;
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.3);
    padding-bottom: 4px;
}

.cal-section {
    max-width: 1080px;
    margin: 28px auto;
    padding: 0 16px;
}

.cal-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(20, 15, 35, 0.4);
    border-radius: 8px;
    color: #f1eed8;
}

.cal-summary strong { color: #ffd76e; margin-right: 6px; }

.cal-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    margin: 2px 3px;
    font-weight: 600;
}

.cal-chip-good {
    background: rgba(255, 215, 110, 0.22);
    color: #ffd76e;
    border: 1px solid #ffd76e;
}

.cal-chip-bad {
    background: rgba(204, 102, 102, 0.18);
    color: #ff9999;
    border: 1px solid rgba(204, 102, 102, 0.55);
}

/* カレンダーグリッド */

.cal-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(20, 15, 35, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.cal-th {
    background: rgba(60, 40, 80, 0.55);
    color: #ffd76e;
    padding: 8px 4px;
    font-size: 0.92em;
    border: 1px solid rgba(255, 215, 110, 0.18);
    text-align: center;
}

.cal-th.cal-sat { color: #6e9acf; }
.cal-th.cal-sun { color: #cf6e6e; }

.cal-cell {
    background: rgba(40, 30, 60, 0.5);
    padding: 6px 4px;
    border: 1px solid rgba(255, 215, 110, 0.15);
    vertical-align: top;
    width: 14.28%;
    min-height: 80px;
    height: 80px;
    text-align: center;
}

.cal-cell-out {
    opacity: 0.32;
    background: rgba(20, 15, 35, 0.35);
}

.cal-cell-today {
    border: 2px solid #ffd76e !important;
    box-shadow: inset 0 0 8px rgba(255, 215, 110, 0.25);
}

.cal-level-大吉 {
    background: linear-gradient(180deg, rgba(255, 215, 110, 0.22), rgba(40, 30, 60, 0.5));
    border-color: rgba(255, 215, 110, 0.45);
}

.cal-level-吉 {
    background: linear-gradient(180deg, rgba(212, 179, 74, 0.16), rgba(40, 30, 60, 0.5));
}

.cal-level-中 {
    /* default */
}

.cal-level-注意 {
    background: linear-gradient(180deg, rgba(204, 102, 102, 0.12), rgba(40, 30, 60, 0.5));
}

.cal-level-凶 {
    background: linear-gradient(180deg, rgba(204, 68, 68, 0.22), rgba(40, 30, 60, 0.5));
}

.cal-cell-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.cal-cell-day {
    font-weight: 700;
    color: #f1eed8;
    font-size: 1.05em;
}

.cal-cell-today-mark {
    font-size: 0.7em;
    color: #2a1a1a;
    background: #ffd76e;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 700;
}

.cal-cell-score {
    font-size: 1.05em;
    font-weight: 700;
    color: #ffd76e;
    line-height: 1.2;
}

.cal-level-大吉 .cal-cell-score { color: #ffd76e; }
.cal-level-吉   .cal-cell-score { color: #f1cf6a; }
.cal-level-注意 .cal-cell-score { color: #ff9999; }
.cal-level-凶   .cal-cell-score { color: #ff6666; }

.cal-cell-kanshi {
    font-size: 0.78em;
    color: #d8d8c8;
    line-height: 1.1;
}

.cal-cell-tsu {
    font-size: 0.7em;
    color: #aaa099;
    line-height: 1.1;
}

.cal-cell-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 2px auto 0;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

/* 詳細表 */

.cal-details {
    margin-top: 18px;
    background: rgba(20, 15, 35, 0.4);
    border-radius: 8px;
    padding: 10px 16px;
}

.cal-details summary {
    cursor: pointer;
    color: #f1cf6a;
    font-weight: 600;
    padding: 4px 0;
}

.cal-detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    color: #f1eed8;
    font-size: 0.88em;
}

.cal-detail-table th, .cal-detail-table td {
    padding: 6px 8px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.15);
    text-align: left;
    vertical-align: middle;
}

.cal-detail-table th {
    background: rgba(60, 40, 80, 0.5);
    color: #ffd76e;
    text-align: center;
}

.cal-detail-table td:nth-child(1),
.cal-detail-table td:nth-child(4) {
    text-align: center;
}

.cal-row.cal-level-大吉 td:first-child { color: #ffd76e; }
.cal-row.cal-level-注意 td:first-child { color: #ffaa99; }
.cal-row.cal-level-凶 td:first-child   { color: #ff6666; }

.cal-row td small { color: #aaa099; margin-left: 4px; }

/* ナビ */

.cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.cal-nav-form { display: inline; }

.cal-nav .btn-back {
    background: rgba(40, 30, 60, 0.6);
    border: 1px solid rgba(255, 215, 110, 0.3);
    cursor: pointer;
}

@media (max-width: 720px) {
    .cal-cell { height: 70px; padding: 4px 2px; }
    .cal-cell-day { font-size: 0.92em; }
    .cal-cell-score { font-size: 0.92em; }
    .cal-cell-kanshi { font-size: 0.7em; }
    .cal-cell-tsu { display: none; }
    .cal-detail-table { font-size: 0.78em; }
}

@media (max-width: 480px) {
    .cal-cell { height: 56px; }
    .cal-cell-kanshi { display: none; }
}

/* ===== 健康運フォーカス (/health) ===== */

.hl-disclaimer {
    max-width: 920px;
    margin: 16px auto;
    padding: 14px 22px;
    background: rgba(204, 102, 102, 0.14);
    border: 1.5px solid rgba(204, 102, 102, 0.55);
    border-left: 5px solid #cc6666;
    border-radius: 8px;
    color: #ffcccc;
    line-height: 1.75;
}

.hl-disclaimer strong {
    display: block;
    color: #ff9999;
    font-size: 1.05em;
    margin-bottom: 4px;
}

.hl-disclaimer-top { margin-top: 0; }
.hl-disclaimer-result { margin: 16px auto; }
.hl-disclaimer-bottom {
    background: rgba(204, 102, 102, 0.08);
    border-left-width: 3px;
    font-size: 0.92em;
    margin-top: 24px;
}

.hl-section {
    max-width: 1080px;
    margin: 24px auto;
    padding: 0 16px;
}

.hl-base-card,
.hl-priority-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1.5px solid rgba(255, 215, 110, 0.3);
    border-radius: 12px;
    padding: 18px 22px;
    color: #f1eed8;
    line-height: 1.85;
}

.hl-priority-card {
    background: linear-gradient(135deg, rgba(80, 50, 30, 0.4), rgba(40, 30, 60, 0.55));
    border-color: rgba(255, 215, 110, 0.45);
    box-shadow: 0 0 12px rgba(255, 215, 110, 0.2);
}

/* 臓腑カード */

.hl-organs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.hl-organ-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1.5px solid rgba(255, 215, 110, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    color: #f1eed8;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hl-organ-card.hl-status-過剰 {
    border-color: rgba(255, 153, 102, 0.55);
    background: linear-gradient(165deg, rgba(70, 35, 25, 0.55), rgba(40, 30, 60, 0.55));
}

.hl-organ-card.hl-status-不足 {
    border-color: rgba(94, 154, 255, 0.5);
    background: linear-gradient(165deg, rgba(25, 35, 65, 0.55), rgba(40, 30, 60, 0.55));
    opacity: 0.96;
}

.hl-organ-card.hl-status-標準 {
    opacity: 0.85;
}

.hl-organ-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.2);
}

.hl-organ-elem {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.05em;
    border: 2px solid rgba(255, 255, 255, 0.18);
}

.hl-organ-name {
    flex: 1;
    color: #ffd76e;
    font-weight: 600;
}

.hl-organ-count { font-size: 0.82em; color: #aaa099; }

.hl-organ-status {
    font-size: 0.85em;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(20, 15, 35, 0.55);
    font-weight: 600;
}

.hl-status-過剰 .hl-organ-status { color: #ffaa77; border: 1px solid rgba(255, 153, 102, 0.5); }
.hl-status-不足 .hl-organ-status { color: #99bbff; border: 1px solid rgba(94, 154, 255, 0.5); }
.hl-status-標準 .hl-organ-status { color: #d8d8c8; border: 1px solid rgba(255, 215, 110, 0.3); }

.hl-organ-section {
    display: flex;
    gap: 10px;
    line-height: 1.6;
    font-size: 0.92em;
}

.hl-organ-label {
    color: #f1cf6a;
    font-weight: 600;
    min-width: 64px;
    flex-shrink: 0;
}

.hl-organ-text { color: #f1eed8; }

.hl-organ-meta {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 215, 110, 0.15);
    font-size: 0.82em;
    color: #aaa099;
    text-align: center;
}

/* フォーム側の五行配当表 */

.hl-attribute-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    color: #f1eed8;
}

.hl-attribute-table th, .hl-attribute-table td {
    padding: 6px 10px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.18);
    text-align: center;
    font-size: 0.92em;
}

.hl-attribute-table th {
    background: rgba(20, 15, 35, 0.55);
    color: #ffd76e;
}

.hl-attribute-table td:first-child {
    font-size: 1.15em;
    font-weight: 700;
}

@media (max-width: 600px) {
    .hl-organs-grid { grid-template-columns: 1fr; }
    .hl-organ-section { flex-direction: column; gap: 2px; }
    .hl-organ-label { min-width: auto; }
}

/* ===== 取引先相性（経営易学）(/business-compat) ===== */

/* 経営易学ブランド色: 紺 × 金 / フォーマル感 */

.bc-hero {
    background: linear-gradient(135deg, rgba(20, 30, 70, 0.7), rgba(40, 35, 25, 0.5));
}

.bc-brand-tag {
    display: inline-block;
    font-size: 0.6em;
    padding: 2px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2e3b6b, #1a2348);
    color: #ffd76e;
    border: 1px solid rgba(255, 215, 110, 0.4);
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.bc-form-card { background: linear-gradient(165deg, rgba(25, 30, 55, 0.75), rgba(20, 25, 45, 0.7)); }

.bc-intro-card {
    border-color: rgba(80, 100, 180, 0.35);
}

.bc-section-label {
    color: #99bbff;
    margin-top: 18px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(94, 154, 255, 0.3);
    font-size: 1em;
}

.bc-result-header {
    background: linear-gradient(180deg, rgba(25, 35, 65, 0.75), rgba(15, 20, 40, 0.7));
    padding: 28px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 110, 0.35);
}

.bc-section {
    max-width: 1080px;
    margin: 24px auto;
    padding: 0 16px;
}

/* 総合判定カード */

.bc-judgment-card {
    background: linear-gradient(165deg, rgba(25, 30, 60, 0.65), rgba(40, 30, 60, 0.5));
    border: 1.5px solid rgba(255, 215, 110, 0.3);
    border-radius: 14px;
    padding: 28px;
    text-align: center;
    color: #f1eed8;
}

.bc-score-tier-A {
    background: linear-gradient(165deg, rgba(80, 60, 30, 0.55), rgba(40, 30, 60, 0.55));
    border-color: #ffd76e;
    box-shadow: 0 0 18px rgba(255, 215, 110, 0.3);
}

.bc-score-tier-B { border-color: #d4b34a; }
.bc-score-tier-C { border-color: rgba(241, 207, 106, 0.4); }
.bc-score-tier-D {
    background: linear-gradient(165deg, rgba(60, 35, 25, 0.55), rgba(40, 30, 60, 0.55));
    border-color: rgba(204, 102, 102, 0.55);
}
.bc-score-tier-E {
    background: linear-gradient(165deg, rgba(80, 30, 30, 0.55), rgba(40, 30, 60, 0.55));
    border-color: #cc4444;
    box-shadow: 0 0 18px rgba(204, 68, 68, 0.2);
}

.bc-overall-num {
    font-size: 4em;
    font-weight: 700;
    color: #ffd76e;
    line-height: 1;
    font-family: "Consolas", monospace;
}

.bc-overall-suffix { font-size: 0.4em; color: #aaa099; margin-left: 4px; }

.bc-overall-tier {
    font-size: 1.5em;
    color: #ffd76e;
    padding: 6px 22px;
    border-radius: 22px;
    background: rgba(20, 15, 35, 0.55);
    display: inline-block;
    margin: 10px 0;
    border: 1.5px solid rgba(255, 215, 110, 0.4);
}

.bc-judgment-text {
    color: #f1eed8;
    line-height: 1.85;
    margin-top: 10px;
}

/* 3スコア */

.bc-scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.bc-score-cell {
    background: rgba(25, 30, 55, 0.7);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 12px;
    padding: 18px;
    color: #f1eed8;
    text-align: center;
}

.bc-score-name {
    color: #ffd76e;
    font-weight: 700;
    font-size: 1.05em;
    margin-bottom: 6px;
}

.bc-score-num {
    font-size: 2.4em;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-family: "Consolas", monospace;
    margin: 6px 0;
}

.bc-score-bar {
    width: 100%;
    height: 8px;
    background: rgba(20, 15, 35, 0.55);
    border-radius: 4px;
    overflow: hidden;
    margin: 6px 0;
}

.bc-score-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #5e9aff, #ffd76e);
    border-radius: 4px;
}

.bc-score-meta {
    color: #d8d8c8;
    font-size: 0.82em;
    line-height: 1.5;
}

/* 干支関係 */

.bc-relations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.bc-relation-cell {
    background: rgba(25, 30, 55, 0.6);
    border: 1.5px solid rgba(255, 215, 110, 0.2);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    color: #f1eed8;
}

.bc-rel-warn {
    border-color: rgba(204, 102, 102, 0.55);
    background: rgba(60, 30, 30, 0.55);
}

.bc-rel-good {
    border-color: #ffd76e;
    background: linear-gradient(165deg, rgba(80, 60, 30, 0.45), rgba(25, 30, 55, 0.6));
    box-shadow: 0 0 8px rgba(255, 215, 110, 0.25);
}

.bc-rel-ok { border-color: rgba(94, 154, 255, 0.35); }
.bc-rel-neutral { opacity: 0.7; }

.bc-rel-icon { font-size: 1.6em; line-height: 1; margin-bottom: 4px; }
.bc-rel-warn .bc-rel-icon { color: #ff9999; }
.bc-rel-good .bc-rel-icon { color: #ffd76e; }
.bc-rel-ok .bc-rel-icon { color: #6ec8a8; }
.bc-rel-neutral .bc-rel-icon { color: #aaa099; }

.bc-rel-name { font-weight: 700; color: #f1eed8; }
.bc-rel-status { font-size: 0.85em; color: #d8d8c8; margin-top: 2px; }

/* ポジ/ネガ要素 */

.bc-factors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.bc-pos-card, .bc-neg-card {
    border-radius: 10px;
    padding: 14px 18px;
    color: #f1eed8;
    line-height: 1.7;
}

.bc-pos-card {
    background: rgba(60, 90, 60, 0.25);
    border: 1px solid rgba(110, 200, 168, 0.4);
    border-left: 4px solid #6ec8a8;
}

.bc-pos-card h4 { color: #6ec8a8; margin: 0 0 8px; }

.bc-neg-card {
    background: rgba(80, 35, 35, 0.35);
    border: 1px solid rgba(204, 102, 102, 0.45);
    border-left: 4px solid #cc6666;
}

.bc-neg-card h4 { color: #ff9999; margin: 0 0 8px; }

.bc-pos-card ul, .bc-neg-card ul {
    margin: 0;
    padding-left: 20px;
}

.bc-pos-card li, .bc-neg-card li { margin: 4px 0; }

/* AI 鑑定（戦略コンサル風） */

.bc-reading {
    background: linear-gradient(165deg, rgba(20, 25, 50, 0.7), rgba(15, 18, 35, 0.65));
    border-color: rgba(94, 154, 255, 0.35);
}

@media (max-width: 720px) {
    .bc-scores-grid { grid-template-columns: 1fr; }
    .bc-relations-grid { grid-template-columns: 1fr 1fr; }
    .bc-factors { grid-template-columns: 1fr; }
    .bc-overall-num { font-size: 3em; }
}

/* ===== 子供命名サポート (/child-naming) ===== */

.cn-section-label {
    color: #ffd76e;
    margin-top: 20px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.3);
}

.cn-section {
    max-width: 1080px;
    margin: 28px auto;
    padding: 0 16px;
}

.cn-candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}

.cn-candidate-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1.5px solid rgba(255, 215, 110, 0.25);
    border-radius: 12px;
    padding: 16px 18px;
    color: #f1eed8;
}

.cn-cand-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.18);
}

.cn-cand-rank {
    color: #ffd76e;
    font-weight: 700;
    font-size: 1.15em;
}

.cn-cand-strokes { flex: 1; }

.cn-stroke-chip {
    display: inline-block;
    background: rgba(255, 215, 110, 0.18);
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    margin-right: 4px;
    font-weight: 600;
}

.cn-cand-total {
    color: #f1cf6a;
    font-size: 0.88em;
    margin-left: 4px;
}

.cn-gaku-line {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 10px 0;
    font-size: 0.88em;
}

.cn-gaku {
    background: rgba(20, 15, 35, 0.5);
    color: #f1eed8;
    padding: 2px 8px;
    border-radius: 6px;
}

.cn-kanji-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cn-kanji-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 15, 35, 0.4);
    padding: 6px 10px;
    border-radius: 6px;
}

.cn-kanji-label {
    color: #f1cf6a;
    font-weight: 600;
    font-size: 0.85em;
    min-width: 36px;
}

.cn-kanji-list { flex: 1; }

.cn-kanji-chip {
    display: inline-block;
    background: rgba(255, 215, 110, 0.12);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    margin: 2px 2px 2px 0;
    font-size: 1.05em;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 110, 0.3);
}

/* ===== 開業日鑑定 (/business-launch) ===== */

.bl-top-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.bl-top-card {
    background: linear-gradient(180deg, rgba(25, 30, 60, 0.65), rgba(20, 25, 50, 0.65));
    border: 1.5px solid rgba(255, 215, 110, 0.3);
    border-radius: 12px;
    padding: 16px 18px;
    color: #f1eed8;
    position: relative;
}

.bl-rank-1 {
    border-color: #ffd76e;
    background: linear-gradient(180deg, rgba(60, 45, 25, 0.65), rgba(20, 25, 50, 0.65));
    box-shadow: 0 0 14px rgba(255, 215, 110, 0.3);
}

.bl-rank-2, .bl-rank-3 { border-color: #d4b34a; }

.bl-rank-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    background: linear-gradient(135deg, #ffd76e, #d4b34a);
    color: #2a1a1a;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: "Shippori Mincho", serif;
}

.bl-date {
    color: #ffd76e;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.bl-kanshi, .bl-tsu { font-size: 0.95em; color: #f1eed8; margin: 4px 0; }
.bl-kanshi strong, .bl-tsu strong { color: #ffd76e; }

.bl-favored {
    color: #ffaa66;
    font-size: 0.85em;
    margin-left: 4px;
    font-weight: 700;
}

.bl-score-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 10px 0;
}

.bl-score-num {
    font-size: 2em;
    font-weight: 700;
    font-family: "Consolas", monospace;
    line-height: 1;
}

.bl-score-lvl {
    font-size: 0.95em;
    padding: 2px 12px;
    border-radius: 10px;
    background: rgba(20, 15, 35, 0.55);
}

.bl-advice {
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(20, 15, 35, 0.4);
    border-left: 3px solid rgba(255, 215, 110, 0.4);
    border-radius: 4px;
    font-size: 0.88em;
    line-height: 1.55;
    color: #d8d8c8;
}

.bl-industry-card {
    background: rgba(25, 30, 55, 0.65);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 10px;
    padding: 14px 18px;
    color: #f1eed8;
}

.bl-industry-name {
    color: #ffd76e;
    font-weight: 700;
    font-size: 1.1em;
}

.bl-industry-favored { margin: 8px 0; font-size: 0.95em; }
.bl-industry-advice { color: #d8d8c8; line-height: 1.7; font-size: 0.93em; }

/* ===== コンサルAI (/consul-ai) ===== */

.consul-section {
    max-width: 1080px;
    margin: 24px auto;
    padding: 0 16px;
}

.consul-advice-card {
    background: linear-gradient(135deg, rgba(60, 50, 100, 0.55), rgba(40, 30, 70, 0.55));
    border: 1.5px solid rgba(255, 215, 110, 0.35);
    border-left: 4px solid #ffd76e;
    border-radius: 12px;
    padding: 18px 22px;
    color: #f1eed8;
}

.consul-advice-card h3 { color: #ffd76e; margin: 0 0 8px; }
.consul-advice-card p { line-height: 1.85; }

.consul-recs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.consul-rec-card {
    background: rgba(40, 30, 60, 0.6);
    border: 1.5px solid rgba(255, 215, 110, 0.3);
    border-radius: 12px;
    padding: 18px;
    color: #f1eed8;
    text-decoration: none;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.consul-rec-card:hover {
    background: linear-gradient(135deg, rgba(80, 60, 40, 0.6), rgba(50, 35, 70, 0.65));
    border-color: #ffd76e;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.consul-rec-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.consul-rec-rank {
    color: #ffd76e;
    font-weight: 700;
    font-size: 1.1em;
    font-family: "Consolas", monospace;
}

.consul-rec-name {
    color: #fff;
    font-size: 1.15em;
    font-weight: 700;
    flex: 1;
}

.consul-rec-brand {
    font-size: 0.78em;
    color: #f1cf6a;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(20, 15, 35, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.3);
}

.consul-rec-url {
    color: #aaa099;
    font-size: 0.85em;
    font-family: "Consolas", monospace;
}

.consul-rec-relevance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.consul-rec-label { color: #f1cf6a; font-size: 0.82em; width: 50px; }

.consul-rec-bar {
    flex: 1;
    height: 6px;
    background: rgba(20, 15, 35, 0.55);
    border-radius: 3px;
    overflow: hidden;
}

.consul-rec-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #d4b34a, #ffd76e);
}

.consul-rec-num {
    color: #ffd76e;
    font-weight: 700;
    width: 32px;
    text-align: right;
    font-family: "Consolas", monospace;
}

.consul-rec-reason {
    color: #f1eed8;
    line-height: 1.65;
    font-size: 0.92em;
    padding: 8px 10px;
    background: rgba(20, 15, 35, 0.4);
    border-radius: 6px;
}

.consul-rec-good {
    color: #d8d8c8;
    font-size: 0.85em;
    line-height: 1.55;
}

.consul-rec-cta {
    margin-top: 6px;
    color: #ffd76e;
    font-weight: 600;
    font-size: 0.92em;
    text-align: right;
}

@media (max-width: 600px) {
    .cn-candidates-grid { grid-template-columns: 1fr; }
    .bl-top-grid { grid-template-columns: 1fr; }
    .consul-recs-grid { grid-template-columns: 1fr; }
}

.daiun-help {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
    margin-top: 12px;
}

/* 大運タイムライン下「今のステージ（10年）」グラフ */
.daiun-stage-chart-block { margin-top: 20px; }
.daiun-stage-title {
    font-size: 1.02rem;
    color: #f1cf6a;
    margin: 0 0 4px;
}
.daiun-stage-note {
    font-size: 0.9em;
    color: #c9c2bb;
    line-height: 1.6;
    margin: 0 0 12px;
}
.daiun-stage-help {
    font-size: 0.83rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
    margin-top: 8px;
}
.daiun-stage-help a { color: #f1cf6a; }

/* 相性の覚醒（今年版）二段表示 */
.compat-awaken-section { margin: 6px 0 18px; text-align: center; }
.compat-awaken-flow {
    display: inline-flex; align-items: center; gap: 16px;
    flex-wrap: wrap; justify-content: center;
}
.compat-awaken-base, .compat-awaken-now { min-width: 130px; }
.compat-awaken-cap { font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 2px; }
.compat-awaken-num { font-size: 2rem; font-weight: 700; line-height: 1; color: #e8e2d6; }
.compat-awaken-unit { font-size: 0.9rem; margin-left: 2px; }
.compat-awaken-now.up .compat-awaken-num { color: #7fd18a; }
.compat-awaken-now.down .compat-awaken-num { color: #d98a8a; }
.compat-awaken-arrow { font-size: 1.4rem; color: #f1cf6a; }
.compat-awaken-delta { font-size: 0.82rem; color: #f1cf6a; margin-top: 3px; }
.compat-awaken-note {
    font-size: 0.85rem; color: #c9c2bb; line-height: 1.6;
    margin: 12px auto 0; max-width: 560px;
}
.compat-awaken-fine { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; }

.daiun-section-empty .daiun-empty-msg {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.daiun-empty-icon {
    margin-right: 6px;
    color: rgba(150, 200, 255, 0.9);
}

.daiun-section-empty a {
    color: rgba(255, 220, 130, 0.9);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .daiun-timeline {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .daiun-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .daiun-kanshi {
        font-size: 1.15rem;
    }
}

/* ============================================================
   /east-west — 東西比較鑑定（紫微斗数 × 西洋占星術）
   ============================================================ */

/* ─── サマリーカード（東西並列） ─── */
.ew-summary-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.ew-summary-card {
    border: 1px solid rgba(180, 150, 100, 0.4);
    border-radius: 8px;
    padding: 1.2rem;
    background: rgba(40, 30, 50, 0.55);
}

.ew-summary-east {
    border-left: 4px solid #c89b5e;
}

.ew-summary-west {
    border-left: 4px solid #6e9acf;
}

.ew-summary-h {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
    color: #e8d4a6;
    letter-spacing: 0.05em;
}

.ew-summary-west .ew-summary-h {
    color: #b8d4ee;
}

.ew-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(180, 150, 100, 0.2);
}

.ew-summary-row:last-child {
    border-bottom: none;
}

.ew-summary-label {
    color: #aaa;
    font-size: 0.9rem;
}

.ew-summary-value {
    color: #f0e8d8;
    font-weight: 600;
}

/* ─── ホロスコープ円盤 ─── */
.horoscope-section {
    margin: 2rem 0;
}

.horoscope-title {
    margin-bottom: 0.3rem;
}

.horoscope-caption {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.horoscope-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.horoscope-chart {
    background: radial-gradient(circle at center,
                rgba(60, 50, 80, 0.6) 0%,
                rgba(30, 20, 50, 0.9) 100%);
    border-radius: 50%;
    display: block;
    max-width: 100%;
    height: auto;
}

.horoscope-outer,
.horoscope-mid,
.horoscope-inner {
    fill: none;
    stroke: rgba(200, 180, 140, 0.5);
    stroke-width: 1.5;
}

.horoscope-zodiac-line {
    stroke: rgba(200, 180, 140, 0.4);
    stroke-width: 1;
}

.horoscope-zodiac-label {
    font-size: 11px;
    fill: #e8d4a6;
    font-family: "Yu Mincho", "MS Mincho", serif;
}

.horoscope-house-line {
    stroke: rgba(160, 140, 200, 0.45);
    stroke-width: 1;
}

.horoscope-asc-line {
    stroke: #ff8a5e;
    stroke-width: 2;
}

.horoscope-house-num {
    font-size: 10px;
    fill: #b8a8d4;
    font-family: sans-serif;
}

.horoscope-asc-text {
    font-size: 12px;
    fill: #ff8a5e;
    font-weight: bold;
    font-family: sans-serif;
}

.horoscope-cross {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
}

.horoscope-planet-circle {
    fill: rgba(40, 30, 50, 0.95);
    stroke: #ffd76e;
    stroke-width: 1.5;
}

.horoscope-planet-glyph {
    font-size: 14px;
    fill: #ffd76e;
    font-family: "Segoe UI Symbol", "Apple Symbols", sans-serif;
}

.horoscope-legend {
    color: #e8d4a6;
    min-width: 0;
}

.horoscope-legend h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #b8d4ee;
    border-bottom: 1px solid rgba(110, 154, 207, 0.3);
    padding-bottom: 0.3rem;
}

.horoscope-legend h4:not(:first-child) {
    margin-top: 1.2rem;
}

.horoscope-planet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.horoscope-planet-list li {
    display: grid;
    grid-template-columns: minmax(80px, auto) 1fr auto;
    gap: 0.7rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed rgba(180, 150, 100, 0.15);
    font-size: 0.95rem;
}

.horoscope-planet-name {
    color: #ffd76e;
}

.horoscope-planet-sign {
    color: #f0e8d8;
}

.horoscope-planet-house {
    color: #b8a8d4;
    font-weight: 600;
}

.horoscope-elements {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.horoscope-elements span {
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
}

.he-fire { background: rgba(220, 80, 60, 0.4); color: #ffb098; }
.he-earth { background: rgba(140, 100, 60, 0.4); color: #d8b890; }
.he-air { background: rgba(180, 180, 80, 0.4); color: #e8e89e; }
.he-water { background: rgba(80, 110, 200, 0.4); color: #a8c4ee; }

/* ─── 東西対応表 ─── */
.ew-mapping-section {
    margin: 2rem 0;
}

.ew-mapping-caption {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ew-mapping-table-wrapper {
    overflow-x: auto;
}

.ew-mapping-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 20, 50, 0.5);
    border: 1px solid rgba(180, 150, 100, 0.3);
}

.ew-mapping-table th,
.ew-mapping-table td {
    padding: 0.7rem 0.9rem;
    border: 1px solid rgba(180, 150, 100, 0.2);
    text-align: left;
    vertical-align: middle;
}

.ew-mapping-table thead th {
    background: rgba(60, 40, 80, 0.7);
    color: #e8d4a6;
    font-size: 0.95rem;
}

.ew-mapping-table thead th:nth-child(2) {
    color: #e8d4a6;
}

.ew-mapping-table thead th:nth-child(3) {
    color: #b8d4ee;
}

.ew-map-domain {
    color: #f0e8d8;
    font-size: 0.95rem;
}

.ew-map-arrow {
    color: #ffd76e;
    margin: 0 0.3rem;
}

.ew-map-meaning {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #aaa;
}

.ew-map-east {
    background: rgba(200, 155, 94, 0.08);
}

.ew-map-west {
    background: rgba(110, 154, 207, 0.08);
}

.ew-map-branch {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.1rem 0.4rem;
    background: rgba(200, 155, 94, 0.25);
    border-radius: 3px;
    color: #e8d4a6;
    font-size: 0.85rem;
}

.ew-map-star {
    display: inline-block;
    margin-right: 0.3rem;
    padding: 0.1rem 0.4rem;
    background: rgba(80, 60, 100, 0.6);
    border-radius: 3px;
    color: #ffd76e;
    font-size: 0.85rem;
}

.ew-map-sign {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.1rem 0.4rem;
    background: rgba(110, 154, 207, 0.25);
    border-radius: 3px;
    color: #b8d4ee;
    font-size: 0.85rem;
}

.ew-map-planet {
    display: inline-block;
    margin-right: 0.3rem;
    padding: 0.1rem 0.4rem;
    background: rgba(80, 60, 100, 0.6);
    border-radius: 3px;
    color: #ffd76e;
    font-size: 0.85rem;
}

.ew-map-empty {
    color: #888;
    font-style: italic;
    font-size: 0.85rem;
}

/* ─── レスポンシブ ─── */
@media (max-width: 900px) {
    .horoscope-wrapper {
        grid-template-columns: 1fr;
    }
    .horoscope-chart {
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .ew-summary-section {
        grid-template-columns: 1fr;
    }
    .horoscope-planet-list li {
        grid-template-columns: 1fr auto;
        gap: 0.4rem;
    }
    .horoscope-planet-sign {
        grid-column: 1 / -1;
        font-size: 0.85rem;
        color: #ccc;
    }
}

@media (max-width: 520px) {
    .ew-mapping-table th,
    .ew-mapping-table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.85rem;
    }
    .horoscope-chart {
        width: 100%;
        max-width: 360px;
    }
}

/* ============================================================
   /east-west-today — 東西今日の運勢
   ============================================================ */

/* ─── 3レイヤー (流年/流月/流日) ─── */
.ewt-layers-section { margin: 1.5rem 0; }
.ewt-caption { color: #aaa; font-size: 0.9rem; margin-bottom: 1rem; }

.ewt-layer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ewt-layer-card {
    background: rgba(40, 30, 50, 0.55);
    border-radius: 8px;
    padding: 1.2rem;
    border-left: 4px solid #c89b5e;
}

.ewt-layer-liunian { border-left-color: #d4a04c; background: rgba(60, 40, 25, 0.6); }
.ewt-layer-liuyue  { border-left-color: #c89b5e; background: rgba(50, 35, 35, 0.6); }
.ewt-layer-liuri   { border-left-color: #e8b878; background: rgba(40, 30, 50, 0.6); }

.ewt-layer-label {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.ewt-layer-kanshi {
    font-size: 1.8rem;
    color: #ffd76e;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.ewt-layer-palace {
    color: #e8d4a6;
    font-size: 1.05rem;
    margin: 0.4rem 0;
    font-weight: 600;
}

.ewt-layer-stars { margin: 0.4rem 0; }
.ewt-layer-star {
    display: inline-block;
    margin-right: 0.3rem;
    padding: 0.15rem 0.5rem;
    background: rgba(80, 60, 100, 0.6);
    border-radius: 3px;
    color: #ffd76e;
    font-size: 0.9rem;
}
.ewt-layer-no-star {
    color: #888;
    font-style: italic;
    font-size: 0.9rem;
}

.ewt-layer-meaning {
    color: #aaa;
    font-size: 0.82rem;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* ─── トランジット天体グリッド ─── */
.ewt-transit-section { margin: 2rem 0; }

.ewt-transit-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.6rem;
}

.ewt-transit-card {
    background: rgba(30, 25, 50, 0.6);
    border: 1px solid rgba(110, 154, 207, 0.3);
    border-radius: 6px;
    padding: 0.8rem 0.5rem;
    text-align: center;
}

.ewt-transit-glyph {
    font-size: 1.8rem;
    color: #b8d4ee;
    font-family: "Segoe UI Symbol", "Apple Symbols", sans-serif;
    line-height: 1;
}

.ewt-transit-name {
    color: #e8d4a6;
    font-size: 0.85rem;
    margin: 0.3rem 0 0.2rem;
}

.ewt-transit-sign {
    color: #b8d4ee;
    font-size: 0.85rem;
}

.ewt-transit-deg {
    color: #aaa;
    font-size: 0.75rem;
}

/* ─── アスペクト表 ─── */
.ewt-aspects-section { margin: 2rem 0; }

.ewt-aspects-table-wrapper { overflow-x: auto; }

.ewt-aspects-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 20, 50, 0.5);
}

.ewt-aspects-table th,
.ewt-aspects-table td {
    padding: 0.5rem 0.7rem;
    border: 1px solid rgba(180, 150, 100, 0.2);
    text-align: left;
}

.ewt-aspects-table thead th {
    background: rgba(60, 40, 80, 0.7);
    color: #e8d4a6;
    font-size: 0.9rem;
}

.ewt-aspects-table tbody td small {
    color: #aaa;
    font-size: 0.8rem;
    margin-left: 0.2rem;
}

.ewt-asp-nature {
    font-weight: 600;
    text-align: center;
}

/* アスペクト性質ごとの色 */
.ewt-asp-kyouka  td.ewt-asp-nature { color: #ffd76e; background: rgba(255, 215, 110, 0.15); }
.ewt-asp-kinchou td.ewt-asp-nature { color: #ff9090; background: rgba(255, 144, 144, 0.15); }
.ewt-asp-chouwa  td.ewt-asp-nature { color: #90e090; background: rgba(144, 224, 144, 0.15); }
.ewt-asp-kattou  td.ewt-asp-nature { color: #ff9870; background: rgba(255, 152, 112, 0.15); }
.ewt-asp-kouki   td.ewt-asp-nature { color: #b0d8ff; background: rgba(176, 216, 255, 0.15); }
.ewt-asp-kokattou td.ewt-asp-nature { color: #ffc098; background: rgba(255, 192, 152, 0.1); }
.ewt-asp-kochouwa td.ewt-asp-nature { color: #b8e8b8; background: rgba(184, 232, 184, 0.1); }

.ewt-no-aspect {
    color: #aaa;
    background: rgba(40, 30, 50, 0.4);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-style: italic;
}

/* ─── 活性ハウス ─── */
.ewt-houses-section { margin: 2rem 0; }

.ewt-houses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.ewt-house-card {
    background: rgba(30, 25, 50, 0.6);
    border-left: 4px solid #6e9acf;
    padding: 0.8rem 1rem;
    border-radius: 0 6px 6px 0;
}

.ewt-house-num {
    color: #ffd76e;
    font-size: 1.4rem;
    font-weight: 700;
}

.ewt-house-meaning {
    color: #aaa;
    font-size: 0.85rem;
    margin: 0.3rem 0 0.5rem;
}

.ewt-house-planet {
    display: inline-block;
    margin-right: 0.4rem;
    padding: 0.15rem 0.5rem;
    background: rgba(80, 60, 100, 0.6);
    border-radius: 3px;
    color: #b8d4ee;
    font-size: 0.9rem;
}

/* ─── 東西並列マッピング ─── */
.ewt-mapping-section { margin: 2rem 0; }
.ewt-mapping-caption { color: #aaa; font-size: 0.9rem; margin-bottom: 1rem; }

.ewt-mapping-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ewt-mapping-east,
.ewt-mapping-west {
    padding: 1rem 1.2rem;
    border-radius: 6px;
}

.ewt-mapping-east {
    background: rgba(60, 40, 25, 0.5);
    border-left: 4px solid #c89b5e;
}

.ewt-mapping-west {
    background: rgba(30, 40, 70, 0.5);
    border-left: 4px solid #6e9acf;
}

.ewt-mapping-east h4 { color: #e8d4a6; margin-top: 0; }
.ewt-mapping-west h4 { color: #b8d4ee; margin-top: 0; }

.ewt-mapping-east ul,
.ewt-mapping-west ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ewt-mapping-east li,
.ewt-mapping-west li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed rgba(180, 150, 100, 0.15);
    color: #f0e8d8;
    font-size: 0.95rem;
}

.ewt-mapping-east li:last-child,
.ewt-mapping-west li:last-child {
    border-bottom: none;
}

/* ─── レスポンシブ ─── */
@media (max-width: 900px) {
    .ewt-transit-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .ewt-mapping-side {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .ewt-layer-grid {
        grid-template-columns: 1fr;
    }
    .ewt-transit-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 520px) {
    .ewt-transit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ewt-aspects-table th,
    .ewt-aspects-table td {
        padding: 0.4rem 0.4rem;
        font-size: 0.85rem;
    }
}

/* ─── トランジット円盤 (バイホイール) ─── */
.ewt-chart-section { margin: 2rem 0; }

.ewt-chart-wrapper {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
}

.transit-chart {
    background: radial-gradient(circle at center, rgba(60, 50, 80, 0.6) 0%, rgba(20, 15, 40, 0.95) 100%);
    border-radius: 50%;
    display: block;
    max-width: 100%;
    height: auto;
}

.tc-ring { fill: none; stroke-width: 1.5; }
.tc-ring-outer  { stroke: rgba(200, 180, 140, 0.6); }
.tc-ring-zodiac { stroke: rgba(200, 180, 140, 0.4); }
.tc-ring-mid    { stroke: rgba(160, 140, 200, 0.4); stroke-dasharray: 4, 4; }
.tc-ring-house  { stroke: rgba(160, 140, 200, 0.5); }
.tc-ring-inner  { stroke: rgba(160, 140, 200, 0.4); }

.tc-zodiac-line {
    stroke: rgba(200, 180, 140, 0.5);
    stroke-width: 1;
}

.tc-zodiac-label {
    font-size: 13px;
    fill: #e8d4a6;
    font-family: "Yu Mincho", "MS Mincho", serif;
}

.tc-house-line {
    stroke: rgba(160, 140, 200, 0.5);
    stroke-width: 1;
}

.tc-asc-line {
    stroke: #ff8a5e;
    stroke-width: 2;
}

.tc-house-num {
    font-size: 11px;
    fill: #b8a8d4;
    font-family: sans-serif;
}

.tc-asc-text {
    font-size: 13px;
    fill: #ff8a5e;
    font-weight: bold;
    font-family: sans-serif;
}

.tc-aspect-line {
    stroke-width: 1.8;
    opacity: 0.7;
    fill: none;
}

.tc-aspect-kyouka  { stroke: #ffd76e; }
.tc-aspect-kinchou { stroke: #ff5050; }
.tc-aspect-chouwa  { stroke: #6ee08a; }
.tc-aspect-kattou  { stroke: #ff8a3a; }
.tc-aspect-kouki   { stroke: #5acfff; }

.tc-planet-circle {
    fill: rgba(40, 30, 50, 0.95);
    stroke-width: 1.5;
}

.tc-planet-natal   .tc-planet-circle { stroke: #ffd76e; }
.tc-planet-transit .tc-planet-circle { stroke: #6e9acf; }

.tc-planet-glyph {
    font-size: 14px;
    font-family: "Segoe UI Symbol", "Apple Symbols", sans-serif;
}

.tc-planet-natal   .tc-planet-glyph { fill: #ffd76e; }
.tc-planet-transit .tc-planet-glyph { fill: #b8d4ee; }

.tc-cross {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
}

.tc-legend {
    color: #e8d4a6;
    min-width: 0;
}

.tc-legend h4 {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    color: #b8d4ee;
    border-bottom: 1px solid rgba(110, 154, 207, 0.3);
    padding-bottom: 0.3rem;
}

.tc-legend-section { margin-bottom: 1.2rem; }

.tc-legend-label {
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.tc-legend-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: #e8d4a6;
}

.tc-legend-circle {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(40, 30, 50, 0.95);
    flex-shrink: 0;
}

.tc-leg-natal { border: 1.5px solid #ffd76e; }
.tc-leg-transit { border: 1.5px solid #6e9acf; }

.tc-legend-line {
    display: inline-block;
    width: 30px;
    height: 2px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .ewt-chart-wrapper { grid-template-columns: 1fr; }
    .transit-chart { margin: 0 auto; }
}

@media (max-width: 520px) {
    .transit-chart {
        width: 100%;
        max-width: 380px;
    }
}

/* ============================================================
 * 姓名判断（/seimei）
 * ============================================================ */

.seimei-intro-section {
    max-width: 720px;
    margin: 32px auto;
    padding: 0 16px;
}

.seimei-intro-card {
    background: linear-gradient(135deg, rgba(60, 40, 80, 0.45) 0%, rgba(40, 30, 60, 0.35) 100%);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 12px;
    padding: 28px 32px;
    color: #f1eed8;
}

.seimei-intro-card h3 {
    color: #ffd76e;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.4em;
}

.seimei-intro-card h4 {
    color: #f1cf6a;
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.seimei-intro-card p {
    margin: 8px 0;
    line-height: 1.75;
}

.seimei-gaku-list {
    margin: 8px 0;
    padding-left: 20px;
    line-height: 1.95;
}

.seimei-gaku-list li {
    margin: 4px 0;
}

.seimei-gaku-list em {
    color: #ffd76e;
    font-style: normal;
}

/* ===== 結果ページ: 文字内訳 ===== */

.seimei-chars-section {
    max-width: 920px;
    margin: 28px auto;
    padding: 0 16px;
}

.seimei-chars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.seimei-chars-card {
    background: rgba(40, 30, 60, 0.5);
    border: 1px solid rgba(255, 215, 110, 0.2);
    border-radius: 10px;
    padding: 18px;
}

.seimei-chars-card h4 {
    margin: 0 0 12px;
    color: #ffd76e;
    text-align: center;
    font-size: 1.15em;
}

.seimei-chars-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.seimei-char-cell {
    background: rgba(20, 15, 35, 0.7);
    border: 1px solid rgba(241, 207, 106, 0.35);
    border-radius: 8px;
    padding: 12px 8px;
    min-width: 70px;
    text-align: center;
}

.seimei-char-cell.seimei-converted {
    border-color: #ff9966;
    box-shadow: 0 0 8px rgba(255, 153, 102, 0.2);
}

.seimei-char-shinji {
    font-size: 2em;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.1;
}

.seimei-char-kyuji {
    font-size: 0.9em;
    color: #ffaa77;
    margin-top: 4px;
}

.seimei-char-strokes {
    font-size: 0.85em;
    color: #f1cf6a;
    margin-top: 4px;
    font-weight: 500;
}

/* ===== 結果ページ: 五格カード ===== */

.seimei-gaku-section {
    max-width: 1080px;
    margin: 32px auto;
    padding: 0 16px;
}

.seimei-gaku-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.seimei-gaku-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1.5px solid rgba(255, 215, 110, 0.3);
    border-radius: 10px;
    padding: 16px;
    color: #f1eed8;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.seimei-judge-大吉 {
    background: linear-gradient(135deg, rgba(80, 50, 30, 0.6), rgba(40, 30, 60, 0.55));
    border-color: #ffd76e;
    box-shadow: 0 0 12px rgba(255, 215, 110, 0.25);
}

.seimei-judge-吉 {
    background: linear-gradient(135deg, rgba(60, 50, 30, 0.55), rgba(40, 30, 60, 0.55));
    border-color: #d4b34a;
}

.seimei-judge-中吉 {
    border-color: rgba(241, 207, 106, 0.45);
}

.seimei-judge-凶 {
    background: linear-gradient(135deg, rgba(60, 30, 40, 0.45), rgba(40, 30, 60, 0.5));
    border-color: rgba(204, 102, 102, 0.55);
}

.seimei-judge-大凶 {
    background: linear-gradient(135deg, rgba(80, 30, 40, 0.55), rgba(40, 30, 60, 0.55));
    border-color: #cc4444;
    box-shadow: 0 0 12px rgba(204, 68, 68, 0.25);
}

.seimei-gaku-name {
    font-size: 1.15em;
    color: #ffd76e;
    font-weight: 600;
    margin-bottom: 6px;
}

.seimei-gaku-total {
    font-size: 2.4em;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin: 4px 0;
}

.seimei-gaku-unit {
    font-size: 0.5em;
    color: #f1cf6a;
    margin-left: 2px;
    font-weight: 400;
}

.seimei-gaku-judge {
    font-size: 1.05em;
    font-weight: 700;
    margin: 6px 0 2px;
    padding: 2px 12px;
    border-radius: 12px;
    background: rgba(20, 15, 35, 0.5);
}

.seimei-judge-大吉 .seimei-gaku-judge { color: #ffd76e; }
.seimei-judge-吉 .seimei-gaku-judge { color: #f1cf6a; }
.seimei-judge-中吉 .seimei-gaku-judge { color: #d8d8d8; }
.seimei-judge-凶 .seimei-gaku-judge { color: #ff9999; }
.seimei-judge-大凶 .seimei-gaku-judge { color: #ff6666; }

.seimei-gaku-short {
    font-size: 0.95em;
    color: #f1eed8;
    margin: 4px 0 8px;
}

.seimei-gaku-text {
    font-size: 0.85em;
    color: #d8d8c8;
    line-height: 1.5;
    margin: 4px 0;
}

.seimei-gaku-formula {
    font-size: 0.8em;
    color: #aaa099;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(241, 207, 106, 0.2);
    font-family: "Consolas", "Menlo", monospace;
}

/* ===== 五格意味解説 ===== */

.seimei-meaning-section {
    max-width: 1080px;
    margin: 32px auto;
    padding: 0 16px;
}

.seimei-meaning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.seimei-meaning-item {
    background: rgba(30, 25, 50, 0.45);
    border: 1px solid rgba(255, 215, 110, 0.18);
    border-radius: 10px;
    padding: 16px 20px;
}

.seimei-meaning-item h4 {
    color: #ffd76e;
    margin: 0 0 8px;
    font-size: 1.05em;
}

.seimei-meaning-item p {
    margin: 0;
    line-height: 1.7;
    font-size: 0.95em;
    color: #f1eed8;
}

.seimei-meaning-item strong {
    color: #ffd76e;
}

@media (max-width: 720px) {
    .seimei-chars-grid {
        grid-template-columns: 1fr;
    }
    .seimei-char-shinji {
        font-size: 1.7em;
    }
}

/* ===== 三才配置 (天人地) ===== */

.seimei-sansai-section {
    max-width: 920px;
    margin: 32px auto;
    padding: 0 16px;
}

.seimei-sansai-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1.5px solid rgba(255, 215, 110, 0.3);
    border-radius: 12px;
    padding: 24px;
    color: #f1eed8;
}

.seimei-sansai-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.seimei-sansai-cell {
    width: 110px;
    padding: 14px 8px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

/* 五行カラー */
.seimei-elem-木 { background: linear-gradient(135deg, #2d5a3d 0%, #1a3325 100%); border-color: #4caf6c; }
.seimei-elem-火 { background: linear-gradient(135deg, #6e2a2a 0%, #3d1414 100%); border-color: #d94545; }
.seimei-elem-土 { background: linear-gradient(135deg, #7a5a2a 0%, #4a3314 100%); border-color: #d4a347; }
.seimei-elem-金 { background: linear-gradient(135deg, #6a6a6a 0%, #3a3a3a 100%); border-color: #d4d4d4; }
.seimei-elem-水 { background: linear-gradient(135deg, #1f3a6e 0%, #102245 100%); border-color: #4787d4; }

.seimei-sansai-label {
    font-size: 0.85em;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}

.seimei-sansai-element {
    font-size: 2.2em;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin: 6px 0;
}

.seimei-sansai-stroke {
    font-size: 0.85em;
    color: rgba(255,255,255,0.8);
}

.seimei-sansai-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.seimei-sansai-rel {
    font-size: 0.85em;
    color: #f1cf6a;
    margin-bottom: 2px;
    font-weight: 600;
}

.seimei-sansai-arr {
    font-size: 1.6em;
    color: #ffd76e;
    line-height: 1;
}

.seimei-sansai-judge {
    text-align: center;
    font-size: 1.1em;
    margin-top: 12px;
    color: #f1eed8;
}

.seimei-sansai-judge strong {
    color: #ffd76e;
    font-size: 1.15em;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(20,15,35,0.5);
    margin-left: 6px;
}

.seimei-sansai-desc {
    margin-top: 12px;
    line-height: 1.75;
    color: #d8d8c8;
    background: rgba(20,15,35,0.35);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid rgba(255,215,110,0.4);
}

/* ===== 画数バランス (SVGバーチャート) ===== */

.seimei-balance-section {
    max-width: 920px;
    margin: 32px auto;
    padding: 0 16px;
}

.seimei-balance-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1.5px solid rgba(255, 215, 110, 0.3);
    border-radius: 12px;
    padding: 24px;
    color: #f1eed8;
}

.seimei-balance-chart {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto 16px;
}

.bal-bar { transition: opacity 0.2s; }
.bal-bar:hover { opacity: 0.85; }

.bal-大吉 { fill: #ffd76e; }
.bal-吉   { fill: #d4b34a; }
.bal-中吉 { fill: #aaa099; }
.bal-凶   { fill: #cc6666; }
.bal-大凶 { fill: #cc4444; }

.bal-num {
    font-family: "Meiryo", "メイリオ", sans-serif;
    font-size: 18px;
    font-weight: 700;
    fill: #ffffff;
}

.bal-name {
    font-family: "Meiryo", "メイリオ", sans-serif;
    font-size: 14px;
    fill: #f1cf6a;
}

.bal-judge {
    font-family: "Meiryo", "メイリオ", sans-serif;
    font-size: 11px;
    fill: #d8d8c8;
}

.bal-judge-大吉 { fill: #ffd76e; }
.bal-judge-吉   { fill: #d4b34a; }
.bal-judge-中吉 { fill: #d8d8d8; }
.bal-judge-凶   { fill: #ff9999; }
.bal-judge-大凶 { fill: #ff6666; }

.seimei-balance-info {
    margin-top: 12px;
}

.seimei-balance-pattern {
    font-size: 1.05em;
    color: #f1eed8;
    margin-bottom: 8px;
}

.seimei-balance-pattern strong {
    color: #ffd76e;
    font-size: 1.1em;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(20,15,35,0.5);
    margin-left: 4px;
}

.seimei-balance-spread {
    font-size: 0.88em;
    color: #aaa099;
    margin-left: 8px;
}

.seimei-balance-desc {
    line-height: 1.75;
    color: #d8d8c8;
    background: rgba(20,15,35,0.35);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid rgba(255,215,110,0.4);
}

@media (max-width: 600px) {
    .seimei-sansai-cell { width: 80px; padding: 10px 4px; }
    .seimei-sansai-element { font-size: 1.7em; }
    .seimei-sansai-arrow { min-width: 40px; }
    .seimei-sansai-rel { font-size: 0.75em; }
}

/* ===== 改名提案 (kaimei) ===== */

.seimei-kaimei-section {
    max-width: 1080px;
    margin: 32px auto;
    padding: 0 16px;
}

.seimei-kaimei-note {
    color: #d8d8c8;
    line-height: 1.75;
    background: rgba(20, 15, 35, 0.4);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 153, 102, 0.6);
    margin-bottom: 16px;
    font-size: 0.93em;
}

.seimei-kaimei-note strong {
    color: #ffaa77;
}

.seimei-kaimei-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.seimei-kaimei-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.seimei-kaimei-target {
    font-size: 1.2em;
    color: #ffd76e;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 14px;
    background: rgba(20, 15, 35, 0.6);
    border: 1px solid rgba(255, 215, 110, 0.4);
}

.seimei-kaimei-current {
    font-size: 0.95em;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(20, 15, 35, 0.5);
}

.seimei-kaimei-current.seimei-judge-凶 { color: #ff9999; border: 1px solid rgba(204, 102, 102, 0.4); }
.seimei-kaimei-current.seimei-judge-大凶 { color: #ff6666; border: 1px solid rgba(204, 68, 68, 0.5); }

.seimei-kaimei-method {
    color: #f1eed8;
    margin: 10px 0 12px;
    padding: 8px 12px;
    background: rgba(20, 15, 35, 0.3);
    border-radius: 6px;
    line-height: 1.6;
    font-size: 0.95em;
}

.seimei-kaimei-table {
    width: 100%;
    border-collapse: collapse;
    color: #f1eed8;
    margin-top: 8px;
}

.seimei-kaimei-table th {
    background: rgba(20, 15, 35, 0.55);
    color: #ffd76e;
    padding: 8px 10px;
    font-weight: 600;
    text-align: left;
    font-size: 0.9em;
    border-bottom: 1px solid rgba(255, 215, 110, 0.3);
}

.seimei-kaimei-table td {
    padding: 8px 10px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.15);
    vertical-align: middle;
    font-size: 0.95em;
}

.seimei-kaimei-table tbody tr:last-child td {
    border-bottom: none;
}

.seimei-judge-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(20, 15, 35, 0.5);
    font-size: 0.88em;
    font-weight: 600;
}

.seimei-kanji-chip {
    display: inline-block;
    background: rgba(255, 215, 110, 0.18);
    color: #ffffff;
    padding: 4px 9px;
    margin: 2px 3px 2px 0;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 110, 0.35);
}

.seimei-kaimei-empty {
    color: #888;
    font-style: italic;
    font-size: 0.88em;
}

@media (max-width: 600px) {
    .seimei-kaimei-table { font-size: 0.85em; }
    .seimei-kaimei-table th, .seimei-kaimei-table td { padding: 6px 4px; }
    .seimei-kanji-chip { padding: 3px 6px; margin: 2px 2px; }
}

/* ===== 姓名×命式 統合鑑定 (/seimei-meishiki) ===== */

.integ-section {
    max-width: 1080px;
    margin: 28px auto;
    padding: 0 16px;
}

.integ-card {
    background: rgba(40, 30, 60, 0.6);
    border: 1.5px solid rgba(255, 215, 110, 0.35);
    border-radius: 12px;
    padding: 24px;
    color: #f1eed8;
    text-align: center;
}

.integ-judge-large {
    font-size: 2em;
    font-weight: 700;
    color: #ffd76e;
    margin-bottom: 12px;
    padding: 6px 24px;
    background: rgba(20, 15, 35, 0.55);
    border-radius: 16px;
    display: inline-block;
}

.integ-sync-高 .integ-judge-large { color: #ffd76e; box-shadow: 0 0 16px rgba(255,215,110,0.3); }
.integ-sync-良 .integ-judge-large { color: #d4b34a; }
.integ-sync-中 .integ-judge-large { color: #d8d8c8; }
.integ-sync-不調和 .integ-judge-large { color: #ff9966; }

.integ-desc {
    line-height: 1.85;
    margin-top: 10px;
    color: #d8d8c8;
    text-align: left;
}

.integ-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.integ-side {
    background: rgba(40, 30, 60, 0.5);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 10px;
    padding: 18px;
}

.integ-side h4 {
    color: #ffd76e;
    margin: 0 0 14px;
    text-align: center;
    font-size: 1.05em;
}

/* 命式 五行バー */
.integ-gogyo-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.integ-gogyo-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.integ-gogyo-name {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
    font-size: 1.05em;
    flex-shrink: 0;
}

.integ-gogyo-bar-track {
    flex: 1;
    height: 12px;
    background: rgba(20, 15, 35, 0.55);
    border-radius: 6px;
    overflow: hidden;
}

.integ-gogyo-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ffd76e 0%, #d4b34a 100%);
    border-radius: 6px;
    transition: width 0.4s;
}

.integ-gogyo-count {
    width: 28px;
    text-align: right;
    color: #ffd76e;
    font-weight: 600;
    flex-shrink: 0;
}

.integ-tag {
    font-size: 0.78em;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
    flex-shrink: 0;
}

.integ-tag-weak {
    background: rgba(204, 102, 102, 0.3);
    color: #ff9999;
    border: 1px solid rgba(204, 102, 102, 0.5);
}

.integ-tag-strong {
    background: rgba(255, 153, 102, 0.3);
    color: #ffaa77;
    border: 1px solid rgba(255, 153, 102, 0.5);
}

.integ-tag-supp {
    color: #fff;
    border: 1px solid rgba(76, 175, 108, 0.6);
    margin-right: 4px;
    padding: 2px 10px;
}

.integ-tag-exc {
    color: #fff;
    border: 1px solid rgba(217, 69, 69, 0.6);
    margin-right: 4px;
    padding: 2px 10px;
}

/* 姓名側 三才 */
.integ-sansai {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.integ-sansai-cell {
    width: 70px;
    padding: 10px 4px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.15);
}

.integ-sansai-label {
    font-size: 0.78em;
    color: rgba(255,255,255,0.7);
}

.integ-sansai-elem {
    font-size: 1.65em;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

.integ-side-summary {
    background: rgba(20, 15, 35, 0.4);
    border-radius: 6px;
    padding: 10px 14px;
}

.integ-summary-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    flex-wrap: wrap;
}

.integ-summary-label {
    color: #f1cf6a;
    font-weight: 600;
    font-size: 0.93em;
    min-width: 50px;
}

.integ-summary-value {
    color: #f1eed8;
}

/* 命式 サマリ */
.integ-meishiki-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 10px;
    padding: 18px;
    color: #f1eed8;
}

.integ-meta-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.2);
}

.integ-meta-label {
    color: #ffd76e;
    font-weight: 600;
}

.integ-meta-value {
    color: #fff;
}

.integ-pillar-table {
    width: 100%;
    border-collapse: collapse;
    color: #f1eed8;
}

.integ-pillar-table th, .integ-pillar-table td {
    padding: 6px 12px;
    text-align: center;
    border-bottom: 1px dashed rgba(255,215,110,0.15);
}

.integ-pillar-table th {
    color: #f1cf6a;
    font-weight: 600;
    background: rgba(20,15,35,0.45);
}

@media (max-width: 720px) {
    .integ-grid { grid-template-columns: 1fr; }
    .integ-judge-large { font-size: 1.6em; }
    .integ-sansai-cell { width: 60px; }
    .integ-sansai-elem { font-size: 1.4em; }
}

/* ===== 適職診断 (/career) ===== */

.career-section {
    max-width: 1080px;
    margin: 28px auto;
    padding: 0 16px;
}

.career-tsu-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1.5px solid rgba(255, 215, 110, 0.3);
    border-radius: 12px;
    padding: 22px;
    color: #f1eed8;
}

.career-summary {
    line-height: 1.85;
    background: rgba(20, 15, 35, 0.4);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid rgba(255, 215, 110, 0.4);
    margin-bottom: 16px;
    color: #f1eed8;
}

.career-tsu-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.career-tsu-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.career-tsu-name {
    width: 72px;
    color: #ffd76e;
    font-weight: 600;
    flex-shrink: 0;
}

.career-tsu-bar-track {
    flex: 1;
    height: 16px;
    background: rgba(20, 15, 35, 0.55);
    border-radius: 8px;
    overflow: hidden;
}

.career-tsu-bar-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ffd76e 0%, #d4b34a 60%, #a88a30 100%);
    border-radius: 8px;
    transition: width 0.4s;
}

.career-tsu-count {
    width: 32px;
    text-align: right;
    color: #ffffff;
    font-weight: 700;
    flex-shrink: 0;
}

/* 上位通変星の特性カード */

.career-traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px;
}

.career-trait-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.3);
    border-radius: 10px;
    padding: 16px 18px;
    color: #f1eed8;
}

.career-trait-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.career-trait-name {
    color: #ffd76e;
    font-size: 1.1em;
    font-weight: 700;
}

.career-trait-count {
    color: #f1cf6a;
    font-size: 0.9em;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(20, 15, 35, 0.5);
}

.career-trait-core {
    color: #f1eed8;
    margin-bottom: 12px;
    font-style: italic;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.2);
}

.career-trait-row {
    margin: 6px 0;
    line-height: 1.7;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
}

.career-trait-label {
    color: #f1cf6a;
    font-weight: 600;
    font-size: 0.92em;
    flex-shrink: 0;
}

.career-trait-value {
    color: #d8d8c8;
    font-size: 0.92em;
}

.career-job-chip {
    display: inline-block;
    background: rgba(255, 215, 110, 0.16);
    color: #fff;
    padding: 2px 8px;
    margin: 2px 2px 2px 0;
    border-radius: 6px;
    font-size: 0.85em;
    border: 1px solid rgba(255, 215, 110, 0.3);
}

.career-trait-caution {
    margin-top: 10px;
    padding: 6px 10px;
    background: rgba(204, 102, 102, 0.15);
    border-left: 2px solid rgba(204, 102, 102, 0.5);
    border-radius: 4px;
    color: #ffcccc;
    font-size: 0.88em;
}

/* 五行→業界 */

.career-industry-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.3);
    border-radius: 10px;
    padding: 20px;
    color: #f1eed8;
}

.career-gogyo-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.career-gogyo-cell {
    width: 70px;
    padding: 10px 4px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.15);
    position: relative;
}

.career-gogyo-strong {
    box-shadow: 0 0 12px rgba(255, 215, 110, 0.35);
    border-color: #ffd76e;
}

.career-gogyo-weak {
    opacity: 0.55;
}

.career-gogyo-elem {
    font-size: 1.7em;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.career-gogyo-count {
    font-size: 0.92em;
    color: #f1cf6a;
    margin-top: 4px;
}

.career-industry-list h4 {
    color: #ffd76e;
    margin: 12px 0 8px;
    font-size: 1em;
}

.career-industries {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.career-industry-chip {
    display: inline-block;
    background: rgba(255, 215, 110, 0.18);
    color: #fff;
    padding: 5px 11px;
    border-radius: 14px;
    font-size: 0.93em;
    border: 1px solid rgba(255, 215, 110, 0.4);
}

.career-no-strong {
    color: #d8d8c8;
    font-style: italic;
    line-height: 1.7;
    padding: 8px 0;
}

@media (max-width: 600px) {
    .career-tsu-name { width: 60px; font-size: 0.92em; }
    .career-traits-grid { grid-template-columns: 1fr; }
    .career-gogyo-cell { width: 55px; }
    .career-gogyo-elem { font-size: 1.35em; }
}

/* ===== 大運タイムライン (年代別キャリア戦略) ===== */

.career-daiun-card {
    background: rgba(40, 30, 60, 0.55);
    border: 1.5px solid rgba(255, 215, 110, 0.35);
    border-radius: 12px;
    padding: 22px;
    color: #f1eed8;
}

.career-daiun-meta {
    color: #f1cf6a;
    margin-bottom: 16px;
    font-size: 0.93em;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 215, 110, 0.25);
}

.career-daiun-meta strong { color: #ffd76e; }

.career-daiun-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.career-daiun-period {
    background: rgba(20, 15, 35, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.25);
    border-radius: 10px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.career-daiun-age {
    font-size: 1em;
    color: #ffd76e;
    font-weight: 700;
    text-align: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 215, 110, 0.2);
}

.career-daiun-kanshi {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.career-daiun-tenkan, .career-daiun-chishi {
    display: inline-block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    font-size: 1.25em;
    font-weight: 700;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.18);
}

.career-daiun-focus {
    text-align: center;
    color: #f1eed8;
    font-size: 0.92em;
    padding: 4px 0;
    line-height: 1.5;
}

.career-daiun-detail {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.career-daiun-tag {
    font-size: 0.78em;
    color: #d8d8c8;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(255, 215, 110, 0.1);
    border: 1px solid rgba(255, 215, 110, 0.2);
}

.career-daiun-jobs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px;
    margin-top: 2px;
}

.career-daiun-jobs .career-job-chip {
    font-size: 0.78em;
    padding: 2px 6px;
}

@media (max-width: 600px) {
    .career-daiun-timeline { grid-template-columns: 1fr 1fr; }
    .career-daiun-tenkan, .career-daiun-chishi { width: 32px; height: 32px; line-height: 30px; font-size: 1.05em; }
}

/* ============================================================
   用語ホバー (term tooltip) と用語集ページ /glossary
   ============================================================ */

/* ─── インライン用語マーカー（テンプレートで {{ term("X") }} を使うと出る） ─── */
.term-marker {
    position: relative;
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted rgba(212, 175, 55, 0.7);
    color: inherit;
    text-decoration: none;
    padding-bottom: 1px;
    transition: background-color 0.2s, border-color 0.2s;
}
.term-marker:hover,
.term-marker:focus-visible {
    background-color: rgba(212, 175, 55, 0.12);
    border-bottom-color: rgba(212, 175, 55, 1);
    outline: none;
}

/* カテゴリ別の色帯（左に細い線） */
.term-marker.term-shichu  { border-bottom-color: rgba(184, 134, 11, 0.7); }
.term-marker.term-gogyo   { border-bottom-color: rgba(82, 152, 102, 0.7); }
.term-marker.term-tsuhen  { border-bottom-color: rgba(176, 92, 130, 0.7); }
.term-marker.term-timing  { border-bottom-color: rgba(95, 130, 178, 0.7); }
.term-marker.term-shibi   { border-bottom-color: rgba(140, 84, 164, 0.7); }
.term-marker.term-ekikyo  { border-bottom-color: rgba(124, 104, 78, 0.7); }
.term-marker.term-tarot   { border-bottom-color: rgba(168, 86, 86, 0.7); }
.term-marker.term-kabala  { border-bottom-color: rgba(106, 122, 168, 0.7); }
.term-marker.term-seimei  { border-bottom-color: rgba(168, 132, 86, 0.7); }
.term-marker.term-chui    { border-bottom-color: rgba(102, 142, 102, 0.7); }
.term-marker.term-tibetan { border-bottom-color: rgba(196, 116, 64, 0.7); }
.term-marker.term-kyusei  { border-bottom-color: rgba(212, 180, 92, 0.7); }
.term-marker.term-fusui   { border-bottom-color: rgba(108, 158, 142, 0.7); }
.term-marker.term-tesou   { border-bottom-color: rgba(180, 130, 100, 0.7); }
.term-marker.term-jinso   { border-bottom-color: rgba(160, 120, 140, 0.7); }
.term-marker.term-misc    { border-bottom-color: rgba(140, 140, 140, 0.7); }

/* ─── ツールチップ本体（hover/focusで表示） ─── */
.term-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    max-width: 320px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #1a1f2e 0%, #0f1320 100%);
    color: #f0e6d2;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    font-size: 0.88em;
    line-height: 1.55;
    text-align: left;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    transform: translateX(-50%) translateY(4px);
}
.term-marker:hover .term-tooltip,
.term-marker:focus-visible .term-tooltip,
.term-marker:focus-within .term-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.term-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(212, 175, 55, 0.5);
}

.term-tooltip-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 4px;
}
.term-tooltip-name {
    font-weight: 700;
    color: #f5d76e;
    font-size: 1em;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
}
.term-tooltip-yomi {
    font-size: 0.78em;
    color: #c0b896;
    font-weight: 400;
}
.term-tooltip-cat {
    margin-left: auto;
    font-size: 0.72em;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    white-space: nowrap;
}
.term-tooltip-body {
    color: #e6dcc4;
    margin: 0 0 8px 0;
}
.term-tooltip-link {
    display: inline-block;
    font-size: 0.82em;
    color: #6ec3e8;
    text-decoration: none;
    border-bottom: 1px solid rgba(110, 195, 232, 0.4);
    padding-bottom: 1px;
}
.term-tooltip-link:hover {
    color: #a3dcf3;
    border-bottom-color: #a3dcf3;
}

/* スマホでは tooltip が画面外に出ないよう調整 */
@media (max-width: 600px) {
    .term-tooltip {
        min-width: 200px;
        max-width: min(280px, calc(100vw - 32px));
        font-size: 0.82em;
        padding: 10px 12px;
    }
}

/* ─── 全ページ共通: 用語集への導線 CTA（footer 前） ─── */
.glossary-cta {
    margin: 32px auto 16px;
    padding: 12px 18px;
    text-align: center;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 8px;
    font-size: 0.92em;
    color: #d4c89a;
}
.glossary-cta a {
    color: #f5d76e;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 215, 110, 0.5);
    padding-bottom: 1px;
    margin-left: 4px;
}
.glossary-cta a:hover {
    color: #ffe88a;
    border-bottom-color: #ffe88a;
}

/* ─── 結果ページのシェアセクション ─── */
.share-section {
    margin: 36px auto 24px;
    max-width: 720px;
    padding: 20px 18px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.06), rgba(110, 195, 232, 0.04));
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 12px;
    text-align: center;
}
.share-section-title {
    margin: 0 0 8px 0;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: #f5d76e;
    font-size: 1.15em;
}
.share-section-lead {
    margin: 0 0 16px 0;
    color: #d4c89a;
    font-size: 0.92em;
    line-height: 1.65;
}
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 24px;
    background: rgba(15, 19, 32, 0.7);
    color: #f0e6d2;
    font-size: 0.92em;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.share-btn-icon {
    font-weight: 700;
    font-size: 1.05em;
}
.share-btn.share-x {
    background: rgba(20, 20, 30, 0.9);
    border-color: #555;
}
.share-btn.share-x:hover { background: #000; color: #fff; }
.share-btn.share-line {
    background: rgba(6, 199, 85, 0.15);
    border-color: rgba(6, 199, 85, 0.45);
    color: #06c755;
}
.share-btn.share-line:hover { background: #06c755; color: #fff; }
.share-btn.share-threads {
    background: rgba(40, 40, 40, 0.85);
    border-color: #666;
}
.share-btn.share-threads:hover { background: #1a1a1a; color: #fff; }
.share-btn.share-copy {
    background: rgba(110, 195, 232, 0.12);
    border-color: rgba(110, 195, 232, 0.4);
    color: #6ec3e8;
}
.share-btn.share-copy:hover { background: #6ec3e8; color: #0f1320; }
.share-btn.share-primary {
    background: linear-gradient(135deg, #e9c75a, #d4af37);
    border-color: #d4af37;
    color: #1a1206;
    font-weight: 700;
    padding: 11px 22px;
    font-size: 1.0em;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}
.share-btn.share-primary:hover { background: linear-gradient(135deg, #f5d76e, #e0bb45); color: #000; }
.share-btn.share-primary .share-btn-icon { font-size: 1.15em; }
.share-btn.share-native {
    background: rgba(140, 84, 164, 0.16);
    border-color: rgba(140, 84, 164, 0.5);
    color: #d3b6e2;
}
.share-btn.share-native:hover { background: #8c54a4; color: #fff; }
.share-img-note {
    margin: 12px 0 0;
    color: #a89c72;
    font-size: 0.8em;
    line-height: 1.5;
}
.share-hint {
    margin: 12px 0 0;
    color: #b0a880;
    font-size: 0.85em;
    min-height: 1.2em;
}
@media (max-width: 600px) {
    .share-section { padding: 14px 12px; margin: 24px auto 16px; }
    .share-btn { padding: 8px 12px; font-size: 0.85em; }
    .share-buttons { gap: 6px; }
}

/* ─── トップページの「はじめての方へ」リンク ─── */
.beginner-link-section {
    margin: 20px auto;
    max-width: 720px;
    padding: 0 16px;
}
.beginner-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(110, 195, 232, 0.10), rgba(110, 195, 232, 0.04));
    border: 1px solid rgba(110, 195, 232, 0.3);
    border-radius: 10px;
    text-decoration: none;
    color: #d4c89a;
    transition: all 0.25s;
}
.beginner-link:hover {
    background: linear-gradient(135deg, rgba(110, 195, 232, 0.18), rgba(110, 195, 232, 0.08));
    border-color: rgba(110, 195, 232, 0.6);
    transform: translateX(4px);
}
.beginner-link-icon {
    font-size: 1.6em;
    flex-shrink: 0;
}
.beginner-link-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.beginner-link-text strong {
    color: #6ec3e8;
    font-size: 1.05em;
}
.beginner-link-sub {
    font-size: 0.85em;
    color: #b0a880;
}
.beginner-link-arrow {
    font-size: 1.4em;
    color: #6ec3e8;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .beginner-link-icon { font-size: 1.3em; }
    .beginner-link-text strong { font-size: 0.95em; }
    .beginner-link-sub { font-size: 0.78em; }
}

/* ─── ヘッダーナビ（用語集リンク） ─── */
.header-nav {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 10px;
    font-size: 0.9em;
}
.header-nav a {
    color: #c0b896;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 14px;
    transition: all 0.2s;
}
.header-nav a:hover {
    color: #f5d76e;
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(212, 175, 55, 0.08);
}

/* ============================================================
   用語集ページ /glossary
   ============================================================ */
.glossary-page {
    max-width: 920px;
    margin: 30px auto;
    padding: 0 16px;
}
.glossary-title {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    font-size: 2em;
    text-align: center;
    color: #f5d76e;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}
.glossary-lead {
    text-align: center;
    color: #d4c89a;
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 36px;
}

/* 初心者向け導入カード */
.beginner-intro {
    margin-bottom: 40px;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 12px;
}
.beginner-intro__title {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    text-align: center;
    color: #f5d76e;
    margin: 0 0 18px 0;
    font-size: 1.3em;
}
.beginner-intro__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.beginner-card {
    padding: 14px 16px;
    background: rgba(15, 19, 32, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
}
.beginner-card h4 {
    margin: 0 0 8px 0;
    color: #f5d76e;
    font-size: 1em;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
}
.beginner-card p {
    margin: 0;
    font-size: 0.9em;
    color: #d4c89a;
    line-height: 1.65;
}
.beginner-card a {
    color: #6ec3e8;
    text-decoration: none;
    border-bottom: 1px dotted rgba(110, 195, 232, 0.5);
}
.beginner-card a:hover {
    color: #a3dcf3;
    border-bottom-color: #a3dcf3;
}

/* 検索ボックス */
.glossary-search-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 0 0 28px 0;
    padding: 12px 0;
    background: linear-gradient(180deg, rgba(15, 19, 32, 0.95) 70%, transparent);
    backdrop-filter: blur(6px);
}
.glossary-search {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 19, 32, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #f0e6d2;
    font-size: 1em;
    font-family: inherit;
}
.glossary-search:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.glossary-search-hint {
    margin: 6px 4px 0;
    font-size: 0.82em;
    color: #b0a880;
    min-height: 1em;
}

/* カテゴリセクション */
.glossary-category {
    margin-bottom: 36px;
}
.glossary-category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 14px;
    color: #fff;
}
.category-badge.term-shichu  { background: #b8860b; }
.category-badge.term-gogyo   { background: #529866; }
.category-badge.term-tsuhen  { background: #b05c82; }
.category-badge.term-timing  { background: #5f82b2; }
.category-badge.term-shibi   { background: #8c54a4; }
.category-badge.term-ekikyo  { background: #7c684e; }
.category-badge.term-tarot   { background: #a85656; }
.category-badge.term-kabala  { background: #6a7aa8; }
.category-badge.term-seimei  { background: #a88456; }
.category-badge.term-chui    { background: #668e66; }
.category-badge.term-tibetan { background: #c47440; }
.category-badge.term-kyusei  { background: #d4b45c; }
.category-badge.term-fusui   { background: #6c9e8e; }
.category-badge.term-tesou   { background: #b48264; }
.category-badge.term-jinso   { background: #a0788c; }
.category-badge.term-misc    { background: #8c8c8c; }
.category-count {
    font-size: 0.85em;
    color: #b0a880;
}

/* 個別エントリ */
.glossary-entries {
    display: grid;
    gap: 14px;
}
.glossary-entry {
    padding: 14px 16px 12px;
    background: rgba(15, 19, 32, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-left: 3px solid rgba(212, 175, 55, 0.4);
    border-radius: 6px;
    scroll-margin-top: 100px;
    transition: background-color 0.3s, border-color 0.3s;
}
.glossary-entry.entry-highlight {
    background: rgba(212, 175, 55, 0.15);
    border-left-color: #f5d76e;
}
.entry-name {
    margin: 0 0 6px 0;
    font-size: 1.15em;
    color: #f5d76e;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
}
.entry-yomi {
    font-size: 0.7em;
    color: #b0a880;
    font-weight: 400;
}
.entry-short {
    margin: 0 0 8px 0;
    color: #e6dcc4;
    line-height: 1.65;
    font-size: 0.95em;
}
.entry-detail {
    margin: 6px 0 8px 0;
    font-size: 0.9em;
}
.entry-detail summary {
    cursor: pointer;
    color: #6ec3e8;
    font-size: 0.85em;
    padding: 4px 0;
    user-select: none;
}
.entry-detail summary:hover {
    color: #a3dcf3;
}
.entry-detail-body {
    padding: 8px 4px 0;
    color: #d4c89a;
    line-height: 1.75;
}
.entry-related {
    margin: 8px 0 0 0;
    font-size: 0.82em;
    color: #b0a880;
}
.entry-related .related-link {
    color: #6ec3e8;
    text-decoration: none;
    margin-right: 8px;
    border-bottom: 1px dotted rgba(110, 195, 232, 0.4);
}
.entry-related .related-link:hover {
    color: #a3dcf3;
}

.glossary-footer-cta {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 8px;
}
.glossary-footer-cta .cta-link {
    color: #f5d76e;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(245, 215, 110, 0.5);
}
.glossary-footer-cta .cta-link:hover {
    color: #ffe88a;
}

@media (max-width: 600px) {
    .glossary-title { font-size: 1.5em; }
    .glossary-lead { font-size: 0.9em; }
    .beginner-intro__grid { grid-template-columns: 1fr; }
    .beginner-card { padding: 12px; }
    .glossary-search { font-size: 0.95em; padding: 10px 14px; }
    .entry-name { font-size: 1em; }
    .entry-short { font-size: 0.88em; }
}

/* ===== ホーム 2クラスタIA（自分を知る / 今を占う） ===== */

.aux-cluster {
    margin: 18px 0;
    padding: 14px 12px 6px;
    border-radius: 12px;
    background: rgba(30, 22, 48, 0.35);
    border: 1px solid rgba(255, 215, 110, 0.18);
}

.aux-cluster-self { border-left: 4px solid rgba(120, 180, 230, 0.7); }
.aux-cluster-now { border-left: 4px solid rgba(255, 200, 110, 0.8); }
.aux-cluster-pro { border-left: 4px solid rgba(200, 160, 90, 0.7); }

.aux-cluster-head {
    margin: 0 0 10px;
    font-size: 1.12em;
    color: #ffd76e;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.aux-cluster-head small {
    font-size: 0.7em;
    color: #b9b0c5;
    font-weight: 400;
}

/* ===== 占術の用途コールアウト（こんな相談に向いています） ===== */

.usecase-section {
    max-width: 860px;
    margin: 0 auto 8px;
    padding: 0 16px;
}

.usecase-card {
    background: rgba(40, 30, 60, 0.5);
    border: 1px solid rgba(255, 215, 110, 0.3);
    border-left: 4px solid rgba(255, 215, 110, 0.7);
    border-radius: 10px;
    padding: 16px 20px;
    color: #f1eed8;
}

.usecase-tk { border-left-color: rgba(180, 140, 220, 0.85); }
.usecase-yj { border-left-color: rgba(255, 200, 110, 0.85); }
.usecase-omikuji { border-left-color: rgba(255, 150, 120, 0.85); }

.omikuji-once-note {
    text-align: center;
    font-size: 0.85em;
    color: #aaa099;
    margin: 10px 0 0;
}

.usecase-head {
    font-weight: 700;
    color: #ffd76e;
    font-size: 1.02em;
    margin-bottom: 6px;
}

.usecase-lead {
    line-height: 1.8;
    margin: 0 0 8px;
}

.usecase-list {
    margin: 0 0 10px;
    padding-left: 1.2em;
    line-height: 1.8;
}

.usecase-list li { margin-bottom: 2px; }

.usecase-compare {
    font-size: 0.85em;
    color: #c9c2bb;
    border-top: 1px dashed rgba(255, 215, 110, 0.25);
    padding-top: 8px;
    margin: 0;
    line-height: 1.8;
}

.usecase-compare a { color: #ffd76e; text-decoration: none; }
.usecase-compare a:hover { text-decoration: underline; }
.usecase-self { color: #aaa099; }

/* ===== 紫微斗数: いま動いている領域（流年/流月/流日） ===== */
.ziwei-now-section {
    margin: 28px 0;
    padding: 18px 20px;
    background: rgba(20, 12, 0, 0.55);
    border: 1px solid rgba(201, 165, 72, 0.3);
    border-radius: 8px;
}
.ziwei-now-title {
    color: var(--color-accent-light);
    font-size: 1.25rem;
    margin: 0 0 6px;
    letter-spacing: 0.06em;
}
.ziwei-now-caption {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 14px;
}
.ziwei-now-caption strong { color: #e6d4a8; }
.ziwei-now-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.ziwei-now-card {
    background: rgba(15, 8, 0, 0.7);
    border: 1px solid rgba(201, 165, 72, 0.28);
    border-radius: 6px;
    padding: 12px 14px;
}
.ziwei-now-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(201, 165, 72, 0.22);
    padding-bottom: 6px;
}
.ziwei-now-label { color: var(--color-accent-light); font-weight: 700; font-size: 0.95rem; }
.ziwei-now-kanshi {
    color: #f3d27e;
    font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}
.ziwei-now-palace {
    color: #e6d4a8;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.ziwei-now-palace small {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 2px;
}
.ziwei-now-stars { line-height: 1.9; }
.ziwei-now-note {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 12px 0 0;
}

/* ===== 紫微斗数: 人生12領域マップ ===== */
.ziwei-domain-section { margin: 28px 0; }
.ziwei-domain-title {
    color: var(--color-accent-light);
    font-size: 1.25rem;
    margin: 0 0 6px;
    letter-spacing: 0.06em;
}
.ziwei-domain-caption {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 14px;
}
.ziwei-domain-caption strong { color: #e6d4a8; }
.ziwei-domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.ziwei-domain-item {
    background: rgba(20, 12, 0, 0.6);
    border: 1px solid rgba(201, 165, 72, 0.25);
    border-left: 3px solid rgba(201, 165, 72, 0.4);
    border-radius: 6px;
    padding: 10px 12px;
}
.ziwei-domain-good { border-left-color: #6fcf97; background: rgba(20, 40, 24, 0.45); }
.ziwei-domain-caution { border-left-color: #e0a04c; background: rgba(45, 30, 8, 0.5); }
.ziwei-domain-active { border-left-color: var(--color-accent); }
.ziwei-domain-muted { border-left-color: #4a4a5a; opacity: 0.82; }
.ziwei-domain-life { box-shadow: 0 0 0 1px rgba(201, 165, 72, 0.55) inset; }
.ziwei-domain-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}
.ziwei-domain-name {
    color: #f3d27e;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.ziwei-domain-palace { color: var(--color-text-muted); font-size: 0.78rem; }
.ziwei-domain-flag {
    display: inline-block;
    background: var(--color-accent);
    color: #1a1000;
    font-weight: 700;
    border-radius: 3px;
    padding: 0 4px;
    margin-left: 3px;
    font-size: 0.72rem;
}
.ziwei-domain-flag-body { background: #9a86c4; color: #14081f; }
.ziwei-domain-status { color: #cdbf9a; font-size: 0.82rem; margin-bottom: 6px; }
.ziwei-domain-good .ziwei-domain-status { color: #8fe0ad; }
.ziwei-domain-caution .ziwei-domain-status { color: #efc07a; }
.ziwei-domain-stars { line-height: 1.9; margin-bottom: 4px; }
.ziwei-domain-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ziwei-domain-badge {
    font-size: 0.72rem;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid transparent;
}
.ziwei-badge-good { background: rgba(111, 207, 151, 0.16); color: #8fe0ad; border-color: rgba(111, 207, 151, 0.4); }
.ziwei-badge-caution { background: rgba(224, 160, 76, 0.16); color: #efc07a; border-color: rgba(224, 160, 76, 0.4); }
.ziwei-domain-note {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 12px 0 0;
}
@media (max-width: 600px) {
    .ziwei-now-grid { grid-template-columns: 1fr; }
}

/* ===== 適職: 矛盾する才能（葛藤フック） ===== */
.career-tension-section {
    background: linear-gradient(135deg, rgba(40, 16, 24, 0.55), rgba(16, 20, 40, 0.55));
    border: 1px solid rgba(201, 165, 72, 0.35);
    border-radius: 10px;
    padding: 18px 20px;
}
.career-tension-lead {
    color: #e6d4a8;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0 0 16px;
}
.career-tension-card {
    background: rgba(10, 8, 18, 0.55);
    border: 1px solid rgba(201, 165, 72, 0.28);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.career-tension-title {
    color: var(--color-accent-light);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
    text-align: center;
}
.career-tension-poles {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
}
.career-tension-pole {
    background: rgba(20, 14, 0, 0.5);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.career-tension-pole-a { border-left: 3px solid #e0734c; }
.career-tension-pole-b { border-left: 3px solid #4c8fe0; }
.career-tension-pole-label {
    color: #f3d27e;
    font-weight: 700;
    font-size: 1.02rem;
}
.career-tension-pole-count {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-left: 4px;
}
.career-tension-pole-desc { color: #cdbf9a; font-size: 0.85rem; line-height: 1.5; }
.career-tension-vs {
    align-self: center;
    color: var(--color-accent-light);
    font-size: 1.4rem;
    font-weight: 700;
}
.career-tension-bottleneck,
.career-tension-integration {
    color: #ddd5c4;
    font-size: 0.9rem;
    line-height: 1.75;
    padding: 8px 0;
}
.career-tension-tag {
    display: inline-block;
    background: rgba(224, 115, 76, 0.18);
    color: #f0a988;
    border: 1px solid rgba(224, 115, 76, 0.4);
    border-radius: 4px;
    padding: 1px 8px;
    font-size: 0.76rem;
    font-weight: 700;
    margin-right: 8px;
}
.career-tension-tag-good {
    background: rgba(111, 207, 151, 0.16);
    color: #8fe0ad;
    border-color: rgba(111, 207, 151, 0.4);
}
.career-tension-note {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.7;
    margin: 6px 0 0;
}

/* 適職: 大運タイムラインの現代局面メタファー */
.career-daiun-phase {
    color: var(--color-accent-light);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 4px;
}
.career-daiun-action {
    color: #cdbf9a;
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 8px;
}
@media (max-width: 600px) {
    .career-tension-poles { grid-template-columns: 1fr; }
    .career-tension-vs { transform: rotate(90deg); }
}


/* ===== 人生鑑定: 過去の答え合わせ ===== */
.lf-recall-section { }
.lf-recall-note { font-size: 0.9em; color: #d9d6ea; line-height: 1.7; margin-bottom: 14px; }
.lf-recall-sub { display: block; font-size: 0.82em; color: var(--color-text-muted); margin-top: 6px; }
.lf-recall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lf-recall-card {
    border-radius: 10px; padding: 12px 14px;
    background: var(--color-bg-card); border: 1px solid rgba(255,255,255,0.06);
}
.lf-recall-good { border-left: 3px solid rgba(233, 204, 110, 0.85); }
.lf-recall-hard { border-left: 3px solid rgba(120, 160, 230, 0.85); }
.lf-recall-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lf-recall-year { font-size: 1.05em; font-weight: 700; color: var(--color-accent-light); }
.lf-recall-age { font-size: 0.8em; color: var(--color-text-muted); }
.lf-recall-badge { margin-left: auto; font-size: 0.72em; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.lf-recall-badge-good { color: #2a2200; background: var(--color-accent-light); }
.lf-recall-badge-hard { color: #0a1430; background: #9fbcf0; }
.lf-recall-kanshi { font-size: 0.78em; color: var(--color-text-muted); margin-bottom: 4px; }
.lf-recall-theme { font-size: 0.86em; color: var(--color-accent); margin-bottom: 6px; }
.lf-recall-body { font-size: 0.9em; color: #f1eed8; line-height: 1.6; }
.lf-recall-foot { font-size: 0.85em; color: #d9d6ea; line-height: 1.65; margin-top: 14px; }
@media (max-width: 600px) {
    .lf-recall-grid { grid-template-columns: 1fr; }
}

/* ===== 過去の答え合わせ: 大運の運気帯（二段構え） ===== */
.lf-recall-band {
    border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
    border-left-width: 4px;
}
.lf-recall-band-good { border-left-color: rgba(233, 204, 110, 0.9); }
.lf-recall-band-hard { border-left-color: rgba(120, 160, 230, 0.9); }
.lf-recall-band-steady { border-left-color: rgba(150, 150, 175, 0.7); }
.lf-recall-band-current { background: rgba(233, 204, 110, 0.06); }
.lf-recall-band-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lf-recall-band-age { font-size: 1.02em; font-weight: 700; color: var(--color-accent-light); }
.lf-recall-band-year { font-size: 0.82em; color: var(--color-text-muted); }
.lf-recall-band-kanshi { font-size: 0.82em; color: #d9d6ea; }
.lf-recall-band-phase { font-size: 0.86em; color: var(--color-accent); margin: 6px 0 10px; }
.lf-recall-band-note { font-size: 0.86em; color: #d9d6ea; line-height: 1.6; margin-top: 4px; }
.lf-recall-band .lf-now {
    font-size: 0.72em; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    color: #2a2200; background: var(--color-accent-light);
}
.lf-recall-band .lf-recall-grid { margin-top: 4px; }

.lf-recall-band-body { font-size: 0.9em; color: #f1eed8; line-height: 1.6; margin-top: 4px; }

/* ===== 過去の答え合わせ：大運帯クリック→モーダル ===== */
.lf-recall-band{cursor:pointer;position:relative;transition:transform .08s ease,box-shadow .15s ease,border-color .15s ease}
.lf-recall-band:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(0,0,0,.28)}
.lf-recall-band:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}
.lf-recall-band-more{margin-left:auto;font-size:.78rem;color:var(--color-accent-light);white-space:nowrap;opacity:.85}
.lf-recall-band-head{align-items:center}

body.lf-recall-modal-lock{overflow:hidden}
.lf-recall-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px}
.lf-recall-modal[hidden]{display:none}
.lf-recall-modal-backdrop{position:absolute;inset:0;background:rgba(6,6,18,.72);backdrop-filter:blur(2px)}
.lf-recall-modal-panel{position:relative;z-index:1;width:100%;max-width:460px;max-height:86vh;overflow-y:auto;background:var(--color-bg-card,#13132b);border:1px solid var(--color-accent,#c9a84c);border-radius:14px;padding:22px 20px 20px;box-shadow:0 20px 60px rgba(0,0,0,.55);animation:lfRecallPop .16s ease}
@keyframes lfRecallPop{from{opacity:0;transform:scale(.96) translateY(6px)}to{opacity:1;transform:none}}
.lf-recall-modal-panel-good{border-color:#7bd88f}
.lf-recall-modal-panel-hard{border-color:#e08a8a}
.lf-recall-modal-x{position:absolute;top:8px;right:10px;background:transparent;border:0;color:var(--color-text-muted,#8888aa);font-size:1.6rem;line-height:1;cursor:pointer;padding:4px 8px}
.lf-recall-modal-x:hover{color:#fff}
.lf-recall-modal-badges{display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.lf-recall-modal-tone{font-size:.8rem;font-weight:700;padding:2px 10px;border-radius:999px;background:rgba(201,168,76,.18);color:var(--color-accent-light,#e8cc6e)}
.lf-recall-modal-panel-good .lf-recall-modal-tone{background:rgba(123,216,143,.16);color:#9fe6ad}
.lf-recall-modal-panel-hard .lf-recall-modal-tone{background:rgba(224,138,138,.16);color:#f0a6a6}
.lf-recall-modal-score{font-size:.82rem;color:var(--color-text-muted,#8888aa)}
.lf-recall-modal-now{font-size:.72rem;font-weight:700;padding:2px 9px;border-radius:999px;background:var(--color-accent,#c9a84c);color:#1a1300}
.lf-recall-modal-title{margin:.1em 0 .15em;font-size:1.18rem;color:#fff}
.lf-recall-modal-sub{font-size:.82rem;color:var(--color-text-muted,#8888aa);margin-bottom:10px}
.lf-recall-modal-phase{font-size:.92rem;color:var(--color-accent-light,#e8cc6e);margin-bottom:10px}
.lf-recall-modal-recall{font-size:.98rem;line-height:1.7;background:rgba(255,255,255,.04);border-left:3px solid var(--color-accent,#c9a84c);border-radius:6px;padding:10px 12px;margin-bottom:14px}
.lf-recall-modal-dl{margin:0}
.lf-recall-modal-row{margin-bottom:10px}
.lf-recall-modal-row dt{font-size:.78rem;font-weight:700;color:var(--color-accent-light,#e8cc6e);margin-bottom:2px}
.lf-recall-modal-row dd{margin:0;font-size:.9rem;line-height:1.65;color:#dcdcec}
.lf-recall-modal-row-caution dt{color:#f0a6a6}

/* 月別短評：括弧内の注意書きは一段小さくグレーで（主文を引き立てる） */
.yf-note-sub{display:inline;font-size:.82em;color:var(--color-text-muted,#8888aa);margin-left:.15em}

/* ===== 紫微斗数 12宮メーター（人生領域マップ） ===== */
.ziwei-meter-list{display:flex;flex-direction:column;gap:10px;margin:14px 0}
.ziwei-meter-row{background:var(--color-bg-card,#13132b);border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:10px 12px}
.ziwei-meter-row.ziwei-meter-life{border-color:var(--color-accent,#c9a84c);box-shadow:0 0 0 1px rgba(201,168,76,.25)}
.ziwei-meter-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.ziwei-meter-name{font-weight:700;color:#fff;font-size:.98rem}
.ziwei-meter-palace{font-size:.78rem;color:var(--color-text-muted,#8888aa)}
.ziwei-meter-score{margin-left:auto;font-weight:700;font-size:1.05rem;color:var(--color-accent-light,#e8cc6e);font-variant-numeric:tabular-nums}
.ziwei-meter-bar{height:10px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden}
.ziwei-meter-fill{height:100%;border-radius:999px;transition:width .5s ease;background:linear-gradient(90deg,#c9a84c,#e8cc6e)}
.ziwei-meter-fill-good{background:linear-gradient(90deg,#c9a84c,#7bd88f)}
.ziwei-meter-fill-caution{background:linear-gradient(90deg,#c97a4c,#e08a8a)}
.ziwei-meter-fill-active{background:linear-gradient(90deg,#c9a84c,#e8cc6e)}
.ziwei-meter-fill-muted{background:linear-gradient(90deg,#5a5a72,#8888aa)}
.ziwei-meter-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin-top:7px;font-size:.78rem}
.ziwei-meter-strength{font-weight:700;color:var(--color-accent-light,#e8cc6e)}
.ziwei-domain-good .ziwei-meter-strength{color:#9fe6ad}
.ziwei-domain-caution .ziwei-meter-strength{color:#f0a6a6}
.ziwei-domain-muted .ziwei-meter-strength{color:var(--color-text-muted,#8888aa)}
.ziwei-meter-status{color:var(--color-text-muted,#8888aa)}
.ziwei-meter-stars{display:inline-flex;flex-wrap:wrap;gap:4px;margin-left:auto}

/* ===== 紫微斗数 時流シンクロ（重複）＋ 流日トリガー補足 ===== */
.ziwei-sync-banner{display:flex;flex-direction:column;gap:3px;margin:10px 0 12px;padding:11px 14px;border-radius:10px;background:linear-gradient(90deg,rgba(201,168,76,.18),rgba(232,204,110,.08));border:1px solid var(--color-accent,#c9a84c)}
.ziwei-sync-triple{background:linear-gradient(90deg,rgba(224,138,138,.22),rgba(201,168,76,.14));border-color:#e08a8a}
.ziwei-sync-title{font-weight:700;color:var(--color-accent-light,#e8cc6e);font-size:.98rem}
.ziwei-sync-triple .ziwei-sync-title{color:#f0a6a6}
.ziwei-sync-body{font-size:.84rem;color:#dcdcec}
.ziwei-now-card-sync{border-color:var(--color-accent,#c9a84c);box-shadow:0 0 0 1px rgba(201,168,76,.3)}
.ziwei-sync-flag{display:inline-block;margin-left:6px;font-size:.68rem;font-weight:700;padding:1px 7px;border-radius:999px;background:var(--color-accent,#c9a84c);color:#1a1300;vertical-align:middle}
.ziwei-now-strength{margin-top:7px;font-size:.78rem;color:var(--color-text-muted,#8888aa)}
.ziwei-now-strength strong{color:var(--color-accent-light,#e8cc6e);font-variant-numeric:tabular-nums}
.ziwei-now-trigger{margin-top:7px;font-size:.78rem;line-height:1.6;color:#dcdcec;background:rgba(255,255,255,.05);border-left:3px solid var(--color-accent,#c9a84c);border-radius:6px;padding:7px 9px}
.ziwei-now-trigger strong{color:var(--color-accent-light,#e8cc6e)}

/* ===== 紫微斗数 自社アップセル（AdSense枠の置換ハウスアド） ===== */
.ziwei-upsell{display:flex;flex-direction:column;gap:5px;margin:22px 0;padding:18px 20px;border-radius:14px;text-decoration:none;background:linear-gradient(120deg,rgba(201,168,76,.22),rgba(232,204,110,.07));border:1.5px solid var(--color-accent,#c9a84c);box-shadow:0 4px 18px rgba(201,168,76,.18);transition:transform .12s ease,box-shadow .2s ease}
.ziwei-upsell:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(201,168,76,.32)}
/* 日替わり（流日トリガー）は希少性を最も強く＝特等席として一段明るく */
.ziwei-upsell-daily{background:linear-gradient(120deg,rgba(232,204,110,.30),rgba(201,168,76,.10));border-color:var(--color-accent-light,#e8cc6e);box-shadow:0 6px 24px rgba(232,204,110,.28)}
.ziwei-upsell-sync{background:linear-gradient(120deg,rgba(201,168,76,.24),rgba(232,204,110,.08))}
.ziwei-upsell-eyebrow{font-size:.74rem;font-weight:800;letter-spacing:.04em;color:#1a1300;background:var(--color-accent,#c9a84c);align-self:flex-start;padding:3px 12px;border-radius:999px}
.ziwei-upsell-daily .ziwei-upsell-eyebrow{background:var(--color-accent-light,#e8cc6e)}
.ziwei-upsell-title{font-size:1.08rem;font-weight:700;color:#fff;line-height:1.5}
.ziwei-upsell-sub{font-size:.86rem;color:var(--color-accent-light,#e8cc6e)}

/* ===== 自社ハウスアド（全占術ページ共通／外部広告の置換） ===== */
.house-ad{display:flex;flex-direction:column;gap:5px;margin:22px auto;max-width:680px;padding:18px 20px;border-radius:14px;text-decoration:none;background:linear-gradient(120deg,rgba(201,168,76,.20),rgba(232,204,110,.06));border:1.5px solid var(--color-accent,#c9a84c);box-shadow:0 4px 18px rgba(201,168,76,.16);transition:transform .12s ease,box-shadow .2s ease}
.house-ad:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(201,168,76,.30)}
.house-ad-eyebrow{font-size:.74rem;font-weight:800;letter-spacing:.04em;color:#1a1300;background:var(--color-accent,#c9a84c);align-self:flex-start;padding:3px 12px;border-radius:999px}
.house-ad-title{font-size:1.06rem;font-weight:700;color:#fff;line-height:1.5}
.house-ad-sub{font-size:.86rem;color:var(--color-accent-light,#e8cc6e)}

/* ===== 生まれ時刻 未入力時の「飢餓感」コンポーネント ===== */
.hour-lock{display:flex;gap:14px;align-items:flex-start;margin:20px auto;max-width:700px;padding:18px 20px;border-radius:14px;background:linear-gradient(120deg,rgba(90,90,114,.20),rgba(201,168,76,.08));border:1.5px dashed var(--color-accent,#c9a84c)}
.hour-lock-icon{font-size:1.8rem;line-height:1.2;flex-shrink:0}
.hour-lock-body{display:flex;flex-direction:column;gap:7px}
.hour-lock-title{margin:0;font-size:1.04rem;font-weight:700;color:#fff;line-height:1.5}
.hour-lock-title strong{color:var(--color-accent-light,#e8cc6e)}
.hour-lock-text{margin:0;font-size:.9rem;line-height:1.75;color:#dcdcec}
.hour-lock-text strong{color:var(--color-accent-light,#e8cc6e)}
.hour-lock-note{margin:0;font-size:.8rem;line-height:1.6;color:var(--color-text-muted,#8888aa)}
.hour-lock-cta{align-self:flex-start;margin-top:4px;padding:10px 18px;border-radius:999px;text-decoration:none;font-weight:700;font-size:.92rem;color:#1a1300;background:linear-gradient(90deg,#c9a84c,#e8cc6e);box-shadow:0 4px 14px rgba(201,168,76,.28);transition:transform .12s ease,box-shadow .2s ease}
.hour-lock-cta:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(201,168,76,.4)}

/* 月別短評：命式に欠けた用神が巡る“絶好機”月の特別ハイライト */
.yf-note-boost{margin-top:6px;font-size:.82rem;line-height:1.55;color:#1a1300;background:linear-gradient(90deg,#e8cc6e,#c9a84c);border-radius:6px;padding:6px 9px;font-weight:600}

/* 過去の答え合わせ → 次の10年運へのブリッジ（先行公開・継続動線） */
.lf-recall-bridge{display:flex;flex-direction:column;gap:4px;margin:14px 0 6px;padding:14px 16px;border-radius:12px;text-decoration:none;background:linear-gradient(120deg,rgba(201,168,76,.18),rgba(232,204,110,.05));border:1.5px solid var(--color-accent,#c9a84c);transition:transform .12s ease,box-shadow .2s ease}
.lf-recall-bridge:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(201,168,76,.28)}
.lf-recall-bridge-eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.04em;color:#1a1300;background:var(--color-accent,#c9a84c);align-self:flex-start;padding:2px 11px;border-radius:999px}
.lf-recall-bridge-title{font-size:1.0rem;font-weight:700;color:#fff;line-height:1.5}
.lf-recall-bridge-sub{font-size:.84rem;color:var(--color-accent-light,#e8cc6e)}

/* 次の10年が“大覚醒期”のときのブリッジ強調（赤金・特等席） */
.lf-recall-bridge-awaken{background:linear-gradient(120deg,rgba(224,138,138,.22),rgba(232,204,110,.10));border-color:#e08a8a;box-shadow:0 6px 24px rgba(224,138,138,.26)}
.lf-recall-bridge-awaken .lf-recall-bridge-eyebrow{background:#e08a8a;color:#1a0606}
.lf-recall-bridge-awaken .lf-recall-bridge-sub{color:#f3d9a6}

/* 12宮メーター：簡易廟旺（星×宮の五行相性）バッジ */
.ziwei-meter-bright{color:#9fe6ad;font-weight:600}
.ziwei-domain-caution .ziwei-meter-bright{color:#e8cc6e}

/* ハウスアド：コンテキスト直行課金（デュアルCTA） */
.house-ad{align-items:flex-start}
.house-ad-form{margin-top:10px;width:100%}
.house-ad-btn{display:inline-block;width:100%;max-width:520px;cursor:pointer;border:0;border-radius:999px;padding:13px 20px;font-size:1rem;font-weight:800;color:#1a1300;background:linear-gradient(90deg,#c9a84c,#e8cc6e);box-shadow:0 4px 16px rgba(201,168,76,.32);transition:transform .12s ease,box-shadow .2s ease;text-align:center}
.house-ad-btn:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(201,168,76,.45)}
.house-ad-alt{display:inline-block;margin-top:9px;font-size:.84rem;color:var(--color-accent-light,#e8cc6e);text-decoration:underline;text-underline-offset:3px}
.house-ad-alt:hover{color:#fff}

/* ===== /pricing 3層リダクション ===== */
.pricing-single-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;max-width:900px;margin:18px auto 6px;padding:18px 22px;border-radius:16px;background:linear-gradient(120deg,rgba(232,204,110,.22),rgba(201,168,76,.08));border:2px solid var(--color-accent,#c9a84c);box-shadow:0 6px 24px rgba(201,168,76,.20)}
.pricing-single-copy{display:flex;flex-direction:column;gap:3px;min-width:240px;flex:1}
.pricing-single-eyebrow{font-size:.8rem;font-weight:800;color:var(--color-accent-light,#e8cc6e)}
.pricing-single-title{font-size:1.3rem;font-weight:800;color:#fff}
.pricing-single-title strong{color:var(--color-accent-light,#e8cc6e)}
.pricing-single-sub{font-size:.82rem;color:#dcdcec}
.pricing-single-form{flex-shrink:0}
.pricing-single-btn{font-size:1.05rem;font-weight:800;white-space:nowrap}
.pricing-sub-head{text-align:center;color:var(--color-text-muted,#8888aa);font-size:.92rem;margin:22px 0 10px}
.pricing-grid-3{max-width:1000px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:stretch}
@media(max-width:820px){.pricing-grid-3{grid-template-columns:1fr}}
.pricing-card-lead{font-size:.84rem;color:var(--color-text-muted,#8888aa);margin:.2em 0 .6em;min-height:2.4em}
.pricing-card-anchor{opacity:.96}
.pricing-badge-exec{background:#5a5a72;color:#fff}
.pricing-minor{max-width:900px;margin:18px auto 4px;text-align:center;font-size:.84rem;color:var(--color-text-muted,#8888aa);display:flex;flex-wrap:wrap;gap:8px 12px;justify-content:center;align-items:center}
.pricing-minor a{color:var(--color-accent-light,#e8cc6e);text-decoration:underline;text-underline-offset:3px}
.pricing-minor-sep{opacity:.5}
.pricing-minor-form{display:inline}
.pricing-minor-btn{background:none;border:0;color:var(--color-accent-light,#e8cc6e);text-decoration:underline;text-underline-offset:3px;cursor:pointer;font-size:.84rem;padding:0}
.pricing-minor-btn:hover{color:#fff}
