@charset "utf-8";

/* ================================================
   トップページ専用スタイル
   ================================================ */

/* body.top オーバーライド */
body.top .header-tel a {
  color: var(--color-sub);
}

body.top .header-tel span {
  color: var(--color-sub);
}

body.top .header-tel a span::before {
  color: var(--color-sub);
}

body.top .header-tel.fix .ff-ttl {
  color: inherit;
}

body.top .menu-trigger span {
  background-color: var(--color-sub);
}


/* メインビジュアル */
#mainvisual {
  padding-bottom: clamp(80px, 12vw, 200px);
  background: url(../image/mainvisual/back.png) right bottom / cover no-repeat;
  margin-bottom: 60px;
  overflow: hidden;
}



#mainvisual .inner {
  position: relative;
  max-width: 1260px;
  width: 100%;
  margin: auto;
  padding-left: clamp(14px, 1.46vw, 20px);
  padding-right: clamp(14px, 1.46vw, 20px);
  height: 720px;
  /* display: flex; */
}

.splide__track {
  width: 656px;
  height: 720px;
  position: absolute;
  right: clamp(14px, 1.46vw, 20px);
}

#mainvisual .splide__list,
#mainvisual .splide__slide,
#mainvisual .splide__slide picture {
  height: 100%;
}

#mainvisual .splide__slide picture {
  display: block;
}

#mainvisual .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

@media print,
screen and (max-width:750px) {
  #mainvisual {
    padding-bottom: clamp(60px, 10vw, 120px);
    background-position: center bottom;
    background-size: cover;
    margin-bottom: 0;
    /* スマホは直下の top-cta-bar が間隔を担う */
  }

  .splide__track {
    width: 87%;
    height: 400px;
    position: absolute;
    right: clamp(14px, 1.46vw, 20px);
  }

}

@keyframes blob-main {
  0% {
    border-radius: 60% 40% 55% 45% / 60% 48% 52% 40%;
  }

  50% {
    border-radius: 50% 50% 40% 60% / 45% 60% 40% 55%;
  }

  100% {
    border-radius: 60% 40% 55% 45% / 60% 48% 52% 40%;
  }
}

.blob-main {
  animation: blob-main 12s ease-in-out infinite;
  border-radius: 62% 38% 55% 45% / 60% 48% 52% 40%;
  border: 8px solid #E8F5F1;
}

#mainvisual .txt-box {
  text-align: left;
  position: absolute;
  left: clamp(14px, 1.46vw, 20px);
  top: 55%;
  transform: translateY(-50%);
  /* z-index: 1; */
}

#mainvisual .txt-box h2 {
  margin-bottom: 8px;
}


@media print,
screen and (max-width:1200px) {
  #mainvisual .txt-box {
    top: 100%;
    transform: translateY(-80%);
    /* z-index: 1; */
  }
}

@media print,
screen and (max-width:750px) {
  #mainvisual .txt-box p.en {
    font-size: var(--fs-2s);
  }

  #mainvisual .txt-box p:not(:last-of-type) {
    margin-bottom: 12px;
  }

  #mainvisual .txt-box p:last-of-type {
    margin-bottom: 18px;
  }

}

.scroll-indicator {
  position: relative;
  display: block;
  width: 200px;
  height: 200px;
  text-decoration: none;
  color: inherit;
}

@media print,
screen and (max-width:750px) {
  .scroll-indicator {
    position: relative;
    width: 120px;
    height: 120px;
  }
}

.circle-text {
  width: 100%;
  height: 100%;
  animation: spin 12s linear infinite;
}

.circle-text text {
  fill: #4AABB5;
  font-size: 14px;
  letter-spacing: 3px;
}

/* ===== 矢印（CSSのみ） ===== */
.arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 40px;
  background: #4AABB5;
  transform: translate(-50%, -50%);
  animation: bounce 1.5s ease-in-out infinite;
}

/* 矢印の先 */
.arrow::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid #4AABB5;
  border-bottom: 2px solid #4AABB5;
  transform: translateX(-50%) rotate(45deg);
}

/* 円を回す */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 矢印を上下させる */
@keyframes bounce {

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

  50% {
    transform: translate(-50%, -60%);
  }
}


/*----------------
top
----------------*/


/* 当院の特徴 */
.features {
  margin-bottom: var(--block-space-l);
}

.features>.inner h2 {
  margin-bottom: var(--box-space-l);
}

.features>.inner {
  width: 100%;
  max-width: 1260px;
  margin: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.features>.inner ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.features>.inner ul li {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #E8F5F1;
  border-radius: 40px 10px 10px 10px;
  padding: 40px;
  opacity: 0;
  transform: translateY(40px);
}

.features>.inner ul li .img-box {
  width: 35%;
}

.features>.inner ul li .txt-box {
  text-align: left;
  width: 65%;
}

.features>.inner ul li h3 {
  font-family: var(--ff-ttl);
  font-size: var(--fs-l);
  margin-bottom: 10px;
  letter-spacing: -1px;
  color: var(--color-main-dark);
  ;
  font-weight: bold;
}

@media screen and (max-width:1000px) {
  .features>.inner ul {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
  }
}

@media screen and (max-width:640px) {
  .features>.inner ul li {
    flex-direction: column;
  }

  .features>.inner ul li .img-box {
    width: 100%;
    max-width: 240px;
  }

  .features>.inner ul li .txt-box {
    width: 100%;
  }
}


/* 診療案内 */
.medical-info {
  /* background-color: #E8F5F1; */
  background-image: url(../image/top/mf-back.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  padding: var(--block-space-l) 0;
  margin-bottom: var(--block-space-l);
  transition: .3s;
}

.medical-info>.inner h2 {
  margin-bottom: var(--block-space-m);
}

.medical-info>.inner {
  max-width: 1560px;
  margin: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.mf-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media screen and (max-width:1000px) {
  .mf-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media screen and (max-width:640px) {
  .mf-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .medical-info {
    padding: var(--block-space-l) 0px;
  }
}

@media screen and (max-width:480px) {
  .mf-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.menu-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: #333;
}

.menu-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.menu-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-main-dark);
  overflow: hidden;
}

.menu-icon-circle img {
  width: 80%;
  height: auto;
}

.menu-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
  object-position: center;
  clip-path: circle(50%);
}

.menu-card:hover .menu-icon-image {
  transform: scale(1.1);
}

.menu-title {
  font-size: var(--fs-l);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;

}

.menu-link {
  border-bottom: 1px solid #8a8a8a;
  padding-bottom: 0.25rem;
  display: inline-block;
  transition: all 0.3s ease;
  font-family: var(--ff-en);
}

.menu-card:hover .menu-link {
  color: var(--brand-green);
  border-color: var(--brand-green);
  transform: scale(1.1);
}

/* ============================================
   アクセス・診療時間セクション
   ============================================ */


/* アクセス・診療時間 */
.access-section {
  /* padding: 5rem 0; */
  max-width: 1260px;
  margin: auto;
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 90px;
}

.access-section h2 {
  margin-bottom: var(--box-space-s);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.clinic-info {
  margin-bottom: 2rem;
}

.clinic-name {
  font-size: 1.25rem;
  font-weight: 700;
  /* color: var(--gray-800); */
  margin-bottom: 0.5rem;
}

.clinic-detail {
  display: flex;
  align-items: center;
  text-align: left;
}

.clinic-info .clinic-detail:not(:last-of-type) {
  margin-bottom: 0.5rem;
}

.clinic-info .clinic-detail:last-of-type {
  margin-bottom: var(--box-space-min);
}

.clinic-icon {
  width: 1.5rem;
  color: var(--brand-blue);
  margin-right: 0.5rem;
}

.schedule-table-wrapper {
  border: 1px solid rgb(241, 241, 241);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.schedule-table {
  width: 100%;
  text-align: center;
  /* font-size: 0.875rem; */
  border-collapse: collapse;
}

@media (min-width: 768px) {
  .schedule-table {
    /* font-size: 1rem; */
  }
}

.schedule-table thead {
  background-color: rgba(224, 242, 254, 0.5);
  /* color: var(--gray-700); */
}

.schedule-table th {
  padding: 0.75rem 0.25rem;
  font-weight: 700;
}

.schedule-table th:first-child {
  padding: 0.75rem 0.5rem;
}

.schedule-table .sat {
  color: #2563eb;
}

.schedule-table .sun {
  color: #ef4444;
}

.schedule-table tbody {
  color: var(--gray-600);
}

.schedule-table tbody tr {
  border-top: 1px solid var(--gray-200);
}

.schedule-table td {
  padding: 1rem 0.25rem;
  vertical-align: middle;
}

.time-cell {
  font-weight: 500;
  background-color: var(--gray-50);
  /* font-size: 0.75rem; */
  padding: 1rem 0.5rem;
}

@media (min-width: 768px) {
  .time-cell {
    /* font-size: 0.875rem; */
  }
}

.open {
  color: var(--brand-blue);
}

.closed {
  background-color: var(--gray-100);
  color: var(--gray-400);
}

.schedule-note {
  text-align: left;
}

.map-wrapper {
  height: 320px;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}

@media (min-width: 1024px) {
  .map-wrapper {
    height: auto;
    min-height: 320px;
  }
}

.map-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* filter: grayscale(100%); */
  transition: filter 0.5s ease;
}

/* .map-iframe:hover {
  filter: grayscale(0%);
} */

.map-label {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--brand-white);
  padding: 0.75rem;
  border-radius: 0.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* font-size: 0.75rem; */
  pointer-events: none;
}

/* ============================================
   フッター
   ============================================ */


/* 医院について パネル */
.about-panels {
  padding: var(--block-space-l) 0;
  background-color: #fff;
}

.about-panels>.inner {
  max-width: 1560px;
  margin: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.about-panels>.inner h2 {
  margin-bottom: var(--block-space-m);
}

.about-panels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.about-panel-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: #333;
  border-top: 4px solid var(--color-main);
  position: relative;
}

.about-panel-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.about-panel-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #d6f0ea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: transform 0.3s ease;
}

.about-panel-card:hover .about-panel-icon {
  transform: scale(1.1);
}

.about-panel-icon i {
  font-size: 3.5rem;
  color: #2d7a68;
}

.about-panel-card h3 {
  font-size: var(--fs-l);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.about-panel-more {
  border-bottom: 1px solid #8a8a8a;
  padding-bottom: 0.25rem;
  display: inline-block;
  transition: all 0.3s ease;
  font-family: var(--ff-en);
}

.about-panel-card:hover .about-panel-more {
  color: var(--brand-green);
  border-color: var(--brand-green);
  transform: scale(1.1);
}

@media screen and (max-width: 1000px) {
  .about-panels-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }
}

@media screen and (max-width: 640px) {
  .about-panels-grid {
    grid-template-columns: repeat(1, 1fr);
    max-width: 400px;
  }
}

/* CTAバー */
body.top .btn-web-reserve {
  background: var(--color-main);
}

/* ============================================================
   メインビジュアル直下 CTAバー（トップのみ）
   ============================================================ */
.top-cta-bar {
  display: none;
  /* PC では非表示（ヘッダーに同等のボタンあり） */
}

.top-cta-bar .cta-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-l);
  font-family: var(--ff-en);
  font-weight: 700;
  color: #2a3a36;
  text-decoration: none;
}

.top-cta-bar .cta-tel:hover {
  color: var(--color-main);
}

.top-cta-bar .cta-divider {
  color: #ccc;
  font-size: var(--fs-l);
}

.top-cta-bar .cta-reserve {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.75rem;
  background: var(--color-main);
  color: #fff;
  font-size: var(--fs-m);
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(79, 174, 155, 0.3);
  transition: background 0.2s, transform 0.15s;
}

.top-cta-bar .cta-reserve:hover {
  background: #3a9280;
  transform: translateY(-1px);
}

@media screen and (max-width: 750px) {
  .top-cta-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem;
    background: #fff;
    border-bottom: 2px solid #e0eeea;
    margin-bottom: 40px;
  }

  .top-cta-bar .cta-tel {
    font-size: var(--fs-m);
  }

  .top-cta-bar .cta-divider {
    display: none;
  }
}

/* ============================================================
   アクセスセクション Web予約ボタン
   ============================================================ */
.access-reserve-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2.25rem;
  background: var(--color-main);
  color: #fff;
  font-size: var(--fs-m);
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  margin-top: 1.5rem;
  box-shadow: 0 4px 14px rgba(79, 174, 155, 0.3);
  transition: background 0.2s, transform 0.15s;
}

.access-reserve-btn:hover {
  background: #3a9280;
  transform: translateY(-2px);
}