@charset "UTF-8";

/* ==========================================================================
   TrailDiary テスト版のご案内 — アプリの昼の配色に合わせたスタイル
   地 #F4FCFF / 面 #E6FAFF / 文字・線 #0E2A3A / 補助 #2E4B5C
   アクセント #0090B0 / ふち #7FCFE0 / 注意 #C2410C
   ========================================================================== */

:root {
  --bg: #F4FCFF;
  --surface: #E6FAFF;
  --ink: #0E2A3A;
  --ink-sub: #2E4B5C;
  --accent: #0090B0;
  --border: #7FCFE0;
  --warn: #C2410C;
  --white: #FFFFFF;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-mono: Consolas, "SFMono-Regular", Menlo, monospace;
  --max: 960px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.85;
  letter-spacing: 0.02em;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  word-break: break-all;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 252, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

.site-header__brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-header__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.875rem;
}

.site-header__nav a {
  color: var(--ink-sub);
  text-decoration: none;
}

.site-header__nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: 3rem 0 2.5rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.hero__icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(14, 42, 58, 0.12);
}

.hero__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.hero__title {
  margin: 0.2rem 0 0.4rem;
  font-size: 2rem;
  line-height: 1.35;
}

.hero__lead {
  margin: 0 0 1.5rem;
  color: var(--ink-sub);
}

.hero__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero__choices--3 {
  grid-template-columns: repeat(3, 1fr);
}

.choice {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.choice:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.choice__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.choice__name { font-weight: 700; font-size: 1.05rem; }

.choice__desc { font-size: 0.85rem; color: var(--ink-sub); }

/* ---------- Test band ---------- */
.test-band {
  background: var(--warn);
  color: var(--white);
  padding: 0.85rem 0;
  font-size: 0.98rem;
}

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }

.section--alt {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}

.section__title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.2rem 0 1.25rem;
  padding-bottom: 0.6rem;
  font-size: 1.6rem;
  line-height: 1.4;
  border-bottom: 2px solid var(--ink);
}

.section__title-sub {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-sub);
}

.section__icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.step-title {
  margin: 2.25rem 0 0.75rem;
  padding-left: 0.7rem;
  font-size: 1.2rem;
  line-height: 1.5;
  border-left: 4px solid var(--accent);
}

.step-title__note {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-sub);
}

p { margin: 0 0 1rem; }

.small { font-size: 0.9rem; color: var(--ink-sub); }

/* ---------- Lists ---------- */
.steps {
  margin: 0 0 1.25rem;
  padding-left: 1.6rem;
}

.steps > li {
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
}

.steps > li::marker {
  font-weight: 700;
  color: var(--accent);
}

.bullets {
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.bullets li { margin-bottom: 0.4rem; }

.sub-options {
  list-style: none;
  margin: 0.75rem 0 0.5rem;
  padding: 0;
}

.sub-options > li {
  margin-bottom: 0.9rem;
  padding: 0.9rem 1rem 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.notice-list {
  margin: 0;
  padding-left: 1.4rem;
}

.notice-list li { margin-bottom: 0.85rem; }

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  background: var(--white);
  font-size: 0.97rem;
}

th, td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

thead th { background: var(--surface); }

.spec th {
  width: 30%;
  background: var(--surface);
  font-weight: 700;
}

.files td:first-child { white-space: nowrap; font-family: var(--font-mono); font-size: 0.9rem; }

.trouble td:first-child { width: 40%; font-weight: 500; }

/* ---------- Figures ---------- */
.figure {
  margin: 1.5rem 0 1.75rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-sub);
  text-align: center;
}

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 0 0 1rem;
}

.feature {
  padding: 1rem 1.15rem 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feature__no {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

.feature__title { margin: 0 0 0.35rem; font-size: 1.05rem; }

.feature p:last-child { font-size: 0.95rem; }

.feature--wide { grid-column: 1 / -1; }

.diff-table th:not(:first-child),
.diff-table td:not(:first-child) {
  text-align: center;
  width: 24%;
}

/* ---------- Callouts ---------- */
.callout {
  margin: 1rem 0 1.5rem;
  padding: 0.9rem 1.1rem 0.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
}

.callout--info { background: var(--white); }

.callout--warn {
  background: #FFF4EE;
  border-color: #F3C3A8;
  border-left-color: var(--warn);
}

.callout--warn strong { color: var(--warn); }

.tag {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0 0.5rem;
  background: var(--ink-sub);
  color: var(--white);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Buttons ---------- */
.download-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}

.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

.btn--secondary {
  background: var(--white);
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--secondary:hover { background: var(--surface); color: var(--ink); }

.btn--large { padding: 0.95rem 1.6rem; font-size: 1.08rem; }

.link-quiet { font-size: 0.88rem; color: var(--ink-sub); }

/* ---------- Code block ---------- */
.code {
  position: relative;
  margin: 0.5rem 0 1rem;
}

.code pre {
  margin: 0;
  padding: 0.9rem 5.5rem 0.9rem 1rem;
  background: var(--ink);
  color: #E6FAFF;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code pre code {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  word-break: normal;
  white-space: pre;
}

.code__copy {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.65rem;
  background: var(--accent);
  color: var(--white);
  border: 0;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  cursor: pointer;
}

.code__copy:hover { background: #00A8CE; }

/* ---------- Two columns ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 1.75rem 0;
  font-size: 0.85rem;
  color: var(--ink-sub);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.site-footer a { color: var(--ink-sub); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero__choices--3 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header__inner { flex-direction: column; align-items: flex-start; padding-top: 0.5rem; padding-bottom: 0.5rem; }
  .site-header__nav { gap: 0.15rem 0.8rem; font-size: 0.82rem; }
  html { scroll-padding-top: 110px; }
  .hero { padding: 2rem 0 1.75rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 1rem; }
  .hero__icon { width: 80px; height: 80px; border-radius: 18px; }
  .hero__title { font-size: 1.55rem; }
  .hero__choices { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .section__title { font-size: 1.35rem; }
  .features { grid-template-columns: 1fr; }
  .spec th { width: 36%; }
  th, td { padding: 0.55rem 0.6rem; font-size: 0.9rem; }
  .files td:first-child { white-space: normal; word-break: break-all; }
  .figure { padding: 0.5rem; }
  .btn--large { width: 100%; justify-content: center; }
}

