/* ベーススタイル */
body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

/* ヘッダー（ヒーローと地続きに見せる半透明の暗色バー） */
header {
    background: rgba(22, 20, 31, 0.78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 13px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.02rem;
    color: #fff;
}
.logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: block;
}

header nav a {
    margin-left: 22px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.62);
    transition: color 0.2s;
}
header nav a:hover { color: #fff; }

/* ヒーローセクション */
.hero {
    position: relative;
    padding: 80px 0 90px;
    background: #16141f;
    color: #fff;
    overflow: hidden;
}

/* 推理ゲームらしい方眼。中央だけ濃く見えるようマスクで減衰させる */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 45%, #000 35%, transparent 100%);
    mask-image: radial-gradient(ellipse 85% 65% at 50% 45%, #000 35%, transparent 100%);
    pointer-events: none;
}

/* 端末の背後に置く淡い光 */
.hero::after {
    content: "";
    position: absolute;
    right: 14%;
    top: 50%;
    width: 460px;
    height: 460px;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(124,92,255,0.30) 0%, rgba(124,92,255,0) 65%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* スマホで縦並びにする */
}

.hero-text { flex: 1; min-width: 300px; margin-bottom: 30px; }
.hero-text h1 { font-size: 2.7rem; margin: 0 0 14px; line-height: 1.15; letter-spacing: -0.02em; }
.hero-text p { color: rgba(255,255,255,0.72); margin: 0; }
.hero-image { flex: 1; text-align: center; min-width: 300px; }

/* スマホモックアップ風 */
.mockup {
    width: 200px;
    height: 440px;
    background: #000;
    border-radius: 30px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 8px solid #2f2b3d;
    overflow: hidden;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.mockup-img {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ストアボタン */
.store-badges { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-store {
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s, background 0.2s;
}
.btn-store:hover { transform: translateY(-2px); }
.btn-store.apple { background: #fff; color: #16141f; }
.btn-store.google {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.32);
}
.btn-store.google:hover { background: rgba(255,255,255,0.08); }

/* 遊び方（横スライド - CSS Scroll Snap） */
.features { padding: 60px 0; text-align: center; }
.subtitle { color: #888; margin-bottom: 30px; font-size: 0.9rem; }

.slider-wrapper {
    /* スクロールエリアの親要素 */
    width: 100%;
    overflow: visible; 
}

.slider-container {
    display: flex;
    overflow-x: auto; /* 横スクロールを許可 */
    gap: 20px;
    padding: 20px 5%; /* 両端に少し余白 */
    scroll-snap-type: x mandatory; /* スクロール時にピタッと止まる設定 */
    -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロール */
    scrollbar-width: none; /* Firefox用スクロールバー非表示 */
}

/* Chrome/Safari用スクロールバー非表示 */
.slider-container::-webkit-scrollbar {
    display: none;
}

.card {
    flex: 0 0 260px; /* カードの幅固定 */
    scroll-snap-align: center; /* 画面の中央で止まる */
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }

/* 遊び方カードの図版（枠や装飾を持たない文字中心の作図） */
.step-visual {
    height: 150px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.step-label {
    font-size: 0.68rem;
    color: #8d87a3;
    letter-spacing: 0.06em;
}

.digits {
    font-size: 2.1rem;
    font-weight: 700;
    color: #2f2a44;
    letter-spacing: 0.16em;
    line-height: 1;
    /* letter-spacing の分だけ右に余白が出るので中央に見えるよう相殺 */
    text-indent: 0.16em;
}
.digits.muted { color: #cfc8e0; }

.row { display: flex; align-items: center; gap: 14px; }
.arrow { color: #b3abcb; font-size: 1.1rem; }

.result {
    font-size: 1.45rem;
    font-weight: 700;
    color: #5a45c8;
    line-height: 1;
}

.options { display: flex; align-items: center; gap: 12px; font-size: 0.84rem; font-weight: 700; }
.opt-honest { color: #2f6fd0; }
.opt-lie { color: #d9922b; }
.sep { color: #d7d1e6; font-weight: 400; }

.doubt {
    font-size: 1.75rem;
    font-weight: 800;
    color: #df4a41;
    letter-spacing: 0.08em;
    line-height: 1;
}
.note { font-size: 0.7rem; color: #8d87a3; }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { font-size: 0.9rem; color: #666; margin: 0; }

/* フッター */
footer {
    background: #16141f;
    color: #fff;
    padding: 44px 0;
    text-align: center;
}
.footer-links { margin-bottom: 20px; }
.footer-links a { color: rgba(255,255,255,0.72); margin: 0 10px; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copyright { font-size: 0.8rem; color: rgba(255,255,255,0.38); }

/* スマホ用調整 */
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2rem; }
    .hero-inner { flex-direction: column; text-align: center; }
    .store-badges { justify-content: center; }
}