/* 僕らのミライEXPO 2026 — 公開ページ（カラー系）
   配色・フォントはブランドガイド（07_Design/02_ブランドガイド.md）に準拠し、
   チラシ（2026-10-27版）の雰囲気（黄色の地・青のピル・丸ゴシック）に合わせる。
   管理画面は admin.css（別系統）。参加証の印刷レイアウトは @media print を維持 */

:root {
  color-scheme: light only; /* ダークモードでの自動反転を防ぐ（印刷前提のため） */
  --ink: #333333;
  --muted: #6a6a6a;
  --blue: #2E5FA3;     /* ミライブルー */
  --navy: #1B3B6B;     /* ミライネイビー */
  --gold: #E8B33C;     /* ミライゴールド */
  --orange: #E8703A;   /* サンライズオレンジ（行動喚起） */
  --green: #3C8A47;    /* わかばグリーン（淡色地でのコントラスト確保のため少し濃く） */
  --red: #D9433B;
  --pink: #D94F86;
  --sky: #3B8FD8;
  --pale: #E3ECF8;     /* そらいろペール */
  --cream: #FFF7DF;
  --dot: #F6E2A4;
  --white: #ffffff;
  --line: #D9E2F0;
  --radius: 16px;
  --font-head: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--cream);
  background-image: radial-gradient(var(--dot) 1.6px, transparent 1.7px);
  background-size: 22px 22px;
  font-family: var(--font-body);
  line-height: 1.75;
  font-size: 16px;
}

.container { max-width: 920px; margin: 0 auto; padding: 0 16px 56px; }

/* ヘッダー */
header.site {
  background: var(--white);
  border-top: 6px solid var(--gold);
  border-image: linear-gradient(90deg, var(--red), var(--gold), var(--green), var(--sky), var(--pink)) 1;
  padding: 14px 16px;
  margin-bottom: 24px;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px;
  box-shadow: 0 1px 0 var(--line);
}
header.site .brand { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--navy); text-decoration: none; }
header.site .sub { font-size: 12px; color: var(--muted); }

/* 見出し */
h1 { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--navy); margin: 8px 0 16px; line-height: 1.35; }
h1::after { content: ""; display: block; width: 56px; height: 6px; border-radius: 3px; background: var(--gold); margin-top: 8px; }
h2 { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--blue); border-left: 6px solid var(--gold); border-radius: 3px; padding-left: 12px; margin: 36px 0 12px; line-height: 1.4; }
h3 { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--navy); margin: 16px 0 8px; }

a { color: var(--blue); }
a:hover { color: var(--navy); }
p.lead { font-size: 16px; }
ul, ol { padding-left: 1.4em; }
li { margin: 4px 0; }

/* 表 */
table.list { border-collapse: collapse; width: 100%; margin: 12px 0; background: var(--white); }
table.list th, table.list td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; font-size: 14px; vertical-align: top; }
table.list th { background: var(--pale); color: var(--navy); font-weight: 700; white-space: nowrap; }

/* ボタン */
.btn {
  display: inline-block;
  border: 2px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  padding: 10px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-head);
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { background: var(--pale); color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--white); padding: 14px 36px; font-size: 18px; box-shadow: 0 4px 0 #c45a2a; }
.btn-primary:hover { background: #d9652f; border-color: #d9652f; color: var(--white); }
.btn-small { padding: 4px 14px; font-size: 13px; border-width: 1px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* フォーム */
form .field { margin: 14px 0; }
form label.lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 4px; color: var(--navy); }
form input[type="text"], form input[type="email"], form input[type="tel"],
form input[type="password"], form input[type="number"], form input[type="datetime-local"],
form select, form textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  width: 100%;
  max-width: 420px;
  background: var(--white);
  color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--pale); }
form textarea { max-width: 640px; }
.required::after { content: "必須"; font-size: 11px; color: var(--white); background: var(--orange); border-radius: 999px; padding: 1px 8px; margin-left: 6px; font-weight: 700; vertical-align: middle; }

/* お知らせ・アラート・囲み */
.notice { border: 2px solid var(--blue); background: var(--white); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.notice::before { display: block; font-size: 12px; font-weight: 700; font-family: var(--font-head); }
.notice-info::before { content: "お知らせ"; color: var(--blue); }
.notice-warning { border-color: var(--orange); background: #FFF1E8; }
.notice-warning::before { content: "重要なお知らせ"; color: var(--orange); }
.notice-critical { border-color: var(--red); background: var(--red); color: var(--white); }
.notice-critical::before { content: "緊急のお知らせ"; color: var(--white); }

.alert-error { border: 2px solid var(--red); background: #FDECEB; color: #8f1e18; border-radius: 12px; padding: 10px 14px; margin: 12px 0; font-weight: 700; }
.alert-ok { border: 2px solid var(--green); background: #EAF6EC; border-radius: 12px; padding: 10px 14px; margin: 12px 0; }

.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; }
.muted { color: var(--muted); font-size: 13px; }
.mono { font-family: "SFMono-Regular", Menlo, Consolas, "Courier New", monospace; }
.free-tag { display: inline-block; background: var(--gold); color: var(--navy); border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 800; line-height: 1.6; }
.free-tag::before { content: "★ "; }

/* トップページ：ヒーロー */
.hero {
  background: var(--white);
  border: 2px solid #F3DFA0;
  border-radius: 24px;
  padding: 28px 20px 24px;
  margin: 0 0 24px;
  text-align: center;
  position: relative;
}
.hero .free {
  position: absolute; top: 12px; left: 12px;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 15px; line-height: 1.2;
  transform: rotate(-8deg);
}
.hero .tagline { display: inline-block; background: var(--navy); color: var(--white); border-radius: 999px; padding: 4px 18px; font-size: 14px; font-weight: 700; font-family: var(--font-head); }
.hero .title { font-family: var(--font-head); font-weight: 900; font-size: clamp(40px, 10vw, 76px); line-height: 1.08; margin: 10px 0 4px; letter-spacing: .02em; }
.hero .title .c1 { color: var(--red); }
.hero .title .c2 { color: var(--sky); }
.hero .title .c3 { color: var(--green); }
.hero .title .c4 { color: var(--orange); }
.hero .title .c5 { color: var(--pink); }
.hero .title .c6 { color: var(--blue); }
.hero .date { font-family: var(--font-head); color: var(--navy); font-weight: 800; font-size: clamp(20px, 4.5vw, 28px); margin: 8px 0 0; line-height: 1.3; }
.hero .date .big { font-size: 1.7em; color: var(--blue); }
.hero .time { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 20px; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 14px 0 6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--pale); border-radius: 999px; padding: 4px 14px 4px 4px; font-size: 15px; font-weight: 700; color: var(--navy); }
.pill .k { background: var(--blue); color: var(--white); border-radius: 999px; padding: 2px 12px; font-size: 13px; font-family: var(--font-head); }
.hero .cta { margin: 18px 0 4px; }
.hero .cta .muted { margin-top: 10px; }
.status { display: inline-block; background: var(--pale); border-radius: 12px; padding: 12px 18px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.status .muted { font-weight: 400; }

/* トップページ：手順・参加方法 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 12px 0; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.step .num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--white); font-family: var(--font-head); font-weight: 800; margin-bottom: 6px; }
.step .ttl { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 17px; }
.step .when { color: var(--blue); font-weight: 700; font-size: 15px; }
.step p { margin: 6px 0 0; font-size: 14px; }

/* トップページ：ブース一覧 */
.booths { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 12px 0; }
.booth { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.booth.free { border-color: var(--gold); background: #FFFBEE; }
.booth .photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--white); margin-bottom: 4px; }
.booth .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.booth .no { font-family: var(--font-head); font-weight: 800; color: var(--white); background: var(--navy); border-radius: 8px; padding: 0 8px; font-size: 13px; }
.booth .company { background: var(--blue); color: var(--white); border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; }
.booth .name { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 16px; line-height: 1.4; }
.booth .desc { font-size: 13.5px; margin: 0; }
.legend { font-size: 13px; color: var(--muted); }

/* 申込フォーム：希望ブースの選択 */
.choices { display: grid; gap: 10px; margin-top: 8px; }
.choice { background: #FBFCFE; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.choice .choice-head { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 15px; display: flex; align-items: center; gap: 8px; }
.choice .choice-head .req { font-size: 11px; color: var(--white); background: var(--orange); border-radius: 999px; padding: 1px 8px; font-family: var(--font-body); }
.choice select { max-width: none; }
.choice .info { display: none; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; background: var(--white); border: 1px dashed var(--line); border-radius: 10px; padding: 8px; }
.choice .info.show { display: grid; }
.choice .info img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.choice .info .meta, .guide-item .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
.choice .info .no, .guide-item .no { font-family: var(--font-head); font-weight: 800; color: var(--white); background: var(--navy); border-radius: 6px; padding: 0 6px; }
.choice .info .company, .guide-item .company { background: var(--blue); color: var(--white); border-radius: 999px; padding: 0 8px; font-weight: 700; }
.choice .info .minutes { color: var(--muted); }
.choice .info .name, .guide-item .name { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.choice .info .desc, .guide-item .desc { font-size: 12.5px; line-height: 1.6; margin-top: 2px; }
@media (min-width: 640px) {
  .choice { grid-template-columns: 92px 1fr 1fr; align-items: center; }
  .choice .info { grid-column: 1 / -1; }
}

/* 申込フォーム：ブース一覧（折りたたみ） */
.booth-guide { background: var(--white); border: 2px solid var(--pale); border-radius: var(--radius); padding: 10px 16px; margin: 16px 0; }
.booth-guide summary { font-family: var(--font-head); font-weight: 800; color: var(--blue); cursor: pointer; font-size: 16px; padding: 4px 0; }
.booth-guide[open] summary { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.guide-list { display: grid; gap: 10px; }
.guide-item { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: start; border-bottom: 1px solid #EEF2F8; padding-bottom: 10px; }
.guide-item:last-child { border-bottom: none; }
.guide-item img, .guide-item .noimg { width: 104px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; background: var(--pale); }

/* 参加証カード */
.ticket-card {
  background: var(--white);
  border: 2px dashed var(--navy);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 16px 0;
  page-break-inside: avoid;
}
.ticket-card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 8px; }
.ticket-card .qr svg { width: 140px; height: 140px; }
.ticket-card table { font-size: 13px; }

/* フッター */
footer.site { background: var(--navy); color: var(--white); padding: 24px 16px; font-size: 13px; line-height: 1.9; }
footer.site .inner { max-width: 920px; margin: 0 auto; display: grid; gap: 4px; }
footer.site a { color: var(--white); }
footer.site strong { color: var(--gold); margin-right: 6px; }

@media (max-width: 600px) {
  h1 { font-size: 22px; }
  .hero { padding: 24px 14px 20px; }
  .hero .free { position: static; width: 60px; height: 60px; font-size: 13px; margin: 0 auto 10px; }
  .container { padding-bottom: 40px; }
}

@media print {
  header.site, footer.site, nav.admin, .no-print { display: none !important; }
  body { font-size: 12px; background: #fff; }
  .container { max-width: none; padding: 0; }
  .ticket-card { margin: 8mm 0; }
}
