/* =========================================================
   青木顧問LP｜フォームページ共通スタイル
   index.html の世界観（ダークネイビー／電光ブルー／ゴールド・明朝）を踏襲
   form-a.html（A導線）・form-b.html（B導線）で共用
   ========================================================= */

:root {
  --c-bg:        #050B16;
  --c-bg-2:      #0A1628;
  --c-bg-3:      #0F1E33;
  --c-text:      #E8EEF7;
  --c-text-dim:  #8A99B0;
  --c-accent:    #00A3FF;
  --c-accent-2:  #4FC3F7;
  --c-gold:      #C9A84C;
  --c-gold-2:    #E8D27D;
  --c-line:      rgba(255,255,255,0.08);
  --c-error:     #E26D6D;
  --f-display:   "Shippori Mincho", "Noto Serif JP", serif;
  --f-en:        "Cormorant Garamond", serif;
  --f-body:      "Noto Serif JP", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }

/* ===== 背景演出（ノイズ + グラデーション） ===== */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0,163,255,0.10), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(201,168,76,0.06), transparent 50%);
  z-index: -2;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: 0.06;
  z-index: -1;
  pointer-events: none;
}

/* ===== ナビ（ロゴ + 戻る） ===== */
.form-nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 18px 40px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 100;
  background: rgba(5, 11, 22, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-line);
}
.form-nav__logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.15em;
  color: var(--c-text);
  text-decoration: none;
}
.form-nav__logo span {
  color: var(--c-gold);
  font-family: var(--f-en);
  font-style: italic;
  font-weight: 500;
  margin-left: 6px;
}
.form-nav__back {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--c-text-dim);
  text-decoration: none;
  transition: color .3s ease;
}
.form-nav__back:hover { color: var(--c-gold); }

/* ===== メイン ===== */
.form-main {
  min-height: 100vh;
  padding: 140px 40px 100px;
  display: flex;
  justify-content: center;
}
.form-wrap {
  width: 100%;
  max-width: 680px;
}

/* ===== 見出し ===== */
.form-head { margin-bottom: 48px; }
.form-label {
  font-family: var(--f-en);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--c-gold);
  font-weight: 500;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.form-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.form-title em {
  color: var(--c-gold);
  font-style: normal;
}
.form-lead {
  font-size: 15px;
  line-height: 2;
  color: var(--c-text-dim);
}
.form-lead strong { color: var(--c-text); font-weight: 500; }

/* ===== フォーム本体（カード） ===== */
.lead-form {
  position: relative;
  padding: 48px 48px 40px;
  background: linear-gradient(180deg, var(--c-bg-3) 0%, var(--c-bg-2) 100%);
  border: 1px solid var(--c-line);
  border-top: 1px solid var(--c-gold);
}

/* ===== フィールド ===== */
.field { margin-bottom: 30px; }
.field:last-of-type { margin-bottom: 0; }
.field__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--c-text);
}
.req {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: 2px;
  line-height: 1;
  flex-shrink: 0;
}
.req--need { background: var(--c-gold); color: var(--c-bg); }
.req--opt  { border: 1px solid var(--c-line); color: var(--c-text-dim); }
.field__hint {
  font-size: 12px;
  color: var(--c-text-dim);
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-left: auto;
}

/* 入力要素 */
.field input[type="text"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-line);
  border-radius: 2px;
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  transition: border-color .3s ease, background .3s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--c-text-dim); opacity: 0.7; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-accent);
  background: rgba(0,163,255,0.05);
}
.field textarea { min-height: 140px; resize: vertical; }

/* セレクト（矢印カスタム） */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path d='M3 5l4 4 4-4' stroke='%23C9A84C' stroke-width='1.4' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
.field select option { background: var(--c-bg-2); color: var(--c-text); }

/* ===== 選択肢（ラジオ／チェック） ===== */
.opt-list { display: grid; gap: 12px; }
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .3s ease, background .3s ease;
}
.opt:hover { border-color: rgba(201,168,76,0.4); }
.opt:has(input:checked) {
  border-color: var(--c-gold);
  background: rgba(201,168,76,0.06);
}
.opt input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.opt__mark {
  width: 18px; height: 18px;
  flex-shrink: 0;
  border: 1px solid var(--c-line);
  position: relative;
  transition: border-color .3s ease, background .3s ease;
}
.opt input[type="radio"] ~ .opt__mark { border-radius: 50%; }
.opt input[type="checkbox"] ~ .opt__mark { border-radius: 3px; }
.opt input:checked ~ .opt__mark { border-color: var(--c-gold); background: var(--c-gold); }
.opt input[type="radio"]:checked ~ .opt__mark::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--c-bg);
}
.opt input[type="checkbox"]:checked ~ .opt__mark::after {
  content: "✓";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--c-bg);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.opt__text {
  font-size: 15px;
  color: var(--c-text);
  letter-spacing: 0.03em;
}

/* ===== 送信ボタン ===== */
.form-submit-wrap { margin-top: 40px; text-align: center; }
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  padding: 20px 40px;
  background: var(--c-gold);
  color: var(--c-bg);
  border: none;
  border-radius: 2px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.form-submit:hover:not(:disabled) {
  background: var(--c-gold-2);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(201,168,76,0.3);
}
.form-submit:disabled { opacity: 0.6; cursor: progress; }
.form-privacy {
  margin-top: 20px;
  font-size: 12px;
  color: var(--c-text-dim);
  letter-spacing: 0.05em;
  line-height: 1.8;
}

/* ===== エラー ===== */
.form-error {
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(226,109,109,0.4);
  background: rgba(226,109,109,0.08);
  color: var(--c-error);
  font-size: 14px;
  border-radius: 2px;
  text-align: center;
}

/* ===== サンクス ===== */
.form-thanks {
  text-align: center;
  padding: 64px 40px;
  background: linear-gradient(180deg, var(--c-bg-3) 0%, var(--c-bg-2) 100%);
  border: 1px solid var(--c-gold);
}
.form-thanks__mark {
  width: 64px; height: 64px;
  margin: 0 auto 28px;
  border: 1px solid var(--c-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-gold);
  font-size: 28px;
}
.form-thanks__title {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.form-thanks__msg {
  font-size: 15px;
  line-height: 2;
  color: var(--c-text-dim);
  margin-bottom: 40px;
}
.form-thanks__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.form-thanks__dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 360px;
  padding: 18px 36px;
  background: var(--c-gold);
  color: var(--c-bg);
  text-decoration: none;
  border-radius: 2px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
.form-thanks__dl:hover {
  background: var(--c-gold-2);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(201,168,76,0.3);
}
.form-thanks__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: var(--c-text-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: color .3s ease;
}
.form-thanks__back:hover { color: var(--c-gold); }

[hidden] { display: none !important; }

/* レスポンシブ改行：br-pc=PCのみ改行 / br-sp=スマホのみ改行 */
.br-sp { display: none; }
@media (max-width: 768px) {
  .br-pc { display: none; }
  .br-sp { display: inline; }
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .form-nav { padding: 14px 20px; }
  .form-nav__logo { font-size: 16px; }
  .form-nav__back { font-size: 12px; }
  .form-main { padding: 110px 20px 80px; }
  .form-head { margin-bottom: 36px; }
  .lead-form { padding: 32px 24px 28px; }
  .form-thanks { padding: 48px 24px; }
  .form-submit { max-width: 100%; }
}
