:root {
  --green-900: #2f8f6b;
  --green-800: #36a579;
  --green-700: #48bd8b;
  --green-600: #65cfa0;
  --green-100: #e3f8ef;
  --green-50: #f5fcf8;
  --mint: #d3f5e4;
  --orange: #e6812d;
  --red: #bf3028;
  --ink: #1f2f2a;
  --muted: #64756f;
  --line: #dce8e2;
  --paper: #ffffff;
  --bg: #f8fcfa;
  --shadow: 0 12px 32px rgb(47 155 115 / 12%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-800);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.75em;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin-top: 0;
}

#wrap {
  min-height: 100vh;
  background: var(--bg);
}

.innerBox {
  width: min(1120px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
}

.site-topbar {
  background: var(--green-100);
  color: var(--green-900);
  border-bottom: 1px solid var(--line);
}

.site-topbar .innerBox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}

#site-description,
.site-topbar-contact a {
  color: var(--green-900);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgb(6 59 45 / 8%);
  backdrop-filter: blur(12px);
}

#headerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

#site-title {
  margin: 0;
}

.site-header-logo img {
  display: block;
  width: auto;
  max-height: 72px;
}

.site-header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.site-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.68rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-action-phone,
.primary-button {
  color: #fff;
  background: var(--green-700);
  border: 1px solid var(--green-700);
}

.site-action-phone:hover,
.primary-button:hover {
  color: #fff;
  background: var(--green-900);
}

.site-action-map,
.secondary-button {
  color: var(--green-800);
  background: var(--green-50);
  border: 1px solid var(--line);
}

.site-action-map:hover,
.secondary-button:hover {
  color: var(--green-900);
  background: var(--mint);
}

#gMenu {
  border-top: 1px solid var(--line);
  background: #fff;
}

#gMenuInner {
  padding: 0;
}

.headMainMenu .menu {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  list-style: none;
}

.headMainMenu .menu li {
  background: #fff;
}

.headMainMenu .menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 0.5rem;
  color: var(--ink);
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
}

.headMainMenu .menu a:hover,
.headMainMenu .menu a:focus-visible {
  color: #fff;
  background: var(--green-700);
  outline: none;
}

#main {
  padding: 2rem 0 4rem;
}

#container,
#content {
  width: auto;
  max-width: none;
  float: none;
  background: transparent;
}

#content-main {
  display: grid;
  gap: 2rem;
}

#content-main > * {
  min-width: 0;
}

.home-summary > *,
.content-grid > *,
.notice-panel > *,
.doctor-schedule > *,
.access-section > * {
  min-width: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(20rem, 0.42fr) minmax(0, 1fr);
  min-height: clamp(380px, 42vw, 500px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--green-50);
  box-shadow: var(--shadow);
}

.home-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero::after {
  display: none;
}

.home-hero-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  color: var(--ink);
}

.home-hero-kicker,
.section-kicker {
  margin: 0 0 0.75rem;
  color: var(--green-700);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero-kicker {
  color: var(--green-900);
}

.home-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.22;
  white-space: nowrap;
}

.home-hero-copy {
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  line-height: 1.85;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-hero .secondary-button {
  color: #fff;
  background: rgb(0 0 0 / 20%);
  border-color: rgb(255 255 255 / 52%);
}

.home-hero .secondary-button:hover {
  color: var(--green-900);
  background: #fff;
}

.home-summary,
.content-grid,
.access-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.summary-card,
.content-panel,
.notice-panel,
.home-visit-panel,
.home-services,
.doctor-schedule,
.access-section,
.entry-content,
.news-entry {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-card {
  padding: 1.25rem;
}

.summary-label {
  margin-bottom: 0.35rem;
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.summary-main {
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.55;
}

.summary-main a {
  text-decoration: none;
}

.summary-note,
.panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-visit-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.7fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(90deg, var(--green-50), #fff);
  border-left: 6px solid var(--green-700);
}

.home-visit-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.home-visit-text p {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.75;
}

.home-visit-text p:last-child {
  margin-bottom: 0;
}

.notice-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.8fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border-left: 6px solid var(--orange);
}

.notice-panel h2,
.home-services h2,
.content-panel h2,
.doctor-schedule h2,
.access-section h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.notice-list p {
  margin-bottom: 0.55rem;
}

.notice-list p:last-child {
  margin-bottom: 0;
}

.notice-list strong,
.has-vivid-red-color,
.has-inline-color.has-vivid-red-color,
.has-text-color.has-vivid-red-color,
.closed-note {
  color: var(--red) !important;
}

.home-services,
.doctor-schedule {
  padding: 1.6rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: grid;
  gap: 0.5rem;
  min-height: 152px;
  padding: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-card:hover {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--green-600);
}

.service-card span {
  color: var(--green-900);
  font-size: 1.15rem;
  font-weight: 800;
}

.service-card small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.content-panel {
  padding: 1.6rem;
}

.document-link {
  padding: 0.85rem 1rem;
  background: #fff9f2;
  border: 1px solid #f3d2b3;
  border-radius: 8px;
}

.document-link a {
  color: #97551b;
  font-weight: 800;
  text-decoration: none;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.news-list li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.news-list time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.news-list a {
  font-weight: 800;
  text-decoration: none;
}

.wp-block-table {
  width: 100%;
  margin: 1rem 0;
  overflow-x: auto;
}

.wp-block-table table,
table.wp-block-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.wp-block-table td,
.wp-block-table th,
table.wp-block-table td,
table.wp-block-table th {
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  vertical-align: middle;
}

.wp-block-table tr:first-child td,
.wp-block-table th {
  color: var(--green-900);
  font-weight: 800;
  background: var(--green-100);
}

.doctor-schedule {
  display: grid;
  grid-template-columns: 0.25fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.doctor-schedule figure,
.wp-block-image {
  margin: 0;
}

.doctor-schedule img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.access-section {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  padding: 1.6rem;
}

.access-map figure,
.ggmap figure {
  margin: 0;
}

.ggmap iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
}

.page-title-banner {
  padding: 1.5rem 1.75rem;
  color: var(--green-900);
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-title-banner h1 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.entry-content,
.news-entry {
  padding: 1.8rem;
}

.entry-content h3,
.entry-content h4,
.entry-content h5,
.news-entry h1 {
  margin-top: 1.5em;
}

.entry-content h3,
.entry-content h4,
.news-entry h1 {
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--green-100);
}

.entry-content ul {
  padding-left: 1.3rem;
}

.entry-content li + li {
  margin-top: 0.35rem;
}

.entry-content hr,
.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.entry-content::after {
  display: block;
  clear: both;
  content: "";
}

.director-photo {
  float: right;
  margin: 0 0 1rem 1.5rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.wp-block-gallery {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.wp-block-gallery.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wp-block-gallery.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blocks-gallery-item figure {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.blocks-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.blocks-gallery-item figcaption {
  margin: 0;
  padding: 0.55rem 0.5rem;
  color: var(--green-900);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  background: var(--green-50);
}

.news-entry-meta {
  color: var(--muted);
}

#footerSection {
  color: var(--ink);
  background: var(--green-100);
  border-top: 1px solid var(--line);
}

#footer,
#siteBottom {
  background: transparent;
}

#footerInner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
}

#footerOutline {
  margin: 0;
}

#footerOutline dt,
#footerOutline dd,
#copy {
  color: var(--ink);
}

#footerOutline dt {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  justify-content: flex-end;
}

.footer-menu a {
  color: var(--green-900);
  text-decoration: none;
}

#siteBottomInner {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .headMainMenu .menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-hero {
    grid-template-columns: minmax(18rem, 0.48fr) minmax(0, 1fr);
    min-height: 400px;
  }

  .home-hero-overlay {
    padding: 1.5rem;
  }

  .home-hero h1 {
    font-size: clamp(2rem, 4.8vw, 2.8rem);
  }

  .home-summary,
  .service-grid,
  .content-grid,
  .doctor-schedule,
  .access-section,
  .home-visit-panel {
    grid-template-columns: 1fr;
  }

  .notice-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .innerBox {
    width: min(100% - 24px, 1120px);
  }

  .site-topbar .innerBox,
  #headerInner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-topbar-contact {
    display: none;
  }

  .site-header-logo img {
    max-height: 62px;
  }

  .site-header-actions {
    width: 100%;
  }

  .site-action {
    flex: 1;
  }

  .headMainMenu .menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .headMainMenu .menu a {
    min-height: 44px;
    font-size: 0.9rem;
  }

  #main {
    padding: 1rem 0 2rem;
  }

  .home-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--green-50);
  }

  .home-hero-image {
    order: -1;
    position: relative;
    height: 320px;
    object-position: center top;
  }

  .home-hero::after {
    display: none;
  }

  .home-hero-overlay {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem 1.15rem;
  }

  .home-hero-heading {
    margin-bottom: 0.75rem;
  }

  .home-hero-kicker {
    margin-bottom: 0.55rem;
  }

  .home-hero h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1.28;
  }

  .home-hero-copy {
    max-width: none;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
  }

  .home-hero-actions,
  .footer-menu {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-card,
  .notice-panel,
  .home-visit-panel,
  .home-services,
  .content-panel,
  .doctor-schedule,
  .access-section,
  .entry-content,
  .news-entry {
    padding: 1.2rem;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .wp-block-table table {
    min-width: 640px;
  }

  .wp-block-gallery.columns-2,
  .wp-block-gallery.columns-3 {
    grid-template-columns: 1fr;
  }

  .director-photo {
    float: none;
    margin: 0 0 1rem;
  }

  #footerInner {
    flex-direction: column;
  }
}
