/* ==========================================================================
   1. Design Tokens
   ========================================================================== */

:root {
  /* Colors */
  --orange: #ff8534;
  --orange-dark: #ca5100;
  --orange-mid: #f26203;
  --orange-soft: #ffa265;
  --green: #5ec269;
  --blue: #0070c0;
  --blue-soft: #eef7fc;
  --text: #333;
  --muted: #666;
  --line: rgba(0, 0, 0, 0.1);
  --soft-bg: #fafafa;
  --footer: #333;

  /* Type scale (PC values; SP values are redefined in the 640px media block).
     h1/h2 are fluid: min value = smartphone size, max value = PC size. */
  --fs-h1: clamp(26px, 2.9vw + 15px, 50px);
  --fs-h2: clamp(22px, 1.35vw + 17px, 30px);
  --fs-h3: 24px;
  --fs-body: 20px;
  --fs-small: 16px;
  --lh-h1: 1.3;
  --lh-h2: 1.4;
  --lh-h3: 1.5;
  --lh-body: 1.9;
  --lh-small: 1.7;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: #fff;
  font-size: var(--fs-body);
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

main {
  background: #fff;
}

/* ==========================================================================
   3. Typography
   --------------------------------------------------------------------------
   見出し・本文の一括定義。main配下では要素を書くだけでこの見た目になる。
   例外はコンポーネント側のクラスで上書きする。
   ========================================================================== */

main h1 {
  margin: 0;
  color: var(--orange-mid);
  font-size: var(--fs-h1);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: var(--lh-h1);
}

main h2 {
  margin: 0 0 34px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange-soft);
  color: var(--orange-mid);
  font-size: var(--fs-h2);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: var(--lh-h2);
}

main h3 {
  margin: 10px 0 0 0;
  color: var(--blue);
  font-size: var(--fs-h3);
  font-weight: 900;
  line-height: var(--lh-h3);
}

main p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* ---- Lists ----
   main配下の ul は標準で青ドットリスト、ol は番号付きリスト。 */

main li + li {
  margin-top: 8px;
}

main ul,
main ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

main ol {
  padding-left: 1.4em;
  list-style: decimal;
}

main ul > li {
  position: relative;
  margin-top: 0;
  padding: 0 0 0 1.35em;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

main ol > li {
  margin-top: 0;
  padding: 0;
  color: var(--text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

main ul > li::before {
  position: absolute;
  top: 0.65em;
  left: 0.2em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

main ol > li::before {
  content: none;
}

main ul > li:has(> input[type="checkbox"]) {
  padding-left: 0;
}

main ul > li:has(> input[type="checkbox"])::before {
  content: none;
}

main ul input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  accent-color: var(--blue);
}

/* ---- Tables ---- */

main table {
  width: min(960px, 100%);
  margin: 24px auto;
  border-collapse: collapse;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.7;
}

main th,
main td {
  padding: 14px 16px;
  border: 1px solid var(--line);
  vertical-align: top;
}

main th {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

/* ==========================================================================
   4. Header and Shared Branding
   ========================================================================== */

#header-placeholder {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 1px 1.5px rgba(0, 0, 0, 0.1),
    0 1px 1px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.site-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 88px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 40px);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  justify-content: flex-start;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
}

.site-footer .brand-logo {
  height: 52px;
}

.brand[data-logo-placeholder] {
  min-width: 190px;
}

.brand .insert-logo {
  margin: 1rem 0.5rem;
  color: var(--text);
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.25em;
  line-height: 1.2;
}

.brand .insert-logo p {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.brand .insert-logo img {
  width: auto;
  height: 42px;
  padding-right: 0;
}

.brand .insert-logo-small {
  display: block;
  max-width: none;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-footer .brand .insert-logo {
  color: #fff;
}

.site-footer .brand .insert-logo-small {
  color: rgba(255, 255, 255, 0.6);
}

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  background: var(--orange);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  inset: 0;
  margin: auto;
  background: #fff;
  content: "";
}

.brand-mark::before {
  width: 18px;
  height: 3px;
}

.brand-mark::after {
  width: 3px;
  height: 18px;
}

.brand-kana {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13.75px;
  letter-spacing: 0.09em;
  line-height: 1.25;
}

.brand-name {
  display: block;
  margin: 2px 0 0;
  font-size: 18.75px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: auto;
  margin-left: auto;
  font-size: 18.75px;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  margin-left: 8px;
}

.header-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  color: #fff;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow:
    0 4px 3px rgba(0, 0, 0, 0.1),
    0 2px 2px rgba(0, 0, 0, 0.1);
}

.header-actions a:nth-child(1) {
  background: var(--orange-dark);
}

.header-actions a:nth-child(2) {
  background: var(--orange-mid);
}

.header-actions a:nth-child(3) {
  background: var(--orange-soft);
}

.header-actions a:nth-child(4) {
  background: var(--orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--text);
  transition:
    transform 0.3s ease,
    opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   5. Page Headers
   ========================================================================== */

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.page-hero-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 76px 24px 68px;
}

.lead {
  max-width: none;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

/* ==========================================================================
   6. Home Page
   ========================================================================== */

.home-page .hero {
  position: relative;
  height: 800px;
  overflow: hidden;
  background: #fff;
}

.home-page .hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.home-page .hero-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-page .hero-visual img {
  width: 100%;
  height: 100%;
  max-width: none;
  transform: scale(1.06);
  object-fit: cover;
  object-position: right center;
}

.home-page .hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 114px 24px 0;
}

.home-page .hero h1 {
  margin: 0;
  max-width: 800px;
  transform: translateX(-56px);
  color: var(--orange-mid);
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  font-size: 66.67px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-shadow:
    0 0 8px #fff,
    0 0 16px #fff,
    0 0 28px #fff,
    0 0 42px rgba(255, 255, 255, 0.95);
}

.home-page .hero h1 span,
.home-page .hero h1 .hero-line {
  color: inherit;
}

.home-page .hero h1 .hero-line {
  display: block;
}

.home-page .hero h1 .hero-line:nth-child(2) {
  font-size: 66.67px;
}

.home-page .hero h1 .hero-subtext {
  font-size: 0.6em;
}

.home-page .hero-badges {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: flex;
  gap: 28px;
  transform: translateX(-50%);
}

.home-page .hero-badge {
  display: grid;
  place-items: center;
  width: 230px;
  height: 230px;
  border: 5px solid var(--blue);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #8f8f8f;
  font-size: 22.5px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.home-page .hero-badge strong,
.home-page .hero-badge small {
  display: block;
  line-height: 1.15;
}

.home-page .hero-badge > div {
  display: grid;
  place-items: center;
  row-gap: clamp(3px, 0.5vw, 8px);
}

.home-page .hero-badge strong {
  color: var(--blue);
  font-size: 47.5px;
  font-weight: 900;
  white-space: nowrap;
}

.home-page .hero-badge small {
  color: #aaa;
  font-size: 37.5px;
  font-weight: 700;
}

@media (min-width: 641px) {
  .home-page .hero {
    height: min(50vw, 800px);
  }

  .home-page .hero-visual {
    top: 0;
    right: 0;
    bottom: auto;
    left: auto;
    width: min(100%, 1600px);
    height: 100%;
  }

  .home-page .hero-visual img {
    transform: none;
  }

  .home-page .hero-inner {
    --hero-content-offset: clamp(-56px, calc(168px - 14vw), 0px);

    padding-top: clamp(45px, 7.125vw, 114px);
  }

  .home-page .hero h1 {
    transform: translateX(var(--hero-content-offset));
    font-size: clamp(32px, 4.167vw, 66.67px);
  }

  .home-page .hero h1 .hero-line:nth-child(2) {
    font-size: clamp(52px, 7.292vw, 116.67px);
  }

  .home-page .hero-badges {
    position: static;
    width: max-content;
    max-width: 100%;
    margin-top: clamp(12px, 2vw, 32px);
    gap: clamp(8px, 1.75vw, 28px);
    transform: translateX(var(--hero-content-offset));
  }

  .home-page .hero-badge {
    width: clamp(92px, 14.375vw, 230px);
    height: clamp(92px, 14.375vw, 230px);
    border-width: clamp(3px, 0.3125vw, 5px);
    font-size: clamp(12px, 1.406vw, 22.5px);
  }

  .home-page .hero-badge strong {
    font-size: clamp(20px, 2.969vw, 47.5px);
  }

  .home-page .hero-badge small {
    font-size: clamp(15px, 2.344vw, 37.5px);
  }
}

.home-page .section {
  padding: 64px 24px;
}

.home-page .container {
  width: min(1152px, 100%);
}

/* h1級の大型センター見出し。ホーム(および注入されるフラグメント)の
   h2.section-title 専用。内容ページの h2 は main h2 の標準スタイルになる */
.home-page .section-title {
  margin: 0 0 32px;
  padding-bottom: 0;
  border-bottom: 0;
  color: var(--text);
  font-size: var(--fs-h1);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: var(--lh-h1);
  text-align: center;
}

.home-page #news ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-page a.news-item:hover,
.home-page a.news-item:focus-visible {
  border-color: var(--orange-mid);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.home-page .news-date {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.home-page .news-label {
  flex: 0 0 auto;
  min-width: 46px;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.home-page .news-label.green {
  min-width: 68px;
  background: var(--green);
}

.home-page .news-title {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.5;
}

.home-page .feature-section {
  padding-top: 112px;
}

.home-page .feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: center;
  width: min(960px, 100%);
  margin: 0 auto;
}

.home-page .feature-grid img {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
}

.home-page .feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

@media (min-width: 641px) {
  .home-page .feature-media-alternate {
    grid-column: 2;
    grid-row: 2;
  }

  .home-page .feature-copy-alternate {
    grid-column: 1;
    grid-row: 2;
  }
}

.home-page .link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 48px;
  width: min(760px, 100%);
  margin: 54px auto 0;
}

.home-page .image-link {
  display: block;
  padding: 10px;
  border: 2px solid var(--orange-soft);
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.home-page .image-link img {
  width: 100%;
  aspect-ratio: 305 / 175;
  object-fit: contain;
  background: #fff;
}

.home-page .image-link strong {
  display: block;
  margin-top: 10px;
  color: #111;
  font-size: var(--fs-h3);
  font-weight: 900;
  line-height: 1.3;
}

.home-page .highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.home-page .highlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 32px 40px;
  border: 2px solid var(--card-color, var(--orange));
  border-radius: 20px;
  background: #fff;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.home-page .highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.home-page .highlight-card--green {
  --card-color: var(--green);
}

.home-page .highlight-card--orange {
  --card-color: var(--orange);
}

.home-page .highlight-card--blue {
  --card-color: #4da6dc;
}

.home-page .highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  color: var(--card-color);
}

.home-page .highlight-icon svg {
  width: 100%;
  height: 100%;
}

.home-page .highlight-card h3 {
  margin: 0;
  color: var(--card-color);
  font-size: 30px;
  font-weight: 900;
}

.home-page .highlight-rule {
  width: 32px;
  height: 2px;
  margin-top: -8px;
  background: var(--card-color);
}

.home-page .highlight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.home-page .highlight-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 12px 28px;
  border: 1.5px solid var(--card-color);
  border-radius: 999px;
  background: var(--card-color);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.home-page .highlight-btn svg {
  width: 14px;
  height: 14px;
}

.home-page .access-card {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.home-page .access-card .access-info-table {
  width: 100%;
}

.home-page .map-iframe {
  width: 100%;
  height: 320px;
  border-radius: 14px;
  background: #f5f5f5;
}

.home-page .access-route {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px auto 0;
}

.home-page .access-route > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: 1.7;
  text-align: center;
}

.home-page .access-route p {
  margin: 0;
}

.home-page .address {
  display: inline-block;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 22.5px;
  line-height: 1.45;
  text-align: left;
}

.home-page .index-notices {
  background: var(--soft-bg);
}

.home-page .index-notices .index-accordion {
  width: min(920px, 100%);
  margin: 0 auto 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.home-page .index-notices .index-accordion:last-child {
  margin-bottom: 0;
}

.home-page .index-notices .index-accordion summary {
  position: relative;
  display: block;
  padding: 20px 64px 20px 24px;
  color: var(--text);
  font-size: 22.5px;
  font-weight: 900;
  line-height: 1.6;
  cursor: pointer;
}

.home-page .index-notices .index-accordion summary::-webkit-details-marker {
  display: none;
}

.home-page .index-notices .index-accordion summary::after {
  position: absolute;
  top: 50%;
  right: 24px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft-bg);
  color: var(--orange-mid);
  font-size: 25px;
  line-height: 1;
  content: "+";
  transform: translateY(-50%);
}

.home-page .index-notices .index-accordion[open] summary {
  border-bottom: 1px solid var(--line);
  background: #fff7f1;
  color: var(--orange-dark);
}

.home-page .index-notices .index-accordion[open] summary::after {
  background: #fff;
  content: "-";
}

.home-page .index-notices .index-accordion p {
  width: min(820px, calc(100% - 48px));
  margin: 18px auto 0;
}

.home-page .index-notices .index-accordion p:first-of-type {
  margin-top: 22px;
}

.home-page .index-notices .index-accordion p:last-child {
  margin-bottom: 24px;
}

/* ==========================================================================
   7. Page Layout
   ========================================================================== */

.section,
main > .content-section {
  padding: 76px 24px;
}

main > article.page-content {
  padding: 0 24px 96px;
}

main > .page-hero + article.page-content {
  padding-top: 52px;
}

main > article.page-content > .h1-decoration {
  margin-right: -24px;
  margin-bottom: 52px;
  margin-left: -24px;
}

main > .h1-decoration {
  margin-bottom: 52px;
}

.section-soft {
  background: var(--soft-bg);
}

main .page-content,
main .content-section {
  width: min(1000px, 100%);
  margin-right: auto;
  margin-left: auto;
}

main > article.page-content {
  width: 100%;
  max-width: none;
}

main > article.page-content > :not(.h1-decoration) {
  width: min(1000px, 100%);
  margin-right: auto;
  margin-left: auto;
}

main .page-content-spacious {
  padding-bottom: 152px;
}

.container,
main > .content-section > :not(.h1-decoration) {
  margin-right: auto;
  margin-left: auto;
}

.content-block + .content-block,
.page-content > .content-section + .content-section,
main > .content-section article + article {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   8. List and Table Variants
   ========================================================================== */

.home-page #news ul > li,
.news-list-page ul > li {
  padding-left: 0;
}

.home-page #news ul > li::before,
.news-list-page ul > li::before {
  content: none;
}

.news-list-page ul {
  margin-top: 0;
}

.privacy-policy-page .content-block ul,
.privacy-policy-page .content-block ol {
  margin: 16px 0 0;
  padding-left: 1.4em;
}

.privacy-policy-page .content-block ul {
  list-style: disc;
}

.privacy-policy-page .content-block ul > li {
  padding-left: 0;
}

.privacy-policy-page .content-block ul > li::before {
  content: none;
}

.privacy-policy-page .content-block ol {
  list-style: decimal;
}

.privacy-policy-page .content-block ul + p,
.privacy-policy-page .content-block ol + p {
  margin-top: 18px;
}

.access-info-table {
  width: min(760px, 100%);
  margin: 0 auto 24px;
  background: #fff;
  color: var(--text);
  text-align: left;
}

.access-info-table th {
  width: 150px;
  background: #fff1e3;
  color: #8a3f00;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.access-info-table td {
  color: var(--text);
  text-align: left;
}

.map-iframe {
  display: block;
  width: min(960px, 100%);
  height: 420px;
  margin: 0 auto;
  border: 0;
}

.fee-table,
.vaccine-table {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.fee-table th,
.fee-table td,
.vaccine-table th,
.vaccine-table td {
  padding: 16px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body);
  line-height: 1.7;
  text-align: left;
}

.fee-table tr:last-child th,
.fee-table tr:last-child td,
.vaccine-table tr:last-child th,
.vaccine-table tr:last-child td {
  border-bottom: 0;
}

.fee-table thead th,
.vaccine-table tr:first-child th,
.vaccine-table tr:first-child td {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.fee-table tbody th,
.vaccine-table th {
  width: 48%;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.fee-table--three-col tbody th {
  width: 28%;
}

.fee-table .price-cell,
.vaccine-table td {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.hours {
  padding-top: 58px;
  padding-bottom: 112px;
}

.hours-table-wrap {
  width: min(820px, 100%);
  margin: 0 auto;
}

.hours-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table-wrap th,
.hours-table-wrap td {
  border: 1px solid var(--line);
  padding: 22px 14px;
  background: transparent;
  color: var(--text);
  font-size: 23.75px;
  text-align: center;
}

.hours-table-wrap th:first-child,
.hours-table-wrap td:first-child {
  width: 170px;
  padding-left: 0;
  font-weight: 500;
  text-align: center;
}

.hours-table-wrap th {
  font-weight: 700;
}

.hours-table-wrap tr:first-child th,
.hours-table-wrap th:first-child {
  background: #fff1e3;
  color: #8a3f00;
  font-weight: 700;
  vertical-align: middle;
}

.hours-table-wrap > ul {
  display: grid;
  gap: 6px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  list-style: none;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  background: var(--orange-mid);
  vertical-align: middle;
}

.dot.blue {
  background: var(--blue);
}

/* ==========================================================================
   9. Forms and Buttons
   ========================================================================== */

form {
  display: grid;
  gap: 18px;
  width: min(760px, 100%);
  margin: 24px auto 0;
}

label {
  color: var(--text);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 160px;
}

button,
.button,
input[type="submit"],
#reservation .reserveBtn a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  background: var(--orange-mid);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    0 4px 3px rgba(0, 0, 0, 0.1),
    0 2px 2px rgba(0, 0, 0, 0.1);
}

.button.secondary {
  background: var(--blue);
}

/* ==========================================================================
   10. Reservation Page
   ========================================================================== */

#reservation .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: min(960px, 100%);
  margin: 32px auto 0;
}

#reservation .reserveCard {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #fff;
}

#reservation .reserveCard h2 {
  margin: 0;
  color: var(--blue);
}

#reservation .app-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

#reservation .app-badge a {
  display: inline-flex;
  align-items: center;
}

#reservation .reserveCard img {
  max-width: 180px;
  height: auto;
}

#reservation .reserveCard .app-badge img {
  width: auto;
  max-width: none;
  height: 48px;
}

#reservation .reserveCard .app-badge img[src*="google-play-badge"] {
  height: 56px;
}

#reservation .reserveBtn {
  display: flex;
  justify-content: center;
}

#reservation .reserveBtn a {
  text-decoration: none;
}

#reservation .text-center {
  text-align: center;
}

#reservation .reservation-preparation {
  width: min(960px, 100%);
  margin: 34px auto 0;
  padding: 28px;
  background: #fff;
}

#reservation .reservation-preparation h2 {
  margin: 0 0 22px;
}

#reservation .reservation-preparation h3 {
  margin: 0 0 10px;
}

#reservation .reservation-preparation div + div {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

#reservation .reservation-preparation ul + p {
  margin-top: 18px;
}

/* ==========================================================================
   11. Contact Page
   ========================================================================== */

.digisma_guide img {
  width: 100%;
  height: auto;
}

#contact-form {
  width: min(960px, 100%);
  margin: 32px auto 0;
}

#contact > ul {
  width: fit-content;
  max-width: min(760px, 100%);
  margin-right: auto;
  margin-left: auto;
}

#contact > ul > li {
  text-align: left;
}

#contact-form iframe {
  display: block;
  width: 100%;
  height: 2300px;
  border: 0;
  background: #fff;
}

/* ==========================================================================
   12. Shared Components
   ========================================================================== */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.reservation-methods .hero-actions {
  margin-top: 22px;
}

.notice {
  margin-top: 22px;
  padding: 4px 0 4px 18px;
  border-left: 5px solid var(--orange-mid);
  color: var(--text);
  font-weight: 700;
}

.notice p {
  color: inherit;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.document-grid li {
  position: relative;
  padding: 0 0 0 1.35em;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.document-grid li::before {
  position: absolute;
  top: 0.65em;
  left: 0.2em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

/* ==========================================================================
   13. Department Cards
   ========================================================================== */

.departments {
  padding-top: 32px;
  background: var(--soft-bg);
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: min(630px, 100%);
  margin: 0 auto;
}

.department-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  aspect-ratio: 1 / 1;
  min-height: 72px;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: #fff1e3;
  box-shadow:
    0 8px 18px rgba(138, 63, 0, 0.14),
    0 2px 6px rgba(138, 63, 0, 0.1);
  color: #8a3f00;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.department-card svg {
  width: 50px;
  height: 50px;
  margin-bottom: 0;
  stroke: #b85c00;
}

.department-card .department-icon-image {
  width: 50px;
  height: 50px;
  margin-bottom: 0;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(34%) sepia(95%) saturate(1118%) hue-rotate(1deg) brightness(91%) contrast(102%);
}

/* ==========================================================================
   14. Pancreas Pages
   ========================================================================== */

.pancreas-page {
  width: min(860px, 100%);
  padding-bottom: 76px;
  margin-right: auto;
  margin-left: auto;
}

#panc .hero-actions {
  justify-content: center;
}

.pancreas-page:not(.pancreas-mibyo-page) > .h1-decoration {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
  text-align: left;
}

.simple-link-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(520px, 100%);
  max-width: 100%;
  margin: 18px auto 0;
  padding: 14px 22px;
  border-radius: 4px;
  background: var(--orange-mid);
  color: #fff;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
  box-shadow:
    0 6px 14px rgba(202, 81, 0, 0.18),
    0 2px 4px rgba(202, 81, 0, 0.14);
}

.simple-link-button::after {
  content: ">";
  font-weight: 900;
}

.simple-link-button:hover,
.simple-link-button:focus-visible {
  background: var(--orange-dark);
  outline: 3px solid rgba(242, 98, 3, 0.18);
  outline-offset: 2px;
}

.link-card-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.link-card-list > li {
  padding-left: 0;
}

.link-card-list > li::before {
  content: none;
}

.link-card-list li + li {
  margin-top: 0;
}

.link-card-list a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
}

.link-card-list a:hover,
.link-card-list a:focus-visible {
  background: var(--blue-soft);
  box-shadow: none;
  outline: none;
}

.pancreas-mibyo-page .pancreas-article-title {
  font-size: 21.25px;
}

.pancreas-mibyo-page .pancreas-article-date {
  color: var(--muted);
}

.pancreas-mibyo-page {
  width: auto;
  margin-right: 0;
  margin-left: 0;
}

.pancreas-article-title {
  color: var(--text);
  font-size: 22.5px;
  font-weight: 900;
  line-height: 1.5;
  min-width: 0;
}

.pancreas-article-date,
.simple-note {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

.pancreas-article-body a {
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pancreas-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 34px;
}

.pancreas-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 220px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--orange-soft);
  border-radius: 4px;
  background: #fff;
  color: var(--orange-dark);
  font-weight: 700;
  text-align: center;
}

.pancreas-nav a:hover,
.pancreas-nav a:focus-visible {
  background: #fff1e3;
  outline: 3px solid rgba(242, 98, 3, 0.18);
  outline-offset: 2px;
}

/* ==========================================================================
   15. About Page
   ========================================================================== */

.doctor-profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.doctor-photo img,
.doctor-list img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.doctor-photo img {
  max-width: 320px;
}

.doctor-photo p {
  margin-top: 10px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.6;
}

.doctor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.doctor-list > div {
  width: min(220px, 100%);
  margin: 0 auto;
}

.doctor-list img {
  margin-bottom: 12px;
}

.payment-methods > ul > li {
  padding-left: 0;
}

.payment-methods > ul > li::before {
  content: none;
}

.payment-methods ul ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.payment-methods ul ul > li {
  padding-left: 0;
}

.payment-methods ul ul > li::before {
  content: none;
}

.payment-methods ul ul img {
  width: auto;
  height: 28px;
}

/* ==========================================================================
   16. FAQ Page
   ========================================================================== */

.faq-item {
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  background: #fff;
}

.faq-item + .faq-item {
  margin-top: 14px;
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 18px 56px 18px 22px;
  color: var(--text);
  font-size: 21.25px;
  font-weight: 900;
  line-height: 1.7;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  content: "+";
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--blue-soft);
  color: var(--blue);
}

.faq-item[open] summary::after {
  background: #fff;
  content: "-";
}

.faq-answer {
  padding: 20px 22px 22px;
  background: #fff;
}

.faq-answer p {
  color: var(--muted);
}

.faq-answer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.faq-emphasis-link {
  color: var(--blue);
  font-size: 1.1em;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

/* ==========================================================================
   17. CTA and Footer
   ========================================================================== */

.cta-band {
  background: var(--blue);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  margin: 0;
  padding-bottom: 0;
  border-bottom: 0;
  color: #fff;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  text-align: center;
}

.cta-band p {
  margin: 16px auto 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.cta-band .hero-actions {
  justify-content: center;
}

.about-privacy-link a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bottom-menu {
  display: none;
}

.site-footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

.footer-brand .brand-kana {
  color: rgba(255, 255, 255, 0.6);
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-copy {
  margin: 16px 0 0;
  font-size: 18.75px;
  line-height: 1.65;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
  padding-top: 2px;
  font-size: 18.75px;
  line-height: 1.5;
}

.copyright {
  margin: 32px 0 0;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 16.25px;
  text-align: center;
}

/* ==========================================================================
   18. Responsive
   ========================================================================== */

/* Breakpoint reference (max-width, desktop-first):
   1180px = nav-collapse (hamburger)
    980px = tablet
    640px = mobile
    400px = small phone
   ========================================================================== */

/* ---- 18.1 Nav-collapse (<=1180px): hamburger takes over .main-nav ---- */
@media (max-width: 1180px) {
  .nav-toggle {
    position: absolute;
    top: 50%;
    right: clamp(20px, 3vw, 40px);
    display: flex;
    transform: translateY(-50%);
  }

  .main-nav {
    position: fixed;
    inset: 88px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    height: calc(100vh - 88px);
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    font-size: 22px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.35s ease,
      opacity 0.25s ease;
    z-index: 25;
  }

  .main-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .header-actions {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
    min-width: 0;
  }

  .header-actions a {
    padding: 10px 12px;
    font-size: 16.25px;
  }
}

/* ---- 18.2 Tablet (<=980px) ---- */
@media (max-width: 980px) {
  .header-actions a {
    padding: 8px 10px;
    font-size: 15px;
  }

  .home-page .highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
  }
}

/* ---- 18.3 Mobile (<=640px) ---- */
@media (max-width: 640px) {
  /* Type scale for smartphones (h1/h2 are fluid and need no override) */
  :root {
    --fs-h3: 18px;
    --fs-body: 16px;
    --fs-small: 14px;
  }

  /* Header */
  #header-placeholder {
    position: static;
    z-index: auto;
  }

  .site-header {
    backdrop-filter: none;
  }

  .site-header .header-inner {
    height: auto;
    min-height: 72px;
    padding: 60px 18px 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    top: 62px;
    transform: none;
  }

  .main-nav {
    inset: 48px 0 0 0;
    height: calc(100vh - 48px);
  }

  .brand-logo {
    height: 42px;
  }

  .site-footer .brand-logo {
    height: 46px;
  }

  .brand[data-logo-placeholder] {
    min-width: 170px;
    max-width: calc(100% - 60px);
  }

  .brand .insert-logo img {
    height: 38px;
  }

  .brand .insert-logo-small {
    font-size: 11.25px;
    white-space: normal;
  }

  .header-actions {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 110;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: 48px;
    width: 100%;
    height: 48px;
    margin: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  .header-actions a {
    justify-content: center;
    min-height: 48px;
    padding: 4px 2px;
    font-size: clamp(8px, 2.5vw, 11.25px);
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
  }

  /* Generic page hero */
  .page-hero-inner,
  .h1-decoration {
    padding: 46px 22px 48px;
  }

  .hero-actions {
    display: grid;
  }

  /* Home hero */
  .home-page .hero {
    height: auto;
    min-height: 0;
  }

  .home-page .hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    opacity: 1;
  }

  .home-page .hero-visual img {
    transform: none;
  }

  .home-page .hero-inner {
    position: static;
    height: auto;
    min-height: 0;
    padding: 0 12px 24px;
  }

  .home-page .hero h1 {
    position: absolute;
    top: clamp(16px, 4vw, 24px);
    right: 18px;
    left: 18px;
    z-index: 3;
    display: grid;
    max-width: 100%;
    margin: 0;
    transform: none;
    font-size: clamp(20px, 8.5vw, 30px);
    letter-spacing: 0;
    line-height: 1.35;
    row-gap: clamp(6px, 2vw, 10px);
  }

  .home-page .hero h1 .hero-line:nth-child(2) {
    font-size: clamp(30px, 11vw, 35px);
  }

  .home-page .hero-badges {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(calc(100vw - 24px), 390px);
    max-width: 100%;
    margin: 24px auto 0;
    gap: 8px;
    transform: none;
  }

  .home-page .hero-badge {
    width: 100%;
    height: auto;
    border-width: 3px;
    aspect-ratio: 1;
  }

  .home-page .hero-badge strong {
    font-size: clamp(25px, 6.75vw, 32.5px);
  }

  .home-page .hero-badge small {
    font-size: clamp(16.25px, 4.75vw, 20px);
  }

  /* Home sections */
  .home-page .section {
    padding: 48px 18px;
  }

  .home-page .container {
    width: min(100%, 354px);
    margin-right: 0;
    margin-left: 0;
  }

  .home-page .feature-section {
    padding-top: 64px;
  }

  .home-page .news-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 12px;
    padding: 16px;
  }

  .home-page .news-title {
    grid-column: 1 / -1;
  }

  .home-page .feature-grid,
  .home-page .link-grid,
  .home-page .access-route {
    grid-template-columns: 1fr;
  }

  /* highlight-grid: one wide card per row, stacked vertically;
     same centered column layout as PC, just scaled down */
  .home-page .highlight-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-page .highlight-card {
    gap: 10px;
    padding: 24px 24px 20px;
  }

  .home-page .highlight-icon {
    width: 56px;
    height: 56px;
  }

  .home-page .highlight-card h3 {
    font-size: 20px;
  }

  .home-page .highlight-rule {
    width: 24px;
    margin-top: -4px;
  }

  .home-page .highlight-card p {
    font-size: 14px;
    line-height: 1.6;
  }

  .home-page .highlight-btn {
    gap: 4px;
    margin-top: 4px;
    padding: 8px 20px;
    font-size: 13px;
  }

  .home-page .highlight-btn svg {
    width: 11px;
    height: 11px;
  }

  .home-page .feature-grid {
    gap: 24px;
  }

  .home-page .link-grid {
    width: min(390px, 100%);
    gap: 26px;
  }

  .home-page .access-card {
    width: 100%;
  }

  .home-page .map-iframe {
    height: 260px;
  }

  .home-page .access-route {
    gap: 12px;
  }

  .home-page .index-notices .index-accordion summary {
    padding: 17px 54px 17px 18px;
    font-size: 20px;
  }

  .home-page .index-notices .index-accordion summary::after {
    right: 18px;
    width: 26px;
    height: 26px;
  }

  .home-page .index-notices .index-accordion p {
    width: calc(100% - 36px);
  }

  #panc .hero-actions {
    justify-items: center;
  }

  /* Generic content pages */
  .section,
  main > .content-section {
    padding: 52px 18px;
  }

  main > article.page-content {
    padding: 0 18px 72px;
  }

  main > .page-hero + article.page-content {
    padding-top: 40px;
  }

  main .page-content-spacious {
    padding-bottom: 112px;
  }

  main > article.page-content > .h1-decoration {
    margin-right: -18px;
    margin-bottom: 40px;
    margin-left: -18px;
  }

  main > .h1-decoration {
    margin-bottom: 40px;
  }

  .content-block + .content-block,
  .page-content > .content-section + .content-section,
  main > .content-section article + article {
    margin-top: 28px;
    padding-top: 28px;
  }

  /* Grids collapse to 1 column (department-grid stays multi-column, see below) */
  .document-grid,
  .doctor-profile,
  .doctor-list,
  #reservation .grid-2,
  .footer-main {
    grid-template-columns: 1fr;
  }

  #reservation .grid-2 {
    gap: 18px;
  }

  #reservation .reserveCard {
    padding: 22px 18px;
  }

  #contact-form iframe {
    height: 2700px;
  }

  /* department-grid: keep 3 columns, just shrink to fit narrow screens */
  .department-grid {
    gap: 12px;
  }

  .department-card {
    padding: 6px 8px;
    font-size: 13px;
  }

  .department-card svg,
  .department-card .department-icon-image {
    width: 30px;
    height: 30px;
  }

  .link-card-list a {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pancreas-article-date {
    white-space: normal;
  }

  .pancreas-nav a {
    flex-basis: 100%;
  }

  .faq-item summary {
    padding: 16px 48px 16px 16px;
    font-size: 20px;
  }

  .faq-item summary::after {
    right: 16px;
  }

  .faq-answer {
    padding: 18px 16px 20px;
  }

  /* Tables: shrink text/padding and add horizontal-scroll safety net */
  .hours-table-wrap,
  .access-info-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .access-info-table tbody {
    display: table;
    width: 100%;
  }

  .hours-table-wrap th,
  .hours-table-wrap td {
    padding: 6px 2px;
    font-size: 11px;
    white-space: nowrap;
  }

  .hours-table-wrap th:first-child,
  .hours-table-wrap td:first-child {
    width: auto;
  }

  .access-info-table th,
  .access-info-table td {
    padding: 6px 2px;
    font-size: 11px;
  }

  .access-info-table th {
    width: auto;
    min-width: 70px;
  }

  /* 料金表: スクロールさせず画面内に収め、罫線グリッドを表示する */
  .fee-table,
  .vaccine-table {
    width: 100%;
    table-layout: fixed;
  }

  .fee-table th,
  .fee-table td,
  .vaccine-table th,
  .vaccine-table td {
    padding: 10px 8px;
    border: 1px solid var(--line);
    font-size: var(--fs-small);
    line-height: 1.6;
  }

  .fee-table tbody th,
  .vaccine-table th {
    width: auto;
  }

  /* 列幅の配分(table-layout:fixedは先頭行の幅で全列が決まる)。
     項目名列を広めに取り、金額列の長文はセル内で折り返す。
     数値(3,000円等)はCSSの改行規則上、数字の途中では改行されない */
  .fee-table tr:first-child th:first-child,
  .vaccine-table tr:first-child th {
    width: 55%;
  }

  /* 3列の表は項目名列をやや譲り、金額・時間列の見出しが収まる幅を確保 */
  .fee-table:not(.fee-table--three-col) tr:first-child:has(> :nth-child(3)) th:first-child {
    width: 38%;
  }

  .fee-table--three-col tr:first-child th:nth-child(1) {
    width: 23%;
  }

  .fee-table--three-col tr:first-child th:nth-child(2) {
    width: 36%;
  }

  .fee-table .price-cell,
  .vaccine-table td {
    white-space: normal;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    font-size: clamp(12px, 3.5vw, 15px);
  }

  .footer-nav .footer-nav-compact {
    white-space: nowrap;
  }
}

/* ---- 18.4 Small phone (<=400px) ---- */
@media (max-width: 400px) {
  .home-page .hero-badges {
    gap: 6px;
  }

  .home-page .hero-badge strong {
    font-size: clamp(21.25px, 6.25vw, 25px);
  }

  .home-page .hero-badge small {
    font-size: clamp(13.75px, 4.25vw, 16.25px);
  }

  .header-actions {
    gap: 0;
  }

  .header-actions a {
    padding: 4px 2px;
    font-size: clamp(8px, 2.5vw, 11.25px);
  }
}
