/* 高雄旅行の栞 — 南国リゾート・カラフル */
:root{
  --bg: #fef8ee;
  --bg-soft: #fdf0dc;
  --ink: #2a1f1a;
  --ink-soft: #6b5d54;
  --line: rgba(42,31,26,.10);
  --card: #ffffff;
  /* テーマアクセント（デフォルト：トロピカル） */
  --c1: #ff6b6b; /* ハイビスカスレッド */
  --c2: #ffa94d; /* マンゴーオレンジ */
  --c3: #ffd43b; /* サンライトイエロー */
  --c4: #51cf66; /* パームグリーン */
  --c5: #22b8cf; /* ラグーンブルー */
  --c6: #cc5de8; /* オーキッドパープル */

  --font-sans: "Hiragino Maru Gothic ProN","Hiragino Sans","Yu Gothic UI","Meiryo",system-ui,sans-serif;
  --font-serif: "Hiragino Mincho ProN","Yu Mincho","YuMincho","Noto Serif JP",serif;
  --font: var(--font-sans);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(42,31,26,.04), 0 8px 24px rgba(42,31,26,.06);
}

[data-theme="sunset"]{
  --bg:#fff5ec; --bg-soft:#ffe6d3;
  --c1:#ff5a5f; --c2:#ff8c42; --c3:#ffc145; --c4:#e84a5f; --c5:#9a48d0; --c6:#ff7eb6;
}
[data-theme="ocean"]{
  --bg:#eef9fb; --bg-soft:#dbf0f4;
  --c1:#1098ad; --c2:#22b8cf; --c3:#4dd0e1; --c4:#ffd43b; --c5:#ff8787; --c6:#5c7cfa;
}
[data-theme="jungle"]{
  --bg:#f3faf0; --bg-soft:#e2f3da;
  --c1:#2b9348; --c2:#80b918; --c3:#ffba08; --c4:#f48c06; --c5:#dc2f02; --c6:#3a86ff;
}

*{box-sizing:border-box; -webkit-tap-highlight-color:transparent}
html,body{margin:0; padding:0}
body{
  font-family: var(--font);
  font-feature-settings: "palt";
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
  letter-spacing: .01em;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 全体ラッパー（モバイル中心） */
.app{
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  padding-bottom: 80px;
}
@media (min-width: 720px){
  .app{ box-shadow: 0 0 60px rgba(42,31,26,.08); }
}

/* ─── ヘッダー（カバー） ─── */
.cover{
  position: relative;
  padding: 110px 22px 28px;
  min-height: 360px;
  background-image:
    linear-gradient(180deg, rgba(15,12,25,.55) 0%, rgba(15,12,25,.35) 35%, rgba(15,12,25,.55) 70%, rgba(15,12,25,.82) 100%),
    url("assets/cover.jpg");
  background-size: cover;
  background-position: center 30%;
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.cover::before{
  content:"";
  position: absolute; inset: auto 0 0 0; height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35));
  pointer-events: none;
}
.cover-deco{ display: none; }
.eyebrow{
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
}
.cover h1{
  font-size: 42px;
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: .03em;
  position: relative;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.cover h1 .accent{ color: var(--c3); }
.cover .sub{
  font-size: 13px;
  color: rgba(255,255,255,.92);
  position: relative;
}
.cover .meta{
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}
.chip{
  font-size: 11px;
  padding: 5px 11px;
  background: rgba(255,255,255,.18);
  border: .5px solid rgba(255,255,255,.4);
  border-radius: 99px;
  color: #fff;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.chip-dot{ width: 6px; height: 6px; border-radius: 99px; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* ─── タブナビ ─── */
.tabs{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(254,248,238,.92);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  display: flex;
  overflow-x: auto;
  padding: 10px 14px;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar{ display: none; }
.tab{
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 13px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.tab:hover{ color: var(--ink); }
.tab.active{
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tab-num{
  font-size: 10px;
  opacity: .6;
  font-variant-numeric: tabular-nums;
}
.tab.active .tab-num{ opacity: .8; }

/* ─── セクション共通 ─── */
.section{ padding: 22px 20px; }
.section-title{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 14px;
}
.section-title h2{
  font-size: 20px;
  margin: 0;
  font-weight: 700;
  letter-spacing: .02em;
}
.section-title .stripe{
  flex: 1;
  height: 1px;
  margin: 0 12px;
  background: linear-gradient(90deg, var(--c2), var(--c3), transparent);
  align-self: center;
}

/* ─── 日別ヘッダー ─── */
.day-head{
  position: relative;
  padding: 24px 20px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft) 0%, transparent 100%);
}
.day-head .row{
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.day-head .date-block{
  display: flex; flex-direction: column; gap: 2px;
}
.day-head .date-num{
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}
.day-head .date-num .sep{ color: var(--ink-soft); margin: 0 2px; }
.day-head .dow{
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .15em;
}
.day-head .label{
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 99px;
  font-size: 11px;
  letter-spacing: .1em;
}
.day-head .theme{
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}
.day-head .day-note{
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* 天気カード */
.weather{
  flex-shrink: 0;
  text-align: center;
  background: white;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  border: 1px solid var(--line);
  min-width: 90px;
}
.weather .icon{ font-size: 26px; line-height: 1; }
.weather .desc{ font-size: 10px; color: var(--ink-soft); margin-top: 4px; letter-spacing: .08em; }
.weather .temp{ font-size: 16px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.weather .rain{ font-size: 10px; color: var(--c5); margin-top: 1px; }

/* ─── タイムライン ─── */
.timeline{
  position: relative;
  padding: 18px 20px 8px 20px;
}
.timeline::before{
  content:"";
  position: absolute;
  left: 56px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--line) 0 4px, transparent 4px 8px);
}
.event{
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 8px 0 18px;
}
.event .time{
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding-top: 8px;
  text-align: right;
  letter-spacing: .02em;
}
.event .marker{
  position: absolute;
  left: 47px;
  top: 10px;
  width: 20px;
  height: 20px;
  border-radius: 99px;
  background: var(--c1);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--c1);
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 10px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.event .marker-num{ line-height: 1; }
.event[data-tag="food"] .marker{ background: var(--c2); box-shadow: 0 0 0 1px var(--c2); }
.event[data-tag="sight"] .marker{ background: var(--c4); box-shadow: 0 0 0 1px var(--c4); }
.event[data-tag="move"] .marker{ background: var(--c5); box-shadow: 0 0 0 1px var(--c5); }
.event[data-tag="hotel"] .marker{ background: var(--c6); box-shadow: 0 0 0 1px var(--c6); }
.event[data-tag="rest"] .marker{ background: var(--ink-soft); box-shadow: 0 0 0 1px var(--ink-soft); }
.event[data-tag="flight"] .marker{ background: var(--c3); box-shadow: 0 0 0 1px var(--c3); }
.event[data-tag="shop"] .marker{ background: var(--c6); box-shadow: 0 0 0 1px var(--c6); }

.event .card{
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 12px 14px 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.event .title-row{
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.event h3{
  font-size: 15px;
  margin: 0;
  font-weight: 700;
  letter-spacing: .01em;
}
.event .tag-pill{
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  letter-spacing: .08em;
  flex-shrink: 0;
}
.event .note{
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.65;
  text-wrap: pretty;
}
.event .map-link{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--c5);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .04em;
}
.event .map-link::before{ content: "📍"; font-size: 10px; }
.event .map-link:hover{ text-decoration: underline; }

/* ─── 地図 ─── */
.map-wrap{
  margin: 8px 20px 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
  position: relative;
}
.map-wrap iframe{
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}
.leaflet-map{
  width: 100%;
  height: 260px;
  background: #e8eef2;
}
.leaflet-container{ font: inherit; }
.pin{
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 99px 99px 99px 4px;
  transform: rotate(-45deg);
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  color: white; font-weight: 700; font-size: 12px;
  font-family: var(--font-sans);
}
.pin span{ transform: rotate(45deg); font-variant-numeric: tabular-nums; }
.pin-popup{
  font: 600 12px/1.4 var(--font-sans);
  color: var(--ink);
  letter-spacing: .02em;
}
.pin-popup .pp-time{ color: var(--ink-soft); font-size: 11px; font-weight: 500; }
.leaflet-popup-content-wrapper{ border-radius: 10px; padding: 2px; }
.leaflet-popup-content{ margin: 8px 12px; }

/* 祝日バッジ */
.holiday-badge{
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px;
  padding: 3px 8px;
  background: var(--c1);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 99px;
  letter-spacing: .08em;
  vertical-align: middle;
}
.holiday-badge.weekend{ background: var(--ink-soft); }
.holiday-badge::before{ content: "祝"; font-size: 9px; opacity: .8; }
.holiday-badge.weekend::before{ content: "土日"; }
.map-caption{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 11px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.map-caption a{
  color: var(--c5);
  text-decoration: none;
  font-weight: 600;
}

/* ─── ホテルカード ─── */
.hotel-card{
  margin: 0 20px 4px;
  padding: 18px 18px 14px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hotel-card::before{
  content:"";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5));
}
.hotel-card .hk{
  font-size: 10px; letter-spacing: .25em; color: var(--ink-soft); text-transform: uppercase;
  margin-top: 4px;
}
.hotel-card h3{
  font-size: 18px; margin: 4px 0 2px; font-weight: 700;
}
.hotel-card .name-jp{ font-size: 12px; color: var(--ink-soft); }
.hotel-card .info{
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 12.5px;
}
.hotel-card .info dt{ color: var(--ink-soft); font-weight: 600; }
.hotel-card .info dd{ margin: 0; }

/* ─── フライト ─── */
.flights{
  margin: 0 20px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.flight{
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.flight .code{
  font-size: 11px; padding: 4px 10px; border-radius: 6px;
  background: var(--ink); color: var(--bg);
  letter-spacing: .08em; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.flight .from, .flight .to{ display: flex; flex-direction: column; gap: 2px; }
.flight .iata{ font-size: 12px; font-weight: 700; }
.flight .time{ font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.flight .arrow{ color: var(--ink-soft); font-size: 14px; }

/* ─── リストカード（食べたい・お土産） ─── */
.list-grid{
  display: grid; grid-template-columns: 1fr; gap: 10px;
  padding: 0 20px 20px;
}
.list-item{
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.list-item .num{
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 99px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.list-item:nth-child(6n+1) .num{ background: color-mix(in oklab, var(--c1) 25%, white); }
.list-item:nth-child(6n+2) .num{ background: color-mix(in oklab, var(--c2) 30%, white); }
.list-item:nth-child(6n+3) .num{ background: color-mix(in oklab, var(--c3) 35%, white); }
.list-item:nth-child(6n+4) .num{ background: color-mix(in oklab, var(--c4) 25%, white); }
.list-item:nth-child(6n+5) .num{ background: color-mix(in oklab, var(--c5) 25%, white); }
.list-item:nth-child(6n+6) .num{ background: color-mix(in oklab, var(--c6) 25%, white); }
.list-item.checked{ opacity: .55; }
.list-item.checked .name{ text-decoration: line-through; }
.list-item .body{ flex: 1; min-width: 0; }
.list-item .name{ font-size: 14px; font-weight: 700; }
.list-item .desc{ font-size: 12px; color: var(--ink-soft); margin-top: 2px; line-height: 1.55; }
.list-item .where{
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--c5);
  letter-spacing: .04em;
}
.list-item .check{
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: transparent;
  margin-top: 2px;
}
.list-item.checked .check{
  background: var(--c4);
  border-color: var(--c4);
  color: white;
}

/* ─── Tips ─── */
.tips{
  margin: 0 20px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 0;
  box-shadow: var(--shadow);
}
.tips dl{
  margin: 0;
  display: grid;
  grid-template-columns: 80px 1fr;
}
.tips dt, .tips dd{
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.tips dt:first-of-type, .tips dt:first-of-type + dd{ border-top: 0; }
.tips dt{ font-weight: 700; color: var(--ink-soft); }
.tips dd{ color: var(--ink); }

/* フッター */
.footer{
  text-align: center;
  padding: 30px 20px 50px;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: .15em;
}
.footer .heart{ color: var(--c1); }

/* タグ凡例 */
.legend{
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  margin: 10px 20px 18px;
  font-size: 11px;
  color: var(--ink-soft);
}
.legend .l{ display: inline-flex; align-items: center; gap: 5px; }
.legend .ldot{ width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
