@charset "UTF-8";
/* ==========================================================================
   KOUGEI EXPO in KANAGAWA / 出展者向けページ
   参照LP（kougei-expo.areadrive.jp/kanagawa）の配色を踏襲。
   長い申込書を最後まで書ける読みやすさを最優先にしている。
   ========================================================================== */

/* --- 1. トークン ---------------------------------------------------------- */
:root {
  /* 色 */
  /* 参考サイト（kougei-expo.areadrive.jp/kanagawa）の変数をそのまま踏襲 */
  --paper:        #ffffff;
  --surface:      #ffffff;
  --surface-2:    #f4f4f4;   /* 参考サイトの --color-bg-light */
  --ink:          #000000;   /* 参考サイトの --color-text */
  --ink-2:        #4a4a4a;
  --ink-3:        #757575;
  --brand:        #1b5fa6;   /* --color-primary */
  --brand-dark:   #144a83;
  --brand-tint:   #eaf1f8;
  --accent:       #e51718;   /* --color-accent */
  --accent-tint:  #fdeeee;
  --rule:         #dcdcdc;
  --rule-strong:  #b5b5b5;
  --ok:           #0f7a4d;

  /* 書体（欧文をスタック先頭に置き、数字と英字を欧文書体に受けさせる） */
  --font-body:  "Hanken Grotesk", "BIZ UDPGothic", "Zen Kaku Gothic New", sans-serif;
  --font-head:  "Hanken Grotesk", "Zen Kaku Gothic New", sans-serif;
  --font-catch: "Hanken Grotesk", "Shippori Mincho B1", serif;

  /* 寸法 */
  --measure:      36em;      /* 和文の読みやすい行長 */
  --wrap:         1080px;
  --wrap-narrow:  820px;
  --radius:       3px;
  --radius-lg:    3px;   /* 帳票なので面は角張らせる */

  /* 余白 */
  --sp-1: .25rem; --sp-2: .5rem;  --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem;   --sp-7: 3rem;   --sp-8: 4.5rem;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(26,26,28,.06), 0 1px 8px rgba(26,26,28,.04);
  --shadow-md: 0 2px 6px rgba(26,26,28,.07), 0 12px 28px rgba(26,26,28,.07);
}

/* --- 2. リセット ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;              /* 和文本文 1.7–1.9 */
  font-feature-settings: "palt" 0;
  text-spacing-trim: trim-start;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
ul, ol { list-style: none; padding: 0; }
a { color: var(--brand); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; translate: -50% -120%;
  z-index: 100; padding: .7em 1.4em; background: var(--brand); color: #fff;
  text-decoration: none; border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { translate: -50% 0; color: #fff; }

/* 数字は等幅に。金額・寸法・時刻が縦に揃う */
.num, .steps__no, .receipt__no, time,
.spec-table td, .review__subtable td, .input--num, .admin-table td {
  font-variant-numeric: tabular-nums;
}

/* --- 3. レイアウトと見出し ------------------------------------------------ */
/* 参考サイトに合わせ、本文コンテナは .inner（最大1000px）で統一する */
.inner { width: min(1000px, calc(100% - 40px)); margin-inline: auto; }
.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.wrap--narrow { width: min(var(--wrap-narrow), calc(100% - 2.5rem)); }

main > section { margin-bottom: clamp(42px, 8vw, 65px); }

/* セクション見出しは参考サイトの様式（帯・白文字・中央）を踏襲する */
main > section > h2 {
  text-align: center;
  background: url("../img/section-band.jpg") center / cover;
  color: #fff;
  font-weight: 700;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.5;
  letter-spacing: .08em;
  padding: 14px 20px;
  margin-bottom: 30px;
}

/* ページ冒頭の名乗り */
.page-lead { padding-block: clamp(28px, 5vw, 44px) 0; }
.page-lead__title {
  font-size: clamp(20px, 3.4vw, 26px); font-weight: 700;
  letter-spacing: .1em; line-height: 1.5;
  padding-bottom: .6rem; border-bottom: 2px solid var(--brand);
}
.page-lead__text { margin-top: 1rem; max-width: var(--measure); font-size: clamp(15px, 2vw, 17px); }

p.read { font-size: clamp(15px, 2vw, 17px); line-height: 1.85; margin-bottom: 24px; max-width: var(--measure); }
.lead-text { max-width: var(--measure); margin-bottom: 1.6rem; color: var(--ink-2); font-size: .9375rem; }

/* --- 4. ヘッダー・フッター ------------------------------------------------ */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 30;
}
.site-header__inner {
  width: min(1000px, calc(100% - 40px)); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  min-height: 68px; padding-block: .6rem;
}
/* 左上は全国のマーク（伝統的工芸品産業振興協会）、その右に大会ロゴ */
.site-header__logo { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.25rem); }
.site-header__mark { width: 32px; height: auto; flex: none; }
.site-header__title { width: clamp(168px, 30vw, 248px); height: auto; }
.site-header__role {
  margin-left: auto; flex: none;
  font-size: .8125rem; letter-spacing: .08em; color: var(--ink-2);
  padding: .35em 1em; border: 1px solid var(--rule-strong); border-radius: 999px;
}

/* フッターは参考サイトと同じくブランド青のベタ・中央揃え */
.site-footer { background: var(--brand); color: #fff; margin-top: clamp(48px, 8vw, 72px); }
.site-footer__inner {
  width: min(1000px, calc(100% - 40px)); margin-inline: auto;
  padding-block: 2.5rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.site-footer__brand { display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.75rem); }
.site-footer__mark { width: 34px; height: auto; flex: none; }
.site-footer__logo { width: clamp(220px, 46vw, 340px); height: auto; }
.site-footer__date { margin-top: 1.1rem; font-size: .8125rem; color: #d3e2f0; }

/* 奥付 */
.colophon {
  margin-top: 1.75rem; width: min(100%, 640px);
  display: grid; grid-template-columns: 7.5em 1fr; gap: .1rem 1rem;
  font-size: .8125rem; line-height: 1.85; text-align: left;
  border-top: 1px solid rgba(255, 255, 255, .35);
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  padding-block: 1rem;
}
.colophon dt { color: #cfe0f0; letter-spacing: .08em; }
.colophon dd { color: #fff; }
.colophon__note { color: #cfe0f0; font-size: .75rem; margin-left: .8em; }
.tel-link { color: #fff; font-family: var(--font-head); font-size: 1.125rem; letter-spacing: .04em; text-decoration: none; }
.tel-link:hover { color: #fff; text-decoration: underline; }
.mail-link { color: #fff; font-family: var(--font-head); font-size: .9375rem; letter-spacing: .02em; text-decoration: underline; text-underline-offset: .2em; word-break: break-all; }
.mail-link:hover { color: #fff; }
.site-footer__copy { margin-top: 1.1rem; font-size: .75rem; color: #cfe0f0; letter-spacing: .06em; }

/* --- 6. ボタン・バッジ ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .75em 1.8em;
  font-family: var(--font-head); font-size: .9375rem; font-weight: 600; letter-spacing: .08em;
  line-height: 1.4; text-align: center; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; background: none;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { border-color: var(--rule-strong); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--text { min-height: 40px; padding: .4em .2em; color: var(--ink-3); font-size: .8125rem; text-decoration: underline; letter-spacing: .04em; }
.btn--text:hover { color: var(--accent); }
.btn--lg { min-height: 60px; font-size: 1.0625rem; padding-inline: 2.4em; width: 100%; max-width: 26em; }
.btn--sm { min-height: 40px; font-size: .8125rem; padding: .4em 1.1em; }
.btn__arrow { transition: translate .18s var(--ease); }
.btn:hover .btn__arrow { translate: .2em 0; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }

.badge {
  display: inline-block; flex: none;
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; line-height: 1;
  padding: .4em .6em .35em; border-radius: 2px; vertical-align: .12em;
}
.badge--required { background: var(--accent); color: #fff; }
.badge--optional { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--rule); }

/* --- 7. トップページの部品 ------------------------------------------------ */
.form-list { display: grid; gap: 2rem; }
.apply-block {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 4vw, 2.5rem); align-items: center;
  border: 1px solid var(--rule); border-top: 3px solid var(--brand);
  background: var(--surface);
  padding: clamp(1.25rem, 3vw, 1.9rem);
}
.apply-block.is-closed { border-top-color: var(--rule-strong); opacity: .7; }
.apply-block__sub { font-size: .8125rem; letter-spacing: .1em; color: var(--brand); font-weight: 700; }
.apply-block__title {
  font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 700;
  letter-spacing: .06em; line-height: 1.5; margin-block: .2em .8em;
}
.apply-block__meta {
  display: grid; grid-template-columns: 8.5em 1fr; font-size: .875rem;
  border-top: 1px solid var(--rule);
}
.apply-block__meta > div { display: contents; }
.apply-block__meta dt { padding: .45rem .8rem .45rem 0; color: var(--ink-2); border-bottom: 1px solid var(--rule); letter-spacing: .06em; }
.apply-block__meta dd { padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.apply-block__action { text-align: center; }
.apply-block__action .btn--lg { max-width: 18em; }
.apply-block__time { margin-top: .9em; font-size: .75rem; line-height: 1.7; color: var(--ink-3); }
.apply-block__closed { font-size: .9375rem; color: var(--ink-3); border: 1px solid var(--rule-strong); padding: 1em 1.6em; }
.apply-block__prep {
  display: inline-block; min-width: 18em;
  padding: 1.15em 1.6em;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: .12em;
  color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--rule-strong);
}
@media (max-width: 600px) { .apply-block__prep { min-width: 0; width: 100%; } }

.news { border-top: 1px solid var(--rule); }
.news__item {
  display: grid; grid-template-columns: 7em 1fr; gap: 0 1.25rem;
  align-items: baseline;
  padding-block: 1rem; border-bottom: 1px solid var(--rule);
}
.news__date { font-family: var(--font-head); font-size: .875rem; color: var(--ink-2); letter-spacing: .04em; }
.news__text { font-size: clamp(15px, 2vw, 16px); }

/* 罫線表。日本語の仕様表はカード3枚組より表のほうが読める */
.detail-list-box { background: var(--surface-2); padding: clamp(14px, 3vw, 22px) clamp(14px, 3vw, 28px); }
.spec-table { font-size: clamp(15px, 2vw, 16px); }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--rule); padding: .9rem 1rem; text-align: left; vertical-align: top; }
.spec-table th { width: 9em; font-weight: 700; letter-spacing: .1em; color: var(--ink); vertical-align: top; }
.spec-table td { }
.spec-table .is-accent { color: var(--accent); font-weight: 700; }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

.doc-group + .doc-group { margin-top: 2.5rem; }
.doc-group__name { font-family: var(--font-head); font-size: 1rem; font-weight: 700; letter-spacing: .08em; }
.doc-group__note { margin-top: .3em; margin-bottom: .9em; font-size: .8125rem; color: var(--ink-2); max-width: var(--measure); }
.doc-list__name a { color: inherit; text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.doc-list__name a:hover { color: var(--accent); }
.doc-list { border-top: 1px solid var(--rule-strong); }
.doc-list__item {
  display: flex; gap: var(--sp-4); align-items: center; justify-content: space-between;
  padding-block: var(--sp-4); border-bottom: 1px solid var(--rule);
}
.doc-list__name { font-weight: 700; letter-spacing: .04em; }
.doc-list__note { font-size: .8125rem; color: var(--ink-2); max-width: var(--measure); }
.doc-list__meta { flex: none; display: flex; align-items: center; gap: .8em; font-size: .75rem; }
.doc-list__type { border: 1px solid var(--rule-strong); padding: .2em .6em; letter-spacing: .08em; color: var(--ink-2); }
.doc-list__size { color: var(--ink-3); }
.note-inline { margin-top: var(--sp-4); font-size: .8125rem; color: var(--ink-3); }

.cta-band { background: var(--brand); color: #fff; padding-block: var(--sp-7); text-align: center; }
.cta-band__title { font-family: var(--font-head); font-size: 1.375rem; font-weight: 700; letter-spacing: .08em; }
.cta-band__text { margin-top: .8em; font-size: .9375rem; color: #dbe6f2; }
.cta-band__tel { margin-top: var(--sp-4); }
.cta-band__tel a {
  font-family: var(--font-head); font-size: clamp(1.75rem, 5vw, 2.25rem); font-weight: 600;
  letter-spacing: .04em; color: #fff; text-decoration: none;
}
.cta-band__tel a:hover { color: #fff; text-decoration: underline; }
.cta-band__tel span { display: block; margin-top: .5em; font-size: .8125rem; color: #dbe6f2; }

/* --- 8. ページ見出し・ステップ -------------------------------------------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--rule); padding-block: var(--sp-5) var(--sp-6); }
.breadcrumb { margin-bottom: var(--sp-4); font-size: .75rem; color: var(--ink-3); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5em; }
.breadcrumb li + li::before { content: "／"; margin-right: .5em; color: var(--rule-strong); }
.breadcrumb a { color: var(--ink-2); }

.page-head__sub { font-size: .8125rem; letter-spacing: .12em; color: var(--brand); font-weight: 700; }
.page-head__title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700; line-height: 1.38; letter-spacing: .08em;
  margin-top: .2em; font-feature-settings: "palt" 1;
}
.page-head__deadline {
  display: inline-flex; align-items: center; gap: .9em; margin-top: var(--sp-4);
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent-tint); padding: .5em 1.1em;
}
.page-head__deadline-label { font-size: .75rem; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.page-head__deadline-date { font-family: var(--font-head); font-size: 1rem; font-weight: 600; letter-spacing: .04em; }

.steps-bar { background: var(--surface-2); border-bottom: 1px solid var(--rule); position: sticky; top: 68px; z-index: 20; }
.steps { display: flex; gap: 0; padding-block: .7rem; }
.steps__item {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .6em;
  font-size: .8125rem; color: var(--ink-3); letter-spacing: .06em;
  position: relative;
}
.steps__item + .steps__item::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 1px; height: 1.6em; translate: 0 -50%; background: var(--rule-strong);
}
.steps__no {
  display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%;
  background: var(--rule); color: var(--surface); font-size: .8125rem; font-weight: 700; line-height: 1;
}
.steps__item.is-current { color: var(--ink); font-weight: 700; }
.steps__item.is-current .steps__no { background: var(--brand); color: #fff; }
.steps__item.is-done { color: var(--ink-2); }
.steps__item.is-done .steps__no { background: var(--ok); color: #fff; }

/* --- 9. フォームの骨組み -------------------------------------------------- */
.form-layout {
  display: grid; grid-template-columns: 15rem minmax(0, 1fr);
  gap: var(--sp-7); align-items: start;
  padding-block: var(--sp-6) var(--sp-8);
}
.form-index { position: sticky; top: 132px; font-size: .875rem; }
.form-index__title { font-size: .75rem; letter-spacing: .14em; color: var(--ink-3); margin-bottom: var(--sp-3); }
.form-index__list { border-left: 2px solid var(--rule); }
.form-index__list a {
  display: flex; gap: .7em; align-items: baseline;
  padding: .55rem 0 .55rem 1rem; margin-left: -2px;
  border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.form-index__list a:hover { color: var(--brand); }
.form-index__list a.is-active { color: var(--brand); font-weight: 700; border-left-color: var(--brand); }
.form-index__no { font-family: var(--font-head); font-size: .8125rem; color: var(--ink-3); flex: none; width: 1.4em; }
.form-index__list a.is-active .form-index__no { color: var(--brand); }
.form-index__note { margin-top: var(--sp-5); font-size: .75rem; line-height: 1.8; color: var(--ink-3); }

.form-main { min-width: 0; }

/* 注意書き */
.notice-box {
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0 1.3rem; margin-bottom: var(--sp-6);
}
.notice-box__title { font-weight: 700; letter-spacing: .1em; margin-bottom: .5em; }
.notice-box__list { font-size: .875rem; max-width: var(--measure); }
.notice-box__list li { padding-left: 1.2em; position: relative; }
.notice-box__list li::before { content: "・"; position: absolute; left: 0; color: var(--brand); }

/* 帳票のブロック */
.fieldset {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); margin-bottom: var(--sp-6);
  scroll-margin-top: 148px;
  overflow: hidden;
}
/* 節番号と見出しは「Ⅰ｜申込基本情報」と罫で区切る。紙の帳票と同じ読み口にする */
.fieldset__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline; column-gap: .9em;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  border-bottom: 1px solid var(--rule); background: var(--surface-2);
}
.fieldset__no {
  grid-column: 1; grid-row: 1;
  font-family: var(--font-head); font-size: 1.0625rem; font-weight: 600;
  letter-spacing: .12em; color: var(--brand);
  border-right: 1px solid var(--rule-strong); padding-right: .9em;
}
.fieldset__title {
  grid-column: 2; grid-row: 1;
  font-size: 1.1875rem; font-weight: 700; letter-spacing: .1em; line-height: 1.5;
}
.fieldset__note {
  grid-column: 2; grid-row: 2;
  margin-top: .45em; font-size: .8125rem; color: var(--ink-2); max-width: var(--measure);
}

.fieldset__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--sp-5) var(--sp-4);
  padding: var(--sp-6) var(--sp-5);
}

/* 中見出し（所在地・代表者 など） */
.fieldset-heading {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; gap: .8em; flex-wrap: wrap;
  font-size: .9375rem; font-weight: 700; letter-spacing: .1em;
  padding-bottom: .5rem; border-bottom: 1px solid var(--rule);
  margin-top: var(--sp-2);
}
.fieldset-heading:first-child { margin-top: 0; }
.fieldset-heading span { font-size: .75rem; font-weight: 400; letter-spacing: .04em; color: var(--ink-3); }
.fieldset-note { grid-column: 1 / -1; font-size: .8125rem; color: var(--ink-2); max-width: var(--measure); }

/* --- 10. 入力欄 ----------------------------------------------------------- */
.field { grid-column: 1 / -1; border: 0; padding: 0; min-width: 0; }
.field--c4  { grid-column: span 4; }
.field--c6  { grid-column: span 6; }
.field--c8  { grid-column: span 8; }
.field[hidden] { display: none; }

.field__label {
  display: flex; align-items: baseline; gap: .7em; flex-wrap: wrap;
  font-size: .875rem; font-weight: 700; letter-spacing: .06em; line-height: 1.6;
  margin-bottom: .45rem; padding: 0; width: 100%;
}
.field__label-en { font-size: .6875rem; letter-spacing: .12em; color: var(--ink-3); font-weight: 500; }
.field__help { font-size: .8125rem; line-height: 1.75; color: var(--ink-2); margin-bottom: .45rem; max-width: var(--measure); }
.field__error {
  display: flex; gap: .5em; align-items: flex-start;
  font-size: .8125rem; font-weight: 700; line-height: 1.7; color: var(--accent);
  background: var(--accent-tint); border-left: 3px solid var(--accent);
  padding: .5em .8em; margin-bottom: .5rem; border-radius: 0 2px 2px 0;
}
.field__error span {
  flex: none; display: grid; place-items: center;
  width: 1.35em; height: 1.35em; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .7em; line-height: 1;
  margin-top: .35em;
}

.input-wrap { display: flex; align-items: stretch; gap: .6em; }
.input {
  width: 100%; min-height: 52px;
  padding: .7em .9em;
  font-size: 1rem;              /* iOS で拡大されないよう 16px を下回らせない */
  line-height: 1.6;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input::placeholder { color: #b3afa8; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,95,166,.16); }
.input[aria-invalid="true"] { border-color: var(--accent); background: var(--accent-tint); }
.input--area { min-height: 8em; resize: vertical; line-height: 1.85; }
.input--num { text-align: right; font-variant-numeric: tabular-nums; }
.input--zip { max-width: 10em; }
.is-error .input { border-color: var(--accent); }

.input-affix {
  flex: none; display: flex; align-items: center;
  font-size: .875rem; color: var(--ink-2); letter-spacing: .04em; white-space: nowrap;
}

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 1em; top: 50%;
  width: .5em; height: .5em; translate: 0 -70%; rotate: 45deg;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  pointer-events: none;
}
.input--select { appearance: none; padding-right: 2.8em; cursor: pointer; }

/* ラジオ・チェックボックス。指で押せる大きさを確保する */
.choices { display: flex; flex-wrap: wrap; gap: .7rem; }
.choices--column { flex-direction: column; }
.choice {
  display: flex; align-items: flex-start; gap: .8em;
  min-height: 52px; padding: .8em 1.1em;
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
  flex: 1 1 auto; min-width: 12em;
}
.choices--column .choice { flex: none; width: 100%; }
.choice:hover { border-color: var(--brand); background: var(--brand-tint); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__mark {
  flex: none; width: 22px; height: 22px; margin-top: .18em;
  border: 2px solid var(--rule-strong); background: var(--surface);
  border-radius: 50%; position: relative;
  transition: border-color .15s var(--ease);
}
.choice input[type="checkbox"] + .choice__mark { border-radius: 4px; }
.choice__mark::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 10px; height: 10px; border-radius: 50%; background: var(--brand);
  scale: 0; transition: scale .15s var(--ease);
}
.choice input[type="checkbox"] + .choice__mark::after {
  width: 11px; height: 6px; border-radius: 0; background: none;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  rotate: -45deg; translate: 0 -1px;
}
.choice input:checked + .choice__mark { border-color: var(--brand); }
.choice input[type="checkbox"]:checked + .choice__mark { background: var(--brand); }
.choice input:checked + .choice__mark::after { scale: 1; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.choice:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.choice__body { display: flex; flex-direction: column; gap: .15em; }
.choice__label { font-size: .9375rem; font-weight: 700; letter-spacing: .04em; line-height: 1.6; }
.choice__note { font-size: .8125rem; color: var(--ink-2); line-height: 1.6; }

/* 繰り返し入力（販売商品） */
.repeater { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
/* position: relative がないと、中の読み上げ用テキスト（position:absolute）が
   スクロール容器を抜けて <html> に横スクロールを作る */
.repeater__scroll { overflow-x: auto; position: relative; }
.repeater__table { min-width: 40rem; font-size: .9375rem; }
.repeater__table th {
  background: var(--surface-2); border-bottom: 1px solid var(--rule);
  padding: .6rem .7rem; text-align: left;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-2);
  white-space: nowrap;
}
.repeater__table th .badge { margin-left: .5em; }
.repeater__table td { border-bottom: 1px solid var(--rule); padding: .3rem .35rem; vertical-align: middle; }
.repeater__no { width: 2.6rem; text-align: center; }
.repeater__num { font-family: var(--font-head); font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.repeater__act { width: 3rem; text-align: center; }
.input--bare { min-height: 44px; border-color: transparent; background: transparent; padding: .4em .6em; }
.input--bare:hover { border-color: var(--rule-strong); background: var(--surface); }
.input--bare:focus { background: var(--surface); }
.repeater__del {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink-3); cursor: pointer; line-height: 1;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.repeater__del:hover { color: var(--accent); border-color: var(--accent); }
.repeater__foot {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  padding: .8rem; background: var(--surface-2);
}
.repeater__hint { font-size: .75rem; color: var(--ink-2); flex: 1 1 16em; }

/* ファイル添付 */
.file-wrap { position: relative; }
.input-file { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-label {
  display: flex; align-items: center; gap: 1em; cursor: pointer;
  border: 1px dashed var(--rule-strong); border-radius: var(--radius);
  padding: .9em 1.1em; background: var(--surface);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.file-label:hover { border-color: var(--brand); background: var(--brand-tint); }
.input-file:focus-visible + .file-label { outline: 3px solid var(--brand); outline-offset: 2px; }
.file-label__btn {
  flex: none; font-size: .8125rem; font-weight: 700; letter-spacing: .06em;
  border: 1px solid var(--rule-strong); border-radius: 2px; padding: .45em 1em; background: var(--surface-2);
}
.file-label__name { font-size: .875rem; color: var(--ink-2); overflow-wrap: anywhere; }

/* 自動投稿よけ（人には見せない） */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- 11. 送信ボタンまわり・お知らせ枠 ------------------------------------- */
.form-actions { text-align: center; padding-top: var(--sp-4); }
.form-actions__note { font-size: .8125rem; color: var(--ink-2); margin-bottom: var(--sp-4); }
.form-actions .btn--lg { margin-inline: auto; }
.form-actions .btn--text { display: block; margin: var(--sp-4) auto 0; }
.form-actions--confirm { padding-top: var(--sp-6); }
.form-actions__back { margin-top: var(--sp-5); font-size: .875rem; }

.alert { border-radius: var(--radius-lg); padding: var(--sp-5); margin-bottom: var(--sp-6); }
.alert--error { background: var(--accent-tint); border: 1px solid var(--accent); }
.alert--info  { background: var(--brand-tint); border: 1px solid #cfdcea; }
.alert__title { font-weight: 700; letter-spacing: .06em; margin-bottom: .4em; }
.alert--error .alert__title { color: var(--accent); }
.alert__list { font-size: .875rem; }
.alert__list li { padding-left: 1.2em; position: relative; }
.alert__list li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.alert__list a { color: var(--accent); }

/* --- 12. 確認画面 --------------------------------------------------------- */
.review { margin-block: var(--sp-6); }
.review__section { margin-bottom: var(--sp-6); }
.review__title {
  font-size: 1.0625rem; font-weight: 700; letter-spacing: .1em;
  padding-bottom: .5rem; border-bottom: 2px solid var(--ink); margin-bottom: 0;
}
.review__table { font-size: .9375rem; }
.review__table th, .review__table td {
  border-bottom: 1px solid var(--rule); padding: .85rem 1rem;
  text-align: left; vertical-align: top;
}
.review__table th { width: 15em; background: var(--surface-2); font-weight: 700; letter-spacing: .04em; color: var(--ink-2); }
.review__table td { background: var(--surface); overflow-wrap: anywhere; }
.review__empty { color: var(--ink-3); font-size: .875rem; }
.review__hint { margin-top: .4em; font-size: .75rem; color: var(--brand); }
.review__filesize { margin-left: .8em; font-size: .75rem; color: var(--ink-3); }
.review__scroll { overflow-x: auto; position: relative; }
.review__subtable { min-width: 30rem; font-size: .875rem; border: 1px solid var(--rule); }
.review__subtable th, .review__subtable td { border: 1px solid var(--rule); padding: .5rem .7rem; }
.review__subtable th { background: var(--surface-2); font-size: .75rem; letter-spacing: .06em; white-space: nowrap; }

/* --- 13. 完了画面 --------------------------------------------------------- */
.complete { text-align: center; padding-block: var(--sp-7) var(--sp-8); }
.complete__mark {
  width: 68px; height: 68px; margin: 0 auto var(--sp-5);
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ok); color: #fff; font-size: 2rem; line-height: 1;
}
.complete__title { font-size: clamp(1.375rem, 3.6vw, 1.75rem); font-weight: 700; letter-spacing: .08em; line-height: 1.45; }
.complete__note { margin-top: var(--sp-4); font-size: .9375rem; color: var(--ink-2); max-width: var(--measure); margin-inline: auto; }
.complete__mail { margin-top: var(--sp-5); font-size: .9375rem; max-width: var(--measure); margin-inline: auto; }
.complete__mail--warn { color: var(--accent); font-weight: 700; }
.complete__tel { margin-top: var(--sp-5); }
.complete__tel a { font-family: var(--font-head); font-size: 1.75rem; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.complete__tel span { display: block; font-size: .8125rem; color: var(--ink-2); margin-top: .4em; }

.receipt {
  display: inline-block; margin-top: var(--sp-6);
  border: 2px solid var(--ink); border-radius: var(--radius); padding: var(--sp-4) var(--sp-6);
  background: var(--surface);
}
.receipt dt { font-size: .75rem; letter-spacing: .16em; color: var(--ink-2); }
.receipt__no { font-family: var(--font-head); font-size: 2rem; font-weight: 600; letter-spacing: .1em; line-height: 1.3; }

.complete__next { margin-top: var(--sp-8); text-align: left; max-width: 40em; margin-inline: auto; }
.complete__next h3 { font-size: 1rem; font-weight: 700; letter-spacing: .1em; padding-bottom: .5rem; border-bottom: 1px solid var(--rule-strong); }
.flow { counter-reset: flow; margin-top: var(--sp-4); }
.flow li {
  counter-increment: flow; position: relative;
  padding: .9rem 0 .9rem 3rem; border-bottom: 1px solid var(--rule);
}
.flow li::before {
  content: counter(flow); position: absolute; left: 0; top: 1.1rem;
  width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  font-family: var(--font-head); font-size: .8125rem; font-weight: 700; line-height: 1;
}
.flow b { display: block; font-size: .9375rem; letter-spacing: .04em; }
.flow span { display: block; font-size: .8125rem; color: var(--ink-2); margin-top: .2em; }
.complete__back { margin-top: var(--sp-7); }
.error-code { font-family: var(--font-head); font-size: 3rem; font-weight: 600; color: var(--rule-strong); letter-spacing: .06em; }

/* --- 14. レスポンシブ ----------------------------------------------------- */
@media (max-width: 1000px) {
  .form-layout { grid-template-columns: 1fr; gap: var(--sp-5); }
  .form-index {
    position: static; border: 1px solid var(--rule); border-radius: var(--radius-lg);
    background: var(--surface); padding: var(--sp-4);
  }
  .form-index__list { display: flex; flex-wrap: wrap; gap: .3rem; border-left: 0; }
  .form-index__list a {
    border: 1px solid var(--rule); border-radius: 999px; padding: .4rem .9rem;
    margin-left: 0; font-size: .8125rem;
  }
  .form-index__list a.is-active { border-color: var(--brand); background: var(--brand-tint); }
  .form-index__note { margin-top: var(--sp-3); }
}

@media (max-width: 780px) {
  .site-header__inner { min-height: 60px; }
  .site-header__role { display: none; }
  .steps-bar { top: 60px; }
  .fieldset { scroll-margin-top: 130px; }

  .apply-block { grid-template-columns: 1fr; gap: var(--sp-5); }
  .apply-block__action { text-align: left; }
  .apply-block__action .btn--lg { max-width: none; }

  .news__item { grid-template-columns: 6.5em 1fr; gap: .2rem var(--sp-3); }
  .news__text { grid-column: 1 / -1; }

  .doc-list__item { flex-wrap: wrap; }

  .fieldset__grid { padding: var(--sp-5) var(--sp-4); gap: var(--sp-5) var(--sp-3); }
  .field--c4, .field--c6, .field--c8 { grid-column: 1 / -1; }


  /* 表はモバイルでカード状に積む */
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: auto; }
  .spec-table tr { border-bottom: 1px solid var(--rule-strong); margin-bottom: -1px; }
  .spec-table th { border-bottom: 0; padding-bottom: .3rem; }
  .spec-table td { border-bottom: 0; padding-top: .3rem; padding-bottom: 1rem; }

  .review__table, .review__table tbody, .review__table tr, .review__table th, .review__table td { display: block; width: auto; }
  .review__table tr { border-bottom: 1px solid var(--rule-strong); }
  .review__table th { border-bottom: 0; padding-bottom: .25rem; font-size: .8125rem; }
  .review__table td { border-bottom: 0; padding-top: .25rem; }
}

@media (max-width: 400px) {
  .wrap, .wrap--narrow { width: calc(100% - 1.6rem); }
  .fieldset__grid { padding: var(--sp-4) var(--sp-3); }
  .choice { padding: .7em .8em; min-width: 0; }
  .steps__label { font-size: .75rem; }
}

/* --- 15. 動きの抑制 ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- 16. 印刷（事務局が確認画面・控えを紙で保存できるように） -------------- */
@media print {
  .site-header, .site-footer, .steps-bar, .form-index, .form-actions,
  .breadcrumb, .alert, .notice-box, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; line-height: 1.6; }
  .wrap, .wrap--narrow { width: auto; }
  .review__section { break-inside: avoid; }
  .review__table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; color: #000; }
}

/* 表示条件で隠れた見出し・説明文が grid に隙間を作らないように */
.fieldset-heading[hidden], .fieldset-note[hidden] { display: none; }

/* --- 16. サイトのパスワードゲート ------------------------------------------ */
.gate { display: grid; place-items: center; padding-block: var(--sp-8); }
.gate__box {
  width: 100%; max-width: 30em;
  padding: var(--sp-7) var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brand);
}
.gate__title {
  font-family: var(--font-head);
  font-size: 1.25rem; font-weight: 700; letter-spacing: .1em; line-height: 1.45;
}
.gate__lead { margin-top: var(--sp-4); font-size: .9375rem; color: var(--ink-2); }
.gate__error {
  margin-top: var(--sp-5); padding: .8em 1em;
  background: var(--accent-tint); border-left: 3px solid var(--accent);
  font-size: .875rem; line-height: 1.8;
}
.gate__form { margin-top: var(--sp-5); }
.gate__field label {
  display: block; margin-bottom: .45em;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-2);
}
.gate__submit { margin-top: var(--sp-5); max-width: none; }
.gate__help {
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid var(--rule);
  font-size: .8125rem; line-height: 1.9; color: var(--ink-2);
}
.gate__help .tel-link { color: var(--brand); font-size: 1.0625rem; }
.gate__help .tel-link:hover { color: var(--brand-dark); }
.gate__note { display: block; color: var(--ink-3); font-size: .75rem; letter-spacing: .04em; }

@media (max-width: 480px) {
  .gate { padding-block: var(--sp-6); }
  .gate__box { padding: var(--sp-6) var(--sp-5); }
}
