/* お問い合わせフォーム（rafterz.jp のデザインに合わせている） */
:root {
  --text: #333;
  --muted: #808080;
  --dark: #333;
  --line: rgba(0, 0, 0, .13);
  --line-light: #ddd;
  --bg: #fff;
  --bg-soft: #eee;
  --input-bg: #e4e4e4;
  --accent: #f15b40;
  --accent-dark: #bb4530;
  --error: #e13030;
  --error-bg: #fdeeee;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, "游ゴシック", "Yu Gothic", "游ゴシック体", YuGothic, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Meiryo UI", "メイリオ", Meiryo, sans-serif;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .02em;
}

a { color: var(--text); }
img { max-width: 100%; height: auto; vertical-align: middle; }

.sr-only {
  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(--dark); box-shadow: 0 3px 3px rgba(0, 0, 0, .15); }
.header-bar { max-width: 1200px; margin: 0 auto; padding: 20px 15px; }
.logo { display: block; width: auto; max-height: 35px; }

/* ---------------- 本文 ---------------- */

.main { padding: 20px 0 70px; }
.inner { max-width: 1000px; margin: 0 auto; padding: 0 15px; }

/* 見出し（縦線＋英字＋日本語） */
.heading {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  margin: 0 0 30px;
  padding-top: 45px;
  text-align: center;
}
.heading::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - .5px);
  width: 1px;
  height: 30px;
  background: #23190e;
}
.heading h1 { margin: 0; font-size: 21px; font-weight: 400; line-height: 1.5; }
.heading p { margin: 0; font-size: 34px; font-weight: 500; line-height: 1.4; letter-spacing: .1em; }

.lead { margin: 0 0 24px; text-align: center; }
.req { margin-left: 4px; color: var(--error); font-size: 12px; font-weight: bold; }

.notice { margin: 0 0 30px; padding: 14px 16px; }
.notice p { margin: 0; }
.notice ul { margin: 8px 0 0; padding-left: 1.4em; }
.notice-error { color: var(--error); background: var(--error-bg); border: 1px solid var(--error); }
.notice-error a { color: var(--error); }
.notice:focus { outline: 2px solid var(--error); outline-offset: 2px; }

/* フォーム（項目名｜入力欄の行） */
.form { margin: 0; border-top: 1px solid var(--line); }
.row { display: flex; border-bottom: 1px solid var(--line); }
.row-label { display: block; flex: 0 0 30%; padding: 20px 15px; font-weight: bold; }
.row-input { flex: 1 1 auto; min-width: 0; padding: 15px; }

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px; /* iOS の自動ズーム対策で 16px 以上 */
  letter-spacing: 1px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--line-light);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 200px; resize: vertical; }

input:focus, textarea:focus {
  outline: none;
  background: #fff;
  border-color: rgba(0, 0, 0, .25);
}

[aria-invalid="true"] { border-color: var(--error) !important; background: var(--error-bg) !important; }

.radios { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.radios[aria-invalid="true"] { padding: 4px 10px; border: 1px solid var(--error); }

.radio, .checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px; /* タップしやすい高さ */
  cursor: pointer;
}
.radio input, .checkbox input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }

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

.field-error { margin: 6px 0 0; color: var(--error); font-size: 14px; font-weight: bold; }
.field-error[hidden] { display: none; }

.privacy {
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 10px;
  padding: 15px;
  font-size: 13.5px;
  line-height: 1.7;
  border: 1px solid var(--line-light);
}
.privacy p { margin: 0 0 8px; }
.privacy ol { margin: 0; padding-left: 1.4em; }
.privacy li { margin: 0 0 8px; }

/* ハニーポット（人には見せない） */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.submit-area { display: grid; gap: 16px; justify-items: center; margin-top: 30px; }
/* ALTCHA（送信前の確認）の見た目を合わせる */
altcha-widget { display: block; width: 100%; max-width: 320px; }
altcha-widget {
  --altcha-border-radius: 0;
  --altcha-color-border: #ddd;
  --altcha-color-text: #333;
  --altcha-color-base: #fff;
  --altcha-max-width: 320px;
}

/* ボタン（rafterz.jp と同じ、左端の線がホバーで伸びる） */
.button-wrap { position: relative; display: inline-block; }
.button-wrap::before {
  content: "";
  position: absolute;
  top: calc(50% - .5px);
  left: 0;
  z-index: 1;
  width: 10px;
  height: 1px;
  background: #fff;
  transition: all .3s ease;
  pointer-events: none;
}
.button-wrap:hover::before { left: 22px; width: calc(100% - 44px); background: rgba(255, 255, 255, .8); }

.button {
  display: inline-block;
  min-width: 280px;
  padding: 16px 40px;
  font: inherit;
  font-size: 16px;
  letter-spacing: 3px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background .3s;
  -webkit-appearance: none;
  appearance: none;
}
.button:hover { background: var(--accent-dark); }
.button:disabled { opacity: .6; cursor: wait; }

.done { max-width: 760px; margin: 0 auto; text-align: center; }
.done p { margin: 0 0 20px; }
.receipt { padding: 14px 16px; border: 1px solid var(--line-light); }
.done-close { margin-top: 36px !important; font-weight: bold; }

/* ---------------- フッタ ---------------- */

.site-footer { background: var(--dark); text-align: center; }
.copyright { margin: 0; padding: 15px; font-size: 11px; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }

/* ---------------- スマホ ---------------- */

@media (max-width: 770px) {
  .header-bar { padding: 15px; }
  .logo { max-height: 28px; }

  .heading { padding-top: 35px; }
  .heading::before { height: 20px; }
  .heading h1 { font-size: 15px; }
  .heading p { font-size: 25px; }
  .lead { text-align: left; }

  .row { display: block; }
  .row-label { padding: 12px 10px; border-bottom: 1px dotted var(--line); }
  .row-input { padding: 12px 10px 18px; }
  .radios { display: grid; gap: 0; }

  .button-wrap, .button { width: 100%; min-width: 0; }
}
