*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --cream: #faf7f2;
      --ink: #1a1a1a;
      --ink-soft: #6b6660;
    }

    body {
      font-family: 'Noto Serif SC', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--cream);
      color: var(--ink);
    }

    .notion-content h1 { font-size: 20px; font-weight: 700; margin: 16px 0 8px; }
    .notion-content h2 { font-size: 16px; font-weight: 600; margin: 14px 0 6px; color: #1a1a1a; }
    .notion-content h3 { font-size: 14px; font-weight: 600; margin: 10px 0 4px; }
    .notion-content p  { font-family: 'Noto Serif SC', Georgia, 'PingFang SC', serif; font-size: 1em; line-height: 1.6; color: #333; margin-bottom: 6px; }
    .notion-content ul, .notion-content ol { padding-left: 18px; margin-bottom: 6px; }
    .notion-content li { font-family: 'Noto Serif SC', Georgia, 'PingFang SC', serif; font-size: 1em; line-height: 1.6; color: #333; margin-bottom: 2px; }
    .notion-content hr { border: none; border-top: 1px solid #eee; margin: 12px 0; }
    .notion-content :first-child { margin-top: 0; }

    .empty-hint { font-size: 14px; color: #bbb; text-align: center; padding: 12px 0; }



    .home-hero {
      height: 94dvh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .home-header {
      background: transparent;
      max-width: 680px;
      margin: 0 auto;
      padding: 3vh 24px 2vh;
      text-align: center;
      flex-shrink: 0;
      animation: heroFadeIn 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .home-header h1 {
      font-family: 'Playfair Display', 'Noto Serif SC', 'PingFang SC', Georgia, serif;
      font-size: clamp(28px, 4.4vw, 40px);
      font-weight: 400;
      letter-spacing: 0.01em;
    }


    .city-islands-row {
      flex: 1;
      min-height: 0;
      position: relative;
      overflow: hidden;
    }


    .city-islands-wrap {
      position: absolute;
      left: 50%;
      top: 50%;

      width: max-content;
      transform: translate(-50%, -50%);
      display: flex;
      align-items: center;
      gap: 6vw;
    }

    .city-island {
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      -webkit-tap-highlight-color: transparent;

      animation: islandIn 450ms cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .city-island svg { height: auto; display: block; pointer-events: none; }
    .city-island polygon { pointer-events: all; }
    .city-island-label {
      font-family: 'Playfair Display', 'Noto Serif SC', 'PingFang SC', Georgia, serif;
      font-size: 14px; font-style: italic; font-weight: 400;
      font-synthesis: none;
      letter-spacing: 0.02em; color: var(--ink);
    }


    .city-island--active { gap: 28px; }
    .city-island--active svg {
      width: 74vw; max-width: 380px;
      transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    .city-island--active svg:hover { transform: scale(1.05); }

    .city-island--active polygon { stroke: none; }


    .city-island--side { opacity: 0.55; }
    .city-island--side svg { width: 24vw; max-width: 110px; }
    .city-island--side polygon { stroke: none; }


    .city-island:nth-child(1) { animation-delay: 80ms; }
    .city-island:nth-child(2) { animation-delay: 0ms; }
    .city-island:nth-child(3) { animation-delay: 80ms; }


    .city-island--hidden { display: none; }


    .city-island--sliding { animation: none; }
    .city-island--sliding > svg {
      animation: islandSlideIn 400ms cubic-bezier(0.22, 1, 0.36, 1);
    }
    @keyframes islandSlideIn {
      from { transform: translateX(calc(var(--slide-dir, 0) * 32px)); }
      to   { transform: translateX(0); }
    }


    .city-nav { display: inline-flex; align-items: center; gap: 14px; }


    .city-dots { display: none; gap: 8px; align-items: center; justify-content: center; }
    .city-dot {
      width: 7px; height: 7px; border-radius: 50%;
      background: var(--ink); opacity: 0.25;
      border: none; cursor: pointer; padding: 0;
      transition: opacity 0.25s; -webkit-tap-highlight-color: transparent;
    }
    .city-dot--active { opacity: 1; }
    @media (hover: none) and (pointer: coarse) {
      .city-nav-btn { display: none; }
      .city-dots { display: flex; gap: 0; }
      .city-dot {
        width: 44px; height: 44px;
        border-radius: 0;
        background: transparent;
        opacity: 1;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .city-dot::after {
        content: ''; display: block;
        width: 7px; height: 7px;
        border-radius: 50%;
        background: var(--ink); opacity: 0.25;
        transition: opacity 0.25s;
      }
      .city-dot--active::after { opacity: 1; }
    }
    .city-nav-btn {
      background: none; border: none; cursor: pointer;
      font-size: 24px; color: var(--ink-soft); padding: 4px 8px; line-height: 1;
      -webkit-tap-highlight-color: transparent; transition: color 0.2s;
    }
    .city-nav-btn:hover { color: var(--ink); }
    .city-nav-label {
      font-family: 'Playfair Display', 'Noto Serif SC', 'PingFang SC', Georgia, serif;
      font-size: 22px; font-style: italic; font-weight: 400; font-synthesis: none;
      color: var(--ink); min-width: 120px; text-align: center;
    }


    @keyframes heroFadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes islandIn {
      from { transform: translateY(10px); }
      to { transform: translateY(0); }
    }


    .text-zoom-target { transform-origin: top center; }

    .home-overview {
      max-width: 680px;
      margin: 0 auto;
      padding: 0 24px 80px;
      --zoom: 0.3;
      min-height: 100dvh;
    }

    .home-overview .notion-content { text-align: center; }


    .overview-title {
      font-family: 'Playfair Display', 'Noto Serif SC', 'PingFang SC', Georgia, serif;
      font-size: calc(44px * var(--zoom)); font-weight: 700; font-style: italic;
      font-synthesis: none; letter-spacing: 0.03em;
      color: var(--ink); text-align: center;
      padding: 12px 0 16px; margin-bottom: 20px;
      border-bottom: 1px solid rgba(0,0,0,0.1);
      cursor: pointer;
      opacity: calc(0.5 + 0.5 * var(--zoom));
      transition: letter-spacing 0.3s ease, border-bottom-color 0.3s, opacity 0.25s;
    }
    .overview-title:hover { letter-spacing: 0.1em; border-bottom-color: rgba(0,0,0,0.45); opacity: 1; }
    .home-overview .notion-content h1 { font-size: calc(22px * var(--zoom)); }
    .home-overview .notion-content h2 { font-size: calc(18px * var(--zoom)); }
    .home-overview .notion-content h3 { font-size: calc(15px * var(--zoom)); }
    .home-overview .notion-content p,
    .home-overview .notion-content li { font-size: calc(16px * var(--zoom)); line-height: calc(1.6 * (0.6 + 0.4 * var(--zoom))); }

    .notes-style-d {
      text-align: center;
    }

    .notes-style-d p { max-width: 30em; margin: 0 auto; line-height: 1.85; }

    .notes-style-d p + p::before { content: '•'; display: block; font-size: calc(24px * var(--zoom)); color: var(--ink); margin: 20px 0; }
    .notes-style-d hr { border: none; }
    .notes-style-d h2, .notes-style-d h3 { display: none; }

    .back-to-top {
      position: fixed;
      bottom: max(28px, calc(env(safe-area-inset-bottom) + 12px));
      left: 50%;
      transform: translateX(-50%);
      z-index: 30;
      width: 36px;
      height: 36px;
      border-radius: 0;
      background: #1a1a1a;
      border: none;
      cursor: pointer;
      color: #f5f0e8;
      font-size: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      -webkit-tap-highlight-color: transparent;
      opacity: 0;
      pointer-events: none;
      transition: background 0.2s, opacity 0.1s;
    }
    .back-to-top.visible { opacity: 1; pointer-events: auto; transition: background 0.2s, opacity 0.3s; }
    .back-to-top:hover { background: #333; }


    #city-screen {
      background: var(--cream);
      min-height: 100dvh;
    }


    .floating-back {
      position: fixed;
      top: max(11px, calc(env(safe-area-inset-top) + 2px));
      left: 18px;
      z-index: 30;
      background: none;
      border: none;
      cursor: pointer;
      color: var(--ink-soft);
      padding: 8px;
      font-size: 18px; line-height: 1;
      -webkit-tap-highlight-color: transparent;
      transition: color 0.2s;
    }
    .floating-back:hover { color: var(--ink); }


    .city-hero {
      height: 94dvh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }


    .city-map-area {
      position: relative;
      width: 100%;
      height: 75dvh;
    }

    #map { height: 100%; }
    #map svg { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
    #map svg:active { cursor: grabbing; }

    .pin { cursor: pointer; transition: opacity 80ms ease; }

    .pin.pin-clustered { opacity: 0; pointer-events: none; }
    .pin-inner { transition: transform 180ms ease, opacity 200ms ease; transform-box: fill-box; transform-origin: 50% 100%; }
    .pin:hover .pin-inner { transform: scale(1.2); }

    .pin--selected .pin-inner { opacity: 0; }

    .cluster-marker { cursor: pointer; }
    .cluster-marker:hover circle { fill: #333; transition: fill 180ms; }


    .city-title {
      font-family: 'Playfair Display', 'Noto Serif SC', 'PingFang SC', Georgia, serif;
      font-size: 32px;
      font-weight: 400;
      font-style: italic;
      font-synthesis: none;
      letter-spacing: 0.02em;
      text-align: center;
      color: var(--ink);
      padding: 16px 0 8px;
      flex-shrink: 0;
    }


    .city-overview {
      max-width: 680px;
      margin: 0 auto;
      padding: 0 24px 80px;
      --zoom: 0.3;
      min-height: 100dvh;
    }
    .city-overview .notion-content { text-align: center; }
    .city-overview .notion-content h1 { font-size: calc(22px * var(--zoom)); }
    .city-overview .notion-content h2 { font-size: calc(18px * var(--zoom)); }
    .city-overview .notion-content h3 { font-size: calc(15px * var(--zoom)); }
    .city-overview .notion-content p,
    .city-overview .notion-content li { font-size: calc(16px * var(--zoom)); line-height: calc(1.6 * (0.6 + 0.4 * var(--zoom))); }


    #place-popup {
      position: absolute;
      background: #1a1a1a;
      padding: 16px 18px 38px;
      z-index: 10;
      width: 200px;
      opacity: 0;
      font-family: 'Noto Serif SC', serif;

      clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%);
      transform-origin: 50% 100%;
      box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    }
    #place-popup.expanding {
      animation: cardExpand 240ms cubic-bezier(.2,.7,.3,1) forwards;
    }
    @keyframes cardExpand {
      from { opacity: 0; transform: scale(0.05); }
      to   { opacity: 1; transform: scale(1); }
    }
    .popup-name { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.3; }
    .popup-note-row { margin-bottom: 8px; line-height: 1.3; }
    .popup-shortnote { font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.3; }
    .popup-meta { font-size: 12px; color: rgba(255,255,255,0.5); white-space: nowrap; }
    .popup-desc { font-size: 12px; color: rgba(255,255,255,0.82); line-height: 1.55; margin-bottom: 10px; }
    .popup-link { display: inline-block; font-size: 11px; color: rgba(255,255,255,0.5); text-decoration: none; }
    .popup-link:hover { color: #fff; }



    .poi-toggle {
      position: absolute;
      top: max(16px, calc(env(safe-area-inset-top) + 6px)); right: 16px;
      z-index: 20;
      font-family: 'Playfair Display', 'Noto Serif SC', serif;
      font-style: italic;
      font-size: 14px;
      font-weight: 400;
      font-synthesis: none;
      letter-spacing: 0.06em;
      color: var(--ink);
      background: none;
      border: none;
      padding: 4px 8px;
      cursor: pointer;
      opacity: 0.55;
      border-bottom: 1px solid transparent;
      transition: opacity 0.25s, border-bottom-color 0.3s;
      -webkit-tap-highlight-color: transparent;
    }
    .poi-toggle:hover { opacity: 1; border-bottom-color: rgba(0,0,0,0.45); }
    .poi-toggle[aria-expanded="true"] { opacity: 1; border-bottom-color: rgba(0,0,0,0.45); }


    .poi-panel {
      position: absolute;
      top: 0; right: 0; bottom: 0;
      width: 285px;
      z-index: 35;
      background: var(--cream);
      border-left: 0.5px solid rgba(0,0,0,0.14);
      display: flex;
      flex-direction: column;
      transform: translateX(100%);
      transition: transform 320ms cubic-bezier(.22,1,.36,1);
      overflow: hidden;
    }
    .poi-panel[data-open] { transform: translateX(0); }

    #poi-panel[hidden] { display: none; }


    @media (hover: none) and (pointer: coarse) {
      .poi-panel {
        position: fixed;
        top: 0; right: 0; bottom: 0; left: 0;
        width: auto;
        border-left: none;
        border-top: 0.5px solid rgba(0,0,0,0.14);
        transform: translateY(100%);
      }
      .poi-panel[data-open] { transform: translateY(0); }
      .poi-panel[data-half] { transform: translateY(calc(100% - 280px)); }
      .poi-panel[data-half] .route-day:not(.route-day--active) { display: none; }
      .poi-panel[data-half] .route-day-places { display: none; }
      .poi-panel[data-half] .route-view {
        flex: none;
        max-height: calc(280px - 90px - env(safe-area-inset-top, 0px));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
      }
      .poi-panel-head { padding-top: calc(14px + env(safe-area-inset-top)); }
      .poi-list { padding-bottom: env(safe-area-inset-bottom); }
    }


    .poi-panel-head {
      flex-shrink: 0;
      padding: 14px 16px 0;
      border-bottom: 0.5px solid rgba(0,0,0,0.1);
    }
    .poi-panel-title {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      margin-bottom: 10px;
    }
    .poi-panel-label {
      font-family: 'Playfair Display', 'Noto Serif SC', serif;
      font-style: italic;
      font-size: 12px;
      font-weight: 400;
      font-synthesis: none;
      letter-spacing: 0.12em;
      color: var(--ink-soft);
    }
    .poi-panel-close {
      background: none; border: none; cursor: pointer;
      color: var(--ink-soft); padding: 6px 0 6px 14px;
      font-size: 16px; line-height: 1;
      transition: color 0.15s;
      -webkit-tap-highlight-color: transparent;
    }
    .poi-panel-close:hover { color: var(--ink); }
    .route-day-chevron {
      flex-shrink: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 14px; height: 14px;
      font-size: 13px; line-height: 1;
      color: var(--ink-soft);
      transform-origin: 50% 50%;
      transform: rotate(-90deg);
      transition: transform 220ms ease;
    }
    .route-day--active .route-day-chevron { transform: rotate(90deg); }


    .poi-filter { display: flex; gap: 16px; padding-bottom: 11px; }
    .poi-filter[hidden] { display: none; }
    .poi-chip {
      font-family: 'Noto Serif SC', serif;
      font-size: 11px; letter-spacing: 0.05em;
      color: var(--ink);
      background: none; border: none;
      min-width: 36px; padding: 6px 0; text-align: left; cursor: pointer;
      opacity: 0.45;
      transition: opacity 0.25s;
      -webkit-tap-highlight-color: transparent;
    }
    .poi-chip span {
      border-bottom: 1px solid transparent;
      padding-bottom: 3px;
      transition: border-bottom-color 0.3s;
    }
    .poi-chip:hover { opacity: 1; }
    .poi-chip:hover span { border-bottom-color: rgba(0,0,0,0.45); }
    .poi-chip.active { opacity: 1; }
    .poi-chip.active span { border-bottom-color: var(--poi-accent, #E85D4A); }


    .poi-list {
      flex: 1; overflow-y: auto; list-style: none;
      overscroll-behavior: contain; scrollbar-width: none;
    }
    .poi-list::-webkit-scrollbar { display: none; }


    .poi-item {
      padding: 11px 16px;
      border-bottom: 0.5px solid rgba(0,0,0,0.07);
      cursor: pointer;
      transition: background 0.1s;
    }
    .poi-item:last-child { border-bottom: none; }
    .poi-item:hover { background: rgba(0,0,0,0.022); }

    .poi-item--active { background: rgba(0,0,0,0.04); }
    .poi-item--active .poi-item-name { color: var(--poi-accent, #E85D4A); }
    .poi-item-name {
      font-family: 'Noto Serif SC', serif;
      font-size: 13px; font-weight: 700;
      color: var(--ink); line-height: 1.35;
    }
    .poi-item-note {
      font-family: 'Noto Serif SC', serif;
      font-size: 11px; color: var(--ink-soft);
      line-height: 1.45; margin-top: 2px;
    }
    .poi-item-rating { font-size: 10px; margin-top: 3px; letter-spacing: 0.02em; }
    .poi-item-empty {
      padding: 24px 16px; font-size: 12px;
      color: var(--ink-soft); text-align: center;
    }


    .pin--list-hover .pin-inner { transform: scale(1.5); }


    .poi-mode-texts { display: flex; gap: 12px; align-items: baseline; }
    .poi-mode-text {
      font-family: 'Playfair Display', 'Noto Serif SC', serif;
      font-style: italic; font-size: 12px; font-weight: 400;
      font-synthesis: none; letter-spacing: normal;
      color: var(--ink-soft);
      background: none; border: none; cursor: pointer; padding: 0;
      opacity: 0.35;
      transition: opacity 0.2s;
      -webkit-tap-highlight-color: transparent;
    }
    .poi-mode-text.active { opacity: 1; cursor: default; }
    .poi-mode-text:not(.active):hover { opacity: 0.8; }


    .route-view {
      flex: 1; overflow-y: auto;
      overscroll-behavior: contain; scrollbar-width: none;
      touch-action: pan-y;
    }
    .route-view::-webkit-scrollbar { display: none; }
    .route-day {
      padding: 14px 16px;
      border-bottom: 0.5px solid rgba(0,0,0,0.07);
      cursor: default;
      transition: background 0.1s;
    }
    .route-day:last-child { border-bottom: none; }
    .route-day:hover { background: rgba(0,0,0,0.022); }
    .route-day-label {
      font-family: 'Noto Serif SC', serif;
      font-size: 12px; font-weight: 700;
      color: var(--poi-accent, #E85D4A); margin-bottom: 4px; letter-spacing: 0.04em;
    }
    .route-day-places {
      font-family: 'Noto Serif SC', serif;
      font-size: 11px; color: var(--ink-soft);
      letter-spacing: 0.02em;
      margin-bottom: 5px; line-height: 1.4;
    }
    .route-day-meta {
      font-family: 'Noto Serif SC', serif;
      font-size: 10px; color: var(--ink-soft);
      letter-spacing: 0.03em;
      margin-bottom: 6px;
      display: flex; align-items: flex-start; gap: 5px;
    }
    .route-meta-icon { flex-shrink: 0; }
    .route-meta-sep { opacity: 0.35; }
    .route-day-note + .route-day-places {
      margin-top: 6px; padding-top: 6px;
      border-top: 0.5px solid rgba(0,0,0,0.07);
    }
    .route-day-note {
      font-family: 'Noto Serif SC', serif;
      font-size: 11px; color: var(--ink); line-height: 1.55;
    }

    .route-day-items { margin-top: 8px; padding-top: 6px; border-top: 0.5px solid rgba(0,0,0,0.08); }
    .route-place-item {
      font-family: 'Noto Serif SC', serif;
      font-size: 11px; color: var(--ink-soft);
      padding: 6px 0; border-bottom: 0.5px solid rgba(0,0,0,0.06);
      cursor: pointer; letter-spacing: 0;
      transition: letter-spacing 160ms, opacity 160ms;
      display: flex; align-items: center; justify-content: space-between;
    }
    .route-place-item:last-child { border-bottom: none; }
    .route-place-item:hover { letter-spacing: 0.03em; opacity: 0.65; }
    .route-place-item--active { color: var(--poi-accent, #E85D4A); }
    .route-place-arrow { flex-shrink: 0; opacity: 0.35; padding-left: 6px; font-size: 12px; line-height: 1; display: none; }
    @media (hover: none) and (pointer: coarse) {
      .route-place-arrow { display: inline-block; }
    }


    .pin--route-dim { opacity: 0.12; }
    .pin--route-active .pin-inner { transform: scale(1.3); }

    @media (hover: none) and (pointer: coarse) {
      .poi-mode-text { font-size: 15px; padding: 8px 0; }
      .route-day { padding: 16px 16px; }
      .route-day-label { font-size: 15px; }
      .route-day-places { font-size: 13px; }
      .route-day-note { font-size: 13px; }
    }


    @media (hover: none) and (pointer: coarse) {
      .poi-panel-label { font-size: 15px; }
      .poi-panel-close { padding: 12px 0 12px 16px; }
      .poi-filter { gap: 36px; }
      .poi-chip { font-size: 13px; padding: 15px 0; }
      .poi-item { padding: 16px 16px; }
      .poi-item-name { font-size: 17px; }
      .poi-item-note { font-size: 14px; }
      .poi-item-rating { font-size: 13px; }
    }
