/* Tripics 紹介サイト。外部フォント・解析タグは読み込まない（プライバシーの約束のため） */
:root {
  --paper: #eef1ec;
  --land: #e1e8e0;
  --water: #d3e3e6;
  --ink: #1c2421;
  --muted: #56625d;
  --route: #ff6d3f;
  --teal: #1f7a6d;
  --line: #c9d3cc;
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151a19;
    --land: #1b2221;
    --water: #1c292c;
    --ink: #e7ece8;
    --muted: #9aa6a1;
    --teal: #5fc2b0;
    --line: #2c3633;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
}
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--route); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- ヘッダー ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: 0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.site-head nav { display: flex; gap: 18px; font-size: 14px; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover { color: var(--ink); }

/* ---------- ヒーロー ---------- */
.hero { display: grid; gap: 28px; padding: 28px 0 56px; align-items: center; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.05fr 1fr; gap: 48px; padding: 56px 0 88px; } }
.hero h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 84px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.hero .lead { margin: 22px 0 0; font-size: 17px; color: var(--muted); max-width: 30em; }
.status { margin: 26px 0 0; display: inline-flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink); border-left: 3px solid var(--route); padding: 2px 0 2px 12px; }

.map { width: 100%; height: auto; border-radius: 22px; background: var(--water); }
.map .land { fill: var(--land); }
.map .grid { stroke: var(--line); stroke-width: 1; opacity: 0.6; }
.map .route { fill: none; stroke: var(--route); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 12; }
.map .pin { fill: var(--teal); }
.map .pin-hole { fill: var(--water); }
.map .photo { fill: var(--paper); stroke: var(--ink); stroke-opacity: 0.12; }
.map .photo-in { fill: var(--route); opacity: 0.22; }
.map .label { fill: var(--ink); font: 700 13px var(--font); }

/* 一度だけ、線が引かれていく（点線そのものではなく、マスクを伸ばして見せる） */
.map .route-mask { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .map .route-mask { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s ease-out 0.3s forwards; }
  .map .stop { opacity: 0; animation: pop 0.4s ease-out forwards; }
  .map .stop-1 { animation-delay: 0.4s; }
  .map .stop-2 { animation-delay: 1.3s; }
  .map .stop-3 { animation-delay: 2.3s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- 旅の3区間（縦のルート上の停留所） ---------- */
.legs { position: relative; padding: 8px 0 40px; }
.legs::before {
  content: "";
  position: absolute; left: 15px; top: 24px; bottom: 60px;
  border-left: 4px dotted var(--route);
}
@media (min-width: 720px) { .legs::before { left: 23px; } }
.leg { position: relative; padding: 0 0 56px 52px; max-width: 46em; }
@media (min-width: 720px) { .leg { padding-left: 76px; } }
.leg::before {
  content: "";
  position: absolute; left: 4px; top: 10px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper); border: 5px solid var(--teal);
}
@media (min-width: 720px) { .leg::before { left: 12px; } }
.leg h2 { margin: 0; font-size: clamp(30px, 5vw, 40px); line-height: 1.25; font-weight: 900; letter-spacing: -0.02em; }
.leg .when { margin: 2px 0 14px; color: var(--muted); font-size: 15px; }
.leg ul { margin: 0; padding: 0; list-style: none; }
.leg li { padding: 12px 0; border-top: 1px solid var(--line); }
.leg li strong { display: block; font-size: 17px; }
.leg li span { color: var(--muted); font-size: 15px; }

/* ---------- プライバシーの帯 ---------- */
.promise { background: var(--land); border-radius: 28px; padding: 36px 22px; margin: 8px 0 56px; }
@media (min-width: 720px) { .promise { padding: 52px 56px; } }
.promise h2 { margin: 0 0 12px; font-size: clamp(26px, 4.4vw, 36px); line-height: 1.35; font-weight: 900; letter-spacing: -0.02em; max-width: 18em; }
.promise p { margin: 0 0 12px; max-width: 38em; }
.promise ul { margin: 6px 0 16px; padding-left: 1.2em; max-width: 38em; }
.promise li { margin: 4px 0; }

/* ---------- フッター ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
.site-foot a { color: var(--muted); }

/* ---------- 文書ページ（プライバシー・規約・サポート） ---------- */
.doc { max-width: 42em; padding: 24px 0 64px; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.25; font-weight: 900; letter-spacing: -0.02em; margin: 8px 0 12px; }
.doc .lead { font-size: 17px; color: var(--muted); margin: 0 0 8px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 44px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 17px; font-weight: 800; margin: 26px 0 6px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 1.4em; }
.doc li { margin: 6px 0; }
.doc .note { background: var(--land); border-radius: 16px; padding: 16px 20px; margin: 18px 0; }
.doc .meta { margin-top: 48px; font-size: 13px; color: var(--muted); }
.doc dl { margin: 0; }
.doc dt { font-weight: 800; margin-top: 22px; }
.doc dd { margin: 4px 0 0; }
