/**
 * 道の駅TRIP 2.0 — 05 メニュー スタイルシート
 * 正本画像 (Single Source of Truth) に基づく完全DOMスタイリング
 */

.v2-menu-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #F8FAFC;
  box-sizing: border-box;
  padding-bottom: max(100px, calc(env(safe-area-inset-bottom, 24px) + 80px));
}

/* ============================================================
   1. Hero
   ============================================================ */
.v2-menu-hero {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 20px 22px;
  box-sizing: border-box;
}

.v2-menu-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 1;
}

.v2-menu-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 40%,
    rgba(255, 255, 255, 0.9) 78%,
    #F8FAFC 100%
  );
  z-index: 2;
}

.v2-menu-hero-content {
  position: relative;
  z-index: 3;
}

.v2-menu-hero-title {
  font-family: var(--font-display, "Shippori Mincho", serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #0F172A;
  letter-spacing: -0.04em;
  margin: 0 0 10px 0;
}

.v2-menu-hero-copy {
  font-family: var(--font-display, "Shippori Mincho", serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 0 0 10px 0;
}

.v2-menu-hero-subcopy {
  font-family: var(--font-body, "Noto Sans JP", sans-serif);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #64748B;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ============================================================
   2. メインコンテンツ
   ============================================================ */
.v2-menu-body {
  padding: 0 16px;
}

.v2-menu-section {
  margin-bottom: 24px;
}

.v2-menu-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 4px;
}

.v2-menu-section-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1E293B;
}

.v2-menu-section-icon.is-heart {
  color: #E11D48;
}

.v2-menu-section-title {
  font-family: var(--font-body, "Noto Sans JP", sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: 0.01em;
  margin: 0;
}

/* 白カード */
.v2-menu-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

/* アカウント最上段（ゲストユーザー） */
.v2-menu-account-hero {
  display: flex;
  align-items: center;
  padding: 16px;
  min-height: 68px;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
  box-sizing: border-box;
}

.v2-menu-account-hero:active {
  background: #F8FAFC;
}

.v2-menu-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  margin-right: 14px;
  flex-shrink: 0;
}

.v2-menu-account-info {
  flex: 1;
  min-width: 0;
}

.v2-menu-account-name {
  font-family: var(--font-body, "Noto Sans JP", sans-serif);
  font-size: 15.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
  margin: 0 0 3px 0;
}

.v2-menu-account-desc {
  font-family: var(--font-body, "Noto Sans JP", sans-serif);
  font-size: 12px;
  color: #64748B;
  line-height: 1.3;
  margin: 0;
}

/* 通常行項目 */
.v2-menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  min-height: 52px;
  border-bottom: 1px solid #F8FAFC;
  background: #FFFFFF;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease;
  box-sizing: border-box;
}

.v2-menu-item:last-child {
  border-bottom: none;
}

.v2-menu-item:active {
  background: #F8FAFC;
}

.v2-menu-item-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0E2548;
  margin-right: 14px;
  flex-shrink: 0;
}

.v2-menu-item-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.v2-menu-item-text {
  flex: 1;
  font-family: var(--font-body, "Noto Sans JP", sans-serif);
  font-size: 14.5px;
  font-weight: 500;
  color: #1E293B;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.v2-menu-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.v2-menu-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  flex-shrink: 0;
}

.v2-menu-version-text {
  font-family: var(--font-num, "Montserrat", sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: 0.02em;
}

.v2-menu-chevron {
  width: 16px;
  height: 16px;
  min-width: 16px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: auto;
}

.v2-menu-chevron svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.v2-menu-item-right .v2-menu-chevron {
  margin-left: 0;
}

/* ============================================================
   3. ブランドメッセージカード
   ============================================================ */
.v2-menu-brand-card {
  margin: 32px 0 16px;
  background: linear-gradient(135deg, #EEF5FF 0%, #E2EEFD 100%);
  border: 1px solid rgba(191, 219, 254, 0.7);
  border-radius: 18px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 90, 235, 0.04);
}

.v2-menu-brand-illustration {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 90, 235, 0.08);
  flex-shrink: 0;
  overflow: hidden;
}

.v2-menu-brand-text {
  flex: 1;
}

.v2-menu-brand-copy {
  font-family: var(--font-display, "Shippori Mincho", serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: #0F172A;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}

.v2-menu-item:focus:not(:focus-visible) {
  outline: none;
}

.v2-menu-item:focus-visible {
  outline: 2px solid #005AEB;
  outline-offset: -2px;
}

.v2-menu-brand-name {
  font-family: var(--font-body, "Noto Sans JP", sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  margin: 0;
  letter-spacing: 0.03em;
}

/* ============================================================
   4. Bottom Navigation (メニュー用)
   ============================================================ */
.v2-menu-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  height: 60px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: content-box;
}
