@charset "UTF-8";
/* ==========================================================================
   SP ハンバーガーメニュー（2026.11 リニューアル）
   - 767px以下でのみ表示。PC・タブレットには一切作用しない
   - 既存の .layerMenu（旧SPメニュー）はSPで非表示にする
   ========================================================================== */

.spDrawer {
  display: none;
}

@media screen and (max-width: 767px) {

  /* 旧SPメニューを非表示（PC用ナビは768px以上なので影響なし） */
  .layerMenu.js-navigation {
    display: none !important;
  }

  .spDrawer {
    --spd-bg: #f2efeb;
    --spd-line: #e2e2e2;
    --spd-text: #000;
    --spd-brown: #271b11;
    --spd-green: #1d7700;
    --spd-navy: #1d0077;
    --spd-red: #ee1600;

    position: fixed;
    inset: 0;
    z-index: 100000;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--spd-bg);
    color: var(--spd-text);
    font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
  }

  .spDrawer.is-open {
    display: block;
    animation: spDrawerFade .2s ease-out;
  }

  @keyframes spDrawerFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .spDrawer *,
  .spDrawer *::before,
  .spDrawer *::after {
    box-sizing: border-box;
  }

  .spDrawer ul,
  .spDrawer li {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .spDrawer a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, .06);
  }

  .spDrawer img {
    display: block;
    max-width: none;
  }

  .spDrawer__inner {
    padding-bottom: calc(25px + env(safe-area-inset-bottom));
  }

  /* ---------- ヘッダー（ロゴ・CLOSE） ---------- */
  .spDrawer__head {
    position: relative;
    height: 70px;
  }

  .spDrawer__logo {
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
  }

  .spDrawer__logo img {
    width: 158px;
    height: 34px;
  }

  .spDrawer__close {
    position: absolute;
    top: 12px;
    right: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 52px;
    margin: 0;
    padding: 9px 0 0;
    border: 0;
    background: none;
    color: var(--spd-brown);
    font: inherit;
    cursor: pointer;
  }

  .spDrawer__closeIcon {
    display: block;
    width: 24px;
    height: 14px;
  }

  .spDrawer__closeText {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .02em;
  }

  /* ---------- 電話予約・WEB予約 ---------- */
  .spDrawer__cv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 24px 0;
  }

  .spDrawer__cvBtn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 83px;
    padding-top: 19px;
    border-radius: 8px;
    color: #fff !important;
  }

  .spDrawer__cvBtn--tel { background: var(--spd-green); }
  .spDrawer__cvBtn--web { background: var(--spd-navy); }

  .spDrawer__cvLabel {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 97px;
    height: 20px;
    border: 1px solid currentColor;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
  }

  .spDrawer__cvBtn--tel .spDrawer__cvLabel { color: var(--spd-green); }
  .spDrawer__cvBtn--web .spDrawer__cvLabel { color: var(--spd-navy); }

  .spDrawer__cvIcon {
    width: 25px;
    height: 28px;
  }

  /* カレンダーは一回り大きいので、文字の位置がそろうよう上下を詰める */
  .spDrawer__cvIcon--calendar {
    width: 31px;
    height: 31px;
    margin: -2px 0 -1px;
  }

  .spDrawer__cvText {
    margin-top: 6px;
    font-size: 19px;
    font-weight: 500;
    line-height: 22px;
  }

  /* ---------- オンライン相談会・はじめての方 ---------- */
  .spDrawer__sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 24px 0;
  }

  .spDrawer__subBtn {
    display: flex;
    align-items: center;
    height: 53px;
    padding: 0 6px 0 13px;
    border-radius: 8px;
    background: #fff;
  }

  .spDrawer__subBtn--beginner {
    padding-left: 16px;
  }

  .spDrawer__badge {
    flex: 0 0 50px;
    height: 25px;
    border-radius: 4px;
    background: var(--spd-red);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
    text-align: center;
  }

  .spDrawer__beginner {
    flex: 0 0 auto;
    width: 17px;
    height: 27px;
  }

  .spDrawer__subText {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
  }

  /* ---------- メニュー一覧 ---------- */
  .spDrawer__nav {
    margin-top: 32px;
    border-top: 1px solid var(--spd-line);
  }

  .spDrawer__item {
    border-bottom: 1px solid var(--spd-line);
  }

  /* 行全体がタップ範囲 */
  .spDrawer__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 8px 27px 8px 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--spd-text);
    font: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, .06);
  }

  .spDrawer__row:focus-visible,
  .spDrawer a:focus-visible,
  .spDrawer__close:focus-visible {
    outline: 2px solid var(--spd-brown);
    outline-offset: -2px;
  }

  .spDrawer__arrow {
    flex: 0 0 auto;
    width: 18px;
    height: 17px;
  }

  /* ＋／－ */
  .spDrawer__plus {
    position: relative;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
  }

  .spDrawer__plus::before,
  .spDrawer__plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    margin-top: -.5px;
    background: currentColor;
    transition: transform .25s ease;
  }

  .spDrawer__plus::after {
    transform: rotate(90deg);
  }

  .spDrawer__toggle[aria-expanded="true"] .spDrawer__plus::after {
    transform: rotate(0deg);
  }

  /* アコーディオン本体 */
  .spDrawer__panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .3s ease, visibility 0s linear .3s;
  }

  .spDrawer__panel.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .3s ease, visibility 0s linear 0s;
  }

  .spDrawer__panelInner {
    min-height: 0;
    overflow: hidden;
  }

  .spDrawer__childList {
    border-top: 1px solid var(--spd-line);
    background: #fff;
  }

  /* 「（子どもの近視抑制）」はかっこの位置で改行させる */
  .spDrawer__note {
    display: inline-block;
  }

  .spDrawer:focus {
    outline: none;
  }

  .spDrawer__row--child {
    min-height: 55px;
    padding-left: 44px;
  }

  /* ---------- フリーダイヤル ---------- */
  .spDrawer__freedial {
    display: block;
    margin: 26px 24px 0;
    padding: 13px 8px 12px;
    border-radius: 5px;
    background: #fff;
    text-align: center;
  }

  .spDrawer__freedialTtl {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    white-space: nowrap;
  }

  .spDrawer__freedialNum {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .spDrawer__freedialNum img {
    width: 43px;
    height: 25px;
  }

  /* メニューからトップの「診療内容」(#menu)・「クリニック案内」(#clinics)へ移動したとき、
     固定ヘッダーに見出しが隠れないようにする */
  #menu,
  #clinics {
    scroll-margin-top: 70px;
  }

  @media (prefers-reduced-motion: reduce) {
    .spDrawer.is-open { animation: none; }
    .spDrawer__panel,
    .spDrawer__panel.is-open,
    .spDrawer__plus::before,
    .spDrawer__plus::after { transition: none; }
  }
}

/* 幅の狭い端末（〜359px）で文字があふれないように */
@media screen and (max-width: 359px) {
  .spDrawer__cv,
  .spDrawer__sub,
  .spDrawer__freedial {
    margin-right: 16px;
    margin-left: 16px;
  }
  .spDrawer__subBtn { padding-left: 8px; }
  .spDrawer__badge { flex-basis: 42px; font-size: 14px; }
  .spDrawer__subText { font-size: 13px; line-height: 16px; }
  .spDrawer__freedialTtl { font-size: 11px; white-space: normal; }
  .spDrawer__freedialNum { font-size: 27px; }
}
