:root {
  --bg: #fbfbf8;
  --ink: #17191e;
  --sub: #5d626b;
  --rule: #dcddd8;
  --led: #ffa41c;    /* 橙 LED */
  --led-g: #4ade5c;  /* 緑 LED */
  --led-r: #ff4b3a;  /* 赤 LED */
  --oe: #1f7fc4;   /* 小田急江ノ島線 */
  --so: #14275a;   /* 相鉄本線 */
  --dt: #1c9f7a;   /* 東急田園都市線 */
  --mincho: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --gothic: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --latin: "Noto Sans JP", "Helvetica Neue", sans-serif;
  --max: 1040px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --gutter: clamp(40px, 8vw, 96px);
  --glow: 0 0 .5em rgb(255 164 28 / .45);
}

* { box-sizing: border-box; }
/* html 側にも指定しておくと、body の overflow-x: clip が body 自身に効き、
   画面外へ伸びる相鉄線（.station.cross::after）が横スクロールの余地を作らない */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--gothic); font-size: 16px; line-height: 2;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  font-synthesis: none;
}
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
.latin { font-family: var(--latin); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sub); }

/* header */
.head {
  max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto;
  padding: 1.5rem var(--pad);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.head-name { font-family: var(--mincho); font-weight: 700; text-decoration: none; letter-spacing: .08em; }
.head-nav { display: flex; gap: 2rem; font-size: .85rem; }
.head-nav a { text-decoration: none; color: var(--sub); }
.head-nav a:hover { color: var(--dt); }
@media (max-width: 640px) { .head-nav { display: none; } }

/* hero */
.hero {
  max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--pad) clamp(4rem, 9vw, 7rem);
  display: grid; grid-template-columns: 1fr minmax(260px, 360px) auto;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.hero h1 {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.35; letter-spacing: .06em;
  margin: 1.2rem 0 2rem;
}
.hero-lead { color: var(--sub); max-width: 26em; }
.link {
  display: inline-block; margin-top: 2.2rem; padding-bottom: .2rem;
  text-decoration: none; font-weight: 500;
  border-bottom: 2px solid var(--dt);
}
.link::after { content: "→"; margin-left: .8em; display: inline-block; transition: transform .2s; }
.link:hover::after { transform: translateX(.4em); }

.tagline {
  writing-mode: vertical-rl; align-self: start;
  font-family: var(--mincho); font-weight: 500;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem); letter-spacing: .5em; line-height: 2.4;
  color: var(--ink);
}
.tagline span { display: block; }
.tagline span + span { margin-top: 3em; }

.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map path { fill: none; stroke-width: 6; stroke-linecap: round; }
.l-oe { stroke: var(--oe); }
.l-so { stroke: var(--so); }
.l-dt { stroke: var(--dt); }
.st circle { fill: var(--bg); stroke: var(--ink); stroke-width: 3; }
.st .here { stroke-width: 4; }
.lbl text { font-family: var(--gothic); font-size: 13px; font-weight: 500; fill: var(--ink); }
.lbl .lbl-here { font-family: var(--mincho); font-size: 30px; font-weight: 700; letter-spacing: .1em; }
.dir text { font-family: var(--gothic); font-size: 10.5px; fill: var(--sub); letter-spacing: .08em; }
.map figcaption { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin-top: 1.2rem; font-size: .72rem; color: var(--sub); justify-content: center; }
.lg::before { content: ""; display: inline-block; width: 1.4em; height: 4px; border-radius: 2px; margin-right: .5em; vertical-align: middle; }
.lg-oe::before { background: var(--oe); }
.lg-so::before { background: var(--so); }
.lg-dt::before { background: var(--dt); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .tagline { writing-mode: horizontal-tb; order: -1; letter-spacing: .3em; line-height: 2; }
  .tagline span { display: inline; }
  .tagline span + span { margin: 0; }
  .map { max-width: 340px; margin: 0 auto; width: 100%; }
}

/* route: ページを貫く江ノ島線 */
.route {
  position: relative;
  max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto;
  padding: 0 var(--pad) 0 calc(var(--pad) + var(--gutter));
}
.route::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(var(--pad) + 9px); width: 6px; border-radius: 3px;
  background: linear-gradient(to bottom, transparent, var(--oe) 4rem, var(--oe) calc(100% - 4rem), transparent);
}
.stop { padding: clamp(3rem, 7vw, 5rem) 0; }
.stop:first-child { padding-top: 5rem; }

.station {
  position: relative; z-index: 0;
  display: flex; align-items: baseline; gap: .9rem;
  margin-bottom: 1.6rem; line-height: 1.4; height: 18px;
}
.station::before {
  content: ""; position: absolute; top: 50%; left: calc(3px - var(--gutter));
  width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--ink); z-index: 1;
}
.station .ja { font-size: .9rem; font-weight: 700; letter-spacing: .15em; }
.station .en { font-family: var(--latin); font-size: .78rem; letter-spacing: .14em; color: var(--sub); }
.station span { background: var(--bg); }

/* 大和駅：相鉄本線が横切る */
.station.cross::after {
  content: ""; position: absolute; top: 50%; left: -100vw; right: -100vw;
  height: 6px; margin-top: -3px; background: var(--so); z-index: -1;
}
.station.cross::before { width: 26px; height: 26px; margin-top: -13px; left: calc(-1px - var(--gutter)); border-width: 4px; }
.station.cross span { padding: 0 .6rem; margin: 0 -.6rem; }
.station.cross .ja { font-size: 1.05rem; }
.station .xfer { margin-left: auto !important; font-size: .72rem; color: var(--so); letter-spacing: .1em; padding-left: .8rem !important; }

h2 {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: .08em; line-height: 1.5;
  margin-bottom: 2rem;
}
.prose { max-width: 36em; }
.prose p + p { margin-top: 1.4em; }

/* やること */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.three h3 { font-family: var(--mincho); font-size: 1.6rem; font-weight: 700; letter-spacing: .12em; padding-bottom: .8rem; margin-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.three p { color: var(--sub); font-size: .95rem; }
@media (max-width: 760px) { .three { grid-template-columns: 1fr; gap: 2rem; } }

/* まち */
.town div { display: grid; grid-template-columns: 14em 1fr; gap: 1rem 2rem; padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.town div:last-child { border-bottom: 1px solid var(--rule); }
.town dt { font-family: var(--mincho); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; }
.town dd { color: var(--sub); font-size: .95rem; }
@media (max-width: 760px) { .town div { grid-template-columns: 1fr; gap: .3rem; } }

/* 次回：発車標 */
.board { font-family: "DotGothic16", monospace; position: relative; background: #000; border: 1px solid #33363b; border-radius: 4px; padding: .4rem 0 0; overflow: hidden; box-shadow: inset 0 0 0 4px #15171a; }
.board::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 1.1px, rgb(0 0 0 / .45) 1.5px) 0 0 / 3px 3px; }
.board-head, .board-row { display: grid; grid-template-columns: 8rem 8rem 1fr 9rem; gap: 1rem; padding: .5rem clamp(1rem, 3vw, 1.8rem); align-items: baseline; }
.board-head { font-size: .75rem; color: #8b8f96; letter-spacing: .2em; border-bottom: 1px solid #22252a; }
.board-row { font-size: clamp(1.15rem, 2.6vw, 1.7rem); color: var(--led); text-shadow: var(--glow); letter-spacing: .08em; line-height: 1.6; }
.board-row .r { color: var(--led-r); text-shadow: 0 0 .5em rgb(255 75 58 / .5); }
.board-row .g { color: var(--led-g); text-shadow: 0 0 .5em rgb(74 222 92 / .45); }
.board-row.dim { opacity: .55; }
.board-ticker { border-top: 1px solid #22252a; margin-top: .4rem; padding: .6rem 0; overflow: hidden; white-space: nowrap; }
.board-ticker p { display: inline-block; padding-left: 100%; color: var(--led); text-shadow: var(--glow); letter-spacing: .12em; animation: ticker 28s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .board-ticker { white-space: normal; padding: .6rem 1rem; } .board-ticker p { animation: none; padding-left: 0; } }
@media (max-width: 640px) { .board-head, .board-row { grid-template-columns: 4.6rem 4.6rem 1fr; gap: .6rem; } .board .opt { display: none; } }
.event-info { margin-top: 2rem; max-width: 40em; }
.event-info div { display: grid; grid-template-columns: 5.5em 1fr; padding: .7rem 0; border-top: 1px solid var(--rule); }
.event-info div:last-child { border-bottom: 1px solid var(--rule); }
.event-info dt { font-weight: 700; font-size: .9rem; letter-spacing: .1em; }
.note { margin-top: 1.8rem; font-size: .88rem; color: var(--sub); }

/* 参加 */
.steps { list-style: none; padding: 0; counter-reset: s; max-width: 40em; }
.steps li { counter-increment: s; position: relative; padding: 1.2rem 0 1.2rem 3.4rem; border-top: 1px solid var(--rule); color: var(--sub); font-size: .95rem; }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s); position: absolute; left: .3rem; top: 1rem; font-family: var(--latin); font-size: 1.6rem; line-height: 1.4; color: var(--dt); }
.steps strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 700; }

/* FAQ */
.faq { max-width: 40em; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--sub); font-size: .95rem; }

/* footer */
.foot { text-align: center; padding: 4rem var(--pad) 3.5rem; }
.foot-next { font-size: .85rem; color: var(--sub); letter-spacing: .1em; }
.foot-name { font-family: var(--mincho); font-weight: 700; letter-spacing: .12em; margin: 2.5rem 0 .4rem; }

/* 404 */
.lost { min-height: 80vh; display: grid; place-content: center; text-align: center; padding: var(--pad); }
.lost h1 { font-family: var(--mincho); font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: .1em; margin: 1rem 0; }

.three h3 { border-bottom-color: var(--ink); }

/* 運営 */
.org { display: flex; gap: 1.5rem; align-items: center; }
.org img { border-radius: 50%; border: 1px solid var(--rule); background: #fff; flex: none; }
.org-name { font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
.org-bio { color: var(--sub); font-size: .95rem; }
.org-links { display: flex; gap: 1.4rem; margin-top: .4rem; font-size: .9rem; }
.org-links a { text-decoration: none; border-bottom: 2px solid var(--dt); line-height: 1.6; }
.org-links a:hover { color: var(--dt); }

/* 運営メンバー募集 */
.recruit { margin-top: 2rem; }
.recruit div { grid-template-columns: 9em 1fr; }
.note a { border-bottom: 1px solid var(--dt); text-decoration: none; color: var(--ink); }

/* お問い合わせ（Inqbox の埋め込みフォーム）
   widget はクラスを付けずに素の DOM を描くので、data 属性とタグで装飾する。
   https://inqbox.jp/docs/embed */
.contact-form { margin-top: 2rem; max-width: 40em; display: grid; gap: 1.6rem; }
.contact-form:empty { min-height: 12rem; }
/* widget が hidden 属性で隠している要素（「その他」の自由入力欄など）を、下の display 指定で出してしまわない */
.contact-form [hidden] { display: none !important; }
.contact-form [data-field] { min-width: 0; }
.contact-form label { display: block; }
.contact-form [data-field] > label > span:first-child,
.contact-form legend {
  display: block; padding: 0; margin-bottom: .4rem;
  font-weight: 700; font-size: .9rem; letter-spacing: .1em; line-height: 1.6;
}
.contact-form [data-description] { display: block; margin: -.2rem 0 .5rem; color: var(--sub); font-size: .82rem; line-height: 1.7; }
.contact-form [data-type="note"] { color: var(--sub); font-size: .9rem; }

.contact-form input:not([type="checkbox"], [type="radio"]),
.contact-form textarea,
.contact-form select {
  display: block; width: 100%; padding: .7rem .9rem;
  font: inherit; line-height: 1.6; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 4px;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { min-height: 10rem; resize: vertical; }
.contact-form :is(input, textarea, select):focus-visible {
  outline: none; border-color: var(--dt); box-shadow: 0 0 0 3px rgb(28 159 122 / .2);
}
.contact-form ::placeholder { color: #a3a7ae; }

/* チェックボックス・ラジオ */
.contact-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.contact-form fieldset label,
.contact-form [data-inqbox-consent] { display: flex; align-items: baseline; gap: .6rem; padding: .15rem 0; font-size: .95rem; cursor: pointer; }
.contact-form input:is([type="checkbox"], [type="radio"]) { flex: none; width: 1.05em; height: 1.05em; margin: 0; accent-color: var(--dt); transform: translateY(.12em); }
.contact-form [data-inqbox-privacy] { font-size: .88rem; color: var(--sub); }
.contact-form a { text-decoration: none; border-bottom: 1px solid var(--dt); }
.contact-form a:hover { color: var(--dt); }

/* エラー */
.contact-form [data-invalid] :is(input:not([type="checkbox"], [type="radio"]), textarea, select) { border-color: var(--led-r); }
.contact-form [data-error] { margin-top: .4rem; color: #c8321f; font-size: .85rem; line-height: 1.6; }

/* 送信ボタンと、その下のメッセージ */
.contact-form > button {
  justify-self: start; padding: .8rem 2.6rem;
  font: inherit; font-weight: 700; letter-spacing: .2em; line-height: 1.6;
  color: var(--bg); background: var(--ink); border: 1px solid var(--ink); border-radius: 4px;
  cursor: pointer; transition: background-color .2s, border-color .2s;
}
.contact-form > button:hover { background: var(--dt); border-color: var(--dt); }
.contact-form > button:focus-visible { outline: 3px solid rgb(28 159 122 / .4); outline-offset: 2px; }
.contact-form > button:disabled { opacity: .5; cursor: progress; }
.contact-form > p { font-size: .88rem; color: var(--sub); }
.contact-form > p:empty { display: none; }

/* 選択肢で「その他」を選ぶと出る自由入力欄。widget は入力欄だけを出すので、何を書く欄かを添える */
.contact-form label:has(+ input:not([hidden]))::after {
  content: "「その他」の内容を入力してください（30文字まで）";
  display: block; margin-top: .9rem;
  font-size: .82rem; line-height: 1.7; color: var(--sub);
}
/* 下部の Inqbox 表記のリンク：下線が幅いっぱいに伸びないようにする */
.contact-form > a { justify-self: start; }
