/* Post detail page (/post/?id=…), Figma "note" PC 57:21433 / SP 57:20982.
   Top bar, menu, footer, fonts and tokens come from top.css. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Hero ---------- */
.note-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 72px 16px 56px; background: var(--grid), var(--blue); color: #fff; }
.note-hero-tagline { display: flex; flex-direction: column; align-items: center; margin: 0; font-size: clamp(15px, 1.4vw, 20px); font-weight: 800; line-height: 1.7; letter-spacing: .04em; text-align: center; animation: rise .9s var(--ease-out) both; }
.note-hero-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: rise .9s var(--ease-out) .15s both; }
.note-hero-logo { width: 80px; height: 80px; border-radius: 50%; background: #fff; object-fit: cover; }
.note-hero-ko { font: 400 50px/1 "Suno Dokdo", sans-serif; }
.note-hero-ja { font: 700 32px/1.2 "Suno Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .08em; }
.note-hero-emoji { position: absolute; inset: 0; pointer-events: none; }
.note-hero-emoji span { position: absolute; font-size: clamp(26px, 2.8vw, 40px); line-height: 1; animation: bob 4.5s ease-in-out infinite; filter: drop-shadow(0 3px 2px #0002); }
.note-hero-emoji span:nth-child(1) { left: 8%; top: 20%; }
.note-hero-emoji span:nth-child(2) { left: 29%; top: 10%; animation-delay: -1.2s; }
.note-hero-emoji span:nth-child(3) { left: 20%; top: 48%; animation-delay: -2.1s; }
.note-hero-emoji span:nth-child(4) { left: 32%; top: 75%; animation-delay: -.6s; }
.note-hero-emoji span:nth-child(5) { left: 5%; top: 80%; animation-delay: -1.7s; }
.note-hero-emoji span:nth-child(6) { left: 69%; top: 11%; animation-delay: -2.6s; }
.note-hero-emoji span:nth-child(7) { left: 68%; top: 71%; animation-delay: -.9s; }
.note-hero-emoji span:nth-child(8) { left: 80%; top: 45%; animation-delay: -1.4s; }
.note-hero-emoji span:nth-child(9) { left: 91%; top: 27%; animation-delay: -2.3s; }
.note-hero-emoji span:nth-child(10) { left: 90%; top: 73%; animation-delay: -.3s; }

/* ---------- Heading ---------- */
.note { width: min(100% - 32px, 1280px); margin: 0 auto; padding: 72px 0 120px; }
.note-breadcrumb { font-size: 16px; line-height: 2; }
.note-breadcrumb a:hover { color: var(--blue); }
.note-title { margin: 32px 0 16px; color: var(--blue); font-size: clamp(32px, 3.4vw, 48.83px); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.note-date { margin: 0; font-size: 16px; line-height: 2; }

.note-layout { display: grid; grid-template-columns: 383px minmax(0, 855px); gap: 42px; align-items: start; margin-top: 24px; }
.note-layout:not(:has(.note-photo)) { grid-template-columns: minmax(0, 855px); }

/* ---------- Photos ---------- */
.note-photo { position: sticky; top: 72px; overflow: hidden; border: 4px solid var(--blue); border-radius: 10px; }
.note-photo-track { display: flex; align-items: flex-start; transition: height .25s; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.note-photo-track::-webkit-scrollbar { display: none; }
.note-photo-slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; background: var(--blue-soft); }
/* Each post keeps its own Instagram ratio (1:1, 4:5, 9:16 …); nothing is cropped. */
.note-photo-slide img, .note-photo-slide video { display: block; width: 100%; height: auto; max-height: calc(100vh - 120px); object-fit: contain; }
.note-cover { position: relative; display: block; }
.note-cover-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 30px; background: #000b; color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s, scale .3s var(--ease-spring); }
.note-cover:hover .note-cover-play, .note-cover:focus-visible .note-cover-play { background: var(--blue); scale: 1.05; }
.note-photo-bar { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 8px; border-top: 2px solid var(--blue); background: #fff; }
.note-photo-step { display: grid; place-items: center; width: 36px; height: 36px; padding: 0 0 3px; border: 2px solid var(--blue); border-radius: 50%; background: #fff; color: var(--blue); font-size: 24px; line-height: 1; cursor: pointer; }
.note-photo-step:hover:not(:disabled) { background: var(--blue); color: #fff; }
.note-photo-step:disabled { opacity: .3; cursor: default; }
.note-photo-count { min-width: 4.5em; margin: 0; color: var(--blue); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Section label (oval with grid lines) ---------- */
.note-label { display: grid; place-items: center; width: 149px; height: 45px; margin: 0; overflow: hidden; background: url("/brand/label-oval.svg") -6px -17px / 161.295px 79.407px no-repeat; font-size: 20px; font-weight: 500; letter-spacing: 3px; line-height: 1; white-space: nowrap; }

/* ---------- Post ---------- */
.note-post-head { display: flex; justify-content: space-between; align-items: center; }
.note-post-links { display: flex; align-items: center; gap: 20px; }
.note-map { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--blue); border-radius: 50%; background: #fff; transition: background .2s; }
.note-map svg { width: 20px; height: 20px; }
.note-map:hover { background: #eef5fc; }
.note-ig { display: flex; align-items: flex-end; gap: 1px; font-size: 12.8px; font-weight: 600; }
.note-ig .ig-icon { width: 24px; height: 24px; }
.note-body { margin-top: 40px; padding: 53px 58px; border: 1px solid var(--blue); border-radius: 50px; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.note-body p { margin: 0; }
.note-body .note-lead { margin-bottom: 1em; font-size: 20px; font-weight: 600; }

/* ---------- Pager ---------- */
.note-pager { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 56px; }
.note-step, .note-button { display: grid; place-items: center; height: 32px; border: 1px solid var(--blue); color: var(--blue); font-size: 12.8px; font-weight: 600; transition: background .2s, color .2s; }
.note-step { width: 32px; }
.note-button { width: 128px; }
.note-step:hover, .note-button:hover { background: var(--blue); color: #fff; }

/* ---------- Shop table + tags ---------- */
.note-section { margin-top: 80px; }
.note-shop { margin: 24px 0 0; font-size: 16px; line-height: 2; }
.note-shop div { display: grid; grid-template-columns: 192px 1fr; padding: 4px 0 4px 24px; border-bottom: 1px solid #dedede; }
.note-shop div:last-child { border-bottom: 0; }
.note-shop dd { margin: 0; overflow-wrap: anywhere; }
.note-shop a:hover { color: var(--blue); }
.note-gmap { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; padding: 2px 10px 2px 6px; border: 1px solid var(--blue); border-radius: 30px; color: var(--blue); font-size: 13px; font-weight: 700; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.note-gmap svg { width: 16px; height: 16px; }
.note-shop .note-gmap:hover { background: #eef5fc; }
.note-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0 0 0 18px; list-style: none; }
.note-tags a { display: block; padding: 5px 4px; border: 1px solid var(--blue); border-radius: 30px; color: var(--blue); font-size: 12.8px; font-weight: 500; line-height: 1; transition: background .2s, color .2s; }
.note-tags a:hover { background: var(--blue); color: #fff; }

/* ---------- Shop page: ABOUT + related posts ---------- */
.note-about p { white-space: pre-line; }
.note-related { padding: 70px 0 96px; border-top: 1px solid var(--blue); }
.note-related-head { display: flex; align-items: center; gap: 16px; width: min(100% - 32px, 1280px); margin: 0 auto; }
.note-related-count { margin: 0; color: var(--muted); font-size: 14px; }
.note-related-track { display: grid; grid-auto-flow: column; grid-auto-columns: 323px; gap: 32px; margin-top: 28px; padding: 8px max(16px, calc((100% - 1280px) / 2)) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100% - 1280px) / 2)); scrollbar-width: none; }
.note-related-track::-webkit-scrollbar { display: none; }
.note-related-track .post-cell { padding: 0; border: 0; scroll-snap-align: start; }
.note-related-track .post-card { min-height: 586px; }
.card-date { margin: -4px 16px 8px; color: var(--muted); font-size: 12.8px; }
.note-related-nav { display: flex; justify-content: flex-end; gap: 8px; width: min(100% - 32px, 1280px); margin: 16px auto 0; }
.note-related-nav .note-step { background: #fff; cursor: pointer; }
.note-related-nav .note-step:hover { background: var(--blue); color: #fff; }
.note-related-nav .note-step:disabled { opacity: .35; cursor: default; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .note-hero-tagline, .note-hero-brand, .note-hero-emoji span { animation: none; }
}

@media (max-width: 1100px) {
  .note-layout { grid-template-columns: minmax(0, 1fr); }
  .note-photo { position: static; width: min(100%, 448px); }
}

@media (max-width: 760px) {
  .note-hero { padding: 64px 16px 40px; }
  .note-hero-ko { font-size: 40px; }
  .note-hero-ja { font-size: 26px; }
  .note-hero { padding-top: 72px; }
  .note-hero-emoji span { font-size: 24px; }
  .note-hero-emoji span:nth-child(n + 6) { display: none; }
  /* Keep the emoji in the corners so none sits on the tagline or the logo text. */
  .note-hero-emoji span:nth-child(1) { left: 4%; top: 6%; }
  .note-hero-emoji span:nth-child(2) { left: 6%; top: 52%; }
  .note-hero-emoji span:nth-child(3) { left: 84%; top: 46%; }
  .note-hero-emoji span:nth-child(4) { left: 5%; top: 86%; }
  .note-hero-emoji span:nth-child(5) { left: 86%; top: 84%; }
  .note { padding: 40px 0 80px; }
  .note-breadcrumb { font-size: 14px; }
  .note-title { margin-top: 24px; font-size: 32px; }
  .note-photo { width: 100%; }
  .note-body { margin-top: 24px; padding: 32px 20px; border-radius: 30px; }
  .note-pager { flex-wrap: nowrap; }
  .note-step { flex: none; }
  .note-button { flex: 1 1 0; width: auto; min-width: 0; }
  .note-section { margin-top: 56px; }
  .note-shop div { grid-template-columns: 88px 1fr; padding-left: 8px; }
  .note-related { padding: 48px 0 64px; }
  .note-related-track { grid-auto-columns: min(78vw, 300px); gap: 16px; margin-top: 24px; }
  /* top.css turns cards into rows on phones; related posts keep the tall card of the design. */
  .note-related-track .post-cell { border: 0 !important; }
  .note-related-track .post-card { display: flex; flex-direction: column; min-height: 0; }
  .note-related-track .card-photo { grid-row: auto; margin: 5px; aspect-ratio: 307 / 385; }
  .note-related-track .card-title { margin: 12px 14px 8px; font-size: 18px; -webkit-line-clamp: 3; }
  .note-related-track .card-tags { grid-column: auto; margin: auto 8px 10px; }
  .note-related-nav { justify-content: center; }
}
.note-gmap-embed { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 16px; border: 2px solid var(--blue, #3eb2fb); border-radius: 12px; background: #f1f3f4; }
