/* 色はここで差し替える（2色＋白） */
:root {
  --main: #1f3a5f;        /* 濃い紺：見出し・ボタン */
  --cta: #e8700f;         /* オレンジ：申込ボタン（上と、フォームの送信）（白い文字が読める濃さ） */
  --cta-dark: #b5560a;    /* オレンジの影 */
  --sub: #e4f1f6;         /* 落ち着いた水色：区切り・背景 */
  --sub-line: #b9d8e4;    /* 水色の線 */
  --text: #1d2733;
  --muted: #4f5d6d;
  --soon: #0f2440;        /* 締切が近い時の文字色（少し濃くするだけ） */
  --error: #a3261b;
  --white: #ffffff;
  --radius: 6px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px 40px; min-height: 100vh; display: flex; flex-direction: column; }
.wrap > footer.contact { margin-top: auto; }
#app[aria-busy="true"] { visibility: hidden; }

h1, h2 { color: var(--main); font-weight: 700; line-height: 1.45; }
h1 { font-size: 1.6rem; margin: 0; }
h2 { font-size: 1.45rem; margin: 0 0 12px; }
p { margin: 0 0 10px; }
section, footer { padding: 44px 0; border-top: 1px solid var(--sub-line); }
@media (max-width: 600px) { section, footer { padding: 36px 0; } }
h2 { margin-bottom: 18px; }
/* 見出しの下の短い線（区切りを分かりやすく）。来場オファーの欄は中央寄せの特別扱いなので付けない */
section:not(.offer) > h2::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--cta); }

.small { font-size: 15px; color: var(--muted); }

/* ファーストビュー：画面の横幅いっぱい。写真（images/hero.jpg）に濃い紺を重ねて文字を読みやすくする。
   写真がなくても紺の背景で成り立つ */
body { overflow-x: clip; }
.hero {
  margin: 0 calc(50% - 50vw);
  padding: 48px 20px 44px;
  border-top: 0;
  color: var(--white);
  text-align: center;
  background-color: var(--main);
  background-image: linear-gradient(rgba(12, 24, 40, .6), rgba(12, 24, 40, .78)), url("images/hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block; margin: 0 0 22px; padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, .75);
  font-size: 14px; letter-spacing: .08em; line-height: 1.6;
}
.hero h1 { color: var(--white); font-size: 2.3rem; line-height: 1.4; letter-spacing: .02em; margin: 0 0 14px; }
.hero-tagline {
  margin: -4px 0 28px; font-size: 1.25rem; font-weight: 600; letter-spacing: .14em; color: rgba(255, 255, 255, .92);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
}
.hero-box {
  background: var(--white); color: var(--text); text-align: left;
  border-radius: var(--radius); padding: 22px 22px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}
.hero-facts { margin: 0 0 18px; }
.hf-row { display: grid; grid-template-columns: 5.6em 1fr; column-gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--sub-line); }
.hf-row:first-child { padding-top: 0; }
.hf-row dt { font-size: 14px; font-weight: 700; color: var(--main); line-height: 1.9; }
.hf-row dd { margin: 0; line-height: 1.6; }
.hf-main { display: block; font-weight: 700; font-variant-numeric: tabular-nums; }
.hf-time { display: inline-block; white-space: nowrap; }
.hf-sub { display: block; font-size: 15px; color: var(--muted); }
.btn.btn-cta {
  font-size: 1.2rem; background: var(--cta);
  box-shadow: 0 3px 0 var(--cta-dark); transition: background-color .15s, transform .1s, box-shadow .1s;
}
.btn.btn-cta:hover { background: #d4650f; }
.btn.btn-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cta-dark); }
.btn.btn-cta:focus-visible { outline-color: #f6b27a; }
@media (max-width: 600px) {
  .hero { padding: 36px 16px 32px; }
  .hero-eyebrow { font-size: 13px; padding: 5px 12px; margin-bottom: 18px; }
  /* 見出しの2行目（12文字）が狭い画面でも折り返さない大きさにする */
  .hero h1 { font-size: min(1.7rem, calc((100vw - 32px) / 12.6)); }
  .hero-tagline { font-size: 1.1rem; margin-bottom: 22px; }
  .hero-box { padding: 18px 16px 20px; }
  .hf-row { grid-template-columns: 4.6em 1fr; column-gap: 8px; }
}

.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 12px 16px;
  background: var(--main); color: var(--white);
  border: 0; border-radius: var(--radius);
  font: inherit; font-size: 1.1rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
}
.btn:focus-visible { outline: 3px solid var(--sub-line); outline-offset: 2px; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-sub { background: var(--white); color: var(--main); border: 2px solid var(--main); }

.sender-row { display: flex; gap: 24px; align-items: center; }
.sender-photo { width: 280px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); flex: none; background: var(--sub); }
.sender-company { font-weight: 700; margin: 0; }
.sender-sub, .sender-name { margin: 0; font-size: 15px; }
@media (max-width: 600px) {
  .sender-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .sender-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0 auto; }
}

/* チェックの付いた箇条書き（チェックの印は CSS で描く） */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 36px; font-weight: 700; margin: 0 0 14px; }
.checks li:last-child { margin-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 22px; height: 22px; border-radius: 4px; background: var(--main);
}
.checks li::after {
  content: ""; position: absolute; left: 8px; top: calc(.3em + 4px);
  width: 6px; height: 11px; border: solid var(--white); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* 当日の講師 */
.speaker-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.speaker { text-align: center; }
.speaker-photo {
  display: block; width: 100%; max-width: 180px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto 10px;
  object-fit: cover; border-radius: 50%;
}
.speaker-photo-empty {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--sub); border: 2px dashed var(--sub-line); color: var(--muted); font-size: 14px; line-height: 1.5;
}
.speaker-company, .speaker-role { margin: 0; font-size: 14px; color: var(--muted); }
.speaker-name { margin: 2px 0 0; font-size: 1.15rem; font-weight: 700; }
/* 社名と肩書は1つのまとまりとして詰める（肩書と氏名の間は変えない） */
.speaker-role { margin-top: -5px; }
@media (max-width: 600px) {
  .speaker-list { grid-template-columns: 1fr; gap: 14px; }
  .speaker { display: grid; grid-template-columns: minmax(96px, 220px) max-content; justify-content: start; column-gap: 14px; align-items: center; text-align: left; }
  .speaker-photo { max-width: none; margin: 0; }
  .speaker-company, .speaker-role { white-space: nowrap; }
  .speaker-company, .speaker-role { font-size: 13px; }
  /* 3行を写真の縦の真ん中に、ひとまとまりで置く */
  .speaker { grid-template-rows: 1fr auto auto auto 1fr; }
  .speaker-photo { grid-row: 1 / -1; }
  .speaker-company { grid-column: 2; grid-row: 2; }
  .speaker-role { grid-column: 2; grid-row: 3; }
  .speaker-name { grid-column: 2; grid-row: 4; margin-top: 14px; }
}

/* 来場された会社へのオファー */
.offer { text-align: center; }
.offer-eyebrow {
  display: inline-block; margin: 0 0 10px; padding: 2px 14px;
  border: 1px solid var(--main); border-radius: 999px;
  color: var(--main); font-size: 14px; font-weight: 700;
}
.offer-logo { display: block; width: 200px; height: auto; margin: 6px auto 6px; }
.offer-tagline { margin: 0 0 16px; font-size: clamp(11px, 3.6vw, 14px); font-weight: 700; color: var(--muted); }
.offer h2 { font-size: 1.6rem; margin: 0 0 18px; }
.offer-photo { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto 18px; border-radius: var(--radius); }
.offer-photo-empty {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  background: var(--sub); border: 2px dashed var(--sub-line); color: var(--muted); font-size: 15px;
}
.offer-lead { font-weight: 700; margin: 0 0 18px; text-align: left; }
.offer-steps { list-style: none; margin: 0 0 14px; padding: 0; text-align: left; counter-reset: none; }
.offer-steps li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--sub); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 22px; position: relative;
}
.offer-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%);
  border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 10px solid var(--main);
}
.offer-steps li:last-child { margin-bottom: 0; background: var(--main); color: var(--white); font-weight: 700; }
.os-num {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--main); color: var(--white); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.offer-steps li:last-child .os-num { background: var(--white); color: var(--main); }
.offer-return { margin: 0 0 6px; text-align: left; }
.offer-note { margin: 0; font-size: 15px; color: var(--muted); text-align: left; }

/* 開催概要：アイコンつきのカード */
.ov { margin: 0 0 12px; }
.ov dt { font-size: 13px; letter-spacing: .08em; color: var(--muted); font-weight: 700; line-height: 1.4; }
.ov dd { margin: 2px 0 0; line-height: 1.6; }
.ov-item { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; align-items: start; align-content: start; }
.ov-item > dt, .ov-item > dd { grid-column: 2; }
.ov-ic { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--sub); color: var(--main); display: inline-flex; align-items: center; justify-content: center; }
.ov-key { border: 1px solid var(--sub-line); border-radius: var(--radius); padding: 20px; display: grid; gap: 18px; margin-bottom: 20px; }
.ov-big { display: block; font-size: 1.2rem; font-weight: 700; color: var(--main); letter-spacing: .02em; }
.ov-sub { display: block; font-size: 15px; color: var(--muted); }
.ov-note { font-size: 14px; margin-top: 2px; }
.ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: 0 4px; }
@media (max-width: 600px) {
  .ov-key { padding: 16px 14px; gap: 16px; }
  .ov-big { font-size: 1.1rem; }
  .ov-item { grid-template-columns: 36px 1fr; column-gap: 10px; }
  .ov-ic { width: 36px; height: 36px; }
  .ov-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* 申込締切：中央寄せで、日付をはっきり見せる（あおらない落ち着いた色） */
.countdown {
  text-align: center; margin: 16px 0; padding: 10px 12px;
  border-top: 1px solid var(--main); border-bottom: 1px solid var(--main);
  color: var(--muted); font-size: 15px; line-height: 1.6;
}
.countdown .cd-label { display: block; font-size: 14px; font-weight: 700; color: var(--main); letter-spacing: .1em; }
.countdown .cd-date { font-size: 22px; font-weight: 700; color: var(--main); }
.countdown .cd-rest { white-space: nowrap; }
.countdown.soon .cd-rest { color: var(--soon); font-weight: 700; }

/* 当日の流れ：縦の時間軸 */
.timeline { list-style: none; margin: 8px 0 14px; padding: 0; }
.tl-item { position: relative; display: grid; grid-template-columns: 2.2em 1fr; column-gap: 32px; padding: 0 0 18px; }
.tl-item::before { content: ""; position: absolute; left: calc(2.2em + 12px); top: 10px; bottom: -10px; width: 1px; background: var(--sub-line); }
.tl-item:last-child::before { display: none; }
.tl-item::after { content: ""; position: absolute; left: calc(2.2em + 6px); top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 2px solid var(--main); }
.tl-time { font-size: 14px; font-weight: 700; color: var(--main); font-variant-numeric: tabular-nums; text-align: left; line-height: 1.6; padding-top: 1px; white-space: nowrap; }
.tl-title { margin: 0; font-weight: 700; line-height: 1.6; }
.tl-sub { margin: 2px 0 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
@media (max-width: 600px) {
  .tl-item { grid-template-columns: 2em 1fr; column-gap: 30px; }
  .tl-item::before { left: calc(2em + 11px); }
  .tl-item::after { left: calc(2em + 5px); }
  .tl-time { font-size: 13px; }
}

.faq details { border-bottom: 1px solid var(--sub); }
.faq summary { padding: 12px 28px 12px 0; font-weight: 700; cursor: pointer; list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 0; top: 12px; color: var(--main); }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding-bottom: 12px; }

.apply { background: var(--sub); margin: 0 -20px; padding: 36px 20px; border-top: 0; }
.apply:focus { outline: none; }

.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > .label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }

input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%; min-height: 52px; padding: 10px 12px;
  font: inherit; font-size: 17px; color: var(--text);
  background: var(--white); border: 1px solid #8fa3b5; border-radius: var(--radius);
}
input:focus, select:focus { outline: 3px solid var(--sub-line); border-color: var(--main); }
.row { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.row select { width: 12em; max-width: 100%; }
.row input { width: 100%; }

.choice { display: flex; gap: 10px; align-items: flex-start; min-height: 48px; padding: 10px 0; font-weight: 400; cursor: pointer; }
.choice input { width: 24px; height: 24px; margin: 3px 0 0; flex: none; accent-color: var(--main); }
.choice.is-full { color: var(--muted); cursor: default; }
.att-names { margin-top: 4px; }
.att-name { margin-top: 12px; }
.att-name label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.badge-wait { border-color: var(--main); color: var(--main); }
.wait-note { margin: 10px 0 0; padding: 12px 14px; border-left: 3px solid var(--main); background: var(--sub); font-size: 15px; line-height: 1.7; }
.badge { white-space: nowrap; display: inline-block; margin-left: 8px; padding: 0 8px; border: 1px solid var(--muted); border-radius: 4px; font-size: 14px; }


.consent .choice span { font-weight: 700; }

.err { color: var(--error); font-size: 15px; margin: 4px 0 0; }
.err:empty { display: none; }
.is-invalid input, .is-invalid select { border-color: var(--error); }

.form-error { background: var(--white); border: 2px solid var(--error); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.form-error p { margin: 0 0 6px; }

.privacy-line { margin-top: 10px; }

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

.closed-box { background: var(--white); border-radius: var(--radius); padding: 16px; }
.closed-msg { font-weight: 700; font-size: 1.1rem; color: var(--main); }


.receipt { font-weight: 700; }
.plain { padding-left: 1.2em; }

a { color: var(--main); }

/* 申込の流れ（3ステップ）：PC は横並び、スマホは縦並び */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; text-align: center; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sub); color: var(--main); font-weight: 700; position: relative; z-index: 1; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: calc(50% + 28px); width: calc(100% - 40px); height: 1px; background: var(--sub-line); }
.step-title { font-weight: 700; color: var(--main); margin: 8px 0 4px; line-height: 1.6; min-height: 3.2em; display: flex; align-items: center; justify-content: center; }
.step-text { font-size: 15px; margin: 0; text-align: left; }
@media (max-width: 600px) {
  .steps-list { grid-template-columns: 1fr; gap: 0; }
  .step { display: flex; gap: 12px; text-align: left; padding-bottom: 16px; }
  .step-num { flex: none; }
  .step:not(:last-child)::after { top: 44px; left: 20px; width: 1px; height: calc(100% - 48px); }
  .step-title { margin: 6px 0 4px; min-height: 0; display: block; }
}

/* フッター（主催・お問い合わせ）：Re.LABO のサイトに合わせた濃いグレーの帯、右上を大きく丸める */
footer.contact {
  --ft-bg: #3d3a39;
  background: var(--ft-bg); color: var(--white);
  margin: 0 -20px -40px; padding: 48px 28px 24px; border-top: 0;
  border-top-right-radius: 64px;
}
footer.contact h2 { color: rgba(255, 255, 255, .6); font-size: 12px; letter-spacing: .18em; font-weight: 700; margin: 0 0 14px; }
footer.contact p { margin: 0; }
.ft-main { display: grid; grid-template-columns: 1fr auto; gap: 28px 32px; align-items: center; }
.ft-company { font-size: 1.25rem; font-weight: 700; letter-spacing: .12em; line-height: 1.5; margin-bottom: 8px !important; }
.ft-line { font-size: 14px; line-height: 1.75; color: rgba(255, 255, 255, .82); font-variant-numeric: tabular-nums; }
.ft-actions { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.ft-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 24px;
  border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: opacity .15s, background-color .15s;
}
.ft-btn:first-child { background: var(--white); color: var(--ft-bg); }
.ft-btn:not(:first-child) { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .5); font-weight: 400; font-size: 15px; }
.ft-btn:hover { opacity: .85; }
.ft-btn:focus-visible { outline: 3px solid var(--sub-line); outline-offset: 2px; }
.ft-btn svg { flex: none; }
.ft-btn-label { font-size: 12px; letter-spacing: .1em; opacity: .75; font-weight: 400; }
.ft-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 18px; margin-top: 36px;
  font-size: 12px; color: rgba(255, 255, 255, .6);
}
.ft-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ft-bottom a { color: rgba(255, 255, 255, .8); text-underline-offset: 3px; }
.ft-bottom a:hover { color: var(--white); }
.ft-copy { letter-spacing: .06em; }
@media (max-width: 600px) {
  footer.contact { padding: 44px 20px 24px; border-top-right-radius: 40px; }
  .ft-main { grid-template-columns: 1fr; }
  .ft-company { font-size: 1.15rem; letter-spacing: .08em; }
  .ft-actions { min-width: 0; }
  .ft-bottom { flex-direction: column; align-items: flex-start; margin-top: 28px; }
}
