@charset "UTF-8";
/* ==========================================================================
   SP レイアウト
   Figma: takara / SP TOP（node 36784-1631）基準幅 390px
          + pcsp-cta（index-menu-sp / index-floating-sp）

   PC（front.css / layout.css）を上書きする形で書いている。
   ブレークポイント: 767px 以下

   基準寸法（Figma書き出し素材から確定）
     デザイン幅       390px
     左右余白         16px
     コンテンツ幅     358px（= 390 - 16*2。素材の横幅が全て358pxで一致）
     2カラム          175px + gap 8px（FEATURES・MENU）
     2カラム(TROUBLE) 171px + gap 16px
   ========================================================================== */

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

  :root {
    --x-container: 358px;
    --x-gutter: 16px;
    --x-col-gap: 8px;
  }

  body {
    /* 画面下部の固定CTA（64px）に隠れないよう余白を確保 */
    padding-bottom: 64px;
  }

  .l-container { width: auto; margin-inline: var(--x-gutter); }

  /* ------------------------------------------------------------------------
     ヘッダー（ロゴ + ハンバーガーのみ / コンテンツ上に重ねる）
     ------------------------------------------------------------------------ */
  .l-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 0;
    background: none;
  }
  .l-header__inner { width: auto; }
  .l-header__logo {
    top: 0; left: 0;
    width: 89px;
    height: 70px;
  }
  .l-header__utility,
  .l-gnav,
  .l-mega { display: none; }

  .l-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    width: 63px;
    height: 64px;
    background: var(--color-t-ac01);
  }
  .l-hamburger__bars {
    display: block;
    position: relative;
    width: 26px;
    height: 12px;
  }
  .l-hamburger__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--color-wh);
    transition: transform .3s ease, top .3s ease;
  }
  .l-hamburger__bars span:nth-child(1) { top: 0; }
  .l-hamburger__bars span:nth-child(2) { top: 10px; }
  /* 開いている間は × に変形 */
  .l-hamburger[aria-expanded="true"] .l-hamburger__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
  .l-hamburger[aria-expanded="true"] .l-hamburger__bars span:nth-child(2) { top: 5px; transform: rotate(-45deg); }

  /* ------------------------------------------------------------------------
     ドロワーメニュー
     ------------------------------------------------------------------------ */
  .l-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 88px var(--x-gutter) 48px;
    background: var(--color-t-main01);
    color: var(--color-wh);
  }
  .l-drawer[hidden] { display: none; }

  .l-drawer__item + .l-drawer__item { margin-top: 4px; }
  .l-drawer__row {
    display: flex;
    align-items: center;
    min-height: 56px;
  }
  .l-drawer__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
  }
  .l-drawer__ja {
    font-family: var(--typography-t-20sb-family);
    font-size: var(--typography-t-20sb-size);
    font-weight: var(--typography-t-20sb-weight);
    line-height: 1.4;
    letter-spacing: .08em;
  }
  .l-drawer__en {
    font-family: var(--typography-t-14sb-family);
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .2em;
    opacity: .75;
  }
  .l-drawer__arrow {
    flex: none;
    width: 24px;
    height: 24px;
    position: relative;
  }
  .l-drawer__arrow::after {
    content: "";
    position: absolute;
    top: 8px; left: 6px;
    width: 8px; height: 8px;
    border-top: 1px solid var(--color-wh);
    border-right: 1px solid var(--color-wh);
    transform: rotate(45deg);
  }
  /* 子を持つ項目の ＋ ボタン（矢印との間に区切り線） */
  .l-drawer__toggle {
    flex: none;
    position: relative;
    width: 48px;
    height: 44px;
    border-left: 1px solid rgba(255, 255, 255, .4);
  }
  .l-drawer__toggle::before,
  .l-drawer__toggle::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 14px; height: 1.5px;
    margin: -.75px 0 0 -7px;
    background: var(--color-wh);
    transition: transform .3s ease;
  }
  .l-drawer__toggle::after { transform: rotate(90deg); }
  .l-drawer__toggle[aria-expanded="true"]::after { transform: rotate(0); }

  .l-drawer__sub { padding: 4px 0 12px 16px; }
  .l-drawer__sub[hidden] { display: none; }
  .l-drawer__sub li + li { margin-top: 10px; }
  .l-drawer__sub a {
    font-family: var(--typography-t-16sb-family);
    font-size: var(--typography-t-16sb-size);
    font-weight: 400;
    letter-spacing: .06em;
  }

  .l-drawer__cta { margin-top: 28px; display: grid; gap: 12px; }

  /* ------------------------------------------------------------------------
     画面下部の固定CTA
     ------------------------------------------------------------------------ */
  .l-floating {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    height: 64px;
  }
  /* TEL は幅を広めに、LINE と WEB予約は同幅 */
  .l-floating__tel {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--color-wh);
    box-shadow: 0 -1px 6px rgba(30, 39, 39, .12);
  }
  .l-floating__tel-label {
    font-family: var(--typography-t-14r-family);
    font-size: 10px;
    letter-spacing: .04em;
    line-height: 1;
  }
  .l-floating__tel-num {
    font-family: var(--typography-t-24sb-family);
    font-size: 19px;
    font-weight: var(--typography-t-24sb-weight);
    line-height: 1.3;
    letter-spacing: .02em;
  }
  .l-floating__line,
  .l-floating__reserve {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--color-wh);
    font-family: var(--typography-t-20sb-family);
    font-size: 13px;
    font-weight: var(--typography-t-20sb-weight);
    letter-spacing: .04em;
    line-height: 1;
  }
  .l-floating__line { background: var(--x-line); }
  .l-floating__reserve { background: var(--color-t-ac01); }

  /* ------------------------------------------------------------------------
     予約CTA帯
     ------------------------------------------------------------------------ */
  .l-cta { height: auto; padding: 52px 0 56px; }
  .l-cta::before { top: 12%; }
  .l-cta::after  { top: 88%; }
  .l-cta__label { font-size: 16px; letter-spacing: .24em; }
  .l-cta__title { margin-top: 16px; font-size: 26px; letter-spacing: .12em; }
  .l-cta__actions {
    flex-direction: column;
    gap: 12px;
    width: var(--x-container);
    margin-top: 28px;
  }
  .l-cta__btn { min-height: 96px; height: auto; gap: 6px; padding: 18px 14px; }
  .l-cta__btn-main { font-size: 22px; gap: 10px; }
  .l-cta__btn-sub { font-size: 12px; letter-spacing: .06em; }

  /* ------------------------------------------------------------------------
     フッター（SPデザインはコピーライトのみ）
     ------------------------------------------------------------------------ */
  .l-footer { padding: 34px 0 32px; }
  .l-footer__pc { display: none; }
  .l-footer__copyright { margin-top: 0; font-size: 12px; letter-spacing: .06em; }

  /* ------------------------------------------------------------------------
     共通パーツ
     ------------------------------------------------------------------------ */
  .c-btn {
    width: 100%;
    min-width: 0;
    height: 60px;
    padding: 0 24px;
    font-size: 16px;
    letter-spacing: .1em;
  }
  .c-heading__lead { font-size: 13px; letter-spacing: .24em; }
  .c-heading__en { margin-top: 4px; font-size: 38px; }
  .c-tag { height: 26px; padding: 0 10px; font-size: 12px; }

  /* ------------------------------------------------------------------------
     1. ヒーロー
        画像(390x476) → 直下に濃い帯 + 月桂冠バッジ3点
     ------------------------------------------------------------------------ */
  .p-hero { height: auto; padding-bottom: 150px; }
  .p-hero__media {
    position: relative;
    height: 476px;
    border-bottom-left-radius: 0;
  }
  .p-hero__media img { object-position: 60% center; }
  .p-hero__inner {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 476px;
    padding: 310px 0 0 16px;
  }
  .p-hero__catch { font-size: 22px; gap: 4px; letter-spacing: .06em; }
  .p-hero__catch span { padding: 3px 8px; }

  /* 帯の上に3点並べる。
     ベージュ(--color-t-base01)から白へ薄く流すことで、
     写真の切れ目を柔らかく受けつつ下のINFORMATIONへ繋げる。 */
  .p-hero__badges {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    background: linear-gradient(180deg, var(--color-t-base01) 0%, #fdfdfb 55%, var(--color-wh) 100%);
  }
  .p-hero__badge { width: 116px; }

  /* ------------------------------------------------------------------------
     2. INFORMATION
        縦書き → 横書きの白帯2本に変更（デザイン準拠）
     ------------------------------------------------------------------------ */
  .p-info__head { padding: 34px 0 30px; text-align: center; }
  .p-info__head-en { font-size: 34px; letter-spacing: .02em; }

  .p-info__body { min-height: 0; padding: 0; }

  /* 写真は全幅の帯バナー。テキストはその中に重ねる */
  .p-info__visual {
    position: relative;
    width: auto;
    height: 168px;
    clip-path: none;
  }
  .p-info__vertical {
    position: absolute;
    top: 20px;
    right: auto;
    left: 0;
    z-index: 2;
    display: block;
  }
  .p-info__vertical span {
    writing-mode: horizontal-tb;
    display: table;
    margin-left: 16px;
    padding: 6px 14px;
    font-size: 17px;
    letter-spacing: .08em;
  }
  .p-info__vertical span + span { margin-top: 6px; margin-left: 26px; }

  .p-info__list {
    width: auto;
    margin: 0;
    padding: 34px var(--x-gutter) 40px;
  }
  .p-info__item { gap: 12px; min-height: 0; padding: 14px 0; }
  .p-info__check { width: 22px; height: 22px; }
  .p-info__check svg { width: 22px; height: 22px; }
  .p-info__text { font-size: 19px; letter-spacing: .04em; }
  .p-info__text small { font-size: 13px; }
  .p-info__lead { margin-bottom: 2px; }
  .p-info__lead { display: block; }

  /* ------------------------------------------------------------------------
     3. TROUBLE（2カラム）
     ------------------------------------------------------------------------ */
  .p-trouble { padding: 48px 0 52px; }
  .p-trouble__label { font-size: 15px; letter-spacing: .24em; }
  .p-trouble__title { margin-top: 10px; font-size: 21px; line-height: 1.7; letter-spacing: .04em; }
  .p-trouble__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
  }
  .p-trouble__card-img { aspect-ratio: 171 / 94; }
  .p-trouble__card-body { gap: 6px; padding: 12px 8px 16px; }
  .p-trouble__card-check { width: 18px; height: 18px; }
  .p-trouble__card-check svg { width: 18px; height: 18px; }
  .p-trouble__card-text { font-size: 13px; letter-spacing: .02em; }

  /* ------------------------------------------------------------------------
     4. メッセージ帯
     ------------------------------------------------------------------------ */
  .p-message { padding: 44px 0 0; }
  .p-message__inner { align-items: flex-end; }
  .p-message__box {
    width: 268px;
    min-height: 128px;
    margin-bottom: 24px;
    padding: 16px 12px;
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: .06em;
  }
  .p-message__figure { width: 140px; }

  /* ------------------------------------------------------------------------
     5. CLINIC INFO
     ------------------------------------------------------------------------ */
  .p-clinic { padding: 44px 0 48px; }
  .p-clinic__bg {
    background-image: url("../img/sp-top/adobestock-295128273-1.jpg");
    background-size: 100% auto;
    background-repeat: repeat-y;
  }
  .p-clinic__card { padding: 40px 16px 40px; }
  .p-clinic__head-en { font-size: 32px; }
  .p-clinic__head-ja { margin-top: 6px; font-size: 13px; }
  .p-clinic__cols { display: block; margin-top: 28px; }
  .p-clinic__main { width: auto; }
  .p-clinic__logo { width: 106px; }
  .p-clinic__table th { width: 74px; font-size: 13px; }
  .p-clinic__table td { font-size: 13px; }
  .p-clinic__tel { font-size: 26px; }
  .p-clinic__hours { font-size: 12px; }
  .p-clinic__hours th, .p-clinic__hours td { padding: 10px 2px; }
  .p-clinic__hours tbody th { width: 66px; }
  .p-clinic__map { width: auto; margin-top: 20px; }
  .p-clinic__map iframe { height: 240px; }

  /* ------------------------------------------------------------------------
     6. FEATURES（2カラム × 4行）
     ------------------------------------------------------------------------ */
  .p-features { padding: 48px 0 52px; }
  .p-features__title { font-size: 26px; letter-spacing: .06em; }
  .p-features__title em { font-size: 38px; }
  .p-features__divider { width: 230px; margin: 12px auto 8px; }
  .p-features__en { font-size: 19px; letter-spacing: .16em; }
  .p-features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 8px;
    margin-top: 26px;
  }
  .p-features__num { width: 56px; }
  .p-features__card-text { padding: 12px 8px 16px; font-size: 14px; line-height: 1.7; letter-spacing: .02em; }

  /* ------------------------------------------------------------------------
     7. MENU（2カラム × 12行）
     ------------------------------------------------------------------------ */
  .p-menu { padding: 48px 0 52px; }
  .p-menu__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 26px;
  }
  .p-menu__item { height: 64px; padding: 0 8px 0 11px; gap: 8px; }
  .p-menu__icon { width: 40px; height: 40px; }
  .p-menu__icon img { width: 40px; height: 40px; }
  .p-menu__label { font-size: 13px; line-height: 1.4; letter-spacing: .02em; }
  .p-menu__foot { margin-top: 28px; }
  .p-menu__foot .c-btn { min-width: 0; height: 60px; }

  /* ------------------------------------------------------------------------
     8. PRICE（写真 → テキストの縦積み）
     ------------------------------------------------------------------------ */
  .p-price { padding: 44px 0; }
  .p-price__card { display: block; padding: 28px 16px 32px; }
  .p-price__figure { width: auto; }
  .p-price__head { margin-top: 22px; gap: 12px; }
  .p-price__en { font-size: 28px; }
  .p-price__ja { font-size: 15px; }
  .p-price__text { margin-top: 16px; font-size: 14px; line-height: 1.9; }
  .p-price__brands { width: auto; margin-top: 16px; }
  .p-price__action { margin-top: 22px; }
  .p-price__action .c-btn { min-width: 0; height: 60px; }

  /* ------------------------------------------------------------------------
     9. DOCTOR（写真 → 名前 → 引用 → 本文 → 資格 → ボタン）
        PCは「テキスト左・写真右」なので order で並べ替える
     ------------------------------------------------------------------------ */
  .p-doctor { padding: 44px 0 48px; }
  .p-doctor::before { width: 100%; background-size: 100% auto; }
  .p-doctor__inner { display: flex; flex-direction: column; }
  .p-doctor .c-heading { order: 1; }
  .p-doctor__figure { order: 2; }
  .p-doctor__body { order: 3; }

  .p-doctor__figure {
    position: static;
    right: auto;
    width: auto;
    margin-top: 24px;
    aspect-ratio: 358 / 374;
  }
  .p-doctor__body { width: auto; margin-top: 22px; }
  .p-doctor__name { gap: 10px; }
  .p-doctor__role { width: 48px; height: 24px; font-size: 12px; }
  .p-doctor__name-ja { font-size: 21px; }
  .p-doctor__name-en { font-size: 13px; }
  .p-doctor__quote { margin-top: 16px; font-size: 21px; line-height: 1.7; letter-spacing: .04em; }
  .p-doctor__text { margin-top: 18px; }
  .p-doctor__text p { font-size: 14px; }
  /* SPデザインでは白背景の箱ではなく地に直置き */
  .p-doctor__license { margin-top: 26px; padding: 0; background: none; }
  .p-doctor__action { margin-top: 24px; }
  .p-doctor__action .c-btn { min-width: 0; }

  /* ------------------------------------------------------------------------
     10. PICK UP MENU（写真 → テキストの縦積み）
     ------------------------------------------------------------------------ */
  .p-pickup { padding: 44px 0 52px; }
  .p-pickup__card { padding: 34px 16px 36px; }
  .p-pickup__list { margin-top: 26px; }
  .p-pickup__item {
    display: block;
    width: auto;
    padding: 26px 0;
  }
  .p-pickup__figure { width: auto; }
  .p-pickup__label { margin-top: 18px; gap: 12px; }
  .p-pickup__num { width: 44px; height: 36px; font-size: 18px; }
  .p-pickup__en { font-size: 26px; }
  .p-pickup__title { margin-top: 14px; font-size: 20px; line-height: 1.6; letter-spacing: .04em; }
  .p-pickup__text { font-size: 14px; }
  .p-pickup__action .c-btn { min-width: 0; }

  /* ------------------------------------------------------------------------
     11. 設備（1カラム）
     ------------------------------------------------------------------------ */
  .p-equip { padding: 12px 0 48px; }
  .p-equip__title { font-size: 22px; letter-spacing: .06em; }
  .p-equip__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }
  .p-equip__num { width: 48px; height: 40px; font-size: 17px; }
  .p-equip__body { padding: 18px 16px 22px; }
  .p-equip__name { font-size: 19px; letter-spacing: .08em; }
  .p-equip__text { margin-top: 10px; font-size: 14px; }

  /* ------------------------------------------------------------------------
     12. CASE（1カラム）
     ------------------------------------------------------------------------ */
  .p-case { padding: 46px 0 50px; }
  .p-case__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
  .p-case__body { padding: 16px 16px 22px; }
  .p-case__name { font-size: 19px; }
  .p-case__text { font-size: 14px; }
  .p-case__foot { margin-top: 28px; }
  .p-case__foot .c-btn { min-width: 0; }

  /* ------------------------------------------------------------------------
     13. NEWS / BLOG（見出しと「詳しく見る」を横並び → 一覧を下に）
     ------------------------------------------------------------------------ */
  .p-posts__block { display: block; padding: 40px 0; }
  .p-posts__aside {
    width: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
  }
  .p-posts__label { font-size: 12px; letter-spacing: .16em; }
  .p-posts__en { font-size: 34px; }
  .p-posts__action { margin: 0; flex: none; }
  .p-posts__action .c-btn { min-width: 0; width: auto; height: 44px; padding: 0 20px; font-size: 15px; }
  .p-posts__action .c-btn::after { position: static; margin-left: 12px; }

  .p-posts__list { margin-top: 20px; }
  .p-posts__item { gap: 14px; padding: 14px 0; align-items: flex-start; }
  .p-posts__thumb { width: 128px; aspect-ratio: 128 / 80; }
  .p-posts__meta { gap: 10px; }
  .p-posts__date { font-size: 12px; }
  .p-posts__cat { height: 20px; padding: 0 10px; font-size: 11px; }
  .p-posts__excerpt { font-size: 13px; line-height: 1.8; }
  /* SPデザインでは行末の矢印は無い */
  .p-posts__item .c-arrow { display: none; }

  /* ------------------------------------------------------------------------
     14. INSTAGRAM（2カラム × 3行）
     ------------------------------------------------------------------------ */
  .p-insta { padding: 24px 0 44px; }
  .p-insta__grid { grid-template-columns: repeat(2, 1fr); }
  .p-insta__ja { font-size: 13px; letter-spacing: .24em; }
  .p-insta__en { font-size: 34px; }

  /* ------------------------------------------------------------------------
     15. メディア掲載（1カラム）
     ------------------------------------------------------------------------ */
  .p-media { padding: 0 0 48px; }
  .p-media__hero { width: auto; }
  .p-media__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }

}

/* ==========================================================================
   ドロワーが開いている間は背面をスクロールさせない
   （幅に依存しない指定なのでメディアクエリの外に置く）
   ========================================================================== */
.is-drawer-open,
.is-drawer-open body { overflow: hidden; }
