@charset "utf-8";

/* ===== ヘッダー ===== */

.l-header {
  position: relative;
  z-index: 100;
  background: var(--c-white);
}

.l-header__inner {
  position: relative;
  width: 100%;
  max-width: var(--w-design);
  height: var(--h-header);
  margin-inline: auto;
  padding-left: 100px;
  display: flex;
  align-items: center;
}

.l-header__logo {
  flex: none;
  width: 320px;
  line-height: 1;
}

/* --- グローバルナビ --- */

.l-nav {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.l-nav__access {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: 1.6;
}

.l-nav__pin {
  width: 11px;
  height: 15px;
  color: var(--c-cyan);
}

.l-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.l-nav__item {
  position: static;
}

.l-nav__link {
  position: relative;
  display: block;
  padding-bottom: 12px;
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.6;
}

.l-nav__item--panel > .l-nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--c-cyan);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.l-nav__item--panel.is-open > .l-nav__link::after {
  opacity: 1;
}

/* --- 電話 / WEB予約 --- */

.l-header__tel {
  flex: none;
  margin-left: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 214px;
  height: 44px;
  border-radius: 999px;
  background: var(--c-cyan);
  color: var(--c-white);
}

.l-header__tel-icon {
  width: 20px;
  height: 20px;
}

.l-header__tel-num {
  font-size: var(--fs-24);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.l-header__reserve {
  flex: none;
  align-self: flex-start;
  margin-left: 18px;
  width: 157px;
  height: 94px;
  border-radius: 0 0 16px 16px;
  background: var(--c-orange);
  color: var(--c-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.l-header__reserve-icon {
  width: 28px;
  height: 28px;
}

.l-header__reserve > span {
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.4;
}

/* WEB予約が準備中であることの注記（ボタン内の余白に置く） */
.l-header__reserve > .l-header__reserve-note {
  margin-top: 1px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

/* --- メガメニュー --- */

.l-mega {
  position: absolute;
  left: 50%;
  top: calc(100% + var(--mv-offset));
  transform: translate(-50%, -8px);
  z-index: 90;
  width: var(--w-container);
  max-width: calc(100% - 48px);
  padding: 48px 18px 44px 0;
  border-radius: var(--r-card);
  /* Figma は半透明だが、後ろのMV（開業予定バッジ・最寄駅ボックス）が透けて
     文字が読みづらく・見切れて見えるため、ほぼ不透明にしている。
     背景ぼかしを併用して「重なっている」印象だけ残す。 */
  background: rgba(250, 247, 236, 0.985);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(3, 9, 70, 0.05);
  box-shadow: 0 16px 40px rgba(3, 9, 70, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.l-nav__item--panel:hover .l-mega,
.l-nav__item--panel:focus-within .l-mega,
.l-nav__item--panel.is-open .l-mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.l-mega__inner {
  display: flex;
}

.l-mega__head {
  flex: none;
  width: 330px;
  text-align: center;
}

.l-mega__ja {
  display: block;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.4;
}

.l-mega__en {
  display: block;
  margin-top: 8px;
  color: var(--c-cyan);
  font-size: var(--fs-en);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.l-mega__list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 14px;
}

.l-mega__chip {
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 8px 12px;
  border-radius: var(--r-chip);
  background: var(--c-white);
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition: background-color 0.2s ease;
}

.l-mega__chip:hover {
  opacity: 1;
  background: #cfe9ee;
}

/* ===== フッター ===== */

.l-footer {
  margin-top: 64px;
  padding: 48px 0 56px;
  background: var(--c-footer-bg);
}

.l-footer__body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.l-footer__map {
  flex: none;
  width: 618px;
  height: 467px;
}

/* ===== 地図の準備中プレースホルダ =====
   薄いグリッド＋斜めの道路で「地図が入る場所」と分かる見た目にしている。 */

.c-mapprep {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-card);
  background-color: #e9f0f5;
  background-image:
    linear-gradient(rgba(3, 9, 70, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(3, 9, 70, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.c-mapprep::before {
  content: "";
  position: absolute;
  inset: -25%;
  background:
    linear-gradient(114deg, transparent 45.5%, rgba(255, 255, 255, 0.9) 45.5%, rgba(255, 255, 255, 0.9) 53%, transparent 53%),
    linear-gradient(24deg, transparent 62%, rgba(255, 255, 255, 0.55) 62%, rgba(255, 255, 255, 0.55) 66%, transparent 66%);
}

.c-mapprep__card {
  position: relative;
  padding: 26px 34px;
  border-radius: 20px;
  background: var(--c-white);
  box-shadow: 0 10px 30px rgba(3, 9, 70, 0.1);
  text-align: center;
}

.c-mapprep__pin {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(0, 164, 205, 0.12);
  color: var(--c-cyan);
}

.c-mapprep__pin svg {
  width: 20px;
  height: 27px;
}

.c-mapprep__title {
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.6;
}

.c-mapprep__text {
  margin-top: 4px;
  font-size: var(--fs-14);
  line-height: 1.8;
  opacity: 0.75;
}

.l-footer__nav {
  margin-top: 56px;
}

.l-footer__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: var(--fs-16);
  line-height: 2;
}

.l-footer__list li + li::before {
  content: "｜";
  margin: 0 4px;
  color: var(--c-navy);
  opacity: 0.5;
}

/* ===== 医院情報ブロック（診療時間・アクセス／フッター共通） ===== */

.c-clinic {
  width: 462px;
}

.c-clinic__logo {
  line-height: 1;
}

.c-clinic__pill {
  margin-top: 24px;
  width: 418px;
  height: 28px;
  border-radius: 999px;
  background: var(--c-cyan);
  color: var(--c-white);
  font-size: var(--fs-16);
  font-weight: 500;
  line-height: 28px;
  text-align: center;
}

.c-clinic__address {
  margin-top: 20px;
  font-size: var(--fs-16);
  line-height: 2;
}

.c-clinic__access {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.c-clinic__tag {
  flex: none;
  display: grid;
  place-items: center;
  width: 89px;
  height: 30px;
  border: 1px solid var(--c-cyan);
  border-radius: 999px;
  color: var(--c-cyan);
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: 1;
}

.c-clinic__access-text {
  font-size: var(--fs-16);
  line-height: 1.6;
}

.c-clinic__link {
  margin-top: 18px;
}

/* --- 診療時間表 --- */

.c-hours {
  margin-top: 44px;
  width: 412px;
  table-layout: fixed;
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: 1;
}

.c-hours__label,
.c-hours__time {
  width: 97px;
  text-align: left;
  font-weight: 500;
}

.c-hours__day,
.c-hours__cell {
  width: 45px;
  text-align: center;
  font-weight: 500;
}

.c-hours thead th {
  padding-bottom: 22px;
}

.c-hours tbody th,
.c-hours tbody td {
  height: 48px;
  border-bottom: 1px solid var(--c-rule);
  vertical-align: middle;
}

.c-hours__closed {
  color: var(--c-rule);
  font-size: var(--fs-16);
}

/* ===== SPドロワー（PCでは非表示） ===== */

.l-header__burger,
.l-drawer {
  display: none;
}

/* ===== SP（Figma: SP_TOP） ===== */
@media (max-width: 767px) {

  /* --- ヘッダー --- */
  .l-header__inner {
    height: var(--h-header);
    padding-left: 16px;
  }

  .l-header__logo {
    width: 220px;
  }

  .l-nav,
  .l-header__tel,
  .l-header__reserve {
    display: none;
  }

  .l-header__burger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    margin-left: auto;
    width: 56px;
    height: var(--h-header);
    background: var(--c-orange);
  }

  .l-header__burger-bars,
  .l-header__burger-bars::before,
  .l-header__burger-bars::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--c-white);
    border-radius: 2px;
  }

  .l-header__burger-bars {
    position: relative;
  }

  .l-header__burger-bars::before,
  .l-header__burger-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .l-header__burger-bars::before { top: -7px; }
  .l-header__burger-bars::after  { top: 7px; }

  /* --- ドロワー --- */
  .l-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 200;
    padding-bottom: 52px;
    background: var(--c-cream);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .l-drawer[hidden] {
    display: none;
  }

  .l-drawer__head {
    display: flex;
    justify-content: flex-end;
    padding: 13px 18px 0;
  }

  .l-drawer__close {
    width: 26px;
    height: 26px;
    color: var(--c-orange);
  }

  .l-drawer__close svg {
    width: 100%;
    height: 100%;
  }

  .l-drawer__nav {
    padding: 14px 20px 24px;
  }

  .l-drawer__row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(3, 9, 70, 0.4);
  }

  .l-drawer__link {
    flex: 1;
    padding-block: 19px;
    font-size: var(--fs-16);
    font-weight: 700;
    line-height: 1.4;
  }

  .l-drawer__toggle {
    position: relative;
    flex: none;
    width: 22px;
    height: 22px;
  }

  .l-drawer__toggle::before,
  .l-drawer__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 1.4px;
    background: var(--c-navy);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease;
  }

  .l-drawer__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }

  .l-drawer__toggle[aria-expanded="true"]::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .l-drawer__toggle[aria-expanded="true"]::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .l-drawer__sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
  }

  .l-drawer__sub[hidden] {
    display: none;
  }

  .l-drawer__sub a {
    display: block;
    padding-block: 19px;
    border-bottom: 1px solid rgba(3, 9, 70, 0.2);
    font-size: var(--fs-14);
    line-height: 1.4;
  }

  .l-drawer__cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    height: 52px;
  }

  .l-drawer__tel,
  .l-drawer__reserve {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--c-white);
    font-size: var(--fs-16);
    font-weight: 700;
    line-height: 1;
  }

  .l-drawer__tel {
    flex: 221;
    background: var(--c-cyan);
  }

  .l-drawer__reserve {
    flex: 154;
    background: var(--c-orange);
  }

  .l-drawer__tel svg,
  .l-drawer__reserve svg {
    width: 18px;
    height: 18px;
    flex: none;
  }

  body.is-drawer-open {
    overflow: hidden;
  }

  /* --- フッター --- */
  .l-footer {
    margin-top: 48px;
    padding: 32px 0 24px;
  }

  .l-footer__body {
    display: block;
  }

  .l-footer__map {
    width: calc(100% + 40px);
    height: 290px;
    margin: 24px -20px 0;
  }

  .l-footer__map .c-mapprep {
    border-radius: 0;
  }

  .c-mapprep__card {
    padding: 22px 24px;
  }

  .l-footer__nav {
    margin-top: 24px;
  }

  .l-footer__list {
    font-size: var(--fs-14);
    line-height: 2.2;
  }

  /* --- 医院情報ブロック --- */
  .c-clinic {
    width: 100%;
  }

  .c-clinic__logo img {
    width: 278px;
    height: auto;
  }

  .c-clinic__pill {
    width: 100%;
    margin-top: 20px;
  }

  .c-clinic__address {
    margin-top: 16px;
  }

  .c-clinic__access {
    margin-top: 18px;
    gap: 11px;
  }

  .c-clinic__link {
    margin-top: 14px;
  }

  .c-hours {
    width: 100%;
    margin-top: 32px;
  }

  .c-hours__label,
  .c-hours__time {
    width: 96px;
  }

  .c-hours__day,
  .c-hours__cell {
    width: auto;
  }

  .c-hours thead th {
    padding-bottom: 16px;
  }

  .c-hours tbody th,
  .c-hours tbody td {
    height: 40px;
  }
}
