/* =========================================================
   遺品整理業者選び方ガイド 遺品整理LP  style.css
   焼き込み画像を縦積み（スマホ幅・PCは中央寄せ）
   ・.block  … セクション画像（幅100%で縦に積む）
   ・.cta    … CTA画像リンク（pulse＋shine演出、#formへ）
   ・.sticky-bar … 追従CTA（スクロールで出現）
   ========================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Meiryo", sans-serif;
  background: #e9ecef;              /* 中央列の外側 */
  color: #34618E;
  -webkit-text-size-adjust: 100%;
}

/* 中央のスマホ幅カラム */
.lp {
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  overflow: hidden;                 /* shineのはみ出し防止 */
}

/* セクション画像：隙間なく縦積み */
.block,
.cta img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- CTA画像（pulse＋shine） ---------- */
.cta {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  margin: 0;                        /* 2026-07-28 オーナー指示で余白撤去（旧: 24px 0。戻す時はこの値に） */
  animation: cta-pulse 2.2s ease-in-out infinite;
}
.cta::after {                       /* 光沢スイープ */
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  animation: cta-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}
@keyframes cta-shine {
  0%   { left: -60%; }
  55%  { left: 120%; }
  100% { left: 120%; }
}

/* ---------- スクロールでフェードイン ---------- */
.fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade.in {
  opacity: 1;
  transform: none;
}

/* ---------- フォーム ---------- */
.form-section {
  background: #F4F1EC;
  padding-bottom: 8px;
}

/* ---------- お急ぎの方はこちら（電話導線：エリア選択→対応業者へ直接発信） ---------- */
.hurry {
  padding: 0 18px 22px;
}
.hurry-toggle {
  display: block;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #FBAA5F 0%, #F0872A 55%, #E56F1E 100%);
  box-shadow: 0 5px 0 #c96a15, 0 6px 12px rgba(0,0,0,.12);
  color: #fff;
  text-align: center;
  padding: 14px 12px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.hurry-toggle:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #c96a15;
}
.hurry-main {
  display: block;
  font-size: 19px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.hurry-sub {
  display: block;
  font-size: 12px;
  font-weight: 700;
  opacity: .95;
  margin-top: 2px;
}
.hurry-panel {
  display: none;
  background: #fff;
  border: 2px solid #F0872A;
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
}
.hurry-panel.open { display: block; }
.hurry-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #34618E;
  margin-bottom: 8px;
}
.hurry-select {
  width: 100%;
  font-size: 16px;
  padding: 12px 13px;
  border: 1.5px solid #cfd6dc;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font-family: inherit;
}
.hurry-select:focus {
  outline: none;
  border-color: #F0872A;
  box-shadow: 0 0 0 3px rgba(240,135,42,.15);
}
.hurry-result { display: none; margin-top: 12px; }
.hurry-result.show { display: block; }
.hurry-vendor {
  font-size: 13px;
  color: #55605c;
  text-align: center;
  margin-bottom: 8px;
}
.hurry-vendor strong {
  display: inline-block;
  font-size: 18px;
  color: #34618E;
  margin-top: 2px;
}
.hurry-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(180deg, #FBAA5F 0%, #F0872A 55%, #E56F1E 100%);
  box-shadow: 0 5px 0 #c96a15;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
  padding: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.hurry-call:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #c96a15;
}
.hurry-call .tel-icon { width: 20px; height: 20px; flex: none; }

/* ---------- 対応業者カード（フォーム内・エリア選択で出現） ---------- */
.vendor-card {
  display: none;
  background: #fff;
  border: 2px solid #2FA866;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  text-align: center;
}
.vendor-card.show { display: block; animation: vendor-fade .3s ease; }
@keyframes vendor-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.vendor-title {
  font-size: 12px;
  font-weight: 700;
  color: #2FA866;
  margin-bottom: 2px;
}
.vendor-name {
  font-size: 18px;
  font-weight: 800;
  color: #34618E;
  margin-bottom: 4px;
}
.vendor-note {
  font-size: 12px;
  color: #55605c;
}

/* ▼▼ .diag-* は診断型ステップフォーム用（2026-07-27導入→旧フォームに差し戻し・現在未使用）。
      再採用時にそのまま使えるよう残置。HTML側はform_mock/form_mock.html参照 ▼▼ */
.diag {
  padding: 18px 18px 26px;
}

/* 進捗バー */
.diag-progress { margin-bottom: 16px; }
.diag-progress-label {
  font-size: 12px;
  font-weight: 700;
  color: #55605c;
  text-align: right;
  margin-bottom: 4px;
}
.diag-progress-bar {
  height: 8px;
  background: #e3ded5;
  border-radius: 999px;
  overflow: hidden;
}
.diag-progress-bar > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2FA866, #3BBB77);
  border-radius: 999px;
  transition: width .4s ease;
}

/* 回答済みサマリー */
.diag-answered {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1.5px solid #cfd6dc;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 14px;
}
.diag-answered.show { display: flex; }
.diag-answered .da-q { color: #55605c; font-size: 12px; }
.diag-answered .da-a { font-weight: 700; color: #34618E; }
.diag-answered button {
  background: none;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  font-size: 12px;
  color: #55605c;
  padding: 4px 10px;
  cursor: pointer;
  flex: none;
  margin-left: 8px;
}

/* 質問ステップ */
.diag-step { display: none; animation: diag-fade .35s ease; }
.diag-step.active { display: block; }
@keyframes diag-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.diag-q {
  font-size: 17px;
  color: #34618E;
  margin: 12px 0 14px;
  padding-left: 10px;
  border-left: 4px solid #F0872A;
  line-height: 1.4;
}
.diag-select {
  width: 100%;
  font-size: 16px;                  /* iOSのズーム防止に16px以上 */
  padding: 14px 12px;
  border: 1.5px solid #cfd6dc;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font-family: inherit;
}
.diag-select:focus {
  outline: none;
  border-color: #2FA866;
  box-shadow: 0 0 0 3px rgba(47,168,102,.15);
}
.diag-choices { display: grid; gap: 10px; }
.diag-choice {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: #34618E;
  background: #fff;
  border: 1.5px solid #cfd6dc;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.diag-choice:hover { border-color: #34618E; }
.diag-choice:active { background: #eef3f9; }
.diag-choice .dc-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #55605c;
}

/* 最終画面 */
.diag-final-head { text-align: center; margin: 6px 0 14px; }
.diag-done {
  width: 52px; height: 52px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #2FA866;
  color: #fff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.diag-final-head h2 {
  font-size: 20px;
  color: #34618E;
  margin-bottom: 4px;
}
.diag-final-head p {
  font-size: 14px;
  font-weight: 700;
  color: #34618E;
}
.diag-copy {
  font-size: 14px;
  color: #333;
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.diag-assure {
  list-style: none;
  margin-bottom: 16px;
}
.diag-assure li {
  font-size: 14px;
  color: #333;
  padding: 6px 0 6px 30px;
  position: relative;
}
.diag-assure li::before {
  content: "✓";
  position: absolute;
  left: 4px; top: 8px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #2FA866;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 送信完了 */
.diag-thanks { display: none; text-align: center; padding: 20px 0; }
.diag-thanks.show { display: block; animation: diag-fade .35s ease; }
.diag-thanks .diag-done { width: 60px; height: 60px; font-size: 32px; margin-bottom: 12px; }
.diag-thanks h2 { font-size: 20px; color: #34618E; margin-bottom: 8px; }
.diag-thanks p { font-size: 14px; color: #55605c; }

.lead-form {
  padding: 20px 18px 26px;
}
.field-err {
  display: none;
  color: #d93025;
  font-size: 12px;
  margin-top: 4px;
}
.field.invalid input { border-color: #d93025; }
.field.invalid .field-err { display: block; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #34618E;
}
.req, .opt {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 4px;
}
.req { background: #F0872A; color: #fff; }
.opt { background: #d7ddd9; color: #55605c; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 16px;                  /* iOSのズーム防止に16px以上 */
  padding: 12px 13px;
  border: 1.5px solid #cfd6dc;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font-family: inherit;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #2FA866;
  box-shadow: 0 0 0 3px rgba(47,168,102,.15);
}

.privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #55605c;
  margin: 4px 0 18px;
}
.privacy input { width: 18px; height: 18px; flex: none; accent-color: #2FA866; }
.privacy a { color: #34618E; }

.submit-btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #2FA866;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 6px 0 #23824f, 0 8px 16px rgba(0,0,0,.15);
  transition: transform .05s ease, box-shadow .05s ease;
}
.submit-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #23824f, 0 4px 8px rgba(0,0,0,.15);
}
.submit-btn:disabled {
  background: #c3c9d1;
  box-shadow: 0 6px 0 #9aa2ac;
  cursor: not-allowed;
}
.form-note {
  text-align: center;
  font-size: 13px;
  color: #55605c;
  margin-top: 12px;
}

/* ---------- フッター ---------- */
.footer {
  background: #34618E;
  color: #fff;
  text-align: center;
  padding: 26px 16px 34px;
}
.footer .brand { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 14px;
}
.footer-links a { color: #dfe8f1; font-size: 13px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer .copyright { font-size: 12px; color: #b9c8d8; }

/* ---------- 最上部の電話帯（電話=オレンジで統一・番号を特大に） ---------- */
.top-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #F79A47, #F0872A);
  color: #fff;
  text-decoration: none;
  padding: 10px 12px;
  line-height: 1;
}
.top-tel .tel-icon { width: 22px; height: 22px; flex: none; }
.top-tel-num {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.top-tel-note {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.14);
}

/* ---------- CTA画像下の電話ボタン（02_ctaの型に合わせたボタン化：バッジ＋光沢＋shine） ---------- */
.tel-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: -10px 14px 24px;          /* 直上のCTA画像とペアに見せる */
  padding: 13px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FBAA5F 0%, #F0872A 55%, #E56F1E 100%);
  box-shadow: 0 6px 0 #c96a15, 0 8px 16px rgba(0,0,0,.15);
  color: #fff;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}
.tel-cta::after {                   /* 緑CTAと同じ光沢スイープ */
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.5) 50%,
    rgba(255,255,255,0) 100%);
  transform: skewX(-18deg);
  animation: cta-shine 3.2s ease-in-out infinite;
  animation-delay: 1.1s;            /* 緑CTAと交互に光る */
  pointer-events: none;
}
.tel-cta-badge {
  flex: none;
  background: #FFE14D;
  color: #E0651E;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  padding: 6px 9px;
  border-radius: 8px;
  box-shadow: 0 2px 3px rgba(0,0,0,.12);
}
.tel-cta-body { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tel-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 25px;
  font-weight: 900;
  text-shadow: 0 2px 3px rgba(0,0,0,.18);
}
.tel-cta .tel-icon { width: 22px; height: 22px; flex: none; }
.tel-cta-sub { font-size: 11px; font-weight: 700; opacity: .95; }

/* ---------- 追従CTAバー ---------- */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  box-shadow: 0 -4px 14px rgba(0,0,0,.12);
  text-decoration: none;
  transform: translateY(130%);
  transition: transform .35s ease;
  z-index: 50;
}
.sticky-bar.show { transform: translateY(0); }

/* 電話ボタン（タップで発信・オレンジ） */
.sticky-tel,
.sticky-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  padding: 14px 6px;
  border-radius: 12px;
  line-height: 1.2;
}
.sticky-tel {
  flex: 1.15;                        /* 電話をわずかに広く（駆けつけ系LP準拠） */
  background: linear-gradient(180deg, #F79A47, #F0872A);
  box-shadow: 0 5px 0 #c96a15;
}
.sticky-form {
  background: linear-gradient(180deg, #3BBB77, #2FA866);
  box-shadow: 0 5px 0 #23824f;
  animation: cta-pulse 2.2s ease-in-out infinite;
}
.tel-main, .form-main {
  font-size: 21px;                   /* 番号を特大に */
  font-weight: 900;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.form-main { font-size: 18px; }
.tel-icon { width: 21px; height: 21px; flex: none; }
.tel-sub, .form-sub { font-size: 11px; font-weight: 700; opacity: .95; white-space: nowrap; }

/* ---------- 動きを抑える設定への配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  .cta, .sticky-form { animation: none; }
  .cta::after, .tel-cta::after { display: none; }
  .fade { opacity: 1; transform: none; transition: none; }
}
