/* 季節の地図（/map/）。生成りの紙の地に、地図帳のような細い線と小さな文字。サイト共通の style.css の上に重ねる */
body:has(.atlas) { background: #F6F3EC; }
body:has(.atlas) .plan-fab { display: none; }
.atlas {
  --ink: #F6F3EC;
  --paper: #1E2420;
  --muted: #7B776E;
  --faint: rgba(30, 36, 32, .12);
  --sakura: #D4607F;
  --leaf: #D24E22;
  --gold: #B88A2E;
  --fest: #E8552E;
  --snow: #5F8DB5;
  --green: #5E8A3A;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 700px;
  color: var(--paper);
  background: var(--ink);
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(24px, 4vw, 64px);
  padding: 128px var(--gutter) 24px;
  overflow: hidden;
}
/* 紙の粒子（ごく薄く） */
.atlas::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .3 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.atlas > * { position: relative; }

/* 左の欄 */
.atlas__intro { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-height: 0; }
.atlas__kicker { font-family: var(--en); font-size: 11px; letter-spacing: .24em; color: var(--muted); margin: 0 0 18px; }
.atlas__kicker b { color: var(--paper); font-weight: 600; }
.atlas__title { font-family: var(--en); font-weight: 600; font-size: clamp(30px, 2.7vw, 42px); line-height: 1.04; letter-spacing: -.02em; margin: 0; }
.atlas__dek { margin: 14px 0 0; font-size: 14px; line-height: 1.75; color: #4E5450; max-width: 34em; }

.atlas__date { display: flex; align-items: baseline; gap: 12px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--faint); font-family: var(--en); font-variant-numeric: tabular-nums; }
.atlas__day { font-size: clamp(56px, 4.8vw, 76px); font-weight: 600; line-height: .9; letter-spacing: -.04em; }
.atlas__mon { font-size: 15px; font-weight: 500; letter-spacing: .28em; color: var(--muted); }
.atlas__now { margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; min-height: 3.2em; }
.atlas__now em { font-style: normal; color: var(--sakura); }
.atlas__now em.is-leaf { color: var(--leaf); }

.atlas__layers { position: absolute; left: 0; top: 0; z-index: 4; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.atlas__layer { appearance: none; border: 0; background: none; color: var(--muted); font: 500 12px/1 var(--en); letter-spacing: .14em; padding: 8px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.atlas__layer i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .35; transition: opacity .2s; }
.atlas__layer[aria-pressed="true"] { color: var(--paper); border-bottom-color: rgba(30, 36, 32, .5); }
.atlas__layer[aria-pressed="true"] i { opacity: 1; }
.atlas__layer[data-layer="sakura"] i { background: var(--sakura); }
.atlas__layer[data-layer="leaves"] i { background: var(--leaf); }
.atlas__layer[data-layer="snow"] i { background: var(--snow); }
.atlas__layer[data-layer="green"] i { background: var(--green); }
.atlas__layer[data-layer="fest"] i { background: none; border: 1.5px solid var(--fest); width: 9px; height: 9px; }

.atlas__panel { margin-top: 20px; overflow: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: #CFC9BC transparent; }
.atlas__h { font: 500 11px/1 var(--en); letter-spacing: .22em; color: var(--muted); margin: 0 0 6px; }
.atlas__list { list-style: none; margin: 0 0 22px; padding: 0; }
.atlas__list li { border-top: 1px solid var(--faint); }
.atlas__list a, .atlas__list .row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 7px 0; color: inherit; text-decoration: none; font-size: 14px; }
.atlas__list a:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.atlas__list .nm { font-weight: 500; }
.atlas__list .st { font-size: 12px; color: var(--muted); text-align: right; }
.atlas__list .st.is-sakura { color: var(--sakura); }
.atlas__list .st.is-leaf { color: var(--leaf); }
.atlas__list .st.is-fest { color: var(--fest); }
.atlas__list .st.is-snow { color: var(--snow); }
.atlas__list .st.is-green { color: var(--green); }
.atlas__list .sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.atlas__note { font-size: 11px; line-height: 1.65; color: var(--muted); margin: 0; padding-top: 10px; border-top: 1px solid var(--faint); }
.atlas__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* 地図 */
.atlas__map { grid-column: 2; grid-row: 1; margin: 0; position: relative; min-height: 0; overflow: hidden; }
.atlas__map canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.atlas__overlay { position: absolute; pointer-events: none; }
.atlas__city { position: absolute; transform: translate(-3px, -50%); display: flex; align-items: center; gap: 6px; pointer-events: auto; color: var(--paper); text-decoration: none; font: 500 10.5px/1 var(--en); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 0 6px #F6F3EC, 0 0 3px #F6F3EC, 0 0 1px #F6F3EC; }
.atlas__city::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px rgba(246, 243, 236, .9); flex: none; }
.atlas__city.is-left { flex-direction: row-reverse; transform: translate(calc(-100% + 3px), -50%); }
.atlas__city.is-below { margin-top: 13px; }
.atlas__city:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }
.atlas__fest { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; pointer-events: auto; display: block; opacity: 0; transform: scale(.6); transition: opacity .35s, transform .35s; }
.atlas__fest::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid var(--fest); }
.atlas__fest.is-soon { opacity: .75; transform: scale(.85); }
.atlas__fest.is-on { opacity: 1; transform: scale(1); }
.atlas__fest.is-on::before { background: var(--fest); }
.atlas__fest.is-on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--fest); animation: atlas-ping 2.4s ease-out infinite; }
.atlas__fest span { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); white-space: nowrap; font: 500 11px/1.3 var(--en); color: var(--paper); background: rgba(255, 255, 255, .94); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); padding: 4px 7px; border-left: 2px solid var(--fest); opacity: 0; transition: opacity .2s; pointer-events: none; }
.atlas__fest.is-on span, .atlas__fest:hover span, .atlas__fest:focus-visible span { opacity: 1; }
.atlas__fest.is-flip span { left: auto; right: 24px; border-left: 0; border-right: 2px solid var(--fest); }
.atlas__fest.is-hidden { display: none; }
@keyframes atlas-ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

.atlas__inset { position: absolute; border: 1px solid rgba(30, 36, 32, .16); pointer-events: none; }
.atlas__inset b { position: absolute; left: 8px; top: 7px; font: 500 9.5px/1.3 var(--en); letter-spacing: .2em; color: var(--muted); }

.atlas__tip { position: absolute; z-index: 5; width: 230px; background: #fff; color: #1a1b19; padding: 12px 14px 11px; font-size: 12.5px; line-height: 1.55; pointer-events: none; box-shadow: 0 8px 30px rgba(0, 0, 0, .14); }
.atlas__tip b { display: block; font: 600 14px/1.2 var(--en); margin-bottom: 6px; }
.atlas__tip dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; }
.atlas__tip dt { color: #6d685e; }
.atlas__tip dd { margin: 0; font-variant-numeric: tabular-nums; }
.atlas__tip p { margin: 7px 0 0; padding-top: 6px; border-top: 1px solid rgba(0, 0, 0, .12); font-weight: 500; }

.atlas__legend { position: absolute; right: 0; bottom: 6px; display: flex; gap: 18px; font: 500 10px/1 var(--en); letter-spacing: .14em; color: var(--muted); pointer-events: none; }
.atlas__legend span { display: inline-flex; align-items: center; gap: 6px; }
.atlas__legend .ramp { width: 46px; height: 6px; border-radius: 3px; }
.atlas__legend .ramp--s { background: linear-gradient(90deg, #EBD3D6, #EBA3B5, #DD7391, #C94B6E); }
.atlas__legend .ramp--l { background: linear-gradient(90deg, #E2D7A8, #D9A63E, #DB5A26, #A53A1E); }
.atlas__legend .ramp--w { background: linear-gradient(90deg, #D5DEE5, #93B2CC, #4F7FA8); }

/* 時間軸 */
.atlas__timeline { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding-top: 18px; margin-top: 10px; border-top: 1px solid var(--faint); user-select: none; }
.atlas__play { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(30, 36, 32, .35); background: none; color: var(--paper); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.atlas__play:hover { border-color: var(--paper); }
.atlas__play svg { width: 14px; height: 14px; fill: currentColor; }
.atlas__track { position: relative; height: 64px; cursor: ew-resize; outline: none; touch-action: none; }
.atlas__track canvas { position: absolute; left: 0; top: 0; width: 100%; height: 40px; }
.atlas__months { position: absolute; left: 0; right: 0; top: 44px; height: 20px; }
.atlas__months span { position: absolute; top: 0; font: 500 10px/1 var(--en); letter-spacing: .16em; color: var(--muted); padding-left: 5px; border-left: 1px solid var(--faint); height: 14px; display: flex; align-items: flex-end; }
.atlas__thumb { position: absolute; top: -6px; bottom: 0; width: 0; pointer-events: none; }
.atlas__thumb::before { content: ""; position: absolute; left: -.5px; top: 0; bottom: 18px; width: 1px; background: var(--paper); }
.atlas__thumb::after { content: ""; position: absolute; left: -6px; bottom: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px rgba(246, 243, 236, .95); }
.atlas__track:focus-visible .atlas__thumb::after { box-shadow: 0 0 0 4px rgba(246, 243, 236, .95), 0 0 0 6px var(--paper); }
.atlas__jumps { display: flex; gap: 2px 16px; flex-wrap: wrap; justify-content: flex-end; max-width: 260px; }
.atlas__jumps button { appearance: none; border: 0; background: none; color: var(--muted); font: 500 11px/1 var(--en); letter-spacing: .14em; padding: 6px 0; cursor: pointer; }
.atlas__jumps button:hover { color: var(--paper); }

@media (max-width: 900px) {
  .atlas { display: flex; flex-direction: column; height: auto; min-height: 0; overflow: visible; padding: 104px var(--gutter) 0; }
  .atlas__intro { display: contents; }
  .atlas__head { order: 1; }
  .atlas__map { order: 2; }
  .atlas__timeline { order: 3; }
  .atlas__panel { order: 4; margin-top: 22px; }
  .atlas__note { order: 5; padding-bottom: 28px; }
  .atlas__title { font-size: 34px; }
  .atlas__date { margin-top: 24px; padding-top: 16px; }
  .atlas__day { font-size: 64px; }
  .atlas__now { min-height: 0; }
  .atlas__map { min-height: 0; aspect-ratio: 1000 / 1306; margin: 16px calc(var(--gutter) * -0.5) 0; }
  .atlas__legend { display: none; }
  .atlas__layer { font-size: 10px; padding: 6px 0; letter-spacing: .12em; }
  .atlas__layers { top: 14px; }
  .atlas__city { font-size: 9.5px; letter-spacing: .12em; }
  .atlas__city[href="/destinations/hakone/"] { display: none; }
  .atlas__timeline { position: sticky; bottom: 0; z-index: 10; background: rgba(246, 243, 236, .97); grid-template-columns: auto minmax(0, 1fr); margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter) 10px; gap: 12px; }
  .atlas__jumps { grid-column: 1 / -1; justify-content: space-between; max-width: none; }
  .atlas__track { height: 56px; }
  .atlas__track canvas { height: 34px; }
  .atlas__months { top: 38px; }
  .atlas__months span { font-size: 9px; letter-spacing: .08em; padding-left: 3px; }
  .atlas__panel { overflow: visible; }
  .atlas__tip { width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas__fest.is-on::after { animation: none; }
}
