:root {
  --ink: #17131f;
  --muted: #6e6878;
  --paper: #fffdf8;
  --line: #e9e1d6;
  --pink: #ff4f91;
  --cyan: #1fc7d4;
  --yellow: #ffc83d;
  --green: #49c47b;
  --violet: #7556ff;
  --black: #17131f;
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(23,19,31,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23,19,31,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255,253,248,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 900;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

nav a {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  background: #fff;
}

main { overflow: hidden; }
.hero-band {
  min-height: min(760px, calc(100vh - 62px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .72fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px) 34px;
  border-bottom: 4px solid var(--ink);
  background:
    linear-gradient(135deg, rgba(255,79,145,.14), rgba(31,199,212,.12) 42%, rgba(255,200,61,.16)),
    #fffaf0;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: 0;
  color: #51485a;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 7.8vw, 104px);
  line-height: .96;
  letter-spacing: 0;
  line-break: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
  color: #3e3547;
}

.hero-copy,
.section-title,
.panel,
.word-battle > div {
  min-width: 0;
}

.hero-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.character {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.mobile-only,
.mobile-title { display: none; }
.desktop-title { display: inline; }

.hero-sticker {
  width: min(430px, 78vw);
  border: 4px solid var(--ink);
  box-shadow: 14px 14px 0 var(--cyan), -10px -10px 0 var(--pink);
  transform: rotate(-2deg);
}

.hero-badge {
  position: absolute;
  right: 0;
  bottom: 26px;
  padding: 14px 16px;
  border: 3px solid var(--ink);
  background: var(--yellow);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 8px 8px 0 var(--ink);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: var(--ink);
}

.metric-card {
  min-height: 150px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.22);
}

.metric-card span,
.repo-card span,
.music-stats span,
.git-stats span {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.metric-card p,
.repo-card p,
.music-stats small,
.git-stats small {
  margin: 0;
  color: var(--muted);
}

.accent-cyan { box-shadow: inset 0 7px 0 var(--cyan); }
.accent-pink { box-shadow: inset 0 7px 0 var(--pink); }
.accent-yellow { box-shadow: inset 0 7px 0 var(--yellow); }
.accent-green { box-shadow: inset 0 7px 0 var(--green); }

.comment-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(20px, 4vw, 44px) clamp(18px, 5vw, 72px);
  background: #fff;
}

.speech {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  min-height: 136px;
  padding: 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 6px 6px 0 rgba(23,19,31,.12);
}

.speech .character {
  width: 96px;
  border: 1px solid var(--line);
  background: #fff;
}

.speech p {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-weight: 800;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-all;
  line-break: anywhere;
}

.speech.hot { border-color: var(--pink); }
.speech.flat { border-color: var(--ink); background: #f6f3ee; }
.speech.cool { border-color: var(--cyan); }
.speech.music { border-color: var(--violet); }
.speech.warn { border-color: var(--yellow); }

.section-grid {
  display: grid;
  grid-template-columns: minmax(240px, .32fr) minmax(0, .68fr);
  gap: 24px;
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 72px);
}

.section-title p {
  color: var(--muted);
  line-height: 1.8;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.section-actions a,
.video-link,
.previous-report-link a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--ink);
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(23,19,31,.13);
}

.previous-report-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.previous-report-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.previous-report-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.previous-report-link .topics-link {
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--pink);
}

.topics-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.previous-report-link .topics-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--pink);
}

.panel,
.repo-card,
.music-stats article,
.git-stats article,
.social-stats article,
.tool-card,
.song-feature,
.catalog-panel {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.panel {
  min-width: 0;
  padding: 20px;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.panel-head span {
  font-weight: 900;
  color: var(--pink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-list {
  display: grid;
  gap: 12px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(130px, .85fr) minmax(220px, 1.6fr) minmax(150px, .75fr);
  gap: 12px;
  align-items: center;
}

.project-name {
  min-width: 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.project-count {
  min-width: 0;
  font-weight: 900;
  text-align: right;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.project-sub {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.empty-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.7;
}

.word-battle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .58fr) minmax(260px, .42fr);
  gap: 28px;
  align-items: center;
  padding: clamp(46px, 7vw, 84px) clamp(18px, 5vw, 72px);
  background: #101018;
  color: #fff;
}

.word-battle p { color: #ddd7ea; line-height: 1.8; }
.battle-bars,
.flow-list { display: grid; gap: 16px; }
.flow-list article {
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 5px 5px 0 rgba(23,19,31,.12);
}
.flow-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 900;
}
.flow-list strong {
  display: block;
  color: var(--ink);
  line-height: 1.5;
}
.battle-row {
  display: grid;
  grid-template-columns: 48px minmax(120px, 1fr) 78px;
  gap: 12px;
  align-items: center;
}
.battle-row span,
.battle-row b { font-weight: 900; }
.battle-row div {
  height: 26px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
}
.battle-row i {
  display: block;
  height: 100%;
}
.battle-row.user i { background: var(--cyan); }
.battle-row.ai i { background: var(--pink); }
.battle-character {
  position: absolute;
  right: clamp(12px, 4vw, 54px);
  bottom: -22px;
  width: min(180px, 36vw);
  border: 3px solid #fff;
  transform: rotate(3deg);
}

.music-band {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: #fff7df;
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}

.music-stats,
.git-stats,
.social-stats {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.music-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.git-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.social-stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.music-stats article,
.git-stats article,
.social-stats article { padding: 18px; }
.music-stats strong,
.git-stats strong,
.social-stats strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1;
}
.git-stats small,
.social-stats small,
.social-period {
  color: var(--muted);
}

.social-band {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: #eefafa;
  border-bottom: 4px solid var(--ink);
}

.tools-band {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: #fff;
  border-bottom: 4px solid var(--ink);
}

.tools-showcase {
  display: grid;
  grid-template-columns: minmax(220px, .34fr) minmax(0, .66fr);
  gap: 18px;
  align-items: start;
  margin: 24px 0 18px;
}

.tool-usage-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  max-width: 390px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff7df;
  box-shadow: 6px 6px 0 var(--pink);
}

.tool-groups {
  display: grid;
  gap: 16px;
}
.tool-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.tool-group h3 {
  width: fit-content;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 rgba(23,19,31,.18);
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.tool-card {
  min-width: 0;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--cyan);
}
.tool-card span {
  color: var(--muted);
  font-weight: 900;
}
.tool-card strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.15;
}
.tool-card p {
  color: var(--muted);
  line-height: 1.6;
}
.tool-usage {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff7df;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.song-band {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: #fff7df;
  border-bottom: 4px solid var(--ink);
}

.song-feature {
  display: grid;
  grid-template-columns: minmax(240px, .45fr) minmax(320px, .55fr);
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 18px;
}
.song-feature p {
  color: var(--muted);
  line-height: 1.7;
}
.song-feature iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
}
.song-character {
  width: min(260px, 60vw);
  justify-self: center;
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--violet);
}
.song-cover-link {
  position: relative;
  display: block;
  width: min(360px, 100%);
  justify-self: center;
  color: #fff;
  text-decoration: none;
  border: 3px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 7px 7px 0 var(--violet);
  background: var(--ink);
}
.song-cover-link img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.song-cover-link span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: rgba(23,19,31,.82);
  font-weight: 900;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.tag-row span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.catalog-panel {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}
.catalog-panel summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}
.catalog-panel summary::-webkit-details-marker { display: none; }
.catalog-panel summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  flex: 0 0 auto;
}
.catalog-panel[open] summary::after { content: "-"; }
.catalog-panel summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.catalog-panel summary small {
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}
.catalog-panel .music-stats,
.catalog-panel .release-list {
  margin-left: 18px;
  margin-right: 18px;
}
.catalog-panel .release-list { margin-bottom: 18px; }

.release-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.release-item {
  min-height: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
}
.release-cover {
  display: block;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #f6f3ee;
}
.release-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.release-cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 40px;
  font-weight: 900;
}
.release-title {
  display: block;
  margin-top: 10px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.release-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.featured-video {
  display: grid;
  grid-template-columns: minmax(240px, .38fr) minmax(320px, .62fr);
  gap: 18px;
  align-items: center;
  margin: 22px 0 18px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.featured-video p {
  color: var(--muted);
  line-height: 1.7;
}

.embed-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.featured-video iframe,
.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--ink);
}

.video-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border: 0;
  color: #fff;
  text-decoration: none;
}
.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-thumb span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border: 2px solid #fff;
  border-radius: 8px;
  background: rgba(23,19,31,.82);
  font-weight: 900;
}

.git-section {
  align-items: start;
}

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.repo-card {
  min-height: 170px;
  min-width: 0;
  overflow: hidden;
  padding: 16px;
}
.repo-card strong {
  display: block;
  margin: 8px 0;
  font-size: 48px;
  line-height: 1;
}
.repo-card small {
  display: block;
  margin-top: 12px;
  color: #3e3547;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.repo-card span { overflow-wrap: anywhere; }

.topics-band {
  position: relative;
  padding: clamp(50px, 7vw, 90px) clamp(18px, 5vw, 72px) clamp(96px, 12vw, 150px);
  background: #f4fbfb;
}

.topic-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin-top: 28px;
}
.topic-groups article {
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: 5px 5px 0 rgba(23,19,31,.14);
}
.topic-groups span {
  display: block;
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}
.topic-groups strong {
  display: block;
  margin: 8px 0;
  font-size: 34px;
}
.topic-groups p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.6;
}

.topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 980px;
  margin-top: 22px;
}
.topic-cloud span {
  padding: 9px 12px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  box-shadow: 3px 3px 0 rgba(23,19,31,.12);
}

.walk-character {
  position: absolute;
  right: clamp(22px, 8vw, 120px);
  bottom: 24px;
  width: 150px;
  border: 3px solid var(--ink);
  box-shadow: 7px 7px 0 var(--green);
}

footer {
  padding: 24px clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--ink);
}
footer p { margin: 0; color: #ddd7ea; }

@media (max-width: 980px) {
  .hero-band,
  .section-grid,
  .word-battle,
  .tools-showcase {
    grid-template-columns: 1fr;
  }
  .metrics-grid,
  .comment-strip,
  .music-stats,
  .git-stats,
  .social-stats,
  .topic-groups,
  .featured-video,
  .song-feature,
  .release-list,
  .tool-grid,
  .repo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-row {
    grid-template-columns: minmax(120px, .9fr) minmax(160px, 1.1fr);
  }
  .project-count {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }
  nav { justify-content: flex-start; }
  .hero-band {
    min-height: auto;
    padding: 42px 24px 34px;
  }
  .mobile-only { display: block; }
  .desktop-title { display: none; }
  .mobile-title { display: inline; }
  h1 {
    font-size: 38px;
    line-height: 1.06;
  }
  .lead {
    font-size: 16px;
    max-width: 100%;
    word-break: break-all;
  }
  .hero-stage {
    min-height: auto;
    justify-items: center;
    overflow: visible;
  }
  .hero-sticker {
    width: min(282px, 72vw);
    box-shadow: 8px 8px 0 var(--cyan), -7px -7px 0 var(--pink);
  }
  .hero-badge {
    position: static;
    margin-top: 12px;
    max-width: 260px;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .metrics-grid,
  .comment-strip,
  .music-stats,
  .git-stats,
  .social-stats,
  .topic-groups,
  .featured-video,
  .song-feature,
  .release-list,
  .tool-grid,
  .repo-grid {
    grid-template-columns: 1fr;
  }
  .section-grid,
  .word-battle,
  .music-band,
  .social-band,
  .tools-band,
  .topics-band {
    padding-left: 24px;
    padding-right: 24px;
  }
  .panel {
    width: 100%;
    max-width: calc(100vw - 48px);
  }
  .comment-strip {
    display: block;
    padding: 20px 24px;
  }
  .comment-strip .speech {
    width: 100%;
    max-width: calc(100vw - 48px);
    margin-bottom: 12px;
  }
  .speech {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    align-items: start;
  }
  .speech .character { width: 72px; }
  .speech p {
    font-size: 14px;
    word-break: break-all;
  }
  .project-row {
    grid-template-columns: 1fr;
  }
  .project-count { text-align: left; }
  .panel-head {
    display: grid;
    gap: 6px;
  }
  .battle-row {
    grid-template-columns: 38px minmax(120px, 1fr);
  }
  .battle-row b {
    grid-column: 2;
  }
  .battle-character {
    position: static;
    width: 132px;
    margin-left: auto;
  }
}
