/* =========================================================
   第72回 日本宇宙航空環境医学会大会 公式サイト
   テーマ：宇宙港大分 〜地方から宇宙へ〜
   Design tokens are derived from the approved Figma comp.
   ========================================================= */
:root {
  --navy: #0b2545;
  --navy-2: #11335a;
  --gold: #f5a623;
  --sky: #80d0ff;
  --offwhite: #fafafa;
  --ink: #1a2330;
  --muted: #5a6b80;
  --line: #e5e9f0;
  --maxw: 1200px;
  --serif: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", system-ui, sans-serif;
  --mono: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: #f1f4f9; }

/* Section heading */
.s-head { margin-bottom: 48px; }
.s-head h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 2px;
}
.s-head .en { display:block; font-family: var(--mono); font-size: 13px; letter-spacing: 3px; color: var(--gold); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; }
.s-head .bar { width: 60px; height: 4px; background: var(--gold); border-radius: 2px; margin-top: 16px; }

/* =========================== Header =========================== */
.header {
  position: fixed; inset: 0 0 auto 0; height: 80px; z-index: 100;
  display: flex; align-items: center;
  background: rgba(11,37,69,0.28);
  backdrop-filter: blur(6px);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.scrolled { background: rgba(11,37,69,0.96); box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--offwhite); }
.brand::before {
  content: ""; width: 38px; height: 38px; flex: 0 0 auto;
  background: url("assets/logo-mark.svg") center / contain no-repeat;
}
.brand-text { display: flex; flex-direction: column; justify-content: center; }
.brand-wm { font-family: var(--mono); font-weight: 700; font-size: 21px; letter-spacing: 2px; line-height: 1; color: var(--offwhite); }
.brand-wm b { color: var(--gold); font-weight: 700; }
.brand-tag { font-family: var(--mono); font-weight: 600; font-size: 8px; letter-spacing: 2.2px; line-height: 1; margin-top: 4px; color: rgba(128,208,255,.92); }
.footer-lockup { height: 46px; width: auto; display: block; margin-bottom: 18px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--offwhite); font-size: 14px; font-weight: 500; opacity: .92; transition: color .2s; }
.nav a:hover { color: var(--gold); }
.header-cta {
  background: var(--gold); color: var(--navy); font-weight: 700; font-size: 14px;
  padding: 11px 22px; border-radius: 6px; box-shadow: 0 4px 12px rgba(245,166,35,.35);
}
.burger { display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px; }
.burger span { width:26px; height:2px; background:var(--offwhite); display:block; transition:.3s; }

/* =========================== Hero =========================== */
.hero { position: relative; height: 100vh; min-height: 680px; color: var(--offwhite); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,37,69,.62) 0%, rgba(11,37,69,.45) 34%, rgba(11,37,69,.18) 62%, rgba(11,37,69,0) 100%),
    linear-gradient(0deg, rgba(11,37,69,.55) 0%, rgba(11,37,69,.16) 38%, rgba(11,37,69,0) 70%);
}
.hero__inner { position: relative; height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; justify-content: center; }
.hero__congress { font-size: clamp(20px, 3vw, 40px); font-weight: 500; letter-spacing: 1.5px; color: rgba(250,250,250,.88); }
.hero__title { font-family: var(--serif); font-weight: 700; font-size: clamp(56px, 8vw, 84px); letter-spacing: 6px; line-height: 1.08; margin-top: 20px; }
.hero__sub { font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 3vw, 34px); letter-spacing: 4px; margin-top: 8px; }
.hero__en { font-family: var(--mono); font-weight: 700; font-size: clamp(18px, 2vw, 24px); color: var(--gold); margin-top: 20px; }
.hero__story { font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; color: rgba(250,250,250,.9); margin-top: 28px; line-height: 1.7; }
.hero__date { font-weight: 700; font-size: clamp(18px, 1.8vw, 24px); margin-top: 32px; line-height: 1.6; }
.hero__pres { font-weight: 700; font-size: clamp(15px, 1.5vw, 22px); color: rgba(255,255,255,.9); margin-top: 6px; }
.hero__cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; font-weight: 700; font-size: 17px; padding: 16px 32px; border-radius: 8px; transition: transform .15s ease, box-shadow .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--navy); box-shadow: 0 4px 12px rgba(245,166,35,.35); }
.btn--ghost { border: 1px solid #fff; color: #fff; }

/* Countdown card */
.countdown {
  position: absolute; top: 118px; right: 24px;
  background: rgba(11,37,69,.62); backdrop-filter: blur(6px);
  border: 1px solid rgba(128,208,255,.35); border-radius: 20px;
  padding: 16px 20px; width: 260px; color: var(--offwhite);
}
.countdown .lbl { font-size: 14px; color: rgba(250,250,250,.78); }
.countdown .num { font-family: var(--mono); font-weight: 700; font-size: 36px; color: var(--gold); line-height: 1.1; margin: 4px 0; }
.countdown .num small { font-size: 18px; }
.countdown .date { font-size: 13px; color: rgba(250,250,250,.78); }

.scroll-ind { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); text-align: center; color: rgba(250,250,250,.72); }
.scroll-ind .t { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; }
.scroll-ind .l { width: 1px; height: 24px; background: rgba(250,250,250,.72); margin: 6px auto 0; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:.3} 50%{opacity:1} }

/* =========================== About =========================== */
.cards3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; transition: transform .2s, box-shadow .2s; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(11,37,69,.08); }
.info-card .k { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--gold); font-weight: 600; text-transform: uppercase; }
.info-card .lbl { font-weight: 700; color: var(--navy); font-size: 18px; margin: 8px 0 12px; }
.info-card .v { font-size: 18px; font-weight: 500; color: var(--ink); }

/* =========================== Greeting =========================== */
.greet { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.greet__photo { width: 280px; height: 360px; border-radius: 14px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 14px; border: 1px solid var(--line); }
.greet__body p { font-size: 16px; margin-bottom: 18px; }
.greet__sign { font-weight: 700; color: var(--navy); font-size: 20px; margin-top: 24px; }
.greet__role { color: var(--muted); font-size: 14px; }

/* =========================== Program =========================== */
.days { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.days--4 { grid-template-columns: repeat(4,1fr); gap: 18px; }
.days--4 .day { padding: 24px; }
.days--4 .day .date { font-size: 44px; }
@media (max-width: 1100px) and (min-width: 901px) { .days--4 { grid-template-columns: repeat(2,1fr); } }
.day { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 32px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.day:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(11,37,69,.1); }
.day::before { content:""; position:absolute; top:0; left:0; right:0; height:4px; background: linear-gradient(90deg, var(--gold), var(--sky)); }
.day .tag { font-family: var(--mono); font-weight: 700; letter-spacing: 2px; color: var(--gold); font-size: 14px; }
.day .date { font-family: var(--mono); font-weight: 700; font-size: 52px; color: var(--navy); line-height: 1; margin: 6px 0; }
.day .dow { font-family: var(--mono); color: var(--muted); font-weight: 600; }
.day .h { font-weight: 700; color: var(--navy); font-size: 18px; margin: 20px 0 12px; }
.day .desc { color: var(--muted); font-size: 15px; }
.day .more { display:inline-block; margin-top: 20px; color: var(--gold); font-weight: 700; font-size: 14px; }

/* =========================== Abstract / Register grids =========================== */
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.tile .k { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--gold); font-weight: 600; }
.tile .v { font-weight: 700; color: var(--navy); font-size: 22px; margin-top: 12px; }
.tile .s { color: var(--muted); font-size: 14px; margin-top: 8px; }
.price .amount { font-size: 34px; }
.center { text-align: center; }
.mt32 { margin-top: 32px; }

/* =========================== Access =========================== */
.access { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.map-ph { aspect-ratio: 16/10; border-radius: 14px; overflow:hidden; border: 1px solid var(--line); }
.map-ph iframe { width: 100%; height: 100%; border: 0; }
.access h3 { color: var(--navy); font-size: 22px; margin-bottom: 12px; }
.access dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 15px; }
.access dt { font-weight: 700; color: var(--gold); }

/* =========================== Sponsor =========================== */
.tier { margin-bottom: 28px; }
.tier .t { font-weight: 700; color: var(--navy); margin-bottom: 12px; display:flex; align-items:center; gap:10px; }
.tier .t::before { content:""; width:10px; height:10px; border-radius:50%; background: var(--gold); }
.logos { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.logo-ph { height: 72px; border: 1px dashed #c7d0de; border-radius: 10px; background:#fff; display:flex; align-items:center; justify-content:center; color:#aeb8c7; font-size:13px; }

/* =========================== News =========================== */
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 120px 110px 1fr; gap: 20px; align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.news-item .d { font-family: var(--mono); color: var(--muted); font-weight: 600; }
.news-item .c { justify-self: start; background: var(--navy); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 999px; }
.news-item .ttl { font-weight: 500; }

/* =========================== Footer =========================== */
.footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 64px 0 28px; position: relative; }
.footer::before { content:""; position:absolute; top:0; left:0; right:0; height:4px; background: linear-gradient(90deg, var(--gold), var(--sky)); }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--serif); color:#fff; font-size: 20px; margin-bottom: 8px; }
.footer .en { font-size: 12px; color: rgba(255,255,255,.6); }
.footer .ft { font-weight: 700; color: var(--gold); font-size: 13px; letter-spacing: 1px; margin-bottom: 12px; }
.footer ul { list-style: none; font-size: 14px; }
.footer ul li { margin-bottom: 8px; }
.footer .copy { text-align: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.5); }
.badge-draft { position: fixed; bottom: 16px; left: 16px; z-index: 200; background: var(--gold); color: var(--navy); font-weight: 700; font-size: 12px; padding: 6px 14px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* =========================================================
   サブページ共通（13ページ拡張）
   ========================================================= */
/* 固定ヘッダーをサブページでは常時ソリッドに */
.header--solid { background: rgba(11,37,69,.96); box-shadow: 0 2px 20px rgba(0,0,0,.2); }

/* ページ上部のサブヒーロー（バナー） */
.subhero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color:#fff; padding: 140px 0 56px; position: relative; overflow: hidden; }
.subhero::after { content:""; position:absolute; inset:0; background: radial-gradient(circle at 82% 18%, rgba(128,208,255,.20), transparent 58%); pointer-events:none; }
.subhero .wrap { position: relative; }
.subhero .en { display:block; font-family: var(--mono); font-size: 13px; letter-spacing: 3px; color: var(--gold); font-weight: 600; text-transform: uppercase; }
.subhero h1 { font-family: var(--serif); font-size: clamp(30px, 5vw, 46px); font-weight: 700; letter-spacing: 2px; margin-top: 10px; }
.breadcrumb { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,.72); }
.breadcrumb a { color: rgba(255,255,255,.72); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; opacity: .6; }

/* 本文ブロック */
.page { padding: 72px 0; }
.prose { max-width: 880px; }
.prose > h3 { color: var(--navy); font-size: 24px; font-family: var(--serif); font-weight: 700; margin: 44px 0 16px; }
.prose > h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 18px; font-size: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 1.4em; }
.prose li { margin-bottom: 8px; }
.lead { font-size: 18px; color: var(--navy); font-weight: 500; margin-bottom: 28px; line-height: 1.8; }

/* データテーブル */
.dtable { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 28px; background:#fff; border:1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dtable th, .dtable td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable th { background: var(--navy); color: #fff; font-weight: 600; letter-spacing: .5px; }
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr:nth-child(even) td { background: #f6f8fc; }
.dtable .time { font-family: var(--mono); color: var(--gold); font-weight: 600; white-space: nowrap; }

/* ステップ（参加登録フロー等） */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin: 28px 0; }
.step { background:#fff; border:1px solid var(--line); border-radius: 14px; padding: 24px; }
.step .n { font-family: var(--mono); font-weight: 700; color: var(--gold); font-size: 14px; }
.step .t { font-weight: 700; color: var(--navy); margin: 8px 0 6px; }
.step .d { color: var(--muted); font-size: 14px; }

/* コールアウト（注記） */
.callout { background:#fff7ea; border:1px solid #f3d9a8; border-left:4px solid var(--gold); border-radius: 10px; padding: 20px 22px; margin: 22px 0; font-size: 15px; }
.callout strong { color: var(--navy); }
.callout--navy { background:#eef3fb; border-color:#cdddf3; border-left-color: var(--navy); }

/* フォーム */
.form { max-width: 660px; display: grid; gap: 18px; }
.form .row { display: grid; gap: 6px; }
.form label { font-weight: 600; color: var(--navy); font-size: 14px; }
.form label .req { color:#d8472b; font-size: 12px; margin-left: 6px; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 15px; background:#fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,166,35,.15); }
.form textarea { min-height: 140px; resize: vertical; }

/* CTAバンド */
.cta-band { background: var(--navy); border-radius: 18px; padding: 48px; text-align: center; color:#fff; margin: 12px 0; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; top:0; left:0; right:0; height:4px; background: linear-gradient(90deg, var(--gold), var(--sky)); }
.cta-band h3 { font-family: var(--serif); font-size: 26px; margin-bottom: 12px; color:#fff; }
.cta-band p { color: rgba(255,255,255,.82); margin-bottom: 24px; }

/* 2カラム本文 */
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: start; }
.aside-card { background:#fff; border:1px solid var(--line); border-radius: 14px; padding: 28px; }
.aside-card h4 { color: var(--navy); font-size: 16px; margin-bottom: 14px; }
.aside-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; font-size: 14px; }
.aside-card dt { font-weight: 700; color: var(--gold); }

/* 価格カードの強調 */
.price.feature { border-color: var(--gold); box-shadow: 0 8px 24px rgba(245,166,35,.16); }

/* ページ内アンカーボタン群 */
.pagenav { display:flex; flex-wrap:wrap; gap: 12px; margin-bottom: 40px; }
.pagenav a { font-size: 14px; font-weight: 600; color: var(--navy); background:#fff; border:1px solid var(--line); padding: 8px 16px; border-radius: 999px; transition: .2s; }
.pagenav a:hover { border-color: var(--gold); color: var(--gold); }

/* =========================== Responsive =========================== */
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .burger { display: flex; }
  .nav.open { display: flex; position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; background: rgba(11,37,69,.98); padding: 16px 24px; gap: 18px; }
  .cards3, .days, .grid3, .access, .greet, .footer .cols, .split, .steps { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .countdown { position: static; width: auto; margin-top: 28px; display:inline-block; }
  .logos { grid-template-columns: repeat(2,1fr); }
  .greet__photo { width: 100%; max-width: 280px; }
  .news-item { grid-template-columns: 1fr; gap: 6px; }
  .section { padding: 64px 0; }
  .subhero { padding: 116px 0 44px; }
  .cta-band, .aside-card { padding: 28px; }
  .dtable { font-size: 14px; table-layout: fixed; }
  .dtable th, .dtable td { padding: 10px 12px; width: auto !important; white-space: normal; word-break: break-word; }
}

/* ===== タイムテーブル（時間 × 会場グリッド） ===== */
.tt-wrap { margin: 10px 0 30px; }
.tt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tt { width: 100%; min-width: 780px; border-collapse: separate; border-spacing: 0; font-size: 14px; }

/* ヘッダー */
.tt thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: .06em;
  text-align: center; white-space: nowrap; padding: 12px 10px; position: sticky; top: 0; z-index: 3; }
.tt thead th + th { border-left: 1px solid rgba(255,255,255,.16); }

/* 時間列（横スクロールしても残る） */
.tt .th-t { width: 68px; }
.tt .t { width: 68px; text-align: center; white-space: nowrap; padding: 0 6px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: #93a2b5;
  font-variant-numeric: tabular-nums; background: #f7f9fc;
  position: sticky; left: 0; z-index: 2; border-right: 1px solid var(--line); }
.tt .t.oh { color: var(--navy); font-size: 13px; }

/* セル */
.tt td { height: 34px; padding: 0; vertical-align: top;
  border-bottom: 1px dotted #e8ecf3; border-right: 1px solid #eef1f6; }
.tt td.oh { border-bottom-style: solid; border-bottom-color: #dfe5ee; }
.tt tr > td:last-child { border-right: 0; }
.tt tbody tr:last-child > td { border-bottom: 0; }

/* セッションブロック */
.tt td.s { padding: 7px 10px 8px 12px; border-bottom: 1px solid #fff; border-right: 1px solid #fff;
  background: #f4f6f9; box-shadow: inset 4px 0 0 #9aa8bb; }
.tt .rng { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .04em; color: #7d8ca0; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.tt .nm { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.tt .cap { display: block; margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.5; font-weight: 400; }

/* 区分ごとの色 */
.tt td.s--cere   { background: #e9eef7; box-shadow: inset 4px 0 0 var(--navy); }
.tt td.s--key    { background: #fff4e0; box-shadow: inset 4px 0 0 var(--gold); }
.tt td.s--key .nm { color: #8a5a00; }
.tt td.s--sym    { background: #eaf4fd; box-shadow: inset 4px 0 0 #2b86d0; }
.tt td.s--panel  { background: #f2ecfb; box-shadow: inset 4px 0 0 #7a5bd0; }
.tt td.s--young  { background: #e8f7f1; box-shadow: inset 4px 0 0 #1f9d76; }
.tt td.s--poster { background: #eef7fb; box-shadow: inset 4px 0 0 #57b6e0; }
.tt td.s--tour   { background: #fdeef3; box-shadow: inset 4px 0 0 #e0608a; }
.tt td.s--edu    { background: #fdf6e0; box-shadow: inset 4px 0 0 #d0a02b; }

/* 凡例 */
.tt-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 2px 22px; font-size: 12.5px; color: var(--muted); }
.tt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tt-legend i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.tt-hint { display: none; color: var(--muted); font-size: 12.5px; margin: 8px 2px 0; }
@media (max-width: 900px) {
  .tt-hint { display: block; }
  .tt { font-size: 13px; }
  .tt .nm { font-size: 12.5px; }
  .tt td.s { padding: 6px 8px 7px 10px; }
}
