@charset "UTF-8";

/* ---------------------
  - *基本設定
  - *アニメーション
  - *タイトル
  - *メインビジュアル
  - *医院概要
  - *ご挨拶
  - *診療案内
  - *当院の特徴
  - *医療コラム
--------------------- */
/* ==================================================================================================================================

  *基本設定

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.front {
  overflow: hidden;
}

section .inner {
  padding: 100px 0;
}

.text > *:not(:last-child) {
  margin-bottom: 2em;
}

/* ----- パララックス ----- */
.parallax {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 500px;
}

/* 切り抜く範囲 */
.parallax_img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  clip-path: inset(0);
}

/* 固定する画像 */
.parallax_img::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  /* SPは各セクションの上下パディングを50pxで統一。左右は文字落ち対策で15px */
  section .inner {
    padding: 50px 15px;
  }

  /* ----- パララックス ----- */
  .parallax {
    height: 300px;
  }
}

/* ==================================================================================================================================

  *アニメーション

================================================================================================================================== */
@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeRightAnime {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeLeftAnime {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes zoomInAnime {
  from {
    pointer-events: none;
    transform: scale(0.5);
  }

  to {
    pointer-events: auto;
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes zoomOutAnime {
  from {
    pointer-events: none;
    transform: scale(1);
  }

  to {
    pointer-events: auto;
    opacity: 1;
    transform: scale(1.5);
  }
}
@keyframes scrolldown {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.fadeUp,
.zoomOut,
.zoomIn,
.fadeRight,
.fadeLeft {
  opacity: 0;
}

.fadeUp.is-active {
  animation: fadeUpAnime 1s forwards;
}

.fadeRight.is-active {
  animation: fadeRightAnime 1s forwards;
}

.fadeLeft.is-active {
  animation: fadeLeftAnime 1s forwards;
}

.zoomIn.is-active {
  animation: zoomInAnime 0.8s forwards;
}

.zoomOut.is-active {
  animation: zoomOutAnime 1s forwards;
}

/* ==================================================================================================================================

  *タイトル

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
/* 英字を薄いブルーで大きく敷き、その上に日本語見出しを重ねるレイヤー型 */
.top_title {
  position: relative;
  z-index: 1;
  margin-bottom: 50px;
  line-height: 1.5;
  text-align: center;

  /* 左寄せ */
}

.top_title.title_left {
  text-align: start;
}

.top_title .eng {
  display: block;
  color: #edf5fb;
  font-size: 82px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.top_title h2 {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  font-size: 220%;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .top_title {
    margin-bottom: 40px;
  }

  .top_title .eng {
    font-size: 38px;
  }

  .top_title h2 {
    margin-top: -21px;
    font-size: 26px;
  }
}

/* ==================================================================================================================================

  *メインビジュアル

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.mainvisual {
  position: relative;
  z-index: 1;
  height: 800px;
  overflow: hidden;
}

.mvSlider {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* ----- スライダーのArrowボタン ----- */
.mvSlider .sliderBtn {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
}

.mvSlider .sliderBtn#mv_btnPrev {
  left: 20px;
}

.mvSlider .sliderBtn#mv_btnNext {
  right: 20px;
}

.mvSlider .sliderBtn span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: var(--main-color);
  border-radius: 50%;
  transition: background 0.2s;
}

.mvSlider .sliderBtn span:hover {
  background: var(--text-color);
}

.mvSlider .sliderBtn span::before {
  padding: 0 0 1px 0;
  font-family: "Font Awesome 5 Free";
  font-style: normal;
  font-weight: 900;
  color: #ffffff;
  font-size: 15px;
  transition: color 0.2s;
}

.mvSlider .sliderBtn#mv_btnPrev span::before {
  content: "\f060";
}

.mvSlider .sliderBtn#mv_btnNext span::before {
  content: "\f061";
}

/* 各スライダーのボタンは非表示に */
.mvSlider .splide__arrows {
  display: none;
}

/* ----- MVの画像 ----- */
.mvImg {
  width: 100%;
  height: 100%;
}

.mvImg .splide__track {
  width: 100%;
  height: 100%;
}

.mvImg .splide__slide {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.mvImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* フェードの専用スタイル */
.fade .mvImg .splide__slide img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: calc(100% + 50px);
  pointer-events: none;
}

/* アニメーションを実行 */
.fade.move .mvImg .splide__slide img {
  animation: hideTranslate 8s ease-out forwards;
}

.fade.move .mvImg .splide__slide.is-active img {
  animation: showTranslate 8s ease-out forwards;
}

/* MVのアニメーション  */
@keyframes showTranslate {
  0% {
    transform: translate3d(0, 0px, 0);
  }

  100% {
    transform: translate3d(0, -30px, 0);
  }
}
@keyframes hideTranslate {
  0% {
    transform: translate3d(0, -30px, 0);
  }

  100% {
    transform: translate3d(0, 0px, 0);
  }
}

/* ----- キャッチコピー ----- */
.mvCatch {
  position: absolute !important;
  top: 20%;
  left: 0;
  z-index: 3;
  width: 100%;
  transform: translateY(-50%);
}

.mvCatch .inner {
  position: relative;
  z-index: 1;
}

.mvCatch p {
  font-size: 220%;
  filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 5px #ffffff);
}

/* ----- キャッチコピー（本サイト用） ----- */
/* リード文・メインコピーとも同じ文字サイズ */
.mvCatch .mv_catch_lead, .mvCatch .mv_catch_main {
    font-size: 40px;
  font-weight: bold;
  line-height: 1.55;
  /*filter: none;*/
}

.mvCatch .mv_catch_lead {
  margin-bottom: 10px;
}

.mvCatch .mv_catch_main span {
  color: var(--main-dark);
}

.mvCatch p.mv_catch_sub {
  font-size: 35px;
  font-weight: bold;
  color: var(--text-color);
  font-family: var(--font-heading);
  padding-top: 20px;
}

/* ----- コンテンツ ----- */
.mvContents {
  position: absolute !important;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.mvContents .inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.mvContents .splide__track {
  width: 100%;
  height: 100%;
}

/* ----- MVバナー（開院＋診療案内アイコン） ----- */
.mv_bnr {
  position: absolute;
  bottom: 40px;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-m);
  overflow: hidden;
}

/* 開院ブロック（青）
   角丸は付けず、カード側の overflow: hidden で外側の角だけ丸くする */
.mv_bnr_open {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  /* gap: 30px; */
  gap: 20px;
  /* padding: 34px 20px 34px 30px; */
  padding: 34px 20px 34px 30px;
  background: var(--main-light);
  color: #ffffff;
}

.mv_bnr_open_main {
  text-align: center;
}

.mv_bnr_open_main .date {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.5;
  white-space: nowrap;
}

.mv_bnr_open_main .date em {
  font-style: normal;
  font-size: 34px;
  line-height: 1;
}

.mv_bnr_open_main .text {
  font-size: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.mv_bnr_open_sub {
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 17px;
  line-height: 1.7;
}

.mv_bnr_open_sub .date {
    line-height: 1.5;
}

.mv_bnr_open_sub .title {
  margin-bottom: 3px;
  font-weight: bold;
}

.mv_bnr_open_sub .date {
  color: rgba(255, 255, 255, 0.85);
}

/* アイコン3項目 */
.mv_bnr_list {
  display: flex;
  flex: 1;
  align-items: stretch;
}

.mv_bnr_list li {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.mv_bnr_list li:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 1px;
  height: 50px;
  background: var(--line-color);
  transform: translateY(-50%);
}

.mv_bnr_list li > * {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 32px 14px;
  color: var(--text-color);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
}

/* アイコン（スライス画像） */
.mv_bnr_list li > *::before {
  content: "";
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: no-repeat center/contain;
}

.mv_bnr_list .ico_calendar > *::before {
  background-image: url(../images/front/icon-calendar.png);
}

.mv_bnr_list .ico_train > *::before {
  background-image: url(../images/front/icon-train.png);
}

.mv_bnr_list .ico_search > *::before {
  background-image: url(../images/front/icon-search.png);
}

.mv_bnr_list .ico_fever > *::before {
  background-image: url(../images/front/icon_fever.png);
  height: 45px;
  width: 45px;
}

/* 症状から探す（リンク）の矢印 */
.mv_bnr_list a {
  position: relative;
  z-index: 1;
  padding-right: 60px;
  transition: opacity 0.2s;
}

.mv_bnr_list a::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 20px;
  display: block;
  width: 22px;
  height: 10px;
  background: url(../images/front/icon-arrow.png) no-repeat center/contain;
  transition: right 0.2s;
}

.mv_bnr_list a:hover {
  opacity: 0.6;
}

.mv_bnr_list a:hover::after {
  right: 10px;
}

/* ----- medisma WEB予約ウィジェット（インライン埋め込み） ----- */
/* PCはMVの右側、開院バナーの上に重ねる
   bottom は「開院バナーの bottom 40px ＋ バナーの高さ約150px ＋ 余白20px」 */
.mv_widget {
  position: absolute;
  right: 0;
  bottom: 210px;
  z-index: 3;
  width: 464px;
}

/* ----- スマホ専用エリア ----- */
.sp_only {
  display: none;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .mainvisual {
    height: 400px;
	padding-top: 42px;
  }

  /* ----- スライダーのArrowボタン ----- */
  .mvSlider .sliderBtn {
    top: 50%;
    width: 40px;
    height: 40px;
    padding: 2px;
    font-size: 12px;
  }

  .mvSlider .sliderBtn#mv_btnPrev {
    left: 10px;
  }

  .mvSlider .sliderBtn#mv_btnNext {
    right: 10px;
  }

  .mvSlider .sliderBtn span::before {
    font-size: 11px;
  }

  /* ----- キャッチコピー ----- */
  /* カンプではSPもキャッチを表示するため、テンプレの display:none は解除して上寄せにする */
  .mvCatch {
    top: 25px;
    bottom: auto;
    display: block;
    transform: none;
  }

  .mvCatch p {
    font-size: 130%;
    line-height: 1.75;
    filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 3px #ffffff);
  }

  /* ----- キャッチコピー（本サイト用） ----- */
  /* SPはヘッダーロゴと紛らわしいため、リードを小さくして強弱をつける */
  .mvCatch .mv_catch_main {
    font-size: 20px;
    line-height: 1.6;
  }

  .mvCatch .mv_catch_lead {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.6;
  }

  /* ----- コンテンツ ----- */
  .mvContents {
    display: none;
  }

  /* ----- medisma WEB予約ウィジェット（インライン埋め込み） ----- */
  /* SPはMVの下（.sp_only 内）に通常配置し、開院バナーと幅をそろえる */
  .mv_widget {
    position: static;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  /* ----- MVバナー（開院＋診療案内アイコン） ----- */
  .mv_bnr {
    margin: 40px auto 0;
    position: static;
    flex-flow: column;
    width: 100%;
    max-width: 350px;
  }

  /* 横並びだと文字落ちするため、SPは上下2段に組み替える */
  .mv_bnr_open {
    flex-flow: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 0;
    text-align: center;
  }

  .mv_bnr_open_main .date {
    font-size: 15px;
  }

  .mv_bnr_open_main .date em {
    font-size: 26px;
  }

  .mv_bnr_open_main .text {
    font-size: 23px;
  }

  .mv_bnr_open_sub {
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-left: none;
        font-size: 19px;
    line-height: 1.6;
  }
	
.mv_bnr_open_sub .date {
    line-height: 1.2;
	}

  /* アイコン3項目 */
  .mv_bnr_list {
    flex-flow: wrap;
    background: rgb(242 249 255 / 80%);
  }

  .mv_bnr_list li {
    flex: none;
    width: 50%;
  }
  .mv_bnr_list li.ico_train,
  .mv_bnr_list li:last-child {
    width: 100%;
    border-top: 1px solid var(--line-color);
  }

  .mv_bnr_list li:last-child::before {
    display: none;
  }

  .mv_bnr_list li > * {
    gap: 10px;
    padding: 15px 10px;
    font-size: 15px;
  }

  .mv_bnr_list li > *::before {
    width: 26px;
    height: 26px;
  }

  .mv_bnr_list a {
    justify-content: center;
    width: 100%;
    padding-right: 40px;
  }

  .mv_bnr_list a::after {
    right: 18px;
    bottom: 50%;
    width: 18px;
    transform: translateY(50%);
  }

  /* ----- スマホ専用エリア ----- */
  /* 上（h1のmargin-bottom 30px）と同じ余白を下にも取り、お知らせと密着させない */
  .sp_only {
    display: block;
    margin-bottom: 30px;
    background: none !important;
  }

  .sp_only .inner {
    padding: 0 15px;
  }

  .sp_only_contents {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
	
.mvCatch p.mv_catch_sub {
  font-size: 17px;
  padding-top: 10px;
}	
}

/* ==================================================================================================================================

  *医院概要（パターン02）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.clinic {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* ----- 背景のドット柄 ----- */
.clinic::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(107, 163, 214, 0.22) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* ----- 背景の三重円（左：ブルー／右：ゴールド） ----- */
.clinic_deco {
  position: absolute;
  z-index: -1;
  display: block;
  width: 620px;
  height: 620px;
  border: 2px solid currentColor;
  border-radius: 50%;
  pointer-events: none;
  animation: clinicDeco 18s ease-in-out infinite alternate;
}

/* 3本ともほぼ同じ大きさで、中心を少しずつずらして重ねる */
.clinic_deco::before, .clinic_deco::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.clinic_deco::before {
  top: 47%;
  left: 53%;
  animation: clinicDecoShift1 11s ease-in-out infinite alternate;
}

.clinic_deco::after {
  top: 43%;
  left: 57%;
  animation: clinicDecoShift2 15s ease-in-out infinite alternate;
}

.deco_left {
  top: 60px;
  left: -300px;
  color: rgba(107, 163, 214, 0.18);
}

.deco_right {
  right: -330px;
  bottom: -80px;
  color: rgba(237, 193, 78, 0.25);
  animation-duration: 17s;
  animation-direction: alternate-reverse;
}

/* 左右で周期をずらし、重なり方が揃わないようにする */
.deco_right::before {
  animation-duration: 13s;
  animation-direction: alternate-reverse;
}

.deco_right::after {
  animation-duration: 19s;
  animation-direction: alternate-reverse;
}

/* 右側は左右対称にならないよう、ずらす向きを反転 */
.deco_right::before {
  top: 53%;
  left: 47%;
}

.deco_right::after {
  top: 57%;
  left: 43%;
}

/* 外側の円：ゆっくり浮遊＋わずかに拡縮 */
@keyframes clinicDeco {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(0, -46px, 0) scale(1.07);
  }
}

/* 内側の円：外側と別周期で動かし、重なり方を変化させる
   （translate(-50%, -50%) は中心合わせなので必ず先頭に残すこと） */
@keyframes clinicDecoShift1 {
  0% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
  }

  100% {
    transform: translate(-50%, -50%) translate3d(34px, 24px, 0);
  }
}

@keyframes clinicDecoShift2 {
  0% {
    transform: translate(-50%, -50%) translate3d(0, 0, 0);
  }

  100% {
    transform: translate(-50%, -50%) translate3d(-28px, 40px, 0);
  }
}

/* 視差設定で動きを減らしているユーザーには停止 */
@media (prefers-reduced-motion: reduce) {
  .clinic_deco, .clinic_deco::before, .clinic_deco::after {
    animation: none;
  }
}

/* ----- お知らせ ----- */
.clinic .news {
  position: relative;
  z-index: 1;
}

.clinic .news .inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  padding: 100px 0 70px;
}

.clinic .news .news_left {
  flex-shrink: 0;
}

/* お知らせは横並びで見出しスペースが狭いため、レイヤー型にせずシンプルな英日縦組みにする */
.clinic .news .top_title {
  margin: 0 0 30px;
}

.clinic .news .top_title .eng {
  margin-bottom: 6px;
  color: var(--main-color);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.25em;
}

.clinic .news .top_title h2 {
  margin-top: 0;
  font-size: 200%;
}

.clinic .news .btn01 {
  margin-top: 30px;
  text-align: center;
}

/* ----- 医院概要 ----- */
.clinic .info .inner {
  display: flex;
  gap: 40px;
  padding: 0 0 100px;
}

.clinic .info .inner>* {
  width: calc(50% - 20px);
}

/* 医院情報側に薄いブルーのパネルを敷く */
.clinic .info .info_left {
  padding: 40px;
  background: rgb(242 249 255 / 80%);
  border-radius: 15px;
}

.clinic .info .office_hour .title {
  background: #ffffff;
  border-radius: 10px;
}

.clinic .info .office_hour .table_wrapper {
  background: #ffffff;
  border-radius: 10px;
}

.clinic .info address>* {
  position: relative;
  z-index: 1;
  min-height: 40px;
}

.clinic .info address>*::before {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  padding: 0 0 0 2px;
  background: var(--main-color);
  border-radius: 50%;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #ffffff;
  font-size: 16px;
}

.clinic .info address .location {
  padding: 5px 0 5px 50px;
}

.clinic .info address .location::before {
  content: "\f3c5";
}

.clinic .info address .location .zipcode {
  margin-right: 10px;
}

.clinic .info address .tel {
  margin-top: 15px;
  padding: 3px 0 7px 50px;
  font-size: 30px;
  line-height: 1;
}

.clinic .info address .tel::before {
  content: "\f3cd";
}

.clinic .info address .fax {
  margin-top: 15px;
  padding: 5px 0 5px 50px;
  font-size: 30px;
  line-height: 1;
}

.clinic .info address .fax::before {
  content: "\f249";
}

.clinic .info .note {
  margin-top: 20px;
  padding-left: 12px;
  font-size: 90%;
}

.clinic .info .speciality {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px auto 0;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
}

.clinic .info .speciality .title {
  flex-shrink: 0;
  width: fit-content;
  padding: 10px 30px;
  background: var(--main-color);
  border-radius: 10px;
  color: #ffffff;
  text-align: center;
}

.clinic .info .googlemap iframe {
  height: 500px;
  border-radius: 15px;
}

/* ----- アクセス ----- */
.clinic .info .list_access {
  margin-top: 20px;
  padding: 20px 25px;
  background: rgb(242 249 255 / 80%);
  border-radius: 15px;
}

.clinic .info .list_access li {
  position: relative;
  z-index: 1;
  padding: 8px 0 8px 40px;
  border-bottom: none;
  font-size: 100%;
  line-height: 1.6;
}

.clinic .info .list_access li:not(:last-child) {
  border-bottom: 1px dashed var(--line-color);
}

.clinic .info .list_access li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  width: 28px;
  height: 28px;
  background: url(../images/front/icon-pin.png) no-repeat center/contain;
  transform: translateY(-50%);
}

.clinic .info .calendar_text {
  margin-top: 20px;
}

.clinic .info .btn01 {
  margin-top: 30px;
  text-align: center;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {

  /* ----- 背景のドット柄・三重円 ----- */
  .clinic::before {
    background-size: 18px 18px;
  }

  .clinic_deco {
    width: 300px;
    height: 300px;
  }

  .deco_left {
    top: 30px;
    left: -155px;
  }

  .deco_right {
    right: -160px;
    bottom: -50px;
  }

  /* ----- お知らせ ----- */
  .clinic .news .inner {
    flex-flow: column;
    gap: 0;
    padding: 50px 15px 30px;
  }

  /* ----- 医院概要 ----- */
  .clinic .info .inner {
    flex-flow: column;
    padding: 0 15px 50px;
  }

  .clinic .info .inner>* {
    width: 100%;
  }

  .clinic .info .info_left {
    padding: 22px 12px;
  }

  /* 電話番号はSPでは大きすぎるので縮小 */
  .clinic .info address .tel {
    font-size: 22px;
  }

  .clinic .info .googlemap iframe {
    height: 300px;
  }

  .clinic .info .list_access {
    margin-top: 15px;
    padding: 12px 15px;
  }

  .clinic .info .list_access li {
    padding: 8px 0 8px 34px;
    font-size: 95%;
  }

  .clinic .info .list_access li::before {
    width: 24px;
    height: 24px;
  }

  .clinic .info .speciality {
    flex-flow: column;
    gap: 10px;
    padding: 10px;
  }

  .clinic .info .speciality .title {
    width: 100%;
  }
}

/* ==================================================================================================================================

  *ご挨拶（パターン01）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.greeting {
  position: relative;
  z-index: 1;
}

.greeting_box {
  position: relative;
  z-index: 1;
}

.greeting_flex {
  display: flex;
  gap: 60px;
}

.greeting_box:not(:last-child) {
  margin-bottom: 70px;
}

.greeting_left {
  flex-shrink: 0;
  width: 58%;
}

.greeting_text > *:not(:last-child) {
  margin-bottom: 2em;
}

/* ----- 右カラム（写真＋プロフィール） ----- */
.greeting_right {
  position: relative;
  z-index: 1;
  flex: 1;
}

/* 右上のドット装飾 */
.greeting_right::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  z-index: -1;
  display: block;
  width: 150px;
  height: 150px;
  background: url(../images/front/top_greeting_circle.png) no-repeat right top/contain;
}

/* 写真は左上だけ大きく丸めて、右上のドット装飾と対角でバランスを取る */
.greeting_img {
  border-radius: 80px 15px 15px 15px;
  overflow: hidden;
}

.greeting_img img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* 名前プレートは写真の下端に重ねて、左右を内側に寄せる（影は使わない） */
.greeting_profile {
  position: relative;
  z-index: 2;
  width: 86%;
  margin: 0 auto;
  padding: 40px 20px 42px;
  background: var(--bg-cream);
  border-radius: 15px;
  color: var(--text-color);
  line-height: 1.75;
  text-align: center;
}

.greeting_img + .greeting_profile {
  margin-top: -48px;
}

.greeting_profile .position {
  margin-bottom: 2px;
  color: var(--main-color);
  font-size: 88%;
  letter-spacing: 0.15em;
}

.greeting_profile .name {
  font-size: 165%;
  font-weight: bold;
  letter-spacing: 0.2em;
}

/* ----- 詳細へボタン（白地＋ゴールドの枠線） ----- */
.greeting_btn {
  margin-top: 60px;
  text-align: center;
}

.greeting_btn > * {
  background: #ffffff;
  border: 1px solid var(--sub-color);
  color: var(--sub-color);
}

.greeting_btn > *:hover {
  background: var(--sub-color);
  color: #ffffff;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .greeting_flex {
    flex-flow: column-reverse;
    gap: 25px;
  }

  .greeting_left {
    width: 100%;
  }

  .greeting_right::before {
    top: -20px;
    right: -20px;
    width: 90px;
    height: 90px;
  }

  .greeting_img {
    border-radius: 50px 15px 15px 15px;
  }

  .greeting_profile {
    width: 90%;
    padding: 16px 15px 18px;
  }

  .greeting_img + .greeting_profile {
    margin-top: -36px;
  }

  .greeting_profile .name {
    font-size: 145%;
  }

  .greeting_btn {
    margin-top: 40px;
  }
}

/* ==================================================================================================================================

  *診療案内（パターン01）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.medical {
  background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)), url(../images/common/dmy.jpg) no-repeat center/cover;
}

.medical .top_title {
  color: var(--main-dark);
}

/* 写真背景の上なので、背面の英字は白の透過に */
.medical .top_title .eng {
  color: rgba(255, 255, 255, 0.6);
}

/* カードをまとめる半透明の白パネル */
.medical_list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
}

.medical_item {
  position: relative;
  z-index: 1;
  width: calc(25% - 15px);
  height: auto;
  background: #ffffff;
  border-radius: 12px;
}

.medical_item:not(.coming):hover {
  transform: translateY(-6px);
}

/* 準備中（URL未入力）の項目 */
.medical_item.coming {
  pointer-events: none;
}

.medical_img {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
}

.medical_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 上揃えにして、1行／2行どちらでもアイコンの位置が揃うようにする */
.medical_inner {
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 230px;
  padding: 30px 15px 26px;
  background: none;
  text-align: center;
}

.medical_inner > *:not(:last-child) {
  margin-bottom: 15px;
}

/* アイコン画像側に円が入っているため、CSSでは円を描かない */
.medical_icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 92px;
  max-width: none;
  height: 92px;
  margin: 0 auto 18px !important;
  padding: 0;
}

.medical_icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 2行分の高さを確保して、シェブロン／準備中の位置も揃える */
.medical_title {
  display: flex;
  flex-flow: column;
  justify-content: center;
  min-height: 52px;
}

.medical_title h3 {
  color: var(--main-dark);
  font-size: 108%;
  line-height: 1.5;
}

/* リンクありは丸いシェブロン、準備中はグレーのピル */
.medical_inner::after {
  content: "\f105";
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  margin-top: 14px;
  background: var(--main-pale);
  border-radius: 50%;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--main-color);
  font-size: 11px;
  transition: background 0.2s, color 0.2s;
}

.medical_item:hover .medical_inner::after {
  background: var(--main-color);
  color: #ffffff;
}

.medical_item.coming .medical_icon img {
  filter: grayscale(1) opacity(0.5);
}

.medical_item.coming .medical_title h3 {
  color: #9a9a9a;
}

.medical_item.coming .medical_inner::after {
  content: "準備中";
  width: auto;
  height: auto;
  padding: 4px 20px 5px;
  background: #b5b5b5;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: normal;
  color: #ffffff;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.medical_title_eng {
  margin-top: 5px;
  color: var(--main-color);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 1px;
  text-align: center;
}

.medical_text {
  color: var(--text-color);
}

.medical_btn span {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 auto;
  padding: 7px 25px 7px 15px;
  background: var(--main-color);
  border: 1px solid var(--main-color);
  color: #ffffff;
  letter-spacing: 1px;
  text-align: center;
  transition: padding 0.2s, color 0.2s, background 0.2s;
}

.medical_btn span::after {
  content: "\f105";
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-block;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 10px;
  transform: translateY(-50%);
}

.medical_item:hover .medical_btn span {
  background: #ffffff;
  color: var(--main-color);
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .medical {
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url(../images/common/dmy.jpg) no-repeat center/cover;
  }

  .medical_list {
    gap: 10px;
    padding: 12px;
    border-radius: 15px;
  }

  .medical_item {
    width: calc(50% - 5px);
  }

  .medical_item:not(.coming):hover {
    transform: translateY(-4px);
  }

  .medical_inner {
    min-height: 175px;
    padding: 18px 8px 16px;
  }

  .medical_icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px !important;
    padding: 0;
  }

  .medical_title {
    min-height: 48px;
  }

  .medical_title h3 {
    font-size: 100%;
  }

  .medical_inner::after {
    margin-top: 10px;
  }

  .medical_item.coming .medical_inner::after {
    padding: 3px 15px 4px;
    font-size: 11px;
  }
}

/* ==================================================================================================================================

  *当院の特徴（パターン02）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
/* 背景はカンプの装飾画像。background-image には opacity が効かないので
   擬似要素に持たせて不透明度を落とす。濃さの調整は opacity の1行だけでよい */
.feature {
  position: relative;
  z-index: 1;
  background: var(--bg-color);
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  background: url(../images/front/top_feature_bg.png) no-repeat center / 100% 100%;
  opacity: 0.3;
  pointer-events: none;
}

.feature .top_title .eng {
  color: var(--main-pale);
}

.feature_list {
  display: flex;
  flex-flow: column;
  gap: 30px;
}

/* 写真は常に左、テキストは右。比率は約3:7
   写真は 640×480（4:3）固定なので、ボックス側を4:3にして切り抜き・変形を起こさない。
   高さを揃えるための stretch は使わず、中央揃えにする */
.feature_item {
  display: flex;
  align-items: center;
  gap: 45px;
  width: 100%;
  height: auto;
  margin-top: 0;
  padding: 30px;
  background: #ffffff;
  border-radius: var(--radius-l);
}

.feature_img {
  flex: 0 0 30%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  margin-top: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.feature_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: bottom;
}

.feature_inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-flow: column;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 40px 45px 40px 0;
  background: none;
  border-radius: 0;
}

.feature_title {
  display: flex;
  flex-flow: column;
  margin-bottom: 22px;
}

.feature_title h3 {
  color: var(--text-color-brown);
  font-size: 150%;
  line-height: 1.6;
}

/* Feature 01 → 「Feature」はブルー小、番号はゴールド大、末尾にゴールドの短い線 */
.feature_num {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: /*var(--main-color)*/;
  color: var(--text-color-brown);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.2em;
  line-height: 1;
}

.feature_num span {
  color: var(--sub-color);
  font-size: 190%;
  letter-spacing: 0.04em;
}

.feature_num::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  background: var(--sub-color);
  border-radius: var(--radius-pill);
}

.feature_text {
  line-height: 2;
}

.feature_button {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 25px;
}

.feature_button .btn01 {
  text-align: center;
}
/* リンク先が未定のボタンは URL欄に「#」を入れて「準備中」表示にする
   （ACFでURLが必須のため空欄にできない。既存の .btn01 > a[href=""] と同じ見た目） */
.feature_button .btn01 > a[href="#"] {
  pointer-events: none;
}

.feature_button .btn01 > a[href="#"]::before {
  content: "準備中";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-pill);
  color: #ffffff;
  transform: translate(-50%, -50%);
}

/* ----- 左右 ----- */
/* 画像は全項目とも左固定のため、偶数番目を反転する指定は使用しない */

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .feature_num span {
    font-size: 170%;
  }

  .feature_list {
    gap: 20px;
  }

  .feature_item {
    flex-flow: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 15px;
  }

  .feature_img {
    flex: none;
    width: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
  }

  .feature_inner {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 25px 10px 15px;
  }

  .feature_title {
    min-height: auto;
    margin-bottom: 15px;
  }

  .feature_title h3 {
    font-size: 128%;
  }
}

/* ==================================================================================================================================

  *医療コラム（パターン01）

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
.column {
  background: var(--bg-color);
}

.column .column_list {
  display: flex;
  flex-flow: wrap;
  justify-content: center;
  gap: 50px 25px;
  padding: 30px;
  background: #ffffff;
}

.column .column_box {
  width: calc(25% - 18.75px);
}

.column .column_box dt a {
  display: block;
  padding: 15px 10px;
  background: var(--main-color);
  color: #ffffff;
  font-size: 110%;
  text-align: center;
}

.column .column_box dd {
  padding: 10px 10px;
  border-bottom: 1px dashed var(--line-color);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  .column .column_list {
    gap: 40px;
  }

  .column .column_box {
    width: 100%;
  }
}

/* ==================================================================================================================================

  *無限スライダー

================================================================================================================================== */
/* ----------------------------------------------------------------------
  ▼ PC
---------------------------------------------------------------------- */
#infinitySlider {
  padding: 10px 0;
}

#infinitySlider .splide__list {
  gap: 10px;
}

#infinitySlider .splide__slide {
  width: 400px !important;
}

/* ----------------------------------------------------------------------
  ▼ SP
---------------------------------------------------------------------- */
@media screen and (max-width: 640px) {
  #infinitySlider .splide__slide {
    width: 300px !important;
  }
}
