/* =========================================================
   ハンバーガーメニュー（2026-10 調整）
   スマホ・タブレット・PC（下層ページ）共通のデザイン
   ========================================================= */

/* ---- 共通 ---- */
/* パネル：背景を不透明にして文字を読みやすく。上寄せにして上部の空白を詰める */
.u-header__nav {
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: stretch;
  background-color: #141414;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 項目：区切り線つきの大きな押せる範囲 */
.u-header__nav .u-header__list {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.u-header__nav .u-header__item {
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.u-header__nav .u-header__item a,
.u-header__nav .u-header__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 40px 0 4px;
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  opacity: 1;
  transition: background-color 0.3s, padding-left 0.3s;
}
/* 右端の矢印（押せることが分かるように） */
.u-header__nav .u-header__item a::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  transform: translateY(-50%) rotate(-45deg);
  transition: right 0.3s;
}
/* マウスのある端末だけ、重ねたときに少し動かす */
@media (hover: hover) {
  .u-header__nav .u-header__item a:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.06);
    padding-left: 12px;
  }
  .u-header__nav .u-header__item a:hover::after {
    right: 4px;
  }
}
.u-header__nav .u-header__item a:active {
  background-color: rgba(255, 255, 255, 0.08);
}

/* お問い合わせ・資料請求：上の項目との間をとり、幅いっぱいに収める */
.u-header__nav .mod__btn-contact {
  box-sizing: border-box;
  width: 100%;
  margin-top: 44px;
  padding: 18px 44px;
}
.u-header__nav .mod__btn-contact--ja {
  font-size: 1.125rem;
  letter-spacing: 0.1em;
}
.u-header__nav .mod__btn-contact--en {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

/* 開いているときの「×」は常に白（スクロール後に黒くなって見えなくなるのを防ぐ） */
.hamburger.active span {
  background-color: #ffffff;
}
/* 開いている間は後ろのページがスクロールしないように */
html:has(.u-header__nav.open),
body:has(.u-header__nav.open) {
  overflow: hidden;
}
/* 開いている間は後ろのページを少し暗くして、メニューに目が行くように */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 108; /* 固定ボタン(100)より上・メニュー(109)より下 */
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s, visibility 0.4s;
}
body:has(.u-header__nav.open)::after {
  opacity: 1;
  visibility: visible;
}

/* ---- PC（981px以上）：右側に適度な幅のパネル ---- */
@media (min-width: 981px) {
  .u-header__nav {
    width: clamp(440px, 34vw, 560px);
    padding: 128px 56px 56px;
  }
}

/* ---- タブレット（980px以下） ---- */
@media (max-width: 980px) {
  .u-header__nav {
    padding: 104px 32px 48px;
  }
}

/* ---- スマホ（599px以下）：画面いっぱいに開く ---- */
@media (max-width: 599px) {
  .u-header__nav {
    width: 100vw;
    padding: 96px 28px 40px;
  }
  .u-header__nav .u-header__item a,
  .u-header__nav .u-header__link {
    min-height: 60px;
    font-size: 1.1875rem;
  }
}

/* =========================================================
   トップページ（PC・981px以上）ファーストビュー左のメニュー（2026-10 調整）
   ========================================================= */
@media (min-width: 981px) {
  /* 左側の帯：観音像の金色の上でも文字が読めるよう、暗い帯を広げて濃くする */
  .header {
    padding-right: 96px;
    background: linear-gradient(to right,
      rgba(7, 7, 9, 0.86) 0%,
      rgba(7, 7, 9, 0.66) 55%,
      rgba(7, 7, 9, 0) 100%);
  }

  /* メニュー：区切り線つきの行にして、押せる範囲を広げる */
  .header__nav .header__list {
    width: 264px;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
  }
  .header__nav .header__item {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }
  .header__nav .header__item:nth-last-of-type(1) {
    margin-bottom: 0;
  }
  .header__nav .header__item::before {
    content: none;
  }
  .header__nav .header__link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 36px 0 2px;
    font-size: 1.1875rem;
    line-height: 1.4;
    letter-spacing: 0.14em;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
    opacity: 1;
    transition: background-color 0.3s, padding-left 0.3s;
  }
  /* 右端の矢印 */
  .header__nav .header__link::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1px solid rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    transform: translateY(-50%) rotate(-45deg);
    transition: right 0.3s;
  }
  .header__nav .header__link:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.08);
    padding-left: 10px;
  }
  .header__nav .header__link:hover::after {
    right: 4px;
  }
  .header__nav .header__link:focus-visible {
    outline: 1px solid #ffffff;
    outline-offset: 2px;
  }

  /* 電話番号・メール：メニューより目立ちすぎないよう大きさを整え、ボタンとの間をとる */
  .header__tel {
    font-size: 1.375rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  }
  .header__mail {
    font-size: 1rem;
    letter-spacing: 0.06em;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  }
  .header__wrap .mod__btn-contact {
    margin-top: 20px;
  }
}
/* 高さの低い画面（ノートPC等）では行の高さを少し詰めて、下の電話番号と重ならないように */
@media (min-width: 981px) and (max-height: 720px) {
  .header__nav .header__link {
    min-height: 40px;
    font-size: 1.0625rem;
  }
  .header__wrap .mod__btn-contact {
    margin-top: 12px;
  }
}
