/* =========================================================
   宝歯会グループ エリアで探す（医院一覧）
   ========================================================= */

:root {
  --color-orange: #f09502;
  --color-text: #292929;
  --color-text-sub: #826c49;
  --color-body: #4c4c4c;
  --color-white: #ffffff;

  --font-round: "Zen Maru Gothic", "Noto Sans JP", sans-serif;

  --container-width: 1000px;
  --header-height: 80px;
}

  .section-clinic-map .clinic-area .clinic-tabs .nav-link.active {
    background-color: var(--color-orange)!important;
    border-color: var(--color-orange)!important;
}

.section-clinic-map .clinic-area .clinic-item .btn-clinic {
    color: var(--color-orange)!important;
    border: 2px solid var(--color-orange)!important;
}

.section-clinic-map .clinic-area .clinic-card .card-title:before {
    background-color: var(--color-orange)!important;
}

.section-clinic-map {
    background: none!important;
}

.section-clinic{
  padding-top: min(14.2857142857vw, 20px);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-round);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding-left: 0em; margin-bottom: 0rem; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

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

.sp-only { display: block; }
.pc-only { display: none; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  max-width: 1400px;
  margin: 0 auto;
}
.header-logo img { width: 150px; height: auto; }

.gnav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--color-white);
  padding: 24px 24px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.gnav.is-open { transform: translateX(0); }
.gnav-list { display: flex; flex-direction: column; }
.gnav-item { border-bottom: 1px solid #eee; }
.gnav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
}
.gnav-item.is-current a { color: var(--color-orange); }
.gnav-arrow { width: 12px; height: auto; transform: rotate(90deg); opacity: 0.6; }

.header-entry-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  background: var(--color-orange);
  color: var(--color-white);
  font-weight: 700;
  font-size: 15px;
  border-radius: 4px;
  flex-shrink: 0;
}

.menu-trigger { position: relative; width: 32px; height: 24px; flex-shrink: 0; }
.menu-trigger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-trigger span:nth-child(1) { top: 0; }
.menu-trigger span:nth-child(2) { top: 11px; }
.menu-trigger span:nth-child(3) { top: 22px; }
.menu-trigger[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-trigger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-trigger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--color-white); padding-top: 40px; }
.footer-brand { text-align: center; margin-bottom: 32px; }
.footer-logo { width: 100px; margin: 0 auto 12px; }
.footer-org { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.footer-address { font-size: 12px; color: var(--color-text); line-height: 1.7; margin-bottom: 20px; }
.footer-btn {
  display: block;
  max-width: 260px;
  margin: 0 auto 10px;
  padding: 14px;
  border-radius: 40px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
.footer-btn--sub {
  background: #fff3df;
  border: 2px solid var(--color-text-sub);
  color: var(--color-text-sub);
}
.footer-btn--main {
  background: var(--color-orange);
  color: var(--color-white);
  border: 2px solid var(--color-orange);
}
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
.footer-col-title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-sub);
  margin-bottom: 12px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 12px; color: var(--color-text); }
.footer-bottom { margin-top: 40px; border-top: 1px solid #e5e5e5; padding: 20px 0; }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 10px; }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--color-text); }
.footer-legal-links img { width: 10px; }
.footer-copyright { font-size: 11px; color: var(--color-text); }

/* =========================================================
   HERO 医院一覧
   ========================================================= */
.as-hero { padding: 32px 20px 20px; text-align: center; }
.as-title {
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 24px;
  color: var(--color-text-sub);
}

/* =========================================================
   Area index (jump list)
   ========================================================= */
.as-index { padding: 16px 0 32px; }
/* ジャンプ先（クリニックカード）: 固定ヘッダーに隠れないよう余白を取る */
.as-anchor { display: block; scroll-margin-top: calc(var(--header-height, 60px) + 16px); }
.as-index-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.as-index-heading {
  position: relative;
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-orange);
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-orange);
  padding-bottom: 8px;
  padding-right: 16px;
  margin-bottom: 8px;
}
.as-index-heading:not(:first-child) { margin-top: 20px; }
.as-index-list li + li { margin-top: 10px; }
.as-index-list a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    justify-content: flex-start;
}
.as-index-city {
  position: relative;
  width: 118px;
  flex-shrink: 0;
  padding-right: 16px;
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 13px;
  color: var(--color-text);
}
.as-index-heading::after,
.as-index-city::after {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  margin-top: auto;
  margin-bottom: auto;
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border: solid;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.as-index-clinics {
  font-size: 13px;
  color: var(--color-body);
  line-height: 1.6;
  font-weight: 500;
}

/* =========================================================
   Area section (clinic grid)
   ========================================================= */
.as-area { padding: 24px 0; }
.as-area-heading {
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 24px;
  color: var(--color-text-sub);
  margin-bottom: 16px;
}
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.clinic-card {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 4px 10px 2px rgba(128,128,128,0.15);
  overflow: hidden;
}
.clinic-head {
  background: var(--color-orange);
  color: var(--color-white);
  text-align: center;
  padding: 12px 16px;
}
.clinic-head p:first-child {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 0rem;
}
.clinic-head p:last-child {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 0rem;
}
.clinic-photo { position: relative; aspect-ratio: 377/211; }
.clinic-social {
  position: absolute;
  right: 10px;
  bottom: -36px;
  display: flex;
  gap: 6px;
}
.ico-ig, .ico-tt {
  display: block;
  width: 20px;
  height: 20px;
}
.clinic-body { padding: 20px 18px; }
.clinic-field { margin-bottom: 14px; }
.clinic-field h3 {
  font-family: var(--font-round);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-orange);
  margin-bottom: 8px;
}
.clinic-field p {
  font-family: var(--font-round);
  font-size: 12px;
  color: var(--color-body);
  line-height: 1.7;
  font-weight: 500;
}
.clinic-field ul { display: flex; flex-direction: column; gap: 4px; }
.clinic-field li {
  font-family: var(--font-round);
  font-size: 12px;
  color: var(--color-body);
  font-weight: 500;
}
.clinic-field hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin-top: 14px;
}
.clinic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-orange);
  border-radius: 40px;
  color: var(--color-orange);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 14px;
  padding: 14px;
}

/* =========================================================
   Back to top
   ========================================================= */
.as-back-to-top {
  position: fixed;
  right: 16px;
  bottom: 70px;
  z-index: 900;
}
.as-back-to-top a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid var(--color-text-sub);
  background: var(--color-white);
  color: var(--color-text-sub);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 11px;
  text-align: center;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* =========================================================
   SP (~767px)
   ========================================================= */
@media (max-width: 767px) {
  .clinic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0px 15px; }

  .clinic-head { background: var(--color-orange); color: var(--color-white); text-align: center; padding: 6px 5px; }
  .clinic-head p:first-child { font-family: var(--font-round); font-weight: 700; font-size: 14px; }
  .clinic-head p:last-child { font-family: var(--font-round); font-weight: 700; font-size: 10px; }

  .clinic-field h3 { font-family: var(--font-round); font-weight: 500; font-size: 13px; color: var(--color-orange); margin-bottom: 2px; }
  .clinic-field p { font-family: var(--font-round); font-size: 10px; color: var(--color-body); line-height: 1.7; }
  .clinic-field ul { display: flex; flex-direction: column; }
  .clinic-field li { font-family: var(--font-round); font-size: 10px; color: var(--color-body); }

  .clinic-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-orange);
    border-radius: 40px;
    color: var(--color-orange);
    font-family: var(--font-round);
    font-weight: 700;
    font-size: 12px;
    padding: 5px;
  }
}

/* =========================================================
   Tablet (768px~)
   ========================================================= */
@media (min-width: 768px) {
  .container { padding: 0 32px; }

  .as-hero { padding: 48px 20px 24px; }
  .as-title { font-size: 30px; }

  .as-index-grid { flex-direction: row; gap: 60px; }
  .as-index-col { flex: 1; }
  .as-index-heading { font-size: 20px; }
  .as-index-city { font-size: 14px; }
  .as-index-clinics { font-size: 14px; }

  .as-area-heading { font-size: 28px; }
  .clinic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .clinic-head p:first-child { font-size: 15px; margin-bottom: 6px;}
  .clinic-head p:last-child { font-size: 17px; }
  .clinic-field h3 { font-size: 17px; }
  .clinic-field p, .clinic-field li { font-size: 15px; }
  .clinic-btn { font-size: 15px; }

  .as-back-to-top { right: 24px; bottom: 24px; }
  .as-back-to-top a { width: 110px; height: 110px; font-size: 13px; }
}

/* =========================================================
   Desktop (1024px~)
   ========================================================= */
@media (min-width: 1024px) {
  .sp-only { display: none; }
  .pc-only { display: block; }
  .container { padding: 0 64px; }

  .as-hero { padding: 60px 20px 20px; }
  .as-title { font-size: 32px; }

  .as-index { padding: 24px 0 50px; }
  .as-index-heading { font-size: 20px; }
  .as-index-city { font-size: 15px; }
  .as-index-clinics { font-size: 15px; }

  .as-area { padding: 34px 0; }
  .as-area-heading { font-size: 26px; }
  .clinic-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .clinic-head p:first-child { font-size: 14px; }
  .clinic-head p:last-child { font-size: 15px; }
  .clinic-field h3 { font-size: 18px; }
  .clinic-field p, .clinic-field li { font-size: 16px; }
  .clinic-btn { font-size: 14px; }

  .as-back-to-top { right: 32px; bottom: 32px; }
  .as-back-to-top a { width: 120px; height: 120px; font-size: 14px; }
}
