@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&family=Oswald:wght@400;600;700&display=swap');

:root {
    --primary: #00c896;          /* エメラルドグリーン・スパイカラー */
    --secondary: #b8a060;        /* くすみゴールド */
    --accent: #e0f7ef;           /* 淡いミント */
    --danger: #c0392b;           /* 警戒レッド */
    --bg-grad: linear-gradient(160deg, #030a07 0%, #071510 30%, #0a1a12 60%, #030a07 100%);
    --surface: rgba(6, 20, 14, 0.92);
    --border: rgba(0, 200, 150, 0.2);
    --text: #d4ede5;
    --text-muted: rgba(212, 237, 229, 0.6);
}

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

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    background: var(--bg-grad);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── スキャンラインオーバーレイ（世界観の要） ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 200, 150, 0.015) 3px,
        rgba(0, 200, 150, 0.015) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

.app-wrap {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    background: transparent;
    position: relative;
    padding-bottom: 40px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

/* ── ヘッダー：端末モニター風 ── */
header {
    background: #030a07;
    color: var(--primary);
    text-align: center;
    padding: 16px 15px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 200, 150, 0.25), inset 0 -1px 0 rgba(0, 200, 150, 0.1);
    text-shadow: 0 0 10px rgba(0, 200, 150, 0.8), 0 0 25px rgba(0, 200, 150, 0.4);
    position: relative;
}

/* ステータスインジケーター（左） */
header::before {
    content: '●';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.55rem;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

/* セクション共通 */
.screen { display: none; animation: fadeIn 0.35s ease-out; }
.screen.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 画像：左右いっぱい */
.full-img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.content-pad {
    padding: 25px 20px;
}

/* ── グラスカード：機密書類風 ── */
.glass-card {
    background: var(--surface);
    border-radius: 2px;
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-top: 2px solid var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 200, 150, 0.05);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 400;
    line-height: 2.0;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

/* コーナーマーク（照準） */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 14px; height: 14px;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
}
.glass-card::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 14px; height: 14px;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
}

/* ── ボタン共通 ── */
.btn {
    display: block; width: 100%; padding: 17px;
    border-radius: 2px;
    font-size: 1.1rem; font-weight: 700; text-align: center; cursor: pointer;
    transition: all 0.18s ease; text-decoration: none; font-family: inherit;
    border: none; box-sizing: border-box; letter-spacing: 3px;
}
.btn:active { transform: scale(0.97); }

.btn-main {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 0 14px rgba(0, 200, 150, 0.2), inset 0 0 14px rgba(0, 200, 150, 0.04);
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
    overflow: hidden;
}
.btn-main::before {
    content: '';
    position: absolute;
    left: -100%; top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,200,150,0.08), transparent);
    transition: left 0.4s ease;
}
.btn-main:active::before { left: 200%; }

/* LINE ボタン */
.btn-line {
    padding: 17px;
    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 4px 14px rgba(6, 199, 85, 0.25);
    transition: all 0.18s ease;
}
.btn-line:active {
    transform: translateY(2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(212, 237, 229, 0.2);
    letter-spacing: 2px;
    font-size: 0.95rem;
}

@media (hover: hover) {
    .btn-main:hover {
        background: rgba(0,200,150,0.07);
        box-shadow: 0 0 24px rgba(0,200,150,0.3);
        transform: translateY(-1px);
    }
    .btn-line:hover { background: #05b34c; }
    .option-btn:hover {
        border-color: rgba(0,200,150,0.5);
        background: rgba(0,200,150,0.05);
        transform: translateX(4px);
    }
    .btn-outline:hover {
        border-color: rgba(212,237,229,0.4);
        color: var(--text);
    }
}

/* ── 質問画面 ── */
.progress-bar {
    width: 100%; height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 0;
    margin-bottom: 22px;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid rgba(0,200,150,0.15);
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007a5c, #00c896);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 8px rgba(0,200,150,0.6);
}

.q-num {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 4px 12px;
    font-size: 0.8rem;
    margin-bottom: 14px;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    border: 1px solid var(--border);
    letter-spacing: 3px;
    text-transform: uppercase;
}

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

.options { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
    background: var(--surface);
    border: 1px solid rgba(0,200,150,0.15);
    padding: 16px 18px;
    border-radius: 2px;
    font-size: 1.0rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    font-family: inherit;
    color: var(--text);
    position: relative;
    padding-left: 32px;
}
/* 先頭の矢印マーク */
.option-btn::before {
    content: '▸';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.75rem;
    opacity: 0.5;
    transition: opacity 0.15s;
}
.option-btn:hover::before { opacity: 1; }
.option-btn:active {
    background: rgba(0,200,150,0.1);
    color: var(--primary);
    transform: scale(0.99);
    border-color: var(--primary);
}

/* ── 結果画面 ── */
.result-header {
    text-align: center;
    padding: 30px 20px 18px;
    background: linear-gradient(180deg, rgba(0,200,150,0.06) 0%, transparent 100%);
    position: relative;
}
.result-rank {
    display: inline-block;
    background: transparent;
    color: var(--primary);
    padding: 5px 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    border: 1px solid var(--primary);
    font-family: 'Oswald', sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0,200,150,0.15);
}
.result-title {
    font-size: 2.4rem;
    color: var(--accent);
    font-weight: 900;
    margin-bottom: 0;
    line-height: 1.2;
    font-family: 'Noto Sans JP', sans-serif;
    text-shadow: 0 0 24px rgba(0,200,150,0.4), 0 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}
.result-desc {
    text-align: left;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 2.0;
}

.recommend-area {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 22px 18px;
    margin-bottom: 30px;
    text-align: center;
    margin-top: 30px;
}
.recommend-title {
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: var(--primary);
    letter-spacing: 3px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}
.rounded-img { border-radius: 2px; margin-bottom: 14px; }

/* ユーティリティ */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.ad-space { text-align: center; }

/* ── ローディング画面 ── */
.loading-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 100vh;
}

.loading-text {
    text-align: center;
    position: relative;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    text-shadow:
        0 0 6px rgba(0,200,150,0.9),
        0 0 18px rgba(0,200,150,0.5),
        0 0 36px rgba(0,200,150,0.2);
}

/* 照準アイコン（ローディング） */
.loading-text::after {
    content: '◎';
    position: static;
    display: block;
    font-size: 10rem;
    color: var(--primary);
    opacity: 0.35;
    filter: drop-shadow(0 0 18px rgba(0,200,150,0.5));
    animation: reticle-spin 3s linear infinite;
    line-height: 1;
    margin-top: 10px;
}

@keyframes reticle-spin {
    0%   { transform: rotate(0deg) scale(1); opacity: 0.35; }
    25%  { transform: rotate(90deg) scale(1.08); opacity: 0.55; }
    50%  { transform: rotate(180deg) scale(1); opacity: 0.35; }
    75%  { transform: rotate(270deg) scale(1.08); opacity: 0.55; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.35; }
}
