/* =====================================================
   SideTimeTable Landing Page — Redesign
   Dark theme · Modern · Responsive
   ===================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --clr-bg:        #0b0f1e;
    --clr-surface:   #131929;
    --clr-card:      #1a2236;
    --clr-border:    rgba(255, 255, 255, 0.07);
    --clr-border-hi: rgba(99, 102, 241, 0.35);

    --clr-text:      #f0f4ff;
    --clr-muted:     #8b9ab5;
    --clr-sub:       #5a6a87;

    --clr-indigo:    #6366f1;
    --clr-indigo-lt: #a5b4fc;
    --clr-cyan:      #06b6d4;
    --clr-violet:    #8b5cf6;
    --clr-emerald:   #10b981;
    --clr-amber:     #f59e0b;
    --clr-red:       #ef4444;

    --grad-main:     linear-gradient(135deg, #6366f1, #06b6d4);
    --grad-purple:   linear-gradient(135deg, #8b5cf6, #6366f1);

    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;

    --ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --dur:        0.3s;

    --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
    background: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a  { color: inherit; }
button { cursor: pointer; background: none; border: none; font: inherit; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 200;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0 28px;
    transition: background var(--dur) var(--ease),
                border-bottom var(--dur) var(--ease),
                backdrop-filter var(--dur) var(--ease);
}

.navbar.scrolled {
    background: rgba(11, 15, 30, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--clr-border);
}

.nav-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    color: var(--clr-text);
}

.nav-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
}

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: 40px;
    flex: 1;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--clr-muted);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

.nav-links a:hover {
    color: var(--clr-text);
}

.nav-cta {
    flex-shrink: 0;
    background: var(--grad-main);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 999px;
    text-decoration: none;
    transition: opacity var(--dur) var(--ease),
                transform var(--dur) var(--ease);
}

.nav-cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 60px) 28px 80px;
}

/* Background decorations */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    opacity: 0.35;
    filter: blur(90px);
}

.glow-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    top: -220px;
    left: -180px;
}

.glow-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    bottom: -120px;
    right: -60px;
}

.grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Hero layout */
.hero-body {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

/* Content side */
.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--clr-indigo-lt);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}

.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.7rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.text-gradient {
    background: var(--grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--clr-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

/* CTA Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-main);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 4px 28px rgba(99, 102, 241, 0.38);
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.52);
}

.btn-primary.btn-lg {
    padding: 16px 34px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-ghost {
    color: var(--clr-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

.btn-ghost:hover {
    color: var(--clr-text);
}

/* Meta bar */
.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-val {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--clr-text);
    line-height: 1.2;
}

.meta-lbl {
    font-size: 0.72rem;
    color: var(--clr-sub);
}

.meta-sep {
    width: 1px;
    height: 30px;
    background: var(--clr-border);
}

/* =====================================================
   PANEL MOCKUP (Hero Visual)
   ===================================================== */
.hero-visual {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.panel-wrap {
    position: relative;
}

.panel-mockup {
    width: 268px;
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.18),
        0 32px 80px rgba(0, 0, 0, 0.55),
        0 0 120px rgba(99, 102, 241, 0.08);
    animation: float 7s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50%       { transform: translateY(-14px) rotate(-1.5deg); }
}

.panel-glow-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Panel header */
.pm-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--clr-border);
    background: rgba(255,255,255,0.03);
}

.pm-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--clr-muted);
}

.pm-nav {
    display: flex;
    gap: 4px;
}

.pm-btn {
    color: var(--clr-sub);
    font-size: 1rem;
    padding: 0 4px;
    transition: color var(--dur) var(--ease);
}

/* Panel body / timeline */
.pm-body {
    padding: 12px 14px 16px;
}

.pm-timeline {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tl-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 46px;
}

.tl-row--sm {
    min-height: 36px;
}

.tl-row--now {
    min-height: 18px;
    align-items: center;
}

.tl-time {
    width: 36px;
    flex-shrink: 0;
    font-size: 0.6rem;
    color: var(--clr-sub);
    padding-top: 8px;
    text-align: right;
    font-feature-settings: "tnum";
}

.tl-time--now {
    color: var(--clr-red);
    font-weight: 700;
    padding-top: 0;
}

/* Event blocks */
.tl-event {
    flex: 1;
    border-radius: 6px;
    padding: 7px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 2.5px solid transparent;
}

.ev-indigo  { background: rgba(99,102,241,0.2);  border-color: #6366f1; }
.ev-emerald { background: rgba(16,185,129,0.2);  border-color: #10b981; }
.ev-violet  { background: rgba(139,92,246,0.2);  border-color: #8b5cf6; }
.ev-amber   { background: rgba(245,158,11,0.18); border-color: #f59e0b; }

.ev-name {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--clr-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ev-dur {
    font-size: 0.59rem;
    color: var(--clr-muted);
}

/* Current time line */
.now-line {
    flex: 1;
    height: 2px;
    background: var(--clr-red);
    border-radius: 1px;
    display: flex;
    align-items: center;
    position: relative;
}

.now-dot {
    position: absolute;
    left: -1px;
    width: 8px;
    height: 8px;
    background: var(--clr-red);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(239,68,68,0.7);
}

/* =====================================================
   SECTION COMMON
   ===================================================== */
.section {
    padding: 100px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--clr-indigo-lt);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}

.section-sub {
    color: var(--clr-muted);
    font-size: 1rem;
}

/* =====================================================
   FEATURES
   ===================================================== */
.features {
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(99, 102, 241, 0.03) 50%,
        transparent
    );
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feat-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    transition: transform var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
}

.feat-card:hover {
    transform: translateY(-4px);
    border-color: var(--clr-border-hi);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

.feat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.fi-indigo  { background: rgba(99,102,241,0.18);  color: var(--clr-indigo-lt); }
.fi-cyan    { background: rgba(6,182,212,0.18);   color: #67e8f9; }
.fi-red     { background: rgba(239,68,68,0.18);   color: #fca5a5; }
.fi-emerald { background: rgba(16,185,129,0.18);  color: #6ee7b7; }
.fi-amber   { background: rgba(245,158,11,0.18);  color: #fcd34d; }
.fi-violet  { background: rgba(139,92,246,0.18);  color: #c4b5fd; }

.feat-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feat-card p {
    color: var(--clr-muted);
    font-size: 0.875rem;
    line-height: 1.75;
}

/* =====================================================
   SCREENSHOTS
   ===================================================== */
.screenshots {
    background: rgba(255,255,255,0.015);
}

.shots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.shot-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--clr-border);
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}

.shot-wrap:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    border-color: var(--clr-border-hi);
}

.shot-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Chrome Web Store screenshot標準比率でスペース予約しレイアウトシフトを防ぐ */
    aspect-ratio: 16 / 10;
    background-color: var(--clr-surface);
}

/* =====================================================
   INSTALL
   ===================================================== */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.step {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    max-width: 280px;
    flex: 1;
    min-width: 220px;
    text-align: center;
    transition: border-color var(--dur) var(--ease);
}

.step:hover {
    border-color: var(--clr-border-hi);
}

.step-num {
    width: 44px;
    height: 44px;
    background: var(--grad-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0 auto 18px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.step h3 {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step p {
    color: var(--clr-muted);
    font-size: 0.84rem;
    line-height: 1.7;
}

.step-arrow {
    font-size: 1.6rem;
    color: var(--clr-sub);
    flex-shrink: 0;
    padding-top: 30px;
}

.install-cta {
    text-align: center;
}

.webstore-badge {
    height: 22px;
    vertical-align: middle;
    margin-right: 8px;
    opacity: 0.9;
}

/* =====================================================
   DEVELOPER
   ===================================================== */
.developer {
    background: rgba(255,255,255,0.015);
}

.dev-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
    transition: border-color var(--dur) var(--ease);
}

.dev-card:hover {
    border-color: var(--clr-border-hi);
}

.dev-avatar-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--clr-border-hi);
    object-fit: cover;
}

.dev-role {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--clr-indigo-lt);
    margin-bottom: 4px;
}

.dev-name {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.dev-mail {
    color: var(--clr-muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

.dev-mail:hover {
    color: var(--clr-cyan);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--clr-border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--clr-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

.footer-nav a:hover {
    color: var(--clr-text);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--clr-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--clr-sub);
    font-size: 0.8rem;
}

/* =====================================================
   PAGE HERO (サブページ共通)
   ===================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-h) + 72px) 28px 72px;
    text-align: center;
    border-bottom: 1px solid var(--clr-border);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 16px 0 12px;
}

.page-hero-sub {
    color: var(--clr-muted);
    font-size: 1rem;
}

/* =====================================================
   PROSE (プライバシーポリシー等)
   ===================================================== */
.prose-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 28px 100px;
}

.prose-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-xl);
    padding: 48px 52px;
    margin-bottom: 32px;
}

.prose-lead {
    color: var(--clr-muted);
    font-size: 1rem;
    line-height: 1.8;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--clr-border);
    margin-bottom: 36px;
}

.prose-section {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--clr-border);
}

.prose-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.prose-section-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-indigo-lt);
    margin-top: 2px;
}

.prose-section-body {
    flex: 1;
    min-width: 0;
}

.prose-section-body h2 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--clr-text);
}

.prose-section-body p {
    color: var(--clr-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.prose-section-body ul {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prose-section-body ul li {
    color: var(--clr-muted);
    font-size: 0.9rem;
    padding-left: 18px;
    position: relative;
}

.prose-section-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    background: var(--clr-indigo);
    border-radius: 50%;
}

.prose-mail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--clr-indigo-lt);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

.prose-mail:hover {
    color: var(--clr-cyan);
}

.prose-back {
    text-align: center;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.anim-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s var(--ease),
                transform 0.55s var(--ease);
}

.anim-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .hero-body {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-meta {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .features-grid,
    .shots-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding-top: 0;
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .dev-card {
        flex-direction: column;
        text-align: center;
        padding: 32px 28px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-left: 20px;
        padding-right: 20px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 72px 0;
    }

    .panel-mockup {
        width: 240px;
    }
}
