/* 見学・体験のご相談フォーム（/lp/form/）。LP（assets/css/style.css）とは別に、このページだけで完結させる。
   色と文字は LP の :root と同じ値。LP の色を変えたらここも合わせる。 */

/* FORMFONT:START（06_ツール/フォーム用フォント作成.py が書き換える。手で直さない） */
@font-face { font-family: "Zen Maru Gothic Form"; src: url(zenmaru-form.34019ecb.woff) format("woff"); font-weight: 100 900; font-display: swap; }
/* FORMFONT:END */

:root {
  --c-melike: #2A609C;
  --c-ink: #1E2430;
  --c-ink-70: #4A525F;
  --c-ink-45: #5F6772;
  --c-paper: #F7F5F0;
  --c-line: #DDD8CE;
  --c-field: #CFC9BD;
  --c-err: #B3261E;
  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
  --font-head: "Zen Maru Gothic Form", var(--font-ja);
  --font-en: "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--c-paper); color: var(--c-ink);
  font-family: var(--font-ja); font-size: 16px; line-height: 1.8;
  font-feature-settings: "palt" 1; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, p, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }

/* ---- 上の帯 ---- */
.fh { background: #fff; border-bottom: 1px solid var(--c-line); }
.fh__in { max-width: 560px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fh__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.fh__logo img { height: 38px; width: auto; }
.fh__note { font-size: 10.5px; line-height: 1.4; font-weight: 700; color: var(--c-ink-45); }
.fh__back { font-size: 12.5px; font-weight: 700; color: var(--c-ink-70); text-decoration: none; padding: 8px 0 8px 8px; }

/* ---- 本文 ---- */
.fw { max-width: 560px; margin: 0 auto; padding: 28px 20px 56px; }
.ft { font-family: var(--font-head); font-weight: 700; font-size: 25px; line-height: 1.5; letter-spacing: .02em; }
.fl { margin-top: 10px; font-size: 14.5px; line-height: 1.9; color: var(--c-ink-70); }
.fnojs { margin-top: 16px; padding: 12px 14px; border: 1.5px solid var(--c-err); border-radius: 10px; font-size: 14px; }

.fg { margin-top: 24px; }
.fq { display: flex; align-items: center; gap: 8px; width: 100%; margin-bottom: 9px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.freq { font-size: 10.5px; font-weight: 700; color: #fff; background: var(--c-melike); border-radius: 4px; padding: 2px 6px; }
.fopt { font-size: 10.5px; font-weight: 700; color: var(--c-ink-45); border: 1px solid #BEB8AC; border-radius: 4px; padding: 1px 6px; }

/* 入力欄（iOS で拡大されないよう 16px 以上） */
.fi {
  display: block; width: 100%; height: 54px; padding: 0 14px;
  background: #fff; color: var(--c-ink); border: 1.5px solid var(--c-field); border-radius: 10px;
  font: inherit; font-size: 16px; line-height: 1.5; -webkit-appearance: none; appearance: none;
}
.fi::placeholder { color: #A19B90; }
.fi--ta { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
.fi:focus-visible, .fc input:focus-visible + span, .fseg input:focus-visible + span { outline: 3px solid rgba(42, 96, 156, .45); outline-offset: 2px; }
.fi.is-invalid { border-color: var(--c-err); }
.ftip { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--c-err); }
.fhelp { margin-top: 2px; font-size: 12.5px; line-height: 1.7; color: var(--c-ink-45); }
.fhelp--b { margin-top: 6px; }

/* 押して選ぶ（ラジオボタンを札の形に） */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fcol { display: grid; gap: 8px; }
.fc { position: relative; display: block; cursor: pointer; }
.fc--wide { grid-column: 1 / -1; }
.fc input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fc span {
  display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 8px 12px;
  background: #fff; border: 1.5px solid var(--c-field); border-radius: 10px; font-size: 14.5px; line-height: 1.4;
}
.fc span::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #9A948A; background: #fff; }
.fc input:checked + span { border-color: var(--c-ink); font-weight: 700; }
.fc input:checked + span::before { border: 5.5px solid var(--c-ink); }

/* 希望日 */
.fdate { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fdate__n { flex: none; width: 52px; font-size: 12.5px; font-weight: 700; color: var(--c-ink-70); }
.fi--date { flex: 1; min-width: 0; height: 50px; padding: 0 10px; font-size: 16px; }
.fseg { flex: none; display: flex; background: #fff; border: 1.5px solid var(--c-field); border-radius: 10px; overflow: hidden; }
.fseg label { position: relative; cursor: pointer; }
.fseg input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fseg span { display: flex; align-items: center; height: 47px; padding: 0 11px; font-size: 13.5px; }
.fseg input:checked + span { background: var(--c-ink); color: #fff; font-weight: 700; }

/* 迷惑送信対策の欄（人には見せない） */
.fhp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 送信 */
.fmsg { margin-top: 22px; padding: 12px 14px; border: 1.5px solid var(--c-err); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 700; line-height: 1.7; color: var(--c-err); }
.fb {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 60px; margin-top: 26px; padding: 10px 20px;
  background: var(--c-ink); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .06em; transition: background-color .25s;
}
.fmsg + .fb { margin-top: 14px; }
.fb:hover { background: var(--c-melike); }
.sg-form.is-sending .fb { opacity: .6; pointer-events: none; }
.fnote { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--c-ink-45); text-align: center; }
.fnote a { text-underline-offset: 2px; }

/* 電話・LINE */
.for { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--c-line); text-align: center; font-size: 13.5px; line-height: 1.8; color: var(--c-ink-70); }
.for__tel { display: inline-block; margin-top: 2px; font-family: var(--font-en); font-size: 22px; font-weight: 700; letter-spacing: .03em; color: var(--c-ink); text-decoration: none; }
.for__h { font-size: 12.5px; }
.fline {
  display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 14px; padding: 8px 20px;
  background: #06C755; color: #fff; border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-decoration: none;
}

/* ---- 送ったあと ---- */
.fdone { padding-top: 20px; text-align: center; }
.fdone__ok { position: relative; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: var(--c-melike); }
.fdone__ok::after { content: ""; position: absolute; left: 21px; top: 13px; width: 13px; height: 24px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.fdone .ft { font-size: 23px; outline: none; }
.fdone__p { margin-top: 14px; font-size: 15px; line-height: 1.9; color: var(--c-ink-70); }
.fdone__s { margin-top: 8px; font-size: 13.5px; line-height: 1.8; color: var(--c-ink-70); }
.fcard { margin-top: 24px; padding: 20px 18px 20px; background: #fff; border: 1px solid var(--c-line); border-radius: 14px; }
.fcard__t { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.6; }
.fcard__p { margin-top: 8px; font-size: 13px; color: var(--c-ink-70); }
.fdone__back { display: inline-block; margin-top: 22px; padding: 8px; font-size: 14px; font-weight: 700; color: var(--c-melike); text-decoration: none; }

@media (min-width: 768px) {
  .fw { padding-top: 44px; }
  .ft { font-size: 28px; }
  .fh__logo img { height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .fb { transition: none; } }
