/* ==========================================================
   マウスピース矯正ナビ トップページ
   PC最大幅：960px
   スマホ対応
   ========================================================== */

:root {
  --blue: #2EA7E0;
  --blue-dark: #1476A6;
  --blue-soft: #EAF6FC;
  --black: #111111;
  --black-strong: #000000;
  --gray-text: #333333;
  --gray: #EAEEF1;
  --gray-light: #F6F8FA;
  --line: #D7DEE4;
  --white: #FFFFFF;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    Meiryo,
    sans-serif;
  line-height: 1.8;
  background: var(--gray-light);
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

button {
  font: inherit;
}

.layout {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

/* ==========================================================
   Header
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 86px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  flex: 0 0 auto;
}

.site-logo__mark {
  display: grid;
  place-items: center;
  color: var(--blue);
}

.site-logo__name {
  display: block;
  color: var(--blue);
  font-weight: 800;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.site-logo__sub {
  display: block;
  color: var(--black);
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.4;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-nav a {
  position: relative;
  display: block;
  padding: 16px 12px 14px;
  color: var(--black);
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.3;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

/* ==========================================================
   Hero
   ========================================================== */

.hero {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.88) 46%, rgba(255,255,255,0.1) 100%),
    var(--gray-light);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, 0.94fr);
  align-items: center;
  gap: 28px;
  min-height: 500px;
  padding: 42px 0;
}

.eyebrow,
.section-heading__label,
.treatment-card__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-heading__label::before,
.treatment-card__label::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.hero h1 {
  margin: 0;
  color: var(--black-strong);
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.hero h1 span {
  color: var(--blue);
}

.hero__lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--black);
  font-weight: 600;
  font-size: 1.08rem;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.hero-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--black);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hero-btn:hover,
.hero-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.hero-btn--primary {
  background: linear-gradient(180deg, #35B5F0 0%, var(--blue) 100%);
  color: var(--white);
  border-color: var(--blue);
}

.icon-box {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 900;
}

.hero-btn--primary .icon-box {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  border-radius: 0 0 0 56px;
}

.hero__visual > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 0 0 0 56px;
  box-shadow: var(--shadow);
}

.hero__photo-card {
  position: absolute;
  left: -38px;
  bottom: 28px;
  width: 260px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero__photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

/* ==========================================================
   Common sections
   ========================================================== */

.section {
  padding: 42px 0;
}

.section--menu {
  padding-top: 34px;
}

.section--flat {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px;
  padding: 11px 18px 12px 16px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--gray) 0%, var(--white) 100%);
  color: var(--black-strong);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.section-heading h2::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 1.45em;
  border-radius: 999px;
  background: var(--blue);
}

.section-heading p {
  margin: 0;
  color: var(--black);
  font-weight: 600;
}

.section-heading--compact {
  margin-bottom: 18px;
}

.section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading--mini h2 {
  font-size: 1.45rem;
}

/* ==========================================================
   Search menu
   ========================================================== */

.search-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.menu-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.menu-card:hover,
.menu-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.menu-card--emphasis {
  border-color: rgba(46, 167, 224, 0.55);
  background: linear-gradient(180deg, #FFFFFF 0%, #F0FAFE 100%);
}

.menu-card__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--blue-soft);
  color: var(--blue);
}

.menu-card__icon svg {
  width: 36px;
  height: 36px;
}

.menu-card__title {
  color: var(--black-strong);
  font-weight: 900;
  font-size: 1.1rem;
}

.menu-card__text {
  color: var(--gray-text);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ==========================================================
   Treatment cards
   ========================================================== */

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.treatment-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(180px, 0.95fr);
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.treatment-card__body {
  padding: 26px 22px;
}

.treatment-card__label {
  margin-bottom: 6px;
}

.treatment-card h3 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 1.5rem;
  line-height: 1.35;
}

.treatment-card--green h3 {
  color: #008777;
}

.treatment-card p {
  color: var(--black);
  font-weight: 600;
}

.treatment-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 20px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
  line-height: 1.35;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  background: var(--blue-dark);
  box-shadow: 0 8px 18px rgba(46, 167, 224, 0.22);
}

.btn--outline {
  margin-top: 10px;
  background: var(--white);
  color: var(--blue-dark);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--blue-soft);
}

.btn--small {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
}

.note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--gray-text);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================
   Prefecture
   ========================================================== */

.prefecture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pref-block {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.pref-block h3 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--black-strong);
  font-size: 1.12rem;
}

.pref-block h3::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(46, 167, 224, 0.13);
}

.pref-block ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pref-block a:not(.small-link) {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FBFCFD;
  color: var(--black);
  font-weight: 800;
}

.pref-block b {
  color: var(--blue-dark);
}

.small-link,
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--blue-dark);
  font-weight: 900;
}

.small-link::after,
.section-link::after {
  content: "›";
}

/* ==========================================================
   Area / station links
   ========================================================== */

.link-chips,
.station-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-chips a,
.station-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--black);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.link-chips a:hover,
.station-list a:hover,
.link-chips a:focus-visible,
.station-list a:focus-visible {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.link-chips b,
.station-list b {
  color: var(--blue-dark);
}

/* ==========================================================
   Clinic cards
   ========================================================== */

.clinic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.clinic-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
  font-size: 0.72rem;
  line-height: 1;
}

.clinic-card__area {
  display: inline-flex;
  margin: 0 0 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 0.82rem;
}

.clinic-card h3 {
  min-height: 3.2em;
  margin: 0 0 14px;
  color: var(--black-strong);
  font-size: 1.08rem;
  line-height: 1.55;
}

.price-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.price-box p {
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  background: #F7F9FB;
}

.price-box span {
  display: block;
  color: var(--gray-text);
  font-weight: 800;
  font-size: 0.78rem;
}

.price-box b {
  display: block;
  color: var(--black-strong);
  font-size: 1.18rem;
}

.clinic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.clinic-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gray-text);
  font-weight: 800;
  font-size: 0.75rem;
}

/* ==========================================================
   Info
   ========================================================== */

.section--info {
  background:
    linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.94) 65%, rgba(234,246,252,.88) 100%);
}

.info-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 260px;
  gap: 16px;
}

.info-card,
.info-image {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.info-card p {
  margin: 0 0 14px;
  color: var(--black);
  font-weight: 600;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--black);
  font-weight: 800;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.8rem;
}

.caution {
  padding: 14px;
  border-radius: 12px;
  background: var(--gray-light);
  color: var(--gray-text) !important;
  font-size: 0.9rem;
}

.info-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  background: var(--blue-soft);
}

.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================
   Knowledge
   ========================================================== */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.article-grid a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 16px 44px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--black);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.article-grid a::after {
  content: "›";
  position: absolute;
  right: 18px;
  color: var(--blue-dark);
  font-size: 1.4rem;
}

.article-grid a:hover,
.article-grid a:focus-visible {
  border-color: var(--blue);
  background: var(--blue-soft);
}

/* ==========================================================
   FAQ
   ========================================================== */

.faq-section {
  padding-bottom: 56px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  padding: 18px 56px 18px 52px;
  color: var(--black-strong);
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before {
  content: "Q";
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 900;
  line-height: 1;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 16px;
  color: var(--blue-dark);
  font-size: 1.4rem;
  font-weight: 900;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 22px 20px 52px;
  color: var(--gray-text);
  font-weight: 600;
}

/* ==========================================================
   Footer
   ========================================================== */

.site-footer {
  background: #000000;
  color: #ffffff;
  padding: 44px 0 24px;
}

.footer-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
}

.site-logo--footer {
  color: #ffffff;
}

.site-logo--footer .site-logo__name,
.site-logo--footer .site-logo__sub {
  color: #ffffff;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-nav h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1rem;
}

.footer-nav ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a,
.footer-nav p {
  color: #dddddd;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-contact {
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  margin-top: 10px;
  padding: 8px 16px;
  border: 1px solid #555555;
  border-radius: 999px;
  color: #ffffff !important;
  font-weight: 800;
}

.copyright {
  width: min(100% - 32px, var(--max-width));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid #222222;
  color: #bbbbbb;
  text-align: center;
  font-size: 0.82rem;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 900px) {
  html {
    font-size: 17px;
  }

  .site-header__inner {
    min-height: 72px;
  }

  .nav-toggle {
    display: inline-grid;
    grid-template-columns: 22px auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--black);
    font-weight: 900;
    cursor: pointer;
  }

  .nav-toggle span {
    grid-column: 1;
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: var(--black);
  }

  .nav-toggle b {
    grid-column: 2;
    grid-row: 1 / span 3;
    font-size: 0.72rem;
  }

  .global-nav {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .global-nav.is-open {
    display: block;
  }

  .global-nav ul {
    display: grid;
    gap: 4px;
  }

  .global-nav a {
    padding: 14px;
    border-radius: 12px;
  }

  .global-nav a:hover,
  .global-nav a:focus-visible {
    background: var(--blue-soft);
  }

  .global-nav a::after {
    display: none;
  }

  .hero__inner {
    display: block;
    min-height: auto;
    padding: 30px 0 0;
  }

  .hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: 24px;
  }

  .hero__visual {
    margin-inline: calc((100vw - 100%) / -2);
    min-height: auto;
    border-radius: 0;
  }

  .hero__visual > img {
    min-height: auto;
    max-height: 360px;
    border-radius: 28px 28px 0 0;
  }

  .hero__photo-card {
    left: 20px;
    bottom: 18px;
    width: 180px;
  }

  .search-menu,
  .clinic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prefecture-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-image {
    grid-column: 1 / -1;
    max-height: 300px;
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .layout {
    width: min(100% - 24px, var(--max-width));
  }

  html {
    font-size: 16.5px;
  }

  body {
    line-height: 1.75;
  }

  .site-logo__name {
    font-size: 1.02rem;
  }

  .site-logo__sub {
    font-size: 0.64rem;
  }

  .site-logo__mark svg {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero__lead {
    font-size: 1.02rem;
  }

  .hero-actions,
  .search-menu,
  .treatment-grid,
  .prefecture-grid,
  .clinic-grid,
  .info-layout,
  .article-grid,
  .footer-nav {
    grid-template-columns: 1fr;
  }

  .hero-btn {
    min-height: 64px;
  }

  .hero-btn--primary {
    order: -1;
    min-height: 74px;
    font-size: 1.06rem;
  }

  .menu-card {
    min-height: auto;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
  }

  .menu-card__text {
    grid-column: 2;
  }

  .treatment-card {
    grid-template-columns: 1fr;
  }

  .treatment-card img {
    height: 220px;
  }

  .section {
    padding: 34px 0;
  }

  .section-heading--row {
    display: block;
  }

  .section-heading h2 {
    width: 100%;
    font-size: 1.46rem;
  }

  .clinic-card h3 {
    min-height: auto;
  }

  .price-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-chips a,
  .station-list a {
    width: 100%;
    justify-content: space-between;
  }

  .faq-list summary {
    padding: 18px 48px 18px 48px;
  }

  .faq-list p {
    padding-left: 48px;
  }
}

@media (max-width: 390px) {
  .price-box {
    grid-template-columns: 1fr;
  }

  .hero__photo-card {
    display: none;
  }
}


/* 47都道府県表示用の微調整 */
.prefecture-grid {
  align-items: start;
}

.pref-block ul {
  gap: 7px;
}

.pref-block a:not(.small-link) {
  min-height: 42px;
}

@media (max-width: 900px) {
  .prefecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .prefecture-grid {
    grid-template-columns: 1fr;
  }

  .pref-block {
    padding: 18px;
  }

  .pref-block a:not(.small-link) {
    min-height: 46px;
  }
}


/* ==========================================================
   ファーストビュー内に検索導線を集約
   ========================================================== */

.hero-search-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.hero-search-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--black);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hero-search-card:hover,
.hero-search-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.hero-search-card--primary {
  background: linear-gradient(180deg, #35B5F0 0%, var(--blue) 100%);
  border-color: var(--blue);
  color: var(--white);
}

.hero-search-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.hero-search-card__icon svg {
  width: 34px;
  height: 34px;
}

.hero-search-card--primary .hero-search-card__icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.hero-search-card__body {
  display: grid;
  gap: 4px;
}

.hero-search-card__title {
  color: inherit;
  font-weight: 900;
  font-size: 1.03rem;
  line-height: 1.35;
}

.hero-search-card__text {
  color: var(--gray-text);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.55;
}

.hero-search-card--primary .hero-search-card__text {
  color: rgba(255, 255, 255, 0.92);
}

/* 削除した検索メニュー・治療タイプセクションの代わりに、地域セクションとの余白を調整 */
#prefecture {
  padding-top: 48px;
}

@media (max-width: 640px) {
  .hero-search-menu {
    grid-template-columns: 1fr;
  }

  .hero-search-card {
    min-height: 82px;
  }

  .hero-search-card--primary {
    order: -1;
    min-height: 94px;
    font-size: 1.04rem;
  }
}


/* ==========================================================
   下層ページ共通テンプレート
   ========================================================== */
.subpage-main { padding: 0 0 56px; }
.subpage-hero { padding: 28px 0 34px; background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 58%, rgba(234,246,252,.86) 100%), var(--gray-light); border-bottom: 1px solid var(--line); }
.breadcrumb { margin: 0 0 18px; overflow-x: auto; }
.breadcrumb ol { display: flex; flex-wrap: nowrap; gap: 8px; min-width: max-content; margin: 0; padding: 0; list-style: none; color: var(--gray-text); font-weight: 700; font-size: .84rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "›"; color: var(--blue-dark); font-weight: 900; }
.breadcrumb a { color: var(--blue-dark); }
.subpage-hero__box { position: relative; padding: clamp(24px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-soft); }
.subpage-hero__box::before { content:""; position:absolute; inset:0 auto 0 0; width:8px; border-radius: var(--radius-xl) 0 0 var(--radius-xl); background: var(--blue); }
.subpage-hero__label { display:inline-flex; align-items:center; gap:9px; margin:0 0 10px; color: var(--blue-dark); font-weight:900; font-size:.84rem; letter-spacing:.12em; text-transform:uppercase; }
.subpage-hero__label::before { content:""; width:22px; height:3px; border-radius:999px; background:var(--blue); }
.subpage-hero h1 { margin:0; color:#000; font-size:clamp(1.9rem,4.2vw,2.7rem); line-height:1.32; letter-spacing:.02em; }
.subpage-hero__lead { max-width:760px; margin:16px 0 0; color:#111; font-weight:700; font-size:1.05rem; }
.subpage-layout { display:grid; gap:34px; padding-top:38px; }
.page-section { margin:0; }
.content-card, .sub-card, .notice-box, .clinic-row { border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-soft); }
.content-card { padding:clamp(22px,4vw,32px); }
.content-card h3, .sub-card h3, .clinic-row h3 { margin:0 0 10px; color:#000; font-size:1.28rem; line-height:1.45; }
.content-card p, .sub-card p, .notice-box p, .clinic-row p { margin:0; color:#111; font-weight:600; }
.sub-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.sub-card { padding:22px; }
.notice-box { padding:20px 22px; background:#f7f9fb; }
.notice-box p { position:relative; padding-left:28px; }
.notice-box p::before { content:"!"; position:absolute; left:0; top:.18em; display:grid; place-items:center; width:20px; height:20px; border-radius:999px; background:var(--blue); color:#fff; font-weight:900; font-size:.8rem; }
.sub-filter-bar { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.sub-filter-bar a { display:inline-flex; align-items:center; min-height:44px; padding:8px 14px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#111; font-weight:900; }
.sub-filter-bar a.is-active { border-color:var(--blue); background:var(--blue); color:#fff; }
.clinic-list-sub { display:grid; gap:14px; }
.clinic-row { display:grid; grid-template-columns:minmax(0,1fr) 260px 150px; align-items:center; gap:18px; padding:20px; }
.clinic-row__price { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.clinic-row__price p { padding:10px; border-radius:12px; background:var(--gray-light); }
.clinic-row__price span { display:block; color:var(--gray-text); font-weight:800; font-size:.78rem; }
.clinic-row__price b { display:block; color:#000; font-size:1.08rem; }
.article-layout { max-width:820px; padding-top:38px; }
.article-body { display:grid; gap:30px; }
.article-body .page-section { padding:clamp(22px,4vw,34px); border:1px solid var(--line); border-radius:var(--radius-lg); background:#fff; box-shadow:var(--shadow-soft); }
.article-body h2 { display:flex; align-items:center; gap:12px; width:fit-content; max-width:100%; margin:0 0 16px; padding:10px 16px 10px 14px; border-radius:14px; background:linear-gradient(90deg,var(--gray) 0%,var(--white) 100%); color:#000; font-size:clamp(1.35rem,3vw,1.8rem); line-height:1.4; }
.article-body h2::before { content:""; flex:0 0 auto; width:6px; height:1.4em; border-radius:999px; background:var(--blue); }
.article-body p { margin:0 0 1.2em; color:#111; font-weight:600; }
.article-body p:last-child { margin-bottom:0; }
@media (max-width:900px) { .sub-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .clinic-row { grid-template-columns:1fr; } .clinic-row__price { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .subpage-hero { padding-top:20px; } .subpage-hero__box { padding:22px 20px 24px; } .subpage-hero h1 { font-size:1.75rem; } .sub-card-grid, .clinic-row__price { grid-template-columns:1fr; } .sub-filter-bar a { width:100%; justify-content:center; } .article-body h2 { width:100%; } }


/* ==========================================================
   表側ページ追加分
   ========================================================== */

.subpage-main { padding: 0 0 56px; }
.subpage-hero {
  padding: 28px 0 34px;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 58%, rgba(234,246,252,.86) 100%), var(--gray-light);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { margin: 0 0 18px; overflow-x: auto; }
.breadcrumb ol {
  display: flex; flex-wrap: nowrap; gap: 8px; min-width: max-content;
  margin: 0; padding: 0; list-style: none; color: var(--gray-text);
  font-weight: 700; font-size: .84rem;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "›"; color: var(--blue-dark); font-weight: 900; }
.breadcrumb a { color: var(--blue-dark); }
.subpage-hero__box {
  position: relative; padding: clamp(24px,4vw,38px); border: 1px solid var(--line);
  border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-soft);
}
.subpage-hero__box::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 8px;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl); background: var(--blue);
}
.subpage-hero__label {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 10px;
  color: var(--blue-dark); font-weight: 900; font-size: .84rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.subpage-hero__label::before { content: ""; width: 22px; height: 3px; border-radius: 999px; background: var(--blue); }
.subpage-hero h1 {
  margin: 0; color: #000; font-size: clamp(1.9rem,4.2vw,2.7rem);
  line-height: 1.32; letter-spacing: .02em;
}
.subpage-hero__lead {
  max-width: 760px; margin: 16px 0 0; color: #111; font-weight: 700; font-size: 1.05rem;
}
.subpage-layout { display: grid; gap: 34px; min-height: 240px; padding-top: 38px; }
.page-section { margin: 0; }
.content-card, .notice-box, .clinic-row, .pref-city-block, .side-card, .contact-form, .confirm-list {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft);
}
.content-card, .notice-box, .side-card, .contact-form, .confirm-list { padding: clamp(20px,4vw,28px); }
.notice-box { background: #f7f9fb; }
.notice-box p { margin: 0; color: #111; font-weight: 700; }
.pref-index-region { display: grid; gap: 16px; }
.pref-city-block { padding: 22px; }
.pref-city-block h3 {
  margin: 0 0 12px; color: #000; font-size: 1.38rem; line-height: 1.4;
}
.pref-city-block h3 a { color: #000; }
.pref-city-block h3 span {
  display: inline-flex; margin-left: 8px; padding: 3px 9px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark); font-size: .82rem;
}
.waku2 {
  display: flex; flex-wrap: wrap; gap: 9px 10px; line-height: 1.7;
}
.waku2 a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 5px 11px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: #111; font-weight: 800; font-size: .95rem;
}
.waku2 a:hover, .waku2 a:focus-visible { border-color: var(--blue); background: var(--blue-soft); }
.empty-text { color: #555; font-weight: 700; }
.sub-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.sub-filter-bar a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: #111; font-weight: 900;
}
.sub-filter-bar a.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.clinic-list-sub { display: grid; gap: 14px; }
.clinic-row {
  display: grid; grid-template-columns: minmax(0,1fr) 260px 150px;
  align-items: center; gap: 18px; padding: 20px;
}
.clinic-row h3 { margin: 4px 0 8px; color: #000; font-size: 1.2rem; line-height: 1.45; }
.clinic-row h3 a { color: #000; }
.clinic-row p { margin: 0; color: #111; font-weight: 600; }
.clinic-row__distance { margin-top: 6px !important; color: var(--blue-dark) !important; font-weight: 900 !important; }
.clinic-row__price { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.clinic-row__price p { padding: 10px; border-radius: 12px; background: var(--gray-light); }
.clinic-row__price span { display: block; color: var(--gray-text); font-weight: 800; font-size: .78rem; }
.clinic-row__price b { display: block; color: #000; font-size: 1.08rem; }
.map-toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-soft); margin-bottom: 16px;
}
.map-toolbar p { margin: 0; font-weight: 700; color: #333; }
.nearby-map, .clinic-map {
  width: 100%; min-height: 520px; border: 1px solid var(--line);
  border-radius: var(--radius-xl); overflow: hidden; background: #eaf6fc; box-shadow: var(--shadow-soft);
}
.clinic-map { min-height: 380px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 22px; align-items: start; }
.detail-main { display: grid; gap: 28px; }
.detail-image {
  overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-soft);
}
.detail-image img { width: 100%; max-height: 420px; object-fit: cover; }
.price-detail-table {
  width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
}
.price-detail-table th, .price-detail-table td {
  padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left;
}
.price-detail-table th { width: 42%; background: #f7f9fb; color: #111; }
.price-detail-table td { color: #000; font-weight: 900; }
.price-detail-table tr:last-child th, .price-detail-table tr:last-child td { border-bottom: none; }
.price-total th, .price-total td { background: var(--blue-soft) !important; }
.tax-note { margin: 12px 0 0; font-weight: 800; color: #333; }
.detail-dl {
  display: grid; grid-template-columns: 170px minmax(0,1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff;
}
.detail-dl dt, .detail-dl dd { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.detail-dl dt { background: #f7f9fb; font-weight: 900; }
.detail-dl dd { font-weight: 700; }
.side-card { position: sticky; top: 104px; }
.side-card h2 { margin: 0 0 10px; color: #000; font-size: 1.25rem; }
.side-card p { margin: 0 0 16px; font-weight: 700; }
.form-row { display: grid; gap: 8px; margin-bottom: 18px; }
.form-row label { color: #000; font-weight: 900; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: #111; font: inherit;
}
.form-row textarea { resize: vertical; }
.math-row p { margin: 0; color: #555; font-weight: 700; font-size: .9rem; }
.contact-submit:disabled { opacity: .45; cursor: not-allowed; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.confirm-list { display: grid; grid-template-columns: 190px minmax(0,1fr); padding: 0; overflow: hidden; }
.confirm-list dt, .confirm-list dd { margin: 0; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.confirm-list dt { background: #f7f9fb; font-weight: 900; }
.confirm-list dd { font-weight: 700; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 900px) {
  .clinic-row, .detail-layout { grid-template-columns: 1fr; }
  .clinic-row__price { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .side-card { position: static; }
}
@media (max-width: 640px) {
  .subpage-hero { padding-top: 20px; }
  .subpage-hero__box { padding: 22px 20px 24px; }
  .subpage-hero h1 { font-size: 1.75rem; }
  .sub-filter-bar a { width: 100%; justify-content: center; }
  .clinic-row__price, .detail-dl, .confirm-list { grid-template-columns: 1fr; }
  .price-detail-table th, .price-detail-table td { display: block; width: 100%; }
  .nearby-map { min-height: 430px; }
  .waku2 a { width: 100%; justify-content: space-between; }
}


/* ==========================================================
   表側ページ修正版追加分
   ========================================================== */

.subpage-main { padding: 0 0 56px; }
.subpage-hero {
  padding: 28px 0 34px;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 58%, rgba(234,246,252,.86) 100%), var(--gray-light);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { margin: 0 0 18px; overflow-x: auto; }
.breadcrumb ol {
  display: flex; flex-wrap: nowrap; gap: 8px; min-width: max-content;
  margin: 0; padding: 0; list-style: none; color: var(--gray-text);
  font-weight: 700; font-size: .84rem;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "›"; color: var(--blue-dark); font-weight: 900; }
.breadcrumb a { color: var(--blue-dark); }
.subpage-hero__box {
  position: relative; padding: clamp(24px,4vw,38px); border: 1px solid var(--line);
  border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-soft);
}
.subpage-hero__box::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 8px;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl); background: var(--blue);
}
.subpage-hero__label {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 10px;
  color: var(--blue-dark); font-weight: 900; font-size: .84rem;
  letter-spacing: .12em; text-transform: uppercase;
}
.subpage-hero__label::before { content: ""; width: 22px; height: 3px; border-radius: 999px; background: var(--blue); }
.subpage-hero h1 {
  margin: 0; color: #000; font-size: clamp(1.9rem,4.2vw,2.7rem);
  line-height: 1.32; letter-spacing: .02em;
}
.subpage-hero__lead {
  max-width: 760px; margin: 16px 0 0; color: #111; font-weight: 700; font-size: 1.05rem;
}
.subpage-layout { display: grid; gap: 34px; min-height: 240px; padding-top: 38px; }
.page-section { margin: 0; }
.content-card, .notice-box, .clinic-row, .pref-city-block, .side-card, .contact-form, .confirm-list {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft);
}
.content-card, .notice-box, .side-card, .contact-form, .confirm-list { padding: clamp(20px,4vw,28px); }
.notice-box { background: #f7f9fb; }
.notice-box p { margin: 0; color: #111; font-weight: 700; }
.pref-index-region { display: grid; gap: 16px; }
.pref-city-block { padding: 22px; }
.pref-city-block h3 {
  margin: 0 0 12px; color: #000; font-size: 1.38rem; line-height: 1.4;
}
.pref-city-block h3 a { color: #000; }
.pref-city-block h3 span {
  display: inline-flex; margin-left: 8px; padding: 3px 9px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark); font-size: .82rem;
}
.waku2 {
  display: flex; flex-wrap: wrap; gap: 9px 10px; line-height: 1.7;
}
.waku2 a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 5px 11px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: #111; font-weight: 800; font-size: .95rem;
}
.waku2 a:hover, .waku2 a:focus-visible { border-color: var(--blue); background: var(--blue-soft); }
.empty-text { color: #555; font-weight: 700; }
.sub-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.sub-filter-bar a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: #111; font-weight: 900;
}
.sub-filter-bar a.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.clinic-list-sub { display: grid; gap: 14px; }
.clinic-row {
  display: grid; grid-template-columns: minmax(0,1fr) 260px 150px;
  align-items: center; gap: 18px; padding: 20px;
}
.clinic-row h3 { margin: 4px 0 8px; color: #000; font-size: 1.2rem; line-height: 1.45; }
.clinic-row h3 a { color: #000; }
.clinic-row p { margin: 0; color: #111; font-weight: 600; }
.clinic-row__distance { margin-top: 6px !important; color: var(--blue-dark) !important; font-weight: 900 !important; }
.clinic-row__price { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.clinic-row__price p { padding: 10px; border-radius: 12px; background: var(--gray-light); }
.clinic-row__price span { display: block; color: var(--gray-text); font-weight: 800; font-size: .78rem; }
.clinic-row__price b { display: block; color: #000; font-size: 1.08rem; }
.map-toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-soft); margin-bottom: 16px;
}
.map-toolbar p { margin: 0; font-weight: 700; color: #333; }
.nearby-map, .clinic-map {
  width: 100%; min-height: 520px; border: 1px solid var(--line);
  border-radius: var(--radius-xl); overflow: hidden; background: #eaf6fc; box-shadow: var(--shadow-soft);
}
.clinic-map { min-height: 380px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 22px; align-items: start; }
.detail-main { display: grid; gap: 28px; }
.detail-image {
  overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow-soft);
}
.detail-image img { width: 100%; max-height: 420px; object-fit: cover; }
.price-detail-table {
  width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
}
.price-detail-table th, .price-detail-table td {
  padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left;
}
.price-detail-table th { width: 42%; background: #f7f9fb; color: #111; }
.price-detail-table td { color: #000; font-weight: 900; }
.price-detail-table tr:last-child th, .price-detail-table tr:last-child td { border-bottom: none; }
.price-total th, .price-total td { background: var(--blue-soft) !important; }
.tax-note { margin: 12px 0 0; font-weight: 800; color: #333; }
.detail-dl {
  display: grid; grid-template-columns: 170px minmax(0,1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff;
}
.detail-dl dt, .detail-dl dd { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.detail-dl dt { background: #f7f9fb; font-weight: 900; }
.detail-dl dd { font-weight: 700; }
.side-card { position: sticky; top: 104px; }
.side-card h2 { margin: 0 0 10px; color: #000; font-size: 1.25rem; }
.side-card p { margin: 0 0 16px; font-weight: 700; }
.form-row { display: grid; gap: 8px; margin-bottom: 18px; }
.form-row label { color: #000; font-weight: 900; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: #111; font: inherit;
}
.form-row textarea { resize: vertical; }
.math-row p { margin: 0; color: #555; font-weight: 700; font-size: .9rem; }
.contact-submit:disabled { opacity: .45; cursor: not-allowed; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.confirm-list { display: grid; grid-template-columns: 190px minmax(0,1fr); padding: 0; overflow: hidden; }
.confirm-list dt, .confirm-list dd { margin: 0; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.confirm-list dt { background: #f7f9fb; font-weight: 900; }
.confirm-list dd { font-weight: 700; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 900px) {
  .clinic-row, .detail-layout { grid-template-columns: 1fr; }
  .clinic-row__price { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .side-card { position: static; }
}
@media (max-width: 640px) {
  .subpage-hero { padding-top: 20px; }
  .subpage-hero__box { padding: 22px 20px 24px; }
  .subpage-hero h1 { font-size: 1.75rem; }
  .sub-filter-bar a { width: 100%; justify-content: center; }
  .clinic-row__price, .detail-dl, .confirm-list { grid-template-columns: 1fr; }
  .price-detail-table th, .price-detail-table td { display: block; width: 100%; }
  .nearby-map { min-height: 430px; }
  .waku2 a { width: 100%; justify-content: space-between; }
}


/* ==========================================================
   Leaflet + OpenStreetMap 地図・コンテンツ強化
   ========================================================== */

.map-page-section,
.page-section {
  position: relative;
}

.map-search-panel,
.list-map-card,
.content-body,
.detail-dl,
.price-detail-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.map-search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  margin-bottom: 14px;
}

.map-search-panel__text h3,
.list-map-card__head h3 {
  margin: 0 0 4px;
  color: #000000;
  font-size: 1.18rem;
  line-height: 1.45;
}

.map-search-panel__text p,
.list-map-card__head p,
.map-status,
.map-caption {
  margin: 0;
  color: #333333;
  font-weight: 700;
  font-size: 0.92rem;
}

.map-status {
  margin: 0 0 10px;
}

.nearby-map,
.list-map,
.clinic-map {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #eaf6fc;
  box-shadow: var(--shadow-soft);
}

.list-map {
  min-height: 420px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border-inline: none;
  border-bottom: none;
}

.clinic-map {
  min-height: 400px;
}

.list-map-card {
  overflow: hidden;
  margin: 0 0 22px;
}

.list-map-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #ffffff 0%, #f2f9fd 100%);
}

.leaflet-container {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    Meiryo,
    sans-serif;
  font-size: 15px;
}

.map-popup {
  display: grid;
  gap: 5px;
  min-width: 190px;
  line-height: 1.55;
}

.map-popup strong {
  color: #000000;
  font-size: 1rem;
}

.map-popup span {
  color: #333333;
}

.map-popup a {
  display: inline-flex;
  justify-content: center;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff !important;
  font-weight: 900;
  text-decoration: none;
}

.map-error {
  display: grid;
  place-items: center;
  min-height: inherit;
  padding: 24px;
  color: #333333;
  font-weight: 900;
  text-align: center;
}

.nearby-map.is-error,
.list-map.is-empty {
  background:
    linear-gradient(135deg, rgba(46,167,224,.08), rgba(255,255,255,.9)),
    #f6f8fa;
}

/* コンテンツ本文の読みやすさ */
.content-body {
  padding: clamp(22px, 4vw, 34px);
  color: #111111;
}

.content-body h2,
.content-body h3,
.content-body h4 {
  color: #000000;
  line-height: 1.45;
}

.content-body h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.content-body h3 {
  margin: 28px 0 12px;
  font-size: 1.28rem;
}

.content-body p {
  margin: 0 0 1.2em;
  font-weight: 600;
  line-height: 1.95;
}

.content-body ul,
.content-body ol {
  display: grid;
  gap: 8px;
  margin: 0 0 1.4em;
  padding-left: 1.4em;
  font-weight: 600;
  line-height: 1.85;
}

.content-body table {
  width: 100%;
  margin: 18px 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.content-body th,
.content-body td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.content-body th {
  background: #f6f8fa;
  color: #000000;
  font-weight: 900;
}

.content-body tr:last-child th,
.content-body tr:last-child td {
  border-bottom: none;
}

.page-section > .section-heading {
  margin-bottom: 20px;
}

.clinic-row {
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.clinic-row:hover {
  border-color: rgba(46, 167, 224, .55);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.clinic-row__main h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.price-detail-table {
  overflow: hidden;
}

.price-detail-table th {
  vertical-align: top;
}

.detail-dl {
  overflow: hidden;
}

.notice-box {
  line-height: 1.85;
}

@media (max-width: 900px) {
  .map-search-panel,
  .list-map-card__head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nearby-map,
  .list-map,
  .clinic-map {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .nearby-map,
  .list-map,
  .clinic-map {
    min-height: 360px;
    border-radius: var(--radius-lg);
  }

  .map-search-panel {
    padding: 16px;
  }

  .map-search-panel .btn {
    width: 100%;
  }

  .list-map-card__head {
    padding: 16px;
  }

  .content-body {
    padding: 20px;
  }

  .content-body p {
    line-height: 1.85;
  }
}


/* ==========================================================
   cgroupランキング・詳細ページ調整
   ========================================================== */

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-list--compact {
  max-width: 860px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: #111111;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ranking-item:hover,
.ranking-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(46, 167, 224, .55);
  box-shadow: var(--shadow);
}

.ranking-item__rank {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
  font-size: 1.12rem;
}

.ranking-item__body {
  display: grid;
  gap: 3px;
}

.ranking-item__title {
  color: #000000;
  font-weight: 900;
  font-size: 1.08rem;
  line-height: 1.45;
}

.ranking-item__text {
  color: #333333;
  font-weight: 800;
  font-size: .94rem;
}

.ranking-item__text b {
  color: var(--blue-dark);
  font-size: 1.04rem;
}

.clinic-row__msg {
  margin-top: 8px !important;
  color: #333333 !important;
  font-weight: 700 !important;
  line-height: 1.75 !important;
}

.detail-top {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.detail-image--fixed {
  width: 300px;
  height: 270px;
  max-width: 100%;
}

.detail-image--fixed img {
  width: 300px;
  height: 270px;
  object-fit: cover;
}

.detail-summary-card {
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-summary-card h2 {
  margin: 0 0 10px;
  color: #000000;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.45;
}

.detail-summary-card p {
  margin: 0;
  color: #111111;
  font-weight: 700;
  line-height: 1.8;
}

.detail-summary-card__msg {
  margin-top: 12px !important;
  color: #333333 !important;
}

.nearest-station-list {
  display: grid;
  gap: 10px;
}

.nearest-station-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: #111111;
  font-weight: 900;
}

.nearest-station-list a:hover,
.nearest-station-list a:focus-visible {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.nearest-station-list b {
  color: var(--blue-dark);
  white-space: nowrap;
}

.map-official-button {
  margin-top: 18px;
}

.detail-dl a {
  color: var(--blue-dark);
  font-weight: 900;
  word-break: break-all;
}

@media (max-width: 720px) {
  .detail-top {
    grid-template-columns: 1fr;
  }

  .detail-image--fixed,
  .detail-image--fixed img {
    width: 100%;
    height: auto;
    max-height: 270px;
  }

  .ranking-item {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 14px;
  }

  .ranking-item__rank {
    width: 42px;
    height: 42px;
  }

  .nearest-station-list a {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ==========================================================
   最終修正：共通店舗カード・詳細1カラム・リンク色
   ========================================================== */

.clinic-row__msg {
  margin-top: 8px !important;
  color: #333333 !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}

.clinic-row__group {
  margin-top: 8px !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
}

.clinic-row__group a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-layout {
  display: block !important;
}

.detail-main--one {
  display: grid;
  gap: 28px;
}

.detail-top {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.detail-image--fixed {
  width: 300px !important;
  height: 270px !important;
  max-width: 300px !important;
  overflow: hidden;
}

.detail-image--fixed img {
  width: 300px !important;
  height: 270px !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
}

.detail-summary-card {
  padding: clamp(20px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.detail-summary-card h2 {
  margin: 0 0 10px;
  color: #000000;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.45;
}

.detail-summary-card p {
  margin: 0;
  color: #111111;
  font-weight: 700;
  line-height: 1.8;
}

.detail-summary-card__msg {
  margin-top: 12px !important;
  color: #333333 !important;
  font-weight: 400 !important;
}

.official-url-link,
.detail-dl a.official-url-link,
.nearest-station-list a,
.nearest-station-list a span {
  color: #0068b7 !important;
}

.official-url-link {
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nearest-station-list--vertical {
  display: grid;
  gap: 10px;
}

.nearest-station-list--vertical a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}

.nearest-station-list--vertical b {
  color: var(--blue-dark);
}

.map-official-button {
  margin-top: 18px;
}

@media (max-width: 720px) {
  .detail-top {
    grid-template-columns: 1fr;
  }

  .detail-image--fixed,
  .detail-image--fixed img {
    width: 300px !important;
    height: 270px !important;
    max-width: 100% !important;
  }

  .nearest-station-list--vertical a {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   代表表示・詳細上部修正
   ========================================================== */

.page-detail .detail-top {
  grid-template-columns: 300px;
  justify-content: start;
}

.page-detail .detail-summary-card {
  display: none;
}


/* ==========================================================
   PRラベル位置調整
   ========================================================== */

.clinic-row {
  position: relative;
}

.clinic-card-pr-top {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #d7e2ea;
  border-radius: 999px;
  background: #eef3f7;
  color: #333333;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

.detail-pr-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 -10px;
}

.detail-pr-top span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid #d7e2ea;
  border-radius: 999px;
  background: #eef3f7;
  color: #333333;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .clinic-card-pr-top {
    top: 10px;
    right: 10px;
  }

  .clinic-row__main {
    padding-right: 48px;
  }

  .detail-pr-top {
    margin-bottom: -6px;
  }
}
