/* セミナーページ v4。見本（研修会社リスキルのAI研修ページ）の作りに寄せた版。
   style.css は読まない（丸いボタン・英字の小見出しなどの共通指定を持ち込まないため）。
   作りの元：scripts/codex_illust/examples/kaname_seminar/codex_answer_v4.txt（Codexの案） */

:root {
  --blue: #0057a4;       /* 見出し・小見出し・チェック・Q */
  --blue-deep: #0645ad;  /* 申込の帯 */
  --blue-soft: #edf3fa;  /* こんな方に・表の見出し */
  --gray: #f6f6f6;       /* カリキュラム左列・持ち物・注記・項目名 */
  --orange: #fe7c00;     /* 申込・送信だけに使う */
  --orange-soft: #ffa957;
  --marker: #fff19b;
  --ink: #111111;
  --muted: #555555;
  --line: #d5dadf;
  --white: #ffffff;
  --err: #b42318;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { text-decoration: none; }
p { margin: 0; }
p + p { margin-top: 12px; }
h1, h2, h3 { margin: 0; font-weight: 700; }
.wrap { width: calc(100% - 48px); max-width: 950px; margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ic {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
main [id] { scroll-margin-top: 72px; }

/* ---------- ヘッダー ---------- */
.hd {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-top: 4px solid var(--blue);
  border-bottom: 1px solid var(--line);
}
.hd-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: calc(100% - 48px); max-width: 1120px; height: 56px; margin-inline: auto;
}
.hd-brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--blue); text-decoration: none; }
.hd-brand-name { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; }
.hd-brand-sub { font-size: 12px; color: var(--muted); }
.hd-nav { display: flex; align-items: center; gap: 20px; }
.hd-nav a { color: var(--ink); font-size: 14px; text-decoration: none; }
.hd-nav a:hover { color: var(--blue); text-decoration: underline; }
.hd-nav .hd-contact {
  padding: 6px 14px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  color: var(--blue);
  font-weight: 700;
}
.hd-nav .hd-contact:hover { background: var(--blue); color: var(--white); text-decoration: none; }

/* ---------- パンくず ---------- */
.crumb { border-bottom: 1px solid var(--line); }
.crumb ol { display: flex; flex-wrap: wrap; margin-block: 0; padding: 12px 0; list-style: none; font-size: 13px; line-height: 1.5; }
.crumb li + li::before { content: "＞"; margin: 0 8px; color: var(--muted); }
.crumb li[aria-current] { color: var(--muted); }

/* ---------- ボタン（角はほぼ四角・影なし・矢印なし） ---------- */
.btn-apply {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 280px; max-width: 100%; min-height: 52px;
  padding: 12px 24px;
  border: 1px solid transparent; border-radius: 2px;
  background: var(--orange);
  color: var(--ink);
  font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}
.btn-apply:hover { background: var(--orange-soft); color: var(--ink); }
.btn-apply:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-sub {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--blue); border-radius: 2px;
  background: var(--white); color: var(--blue);
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.btn-sub:hover { background: var(--blue-soft); }

/* 申込の帯（画面幅いっぱいの濃い青にオレンジのボタン1つ） */
.band { padding: 24px 16px; background: var(--blue-deep); text-align: center; }
.band .btn-apply:focus-visible { outline-color: var(--white); }

/* ---------- セクション・見出し ---------- */
.sec { padding: 48px 0; }
.sec-blue { background: var(--blue-soft); }
.sec-gray { background: var(--gray); }
/* 白地のセクションが続くときは、上下の余白を二重に積まない（間は48px。内容と持ち物、会場と講師は40px） */
.sec:not(.sec-blue):not(.sec-gray) + .sec:not(.sec-blue):not(.sec-gray) { padding-top: 0; }
.sec-join { padding-bottom: 40px; }
.sec h2 {
  margin-bottom: 24px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--blue);
  color: var(--blue);
  font-size: 22px;
  line-height: 1.5;
}
.sec-lead { margin: -8px 0 20px; }
.month {
  margin: 28px 0 10px;
  padding-left: 18px;
  border-left: 5px solid var(--blue);
  color: var(--blue);
  font-size: 19px;
  line-height: 1.5;
}
.sec-lead + .month { margin-top: 0; }

/* ---------- 1. 見出し ---------- */
.hero { padding: 32px 0 40px; }
.hero-label { color: var(--blue); font-size: 15px; font-weight: 700; text-align: center; }
.hero-title {
  margin-top: 6px;
  color: var(--blue);
  font-size: 36px;
  line-height: 1.45;
  text-align: center;
}
.hero-title span, .hero-sub span { display: inline-block; }
.hero-sub { margin-top: 8px; font-size: 20px; font-weight: 700; line-height: 1.6; text-align: center; }
.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-img { width: 100%; }
.hero-pain {
  margin-bottom: 4px;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  font-size: 24px; font-weight: 700; line-height: 1.6; color: #111;
}
.hero-pain span { display: block; }
.checks.hero-checks { margin: 14px 0 8px; }
.checks.hero-checks li { padding: 2px 0; font-size: 17px; }
.hero-cta { margin-top: 24px; text-align: center; }

/* ---------- 2. こんな方に ---------- */
.foryou { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; align-items: center; }
.foryou-img { width: 160px; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; padding: 10px 0; line-height: 1.7; font-weight: 700; }
.checks .ic { margin-top: 5px; color: var(--blue); stroke-width: 3; }
mark { background: linear-gradient(transparent 60%, var(--marker) 60%); color: inherit; }

/* ---------- 3. 日程 ---------- */
.sched, .spec { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.sched th, .sched td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.5; }
.sched thead th { padding: 8px 16px; background: var(--blue-soft); color: var(--ink); font-size: 15px; text-align: center; }
.sched thead th:first-child { text-align: left; }
.sched th:first-child { width: 30%; }
.sched tbody th { text-align: left; font-weight: 700; }
.sched td { width: 35%; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched td + td, .sched th + td, .sched thead th + th { border-left: 1px solid var(--line); }
.sched .is-none { color: #9a9a9a; }
.sched .is-full { color: var(--muted); }
.sched .is-full::after {
  content: "満席";
  display: block; width: fit-content; margin: 4px auto 0; padding: 2px 6px;
  background: #eeeeee; color: var(--muted);
  font-size: 13px; font-weight: 700; line-height: 1.4;
}
.spec { margin-top: 28px; }
.spec th, .spec td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.spec th { width: 160px; background: var(--gray); font-weight: 700; border-right: 1px solid var(--line); }
.spec td { font-weight: 700; }

/* ---------- 4. 当日の内容（カリキュラム表） ---------- */
.curr-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border: 1px solid var(--line);
}
.curr-head { padding: 20px; background: var(--gray); border-right: 1px solid var(--line); }
.curr-title { display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: 18px; line-height: 1.4; }
.curr-no {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 14px; font-weight: 700;
}
.curr-img { width: 180px; margin-top: 12px; }
.curr-body { padding: 24px; }
.curr-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.curr-label { padding: 2px 14px; background: #c8c8c8; color: var(--white); font-size: 14px; }
.curr-list { margin: 0; padding: 0; list-style: none; }
.curr-list li { position: relative; padding: 4px 0 4px 18px; font-weight: 700; line-height: 1.6; }
.curr-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.95em;
  width: 7px; height: 7px; background: var(--blue);
}
.curr-detail { display: block; font-size: 15px; font-weight: 400; color: var(--muted); }
.curr-row + .curr-row { border-top: 0; }
.curr-break { margin: 0; padding: 12px 0; font-size: 14px; font-weight: 700; text-align: center; color: var(--muted); }
.note { margin-top: 20px; padding: 16px; background: var(--gray); font-size: 15px; }
.note p + p { margin-top: 4px; }

/* ---------- 5. 持ち物 ---------- */
.bring { padding: 20px; background: var(--gray); }
.bring-who { font-weight: 700; }
.bring-who + p { margin-top: 4px; }

/* ---------- 6. 会場 ---------- */
.venue-name { font-size: 22px; font-weight: 700; line-height: 1.4; }
.venue-addr { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.venue-addr p { display: flex; align-items: center; gap: 6px; margin: 0; }
.venue-addr .ic { color: var(--blue); }
#venue .spec { margin-top: 20px; }
.room { display: flex; gap: 16px; }
.room + .room { margin-top: 2px; }
.room-m { min-width: 5.5em; color: var(--muted); font-weight: 400; }

/* ---------- 7. 講師 ---------- */
.speaker { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 28px; align-items: start; }
.speaker-photo { width: 144px; height: 180px; object-fit: cover; object-position: 50% 20%; }
.speaker-name { font-size: 22px; font-weight: 700; line-height: 1.4; }
.speaker-name .kana { margin-left: 10px; font-size: 13px; font-weight: 400; color: var(--muted); }
.speaker-role { margin-top: 4px !important; font-size: 15px; color: var(--blue); font-weight: 700; }

/* ---------- 8. よくある質問 ---------- */
.faq { margin: 0; }
.faq-item { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.faq-item + .faq-item { margin-top: 28px; }
.faq dt, .faq dd { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; }
.faq dt { font-weight: 700; }
.faq dd { margin-top: 12px; }
.faq-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 14px; font-weight: 700; line-height: 1;
}
.faq-q { background: var(--blue); color: var(--white); }
.faq-a { background: var(--orange); color: var(--ink); }

/* ---------- 9. 申込欄（表組み：左に項目名、右に入力欄） ---------- */
.apply-box { max-width: 760px; }
.form-pending { margin: 0; padding: 32px 16px; background: var(--gray); text-align: center; color: var(--muted); }
.req-mark { margin-left: 2px; color: var(--err); font-weight: 700; }
.apply-form { border-top: 1px solid var(--line); }
.frow {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  margin: 0; padding: 0; min-width: 0;
  border: 0; border-bottom: 1px solid var(--line);
}
legend.frow-label { float: left; width: 100%; }   /* fieldset の legend も表の左列に並べるため */
.frow-label {
  display: block;
  padding: 16px;
  background: var(--gray);
  font-size: 15px; font-weight: 700; line-height: 1.6;
}
.frow-body { padding: 16px; min-width: 0; }
.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"],
.apply-form select,
.apply-form textarea {
  display: block; width: 100%; min-height: 48px;
  padding: 12px;
  border: 1px solid #8c959f; border-radius: 2px;
  background: var(--white); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.5;
}
.apply-form textarea { min-height: 112px; resize: vertical; }
.apply-form select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.apply-form [aria-invalid="true"] { border-color: var(--err); background-color: #fdf3f2; }
.apply-form ::placeholder { color: #8c959f; }
.field-hint { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.field-hint-top { margin: 0 0 4px; }
.field-error { margin: 6px 0 0; font-size: 14px; color: var(--err); font-weight: 700; }
.choices { display: flex; flex-wrap: wrap; gap: 0 28px; }
.choices-col { flex-direction: column; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; line-height: 1.5; cursor: pointer; }
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.other-input { margin-top: 4px; }
.apply-form .other-input:disabled { background: var(--gray); }
#f-device-wrap.is-off .frow-body { opacity: 0.45; }
#f-device-wrap.is-off .choice { cursor: default; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { padding-top: 28px; text-align: center; }
.form-consent { margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.btn-submit:disabled { background: #d9d9d9; color: var(--muted); cursor: wait; }
.form-message { margin: 0 0 16px; padding: 12px 16px; font-size: 15px; font-weight: 700; text-align: left; line-height: 1.7; }
.form-message-error { background: #fdf3f2; color: var(--err); border: 1px solid #f0c4bf; }
.apply-done { padding: 28px 20px; background: var(--blue-soft); }
.apply-done p { margin: 0; }
.apply-done-title { margin-bottom: 8px !important; font-size: 19px; font-weight: 700; color: var(--blue); }

/* ---------- 10. お問い合わせ ---------- */
#contact { padding: 32px 0; }
.mail { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.mail a { text-decoration: underline; }

/* ---------- フッター ---------- */
.ft { padding: 20px 0; background: var(--blue); color: var(--white); font-size: 13px; }
.ft .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.ft a { color: var(--white); }

/* ---------- タブレット ---------- */
@media (max-width: 960px) {
  .hd-nav .hd-wide { display: none; }
}

/* ---------- スマホ（767px以下で1列） ---------- */
@media (max-width: 767px) {
  .wrap, .hd-in { width: calc(100% - 32px); }
  .hd-in { height: 52px; }
  .hd-brand-name { font-size: 20px; }
  .hd-brand-sub { display: none; }
  .hd-nav { gap: 14px; }
  .hd-nav .hd-contact { padding: 4px 10px; font-size: 13px; }
  main [id] { scroll-margin-top: 68px; }
  .sec { padding: 32px 0; }
  .sec-join { padding-bottom: 28px; }
  .sec h2 { margin-bottom: 20px; font-size: 21px; }
  .month { font-size: 18px; }
  .hero { padding: 24px 0 32px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 18px; }
  .hero-pain { font-size: 20px; }
  .hero-body { grid-template-columns: 1fr; gap: 20px; }
  .hero-img { width: 100%; max-width: 240px; margin-inline: auto; }
  .band { padding: 20px 16px; }
  .btn-apply { width: 100%; max-width: 343px; }
  .foryou { grid-template-columns: 1fr; gap: 12px; }
  .foryou-img { width: 120px; margin-inline: auto; }
  .sched { font-size: 14px; }
  .sched th, .sched td { padding: 12px 6px; }
  .sched thead th { padding: 8px 6px; font-size: 14px; }
  .sched th:first-child { width: 37%; }
  .sched td { width: 31.5%; }
  .sched tbody th .wd { font-size: 12px; }
  .spec th { width: 96px; padding: 12px; }
  .spec td { padding: 12px; }
  .curr-row { grid-template-columns: 1fr; }
  .curr-head { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .curr-img { width: 100%; max-width: 240px; margin: 12px auto 0; }
  .curr-body { padding: 16px; }
  .venue-addr { flex-direction: column; align-items: flex-start; }
  .venue-addr .btn-sub { width: 100%; }
  .speaker { grid-template-columns: 1fr; gap: 16px; }
  .speaker-photo { width: 120px; height: 150px; }
  .frow { grid-template-columns: 1fr; }
  .frow-label { padding: 10px 12px; }
  .frow-body { padding: 12px 0 16px; }
  .choices:not(.choices-col) { flex-direction: column; }
  .form-submit .btn-apply { max-width: none; }
}

@media (max-width: 360px) {
  .sched td { white-space: normal; }
  .room { flex-direction: column; gap: 0; }
}
