/* =========================================================
   大阪府美容生活衛生同業組合 お問い合わせフォーム — スタイル
   モバイルファースト / 安心感・低ハードル / 上品で信頼できるトーン
   ========================================================= */

:root {
  --bg:        #f6f2ec;
  --card:      #ffffff;
  --ink:       #2a2420;
  --muted:     #7e756c;
  --line:      #e7ddd1;
  --line-soft: #f0e8dd;
  --accent:    #b9694a;   /* 温かみのあるテラコッタ */
  --accent-dk: #9c5037;
  --accent-bg: #f7ece5;
  --success:   #2f8f6b;
  --error:     #c0392b;
  --radius:    14px;
  --shadow:    0 6px 24px rgba(58, 42, 30, 0.08);
  --shadow-sm: 0 2px 8px rgba(58, 42, 30, 0.06);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN",
               "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 16px calc(48px + env(safe-area-inset-bottom));
}

/* ---------- ヒーロー ---------- */
.hero { text-align: center; padding: 8px 4px 22px; }
.hero__eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--accent-dk);
  font-weight: 700;
}
.hero__title {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
}
.hero__lead {
  margin: 0 auto;
  max-width: 30em;
  color: var(--muted);
  font-size: 15px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}
.chip {
  background: var(--accent-bg);
  color: var(--accent-dk);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
}

/* ---------- カード ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
}
.form { padding: 22px 18px 26px; margin-top: 18px; }
.form__title { margin: 0 0 16px; font-size: 17px; text-align: center; }

/* ---------- フィールド ---------- */
.field { margin: 0 0 20px; border: 0; padding: 0; }
.field:last-of-type { margin-bottom: 24px; }

/* 「お問い合わせ内容」と個人情報の間に区切りスペース（細い線＋余白） */
.field--divider {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 8px;
}
.req, .opt {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 6px;
  vertical-align: middle;
}
.req { background: #fbe9e7; color: var(--error); }
.opt { background: #eef1f0; color: var(--muted); }

.help { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

.input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #bcb2a7; }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185, 105, 74, .15);
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.7; }

/* セレクト（カスタム矢印） */
.select-wrap { position: relative; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
/* 受付終了（開催日を過ぎた）日程はグレー表示 */
.select option:disabled { color: #bdb4aa; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

/* ラジオ */
.radios { display: flex; flex-direction: column; gap: 10px; }
.radio, .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: 15px;
}
.radio:has(input:checked),
.checkbox:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.radio input, .checkbox input {
  width: 20px; height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.checkbox a { color: var(--accent-dk); }

.consent { background: var(--line-soft); border-radius: 10px; padding: 14px; }
.consent .checkbox { border: 0; background: transparent; padding: 0; }

/* エラー表示 */
.error {
  margin: 7px 0 0;
  font-size: 13px;
  color: var(--error);
  font-weight: 500;
  min-height: 0;
}
.error:empty { display: none; }
.input.is-invalid { border-color: var(--error); }
.input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(192, 57, 43, .15); }

.form-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fbe9e7;
  color: var(--error);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

/* ---------- 送信ボタン ---------- */
.submit {
  position: relative;
  width: 100%;
  margin-top: 6px;
  padding: 16px;
  font: inherit;
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s, transform .05s;
}
.submit:hover { background: var(--accent-dk); }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: .65; cursor: progress; }
.submit__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  margin-left: 10px;
  vertical-align: -3px;
  animation: spin .7s linear infinite;
}
.submit.is-loading .submit__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.reassure {
  text-align: center;
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* プライバシー */
.privacy { margin-top: 18px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.privacy summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
}
.privacy p { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

/* ---------- 完了パネル ---------- */
.success { margin-top: 18px; padding: 34px 22px; text-align: center; }
.success__icon {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 30px;
  line-height: 58px;
}
.success__title { margin: 0 0 12px; font-size: 21px; }
.success__text { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- フッター ---------- */
.foot { text-align: center; margin-top: 28px; color: var(--muted); }
.foot__org { margin: 0; font-weight: 700; font-size: 14px; color: var(--ink); }
.foot__note { margin: 4px 0 0; font-size: 12px; }

/* ---------- どんな講習会？（導入部＝半透明・角丸なしでフォームカードと差別化） ---------- */
.about {
  margin-bottom: 16px;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0;
}
.about__title { margin: 0 0 8px; font-size: 17px; text-align: center; }
.about__text { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink); }
.about__text + .about__text { margin-top: 10px; }

/* 補足文の可読性（50代スマホ利用者向けにやや大きめ） */
.help { font-size: 13px; }

/* ---------- 開催会場のご案内 ---------- */
.venues { margin-bottom: 16px; padding: 20px 18px; }
.venues__title { margin: 0 0 6px; font-size: 17px; text-align: center; }
.venues__time {
  margin: 0 0 14px;
  font-size: 13.5px;
  text-align: center;
  color: var(--ink);
  line-height: 1.7;
}
.venues__list { list-style: none; margin: 0; padding: 0; }
.venue {
  background: #f7f7f5;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
}
.venue__name { margin: 0; font-size: 14.5px; font-weight: 700; }
.venue__area {
  display: inline-block;
  margin-left: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--line-soft);
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: 1px;
}
.venue__addr { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.venue__map { margin-left: 6px; white-space: nowrap; }
.venue__dates { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.venue__dates-label {
  display: inline-block;
  margin-right: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: 1px;
}
.venues__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 信頼情報（組合ロゴ・主催表記） ---------- */
.hero__logo { display: inline-block; margin-bottom: 12px; }
.hero__logo img { width: min(300px, 84%); height: auto; display: block; margin: 0 auto; }
.trust {
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}
.trust a { color: inherit; text-decoration: underline; }
.foot__note a { color: inherit; }

/* ハニーポット（画面外） */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* スマホ（599px以下）でのみ改行する <br> */
.br-sp { display: none; }
@media (max-width: 599px) {
  .br-sp { display: inline; }
}

@media (min-width: 600px) {
  .wrap { padding-top: 40px; }
  .hero__title { font-size: 29px; }
  .form { padding: 28px 26px 30px; }
}
