/* ============================================
   ボートレーサー募集 WEBエントリーLP「BOLD SPORT」
   スポーツ誌の熱量:大胆タイポ × ビビッドレッド
   デザイン・トークン(ここを変えるだけで全体調整可)
============================================ */
:root {
    --paper: #fdfbf6;            /* 紙のようなオフホワイト */
    --ink: #101418;              /* 墨色(テキスト・罫線) */
    --red: #e8322e;              /* ビビッドレッド(メイン) */
    --yellow: #ffd400;           /* アクセントイエロー */
    --text-sub: #4c555e;         /* 補足テキスト */
    --border-radius: 6px;
    --mobile-width: 390px;
    --hard-shadow: 4px 4px 0 var(--ink);
}

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

/* 基本設定:PCではダーク背景、中央寄せ */
body {
    margin: 0;
    padding: 0;
    background-color: #17191d;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', sans-serif;
    color: var(--ink);
}

#mobile-container {
    width: 100%;
    max-width: var(--mobile-width);
    min-height: 100vh;
    background-color: var(--paper);
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.35);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media screen and (max-width: 600px) {
    body { background-color: var(--paper); display: block; }
    #mobile-container { max-width: 100%; box-shadow: none; border-radius: 0; }
}

#mobile-container::-webkit-scrollbar { display: none; }

section {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    position: relative;
    flex-shrink: 0;
}

h2 {
    font-size: 1.35rem;
    margin: 0 0 16px 0;
    font-weight: 900;
    letter-spacing: 0.03em;
    display: inline-block;
    background: var(--ink);
    color: var(--paper);
    padding: 6px 18px;
    transform: skewX(-8deg);
}

/* 1. ファーストビュー:大胆タイポ+斜めストライプ */
.hero-banner {
    width: 100%;
    height: 230px;
    background:
        repeating-linear-gradient(-45deg,
            transparent 0 18px,
            rgba(16, 20, 24, 0.05) 18px 36px),
        var(--paper);
    border-bottom: 4px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: 'GO!';
    position: absolute;
    right: -10px; bottom: -22px;
    font-family: 'Anton', 'Arial Black', 'Impact', sans-serif;
    font-size: 6rem;
    color: var(--yellow);
    -webkit-text-stroke: 3px var(--ink);
    transform: rotate(-6deg);
    opacity: 0.85;
    pointer-events: none;
}
/* 上部の赤ライン */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 10px;
    background: var(--red);
}

.hero-banner h1 {
    font-size: 1.75rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 900;
    color: var(--ink);
    text-align: center;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
    background: var(--paper);
    box-shadow: var(--hard-shadow);
    border: 3px solid var(--ink);
    padding: 12px 18px;
    transform: rotate(-1.5deg);
}

.content-inner {
    width: 100%;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 2. 応募の準備 */
.preparation-content { margin-top: 50px; }

.checklist { width: 100%; max-width: 320px; }
.check-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #ffffff;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    border: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform 0.1s, box-shadow 0.1s;
}
.check-item:has(input:checked) {
    background-color: var(--yellow);
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
}
.check-item input { width: 18px; height: 18px; margin-right: 12px; accent-color: var(--red); }
.check-item span { font-size: 0.88rem; font-weight: 900; line-height: 1.35; }

.note-text {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--red);
    margin-top: 8px;
    text-align: center;
    line-height: 1.4;
}

/* 3. 仮登録から申し込みまで */
section.flow-section { padding-top: 50px; }

.status-header { width: 100%; margin-bottom: 15px; text-align: center; }
.time-display { font-size: 0.8rem; margin-bottom: 6px; font-weight: 700; color: var(--text-sub); }
#minutes {
    font-size: 1.5rem;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    color: var(--red);
}
.progress-track {
    width: 100%; height: 10px;
    background-color: #ffffff;
    border: 2px solid var(--ink);
    overflow: hidden;
    border-radius: 0;
}
#progress-bar {
    width: 20%; height: 100%;
    background: repeating-linear-gradient(-45deg,
        var(--red) 0 10px, #b91f1c 10px 20px);
    transition: width 0.3s ease;
}

.swipe-hint {
    font-size: 0.75rem;
    color: var(--text-sub);
    margin: 10px 0 15px 0;
    font-weight: 900;
    letter-spacing: 0.05em;
}

/* 横スライダー */
.slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 12px;
}
.slider::-webkit-scrollbar { display: none; }

.slide-card {
    min-width: 95%;
    background-color: #ffffff;
    padding: 25px 20px;
    border-radius: var(--border-radius);
    scroll-snap-align: center;
    text-align: left;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 3px solid var(--ink);
    box-shadow: var(--hard-shadow);
    position: relative;
}
.step-num {
    font-family: 'Anton', sans-serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--paper);
    background: var(--red);
    display: inline-block;
    align-self: flex-start;
    padding: 2px 14px;
    transform: skewX(-8deg);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    border: 2px solid var(--ink);
}
.slide-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    font-weight: 900;
    border-bottom: 3px solid var(--yellow);
    display: inline-block;
    align-self: flex-start;
    padding-bottom: 2px;
}
.slide-card p { margin: 0 0 15px 0; font-size: 0.85rem; line-height: 1.6; color: var(--text-sub); font-weight: 500; }

.mini-checklist {
    font-size: 0.8rem;
    background: var(--paper);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 2px solid var(--ink);
    flex-grow: 0;
}
.mini-check-item { display: flex; align-items: center; margin-bottom: 7px; font-weight: 900; }
.mini-check-item input { margin-right: 10px; width: 16px; height: 16px; accent-color: var(--red); }

.step-note {
    font-size: 0.75rem;
    color: var(--text-sub);
    margin-top: 10px;
    font-weight: 700;
    line-height: 1.7;
}

/* ステップ5内のCTAエリア */
.step-cta-container {
    margin-top: auto;
    padding-top: 20px;
    text-align: center;
    border-top: 3px dashed var(--ink);
}
.apply-title {
    font-size: 1.3rem;
    font-weight: 900;
    margin: 0 !important;
    line-height: 1.2;
    background: none;
    color: var(--ink);
    padding: 0;
    transform: none;
}
.apply-subtitle {
    margin: 6px 0 16px 0 !important;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-sub) !important;
}
.apply-cta {
    width: 100%;
    max-width: 260px;
    background-color: var(--red);
    color: #ffffff;
    padding: 16px;
    border-radius: var(--border-radius);
    border: 3px solid var(--ink);
    box-shadow: var(--hard-shadow);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 900;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.04em;
    transition: transform 0.1s, box-shadow 0.1s;
}
.apply-cta:active {
    transform: translate(3px, 3px);
    box-shadow: 1px 1px 0 var(--ink);
}

/* 4. FAQ */
section.faq-section { padding-top: 50px; }
.faq-item { width: 100%; border-bottom: 2px solid var(--ink); }
.faq-question {
    padding: 14px 4px;
    font-size: 0.88rem;
    font-weight: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.faq-question::after { content: '＋'; font-size: 1rem; font-weight: 900; color: var(--red); }
.faq-item.active .faq-question::after { content: '－'; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s;
    font-size: 0.78rem;
    background-color: var(--yellow);
}
.faq-answer p { padding: 10px 12px; margin: 0; color: var(--ink); font-weight: 700; line-height: 1.6; }
.faq-item.active .faq-answer { max-height: 100px; }

footer {
    margin-top: 30px;
    padding: 24px 0 30px;
    font-size: 0.62rem;
    color: var(--paper);
    text-align: center;
    width: 100%;
    line-height: 1.8;
    background: var(--ink);
}

/* ============================================
   PC用背景(pc_back.png 全面表示/モバイル非表示)
============================================ */
.pc-bg {
    position: fixed;
    inset: 0;
    display: none;
    overflow: hidden;
    background: #17191d;
    z-index: 0;
}

/* 写真レイヤー(パララックス対象) */
.pc-bg .photo {
    position: absolute;
    left: 0; right: 0; top: -120px; bottom: -120px;
    background-image: url('../img/pc_back.png');
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* 暗めのオーバーレイ(文字の可読性確保) */
.pc-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,12,14,.25), rgba(10,12,14,0) 40%, rgba(10,12,14,.6));
    pointer-events: none;
}
/* 裾の赤ライン(デザイン親和用アクセント) */
.pc-bg::before {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 8px;
    background: var(--red);
    z-index: 2;
}

/* キャッチコピー:ヒーローh1と同じ「紙ボックス×ハードシャドウ」で統一 */
.pc-copy {
    position: absolute;
    left: clamp(16px, 3.5vw, 56px);
    bottom: 11vh;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.pc-copy .line {
    display: inline-block;
    background: var(--paper);
    color: var(--ink);
    font-weight: 900;
    font-size: clamp(1.1rem, 2vw, 2rem);
    line-height: 1;
    padding: 10px 14px;
    box-shadow: 6px 6px 0 var(--red);
    transform: skewX(-6deg);
    white-space: nowrap;
}
.pc-copy .line em { font-style: normal; color: var(--red); }
.pc-copy .sub {
    font-family: 'Anton', sans-serif;
    color: var(--yellow);
    letter-spacing: .18em;
    font-size: clamp(.7rem, 1vw, .95rem);
    margin-top: 8px;
    text-shadow: 2px 2px 0 var(--ink);
}
.pc-word {
    position: absolute;
    right: clamp(10px, 2vw, 30px);
    top: 7vh;
    z-index: 2;
    writing-mode: vertical-rl;
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: transparent;
    -webkit-text-stroke: 2px var(--red);
    letter-spacing: .12em;
}

@media (min-width: 900px) {
    .pc-bg { display: block; }
}
