/* =====================================================================
   디자인 파일 (style.css) · 일본풍 + 귀여움
   - 폰(갤럭시 S26 울트라) 화면 기준.
   - 글자는 한글 위주. 일본 느낌은 글자 대신 "무늬·모양"으로만 내요:
     물결 무늬(세이가이하), 단풍잎, 도리이·후지산 그림, 가게 천(노렌) 모양 버튼, 소원 나무판(에마) 모양 날짜
   - 귀여움: 동글동글한 글씨(주아), 둥근 모서리, 파스텔 색, 스티커 같은 번호표
   - 색깔은 맨 위 :root 에서 한 번에 바꿀 수 있어요.
   ===================================================================== */

:root {
  --cream: #fff7ee;        /* 바탕 */
  --cream-dark: #fbeadb;
  --paper: #ffffff;        /* 카드 */
  --ink: #3d3330;          /* 글씨 */
  --ink-soft: #8a7b74;     /* 옅은 글씨 */
  --momiji: #e8574a;       /* 단풍 빨강 (메인 색) */
  --momiji-soft: #ffe4de;
  --sakura: #ffc9d0;       /* 벚꽃 분홍 */
  --yoru: #3b4473;         /* 밤하늘 남색 */
  --yoru-soft: #e8eaf7;
  --gold: #f2b84b;         /* 달·금색 */
  --matcha: #5e9a4a;       /* 말차 초록 */
  --matcha-soft: #eaf5e3;
  --line: #f1dfd3;
  --check-bg: #fff3c4;     /* "확인 필요" 노랑 */
  --check-text: #7d5a00;
  --danger: #d23b30;
  --radius: 18px;          /* 귀엽게 동글동글 */
  --shadow: 0 2px 0 rgba(232, 87, 74, .06), 0 6px 18px rgba(120, 70, 40, .08);
  --tabbar-h: 68px;
  --font-title: "Jua", "Gowun Dodum", "Malgun Gothic", sans-serif;
  --font-body: "Gowun Dodum", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;

  /* 세이가이하(일본 물결) 무늬 */
  --seigaiha:
    radial-gradient(circle at 100% 150%, transparent 24%, rgba(255,255,255,.14) 24% 28%, transparent 28% 36%, rgba(255,255,255,.14) 36% 40%, transparent 40% 48%, rgba(255,255,255,.14) 48% 52%, transparent 52%),
    radial-gradient(circle at 0 150%, transparent 24%, rgba(255,255,255,.14) 24% 28%, transparent 28% 36%, rgba(255,255,255,.14) 36% 40%, transparent 40% 48%, rgba(255,255,255,.14) 48% 52%, transparent 52%),
    radial-gradient(circle at 50% 100%, transparent 24%, rgba(255,255,255,.14) 24% 28%, transparent 28% 36%, rgba(255,255,255,.14) 36% 40%, transparent 40% 48%, rgba(255,255,255,.14) 48% 52%, transparent 52%),
    radial-gradient(circle at 100% 50%, transparent 24%, rgba(255,255,255,.14) 24% 28%, transparent 28% 36%, rgba(255,255,255,.14) 36% 40%, transparent 40% 48%, rgba(255,255,255,.14) 48% 52%, transparent 52%),
    radial-gradient(circle at 0 50%, transparent 24%, rgba(255,255,255,.14) 24% 28%, transparent 28% 36%, rgba(255,255,255,.14) 36% 40%, transparent 40% 48%, rgba(255,255,255,.14) 48% 52%, transparent 52%);
  --seigaiha-size: 40px 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 20px);
  /* 크림색 바탕 + 작은 분홍 물방울 */
  background-color: var(--cream);
  background-image: radial-gradient(rgba(232, 87, 74, .07) 1.6px, transparent 2px);
  background-size: 22px 22px;
}
a { color: inherit; }
b, strong { font-weight: 700; }

/* ---------- 맨 위 제목줄 (밤하늘 + 물결 무늬) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  color: #fff;
  background-color: var(--yoru);
  background-image: var(--seigaiha);
  background-size: var(--seigaiha-size);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 3px 0 var(--momiji);
}
.topbar-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-size: 19px; text-decoration: none;
}
.topbar-mon {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; font-size: 16px; line-height: 1;
}
.topbar-dday {
  font-family: var(--font-title); font-size: 16px;
  background: var(--gold); color: var(--yoru);
  padding: 2px 12px; border-radius: 999px;
}

/* ---------- 화면(페이지) ---------- */
main { max-width: 640px; margin: 0 auto; }
.page { display: none; padding: 20px 16px; animation: fadein .3s ease; }
.page.active { display: block; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 페이지 제목: 동그란 그림 + 제목 */
.page-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 18px; }
.page-icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--momiji-soft); font-size: 26px; line-height: 1;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sakura);
}
.page-title { font-family: var(--font-title); font-weight: 400; font-size: 26px; margin: 0; line-height: 1.25; }
.page-desc { color: var(--ink-soft); margin: 2px 0 0; font-size: 14px; line-height: 1.5; }

/* 소제목: ~~~ 제목 ~~~ */
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-title); font-weight: 400; font-size: 19px;
  margin: 28px 0 12px; color: var(--yoru);
}
.section-title::before, .section-title::after {
  content: ""; flex: 1; height: 6px;
  background: radial-gradient(circle, var(--sakura) 2px, transparent 2.5px) 0 50% / 12px 6px repeat-x;
}

/* ---------- 아래 메뉴 ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 4px 4px env(safe-area-inset-bottom);
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 16px rgba(59, 68, 115, .12);
}
.tabbar a {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; font-size: 12px; color: var(--ink-soft); gap: 2px;
  font-family: var(--font-title);
}
.tabbar a span {
  display: grid; place-items: center;
  width: 38px; height: 34px; border-radius: 14px;
  font-size: 20px; line-height: 1;
  filter: grayscale(.5); opacity: .75;
  transition: all .2s;
}
.tabbar a.active { color: var(--momiji); }
.tabbar a.active span {
  background: var(--momiji-soft); filter: none; opacity: 1;
  transform: translateY(-2px) scale(1.08);
}

/* ---------- 공통 카드 · 표시 · 버튼 ---------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 14px;
}
.badge-check {
  display: inline-block;
  background: var(--check-bg); color: var(--check-text);
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  padding: 1px 8px; border-radius: 999px;
  vertical-align: middle; margin-left: 5px; white-space: nowrap;
}
.notice {
  background: var(--check-bg); color: var(--check-text);
  border-radius: 14px; padding: 10px 14px; font-size: 13px; margin: 16px 0;
}
/* 예약 표시: 동그란 스티커 */
.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.badge.must { color: #fff; background: var(--momiji); }
.badge.recommend { color: var(--yoru); background: var(--yoru-soft); }
.badge.none { color: var(--matcha); background: var(--matcha-soft); }
.badge.check { color: var(--check-text); background: var(--check-bg); }
.badge.optional { color: var(--ink-soft); background: var(--cream-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--momiji); color: #fff; text-decoration: none;
  font-family: var(--font-title); font-size: 16px;
  padding: 12px 18px; border-radius: 999px; border: 0; cursor: pointer;
  min-height: 48px;
  box-shadow: 0 3px 0 #c2423a;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #c2423a; }
.btn.light { background: var(--paper); color: var(--yoru); border: 2px solid var(--yoru-soft); box-shadow: 0 3px 0 var(--yoru-soft); }
.btn.block { display: flex; width: 100%; }

/* ---------- 홈 (표지): 노을 하늘 + 달 + 후지산 + 도리이 + 물결 ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 430px;
  border-radius: 26px;
  padding: 24px 22px 150px;
  color: #fff;
  background: linear-gradient(180deg, #3b4473 0%, #6a5a8e 45%, #e98a7f 85%, #f6b38f 100%);
  box-shadow: var(--shadow);
}
.hero-moon {
  position: absolute; top: 22px; right: 22px;
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8dc, #f7d27c 60%, #f2b84b);
  box-shadow: 0 0 36px rgba(247, 210, 124, .55);
}
.hero-tag { font-family: var(--font-title); font-size: 16px; color: #ffe7a8; }
.hero h1 {
  position: relative;
  font-family: var(--font-title); font-weight: 400;
  font-size: 29px; line-height: 1.35; margin: 2px 0 8px;
  max-width: 78%;
  text-shadow: 0 2px 8px rgba(40, 30, 70, .35);
}
.hero .dates { font-family: var(--font-title); font-size: 17px; }
.hero .sub { font-size: 14px; opacity: .92; margin-top: 2px; }

/* D-day 도장: 동그란 빨간 스티커 */
.hanko {
  position: relative; z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  margin-top: 18px;
  width: 112px; height: 112px; border-radius: 50%;
  background: var(--momiji); color: #fff;
  box-shadow: inset 0 0 0 5px var(--momiji), inset 0 0 0 7px rgba(255,255,255,.9), 0 6px 16px rgba(120, 30, 20, .3);
  transform: rotate(-8deg);
  font-family: var(--font-title);
}
.hanko b { font-size: 28px; font-weight: 400; line-height: 1.1; }
.hanko small { font-size: 13px; opacity: .95; }
.hero .dday-sub { position: relative; z-index: 2; font-size: 14px; margin-top: 12px; }

/* 아래 풍경 (후지산 + 도리이 그림) + 물결 */
.hero-scene { position: absolute; left: 0; right: 0; bottom: 34px; height: 130px; pointer-events: none; }
.hero-scene svg { width: 100%; height: 100%; display: block; }
.hero-waves {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40px;
  background-color: #2b3d6b;
  background-image: var(--seigaiha);
  background-size: 36px 18px;
}
.hero-leaf { position: absolute; font-size: 22px; animation: fall 9s linear infinite; }
@keyframes fall {
  0% { transform: translateY(-20px) rotate(0); opacity: 0; }
  10% { opacity: .95; }
  100% { transform: translateY(420px) rotate(320deg); opacity: 0; }
}

/* 전체 여정: 지하철 노선도 느낌 */
.route { list-style: none; margin: 0 0 14px; padding: 0; }
.route li { position: relative; padding: 0 0 16px 34px; }
.route li::before {
  content: ""; position: absolute; left: 5px; top: 4px; z-index: 1;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 4px solid var(--momiji);
}
.route li::after {
  content: ""; position: absolute; left: 12px; top: 18px; bottom: -4px;
  width: 4px; border-radius: 2px; background: var(--sakura);
}
.route li:first-child::before, .route li:last-child::before { border-color: var(--yoru); background: var(--gold); }
.route li:last-child::after { display: none; }
.route .r-name { font-family: var(--font-title); font-size: 17px; }
.route .r-note { color: var(--ink-soft); font-size: 13px; }
.route a.r-map {
  font-size: 12px; color: var(--yoru); margin-left: 6px; text-decoration: none;
  background: var(--yoru-soft); padding: 1px 8px; border-radius: 999px; white-space: nowrap;
}
.map-note { margin: 8px 0 0; font-size: 12px; color: var(--ink-soft); text-align: center; }

/* 꼭 알아둘 것 */
.tips { list-style: none; padding: 0; margin: 0; }
.tips li { display: flex; gap: 12px; padding: 12px 0; border-top: 1.5px dashed var(--line); }
.tips li:first-child { border-top: 0; padding-top: 2px; }
.tips li:last-child { padding-bottom: 2px; }
.tip-icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--momiji-soft); font-size: 21px; line-height: 1;
}
.tip-title { display: block; font-family: var(--font-title); font-weight: 400; font-size: 17px; color: var(--ink); }
.tip-text { margin: 2px 0 0; font-size: 14px; color: #5e524c; line-height: 1.6; }

/* ---------- 가볼 곳: 도시 버튼 = 노렌(가게 천) 모양 ---------- */
.city-tabs, .day-tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.city-tabs::-webkit-scrollbar, .day-tabs::-webkit-scrollbar { display: none; }
/* 도시 버튼 + 몇 박·숙소: 스크롤해도 맨 위 제목줄 바로 아래에 붙어 있어요 */
.city-sticky {
  position: sticky; top: 50px; z-index: 15;
  margin: 0 -16px 14px; padding: 10px 16px 10px;
  background: var(--cream);
  box-shadow: 0 6px 10px -8px rgba(120, 70, 40, .35);
}
.city-sticky .city-tabs { margin-bottom: 8px; padding-bottom: 2px; }
.city-tabs button {
  position: relative; flex: 1 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  border: 0; cursor: pointer;
  padding: 8px 12px 14px; min-width: 88px;
  background: var(--paper); color: var(--yoru);
  border-radius: 14px 14px 0 0;
  border-top: 5px solid var(--yoru-soft);
  /* 노렌(가게 천) 아래쪽 갈라진 모양 */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 53% 100%, 50% 82%, 47% 100%, 0 100%);
  font-family: var(--font-title);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.city-tabs button b { font-size: 22px; font-weight: 400; line-height: 1.2; }
.city-tabs button small { font-size: 15px; }
/* 고른 도시: 밤하늘 남색 (빨간 도쿄타워·단풍잎·문어가 잘 보이게) */
.city-tabs button.active { background: var(--yoru); color: #fff; border-top-color: var(--gold); box-shadow: none; }

.city-info {
  font-size: 13px; color: var(--ink-soft); line-height: 1.5;
  padding: 7px 14px; background: var(--cream-dark); border-radius: 14px;
}
.city-info b { font-family: var(--font-title); font-weight: 400; font-size: 16px; color: var(--ink); }

/* 숙소 후보 상자 (눌러서 펼치기) */
.stay-box {
  margin-bottom: 18px; background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.stay-box summary {
  cursor: pointer; list-style: none; padding: 12px 16px;
  font-family: var(--font-title); font-size: 16px; color: var(--yoru); background: var(--yoru-soft);
}
.stay-box summary::-webkit-details-marker { display: none; }
.stay-box summary::after { content: " ▾"; }
.stay-box[open] summary::after { content: " ▴"; }
.stay-list { list-style: none; margin: 0; padding: 4px 16px; }
.stay-item { padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.55; }
.stay-item:last-child { border-bottom: 0; }
.stay-name { font-family: var(--font-title); font-size: 16px; color: var(--ink); }
.stay-tag {
  display: inline-block; font-family: var(--font-body); font-size: 11px; color: #fff;
  background: var(--yoru); border-radius: 999px; padding: 1px 8px; vertical-align: 2px;
}
.stay-where, .stay-note { color: var(--ink-soft); }
.stay-price { color: var(--ink); margin-top: 2px; white-space: pre-line; }
.stay-src { margin-top: 2px; font-size: 12px; color: var(--ink-soft); }
.place-src { margin: -4px 0 10px; font-size: 12px; color: var(--ink-soft); }
.place-src a { color: var(--yoru); }
.t-src { margin-top: 2px; font-size: 12px; color: var(--ink-soft); }
.t-src a { color: var(--yoru); }
.stay-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; }
.stay-links a { color: var(--yoru); }
.stay-group {
  padding: 12px 0 2px; font-family: var(--font-title); font-size: 15px; color: var(--yoru);
  border-bottom: 1px solid var(--line);
}
.stay-foot { margin: 0; padding: 0 16px 12px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }

/* 장소 카드 */
.place {
  position: relative;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 18px;
}
.place-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #a0857a; font-size: 13px;
  background: linear-gradient(135deg, #ffe9e2, #fff3dc);
}
.place-photo .ph-emoji { font-size: 48px; margin-bottom: 2px; }
.place-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-photo .credit {
  position: absolute; right: 8px; bottom: 8px; max-width: 75%;
  background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 10px; text-decoration: none;
  padding: 2px 8px; border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.place-photo .ph-note { max-width: 80%; text-align: center; line-height: 1.5; }
/* 번호 스티커 */
.place-no {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--momiji); color: #fff;
  font-family: var(--font-title); font-size: 18px;
  box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(0,0,0,.15);
}
.place-body { padding: 14px 16px 16px; }
.place-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.place-name { font-family: var(--font-title); font-weight: 400; font-size: 21px; margin: 0; line-height: 1.3; }
.place-en { font-size: 12px; color: var(--ink-soft); margin: 2px 0 8px; }
.place-desc { font-size: 15px; margin: 0 0 10px; }
.place-reserve {
  font-size: 13px; color: #b5402f; margin-bottom: 10px;
  padding: 7px 12px; background: var(--momiji-soft); border-radius: 12px;
}
/* 예약 방법: 눌러서 펼치기 */
.place-how {
  margin-bottom: 12px; border-radius: 12px; background: var(--yoru-soft);
  font-size: 14px; color: var(--ink);
}
.place-how summary {
  cursor: pointer; padding: 8px 12px; font-family: var(--font-title); color: var(--yoru);
  list-style: none;
}
.place-how summary::-webkit-details-marker { display: none; }
.place-how summary::after { content: " ▾"; }
.place-how[open] summary::after { content: " ▴"; }
.place-how p { margin: 0; padding: 0 12px 10px; line-height: 1.6; white-space: pre-line; }

/* ---------- 일정: 날짜 버튼 = 에마(소원 나무판) 모양 ---------- */
.day-tabs { gap: 6px; }
.day-tabs button {
  flex: 0 0 auto; min-width: 60px;
  border: 0; background: var(--paper); color: var(--ink);
  padding: 13px 8px 8px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; line-height: 1.2;
  border-radius: 0 0 12px 12px;
  clip-path: polygon(50% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
  font-family: var(--font-body);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.day-tabs button b { font-family: var(--font-title); font-size: 19px; font-weight: 400; }
.day-tabs button small { font-size: 11px; color: var(--ink-soft); }
.day-tabs button.active { background: var(--momiji); color: #fff; box-shadow: none; }
.day-tabs button.active small { color: #ffe1da; }

.day-head { border-bottom: 1.5px dashed var(--line); padding-bottom: 12px; }
.day-head .day-date { color: var(--momiji); font-family: var(--font-title); font-size: 15px; }
.day-head h3 { margin: 2px 0 0; font-family: var(--font-title); font-weight: 400; font-size: 22px; line-height: 1.35; }
.day-head .day-note { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

/* 시간표: 분홍 선 + 동그라미 */
.timeline { list-style: none; margin: 14px 0 0; padding: 0; }
.timeline li {
  position: relative;
  display: grid; grid-template-columns: 50px 1fr; gap: 14px;
  padding: 8px 0 12px;
}
.timeline li::before {
  content: ""; position: absolute; left: 62px; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--sakura);
}
.timeline li::after {
  content: ""; position: absolute; left: 56px; top: 12px;
  width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--momiji);
}
.timeline li.star::after { background: var(--gold); border-color: var(--gold); }
.timeline .t-time {
  font-family: var(--font-title); color: var(--yoru); font-size: 15px; padding-top: 2px; text-align: right;
}
.timeline li > div:last-child { padding-left: 22px; }
.timeline .t-text { font-size: 15px; }
.timeline .t-move {
  display: inline-block; font-size: 12.5px; color: var(--yoru); margin-top: 4px;
  background: var(--yoru-soft); padding: 2px 10px; border-radius: 999px;
}
.timeline .t-move::before { content: "➜ "; }
.timeline li.star .t-text { font-weight: 700; color: var(--momiji); }
.timeline li.star .t-text::before { content: "⭐ "; }

/* ---------- 예약 달력: 탁상 달력 모양 ---------- */
.reserve-item { display: flex; gap: 14px; align-items: flex-start; }
.reserve-when {
  flex: 0 0 auto; width: 72px; text-align: center; overflow: hidden;
  background: var(--paper); border: 2px solid var(--yoru); border-radius: 14px;
  line-height: 1.2;
}
.reserve-when .rw-top { background: var(--yoru); color: #fff; font-size: 12px; padding: 3px 0; font-family: var(--font-title); }
.reserve-when .rw-mid { font-family: var(--font-title); font-size: 26px; color: var(--ink); padding: 4px 0 0; }
.reserve-when .rw-mid small { font-size: 13px; }
.reserve-when .rw-bot { font-size: 11px; color: var(--momiji); font-weight: 700; padding: 0 0 6px; }
.reserve-when.now { border-color: var(--momiji); }
.reserve-when.now .rw-top { background: var(--momiji); }
.reserve-when.now .rw-mid { font-size: 18px; color: var(--momiji); padding: 8px 0 8px; }
.reserve-title { font-family: var(--font-title); font-size: 18px; margin-bottom: 2px; line-height: 1.35; }
.reserve-desc { font-size: 14px; color: var(--ink-soft); }
.reserve-whentext { font-size: 12px; color: var(--momiji); font-weight: 700; margin-bottom: 2px; }

/* 항공권 비교표 */
.flight-card { padding: 14px; }
.flight-route {
  font-family: var(--font-title); font-size: 15px; color: var(--yoru);
  background: var(--yoru-soft); border-radius: 12px; padding: 6px 12px; margin-bottom: 10px;
}
.flight-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flight-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; table-layout: fixed; }
.flight-table td { word-break: keep-all; overflow-wrap: anywhere; }
.flight-table th, .flight-table td { padding: 8px 6px; vertical-align: top; text-align: left; border-top: 1px dashed var(--line); }
.flight-table tr:first-child th { border-top: 0; font-family: var(--font-title); font-weight: 400; font-size: 15px; color: var(--momiji); }
.flight-table tr th:first-child { color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.flight-table tr.total th, .flight-table tr.total td {
  border-top: 2px solid var(--yoru); font-family: var(--font-title); font-size: 16px; color: var(--yoru);
}
.flight-notes { margin: 10px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-soft); }
.flight-notes li { margin: 2px 0; }

/* ---------- 준비물 ---------- */
.progress-wrap { display: flex; align-items: center; gap: 14px; }
.progress-stamp {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  border: 3px dashed var(--momiji); color: var(--momiji);
  font-family: var(--font-title); font-size: 18px; line-height: 1.1;
  transform: rotate(-8deg);
}
.progress-stamp.done { background: var(--momiji); color: #fff; border-style: solid; }
.progress-main { flex: 1; }
.progress {
  height: 12px; background: var(--cream-dark); border-radius: 999px; overflow: hidden; margin: 6px 0 4px;
}
.progress > div {
  height: 100%; width: 0; transition: width .3s; border-radius: 999px;
  background: repeating-linear-gradient(45deg, var(--momiji) 0 8px, #f07a6e 8px 16px);
}
.progress-text { font-size: 13px; color: var(--ink-soft); }

.check-group h3 {
  margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px dashed var(--sakura);
  font-family: var(--font-title); font-weight: 400; font-size: 18px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.check-group h3 small {
  color: var(--momiji); font-size: 13px; white-space: nowrap;
  background: var(--momiji-soft); padding: 1px 10px; border-radius: 999px;
}
.check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 2px; border-top: 1px dashed var(--line); cursor: pointer;
  font-size: 15px;
}
.check-item:first-of-type { border-top: 0; }
/* 체크박스 = 동그라미 스티커 */
.check-item input {
  -webkit-appearance: none; appearance: none; margin: 0;
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #d8c6bb; background: var(--paper);
  display: grid; place-items: center; cursor: pointer; transition: all .15s;
}
.check-item input:checked { border-color: var(--momiji); background: var(--momiji); transform: scale(1.08); }
.check-item input:checked::after {
  content: "✓"; color: #fff; font-weight: 700; font-size: 15px; line-height: 1;
}
.check-item { align-items: flex-start; }
.check-item input { margin-top: 1px; }
.check-why { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin-top: 2px; }
.check-item.done span { color: #b3a49b; text-decoration: line-through; text-decoration-color: var(--momiji); }
.check-item.done .check-why { text-decoration: none; }

/* ---------- 예산 ---------- */
.budget-total { text-align: center; padding: 20px 16px; }
.budget-total .label { font-size: 13px; color: var(--ink-soft); }
.budget-total .limit-stamp {
  display: inline-block; margin: 8px 0 6px; padding: 6px 20px;
  border: 3px dashed var(--momiji); border-radius: 16px; color: var(--momiji);
  font-family: var(--font-title); font-size: 30px;
  transform: rotate(-2deg);
}
.budget-total .limit-note { font-size: 13px; font-weight: 700; color: var(--momiji); }
.budget-bar {
  position: relative; height: 16px; background: var(--cream-dark);
  border-radius: 999px; margin: 16px 0 6px; overflow: hidden;
}
.budget-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--yoru); border-radius: 999px; }
.budget-bar .over { position: absolute; top: 0; bottom: 0; background: var(--danger); }
.budget-bar-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); }
.budget-alert { margin-top: 12px; padding: 10px 12px; border-radius: 14px; font-size: 14px; font-weight: 700; }
.budget-alert.ok { background: var(--matcha-soft); color: var(--matcha); }
.budget-alert.bad { background: #fdecea; color: var(--danger); }

.budget-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-top: 1px dashed var(--line); font-size: 15px;
}
.budget-row:first-child { border-top: 0; }
.budget-row .br-est { display: block; font-size: 12px; color: var(--ink-soft); }
.budget-row b { white-space: nowrap; font-family: var(--font-title); font-weight: 400; font-size: 17px; color: var(--yoru); }
.budget-sum {
  display: flex; justify-content: space-between; padding-top: 12px; margin-top: 4px;
  border-top: 2px solid var(--yoru); font-family: var(--font-title); font-size: 17px;
}
.budget-sum b { font-weight: 400; font-size: 19px; color: var(--momiji); }

.yen-rate {
  font-size: 13px; color: var(--yoru); background: var(--yoru-soft);
  padding: 6px 12px; border-radius: 12px; margin-bottom: 10px;
}
.yen-calc label { font-size: 14px; color: var(--ink-soft); }
.yen-field { position: relative; margin-top: 6px; }
.yen-field span {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-title); font-size: 22px; color: var(--momiji);
}
.yen-calc input {
  width: 100%; font-size: 22px; padding: 10px 14px 10px 44px;
  border: 2px solid var(--line); border-radius: 16px; background: #fff;
  font-family: var(--font-title);
}
.yen-calc input:focus { outline: none; border-color: var(--momiji); }
.yen-result { font-family: var(--font-title); font-size: 26px; color: var(--yoru); margin-top: 10px; }

.footer-note { text-align: center; font-size: 12px; color: var(--ink-soft); margin: 24px 0 8px; }

/* ---------- 컴퓨터(넓은 화면)에서 볼 때: 폰 화면처럼 가운데에 좁게 ---------- */
@media (min-width: 700px) {
  body { background-color: #f3e2d3; }
  main {
    max-width: 440px; min-height: 100vh; margin: 0 auto;
    background-color: var(--cream);
    box-shadow: 0 0 0 1px var(--line), 0 10px 40px rgba(0,0,0,.12);
  }
  .topbar, .tabbar { max-width: 440px; margin: 0 auto; }
}

/* 움직임 줄이기 설정을 켠 폰에서는 애니메이션 끄기 */
@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
  .hero-leaf { display: none; }
}
