/* ==== 当院のご案内 ==== */
.lp-access {
  background: #fff;
  font-family: "Zen Old Mincho", serif;
  scroll-margin-top: 100px;
  padding: clamp(28px, 4.5vw, 56px) 0;
}

.lp-access__wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 上段グリッド（左右半々） */
.lp-access__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
  margin-bottom: clamp(30px, 3.4vw, 40px);
}

/* 左：基本情報 */
.lp-access__info {
  border-left: 5px solid #8EC6EC;
  background: #F7FBFF;
  padding: clamp(12px, 2vw, 18px) clamp(14px, 2.6vw, 22px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: clamp(12.5px, 1.5vw, 13.5px);
  line-height: 1.8;
}

.lp-access__info .row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #D5E4F7;
}
.lp-access__info .row:last-child { border-bottom: none; }

.lp-access__info dt {
  color: #244A9B;
  font-weight: 900;
  letter-spacing: .02em;
}
.lp-access__info dd {
  margin: 0;
  color: #1A1A1A;
}
.lp-access__info small {
  color: #555;
  font-size: 0.9em;
}

/* 右：MAP（控えめサイズ） */
.lp-access__map {
  border: 1px solid #D5E4F7;
  overflow: hidden;
  aspect-ratio: 4 / 3; /* ← 縦長すぎず、横広すぎない比率 */
  height: auto;
}
.lp-access__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 下段（外観 + 診療時間） */
.lp-access__grid--second {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(20px, 3vw, 36px);
}

/* 外観写真 */
.lp-access__photo {
  margin: 0;
  border: 1px solid #D5E4F7;
  overflow: hidden;
  height: auto;
  max-height: 320px; /* ← 画像の主張を抑える */
}
.lp-access__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 診療時間カード */
.lp-access__timecard {
  border: 1px solid #3F6CCF;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: clamp(12.5px, 1.5vw, 13.5px);
}

/* テーブル */
.lp-time {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(12.5px, 1.5vw, 13.5px);
}
.lp-time thead th {
  background: #4B69E1;
  color: #fff;
  font-weight: 800;
  text-align: center;
  padding: 10px 8px;
  line-height: 1.5;
}
.lp-time thead th:first-child {
  background: #F2F6FF;
  color: #1A1A1A;
}
.lp-time__hours {
  display: block;
  font-size: 0.85em;
  font-weight: 700;
  margin-top: 2px;
  opacity: 0.95;
}
.lp-time tbody th {
  background: #F2F6FF;
  color: #1A1A1A;
  text-align: center;
  padding: 10px 8px;
  font-weight: 800;
  border: none;
}
.lp-time tbody td {
  text-align: center;
  padding: 10px 8px;
  border: none;
  font-weight: 700;
}
.lp-time__note {
  margin: 8px 12px 12px;
  color: #1A1A1A;
  line-height: 1.7;
  font-size: clamp(11.5px, 1.5vw, 13px);
}
.lp-time__note span {
  color: #244A9B;
  font-weight: 800;
}

/* モバイル時 */
@media (max-width: 1024px) {
  .lp-access__grid,
  .lp-access__grid--second {
    grid-template-columns: 1fr;
  }

  .lp-access__photo {
    max-height: none;
  }

  .lp-access__map {
    aspect-ratio: 16 / 10;
  }

  .lp-access__info,
  .lp-access__timecard {
    font-size: 14px;
  }
}

/* スマホ時の診療時間表 */
@media (max-width: 767px) {
  .lp-time {
    font-size: clamp(13px, 3.2vw, 15px);
  }

  .lp-time thead th {
    padding: 8px 6px;
    font-size: clamp(13px, 3.2vw, 15px);
    line-height: 1.4;
  }

  .lp-time__hours {
    font-size: 0.8em;
    margin-top: 3px;
  }

  .lp-time tbody th {
    padding: 10px 8px;
    font-size: clamp(14px, 3.4vw, 16px);
  }

  .lp-time tbody td {
    padding: 10px 8px;
    font-size: clamp(15px, 3.6vw, 17px);
  }

  .lp-time__note {
    font-size: clamp(11px, 2.8vw, 13px);
    line-height: 1.65;
    margin: 10px 12px 12px;
  }
}


/* ===================================================
   スマホ専用スタイル（Figmaデザイン対応）
   ================================================== */

/* スマホヘッダー */
@media (max-width: 767px) {
  .lp-sp-header {
    display: none; /* デフォルトは非表示、必要に応じて表示 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #E5E7EB;
    height: 64px;
    z-index: 100;
  }
  
  .lp-sp-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    height: 100%;
  }
  
  .lp-sp-logo img {
    height: 48px;
    width: auto;
  }
  
  .lp-sp-menu-btn {
    border: 1px solid #1A1A1A;
    border-radius: 0;
    padding: 12px 16px;
    background: white;
    font-family: 'Zen Old Mincho', serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1.12px;
    cursor: pointer;
  }
}

/* 旧スマホヒーロースタイルを削除（hero.cssに移動済み） */

/* 固定CTAボタン - デフォルトで非表示 */
.lp-sp-cta-fixed {
  display: none;
}

/* 固定CTAボタン（スマホのみ） */
@media (max-width: 767px) {
  .lp-sp-cta-fixed {
    display: flex; /* スマホ時に表示 */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E5E7EB;
    gap: 8px;
    padding: 10px 12px;
    z-index: 99;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  }

  .lp-sp-cta-btn {
    flex: 1;
    padding: 14px 8px;
    border-radius: 0;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Zen Old Mincho', serif;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  }

  .lp-sp-cta-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* LINE予約 - 青塗りつぶし */
  .lp-sp-cta-btn--line {
    background: #4A8FBD;
    color: white;
    border: none;
  }

  /* WEB予約 - 青塗りつぶし */
  .lp-sp-cta-btn--web {
    background: #4A8FBD;
    color: white;
    border: none;
  }

  /* 電話予約 - 白背景+青枠 */
  .lp-sp-cta-btn--phone {
    background: white;
    color: #4A8FBD;
    border: 2px solid #4A8FBD;
  }
  
  /* メインコンテンツに下部余白を追加（CTAボタン分） */
  .lp-main {
    padding-bottom: 70px;
  }
}

/* PC表示時は固定CTAを非表示 */
@media (min-width: 768px) {
  .lp-sp-cta-fixed {
    display: none !important;
  }
}

/* Cache Bust: Updated for fixed CTA mobile implementation */

/* ===================================================
   ハンバーガーメニュー（グローバルナビ）
   ================================================== */
.global_nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 200;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.4s ease, background 0.4s ease;
  font-family: 'Zen Old Mincho', serif;
  overflow-y: auto;
}

.global_nav.is-open {
  opacity: 1;
  background: rgba(0, 0, 0, 0.95);
}

/* 閉じるボタン（上部） */
.sp_toggle_close_top {
  text-align: right;
  padding: 20px 24px;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.global_nav.is-open .sp_toggle_close_top {
  opacity: 1;
  transform: translateY(0);
}

.sp_toggle_close_top .icon svg {
  width: 48px;
  height: 48px;
  fill: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sp_toggle_close_top .icon svg:hover {
  transform: rotate(90deg);
}

/* メニューリスト */
.menu.header_menu {
  list-style: none;
  margin: 0;
  padding: 40px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.menu.header_menu .menu-item {
  text-align: center;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.global_nav.is-open .menu.header_menu .menu-item {
  opacity: 1;
  transform: translateY(0);
}

/* 順番にふわっと表示 */
.global_nav.is-open .menu.header_menu .menu-item:nth-child(1) { transition-delay: 0.1s; }
.global_nav.is-open .menu.header_menu .menu-item:nth-child(2) { transition-delay: 0.15s; }
.global_nav.is-open .menu.header_menu .menu-item:nth-child(3) { transition-delay: 0.2s; }
.global_nav.is-open .menu.header_menu .menu-item:nth-child(4) { transition-delay: 0.25s; }
.global_nav.is-open .menu.header_menu .menu-item:nth-child(5) { transition-delay: 0.3s; }
.global_nav.is-open .menu.header_menu .menu-item:nth-child(6) { transition-delay: 0.35s; }
.global_nav.is-open .menu.header_menu .menu-item:nth-child(7) { transition-delay: 0.4s; }
.global_nav.is-open .menu.header_menu .menu-item:nth-child(8) { transition-delay: 0.45s; }

.menu.header_menu .menu-item a {
  display: block;
  color: white;
  text-decoration: none;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
  letter-spacing: 0.05em;
}

.menu.header_menu .menu-item a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: #007AC6;
  color: #8EC6EC;
}

/* 閉じるボタン（下部） */
.sp_toggle_close_bottom {
  text-align: center;
  padding: 24px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.global_nav.is-open .sp_toggle_close_bottom {
  opacity: 1;
  transform: translateY(0);
}

.sp_toggle_close_bottom .icon {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.sp_toggle_close_bottom .icon svg {
  width: 24px;
  height: 24px;
  fill: white;
  transition: transform 0.2s ease;
}

.sp_toggle_close_bottom:hover .icon svg {
  transform: rotate(90deg);
}

/* ===================================================
   LP Footer（リッチ版）
   ================================================== */
.lp-footer {
  background: #f8f9fb;
  padding: clamp(40px, 6vw, 60px) 0 0;
  font-family: 'Zen Old Mincho', serif;
  border-top: 1px solid #E5E7EB;
}

.lp-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.lp-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 48px);
  align-items: start;
  margin-bottom: clamp(32px, 5vw, 48px);
}

/* 左カラム：クリニック情報 */
.lp-footer__info {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
}

.lp-footer__logo {
  margin: 0 0 20px;
}

.lp-footer__logo img {
  width: auto;
  height: clamp(40px, 5vw, 60px);
}

/* 住所テーブル */
.lp-footer__address {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(13px, 1.8vw, 15px);
  line-height: 1.8;
  margin-bottom: 16px;
}

.lp-footer__address th {
  background: #E8EEF7;
  color: #244A9B;
  font-weight: 900;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid #D5E4F7;
  width: 110px;
  vertical-align: top;
}

.lp-footer__address td {
  padding: 10px 14px;
  border: 1px solid #D5E4F7;
  background: white;
  color: #1A1A1A;
}

.lp-footer__address td a {
  color: #007AC6;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.lp-footer__address td a:hover {
  color: #244A9B;
  text-decoration: underline;
}

/* 診療時間表（Footer内） */
.lp-footer__timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(12.5px, 1.5vw, 14px);
  margin-bottom: 12px;
}

.lp-footer__timetable thead th {
  background: #348dd7;
  color: white;
  font-weight: 800;
  text-align: center;
  padding: 8px 6px;
  line-height: 1.5;
  border: 1px solid #348dd7;
}

.lp-footer__timetable thead th:first-child {
  background: #F2F6FF;
  color: #1A1A1A;
}

.lp-footer__timetable .lp-footer__hours {
  display: block;
  font-size: 0.85em;
  font-weight: 700;
  margin-top: 2px;
  opacity: 0.95;
}

.lp-footer__timetable tbody th {
  background: #F2F6FF;
  color: #1A1A1A;
  text-align: center;
  padding: 8px 6px;
  font-weight: 800;
  border: none;
}

.lp-footer__timetable tbody td {
  text-align: center;
  padding: 8px 6px;
  border: none;
  background: white;
  font-weight: 700;
}

.lp-footer__timetable .consul {
  color: #348dd7;
  font-size: 1.2em;
}

.lp-footer__note {
  font-size: clamp(12px, 1.6vw, 13px);
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* 右カラム：地図 */
.lp-footer__map {
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  position: relative;
  border: 1px solid #D5E4F7;
  overflow: hidden;
  border-radius: 0;
}

.lp-footer__map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* コピーライト */
.lp-copyright {
  background: #244A9B;
  color: white;
  padding: 20px 0;
  text-align: center;
  font-size: clamp(12px, 1.6vw, 14px);
}

.lp-copyright p {
  margin: 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .lp-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lp-footer__timetable {
    font-size: 13px;
  }

  .lp-footer__timetable thead th,
  .lp-footer__timetable tbody th,
  .lp-footer__timetable tbody td {
    padding: 8px 4px;
    font-size: 13px;
  }

  .lp-footer__hours {
    font-size: 0.8em;
  }

  .lp-footer__map {
    padding-bottom: 80%;
  }
}

/* ===================================================
   TOPへ戻るボタン
   ================================================== */
.totop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}

.totop.is-visible {
  opacity: 1;
  visibility: visible;
}

.totop_inner {
  width: 60px;
  height: 60px;
  border-radius: 0;
  background: #0f406c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.totop_inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  background: #1a5080;
}

.totop_inner svg {
  width: 24px;
  height: auto;
  fill: white;
}

/* モバイル */
@media (max-width: 767px) {
  .totop {
    bottom: 90px; /* 固定CTAボタンの上 */
    right: 16px;
  }

  .totop_inner {
    width: 50px;
    height: 50px;
  }

  .totop_inner svg {
    width: 20px;
  }
}

/* PC表示時 */
@media (min-width: 768px) {
  .totop {
    bottom: 100px;
    right: 20px;
  }

  .totop_inner {
    width: 70px;
    height: 70px;
  }

  .totop_inner svg {
    width: 28px;
  }
}
