:root {
  color-scheme: light;
  --ink: #372044;
  --muted: #7c6888;
  --cream: #fffaff;
  --lavender: #f1ddff;
  --purple: #b66bff;
  --purple-deep: #7d36c9;
  --blush: #ffccd4;
  --milk-red: #ff7d91;
  --blue: #7aa4ff;
  --honey: #ffe08c;
  --line: rgba(100, 48, 129, 0.17);
  --shadow: 0 18px 42px rgba(101, 45, 128, 0.16);
  --shadow-hover: 0 22px 52px rgba(101, 45, 128, 0.2);
  --scroll-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 16%, rgba(182, 107, 255, 0.34) 0 13%, transparent 14%),
    radial-gradient(circle at 86% 10%, rgba(255, 204, 212, 0.54) 0 10%, transparent 11%),
    radial-gradient(circle at 74% 78%, rgba(122, 164, 255, 0.2) 0 12%, transparent 13%),
    linear-gradient(145deg, #fffaff 0%, #f6eaff 48%, #fff1f4 100%);
  color: var(--ink);
  font-family:
    "Hiragino Maru Gothic ProN",
    "Yu Gothic UI",
    "Yu Gothic",
    "Noto Sans JP",
    "Segoe UI",
    sans-serif;
  font-weight: 600;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(125, 54, 201, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 54, 201, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.58;
}

body::-webkit-scrollbar {
  width: 16px;
}

body::-webkit-scrollbar-track {
  background: linear-gradient(#fffaff, #f1ddff, #fff1f4);
}

body::-webkit-scrollbar-thumb {
  border: 4px solid #fffaff;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--purple), var(--milk-red));
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 204, 212, 0.85), transparent 34%),
    linear-gradient(145deg, #fffaff, #f2dfff);
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.page-loader-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader-card {
  display: grid;
  grid-template-columns: 96px minmax(190px, 340px);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 2px solid rgba(125, 54, 201, 0.16);
  border-radius: 28px;
  background: rgba(255, 250, 255, 0.86);
  box-shadow: var(--shadow);
  contain: layout paint;
}

.loader-card img {
  width: 96px;
  height: 96px;
  border: 4px solid #ffffff;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(125, 54, 201, 0.18);
}

.loader-copy strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.loader-track {
  height: 16px;
  padding: 3px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(125, 54, 201, 0.12);
}

.loader-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--milk-red), var(--blush));
  transition: width 140ms ease;
}

.scroll-companion {
  position: fixed;
  top: 72px;
  right: 10px;
  bottom: 72px;
  z-index: 30;
  pointer-events: none;
}

.scroll-rail {
  position: relative;
  width: 52px;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 250, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(125, 54, 201, 0.14);
}

.scroll-rail img {
  position: absolute;
  top: 0;
  left: 4px;
  width: 44px;
  height: 44px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(125, 54, 201, 0.2);
  transform: translate3d(0, calc((100vh - 188px) * var(--scroll-progress)), 0);
  will-change: transform;
}

a {
  color: inherit;
}

.page {
  width: min(1440px, calc(100% - clamp(24px, 5vw, 72px)));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.page > * {
  animation: revealUp 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page > *:nth-child(2) {
  animation-delay: 120ms;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: stretch;
  min-height: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  pointer-events: none;
  border-radius: 42px;
  background:
    linear-gradient(90deg, rgba(255, 250, 255, 0.5), rgba(255, 250, 255, 0.1)),
    url("/muusha-chan-img/mainChatGPT Image 2026年6月6日 07_37_26.png") right 4% center / min(58vw, 760px) auto no-repeat;
  opacity: 0.18;
  filter: saturate(1.12);
}

.hero-copy,
.mascot-panel,
.report,
.panel,
.metric-card,
.chart-panel {
  border: 2px solid var(--line);
  background: rgba(255, 250, 255, 0.9);
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.report,
.panel,
.metric-card,
.chart-panel {
  content-visibility: auto;
  contain-intrinsic-size: 220px;
}

.panel:hover,
.metric-card:hover,
.chart-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(182, 107, 255, 0.34);
  box-shadow: var(--shadow-hover);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: clamp(30px, 4vw, 52px);
  border-radius: 32px;
  overflow: hidden;
  contain: layout paint;
}

.hero-copy::before,
.mascot-panel::before,
.report::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: inherit;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -62px;
  bottom: -76px;
  width: 260px;
  height: 260px;
  background:
    linear-gradient(45deg, transparent 45%, rgba(182, 107, 255, 0.22) 46% 54%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(255, 125, 145, 0.2) 46% 54%, transparent 55%);
  border-radius: 50%;
}

.eyebrow,
.label {
  margin: 0;
  color: var(--purple-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--milk-red);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  animation: twinkle 1.8s ease-in-out infinite;
}

h1,
h2,
p,
strong,
li {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 12px 0 16px;
  font-family:
    "Hiragino Maru Gothic ProN",
    "Yu Gothic UI",
    "Yu Gothic",
    "Noto Sans JP",
    sans-serif;
  font-size: clamp(44px, 5.4vw, 76px);
  font-weight: 900;
  line-height: 0.94;
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.92),
    0 16px 32px rgba(125, 54, 201, 0.16);
}

h2 {
  margin: 10px 0 12px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
}

.lead {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.58;
}

.mini-portrait {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  max-width: 430px;
  margin-top: 20px;
  padding: 10px;
  border: 2px solid rgba(125, 54, 201, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.54);
}

.mini-portrait img {
  width: 68px;
  height: 68px;
  border: 3px solid #ffffff;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(125, 54, 201, 0.18);
}

.mini-portrait span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid rgba(47, 38, 50, 0.16);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(125, 54, 201, 0.14);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 18px 34px rgba(125, 54, 201, 0.22);
}

.button.primary {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  color: var(--cream);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.58);
}

.mascot-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 14px;
  min-height: 420px;
  padding: 28px;
  border-radius: 32px;
  overflow: hidden;
  contain: layout paint;
}

.visit-showcase {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  height: clamp(280px, 28vw, 350px);
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 204, 212, 0.22), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 72%, rgba(255, 250, 255, 0.96) 100%);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(125, 54, 201, 0.12);
}

.visit-showcase::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 250, 255, 0),
    rgba(255, 250, 255, 0.72) 64%,
    rgba(255, 250, 255, 0.94)
  );
}

.visit-showcase img {
  width: min(100%, 390px);
  height: 100%;
  object-fit: contain;
  transform: translateZ(0);
  will-change: transform;
  animation: floatyImage 6.4s ease-in-out infinite;
}

.sparkle {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--milk-red);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}

.sparkle-a {
  top: 34px;
  right: 44px;
}

.sparkle-b {
  top: 48%;
  left: 30px;
  background: var(--purple);
  transform: scale(0.72);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  transform: translateZ(0);
}

.mascot-panel h2 {
  margin-top: 0;
  font-size: clamp(24px, 3.4vw, 38px);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2fa56f;
  box-shadow: 0 0 0 5px rgba(47, 165, 111, 0.14);
}

.dot-muted {
  background: var(--muted);
  box-shadow: 0 0 0 5px rgba(121, 111, 122, 0.14);
}

.dot-warn {
  background: var(--milk-red);
  box-shadow: 0 0 0 5px rgba(255, 125, 145, 0.2);
}

.dot-bad {
  background: #d44848;
  box-shadow: 0 0 0 5px rgba(212, 72, 72, 0.14);
}

.tiny {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.report {
  position: relative;
  margin-top: 22px;
  padding: clamp(22px, 2.2vw, 32px);
  border-radius: 30px;
}

.report-heading {
  margin-bottom: 14px;
}

.chart-grid,
.metrics,
.required-sections {
  display: grid;
  gap: 14px;
}

.chart-grid {
  grid-template-columns: minmax(320px, 0.8fr) minmax(520px, 1.2fr);
}

.chart-panel,
.metric-card,
.panel {
  border-radius: 22px;
  padding: 18px;
  animation: none;
}

.ring-wrap {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
}

.ring {
  width: 132px;
  height: 132px;
  transform: rotate(-90deg);
}

.ring-bg,
.ring-fg {
  fill: none;
  stroke-width: 13;
}

.ring-bg {
  stroke: rgba(47, 38, 50, 0.11);
}

.ring-fg {
  stroke: var(--purple);
  stroke-linecap: round;
  transition: stroke-dashoffset 700ms ease;
}

#corpus-ratio {
  display: block;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1;
}

#corpus-detail {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.bar-chart {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
}

.bar-track {
  height: 13px;
  border-radius: 999px;
  background: rgba(47, 38, 50, 0.1);
  overflow: hidden;
}

.bar-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--milk-red), var(--blush));
  animation: fillBar 960ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.metrics {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  margin-top: 14px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
  color: var(--purple-deep);
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.required-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

@media (min-width: 1320px) {
  .chart-grid {
    grid-template-columns: minmax(340px, 0.72fr) minmax(620px, 1.28fr);
  }

  .metrics {
    grid-template-columns: repeat(6, minmax(150px, 1fr));
  }
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.count {
  min-width: 30px;
  padding: 4px 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #f5e5ff;
  color: var(--ink);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.56;
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--milk-red);
}

.list li strong {
  display: block;
  margin-bottom: 3px;
}

.list li span {
  color: var(--muted);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) rotate(1deg);
  }
}

@keyframes floatyImage {
  0%,
  100% {
    transform: scale(1.02) translateY(0);
  }
  50% {
    transform: scale(1.05) translateY(-8px);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fillBar {
  from {
    width: 0;
  }
  to {
    width: var(--target-width);
  }
}

@keyframes softPulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.78;
  }
  50% {
    transform: rotate(18deg) scale(1.18);
    opacity: 1;
  }
}

@media (max-width: 1480px) {
  .scroll-companion {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero,
  .chart-grid,
  .metrics,
  .required-sections {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy,
  .mascot-panel {
    min-height: 0;
  }

  .visit-showcase {
    inset: auto;
    max-height: 440px;
  }

}

@media (max-width: 540px) {
  .page {
    width: min(100% - 18px, 1120px);
    padding-top: 10px;
  }

  .hero-copy,
  .mascot-panel,
  .report {
    border-radius: 22px;
  }

  .hero-copy,
  .mascot-panel,
  .report {
    padding: 22px;
  }

  .ring-wrap {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
