/* =============================================
   星詠みタロット LP スタイルシート
   ============================================= */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-deep:    #fdf5e6;
    --bg-dark:    #f8e8c8;
    --bg-mid:     #f0d8a0;
    --bg-card:    #fffcf0;
    --gold:       #c9a840;
    --gold-light: #e09830;
    --gold-dark:  #8b6818;
    --purple:     #cc2200;
    --purple-light: #e63820;
    --text-main:  #1a0503;
    --text-sub:   #7a3510;
    --text-dim:   #b07040;
    --border:     rgba(180,30,10,0.18);
    --border-glow: rgba(201,160,64,0.55);
    --font-ja: 'Noto Serif JP', serif;
    --font-en: 'Cinzel', serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ja);
    background-color: var(--bg-deep);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 2 L58 30 L30 58 L2 30 Z' stroke='rgba(180%2C30%2C10%2C0.07)' fill='none' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.pc-br { display: inline; }

/* ── Star field (light pink sparkles) ── */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.star-layer {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(201,160,64,0.35) 0%, transparent 100%),
        radial-gradient(2px 2px at 30% 50%, rgba(201,160,64,0.25) 0%, transparent 100%),
        radial-gradient(2px 2px at 55% 15%, rgba(201,160,64,0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 70% 65%, rgba(180,30,10,0.25) 0%, transparent 100%),
        radial-gradient(2px 2px at 85% 35%, rgba(201,160,64,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 20% 80%, rgba(180,30,10,0.2) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 45% 90%, rgba(201,160,64,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 92% 10%, rgba(201,160,64,0.22) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 60% 40%, rgba(180,30,10,0.18) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 5% 55%, rgba(201,160,64,0.22) 0%, transparent 100%),
        radial-gradient(2.5px 2.5px at 38% 72%, rgba(201,160,64,0.35) 0%, transparent 100%),
        radial-gradient(2.5px 2.5px at 78% 88%, rgba(180,30,10,0.28) 0%, transparent 100%),
        radial-gradient(2.5px 2.5px at 15% 42%, rgba(224,160,64,0.35) 0%, transparent 100%);
}
.layer1 { animation: twinkle 6s infinite alternate; }
.layer2 { animation: twinkle 9s 2s infinite alternate; transform: scale(1.3) rotate(15deg); }
.layer3 { animation: twinkle 12s 4s infinite alternate; transform: scale(0.7) rotate(-10deg); }

@keyframes twinkle {
    from { opacity: 0.4; }
    to   { opacity: 1; }
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(240,210,130,0.22);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,64,0.45);
    background-image: linear-gradient(105deg, transparent 20%, rgba(255,220,80,0.25) 50%, transparent 80%);
    background-size: 300% 100%;
    animation: header-shimmer 12s ease-in-out infinite;
}
@keyframes header-shimmer {
    0%   { background-position: 200% center; }
    50%  { background-position: -50% center; }
    100% { background-position: 200% center; }
}
.header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}
.header-logo {
    position: absolute;
    left: max(16px, calc(50% - 600px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-en);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold-dark);
    font-weight: 700;
}
.logo-symbol { font-size: 1.3rem; opacity: 1; line-height: 1; color: var(--gold-dark); }
.logo-text { font-family: var(--font-ja); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1; color: var(--gold-dark); }
.site-logo-mark {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(92,61,22,0.2));
    transition: transform .3s ease, filter .3s ease;
}
.site-logo-icon {
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fdf5e6;
    box-shadow: 0 2px 8px rgba(107,66,90,0.3);
    transition: transform .3s ease, box-shadow .3s ease;
}
.site-logo-text { flex-shrink: 0; }
.header-logo .site-logo-icon { position: relative; top: 0; }
.footer-logo .site-logo-icon { position: relative; top: 0; }
.header-logo:hover .site-logo-mark,
.footer-logo:hover .site-logo-mark {
    transform: scale(1.03);
    filter: drop-shadow(0 2px 5px rgba(92,61,22,0.3));
}
.header-logo:hover .site-logo-icon,
.footer-logo:hover .site-logo-icon {
    transform: scale(1.06);
    box-shadow: 0 3px 10px rgba(107,66,90,0.4);
}
.header-nav {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 0.86rem;
    line-height: 1;
    flex-wrap: nowrap;
    white-space: nowrap;
}
.header-nav a { color: var(--text-sub); }
.header-nav a:hover { color: var(--gold-light); }
.nav-free {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-deep) !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
}
.nav-login {
    color: var(--gold-dark) !important;
    padding: 9px 22px;
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background .2s, transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.nav-login:hover { color: var(--gold-dark) !important; background: rgba(201,168,64,0.1); transform: translateY(-1px); }
.btn-signup {
    background: linear-gradient(135deg, #8b1800, var(--gold));
    color: #fff !important;
    padding: 9px 22px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 4px 16px rgba(180,30,10,0.3);
    transition: transform .2s, box-shadow .2s;
    white-space: nowrap;
}
.btn-signup:hover { color: #fff !important; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(180,30,10,0.42); }

/* ── ハンバーガー（モバイルメニュー） ── */
.header-toggle-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gold-dark);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}
.header-mobile-panel { display: none; }
.header-mobile-panel.open { display: block; }
.header-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20,10,0,0.5);
    z-index: 149;
}
.header-mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: 100%;
    background: var(--bg-card);
    box-shadow: -6px 0 30px rgba(0,0,0,0.25);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    z-index: 150;
}
.header-mobile-drawer a {
    display: block;
    padding: 13px 6px;
    color: var(--text-sub);
    border-bottom: 1px solid var(--border);
    font-size: 0.96rem;
}
.header-mobile-drawer a:hover { color: var(--gold-light); }
.header-mobile-drawer .header-mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}
.header-mobile-drawer .header-mobile-buttons a {
    border-bottom: none;
    text-align: center;
    padding: 12px;
    border-radius: 24px;
}
.header-mobile-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-dim);
    cursor: pointer;
    margin-bottom: 8px;
}
@media (max-width: 900px) {
    .header-nav { display: none; }
    .header-toggle-btn { display: flex; }
}

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    text-align: left;
    padding: 100px 24px 60px;
    overflow: hidden;
}
.hero-bg-photo {
    position: absolute;
    right: 2%;
    top: 0;
    height: 100%;
    width: 52%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.82;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 20%, black 45%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 20%, black 45%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, rgba(201,160,64,0.22) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 30% 70%, rgba(180,30,10,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.hero-orb {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(201,160,64,0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-left {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: calc(50% - 600px);
    width: 760px;
    max-width: 760px;
}
.hero-content { position: relative; z-index: 2; width: 100%; text-align: left; margin-top: -120px; }
.hero-eyebrow {
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
}
.hero-title {
    font-size: clamp(1.4rem, 3.2vw, 2.2rem);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 24px;
    color: #c84020;
    white-space: nowrap;
    text-align: left;
    text-shadow:
        -2px -2px 0 rgba(255,224,64,0.4),
         2px -2px 0 rgba(255,224,64,0.4),
        -2px  2px 0 rgba(255,224,64,0.4),
         2px  2px 0 rgba(255,224,64,0.4),
         0   -2px 0 rgba(255,224,64,0.4),
         0    2px 0 rgba(255,224,64,0.4),
        -2px  0   0 rgba(255,224,64,0.4),
         2px  0   0 rgba(255,224,64,0.4);
}
.hero-title-sub {
    font-size: 0.65em;
    font-weight: 300;
    display: block;
    margin-top: 10px;
    color: var(--gold);
    -webkit-text-fill-color: var(--gold);
}
.hero-desc {
    font-size: 1.05rem;
    color: var(--text-sub);
    margin-bottom: 32px;
    line-height: 2;
}
.hero-video-row .hero-desc { flex: 1; min-width: 0; margin-bottom: 0; }
.hero-badges {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}
.badge {
    background: rgba(181,83,122,0.08);
    border: 1px solid var(--border);
    color: var(--gold-dark);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
}
.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, #8b1800, var(--gold), #8b1800);
    background-size: 200% 100%;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 52px;
    border-radius: 50px;
    letter-spacing: 0.1em;
    animation: shimmer 3s infinite;
    box-shadow: 0 4px 24px rgba(180,30,10,0.35);
}
.btn-hero:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(180,30,10,0.5);
}
@keyframes shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 「先生と話す楽しさ」を伝える約8秒ループの実写デモ動画（Veoで生成）。動画を左、3行の説明文を右に並べる */
.hero-video-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 4px 0 8px;
}
.hero-video-demo {
    position: relative;
    width: 220px;
    flex-shrink: 0;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 34px rgba(201,160,64,0.28);
    background: #000;
}
.hero-video-demo-el { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video-demo-badge {
    position: absolute;
    bottom: 8px; left: 8px; right: 8px;
    background: rgba(10,5,0,0.62);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.4;
}

/* ── Fortune Teller ── */
.fortune-teller {
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 60px 0;
}
.teller-profile {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}
.teller-avatar { flex-shrink: 0; }
.avatar-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 28px rgba(201,160,64,0.35);
    overflow: hidden;
}
.teller-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.avatar-icon { font-size: 3rem; color: var(--gold); }
.teller-label { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.2em; margin-bottom: 6px; }
.teller-name { font-size: 1.5rem; font-weight: 700; color: var(--gold-light); margin-bottom: 4px; }
.teller-name span { font-size: 1.8rem; }
.teller-title { font-size: 0.88rem; color: var(--purple-light); margin-bottom: 14px; letter-spacing: 0.1em; }
.teller-desc { font-size: 0.95rem; color: var(--text-sub); line-height: 2; margin-bottom: 12px; }
.teller-stars { color: var(--gold); font-size: 1.1rem; }
.teller-stars span { font-size: 0.82rem; color: var(--text-sub); }

/* ── 固定CTAバナー ── */
.fixed-cta-btn {
    position: fixed;
    bottom: 28px;
    bottom: calc(28px + env(safe-area-inset-bottom));
    right: 28px;
    right: calc(28px + env(safe-area-inset-right));
    z-index: 999;
    display: block;
    width: 148px;
    height: 148px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 60px 10px rgba(0,0,0,0.28), 0 0 0 0 rgba(201,168,64,0.5);
    text-decoration: none;
    animation: fixed-cta-pulse 2.5s ease-in-out infinite;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fixed-cta-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 14px 36px rgba(0,0,0,0.5), 0 0 70px 14px rgba(0,0,0,0.32);
}
.fixed-cta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.fixed-cta-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    text-align: center;
    padding: 14px 6px 8px;
    font-family: var(--font-ja);
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    white-space: normal;
    background: linear-gradient(to top, rgba(80,10,0,0.92) 0%, rgba(80,10,0,0.6) 70%, transparent 100%);
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.fixed-cta-icon { font-size: 1rem; }
@keyframes fixed-cta-pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 60px 10px rgba(0,0,0,0.28), 0 0 0 0 rgba(201,168,64,0.5); }
    50%       { box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 60px 10px rgba(0,0,0,0.28), 0 0 0 6px rgba(201,168,64,0); }
}
@media (max-width: 640px) {
    .fixed-cta-btn { bottom: calc(16px + env(safe-area-inset-bottom)); right: calc(16px + env(safe-area-inset-right)); width: 100px; height: 100px; }
    .fixed-cta-text { font-size: 0.52rem; padding: 10px 4px 5px; }
}

/* ── Section Common ── */
.section-special,
.section-category,
.section-free,
.section-reviews,
.section-cta {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}
.section-dark { background: var(--bg-dark); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
    font-family: var(--font-en);
    font-size: 0.82rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    margin-bottom: 12px;
    text-transform: uppercase;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}
.section-subtitle { font-size: 0.95rem; color: var(--text-sub); line-height: 2; }

/* ── Special Menu Grid ── */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.menu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    position: relative;
    transition: border-color .2s, box-shadow .2s;
}
.menu-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 4px 28px rgba(180,30,10,0.12);
}
.menu-card.featured {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(201,160,64,0.22);
}
.menu-card-tag {
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-deep);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 10px;
}
.menu-card-category {
    font-size: 0.78rem;
    color: var(--purple-light);
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    margin-top: 4px;
}
.menu-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.6;
    margin-bottom: 14px;
}
.menu-card-desc {
    font-size: 0.88rem;
    color: var(--text-sub);
    line-height: 1.9;
    margin-bottom: 20px;
}
.menu-card-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.price-label { font-size: 0.75rem; color: var(--text-dim); }
.price-value { font-size: 1.4rem; font-weight: 700; color: var(--gold); }
.price-normal { font-size: 0.78rem; color: var(--text-dim); text-decoration: line-through; }
.btn-menu {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-mid), var(--bg-deep));
    border: 1px solid var(--gold);
    color: var(--gold-dark);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: background .2s, color .2s;
}
.btn-menu:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
}

/* ── Category Header ── */
.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,252,240,0.7);
}
.category-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--gold);
}
.love-header { border-color: rgba(180,30,10,0.3); }
.love-header .category-icon { color: #cc2200; }
.marriage-header { border-color: rgba(40,130,90,0.35); }
.marriage-header .category-icon { color: #2a8050; }
.life-header { border-color: var(--border); }
.category-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 12px;
}
.category-header p { font-size: 0.92rem; color: var(--text-sub); line-height: 2; }

/* ── Menu List ── */
.menu-list { display: flex; flex-direction: column; gap: 1px; }
.menu-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 24px;
    margin-bottom: 12px;
    transition: border-color .2s;
}
.menu-item:hover { border-color: var(--border-glow); }
.menu-item-tag {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    background: rgba(201,168,76,0.12);
    border: 1px solid var(--border);
    color: var(--gold);
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
    margin-top: 4px;
}
.menu-item-body { flex: 1; }
.menu-item-body h3 { font-size: 0.98rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; line-height: 1.6; }
.menu-item-body h3 a { color: var(--text-main); }
.menu-item-body h3 a:hover { color: var(--gold-light); }
.menu-item-body p { font-size: 0.85rem; color: var(--text-sub); line-height: 1.9; }
.menu-item-price {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 110px;
}
.mi-label { font-size: 0.72rem; color: var(--text-dim); }
.mi-price { font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.mi-normal { font-size: 0.72rem; color: var(--text-dim); text-decoration: line-through; }
.btn-sm {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-deep);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 6px;
    margin-top: 8px;
    white-space: nowrap;
}
.btn-sm:hover { color: var(--bg-deep); opacity: 0.88; }
.btn-category-more {
    display: block;
    text-align: center;
    margin-top: 24px;
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 8px;
    transition: background .2s;
}
.btn-category-more:hover { background: rgba(201,168,76,0.08); color: var(--gold-light); }

/* ── Free Section ── */
.section-free {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.free-label { color: var(--purple); }
.free-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.free-card {
    background: var(--bg-card);
    border: 1px solid rgba(180,30,10,0.2);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: border-color .2s, box-shadow .2s;
}
.free-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 24px rgba(201,160,64,0.22);
}
.free-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8b1800, var(--gold));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 18px;
    border-radius: 10px;
}
.free-card-symbol { font-size: 2.8rem; color: var(--purple); margin: 8px 0 16px; }
.free-card h3 { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 12px; line-height: 1.6; }
.free-card p { font-size: 0.86rem; color: var(--text-sub); line-height: 1.9; margin-bottom: 24px; }
.btn-free {
    display: inline-block;
    background: linear-gradient(135deg, #8b1800, var(--gold));
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 12px 36px;
    border-radius: 50px;
    transition: opacity .2s, transform .2s;
}
.btn-free:hover { color: #fff; opacity: 0.88; transform: translateY(-2px); }

/* ── Reviews ── */
.section-reviews { background: var(--bg-dark); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
}
.review-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 14px; }
.review-text { font-size: 0.9rem; color: var(--text-sub); line-height: 2; margin-bottom: 14px; font-style: italic; }
.review-author { font-size: 0.8rem; color: var(--text-dim); }

/* ── CTA ── */
.section-cta {
    background: linear-gradient(135deg, #f8e8c0, #fdf5e0, #f8e8c0);
    text-align: center;
    border-top: 1px solid var(--border);
}
.section-cta h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 16px;
}
.section-cta p { font-size: 0.95rem; color: var(--text-sub); margin-bottom: 36px; }
.btn-cta {
    display: inline-block;
    background: linear-gradient(135deg, #8b1800, var(--gold), #8b1800);
    background-size: 200% 100%;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 60px;
    border-radius: 50px;
    letter-spacing: 0.1em;
    animation: shimmer 3s infinite;
    box-shadow: 0 4px 24px rgba(180,30,10,0.3);
}
.btn-cta:hover { color: #fff; transform: translateY(-2px); }

/* ── Footer ── */
.site-footer {
    position: relative;
    z-index: 1;
    background: #f5e8c8;
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}
.site-footer .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 28px;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 28px;
    margin-bottom: 40px;
}
.footer-nav a { font-size: 0.82rem; color: var(--text-dim); }
.footer-nav a:hover { color: var(--gold); }
.footer-notice {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 32px;
}
.footer-notice h3 {
    font-size: 0.88rem;
    color: var(--text-sub);
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.footer-notice ol {
    padding-left: 20px;
}
.footer-notice li {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 2;
    margin-bottom: 6px;
}
.footer-copy {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .pc-br { display: none; }
    .header-nav { gap: 12px; font-size: 0.78rem; }
    .teller-profile { flex-direction: column; align-items: center; text-align: center; }
    .menu-item { flex-direction: column; gap: 12px; }
    .menu-item-price { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .hero-video-row { flex-direction: column; }
    .hero-video-demo { width: 170px; margin: 0 auto; }
    .hero-video-row .hero-desc { flex: none; margin-bottom: 8px; }
    .hero-video-demo-badge { font-size: 0.54rem; padding: 4px 6px; }
}
/* .hero-leftの固定760px幅は900px未満の画面幅では既に収まりきらないため、この時点で流動幅に切り替える
   （768px用のブレークポイントとは別に、タブレット幅でも横スクロールが発生しないようにするため） */
@media (max-width: 900px) {
    .hero-left { margin-left: 0; width: 100%; max-width: 100%; }
    .hero-title { white-space: normal; }
}

/* =============================================
   Step Flow (How it works)
   ============================================= */
.step-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
}
.step-num {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 60px;
    height: 28px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    border-radius: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0 12px;
    display: flex; align-items: center; justify-content: center;
    white-space: nowrap;
}
.step-icon { font-size: 2.4rem; margin-bottom: 12px; }
.step-item h3 { font-size: 1.2rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 8px; background: rgba(201,168,64,0.12); border-radius: 6px; padding: 6px 14px; display: inline-block; }
.step-item p { font-size: 1rem; color: var(--text-sub); line-height: 1.9; }
.step-arrow {
    display: none;
}
@media (max-width: 640px) { .step-arrow { display: none; } .step-item { min-width: 100%; margin-bottom: 20px; } }

/* LP hero-title-accent */
.hero-title-accent {
    display: block;
    font-size: 1em;
    color: #c84020;
    text-shadow:
        -2px -2px 0 rgba(255,224,64,0.4),
         2px -2px 0 rgba(255,224,64,0.4),
        -2px  2px 0 rgba(255,224,64,0.4),
         2px  2px 0 rgba(255,224,64,0.4),
         0   -2px 0 rgba(255,224,64,0.4),
         0    2px 0 rgba(255,224,64,0.4),
        -2px  0   0 rgba(255,224,64,0.4),
         2px  0   0 rgba(255,224,64,0.4);
}

/* =============================================
   Fortune Page (鑑定フォーム)
   ============================================= */
.fortune-main {
    position: relative;
    z-index: 1;
    padding: 60px 0 80px;
    min-height: calc(100vh - 60px);
}

/* ステッパー */
.form-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}
.stepper-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-dim);
    padding: 8px 16px;
}
.stepper-item span {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--bg-mid);
    border: 1px solid var(--border);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700;
}
.stepper-item.active { color: var(--gold-dark); }
.stepper-item.active span { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); border: none; color: #fff; }
.stepper-line { width: 40px; height: 1px; background: var(--border); }

/* フォームカード */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 48px;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: 0 4px 32px rgba(180,30,10,0.06);
}
.form-card-header { text-align: center; margin-bottom: 36px; }
.form-card-header h1 { font-size: 1.6rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 8px; }
.form-card-header p { font-size: 0.92rem; color: var(--text-sub); }
.form-error {
    background: #ffd8e4;
    border: 1px solid #e06080;
    color: #8a0030;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 24px;
}
.field-error-msg {
    display: none;
    color: #d0004a;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 8px;
}
.field-error-msg.show { display: block; }
.form-group { margin-bottom: 28px; }
.form-label { display: block; font-weight: 700; color: var(--text-main); font-size: 0.95rem; margin-bottom: 10px; }
.form-hint { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 10px; }

/* ファイルドロップゾーン */
.file-drop-zone {
    border: 2px dashed var(--border-glow);
    border-radius: 12px;
    background: rgba(253,245,230,0.6);
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.file-drop-zone:hover, .file-drop-zone.dragging {
    border-color: var(--gold);
    background: rgba(180,30,10,0.04);
}
.file-input {
    position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.drop-placeholder { text-align: center; padding: 20px; pointer-events: none; }
.drop-icon { font-size: 2.8rem; margin-bottom: 12px; }
.drop-text { font-size: 0.95rem; color: var(--text-sub); line-height: 1.8; }
.drop-text span { color: var(--gold); text-decoration: underline; }
.drop-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 8px; }
.drop-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px;
    width: 100%;
}
.drop-preview img { max-height: 240px; max-width: 100%; border-radius: 8px; object-fit: contain; }
.preview-remove {
    background: rgba(180,30,10,0.08);
    border: 1px solid var(--border-glow);
    color: var(--gold-dark);
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    position: relative; z-index: 2;
}

/* 部屋グリッド */
.room-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.room-option {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
}
.room-option input { display: none; }
.room-option span {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 6px;
    font-size: 0.82rem;
    color: var(--text-sub);
    transition: all .15s;
}
.room-option input:checked + span {
    background: linear-gradient(135deg, rgba(180,30,10,0.12), rgba(201,160,64,0.08));
    border-color: var(--gold);
    color: var(--gold-dark);
    font-weight: 700;
}
.room-option:hover span { border-color: var(--border-glow); }

/* コンパス */
.compass-grid {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.compass-row { display: flex; gap: 6px; }
.compass-option {
    width: 72px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border-radius: 8px;
    font-size: 0.82rem; font-weight: 700;
    border: 1px solid var(--border);
    background: var(--bg-deep);
    color: var(--text-sub);
    transition: all .15s;
}
.compass-option.center {
    background: var(--bg-mid);
    font-size: 1.4rem; color: var(--gold);
    cursor: default;
}
.compass-option input { display: none; }
.compass-option:has(input:checked) {
    background: linear-gradient(135deg, rgba(180,30,10,0.15), rgba(201,160,64,0.08));
    border-color: var(--gold);
    color: var(--gold-dark);
}
.compass-option:hover:not(.center) { border-color: var(--border-glow); }
.direction-unknown {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-sub); cursor: pointer;
}
.direction-unknown input { accent-color: var(--gold); }

/* テキストエリア */
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-ja);
    font-size: 16px;
    line-height: 1.8;
    resize: vertical;
    transition: border-color .2s;
}
.form-textarea:focus { outline: none; border-color: var(--gold); }

/* 送信ボタン */
.btn-submit {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #8b1800, var(--gold), #8b1800);
    background-size: 200% 100%;
    color: #fff;
    font-family: var(--font-ja);
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.1em;
    animation: shimmer 3s infinite;
    box-shadow: 0 4px 24px rgba(180,30,10,0.35);
    transition: transform .2s, box-shadow .2s;
    margin-top: 8px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(180,30,10,0.5); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

@media (max-width: 640px) {
    .form-card { padding: 24px 20px; }
    .room-grid { grid-template-columns: repeat(2, 1fr); }
    .compass-option { width: 60px; height: 44px; font-size: 0.75rem; }
}

/* Result Page (鑑定結果) のスタイルは dashboard/result.html 内の <style> で完結管理 */

/* =============================================
   Info Pages (監修者紹介、風水とは、会社概要 etc.)
   ============================================= */
.info-main {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 5rem 2rem 5rem;
}
.info-main-embed {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.info-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.info-hero h1 {
    font-family: var(--font-ja);
    font-size: 2rem;
    color: var(--gold-dark);
    margin-bottom: .5rem;
    font-weight: 700;
}
.info-hero p {
    color: var(--text-dim);
    font-size: .92rem;
}
.info-section {
    margin-bottom: 2.5rem;
}
.info-section h2 {
    font-family: var(--font-ja);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-dark);
    border-left: 3px solid var(--gold);
    padding-left: .75rem;
    margin-bottom: 1rem;
}
.info-section p,
.info-section li {
    color: var(--text-main);
    line-height: 1.95;
    font-size: .95rem;
}
.info-section ul,
.info-section ol {
    padding-left: 1.5rem;
}
.info-section li {
    margin-bottom: .4rem;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .5rem;
}
.info-table th,
.info-table td {
    padding: .8rem 1rem;
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: .9rem;
    line-height: 1.8;
    vertical-align: top;
}
.info-table th {
    background: var(--bg-mid);
    color: var(--gold-dark);
    font-weight: 400;
    white-space: nowrap;
    width: 28%;
}
.step-numbered {
    counter-reset: info-step;
    list-style: none;
    padding: 0;
}
.step-numbered li {
    counter-increment: info-step;
    position: relative;
    padding: 1rem 1rem 1rem 3.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: .75rem;
    color: var(--text-main);
    font-size: .95rem;
    line-height: 1.85;
}
.step-numbered li::before {
    content: counter(info-step);
    position: absolute;
    left: 1rem;
    top: 1rem;
    width: 1.8rem;
    height: 1.8rem;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .82rem;
}
.step-numbered li strong {
    display: block;
    color: var(--gold-dark);
    font-weight: 700;
    margin-bottom: .25rem;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-q {
    background: var(--bg-mid);
    padding: .9rem 1rem;
    color: var(--gold-dark);
    font-size: .95rem;
    font-weight: 700;
}
.faq-q::before { content: 'Q. '; }
.faq-a {
    background: var(--bg-card);
    padding: .9rem 1rem;
    color: var(--text-main);
    font-size: .92rem;
    line-height: 1.85;
}
.faq-a::before { content: 'A.  '; color: var(--gold-dark); font-weight: 700; }
.supervisor-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    margin-bottom: 2rem;
}
.supervisor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 3px solid var(--border-glow);
}
.supervisor-name {
    font-family: var(--font-ja);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: .2rem;
}
.supervisor-label {
    color: var(--text-dim);
    font-size: .84rem;
    margin-bottom: .75rem;
}
.supervisor-body {
    color: var(--text-main);
    font-size: .93rem;
    line-height: 1.9;
}
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
}
.contact-form .cform-group {
    margin-bottom: 1.25rem;
}

/* =============================================
   共通UIコンポーネント（認証・ダッシュボード）
   ============================================= */

/* ── アラート ── */
.alert-error {
    background: rgba(204,34,0,0.09);
    border: 1px solid rgba(204,34,0,0.35);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #7a0000;
    font-size: 14px;
    line-height: 1.7;
}
.alert-success {
    background: rgba(42,122,58,0.09);
    border: 1px solid rgba(42,122,58,0.35);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #1a5c1a;
    font-size: 14px;
    line-height: 1.7;
}

/* ── 認証ページ レイアウト ── */
body.auth-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
}

.back-link {
    position: fixed;
    top: 20px; left: 20px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 14px;
    display: flex; align-items: center; gap: 6px;
    transition: color 0.2s;
    z-index: 10;
}
.back-link:hover { color: var(--gold); }

.card-wrap { width: 100%; max-width: 480px; position: relative; z-index: 1; padding-top: 10px; }

.logo-area { text-align: center; margin-bottom: 28px; }
.logo-symbol { font-size: 36px; color: var(--gold); display: block; margin-bottom: 6px; }
.logo-symbol-img { display: block; width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; object-fit: cover; border: 2px solid #fdf5e6; box-shadow: 0 2px 8px rgba(107,66,90,0.3); }
.logo-title { color: var(--text-main); font-size: 18px; font-weight: 700; letter-spacing: 0.05em; }
.logo-sub { color: var(--text-sub); font-size: 12px; letter-spacing: 0.12em; margin-top: 4px; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 8px 40px rgba(139,104,24,0.12);
}
.card-title {
    color: var(--text-main);
    font-size: 22px; font-weight: 700;
    text-align: center; margin-bottom: 8px;
    letter-spacing: 0.03em;
}
.card-sub  { color: var(--text-sub); font-size: 14px; text-align: center; margin-bottom: 28px; }
.card-desc { color: var(--text-sub); font-size: 14px; text-align: center; line-height: 1.7; margin-bottom: 28px; }

/* ── フォームパーツ（認証・ダッシュボード共通） ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.auth-layout .form-group { margin-bottom: 18px; }
.auth-layout .form-label {
    display: block;
    color: var(--text-sub);
    font-size: 14px; font-weight: 600;
    margin-bottom: 8px; letter-spacing: 0.03em;
}
.auth-layout .form-label .required { display: inline-block; margin-left: 4px; color: var(--purple); font-size: 11px; font-weight: 700; }

.form-input {
    width: 100%;
    background: #fff;
    border: 1.5px solid rgba(139,104,24,0.3);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text-main);
    font-size: 16px;
    font-family: var(--font-ja);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,64,0.2); }
.form-input::placeholder { color: #c8a870; }
.form-input:disabled { background: var(--bg-mid); color: var(--text-dim); cursor: default; }

.auth-layout .btn-submit {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #8b1800, var(--gold));
    border: none; border-radius: 8px;
    color: #fff; font-size: 16px; font-weight: 700;
    font-family: var(--font-ja); cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 8px; letter-spacing: 0.05em;
    animation: none; box-shadow: none;
}
.auth-layout .btn-submit:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: none; }

.forgot-link {
    display: block; text-align: right; margin-top: 6px;
    color: var(--text-dim); font-size: 13px;
    text-decoration: none; transition: color 0.2s;
}
.forgot-link:hover { color: var(--gold); }

.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { color: var(--text-dim); font-size: 13px; }

.signup-link, .login-link { text-align: center; color: var(--text-sub); font-size: 14px; }
.signup-link a, .login-link a { color: var(--gold-dark); font-weight: 700; }
.signup-link a:hover, .login-link a:hover { color: var(--gold); text-decoration: underline; }

.section-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0 16px; }
.section-label { color: var(--text-dim); font-size: 12px; letter-spacing: 0.08em; margin-bottom: 14px; }

.terms { margin-top: 14px; text-align: center; color: var(--text-sub); font-size: 13px; line-height: 1.8; }
.terms a { color: var(--gold-dark); }

.form-group-checkbox { margin-bottom: 18px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-sub); line-height: 1.6; cursor: pointer; }
.checkbox-label input[type="checkbox"] { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--gold-dark); cursor: pointer; }
.checkbox-label a { color: var(--gold-dark); text-decoration: underline; }

.email-badge {
    display: inline-block;
    background: var(--bg-mid); border: 1px solid var(--border);
    border-radius: 20px; padding: 6px 18px;
    color: var(--gold-dark); font-size: 14px; margin-bottom: 28px;
}

.icon { font-size: 52px; display: block; margin-bottom: 20px; text-align: center; }

.steps { background: var(--bg-dark); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; margin-bottom: 28px; text-align: left; }
.steps .step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.steps .step:last-child { margin-bottom: 0; }
.steps .step-num {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px; position: static; transform: none; top: auto; left: auto;
}
.step-text { color: var(--text-sub); font-size: 14px; line-height: 1.8; }

.demo-note { margin-top: 20px; padding: 14px 16px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 10px; text-align: center; }
.demo-note p { color: var(--text-dim); font-size: 12px; line-height: 1.8; }
.demo-note code { color: var(--gold-dark); background: var(--bg-mid); padding: 1px 6px; border-radius: 4px; font-size: 11px; }

.demo-box { background: var(--bg-dark); border: 1px dashed var(--border-glow); border-radius: 10px; padding: 18px 20px; margin-bottom: 28px; text-align: left; }
.demo-box-label { color: var(--gold-dark); font-size: 10px; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 8px; }
.demo-link { color: var(--gold-dark); font-size: 13px; word-break: break-all; }

.btn-resend {
    display: inline-block; padding: 10px 24px;
    background: var(--bg-deep); border: 1.5px solid var(--border-glow);
    border-radius: 8px; color: var(--gold-dark);
    font-size: 14px; font-family: var(--font-ja);
    cursor: pointer; transition: background 0.2s; text-decoration: none; margin-top: 4px;
}
.btn-resend:hover { background: var(--bg-mid); color: var(--gold); }

/* ── ダッシュボード レイアウト ── */
.layout { min-height: 100vh; }
.main-area { margin-left: 256px; display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }

/* サイドバー用ユーティリティ（Tailwind風クラス名に対応する実装） */
.fixed { position: fixed; }
.left-0 { left: 0; }
.top-0 { top: 0; }
.h-screen { height: 100vh; }
.w-64 { width: 256px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.z-40 { z-index: 40; }
.overflow-y-auto { overflow-y: auto; }

/* ── モバイル用：サイドバーをオフキャンバス化 ── */
.sidebar-toggle-btn { display: none; }
.sidebar-backdrop { display: none; }
@media (max-width: 900px) {
  .main-area { margin-left: 0; min-width: 0; overflow-x: hidden; }
  aside.w-64 { transform: translateX(-100%); transition: transform 0.25s ease; z-index: 100; }
  aside.w-64.sidebar-open { transform: translateX(0); }
  .sidebar-toggle-btn {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 14px; left: 14px; z-index: 110;
    width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(201,168,64,0.35);
    background: #2a1200; color: #c9a840; font-size: 18px; cursor: pointer;
  }
  .sidebar-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 90;
  }
  .sidebar-backdrop.open { display: block; }
  .content { padding-top: 12px; }
}

.topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 14px 28px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 30;
    box-shadow: 0 2px 8px rgba(139,104,24,0.07);
}
.topbar-title { color: var(--text-main); font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-user { color: var(--text-sub); font-size: 14px; font-weight: 600; }

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; padding-left: 64px; }
}

/* ── ユーザーメニュー（プルダウン） ── */
.user-menu { position: relative; }
.user-menu-btn { display: flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; padding: 6px 10px; border-radius: 8px; transition: background 0.15s; }
.user-menu-btn:hover { background: var(--bg-mid); }
.user-menu-caret { color: var(--text-dim); font-size: 11px; transition: transform 0.15s; }
.user-menu.open .user-menu-caret { transform: rotate(180deg); }
.user-menu-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px; background: var(--bg-card); border: 1px solid var(--border-glow); border-radius: 10px; box-shadow: 0 8px 24px rgba(139,104,24,0.18); overflow: hidden; z-index: 50; }
.user-menu.open .user-menu-dropdown { display: block; }
.user-menu-dropdown a, .user-menu-dropdown form button { display: block; width: 100%; text-align: left; padding: 11px 16px; font-size: 13px; color: var(--text-sub); text-decoration: none; background: none; border: none; cursor: pointer; font-family: var(--font-ja); transition: background 0.15s; }
.user-menu-dropdown a:hover, .user-menu-dropdown form button:hover { background: var(--bg-mid); color: var(--gold-dark); }
.user-menu-dropdown form { margin: 0; border-top: 1px solid var(--border); }

/* ── 友達紹介キャンペーン バナー（トップバー、ヘルプボタンの左） ── */
.referral-campaign-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 20px;
    background: linear-gradient(135deg, #ffe9b3, #f5c451 55%, #e6a93a);
    border: 1px solid #d9a83f;
    color: #5a3d00; font-size: 12px; font-weight: 700;
    text-decoration: none; white-space: nowrap;
    box-shadow: 0 2px 10px rgba(230,169,58,0.4);
    animation: referral-btn-pulse 2.2s ease-in-out infinite;
    transition: transform 0.15s, box-shadow 0.15s;
}
.referral-campaign-btn:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 4px 14px rgba(230,169,58,0.55); }
.referral-campaign-icon { font-size: 14px; }
@keyframes referral-btn-pulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(230,169,58,0.4); }
    50% { box-shadow: 0 2px 18px rgba(255,196,60,0.85); }
}
@media (max-width: 900px) {
  .referral-campaign-text { display: none; }
  .referral-campaign-btn { padding: 7px 10px; }
}

/* ── ヘルプボタン & 使い方ヘルプ チャットウィジェット ── */
.help-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 14px; border-radius: 20px;
    background: none; border: 1px solid var(--border);
    color: var(--text-dim); font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: var(--font-ja); transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.help-btn:hover { color: var(--gold-dark); border-color: var(--gold); }

.help-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 340px;
    max-width: calc(100vw - 32px);
    max-height: min(480px, calc(100vh - 100px));
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.28);
    display: flex;
    flex-direction: column;
    z-index: 200;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.help-chat-widget.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.help-chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    font-size: 13px; font-weight: 700;
    border-radius: 16px 16px 0 0;
}
.help-chat-close { background: none; border: none; color: #fff; font-size: 15px; cursor: pointer; opacity: 0.85; padding: 2px 4px; }
.help-chat-close:hover { opacity: 1; }
.help-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 160px;
}
.help-chat-msg {
    font-size: 13px; line-height: 1.7;
    padding: 9px 13px;
    border-radius: 12px;
    max-width: 88%;
    word-break: break-word;
    white-space: pre-wrap;
}
.help-chat-msg-ai { align-self: flex-start; background: var(--bg-mid); color: var(--text-sub); border-bottom-left-radius: 4px; }
.help-chat-msg-user { align-self: flex-end; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #fff; border-bottom-right-radius: 4px; }
.help-chat-input-row {
    display: flex; gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
}
.help-chat-input-row input {
    flex: 1; min-width: 0;
    padding: 9px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-mid);
    color: var(--text-main);
    font-size: 13px;
    font-family: var(--font-ja);
}
.help-chat-input-row button {
    padding: 9px 16px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    font-size: 13px; font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.help-chat-mic-btn {
    flex-shrink: 0;
    width: 36px; height: 36px;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--bg-mid) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-sub) !important;
    font-size: 15px !important;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.help-chat-mic-btn:hover { border-color: var(--gold) !important; color: var(--gold-dark) !important; }
.help-chat-mic-btn.recording {
    background: #cc2200 !important;
    border-color: #cc2200 !important;
    color: #fff !important;
    animation: mic-pulse 1s ease-in-out infinite;
}
@keyframes mic-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(204,34,0,0.4); } 50% { box-shadow: 0 0 0 6px rgba(204,34,0,0); } }
@media (max-width: 480px) {
    .help-chat-widget { right: 12px; bottom: 12px; left: 12px; width: auto; }
    .help-btn span, .help-btn { font-size: 11px; padding: 6px 10px; }
}

/* ── 初回/久しぶりログイン向けチュートリアル（スポットライト形式のガイド） ── */
.tutorial-overlay {
    position: fixed; inset: 0; z-index: 500;
    display: none;
    pointer-events: none;
}
.tutorial-overlay.open { display: block; pointer-events: auto; }
.tutorial-spotlight {
    position: fixed;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(10,5,0,0.72);
    transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease;
    pointer-events: none;
}
.tutorial-tooltip {
    position: fixed;
    background: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
    transition: top 0.3s ease, left 0.3s ease;
}
.tutorial-tooltip-step { font-size: 11px; color: var(--gold-dark); font-weight: 700; margin-bottom: 6px; }
.tutorial-tooltip-title { font-size: 15px; color: var(--text-main); margin-bottom: 8px; }
.tutorial-tooltip-text { font-size: 13px; color: var(--text-sub); line-height: 1.7; margin-bottom: 16px; }
.tutorial-tooltip-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tutorial-btn-skip { background: none; border: none; color: var(--text-dim); font-size: 12px; cursor: pointer; text-decoration: underline; font-family: var(--font-ja); padding: 0; }
.tutorial-tooltip-nav { display: flex; gap: 8px; }
.tutorial-btn-secondary { padding: 8px 16px; border-radius: 20px; border: 1px solid var(--border); background: none; color: var(--text-sub); font-size: 12px; cursor: pointer; font-family: var(--font-ja); }
.tutorial-btn-primary { padding: 8px 20px; border-radius: 20px; border: none; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; font-family: var(--font-ja); }

/* ── 「結果をシェアする」モーダル ── */
.share-modal-overlay {
    position: fixed; inset: 0; z-index: 480;
    display: none;
    align-items: center; justify-content: center;
    background: rgba(10,5,0,0.6);
    padding: 20px;
}
.share-modal-overlay.open { display: flex; }
.share-modal {
    width: 100%; max-width: 380px;
    max-height: 90vh; overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.share-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff; font-size: 14px; font-weight: 700;
    border-radius: 16px 16px 0 0;
}
.share-modal-close { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; opacity: 0.85; }
.share-modal-close:hover { opacity: 1; }
.share-modal-body { padding: 18px 20px 22px; }
.share-preview { margin-bottom: 16px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.share-preview img { width: 100%; display: block; }
.share-btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-mid);
    color: var(--text-main);
    font-size: 12.5px; font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-ja);
    transition: transform 0.12s, box-shadow 0.12s;
}
.share-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.12); color: var(--text-main); }
.share-btn-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.share-btn-line { background: rgba(6,199,85,0.12); border-color: rgba(6,199,85,0.35); color: #06c755; }
.share-btn-x { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.2); }
.share-btn-facebook { background: rgba(24,119,242,0.1); border-color: rgba(24,119,242,0.3); color: #1877f2; }
.share-btn-threads { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.2); }
.share-btn-pinterest { background: rgba(230,0,35,0.1); border-color: rgba(230,0,35,0.3); color: #e60023; }
.share-btn-instagram { background: linear-gradient(135deg, rgba(225,48,108,0.12), rgba(131,58,180,0.12)); border-color: rgba(225,48,108,0.3); color: #c1327a; }
.share-btn-native { background: rgba(201,168,64,0.1); border-color: rgba(201,168,64,0.3); color: var(--gold-dark); }
.share-btn-copy { background: var(--bg-dark); grid-column: 1 / -1; justify-content: center; }
.share-instagram-hint, .share-copy-hint { margin-top: 12px; font-size: 12px; color: var(--gold-dark); text-align: center; }

.upgrade-banner {
    background: linear-gradient(135deg, rgba(201,168,64,0.1), rgba(180,30,10,0.05));
    border: 1px solid var(--border-glow); border-radius: 12px;
    padding: 16px 20px;
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; gap: 16px;
}
.upgrade-banner-text { color: var(--gold-dark); font-size: 14px; }
.upgrade-banner-text strong { font-size: 15px; }
.upgrade-banner a {
    flex-shrink: 0; padding: 8px 18px;
    background: linear-gradient(135deg, #8b1800, var(--gold));
    color: #fff; font-weight: 700; font-size: 13px;
    border-radius: 6px; text-decoration: none; white-space: nowrap;
}
.upgrade-banner a:hover { color: #fff; opacity: 0.9; }

/* ── 鑑定結果画面 共通CTA（同じ風水をもう一度／先生とおしゃべり相談） ── */
.result-cta { text-align: center; margin-top: 28px; padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; }
.result-cta p { color: var(--text-sub); font-size: 13px; margin-bottom: 16px; }
.result-cta-buttons { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-retry { display: inline-block; padding: 14px 36px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #fff; font-weight: 700; font-size: 15px; border-radius: 10px; text-decoration: none; transition: opacity 0.2s; }
.btn-retry:hover { opacity: 0.9; color: #fff; }
.btn-retry-secondary { background: var(--bg-dark); color: var(--gold-dark); border: 1.5px solid var(--gold); }

/* ── 鑑定結果の「この結果をシェアする」ボタン：目立たせるための派手な演出 ── */
.btn-share-flashy {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #ff7a59, #ffb347 50%, #ffd93d 100%);
    color: #3a1400;
    font-weight: 800;
    font-size: 15px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-ja);
    box-shadow: 0 4px 16px rgba(255,140,60,0.5);
    animation: share-flashy-pulse 1.8s ease-in-out infinite;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-bottom: 16px;
}
.btn-share-flashy:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 6px 24px rgba(255,150,50,0.7); color: #3a1400; }
@keyframes share-flashy-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(255,140,60,0.5); }
    50% { box-shadow: 0 4px 28px rgba(255,190,60,0.95); }
}
@media (max-width: 640px) {
  .btn-share-flashy { display: flex; width: 100%; justify-content: center; }
}

/* ── レビュー依頼ウィジェット ── */
.review-prompt-widget { text-align: center; margin-top: 20px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; }
.review-prompt-question { color: var(--text-main); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.review-prompt-buttons { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.review-reaction-btn { padding: 10px 22px; border-radius: 10px; border: 1.5px solid var(--gold); background: var(--bg-dark); color: var(--gold-dark); font-size: 14px; font-weight: 700; font-family: var(--font-ja); cursor: pointer; transition: all 0.2s; }
.review-reaction-btn:hover { background: rgba(201,168,64,0.12); }
.review-prompt-dismiss { display: block; margin: 6px auto 0; background: none; border: none; color: var(--text-dim); font-size: 12px; text-decoration: underline; cursor: pointer; font-family: var(--font-ja); }
.review-star-row { font-size: 30px; letter-spacing: 4px; margin-bottom: 14px; cursor: pointer; }
.review-star { color: var(--border); transition: color 0.15s; }
.review-star.active { color: var(--gold); }
.review-comment-input { width: 100%; max-width: 420px; min-height: 70px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-dark); color: var(--text-main); font-family: var(--font-ja); font-size: 14px; resize: vertical; margin-bottom: 14px; }
.review-submit-btn { display: inline-block; padding: 10px 30px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #fff; font-weight: 700; font-size: 14px; border: none; border-radius: 10px; cursor: pointer; font-family: var(--font-ja); transition: opacity 0.2s; }
.review-submit-btn:hover { opacity: 0.9; }
.review-submit-btn:disabled { opacity: 0.6; cursor: default; }
.review-prompt-thanks { color: var(--gold-dark); font-size: 15px; font-weight: 700; }

.coming-soon-card {
    background: var(--bg-card); border: 1px solid var(--border-glow);
    border-radius: 20px; padding: 60px 48px;
    text-align: center; max-width: 480px; width: 100%;
    box-shadow: 0 4px 24px rgba(139,104,24,0.10);
}
.cs-icon { font-size: 64px; margin-bottom: 20px; }
.cs-title { color: var(--text-main); font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.cs-desc { color: var(--text-sub); font-size: 15px; line-height: 1.9; margin-bottom: 28px; }

/* ── 管理者画面 ── */
/* ユーザー画面（暖色系：ゴールド×ブラウン）と明確に区別するため、管理画面全体を寒色系（ネイビー×ブルー）に変更する。
   .main-area.admin-main スコープ内でCSS変数を上書きすることで、既存の .card / .btn-save 等の共通クラスにも
   自動で新しい配色が反映される（マークアップ側の変更は最小限で済む） */
.main-area.admin-main {
    --bg-deep: #eef2f8;
    --bg-mid: #dde6f2;
    --bg-dark: #e3e9f2;
    --bg-card: #ffffff;
    --gold: #3b82f6;
    --gold-dark: #1d4ed8;
    --border: #dbe3ee;
    --border-glow: rgba(59,130,246,0.35);
    --text-main: #1e2530;
    --text-sub: #55606e;
    --text-dim: #8892a0;
    background: var(--bg-deep);
}

.admin-sidebar {
    width: 240px; background: #101828;
    border-right: 1px solid rgba(91,155,245,0.18);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; height: 100vh; z-index: 40; overflow-y: auto;
}
.main-area.admin-main { margin-left: 240px; }
.admin-logo { padding: 20px 16px; border-bottom: 1px solid rgba(91,155,245,0.18); display: flex; align-items: center; gap: 10px; }
.admin-logo-icon { font-size: 20px; }
.admin-logo-text { color: #dbe6f5; font-size: 13px; font-weight: 700; }
.admin-logo-sub { color: rgba(215,227,245,0.45); font-size: 10px; letter-spacing: 0.1em; }
.admin-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; color: rgba(215,227,245,0.75); margin-bottom: 2px; border-left: 3px solid transparent; transition: all 0.15s; }
.admin-nav-item:hover { background: rgba(255,255,255,0.07); color: #dbe6f5; }
.admin-nav-item.active { background: rgba(59,130,246,0.2); color: #7fb0f7; border-left-color: #7fb0f7; font-weight: 600; }
.admin-footer { padding: 12px; border-top: 1px solid rgba(91,155,245,0.18); }
.admin-footer-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: rgba(255,255,255,0.82); font-size: 13px; text-decoration: none; border-radius: 6px; }
.admin-footer-link:hover { color: #ffffff; background: rgba(255,255,255,0.1); }

.topbar.admin-topbar { background: #101828; border-bottom: 1px solid rgba(91,155,245,0.18); box-shadow: none; }
.topbar.admin-topbar .topbar-title { color: #dbe6f5; }
.topbar.admin-topbar .topbar-right, .topbar.admin-topbar .user-menu-btn .topbar-user, .topbar.admin-topbar .user-menu-caret {
    color: #dbe6f5;
}
.topbar.admin-topbar .user-menu-btn:hover { background: rgba(255,255,255,0.08); }
.topbar.admin-topbar .admin-badge { color: #dbe6f5; background: rgba(91,155,245,0.18); border-color: rgba(91,155,245,0.4); }
.admin-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(201,168,64,0.12); color: var(--gold-dark); border: 1px solid rgba(201,168,64,0.3); }

/* ── 管理画面共通のミニアクションボタン（カードタイトル内のリンク・サブアクションなどに使用） ── */
.btn-ai { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: var(--gold-dark); font-size: 12px; font-weight: 600; border-radius: 8px; text-decoration: none; cursor: pointer; font-family: var(--font-ja); transition: all 0.2s; }
.btn-ai:hover { background: rgba(59,130,246,0.2); }

/* ── 回数入力チップリスト（カンマ区切りテキストの代わりに使用。書き間違いを防ぐ） ── */
.chip-list-input { display: flex; flex-direction: column; gap: 10px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; min-height: 20px; }
.count-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px; border-radius: 20px; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: var(--gold-dark); font-size: 13px; font-weight: 600; }
.count-chip-remove { background: none; border: none; color: var(--gold-dark); opacity: 0.6; cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; }
.count-chip-remove:hover { opacity: 1; }
.chip-add-row { display: flex; align-items: center; gap: 8px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 24px 22px; position: relative; overflow: hidden; box-shadow: 0 2px 12px rgba(139,104,24,0.06); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.stat-card.blue::before { background: linear-gradient(90deg, #5870c4, #7080d0); }
.stat-card.green::before { background: linear-gradient(90deg, #2a7a3a, #4a9a5a); }
.stat-card.gold::before { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.stat-icon { font-size: 28px; margin-bottom: 12px; }
.stat-label { color: var(--text-dim); font-size: 12px; letter-spacing: 0.08em; margin-bottom: 6px; }
.stat-value { color: var(--text-main); font-size: 36px; font-weight: 700; margin-bottom: 4px; }
.stat-change { font-size: 12px; color: #2a7a3a; }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 20px; box-shadow: 0 2px 12px rgba(139,104,24,0.06); }
.main-area .card-title { color: var(--text-main); font-size: 14px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th { color: var(--text-dim); font-size: 12px; letter-spacing: 0.08em; padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table td { color: var(--text-sub); font-size: 14px; padding: 12px; border-bottom: 1px solid var(--border); }
.data-table tbody tr:hover td { background: var(--bg-dark); }

/* ── マイページ ── */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tab-btn { padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-dim); font-size: 14px; font-family: var(--font-ja); cursor: pointer; transition: all 0.2s; margin-bottom: -1px; }
.tab-btn.active { color: var(--gold-dark); border-bottom-color: var(--gold-dark); }
.tab-btn:hover:not(.active) { color: var(--text-sub); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group.full { grid-column: 1 / -1; }

.btn-save { padding: 12px 28px; background: linear-gradient(135deg, #8b1800, var(--gold)); border: none; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 700; font-family: var(--font-ja); cursor: pointer; transition: opacity 0.2s; }
.btn-save:hover { opacity: 0.9; }
.btn-danger { padding: 12px 28px; background: transparent; border: 1px solid rgba(204,34,0,0.35); border-radius: 8px; color: #8b0000; font-size: 14px; font-family: var(--font-ja); cursor: pointer; transition: all 0.2s; }
.btn-danger:hover { background: rgba(204,34,0,0.08); }

.success-msg { background: rgba(42,122,58,0.09); border: 1px solid rgba(42,122,58,0.35); color: #1a5c1a; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 20px; }

.family-member { background: var(--bg-dark); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 14px; }
.family-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-mid); display: flex; align-items: center; justify-content: center; color: var(--gold-dark); font-size: 14px; font-weight: 700; flex-shrink: 0; }
.family-name { color: var(--text-main); font-size: 14px; font-weight: 600; }
.family-birth { color: var(--text-dim); font-size: 12px; margin-top: 2px; }

.btn-add-family { width: 100%; padding: 12px; background: transparent; border: 1px dashed rgba(139,104,24,0.3); border-radius: 10px; color: var(--text-dim); font-size: 14px; font-family: var(--font-ja); cursor: pointer; transition: all 0.2s; margin-top: 12px; }
.btn-add-family:hover { border-color: var(--gold); color: var(--gold-dark); background: rgba(201,168,64,0.04); }

/* ── ログイン・送信系ボタン ── */
.btn-login {
    display: inline-block; padding: 12px 36px;
    background: linear-gradient(135deg, #8b1800, var(--gold));
    border-radius: 8px; color: #fff;
    font-size: 15px; font-weight: 700;
    text-decoration: none; letter-spacing: 0.05em; transition: opacity 0.2s;
}
.btn-login:hover { color: #fff; opacity: 0.9; }

.resend-link, .retry-link {
    background: none; border: none;
    color: var(--text-dim); font-size: 13px;
    font-family: var(--font-ja); cursor: pointer;
    text-decoration: underline; transition: color 0.2s;
    display: block; margin-top: 16px; text-align: center;
}
.resend-link:hover, .retry-link:hover { color: var(--gold-dark); }

.hint { color: var(--text-dim); font-size: 12px; margin-top: 5px; }

/* パスワード強度バー */
.strength-bar { height: 4px; border-radius: 2px; margin-top: 6px; background: var(--bg-mid); overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; width: 0; transition: width 0.3s, background 0.3s; }
.contact-form label {
    display: block;
    color: var(--text-sub);
    font-size: .88rem;
    margin-bottom: .4rem;
    font-weight: 700;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: .65rem .9rem;
    color: var(--text-main);
    font-size: 16px;
    font-family: var(--font-ja);
    box-sizing: border-box;
    transition: border-color .2s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.btn-info-submit {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    border: none;
    padding: .75rem 2.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-ja);
    cursor: pointer;
    font-weight: 700;
    transition: opacity .2s;
    letter-spacing: .05em;
}
.btn-info-submit:hover { opacity: .85; }
@media (max-width: 640px) {
    .info-main { padding: 4rem 1.25rem 3rem; }
    .info-hero h1 { font-size: 1.5rem; }
    .supervisor-card { flex-direction: column; align-items: center; text-align: center; }
}

/* =============================================
   トップページ リニューアル追加パーツ
   ============================================= */

/* ── 無料訴求ストリップ ── */
.free-strip {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    padding: 10px 0;
    overflow: hidden;
}
.free-strip-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 32px;
}
.free-strip-item {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ── 鑑定メニュー ショーケース（写真付き） ── */
.feature-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.feature-showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, box-shadow .2s, transform .2s, background-color .6s;
    scroll-margin-top: 100px;
}
.feature-showcase-card:target {
    animation: feature-card-highlight 2s ease-out;
}
@keyframes feature-card-highlight {
    0%   { box-shadow: 0 0 0 4px rgba(201,160,64,0.5); }
    100% { box-shadow: none; }
}
.feature-showcase-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 28px rgba(180,30,10,0.14);
    transform: translateY(-3px);
}
.feature-showcase-img-wrap {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: var(--bg-mid);
    border-bottom: 1px solid var(--border);
}
.feature-showcase-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.feature-showcase-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.feature-showcase-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 10px;
}
.feature-showcase-desc {
    font-size: 0.86rem;
    color: var(--text-sub);
    line-height: 1.9;
    margin-bottom: 18px;
    flex: 1;
}
.btn-feature-try {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: opacity .2s;
}
.btn-feature-try:hover { color: #fff; opacity: 0.86; }

/* ── 実績・お客様の声（ペルソナ・共感ストーリー） ── */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.persona-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 26px;
    position: relative;
}
.persona-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border);
}
.persona-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-mid), var(--bg-deep));
    border: 1px solid var(--border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.persona-name { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
.persona-tag { font-size: 0.76rem; color: var(--text-dim); margin-top: 2px; }
.persona-before {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 14px;
}
.persona-before b { color: var(--purple-light); }
.persona-quote {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.95;
    font-style: italic;
    background: rgba(201,168,64,0.08);
    border-left: 3px solid var(--gold);
    padding: 12px 16px;
    border-radius: 4px;
}
.persona-result {
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--gold-dark);
    font-weight: 700;
}

/* ── 4コマ漫画セクション ── */
.comic-wrap {
    max-width: 640px;
    margin: 0 auto;
}
.comic-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
}
.comic-panel-item { display: flex; flex-direction: column; }
.comic-panel-frame {
    position: relative;
    width: 100%;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
    box-shadow: 0 6px 24px rgba(180,30,10,0.14);
}
.comic-panel-img {
    width: 100%;
    display: block;
}
.comic-panel-overlay-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 10px 14px;
    background: linear-gradient(0deg, rgba(10,5,0,0.82) 0%, rgba(10,5,0,0.55) 70%, transparent 100%);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: left;
}
.comic-caption-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    margin-right: 6px;
    flex-shrink: 0;
}
@media (max-width: 560px) {
    .comic-panel-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ── あかり先生とおしゃべり相談 メイン機能スポットライト ── */
.talk-spotlight-wrap {
    position: relative;
    margin: 12px 0 44px;
}
.talk-spotlight-tag {
    position: absolute;
    top: -16px;
    left: 24px;
    background: linear-gradient(135deg, #8b1800, var(--gold));
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 8px 22px;
    border-radius: 22px;
    box-shadow: 0 6px 18px rgba(180,30,10,0.32);
    z-index: 2;
    white-space: nowrap;
}
.talk-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: 22px;
    padding: 44px 40px 36px;
    box-shadow: 0 12px 46px rgba(201,160,64,0.26);
}
.talk-spotlight-img {
    position: relative;
    line-height: 0;
}
.talk-spotlight-img img {
    width: 100%;
    border-radius: 14px;
    display: block;
    box-shadow: 0 8px 28px rgba(180,30,10,0.16);
}
.talk-spotlight-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 16px;
}
.talk-spotlight-desc {
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 2;
    margin-bottom: 20px;
}
.talk-spotlight-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.talk-spotlight-list li {
    font-size: 0.92rem;
    color: var(--text-sub);
    line-height: 1.7;
}
@media (max-width: 760px) {
    .talk-spotlight { grid-template-columns: 1fr; padding: 36px 24px 28px; }
    .talk-spotlight-tag { left: 12px; font-size: 0.78rem; padding: 7px 16px; }
}

/* ── ペルソナカードの写真アバター ── */
.persona-avatar-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-glow);
    flex-shrink: 0;
}
.persona-card.featured {
    border-color: var(--gold);
    box-shadow: 0 0 22px rgba(201,160,64,0.24);
    grid-column: 1 / -1;
}
