:root { --atsumi-treatment-image: url("../images/top-waiting-room.jpg"); }
/* Scoped customization of the user-specified reference-match INDEX.
   Photo framing, page width and the original section vocabulary remain the baseline. */
:root {
  --reference-main: #6aa58a;
  --reference-pale: #e8f3ed;
  --reference-accent: #679980;
  --reference-warm: #f7f8f2;
  --reference-ink: #333333;
  --atsumi-primary: #008763;
  --atsumi-text: #245b45;
  --atsumi-font: Meiryo, 'メイリオ', 'Noto Sans JP', sans-serif;
  --atsumi-header-height: 80px;
  --atsumi-footer: #496056;
}

body, button, input, .brand small, .brand h1, .header-phone, .reference-title, .reference-title .en, .reference-card, .reference-bracket, .card-heading h2, #hours h3, .reference-service-extra, .footer-names strong {
  font-family: var(--atsumi-font);
}

body {
  color: var(--reference-ink);
}

.topbar {
  gap: 24px;
  min-width: 0;
  height: auto;
  min-height: 80px;
  padding-block: 10px;
}

.brand {
  min-width: 0;
  white-space: normal;
  flex: 1;
}

.brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}

.brand small {
  font-size: 15px;
  line-height: 1;
}

.brand h1 {
  line-height: 1;
}

.brand > div {
  min-width: 0;
}

.brand wbr {
  display: inline;
}

.header-phone {
  font-size: 24px;
}

.header-phone > svg {
  fill: none;
  stroke-width: 2.7;
  color: var(--atsumi-primary);
}

.header-phone .header-contact-copy small {
  display: block;
  font: 400 13px/1.5 var(--atsumi-font);
}

.header-phone .header-contact-copy .gh-en {
  display: none;
}

.header-phone strong {
  font-weight: 400;
}

.topbar .font-tools {
  margin-left: auto;
  font-size: 13px;
  gap: 8px;
}

.hero-navigation {
  top: var(--atsumi-header-height);
  background: var(--reference-pale);
}

.hero-navigation .radial-choice, .hero-navigation .reference-home {
  color: var(--atsumi-text);
}

.hero-navigation .reference-home::after {
  background: var(--atsumi-primary);
}

.hero-navigation > * {
  min-width: 0;
}

.hero-navigation .radial-choice:hover, .reference-home:hover {
  background: #d8eade;
}

@media (min-width: 1025px) {
  .hero-navigation {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .reference-opening {
    padding-top: calc(var(--atsumi-header-height) + 48px);
  }

}

.medical-menu-close, .medical-menu-grid a {
  color: var(--atsumi-text);
}

.medical-menu-grid {
  overflow-y: auto;
  max-height: min(65vh, 540px);
}

.reference-card-title {
  color: var(--atsumi-text);
  background: var(--reference-pale);
}

.reference-title {
  color: var(--reference-ink);
}

/* The only deleted hero element is the user-rejected white facility-name overlay. */
.reference-hero-name {
  display: none;
}

/* Pickup candidates reuse the base's photo-guide or large-icon vocabulary. */
#pickup {
  margin: 0 auto 64px;
  max-width: 1180px;
  width: 95%;
}

#pickup .reference-title {
  margin-bottom: 32px;
}

.pickup-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40.625px;
}

#pickup [data-pickup-card] {
  min-width: 0;
}

#pickup .reference-card {
  height: 100%;
}

#pickup .reference-card-title {
  width: 88%;
  font-size: 15px;
}

#pickup .reference-card p {
  font-size: 15px;
}

.pickup-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid #d8e5dd;
}

[data-pickup-card]:last-child .pickup-icon-link {
  border-right: 0;
}

.pickup-icon {
  color: var(--atsumi-primary);
  height: 82px;
  margin-bottom: 18px;
}

.pickup-icon > svg {
  width: 72px;
  height: 72px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pickup-icon-name {
  font-size: 16px;
  font-weight: 600;
}

.pickup-icon-description {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.8;
}

.pickup-icon-action {
  margin-top: 16px;
  font-size: 14px;
  color: var(--atsumi-primary);
}

.pickup-icon-link:hover {
  background: #f3f8f4;
}

.pickup-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.pickup-controls button {
  width: 44px;
  height: 44px;
  color: var(--atsumi-text);
  background: var(--reference-pale);
  font-size: 20px;
}

.pickup-controls .pickup-position {
  font-size: 14px;
}

/* Soften the original bracket expression, keeping its centered title and surrounding space. */
.reference-bracket {
  margin: 0 72px 40px;
  padding: 0 20px 20px;
  line-height: 1.7;
}

.reference-bracket::before {
  content: none;
}

.reference-bracket::after {
  width: 48px;
  height: 4px;
  bottom: 0;
  left: calc(50% - 24px);
  border: 0;
  border-radius: 4px;
  background: var(--reference-main);
}

.reference-message-copy .pill {
  text-decoration: none;
  color: var(--atsumi-primary);
}

/* Retain the approved guide contents inside the introduction, in their compact role. */
.reference-message-copy .early-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100% !important;
  margin-top: 24px !important;
  margin-bottom: 0 !important;
}

.reference-message-copy .early-banner {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(100%, 352px) !important;
  max-width: none !important;
  min-height: 94px;
  height: auto !important;
  padding: 12px 14px;
  text-align: left;
  background: white !important;
  border: 1px solid #cfdfd5;
}

.reference-message-copy .early-banner:last-child {
  border-right: 1px solid #cfdfd5;
}

.reference-message-copy .early-banner:hover {
  background: #edf6ef !important;
}

.reference-message-copy .early-banner svg {
  width: 32px !important;
  height: 32px !important;
  margin: 0;
}

.reference-message-copy .guide-figure {
  align-self: center;
}

.reference-message-copy .guide-copy {
  display: block;
  min-width: 0;
}

.reference-message-copy .transport-audience {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}

.reference-message-copy .transport-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.reference-message-copy .guide-name {
  font-size: 16px;
  line-height: 1.65;
}

.reference-message-copy .transport-title-token {
  display: inline;
}

.reference-message-copy .transport-support {
  font-size: 14px;
  color: #A15B5B;
}

.reference-message-copy .mobile-support {
  display: inline;
}

.reference-message-copy .guide-footer {
  display: flex;
  justify-content: flex-end;
  font-size: 12px;
  line-height: 1.7;
}

.reference-message-copy .guide-footer > .transport-support {
  display: none;
}

.reference-message-copy .guide-secondary .guide-action {
  float: right;
  margin-left: 10px;
  font-size: 12px;
  line-height: 1.7;
}

.reference-message-copy .blog-title {
  display: block;
  font-size: 16px;
  line-height: 1.65;
}

.reference-message-copy .blog-subtitle {
  display: block;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 400;
}

.reference-message-copy .guide-token {
  display: inline-block;
}

.reference-message-copy .guide-cue {
  margin-left: 6px;
}

/* Specialties form an independently growing directory before the hours title. */
.reference-treatment {
  background: linear-gradient(#eef5f0ef, #eef5f0ef), var(--atsumi-treatment-image) center / cover;
}

#medical-intro {
  padding-bottom: 40px;
  margin-bottom: 44px;
  border-bottom: 1px solid #c7dbce;
}

#medical-intro .card-heading {
  justify-content: center;
  margin-bottom: 28px;
}

#medical-intro .card-heading h2 {
  font-size: 26px;
}

.medical-intro-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 16px;
}

.medical-intro-links li {
  display: flex;
  min-width: 0;
}

.medical-intro-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  background: white;
  border: 1px solid #b9d4c4;
  font-size: 18px;
  line-height: 1.7;
}

.medical-intro-links a:hover {
  background: var(--reference-pale);
}

#medical-intro[data-subject-count='1'] .medical-intro-links {
  max-width: 300px;
  margin-inline: auto;
}

#hours .doctor-scroll-frame, #hours .source-table-scroll, #hours .table-wrap {
  width: 100%;
  max-width: none;
}

#hours tr > *:first-child {
  width: 20%;
}

#hours th, #hours td {
  border-color: #bdcfc2;
}

#hours tr:first-child th, #hours tr:first-child td {
  background: #dcece2;
  color: var(--atsumi-text);
}

#hours th.bgcolor1 {
  white-space: nowrap;
}

.reference-news {
  padding: 60px 0;
}

.reference-news .info-card {
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
}

.reference-news #news {
  margin-top: 0;
}

.reference-news #news > .card-heading {
  display: none;
}

.reference-news .news-list summary {
  align-items: start;
  gap: 24px;
}

.reference-feature {
  margin-bottom: 64px;
}

/* Footer: contact and related links at left, map at right. No hours/specialty directory. */
.atsumi-footer {
  padding: 54px 0 24px;
  color: white;
  background: var(--atsumi-footer);
}

.atsumi-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.atsumi-footer .footer-identity {
  margin-bottom: 24px;
}

.atsumi-footer .footer-identity > img {
  width: 54px;
  height: 54px;
}

.atsumi-footer .footer-names strong {
  display: block;
  font: 600 26px/1.6 var(--atsumi-font);
}

.atsumi-footer .footer-names > span {
  font-size: 14px;
}

.atsumi-footer #access {
  display: block;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  box-shadow: none;
  text-align: left;
}

.atsumi-footer #access .card-heading {
  display: none;
}

.atsumi-footer #access .contact-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 25px/1.5 var(--atsumi-font);
  margin: 12px 0 6px;
}

.atsumi-footer #access .contact-phone svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  color: white;
}

.atsumi-footer #access > p {
  font-size: 15px;
  line-height: 1.9;
  margin: 6px 0;
}

.atsumi-footer #access > .pill {
  display: inline-block;
  padding: 10px 0;
  background: none;
  color: white;
  text-align: left;
}

.atsumi-footer .footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin-top: 26px;
}

.atsumi-footer .footer-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff50;
  font-size: 15px;
}

.atsumi-footer .footer-links a:first-child {
  grid-column: 1 / -1;
}

.atsumi-footer .footer-links a:hover {
  color: #d6eadb;
}

.atsumi-footer-map h2 {
  margin-bottom: 14px;
  font: 600 20px/1.5 var(--atsumi-font);
}

.map-shell {
  display: grid;
  place-items: center;
  min-height: 300px;
  border: 1px solid #d9e4dc;
  background: #f4f7f2;
  color: var(--atsumi-text);
  text-align: center;
}

.map-shell .map-pin {
  width: 32px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.map-shell button {
  display: block;
  margin: 10px auto;
  padding: 12px 20px;
  background: var(--atsumi-primary);
  color: white;
  font-size: 16px;
  min-height: 44px;
}

.map-shell a {
  font-size: 14px;
}

.map-shell iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.atsumi-footer .reference-copyright {
  margin-top: 32px;
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .topbar {
    gap: 16px;
  }

  .brand h1 {
    font-size: 25px;
  }

  .pickup-cards {
    gap: 3.4%;
  }

}

@media (max-width: 1024px) {
  .topbar {
    min-height: 52px;
    height: auto;
    padding-block: 3px;
  }

  .brand {
    white-space: normal;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand h1 {
    font-size: 30px;
    line-height: 1;
  }

  .brand small {
    font-size: 15px;
  }

  .reference-opening {
    padding-top: var(--atsumi-header-height);
    margin-bottom: 40px;
  }

  .reference-mobile-fonts {
    padding: 0 0 40px;
  }

  .atsumi-footer-grid {
    gap: 32px;
  }

}

@media (max-width: 640px) {
  .topbar {
    min-height: 54px;
    padding-block: 0;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand h1 {
    font-size: 16px;
    line-height: 1.1;
  }

  .brand small {
    font-size: 12px;
    line-height: 1;
    margin-bottom: 4px;
  }

  .opening-utilities {
    flex: 0 0 auto;
  }

  .reference-opening {
    margin-bottom: 24px;
  }

  #pickup {
    margin-bottom: 48px;
  }

  #pickup .reference-title {
    margin-bottom: 24px;
  }

  .pickup-cards {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pickup-icon-link {
    padding: 12px 24px 20px;
    border-right: 0;
  }

  .pickup-icon {
    height: 64px;
    margin-bottom: 12px;
  }

  .pickup-icon > svg {
    width: 60px;
    height: 60px;
  }

  .pickup-icon-description {
    margin-top: 8px;
  }

  .pickup-icon-action {
    margin-top: 10px;
  }

  #pickup .reference-card {
    margin-bottom: 0;
  }

  #pickup .reference-card-title {
    padding: 14px 12px;
    font-size: 14px;
  }

  .reference-bracket {
    margin: 0 0 30px;
    padding: 0 10px 20px;
  }

  .reference-message-copy .early-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reference-message-copy .early-banner {
    width: 100% !important;
    min-height: 0;
    padding: 12px 14px;
  }

  .reference-message-copy .transport-audience {
    font-size: 12px;
  }

  .reference-message-copy .transport-name-row {
    gap: 6px;
  }

  .reference-message-copy .guide-name, .reference-message-copy .blog-title {
    font-size: 16px;
  }

  .reference-message-copy .guide-token {
    display: inline;
  }

  .reference-message-copy .transport-support {
    font-size: 14px;
  }

  #medical-intro .card-heading h2 {
    font-size: 22px;
  }

  .medical-intro-links {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 10px;
  }

  .medical-intro-links a {
    padding: 12px 10px;
    gap: 8px;
    font-size: 18px;
    min-height: 60px;
  }

  #hours tr > *:first-child {
    width: 27%;
  }

  #hours th, #hours td {
    padding: 12px 3px;
    letter-spacing: 0;
  }

  #hours th.bgcolor1 br {
    display: none;
  }

  .reference-news {
    padding-block: 40px;
  }

  .atsumi-footer {
    padding-top: 36px;
  }

  .atsumi-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .atsumi-footer .footer-identity {
    justify-content: flex-start;
    text-align: left;
    margin-bottom: 20px;
  }

  .atsumi-footer .footer-names strong {
    font-size: 22px;
  }

  .atsumi-footer #access .contact-phone {
    justify-content: flex-start;
  }

  .atsumi-footer #access > .pill {
    max-width: none;
    margin-top: 0;
  }

  .atsumi-footer .footer-links {
    margin-top: 20px;
  }

}

/* Resolve intrinsic width without shrinking the established guide text. */
.reference-message-copy .early-banner {
  padding-inline: clamp(6px, calc((100% - 312px) / 2), 14px);
  letter-spacing: 0;
}

.reference-message-copy .transport-name-row {
  letter-spacing: 0;
}

.reference-message-copy .transport-name-row .guide-name {
  white-space: nowrap;
}

/* The existing native hours engine uses 960px, independently of header mode. */
@media (min-width: 641px) and (max-width: 959px) {
  #hours .hours-overview-group {
    display: block;
  }

  #hours-details > summary {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
  }

}

/* Match the retained pickup engine's 720px manual-switch threshold. */
@media (min-width: 641px) and (max-width: 720px) {
  .pickup-cards {
    grid-template-columns: 1fr;
  }

  #pickup .reference-card {
    max-width: 480px;
    margin-inline: auto;
  }

}

