@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

:root {
    --primary: #c0687a;          /* ローズピンク */
    --secondary: #d4a0aa;        /* ペールローズ */
    --gold: #c9a96e;             /* シャンパンゴールド */
    --gold-light: #e8d5b0;       /* 薄シャンパン */
    --bg-dark: #0d0d18;          /* 深夜のソウル */
    --bg-mid: #12122a;           /* ネイビー */
    --bg-grad: linear-gradient(160deg, #0a0a1a 0%, #12102a 30%, #1a0e20 60%, #0d0d18 100%);
    --text-main: #f2eaf0;
    --text-sub: #c8b8cc;
    --card-bg: rgba(18, 12, 28, 0.88);
    --border-rose: rgba(192, 104, 122, 0.35);
    --border-gold: rgba(201, 169, 110, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
    background: var(--bg-grad);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* 夜景のような微細なノイズ感 */
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(192, 104, 122, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 90%, rgba(100, 80, 180, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.app-wrap {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    background: transparent;
    position: relative;
    padding-bottom: 50px;
    border-left: 1px solid rgba(192, 104, 122, 0.12);
    border-right: 1px solid rgba(192, 104, 122, 0.12);
    z-index: 1;
}

/* ─── HEADER ─── */
header {
    background: linear-gradient(90deg,
        #0a0a1a 0%,
        #14102e 25%,
        #1e1040 50%,
        #14102e 75%,
        #0a0a1a 100%
    );
    color: var(--primary);
    text-align: center;
    padding: 20px 15px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 6px;
    border-bottom: 1px solid var(--border-rose);
    box-shadow:
        0 1px 0 rgba(201, 169, 110, 0.2),
        0 4px 30px rgba(192, 104, 122, 0.15);
    text-shadow: 0 0 20px rgba(192, 104, 122, 0.6);
    position: relative;
}

header::after {
    content: '✦  ✦  ✦';
    display: block;
    font-size: 0.45rem;
    letter-spacing: 8px;
    color: var(--gold);
    margin-top: 6px;
    opacity: 0.7;
}

/* ─── SCREEN TRANSITIONS ─── */
.screen { display: none; animation: fadeUp 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.screen.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── IMAGES（画面左右いっぱい） ─── */
.full-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* ─── CONTENT PAD ─── */
.content-pad {
    padding: 28px 22px;
}

/* ─── GLASS CARD ─── */
.glass-card {
    background: var(--card-bg);
    border-radius: 2px;
    padding: 28px 24px;
    border: 1px solid var(--border-rose);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 60px rgba(192, 104, 122, 0.04),
        0 0 0 1px rgba(255,255,255,0.03);
    margin-bottom: 24px;
    text-align: center;
    font-size: 1rem;
    line-height: 2.0;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

/* カードの上下装飾ライン */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 20px; right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}
.glass-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20px; right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

/* ─── BUTTONS ─── */
.btn {
    display: block; width: 100%; padding: 18px; border-radius: 2px;
    font-size: 1.1rem; font-weight: 700; text-align: center; cursor: pointer;
    transition: all 0.2s ease; text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    border: none; box-sizing: border-box;
    letter-spacing: 3px;
}
.btn:active { transform: scale(0.97); }

.btn-main {
    background: linear-gradient(135deg,
        #8e3a4f 0%,
        #c0687a 40%,
        #a84f62 70%,
        #8e3a4f 100%
    );
    color: var(--gold-light);
    box-shadow:
        0 8px 25px rgba(192, 104, 122, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(201, 169, 110, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-main::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
    transform: rotate(0deg);
    transition: transform 0.4s;
}

@media (hover: hover) {
    .btn-main:hover {
        background: linear-gradient(135deg, #a84f62 0%, #d07888 40%, #b86070 100%);
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(192, 104, 122, 0.5);
    }
    .btn-main:hover::before { transform: rotate(180deg); }

    .option-btn:hover {
        transform: translateY(-2px);
        border-color: rgba(192, 104, 122, 0.6);
        box-shadow: 0 8px 24px rgba(192, 104, 122, 0.15), inset 0 0 0 1px rgba(192, 104, 122, 0.2);
        color: #fff;
    }
}

/* LINE ボタン */
.btn-line {
    padding: 18px;
    width: 100%;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    background: #06C755;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.3);
    transition: all 0.2s ease-out;
    font-family: 'Noto Sans JP', sans-serif;
}
.btn-line:active { transform: translateY(3px); box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
@media (hover: hover) {
    .btn-line:hover { background: #05b34c; transform: translateY(-1px); }
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-rose);
    letter-spacing: 2px;
}

/* ─── QUESTION SCREEN ─── */
.progress-bar {
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    margin-bottom: 24px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8e3a4f, #c0687a, #d4a0aa);
    width: 0%;
    transition: width 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(192, 104, 122, 0.5);
}

.q-num {
    display: inline-block;
    background: rgba(192, 104, 122, 0.1);
    color: var(--primary);
    padding: 5px 18px;
    border-radius: 1px;
    font-size: 0.85rem;
    margin-bottom: 18px;
    font-weight: 700;
    border: 1px solid var(--border-rose);
    letter-spacing: 3px;
}

.q-text {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.8;
    color: var(--text-main);
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    background: rgba(18, 12, 34, 0.75);
    border: 1px solid rgba(192, 104, 122, 0.2);
    padding: 18px 20px;
    border-radius: 2px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-sub);
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), #8e3a4f);
    opacity: 0;
    transition: opacity 0.2s;
}

.option-btn:active {
    background: rgba(192, 104, 122, 0.15);
    color: var(--gold-light);
    border-color: var(--primary);
    transform: scale(0.98);
}
.option-btn:active::before { opacity: 1; }

/* ─── RESULT SCREEN ─── */
.result-header {
    text-align: center;
    padding: 40px 20px 24px;
    background: linear-gradient(180deg,
        rgba(192, 104, 122, 0.1) 0%,
        transparent 100%
    );
    position: relative;
}

.result-header::before {
    content: '✦';
    position: absolute;
    top: 16px; left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 0.7rem;
    opacity: 0.6;
    letter-spacing: 16px;
}

.result-rank {
    display: inline-block;
    background: linear-gradient(135deg, rgba(142, 58, 79, 0.5), rgba(192, 104, 122, 0.4));
    color: var(--gold-light);
    padding: 7px 28px;
    border-radius: 1px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid rgba(201, 169, 110, 0.4);
    letter-spacing: 4px;
    box-shadow: 0 4px 20px rgba(192, 104, 122, 0.25);
}

/* ← ここだけ変更: 2.8rem → 2.1rem */
.result-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    color: var(--primary);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 4px;
    text-shadow:
        0 0 30px rgba(192, 104, 122, 0.5),
        0 2px 6px rgba(0,0,0,0.8);
}

.result-desc {
    text-align: left;
    font-size: 1.05rem;
    color: var(--text-sub);
    line-height: 2.0;
}

/* ─── RECOMMEND AREA ─── */
.recommend-area {
    background: rgba(18, 12, 34, 0.7);
    border: 1px solid var(--border-rose);
    border-radius: 2px;
    padding: 25px 20px;
    margin-bottom: 30px;
    text-align: center;
    margin-top: 30px;
}
.recommend-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary);
    letter-spacing: 3px;
}
.rounded-img { border-radius: 2px; margin-bottom: 15px; }

/* ─── UTILITIES ─── */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.ad-space { text-align: center; }

/* ─── LOADING SCREEN ─── */
.loading-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.loading-text {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    z-index: 10;
    text-shadow:
        0 0 8px rgba(192, 104, 122, 0.9),
        0 0 20px rgba(192, 104, 122, 0.5),
        0 0 40px rgba(192, 104, 122, 0.25);
}

.loading-text::before {
    content: '♥';
    position: absolute;
    top: 3.5rem;
    left: 50%;
    font-size: 12rem;
    z-index: -1;
    color: rgba(192, 104, 122, 0.18);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    filter: drop-shadow(0 0 30px rgba(192, 104, 122, 0.4));
    animation: heartbeat-crisp 1.4s infinite ease-in-out;
}

@keyframes heartbeat-crisp {
    0%   { transform: translateX(-50%) scale(1) translateZ(0); }
    15%  { transform: translateX(-50%) scale(1.22) translateZ(0); }
    30%  { transform: translateX(-50%) scale(1.04) translateZ(0); }
    45%  { transform: translateX(-50%) scale(1.32) translateZ(0); }
    60%  { transform: translateX(-50%) scale(1) translateZ(0); }
    100% { transform: translateX(-50%) scale(1) translateZ(0); }
}
