:root {
  color-scheme: light;
  --surface: #f8fbfb;
  --surface-strong: #ffffff;
  --surface-soft: #eef5f5;
  --text: #172124;
  --muted: #4a5a5e;
  --line: #c9d7d9;
  --primary: #006970;
  --primary-strong: #004f54;
  --accent: #00dbe9;
  --violet: #5943b8;
  --shadow: 0 24px 70px rgba(25, 45, 50, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 105, 112, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(0, 105, 112, 0.05) 1px, transparent 1px),
    var(--surface);
  background-size: 44px 44px;
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(201, 215, 217, 0.7);
  background: rgba(248, 251, 251, 0.86);
  backdrop-filter: blur(18px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 105, 112, 0.35);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 105, 112, 0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 105, 112, 0.18);
}

.button-primary:hover {
  background: var(--primary-strong);
}

.button-secondary {
  border: 1px solid rgba(0, 105, 112, 0.28);
  background: rgba(255, 255, 255, 0.76);
  color: var(--primary);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(720px, calc(100svh - 64px));
  padding: 88px 0 64px;
  isolation: isolate;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 105, 112, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 800;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(0, 219, 233, 0.16);
}

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

h1 {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 5.8vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.demo-card,
.sample-card {
  border: 1px solid rgba(201, 215, 217, 0.74);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(25, 45, 50, 0.08);
}

.demo-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px;
}

.demo-card h3,
.sample-card h3 {
  margin: 0;
  line-height: 1.35;
}

.demo-card h3 {
  font-size: 1.08rem;
}

.demo-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-step-number {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(0, 105, 112, 0.1);
  color: var(--primary);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.demo-card p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.demo-surface {
  display: grid;
  align-content: start;
  gap: 12px;
  flex: 0 0 auto;
  margin-bottom: 18px;
}

.demo-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.demo-select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(0, 105, 112, 0.24);
  border-radius: 8px;
  padding: 0 42px 0 14px;
  background:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%) right 18px center / 8px 8px no-repeat,
    linear-gradient(135deg, var(--primary) 50%, transparent 50%) right 12px center / 8px 8px no-repeat,
    #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  appearance: none;
}

.breakdown-empty {
  border: 1px dashed rgba(0, 105, 112, 0.26);
  border-radius: 8px;
  padding: 18px;
  background: rgba(238, 245, 245, 0.6);
  color: var(--muted);
  font-size: 0.92rem;
}

.generated-list,
.quest-list,
.sample-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.generated-list li,
.quest-row,
.sample-list li {
  border: 1px solid rgba(201, 215, 217, 0.62);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(248, 251, 251, 0.9);
  color: var(--text);
  font-size: 0.9rem;
}

.generated-list li {
  opacity: 0.7;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.generated-list.is-running li {
  opacity: 0.2;
  transform: translateY(6px);
}

.generated-list.is-complete li {
  opacity: 1;
  background: #fff;
}

.quest-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.quest-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.quest-row:has(input:checked) {
  border-color: rgba(0, 105, 112, 0.32);
  color: var(--muted);
  text-decoration: line-through;
  background: rgba(0, 219, 233, 0.1);
}

.quest-empty {
  border: 1px dashed rgba(0, 105, 112, 0.26);
  border-radius: 8px;
  padding: 18px;
  background: rgba(238, 245, 245, 0.6);
  color: var(--muted);
  font-size: 0.92rem;
}

.quest-grid {
  display: grid;
  gap: 10px;
}

.quest-card {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  min-height: 132px;
  border: 1px solid rgba(201, 215, 217, 0.74);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  transition: all 0.5s ease-out;
}

.quest-card.stamped {
  border-color: #006970;
  background: #f0f9fa;
  opacity: 0.6;
  pointer-events: none;
}

.quest-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.quest-head h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.quest-reward {
  white-space: nowrap;
  color: var(--primary);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
}

.quest-card .mission-clear-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 20;
  border: 4px solid #006970;
  padding: 4px 12px;
  color: #006970;
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quest-card.stamped .mission-clear-stamp {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(-15deg);
}

.quest-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(201, 215, 217, 0.55);
  padding-top: 12px;
}

.complete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(0, 105, 112, 0.24);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  transition: all 160ms ease;
  box-shadow: 0 8px 18px rgba(0, 105, 112, 0.1);
}

.complete-btn:hover {
  background: var(--primary);
  color: #fff;
}

.complete-btn:active {
  transform: scale(0.97);
}

.reward-pulse {
  animation: reward-pulse 2s infinite ease-in-out;
}

@keyframes reward-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(0, 219, 233, 0.4));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 219, 233, 0.8));
  }
}

@keyframes card-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-4px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(4px);
  }
}

.shake-active {
  animation: card-shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes screen-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-3px, -3px);
  }
  20% {
    transform: translate(3px, 3px);
  }
  30% {
    transform: translate(-3px, 3px);
  }
  40% {
    transform: translate(3px, -3px);
  }
  50% {
    transform: translate(-2px, 2px);
  }
  60% {
    transform: translate(2px, -2px);
  }
  70% {
    transform: translate(-1px, 1px);
  }
  80% {
    transform: translate(1px, -1px);
  }
}

.screen-shake-active {
  animation: screen-shake 0.4s ease-in-out;
}

.particle {
  position: fixed;
  z-index: 120;
  pointer-events: none;
}

.demo-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  border: 1px solid rgba(0, 105, 112, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(0, 105, 112, 0.07);
  color: var(--primary);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-weight: 800;
}

.demo-result small {
  color: var(--muted);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.level-box {
  position: relative;
  display: grid;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 105, 112, 0.2);
  border-radius: 8px;
  padding: 16px;
  background: rgba(238, 245, 245, 0.72);
}

.level-profile {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.level-avatar {
  width: 74px;
  height: 74px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 105, 112, 0.18);
  object-fit: cover;
  transition:
    transform 280ms ease,
    box-shadow 280ms ease;
}

.level-profile-body {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.level-box.is-level-up .level-avatar {
  animation: level-avatar-grow 680ms ease both;
}

.level-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.level-title span:first-child {
  min-width: 0;
}

.level-title span:last-child {
  white-space: nowrap;
}

.xp-meter {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(201, 215, 217, 0.8);
}

.xp-meter span {
  display: block;
  width: var(--xp, 80%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 280ms ease;
}

.level-flash {
  min-height: 30px;
  color: var(--violet);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-weight: 800;
}

.level-effect {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  color: var(--violet);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
}

.level-box.is-level-up .level-effect {
  animation: level-up-burst 980ms ease both;
}

@keyframes level-up-burst {
  0% {
    opacity: 0;
    transform: scale(0.78) translateY(18px);
  }
  22% {
    opacity: 1;
    transform: scale(1.08) translateY(0);
  }
  70% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.08) translateY(-18px);
  }
}

@keyframes level-avatar-grow {
  0% {
    transform: scale(0.9) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(0, 105, 112, 0.12);
  }
  45% {
    transform: scale(1.14) rotate(3deg);
    box-shadow: 0 16px 34px rgba(0, 187, 200, 0.28);
  }
  100% {
    transform: scale(1) rotate(0deg);
    box-shadow: 0 12px 28px rgba(0, 105, 112, 0.18);
  }
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sample-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

.sample-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.sample-list {
  gap: 6px;
}

.sample-list li {
  padding: 7px 9px;
  font-size: 0.86rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-grid li {
  border: 1px solid rgba(201, 215, 217, 0.74);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}

.process-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-weight: 800;
}

section.band {
  padding: 72px 0;
  border-top: 1px solid rgba(201, 215, 217, 0.55);
  background: rgba(255, 255, 255, 0.55);
}

section.band:nth-of-type(odd) {
  background: rgba(238, 245, 245, 0.66);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.public-challenge-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(0, 105, 112, 0.18);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(25, 45, 50, 0.08);
}

.public-challenge-intro h3 {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 1.08rem;
}

.public-challenge-intro p {
  margin: 0;
  color: var(--muted);
}

.public-challenge-list-hero {
  padding: 76px 0;
}

.public-challenge-list-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.public-challenge-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: start;
  gap: 28px;
  padding: 76px 0;
}

.public-challenge-detail-copy {
  position: sticky;
  top: 92px;
}

.public-challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.public-challenge-card,
.public-challenge-detail-card,
.public-challenge-loading {
  border: 1px solid rgba(201, 215, 217, 0.74);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(25, 45, 50, 0.08);
}

.public-challenge-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.public-challenge-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.public-challenge-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.public-challenge-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.public-challenge-stats span {
  display: grid;
  gap: 2px;
  border-radius: 8px;
  padding: 10px;
  background: rgba(238, 245, 245, 0.74);
  text-align: center;
}

.public-challenge-stats strong {
  color: var(--primary);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-size: 1.15rem;
  line-height: 1.2;
}

.public-challenge-stats small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.public-challenge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.public-challenge-actions .button {
  flex: 1 1 150px;
}

.public-challenge-loading {
  grid-column: 1 / -1;
  padding: 22px;
  color: var(--muted);
  font-weight: 700;
}

.public-challenge-detail-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.public-challenge-day-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-challenge-day {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(201, 215, 217, 0.7);
  border-radius: 8px;
  padding: 14px;
  background: rgba(248, 251, 251, 0.86);
}

.public-challenge-day-number {
  color: var(--primary);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.public-challenge-day strong {
  display: block;
  line-height: 1.4;
}

.public-challenge-day p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.public-challenge-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.public-challenge-resource-links a {
  border: 1px solid rgba(0, 105, 112, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  border: 1px solid rgba(201, 215, 217, 0.74);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.feature .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(0, 105, 112, 0.09);
  color: var(--primary);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-panel {
  border: 1px solid rgba(201, 215, 217, 0.74);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.detail-panel h3 {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 1.08rem;
  line-height: 1.35;
}

.detail-panel p,
.detail-panel li {
  color: var(--muted);
}

.detail-panel p {
  margin: 0;
}

.detail-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.15em;
}

.detail-panel li {
  padding-left: 4px;
}

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

.flow-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.flow-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(0, 219, 233, 0.14);
}

.calendar-promo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(620px, 1.28fr);
  align-items: start;
  gap: 34px;
}

.calendar-promo-copy .section-head {
  display: block;
}

.calendar-promo-copy .section-head p {
  margin-top: 14px;
}

.calendar-demo {
  border: 1px solid rgba(201, 215, 217, 0.74);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(25, 45, 50, 0.09);
}

.calendar-demo-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.calendar-demo-kicker {
  margin: 0;
  color: var(--primary);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.calendar-demo h3 {
  margin: 2px 0 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.calendar-demo-reset {
  min-height: 34px;
  border: 1px solid rgba(0, 105, 112, 0.2);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(238, 245, 245, 0.7);
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.calendar-demo-body {
  display: grid;
  gap: 16px;
}

.calendar-demo-tray {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  border: 1px dashed rgba(0, 105, 112, 0.28);
  border-radius: 8px;
  padding: 12px;
  background: rgba(238, 245, 245, 0.64);
}

.calendar-demo-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.calendar-demo-task-list,
.calendar-demo-slot {
  display: grid;
  align-content: start;
  gap: 8px;
}

.calendar-demo-task-list {
  grid-template-columns: repeat(5, minmax(92px, 1fr));
}

.calendar-demo-task {
  border: 1px solid rgba(0, 105, 112, 0.24);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  cursor: grab;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 8px 18px rgba(25, 45, 50, 0.08);
  touch-action: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.calendar-demo-task:hover,
.calendar-demo-task.is-selected {
  border-color: rgba(0, 105, 112, 0.55);
  background: rgba(0, 219, 233, 0.08);
  box-shadow: 0 12px 24px rgba(0, 105, 112, 0.12);
}

.calendar-demo-task:active {
  cursor: grabbing;
  transform: scale(0.98);
}

.calendar-demo-board {
  min-width: 0;
}

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

.calendar-demo-monthbar span {
  color: var(--text);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-weight: 800;
}

.calendar-demo-monthbar small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.calendar-demo-scroll {
  min-width: 0;
}

.calendar-demo-weekdays,
.calendar-demo-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-demo-weekdays {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.calendar-demo-weekdays span:nth-child(6) {
  color: #2563eb;
}

.calendar-demo-weekdays span:nth-child(7) {
  color: #c62828;
}

.calendar-demo-day {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 86px;
  border: 1px solid rgba(201, 215, 217, 0.76);
  border-radius: 8px;
  padding: 7px;
  background: linear-gradient(180deg, #fff 0%, rgba(248, 251, 251, 0.88) 100%);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.calendar-demo-day.is-outside-month {
  border-color: rgba(201, 215, 217, 0.48);
  background: rgba(248, 251, 251, 0.48);
  color: rgba(74, 90, 94, 0.72);
}

.calendar-demo-day.is-saturday {
  border-color: #bfdbfe;
  background: rgba(239, 246, 255, 0.92);
}

.calendar-demo-day.is-sunday {
  border-color: rgba(255, 205, 210, 0.9);
  background: rgba(255, 235, 238, 0.72);
}

.calendar-demo-day.is-today {
  border-color: var(--primary);
  background: rgba(0, 105, 112, 0.06);
}

.calendar-demo-tray.is-drop-target,
.calendar-demo-day.is-drop-target {
  border-color: rgba(0, 105, 112, 0.62);
  background: rgba(0, 219, 233, 0.08);
  transform: translateY(-2px);
}

.calendar-demo-date {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 105, 112, 0.09);
  color: var(--primary);
  font-family: Sora, "Noto Sans JP", sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
}

.calendar-demo-day.is-outside-month .calendar-demo-date {
  background: transparent;
  color: rgba(74, 90, 94, 0.64);
}

.calendar-demo-day.is-saturday .calendar-demo-date {
  background: #dbeafe;
  color: #1d4ed8;
}

.calendar-demo-day.is-sunday .calendar-demo-date {
  background: #ffebee;
  color: #c62828;
}

.calendar-demo-day.is-today .calendar-demo-date {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 105, 112, 0.12);
}

.calendar-demo-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.faq-list {
  gap: 18px;
}

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

.faq-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.faq-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  border-top: 1px solid rgba(201, 215, 217, 0.74);
  padding-top: 20px;
}

.faq-more p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.inline-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  border-top: 1px solid rgba(201, 215, 217, 0.74);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .feature-grid,
  .detail-grid,
  .demo-grid,
  .sample-grid,
  .calendar-promo-grid,
  .public-challenge-grid,
  .public-challenge-hero {
    grid-template-columns: 1fr;
  }

  .public-challenge-detail-copy {
    position: static;
  }

  .calendar-demo-body {
    grid-template-columns: 1fr;
  }

  .calendar-demo-tray {
    min-height: 0;
  }

  .calendar-demo-task-list {
    grid-template-columns: repeat(5, minmax(96px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .calendar-demo-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .calendar-demo-weekdays,
  .calendar-demo-days {
    min-width: 640px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .faq-more {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-challenge-intro {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1160px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-link {
    display: none;
  }

  .nav-actions .button {
    width: 100%;
  }

  .hero {
    padding-top: 40px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 2.9rem);
  }

  .hero-actions .button,
  .cta-actions .button,
  .public-challenge-intro .button {
    width: 100%;
  }

  .public-challenge-day {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .calendar-demo {
    padding: 14px;
  }

  .calendar-demo-head {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-demo-day {
    min-height: 82px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
