/* ======================================================
   Nav Modal — メニューモーダル
   ====================================================== */

/* -------------------------------------------------------
 * メニューボタン（ヘッダー内）
 * ----------------------------------------------------- */
.header__menu-btn {
  display: grid;
  place-content: center;
  width: 80px;
  height: 32px;
  border: 1px solid #BCB4A0;
  border-radius: 50vh;
  background: transparent;
  color: #111;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  flex-shrink: 0;
}

.header__menu-btn:hover {
  background-color: #fff;
}

.header__menu-btn:focus-visible {
  background-color: #fff;
  outline: 2px solid #BCB4A0;
  outline-offset: 3px;
}

/* -------------------------------------------------------
 * モーダル全体 (fixed オーバーレイ)
 * ----------------------------------------------------- */
.nav-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.nav-modal[hidden] {
  display: none;
}

/* 半透明バックドロップ */
.nav-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 16, 0.70);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* -------------------------------------------------------
 * モーダルパネル
 * ----------------------------------------------------- */
.nav-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  background: #37332C;
  border-radius: 20px;
  padding: 56px 56px 48px;
  overflow: hidden;
}

/* -------------------------------------------------------
 * 閉じるボタン
 * ----------------------------------------------------- */
.nav-modal__close {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50vh;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s, border-color .2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-modal__close:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.nav-modal__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

/* × アイコン */
.nav-modal__close-icon {
  position: relative;
  width: 12px;
  height: 12px;
}

.nav-modal__close-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  border-radius: 1px;
}

.nav-modal__close-line:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}

.nav-modal__close-line:nth-child(2) {
  transform: translateY(-50%) rotate(-45deg);
}

/* -------------------------------------------------------
 * 本体レイアウト
 * ----------------------------------------------------- */
.nav-modal__body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 20px;
}

/* -------------------------------------------------------
 * ナビゲーションリンク群
 * ----------------------------------------------------- */
.nav-modal__nav {
  flex: 1;
  min-width: 0;
}

.nav-modal__links {
  display: flex;
  gap: 0 48px;
}

.nav-modal__col {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}


.nav-modal__nav-item a {
  display: block;
  padding: 13px 4px;
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  font-size: .9375rem;
  letter-spacing: .04em;
  line-height: 1;
  transition: color .2s, padding-left .2s;
}

.nav-modal__nav-item a:hover {
  color: #fff;
  padding-left: 8px;
}

.nav-modal__nav-item a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: -2px;
  border-radius: 2px;
}

/* -------------------------------------------------------
 * CTA カード群
 * ----------------------------------------------------- */
.nav-modal__cta {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-shrink: 0;
  width: 44%;
}

.nav-modal__cta-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: background-color .25s;
}

.nav-modal__cta-item:nth-child(1),
.nav-modal__cta-item:nth-child(2) {
  background: #312D25;
}

.nav-modal__cta-item:nth-child(1):hover,
.nav-modal__cta-item:nth-child(2):hover {
  color: #fff;
  background-color: #3d3829;
}

.nav-modal__cta-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
  border-radius: 16px;
}

.nav-modal__cta-heading {
  font-family: "Noto Serif JP", serif;
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: .06em;
  margin: 0 0 14px;
  line-height: 1;
}

.nav-modal__cta-text {
  font-size: .8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  letter-spacing: .03em;
}

.nav-modal__cta-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  margin-top: 20px;
  flex-shrink: 0;
  transition: background-color .2s, border-color .2s;
}

.nav-modal__cta-item:hover .nav-modal__cta-arrow {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.55);
}

/* 矢印 SVG */
.nav-modal__cta-arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
}

/* -------------------------------------------------------
 * SNS アイコンエリア
 * ----------------------------------------------------- */
.nav-modal__sns {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

.nav-modal__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: opacity .2s;
  flex-shrink: 0;
}

.nav-modal__sns-link--instagram,
.nav-modal__sns-link--line {
  background: #605A4D;
}

.nav-modal__sns-link:hover {
  opacity: 0.75;
}

.nav-modal__sns-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.nav-modal__sns-link svg {
  width: 18px;
  height: 18px;
  fill: #37332C;
}

/* -------------------------------------------------------
 * レスポンシブ
 * ----------------------------------------------------- */
@media (max-width: 900px) {
  .nav-modal__panel {
    padding: 56px 32px 40px;
  }

  .nav-modal__cta {
    width: 46%;
  }
}

@media (max-width: 680px) {
  .nav-modal {
    padding: 16px 8px;
    flex-direction: column;
    align-items: flex-end;
  }

  .nav-modal__panel {
    padding: 56px 24px 36px;
    border-radius: 20px 20px 0 0;
    max-height: 90dvh;
    overflow-y: auto;
  }

  .nav-modal__body {
    flex-direction: column;
    gap: 24px;
  }

  .nav-modal__links {
    gap: 0 24px;
  }

  .nav-modal__col {
    flex: 1;
  }

  .nav-modal__cta {
    width: 100%;
  }

  .nav-modal__cta-item {
    padding: 22px 16px 18px;
  }
}

@media (max-width: 480px) {
  .nav-modal__links {
    flex-direction: column;
    gap: 0;
  }

  .nav-modal__col {
    flex: none;
  }
}
