@charset "UTF-8";

body {
    background-color: #f5f5f5;
}
.swiper {
  overflow: initial !important;
}
.l-inner.fv-parts {
  display: flex;
  justify-content: space-between;
  max-width: 1580px;
  margin: 0 auto;
  padding: 0 0 0 20px;
}
/* ==========================================================================
   FV スライダー (p-fv)
   ========================================================================== */
.p-fv {
  position: relative;
  width: 100%;
  height: 78vh; /* PCでの高さ */
  min-height: 620px;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .p-fv {
    height: 78svh; /* SPでは画面いっぱいに（ヘッダー考慮する場合は調整） */
    min-height: 580px;
  }
}

.p-fv__slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.p-fv__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease, visibility 1.5s ease; /* クロスフェードの秒数 */
  z-index: 1;
}

/* アクティブなスライド */
.p-fv__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* 背景画像設定 */
.p-fv__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.p-fv__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25); /* 文字を見やすくするための暗いオーバーレイ */
}

.p-fv__bg--sp { display: none; }

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

/* FV内のテキスト・ロゴコンテンツ */
.p-fv__content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
@media screen and (max-width: 767px) {
	.p-fv__content {
		padding-bottom: 10%;
	}
}

.p-fv__logo {
  margin-bottom: 0;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
.p-fv__logo img {
  width: 130px;
  height: auto;
  filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.3));
}

.p-fv__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 30px;
  text-shadow: 0 0 6px rgba(0,0,0,0.3);
}
.p-fv__subtitle {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 500;
}
.p-fv__departments {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
}
.p-fv__catch {
  font-size: 32px;
  font-weight: 500;
  font-family: serif;
  line-height: 1.8;
  text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

@media screen and (max-width: 767px) {
  .p-fv__logo img { width: 90px; }
  .p-fv__title { font-size: 18px; }
  .p-fv__subtitle, .p-fv__departments { font-size: 14px; margin-bottom: 4px; }
  .p-fv__catch { font-size: 24px; }
}

/* ==========================================================================
   FV直下 インフォメーション (p-fv-info)
   ========================================================================== */
.p-fv-info {
  margin-top: -100px; /* FVに食い込ませる */
  position: relative;
  z-index: 20;
}
@media screen and (max-width: 767px) {
  .p-fv-info {
    margin-top: -80px;
  }
}

/* 特徴3カード */
.p-fv-features {
  width: 50%;
  max-width: 530px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}
@media screen and (max-width: 767px) {
  .p-fv-features {
    width: 100%;
  }
}
.p-fv-features__item {
  flex: 1;
  background-color: #fff;
  border-radius: 8px;
  padding: 0 10px 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border: 1px solid #6b9bc1; /* メインカラー想定 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.p-fv-features__icon {
  margin-top: -20px;
  margin-bottom: 10px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-fv-features__icon img {
  max-height: 100%;
  width: auto;
}
.p-fv-features__text {
  font-size: 18px;
  font-family: serif;
  font-weight: 700;
  color: #1a4f76;
  line-height: 1.4;
}

@media screen and (max-width: 767px) {
  .p-fv-features {
    gap: 10px;
  }
  .p-fv-features__item {
    padding: 0 5px 15px;
  }
  .p-fv-features__text {
    font-size: 14px;
  }
  .p-fv-features__icon {
    height: 45px;
  }
}

/* 診療科目タグ */
.p-fv-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}
.p-fv-tags__item {
  background-color: #a38d7b; /* タグのベースカラー */
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
}
@media screen and (max-width: 767px) {
  .p-fv-tags {
    gap: 8px;
  }
  .p-fv-tags__item {
    padding: 4px 12px 5px;
    font-size: 11px;
  }
}

/* 診療時間表 */
.p-fv-schedule {
  width: 48%;
  max-width: 650px;
  height: fit-content;
  padding: 18px 0 15px 18px;
  background-color: #ffffff;
  border-radius: 10px 0 0 10px;
}
@media screen and (max-width: 767px) {
  .p-fv-schedule {
    width: 100%;
    padding: 0;
    background-color: transparent;
    overflow: hidden;
    border-radius: 10px;
  }
}
@media screen and (min-width: 1280px) {
  .p-fv-schedule {
    padding: 15px;
    margin-right: 20px;
    border-radius: 10px;
  }
}

.p-schedule-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background-color: #fff;
}
.p-schedule-table th,
.p-schedule-table td {
  border: none;
  vertical-align: middle;
	padding: 10px 2px !important;
}
.p-schedule-table thead th:first-child,
.p-schedule-table tbody th:first-child {
  width: 20%;
  min-width: 100px;
}
@media screen and (max-width: 767px) {
  .p-schedule-table thead th:first-child,
  .p-schedule-table tbody th:first-child {
    width: 20%;
  }
}
.p-schedule-table thead th {
  background-color: #a38d7b;
  color: #fff;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 15px 3px !important;
}
.p-schedule-table tbody th {
  background-color: #eeeeee;
  font-weight: bold;
  padding: 15px 3px !important;
}
.p-schedule-table td {
  color: #8c7361;
  font-size: 13px;
}
.p-schedule-table td:nth-child(odd) {
  background-color: #eeeeee;
}

.p-fv-schedule__note {
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.6;
}
/* @media screen and (max-width: 767px) {
  .p-schedule-table th,
  .p-schedule-table td {
    padding: 10px 2px;
  }
  .p-schedule-table td {
    font-size: 14px;
  }
} */

/* ==========================================================================
   全般のベース調整
   ========================================================================== */
.p-home-banner,
.p-home-news,
.p-home-access {
  background-color: #f5f5f5; /* 全体背景の薄いグレー */
}

/* ==========================================================================
   バナーカルーセル (p-home-banner)
   ========================================================================== */
.p-home-banner {
  padding: 40px 0;
  overflow: hidden;
}

.p-home-banner__inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 50px; /* 矢印ボタン用の余白 */
}

.p-home-banner__item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-home-banner__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.p-home-banner__item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 矢印ボタンカスタム */
.p-home-banner__prev,
.p-home-banner__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}

.p-home-banner__prev:hover,
.p-home-banner__next:hover {
  background-color: #f0f0f0;
}

.p-home-banner__prev { left: 5px; }
.p-home-banner__next { right: 5px; }

.p-home-banner__prev::after,
.p-home-banner__next::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
}

.p-home-banner__prev::after { transform: rotate(-135deg); margin-left: 3px; }
.p-home-banner__next::after { transform: rotate(45deg); margin-right: 3px; }

@media screen and (max-width: 767px) {
  .p-home-banner__inner {
    padding: 0 35px;
  }
  .p-home-banner__prev,
  .p-home-banner__next {
    width: 32px;
    height: 32px;
  }
}

/* ==========================================================================
   お知らせ (p-home-news)
   ========================================================================== */
.p-home-news {
  padding: 60px 0;
}

.p-home-news__inner {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.p-home-news__head {
  width: 220px;
  flex-shrink: 0;
}

.p-home-news__en {
  display: block;
  font-family: serif;
  font-size: 36px;
  color: #a38d7b;
  line-height: 1;
  margin-bottom: 8px;
}

.p-home-news__title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 24px;
}

.p-home-news__btn {
  display: inline-block;
  background-color: #006699;
  color: #fff;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s;
}

.p-home-news__btn:hover {
  opacity: 0.85;
}

.p-home-news__body {
  flex-grow: 1;
  background-color: #fff;
  border-radius: 16px;
  padding: 30px 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

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

.p-news-list__item {
  border-bottom: 1px solid #eee;
}

.p-news-list__item:last-child {
  border-bottom: none;
}

.p-news-list__link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  text-decoration: none;
  color: #333;
  transition: color 0.2s;
}

.p-news-list__link:hover {
  color: #006699;
}

.p-news-list__date {
  font-size: 14px;
  color: #a38d7b;
  flex-shrink: 0;
}

.p-news-list__title {
  font-size: 15px;
  line-height: 1.5;
}

@media screen and (max-width: 767px) {
  .p-home-news__inner {
    flex-direction: column;
    gap: 20px;
  }
  .p-home-news__head {
    width: 100%;
  }
  .p-home-news__body {
    width: 100%;
    padding: 20px;
  }
  .p-news-list__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .p-home-news__btn-wrap {
    width: 100%;
    text-align: center;
    margin-top: 10px;
  }
}

/* ==========================================================================
   CTA セクション (p-home-cta)
   ========================================================================== */
.p-home-cta {
  position: relative;
  padding: 50px 20px;
  overflow: hidden;
}

.p-home-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.p-home-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45); /* 背景画像を少し暗くするオーバーレイ */
}

.p-home-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 750px !important;
  margin: 0 auto;
}

.p-home-cta__item {
  flex: 1;
  background-color: #fff;
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: #006699;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.p-home-cta__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.p-home-cta__icon img {
  width: 28px;
  height: auto;
  display: block;
}

.p-home-cta__title {
  font-size: 16px;
  font-weight: 700;
}

.p-home-cta__sub {
  font-size: 12px;
  font-weight: normal;
  color: #555;
  display: block;
}

@media screen and (max-width: 767px) {
  .p-home-cta__inner {
    flex-direction: column;
    gap: 12px;
  }
  .p-home-cta__item {
    padding: 14px;
  }
}

/* ==========================================================================
   ご挨拶 (p-home-greeting)
   ========================================================================== */
.p-home-greeting {
  padding: 80px 0 120px;
  background-color: #ffffff;
}

.p-home-greeting__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* 画像 ＋ 縦書きコピー */
.p-home-greeting__img-box {
  display: flex;
  width: calc(55% + 20px);
  align-items: center;
  justify-content: flex-start;
  position: relative;
  left : -20px;
}

.p-home-greeting__img {
  width: 100%;
  border-radius: 8px;
}

.p-home-greeting__img img {
  width: 100%;
  height: auto;
  display: block;
}

/* 明朝体・縦書きスタイル */
.p-home-greeting__vertical-text {
  writing-mode: vertical-rl;
  font-family: "Hiragino Mincho ProN", "Shippori Mincho", Georgia, serif;
  font-feature-settings: initial;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #222;
  line-height: 1.8;
  white-space: nowrap;
  position: absolute;
  top: -5%;
  right: 3%;
}

.p-home-greeting__body {
  width: calc(45% - 40px);
}

.p-home-greeting__text {
  font-size: 15px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 30px;
}

.p-home-greeting__btns {
  display: flex;
  gap: 15px;
  padding: 0 20px;
}

@media screen and (max-width: 767px) {
  .p-home-greeting {
    padding: 50px 0 120px;
  }
  .p-home-greeting__inner {
    padding: 0 !important;
    flex-direction: column;
    gap: 30px;
  }
  .p-home-greeting__img-box {
    width: 100%;
    justify-content: center;
    left: 0;
  }
  .p-home-greeting__vertical-text {
    font-size: 22px;
  }
  .p-home-greeting__text {
    font-size: 14px;
    padding: 0 20px;
  }
  .p-home-greeting__body {
    width: 100%;
  }
}

/* ==========================================================================
   無限ループスライダー (p-home-gallery)
   ========================================================================== */
.p-home-gallery {
  padding: 0;
}

.p-home-gallery__loop {
  display: flex;
  width: max-content;
  margin-top: -50px;
}

.p-home-gallery__list {
  display: flex;
  gap: 0;
  /* 25秒かけて1回転（速度を変えたい場合はこの秒数を調整） */
  animation: infinite-scroll 25s linear infinite;
}

.p-home-gallery__item {
  width: 340px;
  flex-shrink: 0;
}

.p-home-gallery__item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 右から左へのアニメーション設定 */
@keyframes infinite-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media screen and (max-width: 767px) {
  .p-home-gallery__item {
    width: 240px;
  }
  .p-home-gallery__item img {
    height: auto;
  }
}

/* ==========================================================================
   当院の特徴 (p-home-feature)
   ========================================================================== */
.p-home-feature {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.p-home-feature__inner {
  padding: 0 !important;
  max-width: 1480px !important;
}

.p-home-feature__head {
  text-align: center;
  margin-bottom: 60px;
}

.p-home-feature__en {
  display: block;
  font-family: serif;
  font-size: 36px;
  color: #a38d7b;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 8px;
}

.p-home-feature__title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.p-home-feature__items {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* PC版：CSS Gridを使った重なりレイアウト */
.p-home-feature__item {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
}

/* 写真右寄せ（テキスト：左の1〜7列目） */
.p-home-feature__content {
  text-align: center;
  grid-column: 1 / 6;
  grid-row: 1;
  min-width: 350px;
  z-index: 2;
  background-color: #fff;
  padding: 45px 40px;
  margin: 0 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* 写真右寄せ（画像：右の6〜12列目／テキストと少し重なる） */
.p-home-feature__img {
  grid-column: 5 / 13;
  grid-row: 1;
  max-height: 420px;
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
}

.p-home-feature__img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 写真左寄せ（画像：左の1〜7列目） */
.p-home-feature__item--reverse .p-home-feature__img {
  grid-column: 1 / 9;
}

/* 写真左寄せ（テキスト：右の6〜12列目） */
.p-home-feature__item--reverse .p-home-feature__content {
  grid-column: 8 / 13;
}

.p-home-feature__item-title {
  font-family: serif;
  font-size: 20px;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.p-home-feature__num {
  font-size: 36px;
  color: #006699;
  font-weight: bold;
  margin-right: 10px;
  line-height: 1;
}

.p-home-feature__text {
  font-size: 15px;
  text-align: left;
  line-height: 2;
  color: #444;
  margin-bottom: 24px;
}

.p-home-feature__btn {
  display: inline-block;
  min-width: 180px;
}

/* ==========================================================================
   レスポンシブ (SP)
   ========================================================================== */
@media screen and (max-width: 767px) {
  .p-home-feature {
    padding: 50px 0;
  }

  .p-home-feature__head {
    margin-bottom: 40px;
  }

  .p-home-feature__items {
    gap: 50px;
  }

  .p-home-feature__item {
    display: flex;
    flex-direction: column;
  }

  /* SPでは全カード共通で「画像が上、テキストが下」の並び順に自動統一 */
  .p-home-feature__img {
    order: 1;
    width: 100%;
  }

  .p-home-feature__content {
    order: 2;
    width: 100%;
    padding: 30px 20px;
  }

  .p-home-feature__item-title {
    font-size: 16px;
    align-items: center;
  }

  .p-home-feature__num {
    font-size: 28px;
  }

  .p-home-feature__btn {
    width: 100%;
  }
}

/* ==========================================================================
   診療案内 (p-home-treatment)
   ========================================================================== */
.p-home-treatment {
  padding: 80px 0;
  background-color: #f2ede4; /* デザイン画像の背景ベージュ */
}

.p-home-treatment__head {
  text-align: center;
  margin-bottom: 60px;
}

.p-home-treatment__en {
  display: block;
  font-family: serif;
  font-size: 36px;
  color: #a38d7b;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 8px;
}

.p-home-treatment__title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

/* カテゴリーブロック（流用前提） */
.p-home-treatment__category {
  margin-bottom: 80px;
}

.p-home-treatment__category:last-child {
  margin-bottom: 0;
}

.p-home-treatment__cat-title {
  font-family: serif;
  font-size: 28px;
  font-weight: 600;
  color: #005d88; /* 深みのあるブルー */
  text-align: center;
  margin-bottom: 24px;
}

/* 症状・対象リスト */
.p-home-treatment__symptoms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 900px;
}

.p-home-treatment__symptoms li {
  font-size: 15px;
  color: #444;
  display: flex;
  align-items: center;
}

.p-home-treatment__symptoms li::before {
  content: "●";
  color: #a38d7b;
  font-size: 10px;
  margin-right: 6px;
}

/* 円形カード群のレイアウト (Flexboxで自動折り返し＆中央寄せ) */
.p-home-treatment__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 760px; /* 3つ並んだ際にちょうど折り返される幅 */
  margin: 0 auto;
}

/* 円形カード（<a>タグ化） */
.p-home-treatment__card {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  text-decoration: none; /* リンクの下線を消去 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* ホバー時の滑らかなアニメーション */
}

/* ホバー時の効果：少し浮き上がって影を強調 */
.p-home-treatment__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.p-home-treatment__card-icon {
  margin-bottom: 12px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-home-treatment__card-icon img {
	height: 100%;
	max-height: 100%;
  width: auto;
}

.p-home-treatment__card-text {
  font-size: 14px;
  color: #005d88;
  line-height: 1.4;
  margin: 0;
}

.p-home-treatment__card-text strong {
  display: block;
  font-size: 15px;
	line-height: 1.8;
  font-weight: 700;
}

.p-home-treatment__card-text span {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  font-weight: normal;
}

/* ==========================================================================
   レスポンシブ (SP)
   ========================================================================== */
@media screen and (max-width: 767px) {
  .p-home-treatment {
    padding: 50px 0;
  }

  .p-home-treatment__head {
    margin-bottom: 40px;
  }

  .p-home-treatment__cat-title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .p-home-treatment__symptoms {
    gap: 6px 12px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .p-home-treatment__symptoms li {
    font-size: 13px;
  }

  .p-home-treatment__cards {
    gap: 15px;
    max-width: 360px; /* SPで2つ並ぶ幅 */
  }

  .p-home-treatment__card {
    width: 155px;
    height: 155px;
    padding: 15px 10px;
  }

  .p-home-treatment__card-icon {
    height: 40px;
    margin-bottom: 8px;
  }

  .p-home-treatment__card-text strong {
    font-size: 14px;
  }

  .p-home-treatment__card-text span {
    font-size: 11px;
  }
}