/* =====================================================================
   治療院サイト「popular-clinic」テンプレ
   現代的な整体院LP: 写真訴求 / チェックリスト / 数字付き理由 / 温かい医療感
   ===================================================================== */

:root {
  /* Hero 軽量化トークン (2026-05-08): 黒オーバーレイ廃止 + 写真主役。
     白文字を維持するため bottom 側だけ palette 色で fade、top は素の写真。 */
  --hero-overlay-warm: linear-gradient(180deg,
    rgba(75, 52, 40, 0.0) 0%,
    rgba(75, 52, 40, 0.18) 35%,
    rgba(75, 52, 40, 0.55) 100%);
  --hero-overlay-cool: linear-gradient(180deg,
    rgba(15, 23, 42, 0.0) 0%,
    rgba(15, 23, 42, 0.20) 35%,
    rgba(15, 23, 42, 0.58) 100%);
  --hero-overlay-soft: linear-gradient(180deg,
    rgba(31, 41, 55, 0.0) 0%,
    rgba(31, 41, 55, 0.18) 35%,
    rgba(31, 41, 55, 0.52) 100%);
  --hero-photo-filter: saturate(1.0) contrast(1.02);

  --c-primary: #0f766e;
  --c-primary-hover: #115e59;
  --c-accent: #f59e0b;
  --c-accent-deep: #d97706;
  --c-ink: #1f2937;
  --c-body: #374151;
  --c-muted: #64748b;
  --c-line: #e7e0d6;
  --c-bg: #fffaf3;
  --c-bg-muted: #f4fbf8;
  --c-bg-band: #e8f5f1;
  --c-panel: #ffffff;

  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 118, 110, 0.12);

  --fs-hero: clamp(1.85rem, 5vw, 3rem);
  --fs-h2: clamp(1.45rem, 3.4vw, 2rem);
  --fs-h3: 1.125rem;

  --ff: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
        "Hiragino Sans", "Yu Gothic Medium", "Meiryo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-body);
  background: var(--c-bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-hover); text-decoration: underline; }
h1, h2, h3 { color: var(--c-ink); line-height: 1.38; margin: 0 0 0.65em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; margin: 0 0 1em; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: rgba(255, 250, 243, 0.96);
  border-bottom: 1px solid rgba(231, 224, 214, 0.9);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.site-title {
  font-size: 1.1rem;
  margin: 0;
  color: var(--c-primary);
  font-weight: 800;
  letter-spacing: 0;
}
.site-header .tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--c-line);
  color: var(--c-primary);
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.site-header .tel::before { content: "TEL"; font-size: 0.72rem; color: var(--c-accent-deep); margin-right: 6px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 42px;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.12), transparent 28%),
    linear-gradient(135deg, #fff7e8 0%, #e7f6f2 100%);
}
.hero.has-photo {
  min-height: 560px;
  display: flex;
  align-items: center;
  background: #173f3b;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  z-index: 0;
  filter: var(--hero-photo-filter);
}
.hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 旧: 横方向 0.88 の濃いティール帯 + 黒ベタ 0.18 → palette warm の bottom-fade で写真主役 */
  background: var(--hero-overlay-warm);
}
.hero .container {
  position: relative;
  z-index: 2;
  max-width: 1080px;
}
.hero-title {
  max-width: 720px;
  font-size: var(--fs-hero);
  font-weight: 900;
  color: var(--c-primary);
  letter-spacing: 0;
  margin-bottom: 0.45em;
}
.hero.has-photo .hero-title,
.hero.has-photo .hero-sub { color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.22); }
.hero-sub {
  max-width: 680px;
  color: var(--c-body);
  font-weight: 600;
  margin-bottom: 1.35em;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--c-primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 16px;
  box-shadow: var(--shadow-sm);
}
.hero-tags {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.hero-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--c-primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  font-weight: 800;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  margin: 24px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
/* btn-primary: 山吹色グラデ + 白文字 はコントラスト 2.15〜3.19 で AA 未達。
   amber 単色 + ダーク文字 (9.74) に変更し、影もニュートラル化 */
.btn-primary {
  background: var(--c-accent);
  color: var(--c-accent-ink, #1c1917);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
}
.btn-primary:hover {
  color: var(--c-accent-ink, #1c1917);
  background: var(--c-accent-deep);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
}
.btn-secondary {
  background: #fff;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}
.btn-secondary:hover {
  background: var(--c-bg-band);
  color: var(--c-primary);
}
.btn-link {
  color: var(--c-primary);
  font-weight: 800;
  display: inline-block;
  padding: 8px 0;
}

section {
  padding: 58px 0;
  background: var(--c-bg);
}
section:nth-of-type(even) { background: var(--c-bg-muted); }
section h2 {
  font-size: var(--fs-h2);
  text-align: center;
  margin-bottom: 1.25em;
  position: relative;
  padding-bottom: 0.55em;
}
section h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 999px;
  margin: 0.55em auto 0;
}

.cta-panel {
  display: grid;
  gap: 22px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.97), rgba(17, 94, 89, 0.96));
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.cta-panel h2 { color: #fff; text-align: left; margin-bottom: 0.4em; padding-bottom: 0; }
.cta-panel h2::after { display: none; }
.cta-panel p { color: rgba(255, 255, 255, 0.86); margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px 16px 46px;
  color: var(--c-ink);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 19px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: inset 0 0 0 4px #fff;
}

.reason-grid, .voice-grid {
  display: grid;
  gap: 16px;
}
.reason-card, .voice-card, .profile-card, .menu-card, .menu-detail {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.reason-card {
  position: relative;
  padding: 24px 20px 22px;
  overflow: hidden;
}
.reason-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}
.reason-num {
  color: var(--c-accent-deep);
  font-weight: 900;
  font-size: 0.88rem;
  margin-bottom: 9px;
}
.reason-card p, .voice-card p { margin: 0; }
.lead-text {
  max-width: 780px;
  margin-inline: auto;
  color: var(--c-body);
  font-size: 1.02rem;
}
.compare-table {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.compare-table > div, .voice-card {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px;
}
.compare-table h3, .voice-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--c-primary);
}

.info-list {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 8px 18px;
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.info-list > div {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 8px 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--c-line);
}
.info-list > div:last-child { border-bottom: 0; }
.info-list dt {
  color: var(--c-muted);
  font-size: 0.88rem;
  font-weight: 800;
  padding-top: 2px;
}
.info-list dd { margin: 0; color: var(--c-ink); }
.info-list .hours-row { display: flex; justify-content: space-between; gap: 8px; }
.info-list .hours-row + .hours-row { margin-top: 4px; }
.info-list .hours-label { color: var(--c-muted); font-size: 0.9rem; min-width: 3em; }

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
  display: grid;
  gap: 16px;
}
.menu-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: center;
}
.menu-card img {
  width: 116px;
  height: 116px;
  object-fit: cover;
}
.menu-card .body { padding: 12px 14px 12px 0; }
.menu-card h3 { font-size: var(--fs-h3); margin: 0 0 4px; }
.menu-card .price {
  font-size: 0.95rem;
  color: var(--c-accent-deep);
  font-weight: 900;
  margin: 0 0 6px;
}
.menu-card .desc {
  font-size: 0.92rem;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.6;
}
.menu-card.no-image { grid-template-columns: 1fr; }
.menu-card.no-image .body { padding: 16px; }

.profile-card { padding: 22px; }
.profile-portrait {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 4px solid var(--c-bg-band);
}
.profile-card .name {
  text-align: center;
  font-weight: 900;
  font-size: 1.08rem;
  margin-bottom: 4px;
  color: var(--c-ink);
}
.profile-card .qualifications {
  text-align: center;
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 14px;
  list-style: none;
  padding: 0;
}
.profile-card .qualifications li {
  display: inline-block;
  padding: 3px 9px;
  background: var(--c-bg-band);
  color: var(--c-primary);
  border-radius: 999px;
  margin: 2px;
  font-weight: 800;
}
.profile-card .career { font-size: 0.94rem; color: var(--c-muted); margin-bottom: 1em; }
.profile-card .message { font-size: 0.96rem; color: var(--c-body); }

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.links-list a {
  display: block;
  padding: 15px 16px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-primary);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}
.links-list a:hover { background: var(--c-bg-band); text-decoration: none; }
.map-embed {
  aspect-ratio: 16 / 11;
  width: 100%;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.photos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.photos-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.flow-list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
}
.flow-list span {
  color: #fff;
  background: var(--c-primary);
  border-radius: 999px;
  font-weight: 900;
  min-width: 2.6em;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 15px 16px;
}
.faq-list summary { cursor: pointer; font-weight: 900; color: var(--c-ink); }
.faq-list p { margin: 10px 0 0; color: var(--c-body); }
.note-text { margin-top: 12px; font-size: 0.82rem; color: var(--c-muted); }
.center-link { text-align: center; margin-top: 20px; }

.notice-box {
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.55);
  border-left-width: 5px;
  border-radius: var(--radius);
  padding: 17px 18px;
  box-shadow: var(--shadow-sm);
}
.notice-box .label {
  color: var(--c-accent-deep);
  font-weight: 900;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.notice-box p { margin: 0; white-space: pre-wrap; }

.site-footer {
  background: #163734;
  color: #d6ebe7;
  padding: 34px 0 26px;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 0.5em; }
.site-footer .footer-meta { margin-bottom: 12px; }
.site-footer .tel { color: #fbbf24; font-weight: 900; }
.site-footer .copy { margin-top: 18px; font-size: 0.8rem; color: #9dc5bf; }

.menu-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
}
.menu-detail { overflow: hidden; }
.menu-detail img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.menu-detail .body { padding: 18px 20px; }
.menu-detail h3 { font-size: 1.18rem; margin: 0 0 6px; }
.menu-detail .meta { color: var(--c-accent-deep); font-weight: 900; margin-bottom: 10px; }
.menu-detail .desc { margin: 0; }
.back-home {
  display: inline-block;
  margin: 24px 0 8px;
  color: var(--c-muted);
  font-size: 0.9rem;
}
.back-home:hover { color: var(--c-primary); }

.section-reviews-cta { padding: 58px 0; background: var(--c-bg-muted); }
.reviews-cta {
  max-width: 620px;
  margin: 0 auto;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.reviews-cta h2 {
  font-size: 1.28rem;
  margin: 0 0 .6em;
  color: var(--c-ink);
}
.reviews-cta__message {
  color: var(--c-muted);
  margin: 0 0 1.4em;
  line-height: 1.75;
  font-size: 0.96rem;
}
.reviews-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: #fff !important;
  font-weight: 900;
  font-size: 0.96rem;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.reviews-cta__button:hover { background: var(--c-primary-hover); transform: translateY(-1px); }
.reviews-cta__thanks { margin: 1.2em 0 0; font-size: .85rem; color: var(--c-muted); }

/* fixed-cta — 旧版は dark 背景 + 白ピル「二重ボタン」構造で見づらかったため、
   背景透明の独立ピル群に変更。primary-ink で文字色を自動最適化。
   iOS Safari の下部 UI に隠れないよう safe-area-inset-bottom を加味 */
.fixed-cta {
  position: fixed; left: 12px; right: 12px; z-index: 9999;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-auto-flow: column; gap: 10px;
  padding: 0; background: transparent; border-radius: 0; box-shadow: none;
  pointer-events: none;
}
.fixed-cta a {
  pointer-events: auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 12px 14px;
  border-radius: 999px;
  background: var(--c-primary); color: var(--c-primary-ink, #fff);
  font-weight: 800; font-size: 0.92rem; text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(8px);
}
.fixed-cta a:hover { color: var(--c-primary-ink, #fff); text-decoration: none; }
/* 固定 CTA (56px) + 下マージン (12px) + iOS 下部 UI を確保 */
body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  gap: 8px;
  border-top: 1px solid var(--c-line);
  background: rgba(255, 250, 243, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 16px rgba(31, 41, 55, .12);
}
.floating-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 4px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 900;
}
.floating-cta__btn:hover { filter: brightness(1.06); text-decoration: none; }
.floating-cta--colored .floating-cta__btn--phone { background: var(--c-primary); color: #fff; }
.floating-cta--colored .floating-cta__btn--line { background: #06c755; color: #fff; }
.floating-cta--colored .floating-cta__btn--reservation { background: var(--c-accent); color: #fff; }
.floating-cta--simple .floating-cta__btn { background: var(--c-panel); color: var(--c-primary); border: 1px solid var(--c-line); }
.floating-cta--simple .floating-cta__btn--line { color: #06c755; }

@media (min-width: 720px) {
  .hero { padding: 78px 0 68px; }
  section { padding: 70px 0; }
  .hero-cta { flex-direction: row; max-width: none; }
  .btn { min-width: 210px; }
  .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reason-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .voice-grid, .compare-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-panel { grid-template-columns: 1fr auto; }
  .cta-actions { min-width: 270px; }
  .menu-card { grid-template-columns: 168px 1fr; }
  .menu-card img { width: 168px; height: 142px; }
  .photos-grid { grid-template-columns: repeat(3, 1fr); }
  .info-list > div { grid-template-columns: 128px 1fr; }
}

@media (min-width: 960px) {
  .hero.has-photo { min-height: 640px; }
  .fixed-cta { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 720px) {
  .site-header .container { min-height: 62px; }
  .site-header .tel { font-size: 0.88rem; padding-inline: 10px; }
  .hero.has-photo { min-height: 540px; }
  .hero.has-photo::before {
    /* SP も写真を主役に。bottom 側だけ警戒帯で文字読み取り可 */
    background: var(--hero-overlay-warm);
  }
  .hero-photo { object-position: 62% 50%; }
  .hero-cta { margin-inline: auto; }
  .hero-tags { justify-content: center; }
  .hero-title, .hero-sub { text-align: center; }
  .hero-kicker { margin-left: auto; margin-right: auto; }
  .menu-card { grid-template-columns: 1fr; }
  .menu-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .menu-card .body { padding: 16px; }
  .info-list > div { grid-template-columns: 1fr; gap: 2px; }
  .floating-cta { display: flex; }
  body { padding-bottom: 72px; }
}
