/* =============================================
   top.css  (redesign)
   ============================================= */

ul { list-style: none; padding-left: 0; }

body {
    overflow-y: scroll;
    padding-bottom: env(safe-area-inset-bottom);
}

/* ===== CSS変数 ===== */
:root {
    --navy: rgb(1,29,69);
    --orange: #ffa500;
    --orange-light: #fff3e0;
    --text-sub: rgba(1,29,69,.55);
    --bg-light: #f7f9fc;
    --radius: 24px;
}

/* ===== ヘッダー上書き（base.htmlのheaderをtopページ用にカスタム） ===== */
header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 60px;
    padding: 0 40px;
    position: fixed;
    top: 0;
    z-index: 5000;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(1,29,69,.06);
    transition: box-shadow .3s;
    box-sizing: border-box;
}
header.scrolled { box-shadow: 0 2px 20px rgba(1,29,69,.08); }
.app-title img { height: 24px; }
.header-content {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 6px;
}
.header-content a { font-weight: 600; font-size: 13px; transition: .2s; }
.header-content a:hover { color: var(--orange); }
#app-login { padding: 8px 16px; border-radius: 8px; }
#app-start {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--navy);
    color: #fff !important;
    padding: 9px 22px;
    border-radius: 100px;
    font-weight: 700;
    transition: .25s;
}
#app-start:hover {
    background: var(--orange) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,165,0,.3);
}

/* ===== ヒーロー ===== */
.hero {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 80px 8% 80px 10%;
    gap: 60px;
    background: linear-gradient(135deg, #f5f8ff 0%, #eef2fb 60%, #e8eef8 100%);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute; top: -180px; right: -80px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,165,0,.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--orange-light); color: #b37400;
    font-size: 11px; font-weight: 700;
    padding: 5px 14px; border-radius: 100px;
    margin-bottom: 22px; letter-spacing: .6px;
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* toppage.js の .road-output アニメーション維持 */
.road-output {
    opacity: 0;
    transform: translateY(20px);
    transition: 1s;
}
.road-output.show {
    opacity: 1;
    transform: translateY(0);
}
.hero-text h1 {
    font-family: "Arial Black";
    font-size: clamp(30px, 4.2vw, 58px);
    font-weight: 900;
    line-height: 1.08; letter-spacing: -1.5px;
    margin-bottom: 8px;
}
.hero-tagline {
    font-size: clamp(14px, 1.6vw, 18px);
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-desc {
    font-size: clamp(13px, 1.2vw, 15px);
    color: var(--text-sub); line-height: 1.85;
    margin-bottom: 36px; max-width: 400px;
}
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--navy); color: #fff;
    padding: 14px 32px; border-radius: 100px;
    font-size: 15px; font-weight: 700; letter-spacing: .3px;
    transition: .25s; box-shadow: 0 4px 20px rgba(1,29,69,.18);
}
.btn-primary:hover {
    background: var(--orange);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,165,0,.35);
}
.btn-secondary {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--navy); padding: 14px 24px; border-radius: 100px;
    font-size: 15px; font-weight: 600;
    border: 1.5px solid rgba(1,29,69,.2); transition: .25s;
}
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.hero-img-col { position: relative; z-index: 1; }
.hero-img-col img {
    width: 100%; border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(1,29,69,.14), 0 6px 20px rgba(1,29,69,.08);
}
.float-card {
    position: absolute; background: #fff; border-radius: 16px;
    padding: 13px 16px;
    box-shadow: 0 8px 32px rgba(1,29,69,.12);
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    z-index: 2;
}
.float-card-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--orange-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.float-card-sub { font-size: 11px; color: var(--text-sub); }
.float-card.bottom-left {
    bottom: -14px; left: -16px;
    animation: floatY 5s ease-in-out infinite;
}
.float-card.top-right {
    top: -14px; right: -16px;
    animation: floatY 5s ease-in-out 2.5s infinite;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== 交互セクション ===== */
.alt-section { padding: 100px 0; border-bottom: 1px solid rgba(1,29,69,.05); }
.alt-section-bg { background: var(--bg-light); }
.alt-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 8%;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
}
.alt-inner-reverse { direction: rtl; }
.alt-inner-reverse > * { direction: ltr; }
.alt-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
    color: var(--orange); text-transform: uppercase; margin-bottom: 14px;
}
.alt-label::before { content: ''; width: 16px; height: 2px; background: var(--orange); border-radius: 2px; }
.alt-text h2 {
    font-family: 'Nunito', 'Noto Sans JP', sans-serif;
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 900; letter-spacing: -1px;
    line-height: 1.2; margin-bottom: 18px;
}
.alt-text p {
    font-size: clamp(13px, 1.2vw, 15px);
    color: var(--text-sub); line-height: 1.9;
}
.alt-img img {
    width: 100%; border-radius: var(--radius);
    box-shadow: 0 16px 48px rgba(1,29,69,.12);
    transition: transform .4s;
}
.alt-img:hover img { transform: scale(1.02); }

/* ===== ステップ ===== */
.steps-section {
    padding: 100px 0;
    background: var(--navy); color: #fff;
    text-align: center; position: relative; overflow: hidden;
}
.steps-section::before {
    content: ''; position: absolute; top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 700px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,165,0,.1) 0%, transparent 65%);
    pointer-events: none;
}
.steps-inner { max-width: 960px; margin: 0 auto; padding: 0 8%; }
.steps-header { margin-bottom: 0; }
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    margin-top: 56px; position: relative;
}
.steps-grid::before {
    content: ''; position: absolute;
    top: 35px; left: calc(16.6% + 35px);
    width: calc(66.6% - 70px); height: 1px;
    background: linear-gradient(90deg, rgba(255,165,0,.7), rgba(255,165,0,.2));
}
.step-card { padding: 0 28px; position: relative; z-index: 1; }
.step-num {
    width: 70px; height: 70px; border-radius: 50%;
    background: rgba(255,255,255,.07); border: 2px solid rgba(255,165,0,.5);
    color: var(--orange);
    font-family: 'Nunito', sans-serif; font-size: 26px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #fff; }
.step-card p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.8; }

/* ===== 利用シーン ===== */
.scene-section { padding: 100px 0; }
.scene-inner { max-width: 1100px; margin: 0 auto; padding: 0 8%; }
.scene-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 52px;
}
.scene-card {
    border-radius: 20px; padding: 32px 26px;
    border: 1px solid rgba(1,29,69,.07); transition: .3s;
    position: relative; overflow: hidden;
}
.scene-card::before {
    content: ''; position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--orange); opacity: 0; transition: .3s;
}
.scene-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(1,29,69,.08); border-color: transparent; }
.scene-card:hover::before { opacity: 1; }
.scene-emoji { font-size: 34px; margin-bottom: 16px; }
.scene-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 9px; }
.scene-card p { font-size: 13px; color: var(--text-sub); line-height: 1.8; margin: 0; }

/* ===== CTA ===== */
.cta-section {
    padding: 120px 24px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #eef2f8 100%);
    text-align: center;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ===== フッター ===== */
footer {
    background: var(--navy);
    color: rgba(182,182,182,.85);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-inner {
    max-width: 960px; width: 100%;
    display: flex; flex-wrap: wrap; gap: 60px;
    padding: 64px 40px; justify-content: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 200px; }
.footer-brand img { height: 22px; }
.footer-brand p { font-size: 12px; line-height: 1.75; margin: 0; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 14px; letter-spacing: .5px; }
.footer-col li { font-size: 13px; margin-bottom: 10px; }
.footer-col a { transition: .2s; }
.footer-col a:hover { color: var(--orange); }
.footer-copy {
    border-top: 1px solid rgba(255,255,255,.07);
    height: 52px; width: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
}

/* ===== 共通 ===== */
.section-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
    color: var(--orange); text-transform: uppercase; margin-bottom: 14px;
}
.section-label::before { content: ''; width: 16px; height: 2px; background: var(--orange); border-radius: 2px; }
.section-label.center { justify-content: center; }
.section-title {
    font-family: 'Nunito', 'Noto Sans JP', sans-serif;
    font-size: clamp(24px, 3.2vw, 42px);
    font-weight: 900; letter-spacing: -1px;
    margin-bottom: 14px; line-height: 1.15;
}
.section-sub {
    font-size: clamp(13px, 1.2vw, 15px);
    color: var(--text-sub); line-height: 1.85; max-width: 500px;
}
.section-sub.center { margin: 0 auto; text-align: center; }
.steps-section .section-title,
.steps-section .section-sub { color: rgba(255,255,255,.65); }
.steps-section .section-title { color: #fff; }

/* ===== スクロールアニメーション ===== */
.fade-up {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 56px 6% 48px; gap: 40px; }
    .hero-img-col { max-width: 500px; margin: 0 auto; }
    .float-card.top-right { display: none; }
    .float-card.bottom-left { bottom: -10px; left: 10px; }
    .alt-inner { grid-template-columns: 1fr; gap: 36px; padding: 0 6%; }
    .alt-inner-reverse { direction: ltr; }
    .alt-inner-reverse > * { direction: ltr; }
    .steps-grid { grid-template-columns: 1fr; gap: 36px; }
    .steps-grid::before { display: none; }
    .scene-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    header { padding: 0 16px; height: 52px; }
    .app-title img { height: 20px; }
    #app-login { display: none; }
    #app-start { padding: 8px 16px; font-size: 12px; }
    .hero { margin-top: 52px; padding: 48px 5% 40px; }
    .alt-section { padding: 64px 0; }
    .steps-section, .scene-section, .cta-section { padding: 72px 0; }
    .steps-inner, .scene-inner { padding: 0 16px; }
    .cta-section { padding: 72px 16px; }
    .footer-inner { flex-direction: column; gap: 28px; padding: 40px 20px; align-items: flex-start; }
    .footer-copy { font-size: 11px; }
}
