/* ============================================
   西埼玉水道修理センター LP
   ============================================ */

:root {
  --color-primary: #1E40AF;       /* 信頼のブルー */
  --color-primary-dark: #1E3A8A;
  --color-accent: #F97316;        /* 行動喚起のオレンジ */
  --color-accent-dark: #EA580C;
  --color-text: #1F2937;
  --color-text-soft: #4B5563;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-border: #E5E7EB;
  --color-success: #16A34A;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  --radius: 12px;
  --container: 1080px;
}

/* リセット */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   ヘッダー（固定）
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 12px;
}
.header__brand { display: flex; align-items: center; gap: 8px; }
.header__name { font-weight: 700; font-size: 17px; color: var(--color-primary); }
.header__cta-group { display: flex; align-items: center; gap: 8px; }
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.header__cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.header__cta--tel { background: var(--color-accent); color: #fff; }
.header__cta--mail {
  background: #fff;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary-dark);
}
.header__cta--mail:hover { background: var(--color-primary-dark); color: #fff; }
.header__cta-mail-icon { font-size: 16px; }
.header__cta-mail-text { font-size: 14px; }
.header__cta-icon { font-size: 18px; }
.header__cta-text { display: flex; flex-direction: column; line-height: 1.1; }
.header__cta-label { font-size: 10px; }
.header__cta-num { font-size: 16px; font-weight: 800; }

@media (max-width: 700px) {
  .header__name { font-size: 14px; }
  .header__cta { padding: 8px 12px; }
  .header__cta-num { font-size: 14px; }
  .header__cta-mail-text { display: none; }
  .header__cta--mail { padding: 8px 10px; }
}

/* ============================================
   ヒーロー
   ============================================ */
.hero {
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 50%, #FFF7ED 100%);
  padding: 64px 0 56px;
  text-align: center;
}
.hero__badge {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.hero__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}
.hero__title-strong { color: var(--color-accent); }
.hero__lead {
  font-size: 17px;
  color: var(--color-text-soft);
  margin-bottom: 32px;
}
.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}
.hero__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 15px;
  color: var(--color-text);
}
.hero__features li strong { color: var(--color-accent); }

@media (max-width: 540px) {
  .hero__title { font-size: 26px; }
  .hero__lead { font-size: 15px; }
  .hero__features { gap: 8px 16px; font-size: 13px; }
}

/* ============================================
   ボタン
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.btn small { font-weight: 400; font-size: 12px; opacity: .9; margin-left: 4px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-accent-dark); }
.btn--secondary {
  background: #fff;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary-dark);
}
.btn--secondary:hover { background: var(--color-primary-dark); color: #fff; }
.btn--large { font-size: 17px; padding: 16px 28px; }
.btn--xl { font-size: 22px; padding: 20px 36px; }

/* ============================================
   セクション共通
   ============================================ */
.section {
  padding: 64px 0;
}
.section--alt { background: var(--color-bg-alt); }
.section__title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--color-primary-dark);
}
.section__title .accent { color: var(--color-accent); }
.section__lead {
  text-align: center;
  color: var(--color-text-soft);
  margin-bottom: 36px;
}

@media (max-width: 540px) {
  .section { padding: 48px 0; }
  .section__title { font-size: 22px; }
}

/* ============================================
   悩み訴求グリッド
   ============================================ */
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.trouble-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.trouble-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.trouble-card__icon { font-size: 40px; margin-bottom: 10px; }
.trouble-card p { font-size: 16px; color: var(--color-text); line-height: 1.75; }

/* ============================================
   3つの強み
   ============================================ */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.strength-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-accent);
}
.strength-card__num {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.strength-card__title {
  font-size: 21px;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}
.strength-card__text {
  font-size: 16px;
  color: var(--color-text-soft);
  line-height: 1.9;
}

/* ============================================
   サービスグリッド
   ============================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.service-card h3 {
  font-size: 19px;
  color: var(--color-primary-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-bg-alt);
}
.service-card ul li {
  font-size: 16px;
  color: var(--color-text-soft);
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.service-card ul li::before {
  content: "•";
  color: var(--color-accent);
  position: absolute;
  left: 4px;
  font-weight: 700;
}

/* ============================================
   料金表
   ============================================ */
.price-table-wrap {
  max-width: 640px;
  margin: 0 auto;
  overflow-x: auto;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-table th, .price-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 17px;
}
.price-table th {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  font-weight: 700;
  width: 50%;
}
.price-table td strong { color: var(--color-accent); font-size: 19px; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: none; }
.price-note {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-soft);
  margin-top: 16px;
}

/* ============================================
   お客様の声
   ============================================ */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.voice-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
}
.voice-card__stars { font-size: 16px; margin-bottom: 8px; }
.voice-card__text {
  font-size: 17px;
  color: var(--color-text);
  line-height: 1.95;
  margin-bottom: 14px;
}
.voice-card__author {
  font-size: 14px;
  color: var(--color-text-soft);
  text-align: right;
}
.voice-grid--single { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }
.voice-card--featured { padding: 40px 36px; border-left-width: 5px; }
.voice-card--featured .voice-card__stars { font-size: 22px; }
.voice-card--featured .voice-card__text { font-size: 19px; line-height: 2; }

/* ============================================
   対応エリア
   ============================================ */
.area-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.area-list li {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.area-note {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-soft);
  margin-top: 20px;
}

/* ============================================
   お問い合わせCTA
   ============================================ */
.contact {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.contact__title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}
.contact__lead {
  font-size: 16px;
  margin-bottom: 32px;
  opacity: .95;
}
.contact__cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}
.contact__note { font-size: 13px; opacity: .85; }

@media (max-width: 540px) {
  .contact__title { font-size: 22px; }
  .btn--xl { font-size: 18px; padding: 16px 24px; }
}

/* ============================================
   フッター
   ============================================ */
.footer {
  background: #111827;
  color: #D1D5DB;
  padding: 40px 0 24px;
}
.footer__name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.footer__info p { font-size: 14px; line-height: 1.9; }
.footer__info a { color: #93C5FD; }
.footer__info a:hover { text-decoration: underline; }
.footer__copy {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #6B7280;
  border-top: 1px solid #374151;
  padding-top: 16px;
}

/* ============================================
   無料相談バナー
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border-top: 1px solid #FED7AA;
  border-bottom: 1px solid #FED7AA;
  padding: 28px 0;
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-banner__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}
.cta-banner__sub {
  font-size: 14px;
  color: var(--color-text-soft);
}
.cta-banner__sub strong { color: var(--color-accent); }
.cta-banner__btn { white-space: nowrap; }
@media (max-width: 640px) {
  .cta-banner__inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-banner__title { font-size: 17px; }
  .cta-banner__btn { width: 100%; }
}

/* ============================================
   施工の流れ
   ============================================ */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 24px;
  list-style: none;
  counter-reset: flow;
}
.flow__step {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 18px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  border-top: 3px solid var(--color-primary);
}
.flow__num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.flow__icon { font-size: 38px; margin-bottom: 8px; }
.flow__title {
  font-size: 18px;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}
.flow__text {
  font-size: 15px;
  color: var(--color-text-soft);
  line-height: 1.8;
}
.flow__text strong { color: var(--color-accent); font-weight: 700; }

/* ============================================
   アフターケア・保証
   ============================================ */
.warranty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.warranty-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.warranty-card__icon { font-size: 42px; margin-bottom: 10px; }
.warranty-card h3 {
  font-size: 19px;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}
.warranty-card p {
  font-size: 16px;
  color: var(--color-text-soft);
  line-height: 1.85;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  max-width: 760px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .2s;
}
.faq__item[open] { box-shadow: var(--shadow-md); }
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 17px;
  position: relative;
  user-select: none;
  transition: background .2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--color-bg-alt); }
.faq__q::after {
  content: "＋";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--color-accent);
  font-weight: 800;
  transition: transform .2s;
}
.faq__item[open] .faq__q::after {
  content: "−";
  transform: translateY(-50%) rotate(0deg);
}
.faq__a {
  padding: 0 24px 22px;
  font-size: 16px;
  color: var(--color-text-soft);
  line-height: 1.95;
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
}

/* ============================================
   フローティングCTA（スマホ画面下部固定）
   ============================================ */
.floating-cta {
  display: none;
}
@media (max-width: 768px) {
  .floating-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
  }
  body { padding-bottom: 84px; }
}
.floating-cta__phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  box-shadow: var(--shadow-md);
  transition: transform .15s, background .15s;
}
.floating-cta__phone:active {
  transform: scale(.98);
  background: var(--color-accent-dark);
}
.floating-cta__sub {
  font-size: 11px;
  font-weight: 600;
  opacity: .95;
}
