:root {
  --theme-green: #79b98d;
  --theme-green-soft: #eef6ea;
  --theme-green-deep: #4f8f6a;

  --theme-blue-soft: #eaf6fb;
  --theme-blue-line: #d8ebf3;

  --theme-cream: #fbf8f1;
  --theme-bg: #f9f6ef;
  --theme-panel: #fffdf8;
  --theme-line: #e7e0d2;

  --theme-text: #5a4b3d;
  --theme-muted: #7a6d61;

  --theme-shadow: rgba(79, 143, 106, 0.08);
  --theme-shadow-strong: rgba(79, 143, 106, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  background: linear-gradient(180deg, #fbfaf5 0%, #f7f4ee 100%);
  color: var(--theme-text);
  line-height: 1.8;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  margin: 0;
  padding: 0;
}

.main {
  display: block;
}

/* =========================
   Typography
   ========================= */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-copy h1,
.treatment-name,
.top-info-card-title,
.blog-title,
.footer-name,
.recruit-block-title,
.recruit-complete-title,
.recruit-sidebar-title,
.page-title,
.entry-title {
  font-family: "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
  color: #5a4b3d;
}

input, textarea, select, button {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
}

p, li, td, th, dt, dd, a {
  font-family: "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  font-weight: 700;
}

/* =========================
   Header / Navigation
   ========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--theme-line);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1002;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-logo img {
  height: 42px;
  width: auto;
}

.header-nav {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list-main {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
  padding-bottom: 16px;
  min-width: 0;
}
.nav-item ul {
  
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  color: var(--theme-text);
  font-weight: 700;
  font-size: 15px;
  transition: .2s;
  white-space: nowrap;
}

.nav-item > a:hover {
  color: var(--theme-green-deep);
}

.nav-item.has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid var(--theme-green-deep);
  border-bottom: 2px solid var(--theme-green-deep);
  transform: rotate(45deg) translateY(-2px);
}

.dropdown {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  min-width: 240px;
  padding: 12px;
  border-radius: 16px;
  background: var(--theme-panel);
  border: 1px solid var(--theme-line);
  box-shadow: 0 10px 24px var(--theme-shadow);
  list-style: none;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown li + li {
  margin-top: 6px;
}

.dropdown li a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--theme-text);
  font-size: 16px;
  white-space: nowrap;
  transition: .2s;
}

.dropdown li a:hover {
  background: var(--theme-green-soft);
  color: var(--theme-green-deep);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--theme-line);
  border-radius: 12px;
  background: var(--theme-panel);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  flex: 0 0 auto;
  position: relative;
  z-index: 1003;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--theme-green-deep);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(40, 40, 40, 0.35);
  z-index: 1001;
}



.nav-open {
  overflow: hidden;
}

/* =========================
   Hero
   ========================= */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #eef6ea 58%, #f8fbfe 100%);
  padding: 54px 20px 48px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}

.hero-slider {
  flex: 1 1 50%;
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 28px;
  border: 1px solid var(--theme-line);
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(79, 143, 106, 0.08);
}

@media screen and (max-width: 1080px) {
  .hero-slider{
    min-height: 320px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

 

.hero-btn.prev,
.hero-btn.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--theme-line);
  background: rgba(255,255,255,.94);
  color: var(--theme-green-deep);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.hero-btn.prev { left: 14px; }
.hero-btn.next { right: 14px; }

.hero-copy {
  flex: 1 1 50%;
  padding-right: 10px;
}

.hero-subcopy {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--theme-muted);
  
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.18;
  color: #59493d;
}

.hero-text {
  margin: 0 0 22px;
  color: var(--theme-muted);
  font-size: 18px;
  line-height: 1.95;
  max-width: 560px;
}

.hero-subcopy,
.hero-copy h1,
.hero-text {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 3s ease forwards;
}

.hero-subcopy {
  animation-delay: 0.15s;
}

.hero-copy h1 {
  animation-delay: 0.35s;
}

.hero-text {
  animation-delay: 2s;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #84c49a 0%, #6dac83 100%);
  color: #fff;
  font-weight: 700;
  border: 1px solid #6dac83;
  box-shadow: 0 8px 18px rgba(109, 172, 131, 0.18);
  transition: .2s;
}

.hero-cta:hover {
  background: linear-gradient(180deg, #73b88a 0%, #5f9f77 100%);
  border-color: #5f9f77;
  transform: translateY(-1px);
}

.hero-schedule-panel {
  margin-top: 18px;
  padding: 16px 16px 14px;
  background: #fffdf8;
  border: 1px solid #e7e0d2;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(79, 143, 106, 0.08);
}

.hero-schedule-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #4f8f6a;
  font-family: "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic", sans-serif;
}

.hero-schedule-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e6f0ea;
}

.hero-schedule-table th,
.hero-schedule-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #e6f0ea;
  font-size: 15px;
  line-height: 1.4;
  color: #5a4b3d;
}

.hero-schedule-table thead th {
  background: #edf7e7;
  color: #5f8f6c;
  font-weight: 700;
}

.hero-schedule-table tbody th {
  background: #f7fcf9;
  font-weight: 700;
  color: #5a4b3d;
  white-space: nowrap;
  width: 120px;
}

.hero-schedule-table td {
  font-weight: 700;
  color: #79b98d;
  font-size: 16px;
}

.hero-schedule-table tr:last-child th,
.hero-schedule-table tr:last-child td {
  border-bottom: none;
}

.hero-schedule-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #7a6d61;
}

.hero-schedule-note p {
  margin: 0;
  font-size:15px;
}

.hero-schedule-note p + p {
  margin-top: 2px;
}

/* =========================
   Common sections
   ========================= */
.section {
  padding: 72px 20px;
}

.section:nth-of-type(odd) {
  background: #fbfaf5;
}

.section:nth-of-type(even) {
  background: #f9f6ef;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 18px;
  align-items: end;
  margin-bottom: 26px;
  position: relative;
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  padding-left: 16px;
  grid-column: 1;
  grid-row: 1;
  position: relative;
  line-height: 1.2;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1.15em;
  border-radius: 999px;
  background: linear-gradient(180deg, #7fc39b 0%, #7eb4e0 100%);
  transform: translateY(-50%);
}

.section-en {
  margin: 0;
  color: #6aa300;
  font-size: 13px;
  letter-spacing: .18em;
  font-weight: 700;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.section-lead {
  margin: 0;
  color: #73807b;
  font-size: 15px;
  line-height: 1.9;
  grid-column: 1 / -1;
}

/* =========================
   Treatment
   ========================= */
.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.treatment-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  background: #fffdf8;
  border: 1px solid var(--theme-line);
  border-radius: 20px;
  padding: 24px 18px 22px;
  box-shadow: 0 8px 20px var(--theme-shadow);
  transition: .2s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.treatment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(234, 246, 251, 0), rgba(234, 246, 251, 0.35));
  opacity: 0;
  transition: .2s ease;
}

.treatment-card:hover::before {
  opacity: 1;
}

.treatment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(79, 143, 106, 0.12);
}

.treatment-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f3fbe0 0%, #eaf6fb 100%);
  border: 1px solid #dfead5;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.treatment-icon {
  font-size: 30px;
  line-height: 1;
}

.treatment-name {
  font-size: 22px;
  color: #59493d;
}
@media screen and (max-width: 640px) {
  .treatment-name {
    font-size: 20px;
  }
  
}

.treatment-en {
  color: #7b6d61;
  font-size: 13px;
  letter-spacing: .06em;
}

/* =========================
   News / Blog cards
   ========================= */
.top-info-list,
.blog-list-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.top-info-card,
.blog-card {
  background: #fff;
  border: 1px solid #dce8d0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(79, 143, 106, 0.08);
}

.top-info-card-link,
.blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.top-info-thumb,
.blog-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f7fbf1;
}

.top-info-thumb img,
.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.top-info-body,
.blog-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.top-info-meta,
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #6b7567;
}

.top-info-label,
.blog-label,
.news-label,
.single-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: #f1f7e6;
  color: #6aa300;
  border: 1px solid #d8eab5;
}

.top-info-card-title,
.blog-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #2f3a2d;
  font-weight: 700;
}

.blog-excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: #5f685c;
}

.blog-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: #6aa300;
}

.top-info-empty,
.blog-empty {
  grid-column: 1 / -1;
  padding: 20px;
  background: #fff;
  border: 1px solid #dce8d0;
  border-radius: 14px;
  color: #6b7567;
}

/* =========================
   Gallery marquee
   ========================= */
.section-gallery {
  background: linear-gradient(180deg, #f8fbfe 0%, #eef6ea 100%);
  overflow: hidden;
}

.gallery-marquee {
  overflow: hidden;
  position: relative;
}


.gallery-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 8px 0 4px;
  animation: galleryMarquee 30s linear infinite;
}

.gallery-card {
  flex: 0 0 300px;
  background: #fffdf8;
  border: 1px solid var(--theme-line);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(79, 143, 106, 0.08);
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card-body {
  padding: 16px 16px 18px;
}

.gallery-card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #59493d;
}

.gallery-card-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #6f7c77;
}

@keyframes galleryMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================
   Buttons
   ========================= */
.section-more {
  margin-top: 22px;
  text-align: right;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #84c49a 0%, #6dac83 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(109, 172, 131, 0.18);
  transition: .2s ease;
}

.section-more a:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #73b88a 0%, #5f9f77 100%);
}

/* =========================
   Footer
   ========================= */
.footer-map {
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--theme-line);
  border-bottom: 1px solid var(--theme-line);
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 280px;
}

.footer {
  background: #fff;
  color: var(--theme-text);
  border-top: 1px solid var(--theme-line);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr .8fr;
  gap: 28px;
  align-items: start;
}

.footer-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px var(--theme-shadow);
  background: #fff;
}

.footer-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.footer-info {
  background: #fff;
  border: 1px solid var(--theme-line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 6px 18px var(--theme-shadow);
}

.footer-logo img {
  height: 100px;
  width: auto;
  margin-bottom: 14px;
}

.footer-info p {
  margin: 0 0 6px;
  line-height: 1.7;
  font-size: 16px;
}

#footer-name {
  margin: 0 0 10px;
  font-size: 20px;
  color: #18352a;
}

.footer-detail {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.footer-detail dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--theme-green-deep);
  margin-bottom: 3px;
}

.footer-detail dd {
  margin: 0;
  font-size: 16px;
  color: var(--theme-text);
  line-height: 1.7;
}

.footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links-title {
  margin: 0 0 8px;
  font-size: 16px;
  color: #18352a;
}

.footer-links a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--theme-line);
  box-shadow: 0 4px 12px var(--theme-shadow);
  font-weight: 700;
  color: var(--theme-text);
  transition: .2s;
}

.footer-links a:hover {
  background: var(--theme-green-soft);
  color: var(--theme-green-deep);
  transform: translateY(-1px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 26px;
  text-align: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--theme-muted);
}

/* =========================
   Category badges
   ========================= */
.cat-news,
.cat-notice {
  background: #eef8df;
  color: #5f8f00;
  border-color: #d8eab5;
}

.cat-holiday {
  background: #fff1df;
  color: #c47a00;
  border-color: #f2d2a6;
}

.cat-health-info,
.cat-lifestyle {
  background: #eaf7e8;
  color: #2f8f4e;
  border-color: #cbe7cf;
}

.cat-prevention {
  background: #e8f5ff;
  color: #2b78b8;
  border-color: #c8e4f6;
}

.cat-respiratory {
  background: #eef0ff;
  color: #5a63c8;
  border-color: #d4d8ff;
}

.cat-allergy {
  background: #fff0f6;
  color: #c04b7d;
  border-color: #f5cce0;
}

.cat-vaccination {
  background: #f3fbe0;
  color: #6aa300;
  border-color: #dceab7;
}

.cat-checkup {
  background: #f0f7ee;
  color: #4d8c67;
  border-color: #d0e2d6;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1080px) {
  .header-inner {
    padding: 10px 16px;
  }

  .header-logo img {
    height: 36px;
  }

  .hamburger {
    display: inline-flex;
    margin-left: auto;
  }

  .header-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    padding: 72px 16px 24px;
    background: var(--theme-bg);
    z-index: 1002;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .35s ease;
  }

  .header-nav.is-open {
    display: block;
    transform: translateX(0);
  }

  /* SP: 全体を縦に並べる */
  .nav-list-main {
    display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0;
  }

  /* ホーム・クリニック紹介・診療案内・健康診断以下すべてを1列で並べる */
  .nav-list-sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 0;
  width: 100%;
}

.nav-item-short {
  flex: 1 1 calc(50% - 12px);
  padding-bottom: 0;
}

.nav-item-short > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid var(--theme-line);
  border-radius: 14px;
  background: var(--theme-panel);
  box-shadow: 0 4px 12px var(--theme-shadow);
  font-size: 12px;
  text-align: center;
  white-space: normal;
}

.nav-item-subtitle {
  width: 100%;
}

.nav-item-subtitle .nav-list-sub {
  width: 100%;
}

.nav-list-sub .nav-item-flat {
  padding-bottom: 0;
}

.nav-list-sub .nav-item-flat > a {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 12px;
  text-align: center;
}

  .nav-item {
    padding-bottom: 0;
  }

  /* 共通ボタン */
  .nav-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--theme-line);
    border-radius: 14px;
    background: var(--theme-panel);
    box-shadow: 0 4px 12px var(--theme-shadow);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  /* SPでは「クリニック紹介」「診療案内」はボタンにしない */
  .nav-item-group {
  flex: 1 1 100%;
  padding-bottom: 0;
}

.nav-item-group > a {
  display: block;
  padding: 0;
  margin: 10px 0 0;
  border: none;
  background: transparent;
  box-shadow: none;
  text-align: left;
  font-size: 14px;
}

  .nav-item-group > a::after {
    margin-left: 8px;
  }

  .nav-item-group:hover > a,
  .nav-item-group:focus-within > a {
    background: transparent;
    color: var(--theme-text);
  }

  /* ドロップダウンは常時表示 */
  .dropdown {
    position: static;
    min-width: 0;
    margin: 10px 0 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .nav-item:hover > .dropdown,
  .nav-item:focus-within > .dropdown {
    display: grid;
  }

  .nav-checkup > a {
  background: linear-gradient(180deg, #f2fbef 0%, #e2f4df 100%);
  border-color: #cfe7ca;
  color: #4e7f5d;
}

.nav-vaccination > a {
  background: linear-gradient(180deg, #eef8ff 0%, #dceefe 100%);
  border-color: #c9e1f4;
  color: #4176a3;
}

.nav-info > a {
  background: linear-gradient(180deg, #fff7ee 0%, #fde7cf 100%);
  border-color: #f1d3b2;
  color: #9a6a2c;
}

.nav-blog > a {
  background: linear-gradient(180deg, #f7efff 0%, #eadcfb 100%);
  border-color: #ddcaf4;
  color: #7654a8;
}

.nav-checkup > a,
.nav-vaccination > a,
.nav-info > a,
.nav-blog > a {
  box-shadow: 0 4px 12px rgba(79, 143, 106, 0.08);
}


  .dropdown li + li {
    margin-top: 0;
  }

  .dropdown li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 9px 10px;
    border-radius: 14px;
    border: 1px solid var(--theme-line);
    background: var(--theme-panel);
    box-shadow: 0 4px 12px var(--theme-shadow);
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    font-size: 12px;
  }

  .nav-item-flat > a {
    min-height: 48px;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(40, 40, 40, 0.35);
    z-index: 1001;
  }

  .nav-overlay.is-open {
    display: block;
  }

  .nav-open {
    overflow: hidden;
  }

  .hero {
    padding: 44px 16px 36px;
  }

  .hero-inner {
    display: block;
  }

  .hero-slider {
    margin-bottom: 24px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .section {
    padding: 58px 16px;
  }

  .section-lead {
    grid-column: 1 / -1;
  }

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

  .top-info-list,
  .blog-list-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-map iframe {
    height: 220px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-photo img {
    aspect-ratio: 16 / 9;
  }

  .gallery-card {
    flex-basis: 260px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 8px 10px;
  }

  .header-logo img {
    height: 32px;
  }

  .header-nav {
    padding: 62px 10px 14px;
  }

  .nav-list-main {
    gap: 10px;
  }

  .nav-list-sub {
    gap: 10px;
    margin-top: 10px;
  }

  .nav-item > a {
    min-height: 46px;
    padding: 9px 10px;
    font-size: 16px;
  }

  .nav-item-group > a {
    font-size: 14px;
  }

  .dropdown {
    gap: 8px;
  }

  .dropdown li a {
    min-height: 42px;
    padding: 8px 8px;
    font-size: 16px;
  }

  .hero {
    padding: 40px 16px 30px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-cta,
  .section-more a {
    width: 100%;
  }

  .hero-schedule-panel {
    padding: 12px;
    border-radius: 14px;
  }

  .hero-schedule-table th,
  .hero-schedule-table td {
    padding: 8px 6px;
    font-size: 14px;
  }

  .hero-schedule-table td {
    font-size: 14px;
  }

  .hero-schedule-table tbody th {
    width: 96px;
  }

  .hero-schedule-note {
    font-size: 11px;
  }

  .treatment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .top-info-list,
  .blog-list-top {
    grid-template-columns: 1fr;
  }

  .footer-map iframe {
    height: 180px;
  }

  .footer-inner {
    padding: 36px 16px;
  }

  .footer-info,
  .footer-links a,
  .top-info-card,
  .blog-card,
  .treatment-card,
  .gallery-card {
    border-radius: 14px;
  }

  .section-more {
    text-align: center;
  }

  .top-info-body,
  .blog-body {
    padding: 16px;
  }

  .section-head {
    grid-template-columns: 1fr auto;
  }

  .hero-clinic-info {
    display: none;
  }

  .gallery-track {
    gap: 12px;
  }

  .gallery-card {
    flex-basis: 240px;
  }
}


/* =========================
   Floating fixed buttons
========================= */
.floating-fixed-buttons {
  position: fixed;
  z-index: 9999;
  pointer-events: auto;
}

.fixed-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.fixed-btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.fixed-btn-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #f5b36a 0%, #e78aa9 52%, #b58ad8 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(178, 132, 190, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.fixed-btn-instagram-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  position: relative;
  box-sizing: border-box;
}

.fixed-btn-instagram-icon::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-sizing: border-box;
}

.fixed-btn-instagram-icon::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  top: 2px;
  right: 2px;
}

.fixed-btn-reserve {
  background: linear-gradient(135deg, var(--theme-green) 0%, var(--theme-green-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 22px var(--theme-shadow-strong);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

@media (min-width: 769px) {
  .floating-fixed-buttons {
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  .fixed-btn {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    width: 52px;
    height: 160px;
    border-radius: 14px 0 0 14px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .floating-fixed-buttons {
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
  }

  .fixed-btn {
    flex: 1 1 50%;
    height: 56px;
    font-size: 18px;
  }

  body {
    padding-bottom: 56px;
  }
}
