/* 道の駅TRIP 2.0 — 03 マイ旅
   正本画像 (media_1789446320279.png) Single Source of Truth に基づく完全DOMスタイリング
*/

.v2-mytrip {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: #F8F7F3;
  min-height: 100vh;
  position: relative;
  box-sizing: border-box;
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 32px);
  color: var(--ink);
}

/* ─────────────────────────────────────────────────────────────
   1. Hero Header (海・山・道・青空写真 ＋ DOMタイポグラフィ)
   ───────────────────────────────────────────────────────────── */
.v2-mytrip-hero {
  position: relative;
  width: 100%;
  background-image: url('../assets/hero-discover-clean.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  padding: 24px 16px 44px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.v2-mytrip-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(248, 247, 243, 0) 0%, rgba(248, 247, 243, 0.7) 65%, rgba(248, 247, 243, 1) 100%);
  pointer-events: none;
}

.v2-mytrip-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.v2-mytrip-hero-text {
  flex: 1;
}

/* 「マイ旅」: Shippori Mincho, 600, 3文字が自然につながる文字間 */
.v2-mytrip-title {
  display: block;
  width: fit-content;
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: 28px;
  color: #0E2548;
  letter-spacing: -0.05em;
  font-feature-settings: normal;
  white-space: nowrap;
  line-height: 1.15;
  margin: 0 0 8px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* 「走った道が、私の物語になる。」: Shippori Mincho, 600 */
.v2-mytrip-lead {
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  color: #142B52;
  letter-spacing: 0.03em;
  margin: 0 0 6px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

/* 「訪れた道の駅を記録して、あなただけの旅の軌跡をつくろう。」: Noto Sans JP, 500 */
.v2-mytrip-caption {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 1.45;
  color: #334E68;
  letter-spacing: 0.02em;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* 右上装飾「Good Road Trip!」: 青空領域への配置 ＋ 上品な柔らかい白glow */
.v2-mytrip-badge-script {
  flex-shrink: 0;
  margin-top: -6px;
  margin-right: 18px;
  transform: rotate(-9deg);
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.v2-mytrip-badge-script svg {
  width: 116px;
  height: 52px;
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   2. 全国制覇進捗カード (Heroに重なる大型白カード)
   ───────────────────────────────────────────────────────────── */
.v2-mytrip-progress-wrap {
  position: relative;
  z-index: 5;
  margin: -24px 16px 0;
}

.v2-mytrip-progress-card {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid #E6EAEF;
  box-shadow: 0 4px 20px rgba(15, 35, 75, 0.08);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* 左側：円形進捗リング */
.v2-progress-ring-box {
  width: 98px;
  height: 98px;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.v2-progress-bg-circle {
  fill: none;
  stroke: #E8F0FE;
  stroke-width: 8.5;
}

.v2-progress-bar-circle {
  fill: none;
  stroke: #1A73E8;
  stroke-width: 8.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.v2-progress-center-text {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.v2-progress-val {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #111827;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.v2-progress-total {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: #8C9CAB;
  margin-top: 2px;
}

/* 右側：スタッツグリッド */
.v2-progress-stats-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-left: 14px;
  position: relative;
}

/* 中央の縦区切り線 */
.v2-progress-stats-grid::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 50%;
  width: 1px;
  background: #EEF2F6;
}

.v2-stat-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v2-stat-col:first-child {
  padding-right: 10px;
}

.v2-stat-col:last-child {
  padding-left: 12px;
}

.v2-stat-item {
  display: flex;
  flex-direction: column;
}

.v2-stat-label-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.v2-stat-icon {
  width: 13px;
  height: 13px;
  color: #1A73E8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v2-stat-icon svg {
  width: 12px;
  height: 12px;
}

.v2-stat-label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  color: #64748B;
  white-space: nowrap;
}

.v2-stat-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.v2-stat-num {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: #111827;
  line-height: 1.15;
}

.v2-stat-unit {
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: #111827;
}

/* ─────────────────────────────────────────────────────────────
   3. クイックメニュー (4カード横並び)
   ───────────────────────────────────────────────────────────── */
.v2-mytrip-quick-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 14px 16px 6px;
}

.v2-quick-item {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E8ECEF;
  box-shadow: 0 2px 6px rgba(15, 35, 75, 0.03);
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  position: relative;
  text-decoration: none;
}

.v2-quick-item:active {
  transform: scale(0.97);
  box-shadow: 0 1px 3px rgba(15, 35, 75, 0.06);
}

.v2-quick-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.v2-quick-icon svg {
  width: 22px;
  height: 22px;
}

.v2-quick-label-wrap {
  display: flex;
  align-items: center;
  gap: 1px;
}

.v2-quick-label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.v2-quick-arrow {
  color: #94A3B8;
  display: flex;
  align-items: center;
}

.v2-quick-arrow svg {
  width: 8px;
  height: 8px;
}

/* ─────────────────────────────────────────────────────────────
   共通セクションヘッダー
   ───────────────────────────────────────────────────────────── */
.v2-mytrip-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 16px 8px;
}

.v2-mytrip-section-title {
  font-family: "Shippori Mincho", serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.02em;
}

.v2-mytrip-link-more {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #005AEB;
  text-decoration: none;
  cursor: pointer;
}

.v2-mytrip-link-more:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────
   4. 最近の訪問 (横3列カード)
   ───────────────────────────────────────────────────────────── */
.v2-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px;
}

.v2-recent-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E8ECEF;
  box-shadow: 0 2px 6px rgba(15, 35, 75, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.v2-recent-card:active {
  transform: scale(0.98);
}

.v2-recent-thumb-wrap {
  width: 100%;
  aspect-ratio: 4 / 2.8;
  background: #0B2A6B;
  overflow: hidden;
  position: relative;
}

.v2-recent-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-recent-body {
  padding: 8px 7px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.v2-recent-date {
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: #8E9BAE;
  margin-bottom: 2px;
}

.v2-recent-name-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
  margin-bottom: 4px;
  min-height: 32px; /* 2行分の高さを確保し、3カードの高さを完全に揃える */
}

.v2-recent-name {
  font-family: "Shippori Mincho", serif;
  font-size: 11px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  flex: 1;
}

.v2-recent-arrow {
  color: #CBD5E1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-top: 2px;
}

.v2-recent-arrow svg {
  width: 9px;
  height: 9px;
}

.v2-recent-location {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 9px;
  color: #8E9BAE;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────────────────────
   5. 次の旅の予定 (カード)
   ───────────────────────────────────────────────────────────── */
.v2-plan-wrap {
  padding: 0 16px;
}

.v2-plan-card {
  background: #FFFFFF;
  border-radius: 14px;
  border: 1px solid #E8ECEF;
  box-shadow: 0 2px 8px rgba(15, 35, 75, 0.04);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.v2-plan-card:active {
  transform: scale(0.99);
}

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

.v2-plan-date-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}

.v2-plan-date-icon {
  width: 14px;
  height: 14px;
  color: #005AEB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v2-plan-date-icon svg {
  width: 13px;
  height: 13px;
}

.v2-plan-date-text {
  font-family: "Montserrat", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
  letter-spacing: 0.01em;
}

.v2-plan-title {
  font-family: "Shippori Mincho", serif;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-plan-desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  color: #8E9BAE;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-plan-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.v2-plan-thumb-wrap {
  width: 84px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: #0B2A6B;
}

.v2-plan-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.v2-plan-arrow {
  color: #CBD5E1;
  display: flex;
  align-items: center;
}

.v2-plan-arrow svg {
  width: 12px;
  height: 12px;
}

/* ─────────────────────────────────────────────────────────────
   6. 旅の記録 (横3列カード)
   ───────────────────────────────────────────────────────────── */
.v2-records-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px;
}

.v2-record-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1px solid #E8ECEF;
  box-shadow: 0 2px 6px rgba(15, 35, 75, 0.03);
  padding: 12px 8px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
}

.v2-record-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.v2-record-icon svg {
  width: 22px;
  height: 22px;
}

.v2-record-icon.icon-distance {
  color: #1A73E8;
}

.v2-record-icon.icon-photos {
  color: #1A73E8;
}

.v2-record-icon.icon-favs {
  color: #F59E0B;
}

.v2-record-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v2-record-label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 9.5px;
  color: #64748B;
  margin-bottom: 2px;
  white-space: nowrap;
}

.v2-record-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  white-space: nowrap;
}

.v2-record-num {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  color: #111827;
  line-height: 1.1;
}

.v2-record-unit {
  font-family: "Noto Sans JP", "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #111827;
}

/* ─────────────────────────────────────────────────────────────
   7. MyTrip専用 Bottom Navigation (固定配置 / マイ旅アクティブ)
   ───────────────────────────────────────────────────────────── */
.v2-mytrip-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 6px 12px calc(8px + var(--safe-b));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #FFFFFF;
  border-top: 1px solid #ECE8E0;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.04);
  z-index: 100;
  font-family: "Noto Sans JP", sans-serif;
}
