/* highlow-base — 背景は GPU で描く等高線の地形。文字は地形の高さに乗って浮き沈みする */
:root {
  --paper: #f3faf6;
  --card: #ffffff;
  --ink: #1b2440;
  --ink-soft: #46506e;
  --high: #e8336d;
  --low: #3d63f0;
  --line: #1b2440;
  --gutter: clamp(1.25rem, 6vw, 6rem);
  --display: "Futura", "Futura PT", "Century Gothic", "Avenir Next", sans-serif;
  --text: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.9;
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

#terrain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

/* 地形の上に置く文字の下地（線が透けて読みにくくならないように） */
.lead span, .hint span, .foot span {
  background: var(--paper);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: .05em .35em;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem var(--gutter);
}

.mark {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 12.5vw, 11rem);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
  view-transition-name: mark;
}
.mark .w { display: inline-block; }
.mark .rider { display: inline-block; will-change: transform; }
.mark .hi { color: var(--high); }
.mark .lo { color: var(--low); }
/* base は動かない地面。太い線の上に立つ */
.mark .base {
  display: inline-block;
  color: var(--ink);
  border-bottom: .09em solid var(--ink);
  line-height: .95;
}

.lead {
  margin: 2.5rem 0 0;
  font-size: clamp(1.15rem, 2.8vw, 1.6rem);
  font-weight: 700;
  line-height: 1.7;
}
.hint {
  margin: 1rem 0 0;
  max-width: 40em;
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 2.1;
}
.no-gl .hint { display: none; }

/* ---------- 下の段：base（紺の太線）より下は地面。地形は見せない ---------- */
.sheet {
  background: var(--paper);
  border-top: .6rem solid var(--ink);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) 3rem;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}
.places, .ask { max-width: 68rem; }

h2 { margin: 0 0 1rem; font-size: 1.2rem; line-height: 1.5; }

.places ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem 2.5rem;
}
.place .icon {
  width: 2.25rem; height: 2.25rem;
  fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.place h3 { margin: .4rem 0 0; font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.4; }
.place p { margin: .2rem 0 .6rem; color: var(--ink-soft); }
.status {
  display: inline-block;
  padding: 0 .75rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
}

.ask p { margin: 0 0 1.25rem; }
.button, button[type="submit"] {
  display: inline-block;
  padding: .75rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--high);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button[type="submit"]:hover { background: #c9265a; }
button[type="submit"][disabled] { opacity: .55; cursor: progress; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--low);
  outline-offset: 3px;
}

.foot { background: var(--paper); padding: 0 var(--gutter) 2.5rem; font-size: .85rem; color: var(--ink-soft); }
.foot p { margin: 0; }

/* ---------- 依頼フォーム ---------- */
.subhead { padding: 1.5rem var(--gutter) 0; }
.mark-small {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
  view-transition-name: mark;
}
.mark-small .hi { color: var(--high); }
.mark-small .lo { color: var(--low); }

.form-page { padding: 2rem var(--gutter) 4rem; max-width: 46rem; }
.form-page h1 { margin: 0 0 .75rem; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.4; }
.form-page .intro { margin: 0 0 2rem; }

form { display: grid; gap: .35rem; }
label { font-weight: 700; margin-top: 1rem; }
label .req, label .opt {
  margin-left: .6rem; padding: 0 .5rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; vertical-align: .1em;
}
label .req { background: var(--high); color: #fff; }
label .opt { background: #e2e6ef; color: var(--ink); }
input, textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 2px solid var(--ink);
  border-radius: .75rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; min-height: 10rem; }
.help, .count { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.count { text-align: right; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-top: 1.25rem; min-height: 65px; }
form button[type="submit"] { margin-top: 1rem; justify-self: start; }
#form-status { margin: .75rem 0 0; font-weight: 700; min-height: 1.9em; }
#form-status.error { color: #b3123f; }

.privacy {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 1rem;
  background: #fff;
}
.privacy h2 { font-size: 1.05rem; }
.privacy ul { margin: 0; padding-left: 1.2rem; }
.privacy li { margin: .25rem 0; }

/* ---------- 404・送信後 ---------- */
.notice { padding: 4rem var(--gutter); max-width: 46rem; }
.notice h1 { margin: 0 0 1rem; font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.4; }
.notice p { margin: 0 0 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  .mark .rider { will-change: auto; }
}
