/* ==== contact.css (お問い合わせページ専用) ==== */
:root{
  --bg:#edf5fb; --ink:#0f172a; --muted:#64748b; --card:#ffffff; --line:#e6eef6;
  --brand:#2563eb; --accent:#60a5fa; --pill:#1d4ed8; --hero-from:#eff6ff; --hero-to:#e0f2fe;
  --shadow:0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --radius:16px;
}

/* hero */
.hero{
  background:linear-gradient(135deg,var(--hero-from),var(--hero-to));
  border-bottom:1px solid var(--line);
}
.hero-inner{
  display:grid;
  gap:20px;
  grid-template-columns:1fr;
  align-items:center;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#eef2ff;
  color:#1e40af;
  border-radius:999px;
  padding:6px 12px;
  font-weight:700;
  font-size:12px;
  border:1px solid #dbeafe;
}

/* card */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
}

/* フォームカードを中央寄せ＆余白をしっかり確保 */
.card.form-modern{
  max-width:720px;
  margin:16px auto 0;
  padding:24px 20px !important;
}

.form-modern{
  --ring:0 0 0 4px rgba(37,99,235,.08);
}

/* すべて縦1カラム */
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:16px;
}
.field:first-of-type{
  margin-top:12px;
}
.label{
  font-weight:800;
  font-size:14px;
}
.req{
  display:inline-block;
  margin-left:6px;
  font-size:12px;
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
  border-radius:999px;
  padding:2px 8px;
}

/* inputs */
.input{
  width:100%;
  box-sizing:border-box;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  transition:border-color .15s, box-shadow .15s;
}
.input:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:var(--ring);
}
.input::placeholder{
  color:#94a3b8;
}
textarea.input{
  min-height:140px;
  resize:vertical;
}

/* select pretty */
.select-wrap{position:relative}
.select{
  appearance:none;
  padding-right:42px;
}
.select-wrap::after{
  content:"";
  position:absolute;
  right:12px;
  top:50%;
  width:10px;
  height:10px;
  transform:translateY(-50%) rotate(45deg);
  border-right:2px solid #64748b;
  border-bottom:2px solid #64748b;
  pointer-events:none;
  opacity:.8;
}

/* エラーメッセージ */
.error{
  color:#dc2626;
  font-size:12px;
  margin-top:4px;
}

/* checkline & actions */
.form-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:20px;
}
.checkline{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:16px;
}
.check{
  width:18px;
  height:18px;
  margin-top:2px;
}
.btns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* hints */
.help,
.hint{
  color:var(--muted);
  font-size:12px;
  margin-top:4px;
}

/* プライバシーポリシー表示枠 */
.privacy-box{
  margin-top:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#f9fafb;
  max-height:11em;          /* 約7行分 */
  overflow-y:auto;
  font-size:12px;
  line-height:1.6;
}

/* =========================
   LINE block
   ========================= */
.line-card{
  padding:0;
  overflow:hidden;
}

/* 上部：LINEカラーのヘッダー（中央寄せ） */
.line-head{
  background:#06C755;
  color:#fff;
  padding:12px 16px 14px;
  text-align:center;
}
.line-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  background:#fff;
  color:#16a34a;
  font-weight:800;
  font-size:11px;
}
.line-head-title{
  margin:6px 0 0;
  font-size:20px;
  font-weight:900;
}

/* 下部：白背景エリア */
.line-body{
  padding:16px;
  background:#fff;
}

/* スマホ：縦積み、QR→テキスト→ボタン */
.line-body-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}

/* QR部分 */
.line-qr a{
  display:inline-block;
}
.line-qr img{
  display:block;
  width:150px;      /* スマホでのサイズ */
  max-width:45vw;
  height:auto;
  border-radius:12px;
}

/* テキスト部分 */
.line-text{
  width:100%;
}
.line-text h2{
  font-size:18px;
  margin:0 0 8px;
}
.line-desc-box{
  background:#f9fafb;
  border-radius:12px;
  border:1px solid var(--line);
  padding:10px 12px;
}
.line-desc-box .lead{
  margin:0;
  padding-left:18px;
  font-size:14px;
}

/* ボタン：常に下中央 */
.line-btn-wrap{
  margin-top:14px;
  text-align:center;
}
.btn--line{
  background:#06C755;
  border-color:#06C755;
  color:#fff;
}
.btn--line:hover{
  opacity:.9;
}
.btn--line-wide{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:100%;
  max-width:320px;
  border-radius:999px;
  font-size:16px;
  padding:12px 16px;
  font-weight:800;
}

/* PC：左テキスト / 右QR をそれぞれ中央寄せ＋文字を少し大きく */
@media (min-width:769px){
  .line-body{
    padding:24px 32px;
  }

  .line-body-inner{
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-areas:"text qr";
    align-items:center;
    gap:32px;
  }

  .line-text{
    grid-area:text;
    max-width:480px;
    justify-self:center;
  }
  .line-text h2{
    font-size:22px;
  }
  .line-desc-box{
    padding:14px 18px;
  }
  .line-desc-box .lead{
    font-size:15px;
  }

  .line-qr{
    grid-area:qr;
    justify-self:center;
  }
  .line-qr img{
    width:260px;
    max-width:260px;
  }

  .line-btn-wrap{
    margin-top:20px;
    text-align:center;
  }
}

/* =========================
   確認画面レイアウト
   ========================= */
.confirm-list{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.confirm-list > div{
  display:grid;
  grid-template-columns:140px 1fr;
  gap:8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
}
@media(max-width:640px){
  .confirm-list > div{
    grid-template-columns:1fr;
  }
}
.confirm-list dt{
  font-weight:800;
  color:#334155;
}
.confirm-list dd{
  margin:0;
}
.thanks h3{
  margin:0 0 6px;
}

/* お問い合わせフォームの見出し・リードをフォーム幅に揃える */
#contact .contact-heading,
#contact .contact-lead{
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
}
#contact .contact-heading{
  margin-top:0;
}
#contact .contact-lead{
  margin-top:8px;
}
