html {
  scroll-behavior: smooth;
}


body {
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  color: #333;
  background-color: #f7fdf7; /* やさしいグリーンベース */
  padding-bottom: 55px;
}

/* ヘッダー */
header {
  background-color: #a8d5ba; /* 淡いグリーン */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 60px; /* ←ここでサイズ統一！ */
  width: auto;
}


.clinic-name {
  font-size: 1.6em;
  font-weight: bold;
  color: #234336;
  font-family: "Hiragino Mincho ProN", serif; /* 落ち着いた和風感 */
  letter-spacing: 2px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #2f5d50;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-menu li a:hover {
  color: #004d3c;
}

/* メインビジュアル */
.hero {
  background: linear-gradient(to right, #e8f5e9, #d0f0c0);
  text-align: center;
  height: 60vh;
  padding: 80px 20px 60px;
}

.hero h1 {
  font-size: 2em;
  color: #25664f;
  margin-bottom: 10px;
}

.hero .catch {
  font-size: 1.2em;
  color: #4f6f61;
  margin-bottom: 30px;
}

.tel-btn {
  display: inline-block;
  padding: 15px 25px;
  background-color: #4caf50;
  color: #fff;
  font-size: 1em;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.tel-btn:hover {
  background-color: #388e3c;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}


.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
}


.hero-text h1, .hero-text .catch {
  color: #fff;
  text-shadow: 0 0 5px #444;
}

.flow-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.flow-container.reverse {
  flex-direction: row-reverse;
}

.tall-image {
  width: 300px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.flow-text {
  flex: 1;
  min-width: 260px;
}

/* セクション共通 */
.section {
  padding: 50px 20px;
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.section h2 {
  color: #2c5e4e;
  border-bottom: 2px solid #a8d5ba;
  padding-bottom: 5px;
}

.greeting-container {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.director-photo {
  width: 300px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.greeting-text {
  flex: 1;
  min-width: 260px;
}

.license {
  list-style-type: none; /* 黒丸を消す */
  padding-left: 0;
}

.license ul li::before {
  content: "✔ "; /* チェックマークを付ける */
  color: #2e8b57;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
  max-width: 1100px; /* 任意。中央寄せ用 */
  margin-inline: auto;
}

.gallery figure { margin: 0; }

/* サムネを同じ比率に統一（例：4:3） */
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;     /* ← 好きな比率に変更可（1/1, 3/2, 16/9など）*/
  object-fit: cover;        /* 余白なく見せる（はみ出す分はトリミング） */
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform .3s ease;
}

.gallery img:hover { transform: scale(1.03); }

.gallery figcaption {
  text-align: center;
  font-size: .9rem;
  margin-top: 6px;
  color: #444;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.lightbox.show { display: flex; }

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.lightbox .caption {
  color: #fff;
  margin-top: 10px;
  text-align: center;
}
.lightbox .close {
  position: absolute;
  top: 15px; right: 25px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}


.price-table {
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
  border-collapse: collapse;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.price-table th,
.price-table td {
  border: 1px solid #c8e1d8;
  padding: 12px;
  text-align: center;
  font-size: 1em;
}

.price-table th {
  background-color: #a8d5ba;
  color: #234336;
  font-weight: bold;
}

.price-table td {
  background-color: #f9fdf9;
}
#policy strong {
  color: #25664f;
}



.map-container {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map {
  margin: 0 auto;
  width: 100%;
  height: auto;
}

#toTopBtn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 999;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;

  /* テスト用！ */
  opacity: 1;
}


/* フッター */
footer {
  text-align: center;
  background-color: #a8d5ba;
  color: #234336;
  padding: 20px 10px;
  font-size: 0.9em;
}

.floating-tel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #4caf50;
  text-align: center;
  z-index: 999;
  padding: 10px 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}

.floating-tel a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  display: inline-block;
}

.floating-tel a:hover {
  text-decoration: underline;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
   .logo {
    flex-direction: column;
    align-items: flex-start;
  }

  .clinic-name {
    font-size: 1.3em;
  }
  
    .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
  }

  .hero h1 {
    font-size: 1.6em;
  }

  .tel-btn {
    font-size: 0.9em;
    padding: 12px 20px;
  }

   .greeting-container {
    flex-direction: column;
    text-align: center;
  }

  .director-photo {
    margin-bottom: 20px;
  }

  .flow-container,
  .flow-container.reverse {
    flex-direction: column;
    align-items: center;
  }

  .tall-image {
    margin-bottom: 20px;
  }
}