/* ベース設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* ヒーローエリア全体 */
.hero {
  padding: 1rem 0; /* 上下余白を小さく */
  position: relative;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}
/* セクションブロック全体 */
.block {
  padding: 2rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

/* 各見出し */
.block h2 {
  font-size: 1.8rem;
  color: #006666;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.block h3 {
  font-size: 1.2rem;
  color: #007777;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.block p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}

/* 特徴セクションの特徴項目グループ */
.features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 各特徴のブロック */
.feature {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* 角丸画像とテキスト配置 */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  max-width: 1200px; /* 画像の最大幅を拡大 */
  margin: 0 auto;
}
.hero-image {
  width: calc(100% - 20px);
  margin: 10px;
  border-radius: 8px;
}
@media (min-width: 768px) {
  .hero-image {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }
}
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  writing-mode: vertical-rl;
  text-align: center;
  font-size: 2rem;
  color: white;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}
.vertical-text {
  writing-mode: vertical-rl;
  font-size: 1.5rem;
  color: white;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* メニューリスト（横並び） */
.menu-box {
  max-width: 1200px;
  margin: 0.5rem auto 0;
  padding: 0 1rem;
}
.menu-box ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  list-style: none;
}
.menu-box li {
  font-size: 0.95rem;
  color: #006666;
  white-space: nowrap;
}

.menu-box a {
  color: #444;
  text-decoration: none;
  font-weight: bold;
}

.menu-box a:hover {
  color: #000;
  text-decoration: underline;
}

/* コンテンツセクション */
.content {
  padding: 2rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}
.intro h2 {
  font-size: 1.8rem;
  color: #006666;
  margin-bottom: 1rem;
}
.intro p {
  font-size: 1rem;
  color: #444;
}

/* 丸画像 */
.circle-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* 特徴テキスト */
.feature-text {
  flex: 1;
  min-width: 200px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-text {
    font-size: 0.8rem; /* モバイルでは少し小さく */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .vertical-text {
    font-size: 1.0rem; /* ← ここを追加または調整 */
  }
  .feature {
    flex-direction: row; /* 横並びを維持 */
    align-items: center; /* 高さを揃える */
    flex-wrap: nowrap;   /* 折り返さない */
    gap: 1rem;           /* スマホ時は少し狭めに */
  }
  .circle-image {
    width: 100px;
    height: 100px;
  }
  .block h2 {
    font-size: 1.5rem;
  }
  .block h3 {
    font-size: 1rem;
  }
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 4px solid #009999;
}
.step {
  background: #f0fafa;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  font-weight: bold;
  color: #004c4c;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chat-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.chat-row.user {
  flex-direction: row;
}

.chat-row.staff {
  flex-direction: row-reverse;
  text-align: right;
}

.chat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.chat-bubble {
  max-width: 70%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background-color: #f0f0f0;
  font-size: 0.95rem;
  line-height: 1.4;
}

.chat-row.staff .chat-bubble {
  background-color: #dff6f4;
  color: #003333;
}


.answer-bubble {
  background-color: #e0f7fa;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  max-width: 70%;
  text-align: left;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

#info {
  padding: 2rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

#info .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

#info .border {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  background-color: #f9f9f9;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.access-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.access-text {
  flex: 1 1 300px;
}

.access-map {
  flex: 1 1 300px;
}

@media (max-width: 768px) {
  .access-container {
    flex-direction: column;
  }
  .clinic-subname {
    font-size: 0.6rem;
  }
  .clinic-name {
    font-size: 0.8rem;
  }
}

/* ハンバーガーボタン */
.menu-toggle {
  color: #006666;
  position: fixed;
  top: 10px;
  right: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  z-index: 1000;
  display: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

/* スマホ用メニュー */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-box {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 999;
    padding: 2rem 1.5rem;
  }

  .mobile-menu.open {
    right: 0;
  }

  .mobile-menu ul {
    list-style: none;
    padding: 0;
  }

  .mobile-menu li {
    margin-bottom: 1.5rem;
  }

  .mobile-menu a {
    color: #006666;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
  }

  /* モバイル表示のみ表示 */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
    .menu-box {
      display: none;
    }
  }
}
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}
.menu-overlay.active {
  display: block;
}
.step.toggle-step {
  cursor: pointer;
  position: relative;
}

.step-detail {
  display: none;
  font-weight: normal;
  color: #333;
  margin-top: 0.5rem;
}

.step.toggle-step.open .step-detail {
  display: block;
}

.step.toggle-step::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: #007777;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.step.toggle-step.open::after {
  transform: rotate(180deg);
}

/* 最初は非表示 */
.step-detail {
  display: none;
  margin-left: 1.5em;
  padding: 0.5em;
  background-color: #f3f4f6;
  border-left: 3px solid #60a5fa;
}

/* .toggle-step が open クラスを持っているとき、直後の .step-detail を表示 */
.toggle-step.open + .step-detail {
  display: block;
}
.step-image {
  width: 100%;
  max-width: 400px;
  margin: 1em 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.clinic-subname {
  display: inline-block;
  padding: 0em 0.5em 0em 0.5em;
  font-size: 1.2rem;
  font-weight: bold;
  color: #25bd85;
}
.clinic-name {
  display: inline-block;
  padding: 0em 0.5em 0.5em 0.4em;
  font-size: 1.5rem;
  font-weight: bold;
  color: #25bd85;
}

.profile-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.profile-image {
  width: 240px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.profile-text {
  flex: 1;
  min-width: 260px;
}
/* スライド全体 */
.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* スライド領域の高さを固定：比率は任意（4:3 も可） */
  overflow: hidden;
}

/* 各スライドの共通スタイル */
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
  pointer-events: none; /* 非アクティブスライドのクリック無効 */
}

.slide.active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

/* ナビゲーションボタン（左右矢印） */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
}
.clinic-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* or center, depending on alignment preference */
}
html, body {
  overflow-x: hidden;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 2;
  color: black; /* ← これが重要 */
  appearance: none; /* ← iOS/Safari対策 */
  -webkit-appearance: none; /* ← iOS対策 */
}