/* 閲覧画面・参加登録画面のデザイン（スマホ優先） */

:root {
  --ink: #12333b;
  --ink-soft: #55696e;
  --bg: #f6f3ec;
  --surface: #ffffff;
  --line: #e3ddd0;
  --accent: #d9573a;
  --accent-dark: #bf4428;
  --teal: #1f7a78;
  --gold: #e9c46a;
  --line-green: #06c755;
  --radius: 16px;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif;
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); }

.wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- ヘッダー ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
  padding: 7px 18px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { height: 46px; width: auto; max-width: 120px; object-fit: contain; }

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}

/* ---------- ヒーロー ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 44px 0 48px;
}

.hero .wrap { position: relative; }

.hero-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 1.5;
}
.hero-rings circle { stroke: rgba(233, 196, 106, .55); }
.hero-rings circle:nth-child(2) { stroke: rgba(255, 255, 255, .28); }
.hero-rings circle:nth-child(3) { stroke: rgba(79, 190, 184, .6); }
.hero-rings circle:nth-child(4) { stroke: rgba(255, 255, 255, .16); }

.eyebrow {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(21px, 6.4vw, 34px);
  line-height: 1.4;
  letter-spacing: .02em;
}

.lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.95;
  color: rgba(255, 255, 255, .88);
}

/* ---------- セクション ---------- */

.section { padding-top: 36px; padding-bottom: 8px; }

.section-title {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
}
.section-title span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.section-title span::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid var(--accent);
}

.section-note { margin: 0 0 16px; font-size: 13px; color: var(--ink-soft); }

.loading, .empty {
  margin: 28px 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------- セミナーカード ---------- */

.seminar-list { display: grid; gap: 22px; }

.card {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(18, 51, 59, .04), 0 12px 28px rgba(18, 51, 59, .07);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(18, 51, 59, .05), 0 18px 36px rgba(18, 51, 59, .12);
}
.card:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.card-photo img { width: 100%; height: auto; }

.card-noimg {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #12333b, #1f7a78);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  text-align: center;
}

.card-body { padding: 14px 16px 16px; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.badge {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}
.badge.online { background: var(--teal); }

.card h3 {
  margin: 6px 0 12px;
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.5;
}

.card-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.card-cta::after { content: "→"; }

/* ---------- スポンサー ---------- */

.sponsor-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 520px) { .sponsor-list { grid-template-columns: repeat(3, 1fr); } }

.sponsor-list li > * {
  display: grid;
  place-items: center;
  height: 84px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}
.sponsor-list img { max-height: 58px; width: auto; object-fit: contain; }

/* ---------- フッター ---------- */

.site-foot {
  margin-top: 48px;
  padding: 30px 0 34px;
  background: var(--ink);
  color: rgba(255, 255, 255, .85);
  text-align: center;
  font-size: 13.5px;
}
.site-foot p { margin: 0 0 14px; }
.site-foot .copy { margin: 22px 0 0; font-size: 12.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.site-foot .copy:first-child { margin-top: 0; }

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 26px;
  border-radius: 999px;
  background: var(--line-green);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.btn-line:hover { filter: brightness(.95); }

/* ---------- 参加登録画面 ---------- */

.reg { padding-top: 18px; }

.back {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.back::before { content: "← "; }

.reg-head h1 {
  margin: 6px 0 16px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(22px, 6.4vw, 30px);
  line-height: 1.45;
}

.reg-photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.panel {
  margin: 0 0 20px;
  padding: 20px 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-head);
  font-size: 18px;
}

.details { margin: 0; display: grid; grid-template-columns: 5.2em 1fr; font-size: 15px; }
.details dt, .details dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.details dt { font-weight: 700; color: var(--ink-soft); font-size: 13.5px; padding-top: 11px; }
.details dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.details dt:nth-last-child(2), .details dd:last-child { border-bottom: 0; }

/* 質問 */

form.panel { counter-reset: q; }

.q {
  counter-increment: q;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.q legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.6;
}
.q legend::before { content: counter(q) "．"; color: var(--teal); }

em {
  font-style: normal;
  display: inline-block;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: 2px;
}
em.opt { background: #8a989b; }

.help { margin: 0 0 8px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }

input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1.5px solid #cfc8b8;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* iPhone で拡大されない大きさ */
  line-height: 1.5;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(31, 122, 120, .3);
  border-color: var(--teal);
}

.choices { display: grid; gap: 8px; }
.choices.row { grid-template-columns: 1fr 1fr; }
.choices + input { margin-top: 10px; }

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 13px;
  border: 1.5px solid #cfc8b8;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
}
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); flex: none; }
.choice:has(input:checked) { border-color: var(--teal); background: #eaf5f4; font-weight: 700; }
.choice:has(input:focus-visible) { outline: 3px solid rgba(31, 122, 120, .3); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair label span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 注意事項 */

.notes h3 { margin: 4px 0 8px; font-family: var(--font-head); font-size: 16px; }

.notes-scroll {
  max-height: 210px;
  overflow-y: auto;
  padding: 14px 14px 6px;
  border: 1.5px solid #cfc8b8;
  border-radius: 10px;
  background: #fbf9f4;
  font-size: 13.5px;
  line-height: 1.8;
}
.notes-scroll h4 {
  margin: 16px 0 6px;
  padding-left: 9px;
  border-left: 4px solid var(--teal);
  font-size: 14.5px;
  line-height: 1.4;
}
.notes-scroll h4:first-child { margin-top: 0; }
.notes-scroll h5 { margin: 12px 0 2px; font-size: 13.5px; }
.notes-scroll p { margin: 0 0 10px; }
.notes-scroll .btn-line { min-height: 42px; font-size: 14px; }

.agree {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 18px;
  padding: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}
.agree input { width: 22px; height: 22px; margin: 0; accent-color: var(--teal); flex: none; }
.agree:has(input:checked) { background: #eaf5f4; border-color: var(--teal); }

.missing { margin: 0 0 10px; font-size: 13px; line-height: 1.7; color: var(--ink-soft); }
.error { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: #c0392b; }
.error:empty, .missing:empty { display: none; }

.btn-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .08em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(217, 87, 58, .3);
}
.btn-submit:hover { background: var(--accent-dark); }
.btn-submit:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn-submit:disabled { background: #c9c3b6; box-shadow: none; cursor: not-allowed; }

/* 完了 */

.done { text-align: center; padding: 32px 20px; }
.done h2 { margin: 14px 0 10px; font-family: var(--font-head); font-size: 21px; }
.done p { margin: 0 0 10px; font-size: 14.5px; overflow-wrap: anywhere; }
.done:focus { outline: none; }
.done-ring {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  border: 7px solid var(--teal);
  position: relative;
}
.done-ring::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 8px;
  width: 13px;
  height: 25px;
  border: solid var(--teal);
  border-width: 0 6px 6px 0;
  transform: rotate(45deg);
}

.btn-ghost {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 26px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}
