/* 靖国勉強会 仮の申込ページ（正式なデザインは後日） */
:root {
  --bg: #f6f4ee;
  --card: #ffffff;
  --ink: #1f2430;
  --sub: #5b6170;
  --line: #d9d4c7;
  --accent: #2f4a3a;
  --accent-ink: #ffffff;
  --err: #a12a1f;
  --ok-bg: #e6efe8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.8;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.hero { padding: 24px 4px 16px; }
.eyebrow { margin: 0; color: var(--sub); font-size: 15px; letter-spacing: .08em; }
.hero h1 { margin: 4px 0 0; font-size: 30px; line-height: 1.4; font-weight: 700; }
.date { margin: 6px 0 0; font-size: 22px; font-weight: 700; color: var(--accent); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 20px 24px;
  margin: 16px 0;
}
.card.narrow { max-width: 420px; margin: 48px auto; }
h2 { margin: 0 0 12px; font-size: 21px; }
h3 { margin: 0 0 6px; font-size: 18px; }
.info { margin: 0; display: grid; grid-template-columns: 8em 1fr; gap: 8px 16px; }
.info dt { color: var(--sub); }
.info dd { margin: 0; }
.flow { margin: 16px 0 0; color: var(--sub); font-size: 16px; }
.pre { white-space: pre-wrap; }
.fee-list { margin: 0; padding-left: 1.2em; font-size: 1.05em; }
.note { margin: 12px 0 0; padding: 12px 14px; background: var(--bg); border-radius: 8px; }
.field { display: block; margin: 0 0 18px; border: 0; padding: 0; }
legend { padding: 0; margin-bottom: 4px; }
.field input[type=text], .field input[type=email], .field input[type=password],
.field input[type=date], .field input[type=datetime-local], .field textarea {
  display: block; width: 100%; margin-top: 4px;
  font: inherit; color: inherit; padding: 10px 12px;
  border: 1px solid #b9b3a4; border-radius: 8px; background: #fff;
}
.choice { display: block; padding: 6px 0; cursor: pointer; }
.choice input, .check input { width: 20px; height: 20px; vertical-align: -3px; margin-right: 6px; }
.check { display: block; margin: 0 0 10px; }
.req { margin-left: 8px; font-size: 13px; color: var(--err); }
.small { display: block; color: var(--sub); font-size: 15px; }
.err { display: block; color: var(--err); font-weight: 700; }
.ok { background: var(--ok-bg); padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.btn {
  display: inline-block; width: 100%; padding: 14px 20px; margin-top: 8px;
  font: inherit; font-weight: 700; font-size: 19px;
  color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: 10px; cursor: pointer;
}
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #c8a24a; outline-offset: 2px; }
.btn-quiet { background: #fff; color: var(--err); border: 1px solid var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
a { color: var(--accent); }
.admin-nav { margin: 10px 0 0; font-size: 16px; }
.admin-nav a { display: inline-block; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats div { text-align: center; }
.num { display: block; font-size: 34px; font-weight: 700; color: var(--accent); }
.lbl { display: block; font-size: 14px; color: var(--sub); line-height: 1.5; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--sub); font-weight: 600; white-space: nowrap; }
.btn-small { display: inline-block; font: inherit; font-size: 14px; line-height: 1.6; padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--accent); text-decoration: none; cursor: pointer; white-space: nowrap; }
.foot { margin-top: 32px; text-align: center; color: var(--sub); font-size: 14px; }
.done h1 { font-size: 26px; margin-top: 0; }
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 25px; }
  .info { grid-template-columns: 1fr; gap: 0; }
  .info dt { margin-top: 8px; }
}

/* 管理画面：幅を広く取り、名前・メール・日時は途中で折り返さない */
.wrap.wide { max-width: 1160px; }
.narrow-form { max-width: 680px; }
.list th, .list td { padding: 10px 12px; }
.list tbody tr:hover { background: #faf8f3; }
.list .c-name { white-space: nowrap; font-weight: 600; }
.list .c-name .company { display: block; white-space: normal; max-width: 16em; font-size: 13px; font-weight: 400; color: var(--sub); }
.list .c-mail, .list .c-date, .list .c-act { white-space: nowrap; }
.list .c-state { white-space: nowrap; }
/* 取り消しの下に、期限内（返金の対象）か期限後かを小さく出す。列の中で折り返す */
.list .c-state .refund { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; white-space: normal; word-break: keep-all; color: var(--sub); }
.list .c-state .refund.is-yes { color: inherit; font-weight: 700; }
.list .c-party { white-space: nowrap; }
.list .c-party.is-yes { font-weight: 600; color: var(--accent); }
/* 十分に広い画面（管理の一覧が最大幅になる 1180px 以上）では列の幅を決め、3つの表で列の位置をそろえる。
   それより狭いと、幅を決めない列（ひとこと・理由）がつぶれるので、決めずに表を横に動かす */
@media (min-width: 1180px) {
  .list { table-layout: fixed; width: 100%; }
  .list .c-name { width: 12em; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
  .list .c-state { width: 6em; }
  .list .c-party { width: 6em; }
  .list .c-mail { width: 16em; overflow: hidden; text-overflow: ellipsis; }
  .list .c-date { width: 7em; }
  .list th.c-act, .list td.c-act { width: 5.5em; }
  .list .c-note, .list .c-memo { min-width: 0; }
  .list .c-name .tag { display: block; width: fit-content; margin: 4px 0 0; }
}
.stats { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats .lbl { white-space: nowrap; }
.stats .sub { font-size: 13px; }
.list .c-note, .list .c-memo { min-width: 14em; word-break: normal; overflow-wrap: anywhere; }
.list .c-date { color: var(--sub); }
.list .c-act { text-align: right; width: 1%; }
.group { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; font-size: 17px; }
.group:first-of-type { margin-top: 4px; }
.count { margin-left: 8px; font-size: 14px; font-weight: 400; color: var(--sub); }
.group .count { margin-left: 0; }
.tag { display: inline-block; margin-left: 8px; padding: 0 8px; font-size: 12px; font-weight: 400; line-height: 1.7; color: var(--sub); border: 1px solid var(--line); border-radius: 999px; vertical-align: 1px; }

/* 申込ページの見出し：第一鳥居から境内へ向かう写真を背景に、会の名前を中央に置く */
/* 見出しは 100vw で広げるので、幅を取るスクロールバーの環境（Windows など）で横にはみ出さないよう切る */
html, body { overflow-x: clip; }
.hero-photo {
  position: relative;
  margin: -24px calc(50% - 50vw) 8px;
  padding: 0;
  min-height: min(78vh, 640px);
  display: grid;
  place-items: end center;
  text-align: center;
  color: #fff;
  background-color: #2b2a26;
  background-image:
    linear-gradient(180deg, rgba(18, 20, 18, .05) 0%, rgba(18, 20, 18, .18) 45%, rgba(18, 20, 18, .72) 100%),
    url("torii.jpg");
  background-image:
    linear-gradient(180deg, rgba(18, 20, 18, .05) 0%, rgba(18, 20, 18, .18) 45%, rgba(18, 20, 18, .72) 100%),
    image-set(url("torii.webp") type("image/webp"), url("torii.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 62%;
}
.hero-inner { padding: 160px 20px 56px; max-width: 760px; }
.hero-tag {
  display: inline-block; margin: 0 0 18px; padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px;
  font-size: 14px; letter-spacing: .12em;
}
.hero-sub { margin: 0; font-size: 15px; letter-spacing: .5em; text-indent: .5em; text-shadow: 0 1px 8px rgba(0, 0, 0, .6), 0 0 2px rgba(0, 0, 0, .5); }
.hero-photo .hero-title {
  margin: 10px 0 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: clamp(40px, 11vw, 76px);
  line-height: 1.25;
  letter-spacing: .18em;
  text-indent: .18em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
.hero-rule {
  display: block; width: 120px; height: 1px; margin: 22px auto 18px;
  background: linear-gradient(90deg, transparent, #d8bf7a 20%, #d8bf7a 80%, transparent);
}
.hero-event { margin: 0; font-size: 17px; letter-spacing: .08em; }
.hero-date {
  margin: 4px 0 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  font-size: clamp(20px, 5vw, 26px); font-weight: 600; letter-spacing: .08em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .5);
}

/* 懇親会の「参加する／参加しない」：押して選ぶ2つのボタン（中身はラジオボタン）… 2026-12-01 */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; }
.seg span { display: block; padding: 12px 8px; text-align: center; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.seg input:checked + span { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.seg input:checked + span::before { content: "✓ "; }
.seg input:focus-visible + span { outline: 3px solid #c8a24a; outline-offset: 2px; }
.field .seg + .err, .field .seg + .small { display: block; margin-top: 6px; }
