/* ============================================================
   艦隊通信部室 — Landing (bright bridge / sea, single screen)
   ============================================================ */

:root {
  --ink:        #0e2c46;   /* navy text on light */
  --ink-soft:   #3a5b76;
  --ink-mute:   #6d869c;
  --teal:       #0e9d92;
  --teal-deep:  #0c7f77;
  --teal-bright:#16c0b0;
  --gold:       #f5b945;

  --sky-1:      #bfe2f5;
  --sky-2:      #ddf1fb;
  --sea-1:      #7fb9dd;
  --sea-2:      #2f78aa;

  --glass:      rgba(255, 255, 255, 0.66);
  --glass-line: rgba(255, 255, 255, 0.85);

  --radius:     22px;
  --maxw:       980px;

  --font-jp: "Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* , *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-jp);
  line-height: 1.7;
  letter-spacing: 0.01em;
  background: var(--sky-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--teal-deep);
  background: rgba(14, 157, 146, 0.1);
  border: 1px solid rgba(14, 157, 146, 0.2);
  padding: 0.06em 0.4em;
  border-radius: 6px;
  white-space: nowrap;
}

/* ============================================================
   Scenery — sky, sun, clouds, horizon, sea, window frame
   ============================================================ */
.scenery { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.scenery::before { /* sky + sea in one wash */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #b3dcf2 0%,
    #cfe9f8 26%,
    #e9f6fd 50%,   /* horizon haze */
    #9ec9e6 56%,   /* sea begins */
    #5f9ecb 74%,
    #2f78aa 100%
  );
}

/* 背景は空→海のグラデーションのみ（装飾グラフィックは使わない） */

/* ============================================================
   Stage layout (header / hero / footer in one column)
   ============================================================ */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-inline: clamp(20px, 4vw, 56px);
}

/* ---- header ---- */
.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 12px rgba(18, 58, 92, 0.28); }
.bm-ring { fill: none; stroke: var(--teal-deep); stroke-width: 1.6; opacity: 0.6; }
.bm-ring--inner { opacity: 0.4; }
.bm-core { fill: var(--teal); }
.bm-sweep { stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; }
.bm-blip { stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-weight: 900; font-size: 1.12rem; letter-spacing: 0.04em; color: var(--ink); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
}
.topbar-meta {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px);
}
.status-led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 8px var(--teal-bright);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.4; } }

/* ---- hero ---- */
.hero {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(16px, 4vh, 48px);
}

.panel {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 4vw, 54px);
  padding: clamp(26px, 3vw, 44px);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow:
    0 40px 90px rgba(18, 58, 92, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  text-align: left;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.intro { min-width: 0; }

/* single-column centered variant (404) */
.panel--solo {
  grid-template-columns: 1fr;
  max-width: 640px;
  text-align: center;
}
.panel--solo .intro { display: flex; flex-direction: column; align-items: center; }
.panel--solo .actions { justify-content: center; }
.panel--solo .title { font-size: clamp(3.5rem, 12vw, 6rem); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(14, 157, 146, 0.08);
  border: 1px solid rgba(14, 157, 146, 0.22);
}
.eyebrow-div { width: 1px; height: 12px; background: rgba(14, 157, 146, 0.35); }

.title {
  margin: 0;
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.lead {
  margin: 18px 0 0;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--ink-soft);
}
.lead p { margin: 0 0 12px; }
.lead p:last-child { margin-bottom: 0; }
.lead-note {
  margin-top: 16px;
  padding: 11px 16px;
  border-left: 3px solid var(--teal);
  background: rgba(14, 157, 146, 0.07);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep));
  color: #fff;
  box-shadow: 0 12px 28px rgba(12, 127, 119, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(12, 127, 119, 0.42); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(18, 58, 92, 0.16);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--teal); background: #fff; transform: translateY(-2px); }
.badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: #eafffb;
}
.badge--soft { background: rgba(14, 157, 146, 0.12); color: var(--teal-deep); }

.req {
  margin: 26px 0 0;
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* ---- app screenshot window ---- */
.shot { margin: 0; min-width: 0; line-height: 0; }
.shot-window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(18, 58, 92, 0.28);
  box-shadow: 0 30px 70px rgba(18, 58, 92, 0.38);
}
.shot img { display: block; width: 100%; height: auto; }

/* ---- footer ---- */
.legal {
  flex: 0 0 auto;
  padding: 18px 0 22px;
  text-align: center;
  color: #eaf6fb;
}
.legal p { margin: 0 auto; max-width: 720px; font-size: 0.74rem; line-height: 1.7; text-shadow: 0 1px 3px rgba(13, 44, 70, 0.45); }
.legal-copy {
  margin-top: 8px !important;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  opacity: 0.92;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(18px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--teal);
  color: var(--ink);
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 16px 44px rgba(18, 58, 92, 0.28);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
  backdrop-filter: blur(8px);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; gap: 28px; }
  .shot { max-width: 620px; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .topbar-meta { display: none; }
  .actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
