/* ==================================================
   TOPページ FVスライダー
   ================================================== */

/* 親テーマのスライダーを上書き */
.home #header_slider_wrap {
  height: auto !important;
}
.home #header_slider {
  display: none !important;
}

/* PC/SP 表示切り替え */
.only-pc {
  display: block;
}
.only-sp {
  display: none;
}

@media screen and (max-width: 1221px) {
  #header_logo2 .logo_text {
    color: #000;
  }
  body.home #header #drawer_menu_button span {
    background: #000;
  }
}

@media screen and (max-width: 800px) {
  .l-fv {
    margin-top: 60px;
  }
}

@media screen and (max-width: 768px) {
  .only-pc {
    display: none;
  }
  .only-sp {
    display: block;
  }
}

/* FVスライダー */
.l-fv {
  position: relative;
  width: 100%;
}

.l-fv__inner {
  overflow: hidden;
  width: 100%;
}

.l-fv__slider-sp,
.l-fv__slider-pc {
  width: 100%;
}

.l-fv__slider-sp .swiper-slide {
  aspect-ratio: 375 / 470;
}

.l-fv__slider-pc .swiper-slide {
  aspect-ratio: 1920 / 480;
}

.l-fv .swiper {
  width: 100%;
  height: auto;
}

.l-fv .swiper-slide {
  width: 100%;
}

.l-fv .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==================================================
   プロモーションバナー（FV直下）
   ================================================== */
.l-promo-banners {
  background: #fff;
  padding: 20px 0;
}

.l-promo-banners__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.l-promo-banners__main {
  margin-bottom: 15px;
}

.l-promo-banners__main a {
  display: block;
  transition: opacity 0.3s ease;
}

.l-promo-banners__main a:hover {
  opacity: 0.8;
}

.l-promo-banners__main img {
  width: 100%;
  height: auto;
  display: block;
}

.l-promo-banners__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.l-promo-banners__item {
  display: block;
  transition: opacity 0.3s ease;
}

.l-promo-banners__item:hover {
  opacity: 0.8;
}

.l-promo-banners__item img {
  width: 100%;
  height: auto;
  display: block;
}

/* グリッド列数の調整（バナー数に応じて） */
.l-promo-banners__grid--1 {
  grid-template-columns: 1fr;
  max-width: 400px;
}

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

@media screen and (max-width: 768px) {
  .l-promo-banners {
    padding: 15px 0;
  }

  .l-promo-banners__inner {
    padding: 0 15px;
  }

  .l-promo-banners__main {
    margin-bottom: 10px;
  }

  .l-promo-banners__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==================================================
   バナースライダー（FV直下）
   ================================================== */
.l-banner-slider {
  background: #f5f5f5;
  padding: 20px 0;
}

.l-banner-slider__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px;
}

#banner-swiper {
  overflow: hidden;
}

#banner-swiper .swiper-wrapper {
  display: flex;
  align-items: center;
}

#banner-swiper .swiper-slide {
  width: calc((100% - 60px) / 4); /* PC: 4枚表示 */
  flex-shrink: 0;
}

#banner-swiper .swiper-slide a {
  display: block;
  transition: opacity 0.3s ease;
}

#banner-swiper .swiper-slide a:hover {
  opacity: 0.8;
}

#banner-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ナビゲーションボタン */
.l-banner-slider .swiper-button-prev,
.l-banner-slider .swiper-button-next {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.l-banner-slider .swiper-button-prev::after,
.l-banner-slider .swiper-button-next::after {
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.l-banner-slider .swiper-button-prev {
  left: 5px;
}

.l-banner-slider .swiper-button-next {
  right: 5px;
}

/* ページネーション */
#banner-pagination {
  position: relative;
  margin-top: 15px;
}

#banner-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ccc;
  opacity: 1;
}

#banner-pagination .swiper-pagination-bullet-active {
  background: #1d4e90;
}

/* レスポンシブ: タブレット */
@media screen and (max-width: 1024px) {
  .l-banner-slider__inner {
    padding: 0 40px;
  }

  #banner-swiper .swiper-slide {
    width: calc((100% - 30px) / 3); /* タブレット: 3枚表示 */
  }
}

/* レスポンシブ: スマートフォン */
@media screen and (max-width: 768px) {
  .l-banner-slider {
    padding: 15px 0;
  }

  .l-banner-slider__inner {
    padding: 0 15px;
  }

  #banner-swiper .swiper-slide {
    width: calc((100% - 10px) / 2); /* スマホ: 2枚表示 */
  }

  #banner-swiper .swiper-slide img {
    border-radius: 6px;
  }

  .l-banner-slider .swiper-button-prev,
  .l-banner-slider .swiper-button-next {
    display: none;
  }

  #banner-pagination {
    margin-top: 10px;
  }
}

/* ==================================================
   初めての方へセクション
   ================================================== */
.l-firsttime {
  position: relative;
  /* 背景画像 + オーバーレイ */
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
              url('img/firsttime-bg.jpg') center/cover no-repeat;
  color: #fff;
  padding: 80px 0;
}

.l-firsttime__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.l-firsttime__content {
  text-align: center;
}

.l-firsttime__icon {
  margin-bottom: 20px;
}

.l-firsttime__icon img {
  width: 60px;
  height: auto;
}

.l-firsttime__title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.l-firsttime__text {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.l-firsttime__btn {
  display: inline-block;
  background: #2196F3;
  color: #fff;
  padding: 15px 50px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.l-firsttime__btn:hover {
  background: #1976D2;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .l-firsttime {
    padding: 50px 0;
  }

  .l-firsttime__title {
    font-size: 22px;
  }

  .l-firsttime__text {
    font-size: 13px;
  }
}

/* ==================================================
   アクセスセクション
   ================================================== */
.l-top-access {
  background: #f5f5f5;
  padding: 60px 0;
}

.l-top-access__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.l-top-access__heading {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.l-top-access__tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.l-top-access__tab {
  background: #fff;
  border: 2px solid #4FC3F7;
  color: #4FC3F7;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.l-top-access__tab:hover,
.l-top-access__tab.is-active {
  background: #4FC3F7;
  color: #fff;
}

.l-top-access__content {
  display: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.l-top-access__content.is-active {
  display: flex;
}

.l-top-access__info {
  flex: 1;
  padding: 30px;
  background: linear-gradient(135deg, #E3F2FD 0%, #fff 100%);
}

.l-top-access__clinic-name {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4FC3F7;
}

.l-top-access__detail {
  margin-bottom: 20px;
}

.l-top-access__row {
  display: flex;
  margin-bottom: 15px;
  font-size: 14px;
}

.l-top-access__row dt {
  width: 80px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
}

.l-top-access__row dd {
  flex: 1;
  color: #333;
}

.l-top-access__tel {
  color: #4FC3F7;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.l-top-access__tel:hover {
  color: #29B6F6;
  text-decoration: underline;
}

.l-top-access__hours {
  margin-bottom: 5px;
}

.l-top-access__hours-time {
  display: block;
  margin-bottom: 8px;
}

.l-top-access__hours-days {
  display: flex;
  gap: 5px;
}

.l-top-access__day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #4FC3F7;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
}

/* 日曜日も同じ色（全日診療） */

.l-top-access__hours-note {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

.l-top-access__holiday {
  font-size: 13px;
  color: #333;
  margin-top: 10px;
  font-weight: 500;
}

.l-top-access__btn {
  display: inline-block;
  background: #4FC3F7;
  color: #fff;
  padding: 12px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease;
}

.l-top-access__btn:hover {
  background: #29B6F6;
  color: #fff;
}

.l-top-access__map {
  width: 50%;
  min-height: 350px;
}

.l-top-access__map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media screen and (max-width: 768px) {
  .l-top-access {
    padding: 40px 0;
  }

  .l-top-access__tabs {
    gap: 5px;
  }

  .l-top-access__tab {
    padding: 8px 12px;
    font-size: 12px;
  }

  .l-top-access__content.is-active {
    flex-direction: column;
  }

  .l-top-access__info {
    padding: 20px;
  }

  .l-top-access__clinic-name {
    font-size: 18px;
  }

  .l-top-access__row {
    flex-direction: column;
    gap: 5px;
  }

  .l-top-access__row dt {
    width: auto;
  }

  .l-top-access__map {
    width: 100%;
    min-height: 250px;
  }
}

/* ==================================================
   CTAセクション
   ================================================== */
.l-top-cta {
  background: #fff;
}

.l-top-cta__header {
  background: #FF9800;
  padding: 20px;
  text-align: center;
}

.l-top-cta__heading {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  margin: 0;
}

.l-top-cta__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 40px;
}

.l-top-cta__web,
.l-top-cta__tel {
  flex: 1;
  padding: 30px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.l-top-cta__web-icon,
.l-top-cta__tel-icon {
  color: #FF9800;
  margin-bottom: 15px;
}

.l-top-cta__web-title,
.l-top-cta__tel-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.l-top-cta__web-title::before,
.l-top-cta__tel-title::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #FF9800;
  border-radius: 50%;
}

.l-top-cta__web-text,
.l-top-cta__tel-text {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
}

.l-top-cta__web-note {
  font-size: 12px;
  color: #999;
  line-height: 1.6;
  margin-bottom: 20px;
}

.l-top-cta__web-btn {
  display: inline-block;
  background: #FF9800;
  color: #fff;
  padding: 15px 50px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.l-top-cta__web-btn:hover {
  background: #F57C00;
  color: #fff;
}

.l-top-cta__tel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.l-top-cta__tel-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.l-top-cta__tel-clinic {
  font-size: 13px;
  color: #666;
  min-width: 50px;
}

.l-top-cta__tel-number {
  font-size: 18px;
  font-weight: bold;
  color: #FF9800;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
}

.l-top-cta__tel-number:hover {
  color: #F57C00;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .l-top-cta__heading {
    font-size: 18px;
  }

  .l-top-cta__inner {
    flex-direction: column;
    padding: 30px 15px;
    gap: 20px;
  }

  .l-top-cta__web,
  .l-top-cta__tel {
    padding: 20px;
  }

  .l-top-cta__web-title,
  .l-top-cta__tel-title {
    font-size: 16px;
  }

  .l-top-cta__tel-list {
    grid-template-columns: 1fr;
  }

  .l-top-cta__tel-number {
    font-size: 16px;
  }
}

/* ==================================================
   大学・総合病院との連携セクション
   ================================================== */
.l-top-partnership {
  background: #fff;
}

.l-top-partnership__inner {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
}

.l-top-partnership__left {
  flex: 0 0 35%;
  background: #fff;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.l-top-partnership__heading {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #1d4e90;
}

.l-top-partnership__text {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #333;
}

.l-top-partnership__btn {
  display: inline-block;
  background: #4FC3F7;
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  width: fit-content;
}

.l-top-partnership__btn:hover {
  background: #29B6F6;
  color: #fff;
}

.l-top-partnership__right {
  flex: 1;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.l-top-partnership__image {
  max-width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 900px) {
  .l-top-partnership__inner {
    flex-direction: column;
  }

  .l-top-partnership__left {
    flex: none;
    padding: 40px 20px;
    text-align: center;
  }

  .l-top-partnership__btn {
    margin: 0 auto;
  }

  .l-top-partnership__right {
    padding: 30px 20px;
  }
}

@media screen and (max-width: 480px) {
  .l-top-partnership__heading {
    font-size: 20px;
  }

  .l-top-partnership__right {
    padding: 20px 15px;
  }
}

/* ==================================================
   よくあるご質問セクション
   ================================================== */
.l-top-faq {
  background: #f5f5f5;
  padding: 60px 0;
}

.l-top-faq__inner {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 60px;
}

.l-top-faq__left {
  flex: 0 0 200px;
}

.l-top-faq__heading {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.l-top-faq__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #4FC3F7;
  color: #fff;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.l-top-faq__btn:hover {
  background: #29B6F6;
  color: #fff;
}

.l-top-faq__btn-arrow {
  font-size: 12px;
}

.l-top-faq__right {
  flex: 1;
}

.l-top-faq__list {
  padding: 0;
  margin: 0;
}

.l-top-faq__item {
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.l-top-faq__item:first-child {
  border-top: 1px solid #ddd;
}

.l-top-faq__question {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 15px;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
}

.l-top-faq__question:hover {
  background: #f9f9f9;
}

.l-top-faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #4FC3F7;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}

.l-top-faq__question-text {
  flex: 1;
  font-size: 15px;
  color: #333;
}

.l-top-faq__toggle-icon {
  display: none; /* JS無効時は非表示 */
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.l-top-faq.js-enabled .l-top-faq__toggle-icon {
  display: block; /* JS有効時のみ表示 */
}

.l-top-faq__toggle-icon::before,
.l-top-faq__toggle-icon::after {
  content: '';
  position: absolute;
  background: #999;
  transition: transform 0.3s ease;
}

.l-top-faq__toggle-icon::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.l-top-faq__toggle-icon::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.l-top-faq__item.is-open .l-top-faq__toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.l-top-faq__answer {
  display: flex;
  padding: 0 15px 20px 60px;
  gap: 15px;
  align-items: flex-start;
}

/* JS有効時のみ折りたたみ動作 */
.l-top-faq.js-enabled .l-top-faq__answer {
  display: none;
}

.l-top-faq.js-enabled .l-top-faq__item.is-open .l-top-faq__answer {
  display: flex;
}

.l-top-faq__answer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #FF9800;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}

.l-top-faq__answer-text {
  flex: 1;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

@media screen and (max-width: 768px) {
  .l-top-faq {
    padding: 40px 0;
  }

  .l-top-faq__inner {
    flex-direction: column;
    gap: 30px;
  }

  .l-top-faq__left {
    flex: none;
    text-align: center;
  }

  .l-top-faq__heading {
    font-size: 22px;
  }

  .l-top-faq__question {
    padding: 15px 10px;
  }

  .l-top-faq__question-text {
    font-size: 14px;
  }

  .l-top-faq__answer {
    padding: 0 10px 15px 55px;
  }

  .l-top-faq__answer-text {
    font-size: 13px;
  }
}

/* ==================================================
   お知らせセクション
   ================================================== */
.l-top-news {
  background: #fff;
  padding: 60px 0;
}

.l-top-news__inner {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 60px;
}

.l-top-news__left {
  flex: 0 0 200px;
}

.l-top-news__heading {
  font-size: 26px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.l-top-news__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #4FC3F7;
  color: #fff;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.l-top-news__btn:hover {
  background: #29B6F6;
  color: #fff;
}

.l-top-news__btn-arrow {
  font-size: 12px;
}

.l-top-news__right {
  flex: 1;
}

.l-top-news__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.l-top-news__item {
  border-bottom: 1px solid #eee;
}

.l-top-news__item:first-child {
  border-top: 1px solid #eee;
}

.l-top-news__link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 10px;
  text-decoration: none;
  color: #333;
  transition: background 0.3s ease;
}

.l-top-news__link:hover {
  background: #f9f9f9;
}

.l-top-news__date {
  font-size: 14px;
  color: #4FC3F7;
  font-weight: bold;
  flex-shrink: 0;
}

.l-top-news__title {
  flex: 1;
  font-size: 15px;
  color: #333;
}

.l-top-news__arrow {
  font-size: 14px;
  color: #ccc;
  flex-shrink: 0;
}

.l-top-news__empty {
  font-size: 14px;
  color: #666;
  text-align: center;
  padding: 40px 0;
}

@media screen and (max-width: 768px) {
  .l-top-news {
    padding: 40px 0;
  }

  .l-top-news__inner {
    flex-direction: column;
    gap: 30px;
  }

  .l-top-news__left {
    flex: none;
    text-align: center;
  }

  .l-top-news__heading {
    font-size: 22px;
  }

  .l-top-news__link {
    flex-wrap: wrap;
    padding: 15px 5px;
    gap: 10px;
  }

  .l-top-news__date {
    font-size: 13px;
  }

  .l-top-news__title {
    flex: 0 0 100%;
    font-size: 14px;
    order: 3;
  }

  .l-top-news__arrow {
    margin-left: auto;
  }
}
