/* =========================================================
   診療メニュー (slug: menu)
   デザインカンプ XoXUw4vzh2C2X6RIfJJVGM node 560:6138 (6_menu)
   top.css の :root 変数・.page-* / .cta-band 前提（pages.css の後に読み込む）
   ========================================================= */

.mnu-page { background: #ffeeed; padding-bottom: 0; }
.mnu-page * { box-sizing: border-box; }

/* ---------- ヒーロー（写真背景 + コーラルグラデ + パンくず + Menu） ---------- */
/* カンプ: 写真(560:6150 657px) + 透明→#fc9790 縦グラデ + 左下に TOP＞診療メニュー / Menu */
.mnu-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  height: 657px;
  isolation: isolate;
}
.mnu-hero__bg { position: absolute; inset: 0; z-index: -2; }
.mnu-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.mnu-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* 422px(=50.8%) から下に向けて透明→コーラル（カンプ 560:6152） */
  background: linear-gradient(to bottom, rgba(229,177,177,0) 50%, #fc9291 95%);
}
.mnu-hero__inner {
  width: 100%;
  height: 100%;
  /* ラベルはビューポート左端基準（左下） */
  padding: 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 50px;
}
.mnu-hero__crumb {
  margin: 0 0 14px;
  font-family: var(--ff-jp, inherit);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 2px;
}
.mnu-hero__en {
  margin: 0;
  font-family: var(--ff-josefin);
  font-weight: 400;
  font-size: 50px;
  line-height: 1;
  letter-spacing: 1.5px;
}

/* SPレビュー反映: 初期表示は写真全面 + 左下パンくず/ページ名。 */
@media (max-width: 820px) {
  .mnu-hero {
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
  }

  .mnu-hero::before {
    background: linear-gradient(to bottom, rgba(229,177,177,0) 48%, rgba(252,146,145,.42) 100%) !important;
  }

  .mnu-hero__inner {
    padding: 0 24px 58px !important;
    justify-content: flex-end !important;
  }

  .mnu-hero__en {
    font-size: 38px;
  }
}

/* ---------- メニューパネル（白90% + 赤グロー） ---------- */
.mnu-section {
  background: #ffeeed;
  padding: 75px 24px 74px;
}
.mnu-panel {
  max-width: 1152px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 24px 0 rgba(228, 74, 63, 0.3);
  height: 1025px;
  padding: 127px 64px 0;
}

.mnu-eyebrow {
  margin: 0 0 12px;
  font-family: var(--ff-josefin);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.4px;
  color: var(--c-pink);
}
.mnu-title {
  margin: 0 0 41px;
  color: var(--c-brown);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: 3.6px;
}

/* ---------- カードグリッド（320x211 / 3列 / gap32 / 中央寄せ） ---------- */
.mnu-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}
.mnu-card {
  width: 320px;
  height: 211px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 0 24px 0 rgba(255, 154, 146, 0.2);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 30px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mnu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px 0 rgba(255, 154, 146, 0.45);
}
.mnu-card__icon {
  width: 99px;
  height: 99px;
  display: block;
}
.mnu-card__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mnu-card__label {
  margin-top: 19px;
  color: var(--c-brown2);
  font-weight: 700;
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: 1.4px;
  text-align: center;
  white-space: nowrap;
}

.mnu-section + .cta-band { margin-top: 0; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1180px) {
  .mnu-grid { gap: 24px; }
  .mnu-card { width: calc((100% - 48px) / 3); height: auto; padding-bottom: 30px; }
}

@media (max-width: 820px) {
  .mnu-hero { height: 380px; }
  .mnu-hero__inner { padding-bottom: 36px; }
  .mnu-hero__en { font-size: 38px; }

  .mnu-section { padding: 48px 18px 64px; }
  .mnu-panel { height: auto; padding: 48px 24px 56px; }
  .mnu-title { font-size: 28px; margin-bottom: 28px; }
  .mnu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .mnu-card {
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 22px 8px;
  }
  .mnu-card__icon { width: 72px; height: 72px; }
  .mnu-card__label {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .5px;
  }
}

@media (max-width: 480px) {
  /* 9項目を3×3の同サイズ縮小グリッドに（1列でバラけさせない） */
  .mnu-grid { gap: 8px; }
  .mnu-card { width: 100%; padding-top: 16px; padding-bottom: 16px; }
  .mnu-card__icon { width: 50px; height: 50px; }
  .mnu-card__label { white-space: normal; margin-top: 8px; font-size: 10.5px; line-height: 1.45; letter-spacing: .3px; }
}

.mnu-title .br-sp { display: none; }

/* SP最終調整: 診療メニューFVも写真+グラデーション+左下タイトルに統一。 */
@media (max-width: 820px) {
  .mnu-hero {
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
  }

  .mnu-hero__bg img {
    object-position: center center !important;
  }

  .mnu-hero::before {
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.12) 42%, rgba(252,146,145,.58) 70%, rgba(252,146,145,.96) 100%) !important;
  }

  .mnu-hero__inner {
    padding: 0 22px 46px !important;
  }

  .mnu-hero__crumb {
    color: #fff !important;
    font-size: 10px !important;
    white-space: nowrap !important;
  }

  .mnu-hero__en {
    font-size: clamp(42px, 13vw, 54px) !important;
  }

  .mnu-title .br-sp {
    display: block;
  }

  .mnu-title {
    line-height: 1.35 !important;
  }

  .mnu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* SP画像サイズ調整: Menu FVの写真を短めに戻す。 */
@media (max-width: 820px) {
  .mnu-hero {
    height: 330px !important;
  }

  .mnu-hero__inner {
    padding: 0 22px 34px !important;
  }

  .mnu-hero::before {
    background: linear-gradient(to bottom, rgba(252,146,145,0) 0%, rgba(252,146,145,.12) 36%, rgba(252,146,145,.58) 68%, rgba(252,146,145,.96) 100%) !important;
  }
}

/* SP最終調整: 診療メニュー一覧は2列、見出しは1行で表示する。 */
@media (max-width: 820px) {
  .mnu-title .br-sp {
    display: none !important;
  }

  .mnu-title {
    white-space: nowrap !important;
    line-height: 1.35 !important;
  }

  .mnu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* SPタイトルをアクセスページ基準(約40px)に統一 */
@media (max-width: 820px) { .mnu-hero__en { font-size: 40px !important; } }
