:root {
  --green: #0f6f5a;
  --green-dark: #074637;
  --green-soft: #e7f3ef;
  --mint: #f4faf7;
  --line: #dce9e4;
  --text: #25332f;
  --muted: #64736f;
  --white: #ffffff;
  --orange: #c9782d;
  --shadow: 0 18px 50px rgba(15, 111, 90, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
  background: var(--white);
}

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

img {
  display: block;
  max-width: 100%;
}

.page-top-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand img {
  width: 54px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.25;
}

.brand small,
.brand em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.brand strong {
  color: var(--green-dark);
  font-size: 22px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  font-weight: 700;
}

.site-nav a {
  color: var(--text);
  transition: color 180ms ease, transform 180ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.site-nav a:hover {
  color: var(--green);
}

/* マウスが使える端末でだけ、浮き上がらせて拡大し、選択中を分かりやすくする。
   文字サイズではなく拡大表示なので、周りの項目の位置はずれない。 */
@media (hover: hover) {
  .site-nav a:hover {
    transform: translateY(-4px) scale(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a {
    transition: color 160ms ease;
  }

  .site-nav a:hover {
    transform: none;
  }
}

.site-nav .header-phone {
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding: 1px 7px;
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  background: var(--orange);
  border-radius: 999px;
  vertical-align: 2px;
  animation: pulse-update 1.6s ease-in-out infinite;
}

@keyframes pulse-update {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .update-badge {
    animation: none;
  }
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 660px;
  padding-top: 112px;
  overflow: hidden;
}

/* 要素が下からふわっと浮き上がる動き。JSが動いた時だけ有効にし、
   万一JSが止まっても内容が消えないようにしている。 */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.js-anim .reveal {
  opacity: 0;
}

.js-anim .reveal.is-visible {
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1400ms ease-in-out;
}

.hero-image.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-image {
    transition: none;
  }
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.78) 39%, rgba(255, 255, 255, 0.12) 72%),
    linear-gradient(0deg, rgba(7, 70, 55, 0.45) 0%, rgba(7, 70, 55, 0) 38%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  align-items: end;
  gap: 28px;
  max-width: 1180px;
  min-height: 548px;
  margin: 0 auto;
  padding: 44px 24px 28px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 13px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  background: var(--green-soft);
  border-radius: 999px;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 720px;
  font-size: 25px;
  line-height: 1.42;
}

.hero h1 .accent {
  color: var(--orange);
}

.hero h1 .hero-line {
  display: block;
  color: var(--green-dark);
  white-space: nowrap;
}

.lead {
  max-width: 500px;
  margin: 18px 0 26px;
  color: var(--text);
  font-size: 17px;
}

.lead span {
  color: var(--orange);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 4px;
  font-weight: 800;
}

.primary-button {
  color: var(--white);
  background: var(--green);
  box-shadow: var(--shadow);
}

.secondary-button {
  color: var(--green);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--green);
}

.today-card,
.hero-news-card {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-info-grid {
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(900px, 100%);
}

.today-card,
.hero-news-card {
  padding: 24px;
  border-radius: 8px;
}

/* 枠は中の色に合わせる。左端だけ太くして、お知らせ一覧の帯と揃える */
.today-card {
  border: 2px solid rgba(15, 111, 90, 0.35);
  border-left-width: 6px;
  border-left-color: var(--green);
}

.today-card.is-closed {
  border-color: rgba(192, 24, 24, 0.35);
  border-left-color: #c01818;
}

.today-card > div:first-child,
.hero-news-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.card-label,
.today-card dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.today-status,
.news-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  color: var(--white);
  background: var(--green);
  border-radius: 999px;
  line-height: 1.3;
}

.today-status.is-closed {
  background: #c01818;
}

.hero-news-card {
  border: 2px solid rgba(217, 130, 43, 0.5);
  border-left-width: 6px;
  border-left-color: var(--orange);
}

.hero-news-card .news-label {
  color: var(--white);
  background: var(--orange);
}

.hero-news-card time {
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-news-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-news-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text);
  line-height: 1.55;
}

.hero-news-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}

.hero-news-text {
  display: block;
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 800;
}

.hero-news-list a {
  display: block;
  margin-top: 4px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-news-card a {
  color: var(--orange);
  font-weight: 800;
}

.today-card dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 0;
}

.today-card .closed-today {
  grid-column: 1 / -1;
  padding: 18px;
  background: #fff1f1;
  border-radius: 6px;
}

.today-card .is-closed dt,
.today-card .is-closed dd {
  color: #c01818;
}

.today-card dd {
  margin: 0;
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.today-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 24px;
}

.section.pale {
  max-width: none;
  background: var(--mint);
}

.section.pale > * {
  max-width: 1132px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 36px;
  text-align: center;
}

.section h2 {
  font-size: 34px;
}

.section-heading p:last-child,
.section-copy p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.mini-grid div {
  padding: 18px;
  background: var(--mint);
  border-left: 5px solid var(--green);
}

.mini-grid strong,
.mini-grid span {
  display: block;
}

.mini-grid span {
  color: var(--muted);
  font-size: 13px;
}

.service-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-card,
.two-cards article,
.doctor-box,
.info-list,
.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(7, 70, 55, 0.07);
}

.service-card,
.two-cards article {
  padding: 28px;
}

.service-card h3,
.two-cards h3 {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 24px;
}

ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 999px;
}

.feature-card {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 22px;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.feature-card div {
  padding: 28px 28px 28px 0;
}

.wide-card {
  grid-column: 1 / -1;
}

.columns-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 20px;
}

.note,
.note-list {
  margin: 22px 0 0;
  padding: 16px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 4px;
}

.note-list p {
  margin: 0 0 6px;
}

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

.two-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.section-photo {
  width: 100%;
  height: 360px;
  margin: 0 0 24px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doctor-box {
  display: grid;
  grid-template-columns: 200px 1.2fr 0.8fr;
  gap: 34px;
  padding: 34px;
}

.doctor-portrait {
  width: 100%;
  height: auto;
  align-self: start;
  border-radius: 8px;
}

.doctor-title {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.doctor-box h3 {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 30px;
  line-height: 1.3;
}

.doctor-box h3 span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.chip-list span {
  padding: 6px 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--green);
  border-radius: 999px;
}

.doctor-box p {
  margin-top: 0;
  color: var(--muted);
}

.doctor-box dl,
.info-list dl {
  margin: 0;
}

.doctor-box dl div,
.info-list dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.doctor-box dt,
.info-list dt {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.doctor-box dd,
.info-list dd {
  margin: 0;
}

.photo-slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mint);
  box-shadow: var(--shadow);
}

.photo-slider-track {
  position: relative;
  min-height: 560px;
}

.photo-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
}

.photo-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.photo-slide img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center;
}

.compact-slider .photo-slider-track {
  min-height: 420px;
}

.compact-slider .photo-slide img {
  height: 420px;
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--green-dark);
  font-size: 34px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  transform: translateY(-50%);
  cursor: pointer;
}

.slider-prev {
  left: 18px;
}

.slider-next {
  right: 18px;
}

.slider-dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  cursor: pointer;
}

.slider-dots button.is-active {
  background: var(--green);
  border-color: var(--green);
}

.hours-wrap {
  display: grid;
  gap: 24px;
}

.feature-grid,
.symptom-grid,
.consult-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.symptom-grid {
  grid-template-columns: repeat(2, 1fr);
}

.consult-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid article,
.symptom-grid article,
.consult-grid p,
.news-list article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(7, 70, 55, 0.07);
}

.feature-grid article,
.symptom-grid article {
  padding: 26px;
}

.feature-grid h3,
.symptom-grid h3,
.news-list h3 {
  margin: 0 0 10px;
  color: var(--green-dark);
}

.feature-grid p,
.consult-grid p,
.news-list p,
.center-note {
  color: var(--muted);
}

.policy-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(7, 70, 55, 0.07);
}

.policy-list li {
  color: var(--muted);
}

.policy-list li + li {
  margin-top: 12px;
}

.consult-grid p {
  margin: 0;
  padding: 18px;
  font-weight: 700;
}

.consult-cta {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 720px;
  margin: 30px auto 0;
  padding: 28px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.consult-cta strong {
  color: var(--green-dark);
}

.consult-cta span {
  color: var(--muted);
  font-size: 14px;
}

.center-note {
  margin: 22px 0 0;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

th,
td {
  padding: 18px 10px;
  text-align: center;
  border: 1px solid var(--line);
}

thead th {
  color: var(--white);
  background: var(--green);
}

tbody th {
  color: var(--green-dark);
  background: var(--mint);
}

td {
  color: var(--green);
  font-weight: 800;
}

.hours-note {
  padding: 24px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-left: 6px solid var(--green);
  border-radius: 8px;
}

.hours-note p {
  margin: 6px 0 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 22px;
  color: var(--green-dark);
  font-weight: 800;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.news-list {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.news-list article {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  padding: 24px;
  border-left: 5px solid var(--green);
}

.news-list time {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: fit-content;
  padding: 4px 10px;
  color: var(--orange);
  background: #fff5ea;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.news-list h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.55;
}

.news-list p {
  margin: 6px 0 0;
  line-height: 1.75;
}

.about-illust {
  display: block;
  width: 100%;
  height: auto;
  margin: 22px 0 0;
}

.news-illust {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin: 14px 0 6px;
  border-radius: 6px;
}

.news-schedule {
  width: 100%;
  max-width: 400px;
  margin: 16px 0 4px;
  border-collapse: collapse;
  font-size: 15px;
}

.news-schedule caption {
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.news-schedule th,
.news-schedule td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  font-weight: 700;
  text-align: center;
}

.news-schedule th {
  width: 54%;
  background: var(--mint);
}

.news-schedule td {
  background: var(--white);
  color: var(--green);
}

.news-schedule .is-closed th,
.news-schedule .is-closed td {
  color: #c0392b;
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.info-list {
  padding: 30px;
}

.info-list a {
  color: var(--green);
  font-weight: 800;
}

iframe {
  width: 100%;
  min-height: 470px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 24px 88px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--green-dark);
}

.footer > * {
  max-width: 1132px;
}

.footer strong,
.footer a {
  color: var(--white);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 780px;
  margin-top: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mobile-cta {
  display: none;
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .menu-button {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
  }

  .menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green-dark);
  }

  .site-nav.is-open {
    position: absolute;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    inset: 75px 16px auto;
    gap: 2px;
    max-height: calc(100vh - 165px);
    overflow-y: auto;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open a {
    padding: 13px 12px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  /* よく見られる4つをメニューの上部にまとめる。項目は減らさず順番だけ変える */
  .site-nav.is-open a[href="#hours"] {
    order: -5;
  }

  .site-nav.is-open a[href="#services"] {
    order: -4;
  }

  .site-nav.is-open a[href="#news"] {
    order: -3;
  }

  .site-nav.is-open a[href="#access"] {
    order: -2;
    margin-bottom: 10px;
    border-bottom-color: var(--green);
  }

  .site-nav.is-open .nav-key {
    background: var(--mint);
    font-size: 16px;
    font-weight: 800;
  }

  .site-nav.is-open .header-phone {
    order: -6;
    margin-bottom: 8px;
    padding: 14px 12px;
    color: var(--white);
    font-size: 17px;
    text-align: center;
    background: var(--green);
    border-bottom: 0;
    border-radius: 6px;
  }

  .hero {
    min-height: 700px;
    padding-top: 76px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: 624px;
    align-items: end;
  }

  .hero h1 {
    font-size: 22px;
  }

  .today-card {
    grid-column: auto;
  }

  .hero-info-grid {
    grid-column: auto;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .split-section,
  .service-layout,
  .two-cards,
  .doctor-box,
  .access-grid,
  .feature-grid,
  .symptom-grid,
  .consult-grid {
    grid-template-columns: 1fr;
  }

  /* 1列に積み重なるので、肖像画が画面いっぱいに広がらないようにする */
  .doctor-portrait {
    max-width: 190px;
    margin: 0 auto;
  }

  .feature-card {
    display: block;
    grid-template-columns: 1fr;
  }

  .feature-card img {
    height: 260px;
    min-height: 0;
  }

  .feature-card div {
    position: relative;
    z-index: 1;
    padding: 24px 28px 28px;
    background: var(--white);
  }

  .columns-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  /* スマホでは文章の下だと埋もれるので、セクションの一番上に出す */
  .section-copy {
    display: flex;
    flex-direction: column;
  }

  .about-illust {
    order: -1;
    margin: 0 0 18px;
  }

  /* 横長のままだと細い帯になり絵柄が分からなくなるため、
     左右を切り落として中央のご夫婦とお月様を大きく見せる */
  .news-illust {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    margin: 12px 0 4px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 44px;
    height: 38px;
  }

  .brand strong {
    font-size: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 75px;
  }

  .hero-media {
    position: relative;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .hero-image {
    object-position: 76% center;
  }

  .hero-shade {
    display: none;
  }

  .hero-content {
    display: block;
    min-height: auto;
    padding: 8px 16px 22px;
    background: var(--white);
  }

  .hero h1 {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.85;
  }

  .hero h1 .hero-line {
    display: block;
    white-space: normal;
  }

  .hero-badge {
    margin-bottom: 12px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .lead {
    margin: 12px 0 14px;
    font-size: 12px;
    line-height: 1.85;
  }

  .hero-actions,
  .today-card dl {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .today-card {
    margin-top: 22px;
    padding: 18px;
  }

  .hero-info-grid {
    margin-top: 22px;
    gap: 12px;
  }

  .hero-info-grid .today-card {
    margin-top: 0;
  }

  .hero-news-card {
    padding: 18px;
  }

  .hero-news-card h2 {
    font-size: 16px;
  }

  .news-list article {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px;
  }

  .news-list h3 {
    font-size: 16px;
  }

  .news-list p {
    font-size: 14px;
  }

  .section {
    padding: 66px 16px;
  }

  .section h2 {
    font-size: 27px;
  }

  .section-photo,
  .photo-slide img {
    height: 260px;
  }

  .compact-slider .photo-slide img {
    height: 260px;
    object-fit: contain;
    background: var(--mint);
  }

  .photo-slider-track,
  .compact-slider .photo-slider-track {
    min-height: 260px;
  }

  .slider-button {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }

  .mini-grid,
  .columns-list {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 12px 6px;
    font-size: 13px;
  }

  .doctor-box dl div,
  .info-list dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer {
    display: block;
    padding-bottom: 132px;
  }

  .mobile-cta {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px 10px;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(7, 70, 55, 0.12);
  }

  /* 1段目に4項目、2段目に電話ボタンを横幅いっぱいで並べる */
  .mobile-cta-scroll {
    display: flex;
    flex: 1 1 100%;
    gap: 6px;
    min-width: 0;
  }

  .mobile-cta .mobile-cta-scroll a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 0 4px;
    font-size: 12px;
  }

  .mobile-cta-scroll::-webkit-scrollbar {
    display: none;
  }

  .mobile-cta a.mobile-cta-phone {
    flex: 1 1 100%;
    grid-auto-flow: column;
    gap: 10px;
    min-height: 46px;
    font-size: 15px;
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
  }

  .mobile-cta-phone span {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .mobile-cta a {
    display: inline-grid;
    flex: 0 0 auto;
    min-width: 96px;
    min-height: 44px;
    padding: 0 12px;
    place-items: center;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    background: var(--mint);
    border: 1px solid var(--line);
    border-radius: 4px;
  }

  .mobile-cta a:hover {
    color: var(--white);
    background: var(--green);
    border-color: var(--green);
  }
}
