:root {
  --paper: #ffffff;
  --canvas: #dbd8cc;
  --ink: #55585d;
  --muted: #7f8387;
  --blue: #4a659a;
  --blue-dark: #344d7b;
  --line: #d9dbe0;
  --charcoal: #3e3e3e;
  --shadow: 0 20px 55px rgba(37, 39, 43, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: #696969; font-family: "Lucida Sans", Verdana, Arial, sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #213860; }
.site-body { width: min(960px, calc(100% - 32px)); min-height: 100vh; margin: 16px auto; background: var(--paper); box-shadow: var(--shadow); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 20; padding: 10px 14px; background: #111; color: #fff; }
.skip-link:focus { left: 12px; }
.site-header { border-bottom: 0; background: rgba(255,255,255,.96); }
.header-inner { padding: 22px 40px 0; }
.brand { display: block; max-width: 880px; margin: 0 auto; }
.brand img { width: 100%; }
.primary-nav, .home-primary-nav { display: flex; justify-content: center; gap: 0; flex-wrap: wrap; padding: 20px 0 18px; }
.primary-link { border-left: 1px solid #999; color: #808080; font-family: "Meiryo UI", Meiryo, sans-serif; font-size: 18px; line-height: 1; padding: 0 16px; text-decoration: none; white-space: nowrap; }
.primary-link:first-child { border-left: 0; }
.primary-link:hover, .primary-link.active { color: var(--blue-dark); }
.primary-link.active { font-weight: 700; }
.page-home .site-header .primary-nav { display: none; }
.page-home .hero { padding-bottom: 0; }
.home-primary-nav { max-width: 800px; margin: 0 auto; padding: 18px 0 24px; }
.mobile-nav { display: none; }
.hero { max-width: 800px; margin: 0 auto; padding: 34px 0 22px; }
.hero img { width: 100%; border-radius: 5px; }
.site-grid { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 48px; padding: 50px 16px 72px; }
.site-grid.has-allergen-nav { grid-template-columns: 160px minmax(0, 1fr) 160px; gap: 32px; }
.site-grid.has-photo-rail { grid-template-columns: 160px minmax(0, 1fr) 160px; gap: 32px; }
.page-home .site-grid { padding-top: 34px; }
.info-nav { align-self: start; position: sticky; top: 20px; overflow: hidden; border-radius: 0; background: var(--charcoal); color: #fff; box-shadow: 4px 4px 4px -1px rgba(143,140,143,1); }
.info-nav-title { display: none; }
.info-link { display: block; padding: 9px 8px; border-bottom: 1px solid #dbd8cc; color: #eee; font-family: "Meiryo UI", Meiryo, sans-serif; font-size: 11px; line-height: 1.55; text-decoration: none; white-space: nowrap; }
.info-link:hover, .info-link.active { background: var(--blue); color: #fff; }
.main-content { min-width: 0; }
.content-body { color: #696969; font-family: Meiryo, "Meiryo UI", sans-serif; font-size: 16px; line-height: 1.65; }
.content-body strong { font-weight: 700; }
.content-body > :first-child { margin-top: 0; }
.content-body h1, .content-body h2 { color: #4e535a; font-weight: 600; line-height: 1.45; }
.content-body h1 { margin: 0 0 1.5rem; font-size: clamp(1.55rem, 3vw, 2rem); }
.content-body h2 { margin: 2.1rem 0 .8rem; padding-bottom: .45rem; border-bottom: 4px dotted #cbd2e1; font-size: 1.35rem; }
.content-body h3 { color: var(--blue-dark); }
.content-body p { margin: 0 0 1.15rem; }
.centered { text-align: center; }
.content-body img { margin-inline: auto; border-radius: 2px; }
.content-body ul, .content-body ol { padding-left: 1.4em; }
.content-body hr { height: 0; border: 0; border-top: 4px dotted #cbd2e1; margin: 2rem 0; }
.content-table { width: 100%; max-width: 100%; margin: 1rem auto 1.6rem; border-collapse: collapse; }
.content-table td, .content-table th { padding: .65rem; vertical-align: top; }
.content-table img { width: auto; }
.meridian-image { width: 300px !important; max-width: 100%; height: auto; border-radius: 5px; box-shadow: 0 0 8px 2px rgba(143,140,143,1); }
.meridian-figure { margin: 24px auto 32px !important; }
.meridian-layout { display: block; width: 100%; }
.meridian-layout tbody, .meridian-layout tr { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; width: 100%; }
.meridian-layout td { display: block; padding: 0; }
.meridian-layout td:nth-child(2) { display: none; }
.meridian-layout td:last-child { width: 300px; }
.orange-info-box { width: 500px; max-width: 100%; margin-inline: auto; }
.orange-info-box td { padding: 20px; background: #f7ad7e; color: #696969; }
.green-info-box { width: 370px; max-width: 100%; margin-inline: auto; box-shadow: 0 0 8px 2px rgba(143,140,143,1); }
.green-info-box td { padding: 10px; background: #d7f49e; color: #808080; font-family: "Meiryo UI", Meiryo, sans-serif; font-size: 16px; text-align: center; }
.page-home .content-body > table:has(.story-card) { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 12px 0; }
.page-home .content-body > table:has(.story-card) > tbody > tr > td { width: 50%; padding: 0; vertical-align: top; }
.story-card { width: 100%; table-layout: fixed; margin: 0; overflow: hidden; border: 1px solid #ccc; background: #f1f1f1; }
.story-card td { padding: .75rem; }
.story-card img { width: 100%; height: auto; }
.blue-panel { background: var(--blue); color: #fff; }
.blue-panel a { color: #d9fffb; }
.light-panel { background: #eee; color: #595d62; }
.feature-grid { background: #eee; border-radius: 12px; border-collapse: separate; box-shadow: 0 0 12px 2px rgba(0,0,0,.8); }
.feature-grid td { width: 50%; }
.feature-grid img { padding: 10px 10px 5px; border-radius: 12px; background: #fff; }
.allergen-nav { align-self: start; }
.allergen-link { display: block; margin: 0 0 18px; }
.allergen-button { width: 160px; max-width: 100%; margin-inline: auto; box-shadow: 0 10px 6px -6px #777; transition: opacity .15s ease, box-shadow .15s ease; }
.allergen-button:hover { opacity: .6; }
.allergen-button:active { opacity: .4; box-shadow: none; }
.allergen-link.active .allergen-button { outline: 3px solid #4a659a; outline-offset: 2px; }
.allergen-overview-grid { display: grid; grid-template-columns: repeat(4, 160px); gap: 22px 16px; justify-content: center; margin: 34px auto; }
.allergen-overview-grid a { display: block; }
.photo-rail { align-self: start; display: grid; gap: 18px; }
.photo-rail img { width: 160px; max-width: 100%; height: auto; }
.seasonal-hero { width: 800px; max-width: 100%; margin: 18px auto 0; }
.seasonal-hero img { width: 100%; aspect-ratio: 800 / 345; border-radius: 5px; object-fit: cover; }
.clinic-name { color: #008080; font-family: Meiryo, "Meiryo UI", sans-serif; font-size: 18px; font-weight: 700; }
.practitioner-english { color: #008080; font-family: Meiryo, "Meiryo UI", sans-serif; font-size: 16px; font-weight: 700; }
.disclaimer { border-top: 1px solid #ddd; color: #999; font-size: 14px; line-height: 1.7; margin-top: 18px; padding-top: 14px; }
.disclaimer + .disclaimer { border-top: 0; margin-top: 0; padding-top: 0; }
.notice { margin-top: 3rem; padding: 18px 20px; border-left: 4px solid var(--blue); background: #f3f5f8; font-size: .9rem; }
.notice p { margin: .3rem 0 0; }
.site-footer { padding: 38px clamp(22px, 5vw, 64px) 24px; background: var(--charcoal); color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 36px; font-family: "Meiryo UI", Meiryo, sans-serif; font-size: 11px; }
.footer-inner strong { display: block; margin-bottom: .65rem; }
.footer-link, .footer-contact a { display: block; color: #fff; text-decoration: none; opacity: .87; }
.footer-link:hover, .footer-contact a:hover { color: #fff; font-weight: 700; opacity: 1; text-decoration: none; }
.copyright { margin: 34px 0 0; border-top: 1px solid #5d5d5d; padding-top: 18px; text-align: center; font-family: Arial, sans-serif; font-size: .7rem; opacity: .8; }

@media (max-width: 760px) {
  .site-body { width: 100%; margin: 0; box-shadow: none; }
  .header-inner { padding: 14px 16px 0; }
  .primary-nav { display: none; }
  .home-primary-nav { display: none; }
  .mobile-nav { display: block; margin-top: 10px; }
  .mobile-nav summary { margin-inline: auto; width: fit-content; padding: 10px 18px; color: #666; cursor: pointer; }
  .mobile-nav-panel { display: grid; grid-template-columns: 1fr; padding: 5px 0 15px; border-top: 1px solid #eee; }
  .mobile-link { padding: 9px 12px; color: #666; text-align: center; text-decoration: none; }
  .mobile-link.active { color: var(--blue-dark); font-weight: 700; }
  .hero { padding: 20px 16px 12px; }
  .site-grid, .page-home .site-grid { display: block; padding: 30px 18px 52px; }
  .info-nav { display: none; }
  .content-body { font-size: .96rem; overflow-wrap: anywhere; }
  .content-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .meridian-layout { overflow: visible; }
  .meridian-layout tbody, .meridian-layout tr { display: block; }
  .meridian-layout td:last-child { width: 100%; margin-top: 24px; }
  .page-home .content-body > table > tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr); }
  .page-home .content-body > table > tbody > tr > td { display: block; width: 100%; }
  .page-home .content-body > table:has(.story-card) { border-spacing: 0; }
  .story-card { margin-bottom: 24px; }
  .feature-grid tr { display: grid; grid-template-columns: 1fr; }
  .feature-grid td { display: block; width: 100%; }
  .allergen-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 38px; }
  .allergen-link { margin: 0; }
  .allergen-overview-grid { grid-template-columns: repeat(3, minmax(0, 160px)); gap: 16px; }
  .photo-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 38px; }
  .photo-rail img { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 460px) {
  .allergen-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .allergen-overview-grid { grid-template-columns: repeat(2, minmax(0, 160px)); }
  .photo-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  body, .site-body { background: #fff; box-shadow: none; }
  .primary-nav, .mobile-nav, .info-nav, .site-footer { display: none; }
  .site-grid { display: block; padding: 20px; }
}
