/* ============================================
   越谷Kこころのクリニック / 睡眠時無呼吸症候群外来 LP
   自院サイト(koshigaya-kokoro.jp)のトーンに合わせた
   丸ゴシック・コーラル基調の親しみやすいデザイン
============================================ */

:root {
  --color-bg: #FFFCF7;
  --color-bg-soft: #F5EEE7;
  --color-bg-pale: #FFF6E2;
  --color-ink: #3E3A39;
  --color-ink-soft: #7A7570;
  --color-line: #EEE3D6;

  --color-coral: #FF826D;
  --color-coral-deep: #E32F11;
  --color-orange: #F0863F;
  --color-orange-light: #F6B64E;
  --color-orange-deep: #BE5A18;
  --color-coral-tint: #FFECE6;

  --font-heading: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-sans: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;

  --container-w: 1120px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 10px 28px rgba(120, 90, 60, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

main{
  overflow: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }
.container.center { text-align: center; }

.nowrap { display: inline-block; white-space: nowrap; }
.pc_n{ display: none;}

/* ---------- Section headings ---------- */
.section-tag {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-coral-deep);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.section-tag.center { text-align: center; }
.section-tag-light { color: #FFD9CC; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 20px;
  color: var(--color-orange-deep);
}
.section-title.center { text-align: center; }
.section-title-light { color: #fff; }

.section-lead {
  color: var(--color-ink-soft);
  font-size: 15px;
  margin: 0 0 40px;
}
.section-lead-light {
  color: #FFE4DA;
  font-size: 15px;
  margin: 0 0 32px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }

.btn-primary {
  background: var(--color-coral);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 130, 109, 0.35);
}
.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.btn-ghost {
  background: #fff;
  color: var(--color-coral-deep);
  border-color: var(--color-coral);
}
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}
.logo-mark { flex: 0 0 auto; line-height: 0; }
.logo-mark img, .footer-logo img { display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.logo-en {
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--color-coral-deep);
  text-transform: uppercase;
  white-space: nowrap;
}
.logo-ja {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
}

.gnav {
  display: flex;
  gap: 18px;
  font-size: 13.5px;
  font-weight: 500;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.gnav a { color: var(--color-ink-soft); transition: color .2s; white-space: nowrap; }
.gnav a:hover { color: var(--color-coral-deep); }

.header-cta { display: flex; align-items: center; flex: 0 0 auto; }
.header-book-btn {
  padding: 12px 22px;
  font-size: 14px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 32px; height: 24px;
  border: none; background: none;
  padding: 0; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-toggle span {
  display: block; height: 2px; background: var(--color-ink); border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 128px 0 100px;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.hero-slideshow { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; overflow: hidden; }
.hero-slideshow img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-slideshow img.is-active { opacity: 1; }
.hero-scrim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(180deg, rgba(30,24,18,.4) 0%, rgba(30,24,18,.12) 40%, rgba(30,24,18,.18) 100%);
}

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 140px; color: var(--color-bg); z-index: 1; }

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-panel {
  max-width: 620px;
  background: rgba(255, 252, 247, .95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 48px 44px;
  box-shadow: 0 24px 56px rgba(30, 24, 18, .22);
}
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--color-coral-deep);
  margin: 0 0 20px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.6;
  margin: 0 0 24px;
  font-weight: 700;
  color: var(--color-orange-deep);
}
.hero-lead {
  font-size: 16px;
  color: var(--color-ink-soft);
  margin: 0 0 36px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-meta {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-ink-soft);
  font-weight: 500;
}
.hero-meta li { padding-left: 18px; position: relative; }
.hero-meta li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px;
  transform: translateY(-50%);
  background: var(--color-coral);
  border-radius: 50%;
}

/* ---------- Intro ---------- */
.intro { padding: 100px 0 90px; }
.intro-text { color: var(--color-ink-soft); margin: 0 0 20px; }

.symptom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
}
.symptom-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.symptom-time {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-coral-deep);
  margin: 0 0 16px;
  font-size: 15px;
}
.symptom-card ul { margin: 0; padding: 0; list-style: none; }
.symptom-card li {
  padding: 10px 0 10px 22px;
  border-bottom: 1px dashed var(--color-line);
  position: relative;
  font-size: 14.5px;
  color: var(--color-ink);
}
.symptom-card li:last-child { border-bottom: none; }
.symptom-card li::before {
  content: "";
  position: absolute; left: 2px; top: 18px;
  width: 5px; height: 5px;
  background: var(--color-coral);
  border-radius: 50%;
}

/* ---------- Checklist ---------- */
.check-section {
  background: var(--color-coral-deep);
  padding: 100px 0;
  color: #fff;
}
.check-list {
  display: grid;
  gap: 4px;
  margin-bottom: 32px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s;
  font-size: 14.5px;
  font-weight: 500;
}
.check-item:hover { background: rgba(255,255,255,.08); }
.check-item input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.check-item input:focus-visible + .check-box {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.check-box {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  background: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 7px;
  position: relative;
  transition: background .2s, border-color .2s;
}
.check-item input:checked + .check-box {
  background: var(--color-orange-light);
  border-color: var(--color-orange-light);
}
.check-item input:checked + .check-box::after {
  content: "";
  position: absolute;
  left: 7px; top: 3px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-result {
  background: rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0.55;
  transition: opacity .3s, background .3s;
}
.check-result.active {
  opacity: 1;
  background: rgba(255,255,255,.18);
}
.check-result.active .btn-primary {
  background: var(--color-orange-light);
  box-shadow: 0 8px 20px rgba(255, 181, 61, 0.4);
}
.check-result p { margin: 0; font-size: 15px; font-weight: 500; }
.check-note { font-size: 12.5px; color: #FFE4DA; margin-top: 20px; text-align: center; }

/* ---------- Flow ---------- */
.flow-section { padding: 100px 0; }
.flow-list {
  list-style: none;
  margin: 0 auto; padding: 0;
  max-width: 780px;
  counter-reset: flow;
}
.flow-item {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px dashed var(--color-line);
}
.flow-item:first-child { padding-top: 0; }
.flow-item:last-child { border-bottom: none; }
.flow-num {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-coral-tint);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-coral-deep);
}
.flow-body h3 {
  margin: 4px 0 10px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-ink);
}
.flow-body p { margin: 0; color: var(--color-ink-soft); font-size: 14.5px; }

/* ---------- Price ---------- */
.price-section { padding: 100px 0; background: var(--color-bg-pale); }
.price-section .section-lead { margin-bottom: 16px; }

.insurance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 40px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-coral-deep);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-card);
}
.insurance-badge svg { flex: 0 0 auto; color: var(--color-orange-light); }

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.price-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 22px 28px;
  text-align: center;
}
.price-card-accent { box-shadow: 0 10px 28px rgba(255, 130, 109, 0.25); }
.price-icon {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-coral-tint);
  color: var(--color-coral-deep);
  display: flex; align-items: center; justify-content: center;
}
.price-label { font-size: 13.5px; color: var(--color-ink-soft); margin: 0 0 10px; font-weight: 500; }
.price-value {
  font-family: var(--font-heading);
  margin: 0 0 14px;
  line-height: 1.2;
}
.price-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-coral-deep);
}
.price-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-coral-deep);
  margin-left: 2px;
}
.price-note { font-size: 12.5px; color: var(--color-ink-soft); margin: 0; line-height: 1.7; }
.price-disclaimer {
  text-align: center;
  font-size: 12.5px;
  color: var(--color-ink-soft);
  margin: 32px 0 0;
}

/* ---------- Features ---------- */
.feature-section { padding: 100px 0; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  padding: 8px;
}
.feature-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--color-coral-tint);
  color: var(--color-coral-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--color-ink);
}
.feature-card p { font-size: 14px; color: var(--color-ink-soft); margin: 0; }

/* ---------- Gallery ---------- */
.gallery-section { padding: 100px 0 110px; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.gallery-item-lg { grid-row: 1 / 3; }
.gallery-item img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}
.gallery-item-lg img { aspect-ratio: 3 / 4; }

/* ---------- Doctor ---------- */
.doctor-section { padding: 100px 0; background: var(--color-bg-pale); }
.doctor-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: center;
}
.doctor-photo {
  aspect-ratio: 200 / 240;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.doctor-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.doctor-text { color: var(--color-ink-soft); margin: 0 0 18px; }
.doctor-name { font-family: var(--font-heading); font-weight: 700; margin: 24px 0 0; color: var(--color-ink); }

/* ---------- Access ---------- */
.access-section { padding: 100px 0; }
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.info-list { margin: 0 0 32px; }
.info-list dt {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-coral-deep);
  letter-spacing: .05em;
  margin-top: 18px;
}
.info-list dt:first-child { margin-top: 0; }
.info-list dd { margin: 6px 0 0; font-size: 15px; }
.info-list dd a { color: var(--color-ink); }
.dd-sub { font-size: 12.5px; color: var(--color-ink-soft); }

.hours-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  margin-bottom: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hours-table th, .hours-table td {
  border: 1px solid var(--color-line);
  padding: 10px 6px;
  text-align: center;
  background: #fff;
}
.hours-table thead th { background: var(--color-bg-soft); font-weight: 700; }
.hours-table tbody th { font-weight: 500; color: var(--color-ink-soft); white-space: nowrap; background: var(--color-bg-soft); }
.hours-note { font-size: 12.5px; color: var(--color-ink-soft); margin: 0 0 32px; }

.access-map {
  aspect-ratio: 4 / 3.4;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ---------- FAQ ---------- */
.faq-section { padding: 100px 0; background: var(--color-bg-pale); }
.faq-list { margin-top: 48px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 4px 24px;
  margin-bottom: 12px;
}
.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-coral);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--color-ink-soft);
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 110px 0;
  background: linear-gradient(135deg, var(--color-coral) 0%, var(--color-orange) 100%);
  color: #fff;
  text-align: center;
}
.final-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  margin: 0 0 18px;
}
.final-cta p { color: #FFF1EC; margin: 0 0 36px; }
.final-cta .hero-cta { justify-content: center; }
.final-cta .btn-primary { background: #fff; color: var(--color-coral-deep); box-shadow: 0 8px 20px rgba(0,0,0,.15); }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 28px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-line);
}
.footer-brand p { margin: 4px 0; font-size: 13.5px; color: var(--color-ink-soft); }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px !important; }
.footer-brand .logo-ja { font-size: 16px; margin-bottom: 0; color: var(--color-ink); }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; align-content: flex-start; }
.footer-nav a { color: var(--color-ink-soft); }
.footer-disclaimer {
  max-width: var(--container-w);
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 11.5px;
  color: var(--color-ink-soft);
}
.copyright {
  max-width: var(--container-w);
  margin: 12px auto 0;
  padding: 0 24px;
  font-size: 11.5px;
  color: var(--color-ink-soft);
}

/* ---------- Mobile fixed CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  height: 58px;
  box-shadow: 0 -4px 12px rgba(51,51,51,.12);
}
.mobile-cta-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.mobile-cta-tel { background: var(--color-orange); color: #fff; }
.mobile-cta-web { background: var(--color-coral); color: #fff; }

/* ============================================
   Responsive
============================================ */
/* ヘッダーのナビ+ボタンは実測で約1100px必要なため、
   コンテンツの折返し(900px)より広い1180pxでハンバーガーに切替える */
@media (max-width: 1180px) {
  .gnav, .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .site-header.open {
    position: fixed;
    top: 0; left: 0; right: 0;
    bottom: 0;
    overflow-y: auto;
  }
  .site-header.open .header-inner {
    flex-wrap: wrap;
    height: auto;
    align-items: flex-start;
    padding-bottom: 24px;
  }
  .site-header.open .logo { order: 1; }
  .site-header.open .menu-toggle { order: 2; }
  .site-header.open .gnav {
    order: 3;
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
    border-top: 1px solid var(--color-line);
    margin-top: 16px;
    padding-top: 16px;
    gap: 16px;
  }
  .site-header.open .header-cta {
    order: 4;
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    margin-top: 20px;
  }
}

@media (max-width: 900px) {
  .hero { padding: 108px 0 80px; min-height: 0; }
  .hero-panel { padding: 32px 26px; }

  .symptom-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item-lg { grid-row: auto; grid-column: 1 / 3; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .doctor-inner { grid-template-columns: 1fr; }
  .doctor-photo { max-width: 200px; margin: 0 auto; }
  .access-grid { grid-template-columns: 1fr; }
  .access-map { aspect-ratio: 4/3; }

  .mobile-cta { display: flex; }
  body { padding-bottom: 58px; }
}

@media (max-width: 560px) {
  .pc_n{display: block;}
  .price-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-cta, .final-cta .hero-cta { flex-direction: column; }
  .hero-cta .btn, .final-cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
}
