/* 問い合わせの別サイト（form.pepal.co.jp。D-197）の見た目。
   色はペーパルのサイト（fubuki/output の watershell/style.css とロゴ）から：ロゴの紺 #223546・キーカラーの赤 #ED0505・見出しの青 #415F79・本文 #333・入力欄 #F2F2F2／#CACACA。
   字はサイトと同じ Noto Sans JP を「端末に入っていれば」使う（外からフォントは読まない。CSP の font-src は無し＝default-src 'none'）。 */
:root {
  --navy: #223546;
  --blue: #415F79;
  --red: #ED0505;
  --text: #333;
  --muted: #5f6b76;
  --line: #CACACA;
  --field: #F2F2F2;
  --bg: #F6F8FC;
  --card: #fff;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "NotoSansJP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.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; }

/* 頭とお尻 */
.site-header { background: var(--card); border-bottom: 1px solid #E3E3E3; }
.site-header .wrap { display: flex; align-items: center; min-height: 64px; }
.logo { display: inline-block; line-height: 0; }
.logo img { width: 180px; height: auto; }
.site-footer { margin-top: 64px; padding: 24px 0 32px; background: var(--navy); color: #fff; font-size: 13px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 4px; }
.copyright { opacity: 0.8; }

/* 見出しと手順 */
.page-title { margin: 40px 0 16px; color: var(--navy); font-size: 24px; line-height: 1.4; font-weight: 700; }
.page-title-en { display: block; margin-bottom: 4px; color: var(--red); font-size: 14px; letter-spacing: 0.12em; }
.steps { display: flex; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: step; }
.step { flex: 1; padding: 8px 4px; border-bottom: 3px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; counter-increment: step; }
.step::before { content: counter(step) ". "; }
.step[aria-current="step"] { border-bottom-color: var(--red); color: var(--navy); font-weight: 700; }

/* 本体 */
#contact-form, .done { padding: 24px 16px; background: var(--card); border-radius: 4px; }
.lead { margin: 0 0 16px; }
.legend-note { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.req { margin-left: 4px; color: var(--red); }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field-label { display: block; margin: 0 0 8px; padding: 0; color: var(--navy); font-weight: 700; }
.input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-weight: 500;
}
.input:focus { background: #fff; border-color: var(--blue); }
.textarea { min-height: 200px; resize: vertical; }
.radios { display: grid; gap: 4px; }
.radio, .checkbox { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px; cursor: pointer; font-weight: 500; }
.radio input, .checkbox input { flex: none; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--navy); }
.privacy { margin: 32px 0 24px; padding: 16px; border: 1px solid #E3E3E3; background: var(--bg); font-size: 14px; }
.privacy p { margin: 0 0 12px; }
.agree { margin: 0; }
.agree .checkbox { color: var(--text); font-size: 15px; }
/* 迷惑投稿よけの見えない欄（画面の外へ。style 属性は使えないのでここで） */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ボタン */
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 200px; min-height: 52px; padding: 12px 24px;
  border: 2px solid var(--navy); border-radius: 26px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button-primary { background: var(--navy); color: #fff; }
.button-primary:hover { background: var(--blue); border-color: var(--blue); }
.button-secondary { background: #fff; color: var(--navy); }
.button:disabled { opacity: 0.55; cursor: not-allowed; }

/* 確認の画面 */
.confirm-list { margin: 0; border-top: 1px solid #E3E3E3; }
.confirm-list dt { margin: 0; padding: 12px 0 0; color: var(--navy); font-weight: 700; font-size: 14px; }
.confirm-list dd { margin: 0; padding: 4px 0 12px; border-bottom: 1px solid #E3E3E3; white-space: pre-wrap; overflow-wrap: anywhere; }
.unknown-box { margin-top: 24px; }
.unknown-note { margin: 0; padding: 12px 16px; border-left: 4px solid var(--red); background: #FFF4F4; }

/* 知らせ（受け付けなかった・届いたか分からない） */
.notice { margin: 0 0 24px; padding: 16px; border: 2px solid var(--red); border-radius: 4px; background: #FFF4F4; color: #8a0000; }
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }
.notice-id strong, .done-id strong { font-size: 1.15em; letter-spacing: 0.08em; color: var(--navy); }

/* 完了の画面 */
.done-title { margin: 0 0 16px; color: var(--navy); font-size: 22px; text-align: center; }
.done-id { margin: 0 0 16px; padding: 12px; background: var(--bg); text-align: center; }

@media (min-width: 640px) {
  .page-title { font-size: 30px; }
  #contact-form, .done { padding: 40px; }
  .logo img { width: 220px; }
}
@media (max-width: 420px) {
  .button { width: 100%; }
}

/* 電話番号（完了・結果不明・送れなかったとき）。番号は選んで写せる文字のまま、tel: のリンクにする */
.notice-tel, .unknown-tel, .done-tel { overflow-wrap: anywhere; }
.unknown-tel { margin: 12px 0 0; padding: 0 16px; }
.done-tel { margin: 16px 0 0; padding: 12px; background: var(--bg); text-align: center; }
.tel-link { font-weight: bold; font-size: 1.1em; letter-spacing: 0.04em; color: var(--navy); user-select: text; }

/* Turnstile の枠（TURNSTILE_SITEKEY を入れたときだけ functions/_middleware.js がフォームの最後に差し込む） */
.cf-turnstile { display: flex; justify-content: center; margin: 24px 0 0; min-height: 65px; }
