:root {
  --ink: #2b2620;
  --muted: #7a7264;
  --line: #e7dfd2;
  --paper: #fdf9f0;
  --accent: #b4552d;
  --music: #c23b37;
  --travel: #1f7a8c;
  --museum: #7c5cbf;
  --ent: #a56200;
  --sport: #2266cc;
  --life: #2f7d5a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#2b262012 1px, transparent 1.2px);
  background-size: 22px 22px;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.8;
  font-size: 16px;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
.site-header {
  background: #fffdf8;
  border-bottom: 3px solid var(--ink);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.logo { font-weight: 900; font-size: 19px; color: var(--ink); letter-spacing: .02em; }
.logo::before { content: "●●●"; letter-spacing: 2px; margin-right: 8px; font-size: 11px; color: transparent; background: linear-gradient(90deg, var(--music) 0 33%, var(--travel) 33% 66%, var(--ent) 66% 100%); -webkit-background-clip: text; background-clip: text; }
.logo:hover { text-decoration: none; }
.nav a { color: var(--ink); margin-left: 18px; font-size: 14px; font-weight: 700; }
.nav a:hover { color: var(--accent); }

/* hero */
.hero { padding: 64px 0 44px; }
.hero h1 {
  font-size: 42px; line-height: 1.35; margin: 0 0 18px;
  font-weight: 900; letter-spacing: .01em;
}
.hero h1 .h-music { color: var(--music); }
.hero h1 .h-travel { color: var(--travel); }
.hero h1 .h-think { color: var(--life); }
.hero .lead { color: #4c463c; margin: 0; font-size: 17px; }

/* hobby stickers */
.stickers { margin: 22px 0 0; }
.sticker {
  display: inline-block; padding: 3px 13px; margin: 0 6px 9px 0;
  border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700;
  transform: rotate(var(--r, 0deg));
  box-shadow: 0 2px 5px #2b262022;
}
.sticker.c1 { background: var(--music); }
.sticker.c2 { background: var(--travel); }
.sticker.c3 { background: var(--museum); }
.sticker.c4 { background: var(--ent); }
.sticker.c5 { background: var(--sport); }
.sticker.c6 { background: var(--life); }

/* sections */
.section { padding: 40px 0; }
.section.alt { background: #fffdf8cc; }
.section-title {
  font-size: 24px; margin: 0 0 20px; font-weight: 900;
  display: inline-block; padding: 0 6px;
  box-shadow: inset 0 -16px 0 #ffd66b;
}
.theme-music .section-title { box-shadow: inset 0 -13px 0 #ffb3ab; }
.theme-travel .section-title { box-shadow: inset 0 -13px 0 #a8d8e0; }
.theme-museum .section-title { box-shadow: inset 0 -13px 0 #d3c2f5; }
.theme-think .section-title { box-shadow: inset 0 -13px 0 #a9dfc5; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--cat, var(--ent));
  border-radius: 12px; padding: 18px 20px;
  box-shadow: 0 3px 10px #2b26200d;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: 0 8px 18px #2b26201a; }
.card.cat-music, .theme-music .card { --cat: var(--music); }
.card.cat-travel, .theme-travel .card { --cat: var(--travel); }
.card.cat-museum, .theme-museum .card { --cat: var(--museum); }
.card.cat-ent, .theme-ent .card { --cat: var(--ent); }
.card.cat-sport, .theme-sport .card { --cat: var(--sport); }
.card.cat-life, .theme-think .card, .theme-life .card { --cat: var(--life); }
.card h3 { margin: 4px 0 8px; font-size: 17px; line-height: 1.55; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; font-size: 14px; color: #4c463c; }
.card-meta { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: .08em; margin: 0 0 2px; }

.note-text { color: var(--muted); font-size: 13px; margin-top: 28px; }

/* article page */
.post { padding-top: 44px; padding-bottom: 56px; }
.post h1 { font-size: 30px; line-height: 1.5; margin: 0 0 6px; font-weight: 900; }
.post .card-meta { margin-bottom: 10px; }
.post-date { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.post p { margin: 0 0 1.15em; }
.post h2 { font-size: 21px; margin: 1.8em 0 .7em; padding-left: 10px; border-left: 5px solid var(--ent); line-height: 1.5; }
.post strong { font-weight: 700; }
.post blockquote {
  margin: 1.4em 0; padding: 6px 18px;
  border-left: 4px solid var(--travel); background: #ffffffa6; color: #4c463c;
}
.post img.eyecatch { width: 100%; border-radius: 10px; margin: 6px 0 26px; display: block; }
.post img { max-width: 100%; border-radius: 8px; }
.post .origin { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* links */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 10px 2px; border-bottom: 1px dashed var(--line); font-weight: 700; }

/* article index list */
.year-heading { font-size: 16px; margin: 30px 0 8px; color: var(--ink); }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  display: flex; gap: 12px; align-items: center;
  padding: 9px 2px; border-bottom: 1px solid var(--line);
}
.post-list-date { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.post-list a { color: var(--ink); font-weight: 600; }
.post-list a:hover { color: var(--accent); }

/* category chips */
.chip {
  font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap;
  padding: 2px 9px; border-radius: 999px; letter-spacing: .03em;
}
.chip-music { background: var(--music); }
.chip-travel { background: var(--travel); }
.chip-museum { background: var(--museum); }
.chip-ent { background: var(--ent); }
.chip-sport { background: var(--sport); }
.chip-life { background: var(--life); }

/* timeline (about page) */
.timeline { list-style: none; padding: 0; margin: 0 0 22px; }
.timeline li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 9px 2px; border-bottom: 1px solid var(--line);
}
.timeline-date { color: var(--muted); font-size: 13px; white-space: nowrap; min-width: 92px; font-variant-numeric: tabular-nums; }

/* footer */
.site-footer { border-top: 3px solid var(--ink); background: #fffdf8; padding: 22px 0; margin-top: 20px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 600px) {
  .hero { padding: 44px 0 32px; }
  .hero h1 { font-size: 32px; }
  .post h1 { font-size: 25px; }
  .post-list li { flex-wrap: wrap; gap: 4px 10px; }
}

/* === messy layer: more scatter === */
.hero { position: relative; }

.sticker.big { font-size: 16px; padding: 6px 17px; }
.sticker.small { font-size: 11px; padding: 2px 9px; }

/* washi tape + tilt on cards */
.card { position: relative; }
.card::before {
  content: ""; position: absolute; top: -11px; left: 50%;
  width: 76px; height: 20px; margin-left: -38px;
  background: #ffd66ba8; transform: rotate(-3deg);
  border-left: 2px dashed #ffffff90; border-right: 2px dashed #ffffff90;
  border-radius: 2px;
}
.card.cat-music { background: #fff5f4; }
.card.cat-travel { background: #f2f9fa; }
.card.cat-museum { background: #f7f3ff; }
.card.cat-ent { background: #fffaf0; }
.card.cat-sport { background: #f2f7ff; }
.card.cat-life { background: #f3faf6; }
.theme-music .card { background: #fff5f4; }
.theme-travel .card { background: #f2f9fa; }
.theme-think .card { background: #f3faf6; }
.cards .card:nth-child(3n+1) { transform: rotate(-.7deg); }
.cards .card:nth-child(3n+2) { transform: rotate(.55deg); }
.cards .card:nth-child(3n) { transform: rotate(-.3deg); }
.cards .card:hover { transform: rotate(0deg) translateY(-3px); }
.card h3 { font-weight: 900; letter-spacing: .01em; }

/* section washes + tilted titles */
.theme-music { background: #fff1f0b3; }
.theme-travel { background: #eef7f8b3; }
.theme-think { background: #effaf3b3; }
.section-title { transform: rotate(-1deg); }

/* year labels as colored blocks */
.year-heading {
  display: inline-block; background: var(--ink); color: #fff;
  padding: 3px 14px; border-radius: 6px; transform: rotate(-1deg);
  box-shadow: 0 2px 5px #2b262022;
}
.wrap > h3.year-heading:nth-of-type(6n+1) { background: var(--music); }
.wrap > h3.year-heading:nth-of-type(6n+2) { background: var(--travel); }
.wrap > h3.year-heading:nth-of-type(6n+3) { background: var(--museum); }
.wrap > h3.year-heading:nth-of-type(6n+4) { background: var(--ent); }
.wrap > h3.year-heading:nth-of-type(6n+5) { background: var(--sport); }
.wrap > h3.year-heading:nth-of-type(6n) { background: var(--life); }
.wrap > h3.year-heading:nth-of-type(even) { transform: rotate(1deg); }

/* scattered list rows + chips */
.post-list li:nth-child(odd) { background: #ffffff90; border-radius: 6px; }
.chip { transform: rotate(-1.5deg); }
.post-list li:nth-child(3n) .chip { transform: rotate(1.5deg); }
.post-list li:nth-child(4n) .chip { transform: rotate(-2.5deg); }
.post-list a:hover, .card h3 a:hover { text-decoration: underline wavy var(--accent); text-underline-offset: 3px; }

/* keyword marquee */
.marquee {
  overflow: hidden; background: #fffdf8;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  padding: 9px 0;
}
.marquee-track {
  display: inline-block; white-space: nowrap;
  font-weight: 900; font-size: 17px; letter-spacing: .06em;
  animation: marquee 36s linear infinite;
}
.marquee-track span { margin: 0 16px; }
.marquee-track .m1 { color: var(--music); }
.marquee-track .m2 { color: var(--travel); }
.marquee-track .m3 { color: var(--museum); }
.marquee-track .m4 { color: var(--ent); }
.marquee-track .m5 { color: var(--sport); }
.marquee-track .m6 { color: var(--life); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* === playground additions === */
.btn {
  display: inline-block; border: 3px solid var(--ink); background: #fff;
  color: var(--ink); font-weight: 900; font-size: 15px;
  padding: 8px 20px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink); transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn.small { font-size: 13px; padding: 5px 14px; border-width: 2px; }

/* vinyl record */
.record-row { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.record {
  width: 118px; height: 118px; border-radius: 50%; flex: none;
  background: repeating-radial-gradient(circle, #1c1a17 0 2px, #2a2723 2px 4px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px #2b262033;
  animation: spin 1.8s linear infinite;
}
.record:hover { animation-play-state: paused; }
.record-label {
  width: 46px; height: 46px; border-radius: 50%; background: var(--music);
  color: #fff; font-size: 9px; font-weight: 700; line-height: 1.3;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.record.apple .record-label { background: var(--sport); }
.record-note { font-size: 13px; color: var(--muted); max-width: 420px; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .record { animation: none; } }

/* omikuji */
.omikuji-result {
  margin-top: 20px; background: #fff; border: 2px dashed var(--accent);
  border-radius: 12px; padding: 18px 22px; max-width: 560px;
}
.omikuji-result h3 { margin: 4px 0 0; font-size: 20px; }
.omikuji-result.pop { animation: pop .35s ease; }
@keyframes pop { 0% { transform: scale(.96) rotate(-.5deg); opacity: .4; } 100% { transform: scale(1) rotate(0); opacity: 1; } }

/* map page */
.map-box { position: relative; max-width: 900px; margin: 0 auto; }
.map-box svg { width: 100%; height: auto; display: block; }
.pin { position: absolute; transform: translate(-50%, -100%); text-align: center; z-index: 2; padding: 12px 12px 4px; }
.pin-dot {
  display: block; width: 16px; height: 16px; margin: 0 auto;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--music); border: 2px solid #fff; box-shadow: 0 2px 5px #2b262040;
}
.pin:nth-of-type(3n) .pin-dot { background: var(--travel); }
.pin:nth-of-type(4n) .pin-dot { background: var(--ent); }
.pin:nth-of-type(5n) .pin-dot { background: var(--museum); }
.pin-label {
  display: inline-block; margin-top: 3px; background: #fff; border: 1.5px solid var(--ink);
  border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 700; color: var(--ink);
  white-space: nowrap;
}
.pin:hover .pin-label { background: #ffd66b; }

/* stamp rally */
.stamp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; margin: 14px 0 8px; }
.stamp {
  aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; border: 2px solid var(--line); color: var(--muted); background: #fff;
}
.stamp.done { border-color: #c33; color: #c33; background: #fff3f0; transform: rotate(-6deg); }
.stamp.partial { border-color: #d99100; color: #a86e00; background: repeating-linear-gradient(45deg, #fff8e8 0 5px, #ffedb8 5px 10px); }
.stamp-stage { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; margin-top: 22px; }
.stamp-badge {
  font-weight: 900; border: 3px double #c33; color: #c33; border-radius: 8px;
  padding: 2px 12px; transform: rotate(-3deg); background: #fff3f0;
}
.stamp-badge.todo { border-color: var(--muted); color: var(--muted); background: #fff; }
.stamp-badge.doing { border-color: #d99100; color: #a86e00; background: #fff8e8; }

/* playlist archive */
.embed-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.embed-pair .embed-label { font-weight: 900; font-size: 13px; margin: 0 0 6px; }
@media (max-width: 720px) { .embed-pair { grid-template-columns: 1fr; } }
.pl-row { display: flex; gap: 14px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pl-date { color: var(--muted); font-size: 13px; white-space: nowrap; min-width: 86px; font-variant-numeric: tabular-nums; }
.foot-note { text-align: center; color: var(--muted); font-size: 13px; }

/* header tidy-up: no mid-word wraps */
.logo { white-space: nowrap; }
.nav a { white-space: nowrap; }
@media (max-width: 720px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .logo { font-size: 19px; }
  .nav { gap: 6px 16px; }
}

/* search + filter */
.filter-bar { margin: 6px 0 20px; }
#article-search {
  width: 100%; max-width: 420px; padding: 10px 14px; font-size: 15px;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
}
.filter-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fbtn {
  border: 2px solid var(--ink); background: #fff; color: var(--ink);
  font-weight: 700; font-size: 13px; padding: 4px 14px; border-radius: 999px; cursor: pointer;
}
.fbtn.active { background: var(--ink); color: #fff; }
.filter-count { color: var(--muted); font-size: 13px; margin: 10px 0 0; min-height: 1.2em; }
.chip-new { background: var(--accent); color: #fff; }

/* post navigation */
.post-nav { margin-top: 44px; border-top: 2px dashed var(--line); padding-top: 18px; }
.post-nav-row { display: flex; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; font-size: 14px; margin: 0; }
.post-nav-title { font-size: 17px; margin: 24px 0 6px; }
.post-nav-similar { list-style: none; padding: 0; margin: 0; }
.post-nav-similar li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }

/* staff lines in hero */
.hero {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='90'><g stroke='%232b2620' stroke-opacity='0.09' stroke-width='2'><line x1='0' y1='10' x2='140' y2='10'/><line x1='0' y1='22' x2='140' y2='22'/><line x1='0' y1='34' x2='140' y2='34'/><line x1='0' y1='46' x2='140' y2='46'/><line x1='0' y1='58' x2='140' y2='58'/></g></svg>");
  background-size: 140px 90px;
}

/* night mode */
/* visit record table */
.visit-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff8; }
.visit-table th, .visit-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.visit-table th { font-size: 12px; color: var(--muted); }
.visit-table td:first-child { font-weight: 700; white-space: nowrap; }
.visit-table td:nth-child(2) { white-space: nowrap; }
/* omikuji fortune */
.omikuji-rank { font-size: 30px; font-weight: 800; color: var(--accent); margin: 0 0 2px; }
.omikuji-luck { font-size: 14px; letter-spacing: 1px; margin: 6px 0 0; }

/* time machine */
#tm-list { list-style: none; padding: 0; margin: 0; }
#tm-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* retro visitor counter */
.visitor-line { font-size: 14px; }
.visitor-digits { background: #141210; color: #7ee787; font-family: ui-monospace, monospace; padding: 2px 10px; border-radius: 4px; letter-spacing: 3px; }
#visitor-note { color: var(--accent); font-weight: 700; margin-left: 8px; }

/* Taken FM bar */
.fm-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; gap: 10px; background: #262019; padding: 8px 12px; }
.fm-bar iframe { flex: 1; max-width: 640px; border: 0; border-radius: 8px; }
.fm-label { color: #fdf9f0; font-weight: 800; white-space: nowrap; }
.fm-close { background: none; border: 0; color: #fdf9f0; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px; }
body.has-fm { padding-bottom: 108px; }

/* quiz */
.quiz-q { border-top: 2px dashed var(--line); padding: 18px 0 8px; }
.quiz-q h3 { margin: 0 0 10px; font-size: 17px; }
.quiz-choice { margin: 0 8px 8px 0; }
.quiz-choice.quiz-ok { background: #3d9970 !important; color: #fff !important; border-color: #3d9970; }
.quiz-choice.quiz-ng { background: var(--accent) !important; color: #fff !important; border-color: var(--accent); }

/* stats */
.stat-row { margin: 0 0 22px; }
.stat-head { display: flex; justify-content: space-between; align-items: baseline; }
.stat-label { font-weight: 800; }
.stat-val { font-size: 22px; font-weight: 800; color: var(--accent); }
.stat-bar { height: 12px; background: #00000014; border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.stat-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* full-text search */
.search-hit { border-top: 1px solid var(--line); padding: 14px 0; }
.search-hit h3 { margin: 2px 0 4px; font-size: 17px; }
.search-hit p { margin: 0; font-size: 14px; }
.search-hit mark { background: #ffe58a; padding: 0 1px; }

/* confetti + secret */
.confetti { position: fixed; top: -16px; width: 10px; height: 14px; z-index: 9998; pointer-events: none; animation: confetti-fall 3s ease-in forwards; }
@keyframes confetti-fall { to { transform: translateY(108vh) rotate(720deg); } }
#secret-box { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 9999; background: #fdf9f0; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 22px 26px; text-align: center; box-shadow: 0 12px 40px #0006; max-width: 86vw; }
/* article rows: title always on its own line */
.post-list li { flex-wrap: wrap; }
.post-list li a { flex-basis: 100%; margin-top: 3px; }
#tm-list li a { display: block; margin-top: 3px; }

/* tournament */
.vs-row { display: flex; align-items: stretch; gap: 12px; margin: 14px 0; }
.vs-btn { flex: 1; border: 3px solid var(--ink); background: #fff; color: var(--ink); border-radius: 14px; padding: 22px 12px; font-size: 18px; font-weight: 800; cursor: pointer; }
.vs-btn:hover { background: #ffe58a; }
.vs-mark { align-self: center; font-weight: 800; color: var(--accent); }
/* quotes */
.quote-card .quote-text { font-size: 18px; font-weight: 700; line-height: 1.6; margin: 0 0 8px; }

/* stamps rally */
.site-stamp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.stamp-slot { border: 2px dashed var(--line); border-radius: 12px; padding: 12px 8px; text-align: center; }
.stamp-slot.got { border-style: solid; border-color: var(--accent); }
.stamp-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: 17px; }
.stamp-slot.got .stamp-mark { border-color: var(--accent); color: #fff; background: var(--accent); transform: rotate(-8deg); }
.stamp-name { display: block; font-weight: 700; font-size: 13px; margin-top: 6px; }
.stamp-date { display: block; color: var(--muted); font-size: 11px; }

/* final battle banner */
.kessen { display: flex; gap: 18px; align-items: center; border: 3px solid var(--accent); border-radius: 14px; padding: 16px 22px; background: #fff; color: var(--ink); }
.kessen:hover { text-decoration: none; background: #fff7ee; }
.kessen-stamp { border: 3px solid var(--accent); color: var(--accent); border-radius: 50%; width: 86px; height: 86px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; transform: rotate(-8deg); flex: none; text-align: center; }
.kessen-text { font-size: 17px; }
/* playground */
.play-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.play-item { border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; background: #fff; color: var(--ink); display: block; }
.play-item:hover { text-decoration: none; background: #fff7ee; }
.play-item strong { display: block; font-size: 16px; margin-bottom: 4px; }
.play-item span { font-size: 13px; color: var(--muted); }
/* mobile polish */
@media (max-width: 720px) {
  .nav { gap: 6px 14px; }
  .nav a { font-size: 15px; }
  .fm-label { display: none; }
  .fm-bar { padding: 6px 8px; }
  body.has-fm { padding-bottom: 96px; }
  .kessen { padding: 14px 16px; gap: 12px; }
  .kessen-stamp { width: 68px; height: 68px; font-size: 14px; }
  .kessen-text { font-size: 15px; }
  .vs-btn { font-size: 15px; padding: 16px 8px; }
  .visit-table { display: block; overflow-x: auto; white-space: nowrap; }
  .svg-scroll { overflow-x: auto; }
  .svg-scroll svg { min-width: 700px; }
}


/* site theme line */
.theme-line { margin: 16px 0 4px; font-size: clamp(21px, 4.2vw, 29px); font-weight: 800; line-height: 1.5; }
.theme-line .theme-text { background: linear-gradient(transparent 64%, #ffe08a 64%); padding: 0 4px; }
.theme-label { display: inline-block; background: #d64541; color: #fff; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; vertical-align: middle; margin-right: 10px; transform: rotate(-2deg); }

/* books page */
.book-year { margin-top: 34px; }
.book-list { list-style: none; margin: 0; padding: 0; }
.book-list li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; background: #fff; border: 1px solid #eee2cc; border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; }
.book-date { color: #8a7a5f; font-size: 13px; white-space: nowrap; }
.book-title { font-weight: 700; }
.book-author { color: #6b5d43; font-size: 14px; }
.book-stars { color: #b96e00; letter-spacing: 1px; white-space: nowrap; margin-left: auto; }

/* books interactive */
.book-controls { background: #fff; border: 1px solid #eee2cc; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.book-controls .ctl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.book-controls .ctl-row:last-child { margin-bottom: 0; }
.book-controls input[type="search"] { flex: 1 1 200px; padding: 8px 10px; border: 1px solid #d9c9a3; border-radius: 8px; font-size: 15px; background: #fffdf6; }
.book-controls select { padding: 8px; border: 1px solid #d9c9a3; border-radius: 8px; font-size: 14px; background: #fffdf6; }
.fchip { border: 1px solid #d9c9a3; background: #fffdf6; color: #6b5d43; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.fchip.active { background: #a56200; border-color: #a56200; color: #fff; font-weight: 700; }
.genre-tag { background: #f3e9d2; color: #8a6d1f; border-radius: 999px; padding: 1px 9px; font-size: 12px; white-space: nowrap; }
#book-count { font-weight: 700; color: #6b5d43; }
#random-card { display: none; background: #fff8e1; border: 1px dashed #e08a00; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
#random-btn { border: 1px solid #e08a00; background: #fff; color: #b96e00; border-radius: 8px; padding: 8px 12px; font-size: 14px; cursor: pointer; font-weight: 700; }

/* movies page */
.film-score { color: #e08a00; font-weight: 700; white-space: nowrap; margin-left: auto; }
.view-chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px; }
.view-chip { background: #f3ead2; border-radius: 999px; padding: 1px 8px; font-size: 12px; color: #6b5d43; }
details.rev { flex-basis: 100%; }
details.rev summary { cursor: pointer; color: #8a7a5f; font-size: 13px; }
details.rev p { white-space: pre-wrap; margin: 6px 0 2px; font-size: 14px; line-height: 1.7; }
.show-note { flex-basis: 100%; color: #6b5d43; font-size: 14px; }

/* Hobby record archive (top page) */
.hobby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.hobby-card { border: 2px solid var(--ink); border-radius: 14px; padding: 16px 18px; background: #fff; }
.hobby-card h3 { font-size: 18px; margin: 0 0 6px; }
.hobby-card p { font-size: 14px; margin: 0 0 8px; }
.hobby-num { display: block; font-size: 22px; font-weight: 700; margin: 4px 0 10px; }
.hobby-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hobby-links a { border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; background: #fff7ee; color: var(--ink); }
.hobby-links a:hover { text-decoration: none; background: #ffe9d2; }

/* hobby jump bar (top page) + footer hobby nav (all pages, injected by site.js) */
.foot-hobby { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.foot-hobby a { border: 1.5px solid var(--line); border-radius: 999px; padding: 3px 11px; background: #fff; color: var(--ink); }
.foot-hobby a:hover { text-decoration: none; background: #fff7ee; }.logo { font-size: 22px; }
.mast-tag { display: block; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .08em; margin-top: 1px; }.nav a:hover { background: #fff7ee; text-decoration: none; }
/* hero stats chips + open badge */
.hero { position: relative; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.hero-stats a { border: 2px solid var(--ink); border-radius: 999px; padding: 5px 13px; font-size: 13.5px; font-weight: 700; background: #fff; color: var(--ink); transform: rotate(var(--r, 0deg)); display: inline-block; }
.hero-stats a:hover { text-decoration: none; background: #fff7ee; }
.hero-stats b { color: var(--accent); }:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.nav a { padding: 6px 10px; }
.foot-hobby a { padding: 6px 12px; }
.fchip { padding: 8px 14px; }
.hobby-links a { padding: 6px 13px; }
.svg-scroll a:hover rect { stroke: var(--accent); stroke-width: 2.5; }
.svg-scroll a:hover text { fill: var(--accent); }

/* posts */
.narrow { max-width: 780px; }
.post img { height: auto; }

/* daily headline + recommended stamp */
.mast-headline { font-weight: 700; color: var(--accent); }
.hobby-card { position: relative; }
.daily-rec { position: absolute; top: 10px; right: 10px; font-size: 12px; }

/* relations: list view on small screens */
.rel-list { display: none; }
.rel-hub { margin-bottom: 18px; }
.rel-hub-name { display: inline-block; color: #fff; font-weight: 800; border-radius: 999px; padding: 8px 22px; font-size: 16px; margin-bottom: 8px; }
.rel-hub-name:hover { text-decoration: none; opacity: .88; }
.rel-kids { display: flex; flex-wrap: wrap; gap: 8px; }
.rel-kids a { border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.rel-kids a:hover { text-decoration: none; background: #fff7ee; }@media (max-width: 720px) {
  .svg-scroll { display: none; }
  .rel-list { display: block; }
}

/* click-to-load embeds (playlist) */
.embed-facade { display: block; width: 100%; border: 2px dashed var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; padding: 26px 16px; cursor: pointer; text-align: center; }
.embed-facade span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 6px; }
.embed-facade:hover { background: #fff7ee; border-color: var(--accent); }@media (max-width: 720px) { .site-header .logo { font-size: 19px; } }

/* flight record (map) */
.flight-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.flight-card { border: 2px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px 12px; text-align: center; }
.flight-num { display: block; font-size: 24px; font-weight: 800; }
.flight-cap { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }.flight-intl { font-size: 15px; line-height: 1.9; }
.flight-year { border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 8px; }.flight-year summary { cursor: pointer; font-weight: 700; padding: 10px 14px; }
.flight-list { list-style: none; margin: 0; padding: 0 14px 10px; }
.flight-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; padding: 6px 2px; border-top: 1px dashed var(--line); font-size: 13.5px; }
.fl-date { color: var(--muted); min-width: 44px; }
.fl-no { font-weight: 700; min-width: 64px; }
.fl-route { flex: 1; min-width: 140px; }
.fl-miles { color: var(--muted); }
.cls-badge { font-size: 11px; font-weight: 700; border: 1.5px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 1px 8px; }
.cls-badge.award { border-color: var(--line); color: var(--muted); }

.sub-title { font-size: 18px; margin: 26px 0 10px; }

/* map table of contents + flight callout */
.toc-nav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 4px; }
.toc-nav a { border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 700; }
.toc-nav a:hover { text-decoration: none; background: #fff7ee; border-color: var(--accent); }.flight-hero { border: 2.5px solid var(--accent); border-radius: var(--radius); background: #fff; padding: 18px 18px 14px; margin: 6px 0 14px; text-align: center; }.flight-hero-big { font-size: clamp(21px, 4.5vw, 30px); font-weight: 800; margin: 0 0 6px; }
.flight-hero-sub { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* bigger japan map on phones: scrollable zoom */
.map-hint { display: none; }
@media (max-width: 720px) {
  .map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .map-scroll .map-box { min-width: 620px; }
  .map-hint { display: block; font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
}

/* back-to-top + bookmarks */
#to-top { position: fixed; right: 16px; bottom: 20px; z-index: 60; border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 16px; font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(60, 45, 20, .18); opacity: 0; pointer-events: none; transition: opacity .25s; }
#to-top.show { opacity: 1; pointer-events: auto; }
body.has-fm #to-top { bottom: 108px; }.bookmark-btn { margin: 18px 0 4px; }
.bookmark-btn.on { background: #ffd66b; }

/* share row, font zoom, sitemap */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; }
.share-label { font-size: 13px; color: var(--muted); font-weight: 700; }
.share-row .fbtn { text-decoration: none; }
html[data-font="large"] body { zoom: 1.15; }
.foot-sitemap { margin-top: 8px; }
.foot-sitemap a { font-weight: 700; }
.sitemap-group { margin-bottom: 26px; }
.sitemap-group h2 { font-size: 19px; margin-bottom: 8px; }
.sitemap-list { list-style: none; margin: 0; padding: 0; }
.sitemap-list li { padding: 8px 2px; border-top: 1px dashed var(--line); font-size: 14.5px; }
.sitemap-list a { font-weight: 700; margin-right: 8px; }
.sitemap-list .sm-desc { color: var(--muted); font-size: 13px; }

/* guard: long unbroken URLs must not overflow small screens */
body { overflow-wrap: break-word; }

/* article reading aids */
.toc { border: 1.5px dashed var(--accent); background: var(--paper2); border-radius: 10px; padding: 12px 16px; margin: 0 0 26px; }
.toc-title { font-weight: 900; margin: 0 0 6px; font-size: 14px; }
.toc ul { margin: 0; padding-left: 18px; }
.toc li { margin: 4px 0; font-size: 14.5px; }
.post h2 { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }
#read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 300; }
img.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgb(10 10 14 / .9); z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 8px; }
.lb-close { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 22px; font-weight: 900; cursor: pointer; }
.lb-cap { color: #eee; font-size: 13px; margin: 0; text-align: center; }

/* compact mobile header: keep items in wrapped rows instead of a tall stack */
@media (max-width: 720px) {
  .header-inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-top: 8px; padding-bottom: 8px; }
  .header-inner .nav { margin-left: auto; }
  .post { padding-top: 24px; }
}

/* genre hub link on posts */
.hub-link { border: 1.5px dashed var(--accent); background: var(--paper2); border-radius: 10px; padding: 10px 14px; font-size: 14.5px; margin: 26px 0 6px; }
.hub-link a { font-weight: 700; }

/* header setting buttons, grouped */
.header-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* daily headline as its own header line (mast-meta row removed) */
.mast-headline { flex-basis: 100%; font-size: 14px; }

/* personal one-liner sticky note */
.hitokoto { display: inline-block; background: #ffe98a; color: #4a3f10; font-weight: 700; padding: 8px 16px; border-radius: 4px; transform: rotate(-1deg); box-shadow: 0 2px 6px rgb(0 0 0 / .12); margin: 14px 0 4px; font-size: 15px; }
/* washi tape on hobby cards + kessen pulse (noise selections) */
.hobby-card::before { content: ""; position: absolute; top: -12px; left: 50%; width: 96px; height: 24px; margin-left: -48px; background: rgb(255 205 60 / .55); border-left: 2px dashed rgb(0 0 0 / .08); border-right: 2px dashed rgb(0 0 0 / .08); transform: rotate(-3deg); border-radius: 2px; z-index: 1; }
.kessen { animation: kessen-pulse 2.4s ease-in-out infinite; }
@keyframes kessen-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgb(200 60 40 / 0); } 50% { box-shadow: 0 0 0 5px rgb(200 60 40 / .18); } }
@media (prefers-reduced-motion: reduce) { .kessen { animation: none; } }

/* profile avatar + updates */
.avatar-img { width: 104px; height: 104px; border-radius: 50%; border: 3px solid var(--ink); float: left; margin: 2px 16px 10px 0; }
.has-avatar { display: flow-root; }

/* desktop header fix + polish */
.fbtn { white-space: nowrap; }
.header-tools { flex: none; margin-left: auto; }
html, body { overflow-x: clip; }
@media (min-width: 721px) {
  .header-inner { flex-wrap: wrap; row-gap: 6px; }
  .nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; flex: 1 1 auto; }
}
@media (min-width: 1100px) {
  .wrap { max-width: 980px; }
}
