/* ==========================================================================
   デイリーローンチ 公式ハブ — "daily shipping log / mission control" theme
   Signature: monospace instrument labels + DAY counter + launch-log feed
   ========================================================================== */

/* ---- tokens (dark = 既定) ------------------------------------------------ */
:root {
  --bg:        #0B0E14;
  --bg-2:      #0D1119;
  --panel:     #10141D;
  --panel-2:   #141A25;
  --line:      rgba(150,168,200,.13);
  --line-2:    rgba(150,168,200,.24);
  --ink:       #EDF0F6;
  --muted:     #9AA4B6;
  --dim:       #6A7488;
  --accent:    #FFB020;              /* brand amber — fills, streak, CTA */
  --accent-2:  #FF9A3D;
  --accent-text:#FFC864;             /* amber as readable text on dark */
  --on-accent: #0B0E14;
  --live:      #34D399;
  --glow:      radial-gradient(60% 55% at 82% -10%, rgba(255,176,32,.18), transparent 70%);
  --shadow:    0 14px 34px -18px rgba(0,0,0,.75);
  --shadow-hi: 0 22px 50px -20px rgba(0,0,0,.8);
  --radius:    14px;
  --maxw:      1120px;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Yu Gothic UI", monospace;
  --sans: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Segoe UI", system-ui, -apple-system, "Noto Sans JP", sans-serif;
}
:root[data-theme="light"] {
  --bg:        #F5F6F9;
  --bg-2:      #FFFFFF;
  --panel:     #FFFFFF;
  --panel-2:   #FBFCFE;
  --line:      rgba(15,23,42,.10);
  --line-2:    rgba(15,23,42,.17);
  --ink:       #14181F;
  --muted:     #55606F;
  --dim:       #8790A0;
  --accent:    #E5820A;
  --accent-2:  #C96B00;
  --accent-text:#A85D00;
  --on-accent: #FFFFFF;
  --live:      #0E9F6E;
  --glow:      radial-gradient(60% 55% at 82% -10%, rgba(229,130,10,.12), transparent 70%);
  --shadow:    0 12px 30px -18px rgba(15,23,42,.22);
  --shadow-hi: 0 20px 44px -22px rgba(15,23,42,.30);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg:#F5F6F9;--bg-2:#FFFFFF;--panel:#FFFFFF;--panel-2:#FBFCFE;
    --line:rgba(15,23,42,.10);--line-2:rgba(15,23,42,.17);--ink:#14181F;
    --muted:#55606F;--dim:#8790A0;--accent:#E5820A;--accent-2:#C96B00;
    --accent-text:#A85D00;--on-accent:#FFFFFF;--live:#0E9F6E;
    --glow:radial-gradient(60% 55% at 82% -10%, rgba(229,130,10,.12), transparent 70%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: .01em; }
a { color: var(--accent-text); text-decoration: none; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px;
  border-radius: 8px; font-weight: 700; transition: top .15s;
}
.skip:focus { top: 12px; }

/* ---- nav ---------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 800; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-2)) padding-box;
  box-shadow: 0 0 0 1px var(--line-2), 0 6px 18px -8px var(--accent);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px 6px auto 6px; height: 3px;
  background: var(--on-accent); border-radius: 2px; opacity: .9;
  box-shadow: 0 5px 0 var(--on-accent);
}
.brand-text { font-size: 16px; letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 2px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.theme-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  background: var(--panel); border: 1px solid var(--line-2); color: var(--ink);
  border-radius: 10px; cursor: pointer; font-size: 17px; transition: border-color .15s, transform .15s;
}
.theme-btn:hover { border-color: var(--accent); transform: translateY(-1px); }

/* ---- layout scaffolding ------------------------------------------------- */
main { display: block; }
section { padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px); }
.sec-head { max-width: var(--maxw); margin: 0 auto clamp(28px, 4vw, 48px); }
.sec-title {
  font-size: clamp(24px, 3.6vw, 38px); line-height: 1.22; font-weight: 800;
  margin: 0 0 12px; letter-spacing: -.01em; display: flex; flex-direction: column; gap: 10px;
}
.sec-kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--accent-text); text-transform: uppercase; }
.sec-sub { color: var(--muted); margin: 0; max-width: 62ch; font-size: 15px; }

/* ---- define (デイリーローンチとは) ------------------------------------- */
.define-sec { background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.define-inner { max-width: 820px; margin: 0 auto; }
.define-h { font-size: clamp(22px, 3.2vw, 32px); line-height: 1.25; font-weight: 800; margin: 0 0 16px; letter-spacing: -.01em; display: flex; flex-direction: column; gap: 8px; }
.define-lead {
  font-size: clamp(16px, 2vw, 19px); line-height: 1.85; color: var(--ink); margin: 0 0 8px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 18px clamp(16px, 3vw, 22px);
}
.define-lead strong { color: var(--accent-text); }
.define-faq { margin: 20px 0 0; display: flex; flex-direction: column; gap: 4px; }
.define-faq .qa { padding: 16px 2px; border-bottom: 1px solid var(--line); }
.define-faq .qa:last-child { border-bottom: 0; }
.define-faq .qa-q { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.define-faq .qa-q::before { content: "Q. "; color: var(--accent-text); font-family: var(--mono); font-weight: 700; }
.define-faq .qa-a { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 0; }

/* ---- hero --------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px); background: var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 0%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.eyebrow { font-size: 14px; letter-spacing: .12em; color: var(--accent-text); font-weight: 700; margin: 0 0 20px; text-transform: uppercase; }
.eyebrow .sep { color: var(--dim); margin: 0 4px; }
.hero-h1 {
  font-size: clamp(40px, 8.4vw, 86px); line-height: 1.02; font-weight: 800;
  letter-spacing: -.03em; margin: 0 0 22px;
}
.hero-lead { font-size: clamp(15px, 2vw, 18px); color: var(--muted); max-width: 60ch; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(36px, 5vw, 56px); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px;
  padding: 12px 22px; border-radius: 11px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn .arrow { transition: transform .18s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 26px -12px var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px var(--accent); }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--panel); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-k { font-size: 11px; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; margin: 0; }
.stat-v { font-size: clamp(28px, 4.6vw, 44px); font-weight: 700; line-height: 1; color: var(--accent-text); margin: 2px 0; }
.stat-l { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---- launch log --------------------------------------------------------- */
.log-sec { background: var(--bg-2); border-top: 1px solid var(--line); }
.log { list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw); position: relative; }
.log::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.log-row {
  position: relative; display: grid;
  grid-template-columns: 22px 96px 1fr auto; align-items: center; gap: 16px;
  padding: 16px 6px 16px 0; border-bottom: 1px solid var(--line);
}
.log-row:last-child { border-bottom: 0; }
.log-dot {
  width: 14px; height: 14px; border-radius: 50%; margin-left: 0;
  background: var(--live); box-shadow: 0 0 0 4px color-mix(in srgb, var(--live) 22%, transparent); flex: none;
}
.log-row:first-child .log-dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 6%, transparent); } }
.log-date { font-size: 13px; color: var(--muted); }
.log-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.log-name { color: var(--ink); font-weight: 700; font-size: 16px; }
.log-name:hover { color: var(--accent-text); }
.badge-new { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--on-accent); background: var(--accent); padding: 2px 7px; border-radius: 5px; vertical-align: middle; margin-left: 6px; }
.log-job { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-cat { font-size: 12px; color: var(--dim); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }

/* ---- sites grid --------------------------------------------------------- */
.sites-sec { background: var(--bg); }
.catblock { max-width: var(--maxw); margin: 0 auto clamp(36px, 5vw, 56px); }
.cat-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.cat-idx { font-size: 13px; color: var(--accent-text); font-weight: 700; }
.cat-title { font-size: clamp(17px, 2.4vw, 22px); font-weight: 800; margin: 0; flex: 1; }
.cat-count { font-size: 12px; color: var(--dim); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); position: relative; overflow: hidden;
  transition: transform .16s, border-color .16s, box-shadow .16s, background .16s;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-hi); background: var(--panel-2); }
.card:hover::before { width: 100%; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 6px; }
:root[data-theme="light"] .tag, :root:not([data-theme="dark"]) .tag { background: color-mix(in srgb, var(--accent) 8%, var(--panel-2)); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.pill.is-live .dot { background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 20%, transparent); }
.pill.is-live { color: var(--live); }
.card-name { font-size: 17.5px; font-weight: 800; margin: 0; line-height: 1.35; letter-spacing: -.01em; }
.card-job { font-size: 14px; color: var(--muted); margin: 0; flex: 1; line-height: 1.6; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 2px; }
.card-date { font-size: 12px; color: var(--dim); }
.card-date .k { color: var(--dim); opacity: .8; margin-right: 3px; }
.card-go { font-size: 13px; font-weight: 700; color: var(--accent-text); display: inline-flex; align-items: center; gap: 5px; }
.card-go .arrow { transition: transform .18s; }
.card:hover .card-go .arrow { transform: translateX(4px); }

/* ---- about -------------------------------------------------------------- */
.about-sec { background: var(--bg-2); border-top: 1px solid var(--line); }
.about-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-lead p { color: var(--muted); font-size: 15.5px; }
.about-mission { color: var(--ink) !important; font-weight: 600; border-left: 3px solid var(--accent); padding-left: 16px; margin-top: 20px; }
.pr-list { display: flex; flex-direction: column; gap: 14px; }
.pr-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.pr-title { font-size: 16px; font-weight: 800; margin: 0 0 8px; display: flex; align-items: center; gap: 9px; }
.pr-title::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); flex: none; }
.pr-body { color: var(--muted); font-size: 14px; margin: 0; }
.ppl { max-width: var(--maxw); margin: clamp(40px, 6vw, 72px) auto 0; }
.ppl-head { font-size: clamp(18px, 2.6vw, 24px); font-weight: 800; margin: 0 0 24px; display: flex; flex-direction: column; gap: 8px; }
.ppl-head .mono { font-size: 12px; letter-spacing: .16em; color: var(--accent-text); font-weight: 700; }
.ppl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: none; }
.ppl-step { background: var(--panel); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.ppl-num { font-size: 12px; color: var(--accent-text); font-weight: 700; letter-spacing: .1em; }
.ppl-name { font-weight: 800; font-size: 15px; }
.ppl-body { color: var(--muted); font-size: 13px; }

/* ---- channels ----------------------------------------------------------- */
.ch-sec { background: var(--bg); border-top: 1px solid var(--line); }
.ch-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.ch-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.ch-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.ch-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--accent-text); }
.ch-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.ch-label { font-weight: 800; font-size: 15px; }
.ch-handle { font-size: 12px; color: var(--dim); font-weight: 500; }
.ch-desc { color: var(--muted); font-size: 13px; }
.ch-go { color: var(--dim); font-size: 18px; }
.ch-card:hover .ch-go { color: var(--accent-text); }

/* ---- footer ------------------------------------------------------------- */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 40px) 28px; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.foot-brand { display: flex; gap: 12px; align-items: flex-start; }
.foot-name { font-weight: 800; margin: 0 0 4px; }
.foot-note { color: var(--muted); font-size: 14px; margin: 0; max-width: 40ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links a { color: var(--muted); font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--accent-text); }
.foot-bar { max-width: var(--maxw); margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--dim); font-size: 12px; }

/* ---- doc pages (citation) ---------------------------------------------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px); }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 22px; }
.crumbs a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin: 0 0 16px; letter-spacing: -.01em; }
.doc h2 { font-size: clamp(19px, 2.6vw, 23px); font-weight: 800; margin: 40px 0 12px; }
.doc-lead { color: var(--muted); font-size: 16px; }
.doc-lead .mono { display: block; margin-top: 10px; font-size: 13px; color: var(--dim); }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.cite-eg { background: var(--panel); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); padding: 14px 16px; border-radius: 8px; font-size: 14px; color: var(--ink); overflow-x: auto; }
.back { margin-top: 40px; }
.back a { font-weight: 700; }

/* ---- trust page (編集と検証の方針) ------------------------------------- */
.trust-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.trust-item { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; row-gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.trust-item .ti-num { grid-row: span 2; font-size: 15px; font-weight: 700; color: var(--accent-text); padding-top: 2px; }
.trust-item h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.trust-item p { margin: 6px 0 0; font-size: 14.5px; }
.trust-eg { margin: 8px 0 0; background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px clamp(16px, 3vw, 22px); }
.trust-eg .eg-label { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .03em; color: var(--accent-text); }
.trust-eg p { margin: 12px 0 0; font-size: 15px; }
.trust-eg .eg-q { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.trust-flow { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 4px; }
.trust-flow li { flex: 1 1 160px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.trust-flow li b { display: block; color: var(--accent-text); font-size: 13px; margin-bottom: 3px; font-weight: 800; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .log-row { grid-template-columns: 20px 1fr; grid-template-areas: "dot date" "dot body" "dot meta"; row-gap: 5px; column-gap: 12px; align-items: start; }
  .log-dot { grid-area: dot; align-self: start; margin-top: 3px; }
  .log-date { grid-area: date; font-size: 12px; }
  .log-body { grid-area: body; flex-direction: column; }
  .log-cat { grid-area: meta; justify-self: start; }
  .log-job { white-space: normal; }
}
@media (max-width: 420px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13px; }
  .brand-text { font-size: 15px; }
}
