/* rem　用*/
html {
  font-size: 62.5%;
}

body {
  font-family: "Yu Gothic", "游ゴシック", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
  margin: 0 0 !important;
  /* background-color: #ffffff; */
  background-image: url('../img/pc-bg.webp');
  background-size: cover;
  background-attachment: fixed;
  /* スクロールしても背景を固定 */
  background-position: center;
}

#wrapper {
  margin: 0 auto;
  max-width: 950px;
  overflow: hidden;
  width: 100%;
}

@media (min-width:750px) {
  body {
    background-image: url('../img/pc-bg.webp');
    background-size: cover;
  }

  #wrapper {
    margin: 0 auto;
    max-width: 750px;
    overflow: hidden;
    width: 50vw;
    box-shadow: 0 .4rem 16px rgba(41, 109, 198, 0.8);
    margin-right: 3vw !important;
    background-color: #fff;
  }
}


#wrapper img {
  height: auto;
  vertical-align: bottom;
  width: 100%;
}

#wrapper video {
  height: auto;
  vertical-align: bottom;
  width: 100%;
}

li {
  list-style: none;
}

a {
  -webkit-tap-highlight-color: transparent;
  /* ← 追加 */
}

h1,
h2,
h3,
h4,
p {
  margin: 0 0;
  padding: 0 0;
}

/* =================
アニメーション
==================== */
.fade-up {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
  /* 最終的に通常の位置に戻る */
}

.fade-down {
  opacity: 0;
  transform: translateY(-3rem);
  transition: opacity .8s ease-out, transform .8s ease-out;
}

.fade-down.active {
  opacity: 1;
  transform: translateY(0);
  /* 最終的に通常の位置に戻る */
}

.animate-moveup {
  animation: moveup-animation 2s infinite;
  /* 2秒間隔で繰り返し */
}

@keyframes moveup-animation {
  0% {
    /* 最初は下に表示 */
    opacity: 1;
    transform: scale(1)
  }

  50% {
    /* 最初は下に表示 */
    opacity: 1;
    transform: scale(.9)
  }

  100% {
    /* 上に移動して最終位置 */
    opacity: 1;
    transform: scale(1)
      /* 完全に表示される */
  }
}

/* =================END==================== */


#fv {
  position: relative;
}

#fv .top-effect,
#fv .top-layer,
#fv .txt,
#fv .cta {
  position: absolute;
}

#fv .top-layer {
  width: 100%;
  z-index: 99;
  left: 0;
  top: 2.5%;
}

#fv .top-effect {
  top: 0
}

.top-layer img {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

#fv .txt {
  width: 87.7%;
  left: 7%;
  top: 6.2%;
}

#fv .cta {
  width: 100%;
  left: 0;
  bottom: 0%;
}


.cp-information {
  position: relative;
}


.cp-information .txt {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 28.5%;
}


.cp-menu {
  position: relative;
}

.cp-menu .txt1,
.cp-menu .txt2,
.cp-menu .txt3 {
  position: absolute;
  width: 82%;
  left: 9%;
}

.cp-menu .txt1 {
  bottom: 80.5%;
}

.cp-menu .txt2 {
  bottom: 68.6%;
}

.cp-menu .txt3 {
  bottom: 58%;
}


.cp-menu .cta {
  position: absolute;
  width: 100%;
  left: 0%;
  bottom: 1.5rem;
}



.merit {
  position: relative;
}

.merit .img1,
.merit .img2,
.merit .img3 {
  position: absolute;
  width: 100%;
  left: 0;
}


.merit .img1 {
  bottom: 47%;
}

.merit .img2 {
  bottom: 26.5%;
}

.merit .img3 {
  bottom: 5.5%;
}


.pain-relief {
  position: relative;
}

.pain-relief .txt,
.pain-relief .img {
  position: absolute;

}

.pain-relief .txt {
  width: 93%;
  left: 3.5%;
  bottom: 36%;
}

.pain-relief .img {
  width: 100%;
  left: 0;
  bottom: 12%;
}


/* =================
offer
==================== */

#offer {
  position: relative;
}

#offer a {
  position: absolute;
  bottom: 1.5%;

}

.cta {
  bottom: 0;
  width: 100%;
  transform: translateX(-50%);
  left: 1%;
}


/*---------
クリニック一覧
----------*/
.access {
  background-color: #f9f9fa;
}

.clinic-list_wrap {
  padding: 2rem 2rem;
  background-color: #f9f9fa;
}

.clinic-list__inner {
  padding: 2rem 2vw;
  background: #e6f4ff;
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-between; */
  margin: 2vw 5vw;
  border-radius: 10px;
}

.hospital-card {
  display: block;
  background-color: #f9f9fa;
  border-radius: 5px;
  padding: 2vw 2vw;
  text-decoration: none;
  /* リンクの下線を消す */
  box-shadow: 0 .4rem 6px rgba(0, 0, 0, 0.1);
  /* 軽い影 */
  transition: transform 0.2s ease;
  /* ホバー時の動きを滑らかに */
  margin: 2vw 1.8vw;
  width: 24%;
  border: .4px solid #004a99;
}

.hospital-card:hover {
  transform: translateY(-3px);
  /* 少し浮き上がる */
}


/* 医院名のスタイル */
.hospital-card .name {
  color: #0099d9;
  /* 鮮やかな青 */
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

/* 「詳しく見てみる」のスタイル */
.link-text {
  color: #333;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 三角アイコン（擬似要素で作成） */
.link-text::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent #004a99;
  /* 濃い青の三角 */
  margin-left: 10px;
}

@media (min-width: 768px) {
  .hospital-card .name {
    font-size: 18px;
    margin-bottom: 5px;
  }


  .link-text {
    font-size: 12px;
  }


  .clinic-list__inner {
    /* background: #e6f4ff;
  display: flex;
  flex-wrap: wrap; */
    padding: 20px 20px;
    margin: 30px 50px;
    border-radius: 15px;
  }

  .clinic-list__inner {
    padding: 20px 20px;
  }


  .hospital-card {
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 .4rem 6px rgba(39, 42, 75, 0.1);
    /* 軽い影 */
    transition: transform 0.2s ease;
    /* ホバー時の動きを滑らかに */
    margin: 10px 5px;
    width: 100px;
  }


  /* 三角アイコン（擬似要素で作成） */
  .link-text::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 7px 0 7px 8px;
    border-color: transparent transparent transparent #004a99;
    /* 濃い青の三角 */
    margin-left: 4px;
  }


}

/* ===== モーダル オーバーレイ ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-overlay.is-open {
  display: flex;
}

/* ===== モーダル 本体 ===== */
.modal {
  background: #fff;
  border: 2px solid #a8d4f0;
  border-radius: 10px;
  padding: 6vw 5vw 7vw;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeUp 0.2s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 1.5vw;
  right: 1.5vw;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  line-height: 1;
}

.modal-close:hover {
  color: #555;
}

/* タイトル */
.modal-title {
  text-align: center;
  font-size: 1.7rem;
  font-weight: bold;
  color: #1a7abf;
  padding-bottom: 6px;
  border-bottom: 2px solid #1a7abf;
  width: 55%;
  margin: 0 auto 22px;
}

/* 情報テーブル（最寄り駅・住所） */
.info-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #c8dff0;
  margin-bottom: 16px;
}

.info-table tr {
  border-bottom: 1px solid #c8dff0;
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table th {
  background: #e8f3fb;
  color: #025397;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 10px 12px;
  /* width: 5%; */
  vertical-align: top;
  white-space: nowrap;
  border-right: 1px solid #c8dff0;
}

.info-table th {
  text-align: left;
  vertical-align: middle;
  /* 上下中央 */
}

.info-table td {
  padding: 10px 8px;
  font-size: 1.2rem;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
}

/* MAPエリア */
.map-area {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
  background: #ddeeff;
}

.map-area img {
  width: 100%;
  height: auto;
  display: block;
}

.map-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1.2rem;
}

/* 診療時間 セクションタイトル */
.section-title {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #1a7abf;
  flex-shrink: 0;
}

/* 診療時間テーブル */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #c8dff0;
  margin-bottom: 24px;
  text-align: center;
}

.hours-table th,
.hours-table td {
  border: 1px solid #c8dff0;
  padding: 2vw 2vw;
  font-size: 1.2rem;
  background-color: #fff;
}

.hours-table thead th {
  background: #e8f3fb;
  color: #333;
  font-weight: bold;
}

.hours-table .time-col {
  text-align: left;
  padding-left: 10px;
  white-space: nowrap;
  font-size: 1.2rem;
}

.dot {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  background: #1a7abf;
  border-radius: 50%;
}

/* 予約ボタン */
.btn-reserve {
  display: block;
  position: relative;
  width: 100%;
  padding: 2.5vw 4vw 3.5vw;
  background: #2db04b;
    color: #fffb03;
  font-size: 5.5vw;
  font-weight: bold;
  text-align: center;
  border-radius: 1rem;
  text-decoration: none;
  transition: background 0.2s;
  box-sizing: border-box;
  box-shadow: 3px 3px 2vw rgba(115, 150, 153, 0.65);
  line-height: 1.3;
  
}

.btn-reserve  a{
  color: #fffb03;
  text-decoration: none;
}

.btn-reserve span {
  color: #ffff;
  font-size: 4vw;
}

.btn-reserve:hover {
  background: #249e41;
}

.btn-reserve::after {
  content: ' ▶';
  font-size: 4.5vw;
  /* padding-right: 15vw; */
  position: absolute;
  right: 5%;
  bottom:32%;
}


@media (min-width: 768px) {
  .modal {
    border-radius: 12px;
    padding: 28px 24px 24px;
    width: 100%;
    max-width: 500px;
  }

  /* 閉じるボタン */
  .modal-close {
    top: 10px;
    right: 14px;
    font-size: 3rem;
  }

  /* タイトル */
  .modal-title {
    font-size: 25px;
    padding-bottom: 6px;
    margin: 0 auto 22px;
  }

  /* 情報テーブル（最寄り駅・住所） */
  .info-table {
    margin-bottom: 10px;
  }


  .info-table th {
    font-size: 15px;
    padding: 10px 12px;
    width: 80px;
  }

  .info-table td {
    padding: 10px 14px;
    font-size: 15px;
  }

  /* MAPエリア */
  .map-area {
    margin-bottom: 20px;
  }

  /* 診療時間 セクションタイトル */
  .section-title {
    font-size: 15px;
  }

  .section-title::before {
    width: 16px;
    height: 16px;
  }

  /* 診療時間テーブル */
  .hours-table {
    margin-bottom: 30px;
  }

  .hours-table th,
  .hours-table td {
    padding: 5px 15px;
    font-size: 15px;
  }

  .hours-table .time-col {
    padding-left: 10px;
    font-size: 15px;
  }

  .dot {
    width: 16px;
    height: 16px;
  }

  /* 予約ボタン */
  .btn-reserve {
    padding: 20px 5px;
    font-size: 28px;
    box-shadow: 5px 5px 13px rgba(115, 150, 153, 0.65);
  }

  .btn-reserve::after {
    font-size: 22px;
    /* margin-right: -40px; */
    
  }

  .btn-reserve span {
    color: #ffff;
    font-size: 22px;
  }

}


.offer-menu {
  position: relative;
}

.offer-menu .img1,
.offer-menu .img2,
.offer-menu .img3 {
  position: absolute;
  width: 85%;
  left: 7.5%;
}

.offer-menu .img1 {
  bottom: 34.4%;
}

.offer-menu .img2 {
  bottom: 23.2%;
}

.offer-menu .img3 {
  bottom: 11.8%;
}


.cp-offer {
  position: relative;
}

.cp-offer .cta {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 1.5rem;
}

/* =================
フローティングBTN
==================== */
.float-btn .cta img {
  margin-left: 0%;
  width: 100% !important;
}


.float-btn {
  opacity: 1;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 750px;
  z-index: 9999;
  padding: .5% 0;
}

.is-hidden {
  visibility: hidden;
  opacity: 0;
}