@font-face {
  font-family: Lexend;
  src: url("/fonts/Lexend-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Lexend;
  src: url("/fonts/Lexend-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Lexend;
  src: url("/fonts/Lexend-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f1f6ff;
  --surface: #ffffff;
  --sunken: #e2ecfb;
  --ink: #083354;
  --muted: #2f587d;
  --line: #c9daf2;
  --control: #4a6a8a;
  --primary: #075df2;
  --primary-deep: #083354;
  --on-primary-line: rgba(255, 255, 255, 0.55);
  --green: #0cd889;
  --sun: #ffcf33;
  --done: #087a55;
  --done-tint: #d1fae5;
  font-family: Lexend, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  scrollbar-color: var(--muted) var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
::selection { color: var(--surface); background: var(--primary-deep); }
a { color: inherit; text-underline-offset: 0.2em; }
a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { line-height: 1.75; }
strong { font-weight: 600; }
.container { width: min(1248px, calc(100% - 96px)); margin-inline: auto; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; }

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 16px 24px;
  border-radius: 8px;
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 1px 12px rgba(8, 51, 84, 0.06); }
.header-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 18px; min-height: 48px; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 8px; background: url("/favicon-64.png") center / cover no-repeat; }
.navigation { display: flex; align-items: center; gap: 28px; }
.nav-link { display: inline-flex; align-items: center; min-height: 48px; font-size: 14px; text-decoration: none; }
.nav-link:hover { color: var(--primary-deep); text-decoration: underline; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: var(--primary);
  color: var(--surface);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 180ms ease-out;
}
.button:hover { background: var(--primary-deep); }
.button-small { min-height: 48px; padding: 12px 20px; font-size: 14px; }
.button-large { min-height: 76px; padding: 20px 32px; font-size: 21px; }
.button-note { color: var(--muted); margin-top: 12px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; font-weight: 600; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--primary-deep); }

.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: 64px; align-items: start; padding-block: 80px 88px; }
h1 { max-width: 12ch; font-size: clamp(40px, 4.65vw, 67px); font-weight: 700; line-height: 1.08; letter-spacing: -0.04em; }
h1 span { color: var(--primary); }
#hero-title { color: var(--primary); }
.hero-tagline { margin-top: 20px; font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; color: var(--primary-deep); letter-spacing: -0.02em; line-height: 1.15; }
.hero-description { max-width: 44ch; margin-top: 20px; font-size: 18px; color: var(--muted); }
.participation-preview { background: var(--primary); color: var(--paper); padding: 40px; border-radius: 24px; }
.participation-preview h2 { max-width: 14ch; font-size: 36px; line-height: 1.2; letter-spacing: -0.025em; }
.preview-interests { margin-top: 32px; }
.preview-interests p { font-size: 14px; margin-bottom: 12px; }
.interest-list { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.interest-list li { width: 100%; padding: 14px 16px; border: 1px solid var(--on-primary-line); border-radius: 10px; font-size: 14px; }
.interest-list .interest-selected { background: var(--green); color: var(--ink); border-color: var(--green); font-weight: 600; }
.preview-connection { display: flex; align-items: center; gap: 12px; margin-block: 18px; }
.preview-connection > span[aria-hidden] { height: 1px; flex: 1; background: var(--on-primary-line); }
.preview-connection-label { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--paper); }
.preview-connection-label .icon { width: 16px; height: 16px; }
.preview-task { padding: 24px; border-radius: 12px; background: var(--paper); color: var(--ink); }
.preview-task-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--primary-deep); }
.task-type { font-size: 13px; font-weight: 600; }
.preview-task h3 { font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; }
.preview-task p { color: var(--muted); font-size: 14px; margin-top: 12px; }
.post-media { display: block; position: relative; margin-top: 16px; border-radius: 12px; overflow: hidden; background: var(--sunken); }
.post-media video { display: block; width: 100%; max-height: 360px; object-fit: cover; }
.post-media-note { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(8, 51, 84, 0.78); color: #fff; font-size: 12px; font-weight: 600; }
.post-media-note .icon { width: 14px; height: 14px; }
.post-media:hover .post-media-note { background: rgba(8, 51, 84, 0.94); }
.preview-completion { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--done); }
.participation-preview figcaption { margin-top: 18px; font-size: 12px; line-height: 1.65; color: var(--paper); }


.how-section { padding-block: 104px; background: var(--sunken); }
.how-layout, .faq-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 112px; }
.section-intro h2, .ways-intro h2 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.15; letter-spacing: -0.035em; }
.section-intro p, .ways-intro p { color: var(--muted); font-size: 18px; margin-top: 24px; }
.section-intro .text-link { margin-top: 24px; color: var(--primary-deep); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 24px; padding-bottom: 40px; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ""; position: absolute; top: 48px; left: 23px; bottom: 0; width: 2px; background: var(--line); }
.step-number { display: grid; place-items: center; position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--ink); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 23px; line-height: 1.4; margin-top: 7px; }
.step p { color: var(--muted); font-size: 16px; margin-top: 12px; }

.ways-section { padding-block: 112px; }
.ways-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 112px; align-items: end; margin-bottom: 56px; }
.ways-intro h2 { max-width: 16ch; }
.ways-intro p { margin-top: 0; }
.way { display: grid; grid-template-columns: 1fr 1fr; gap: 112px; align-items: center; border-top: 1px solid var(--line); padding-block: 28px; }
.way:last-child { border-bottom: 1px solid var(--line); }
.way dt { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.025em; }
.way dd { color: var(--muted); font-size: 16px; line-height: 1.75; }
.ways-note { margin-top: 32px; color: var(--muted); font-size: 14px; }

.numbers-section { padding-block: 104px; background: var(--sunken); }
.numbers-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 80px; align-items: start; }
.numbers-summary { position: sticky; top: 136px; }
.numbers-summary h2 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.15; letter-spacing: -0.035em; }
.numbers-summary > p { max-width: 44ch; margin-top: 24px; color: var(--muted); font-size: 18px; }
.scorecard { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border-radius: 22px; overflow: hidden; }
.score { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; line-height: 1.2; }
.score-people { background: var(--primary); color: var(--surface); }
.score-tasks { background: var(--green); color: var(--ink); }
.score-value { font-size: clamp(44px, 5vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.score-label { font-size: 20px; font-weight: 600; }
.numbers-note { margin-top: 16px; color: var(--muted); font-size: 14px; }
.ranking-panel { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.ranking-panel h3 { font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; }
.ranking-disclaimer { display: flex; gap: 12px; margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--sunken); font-size: 15px; line-height: 1.6; }
.ranking-disclaimer .icon { width: 22px; height: 22px; margin-top: 1px; }
.ranking-status { margin-top: 20px; color: var(--muted); font-size: 16px; }
.ranking-status:empty { display: none; }
.button-outline { margin-top: 16px; background: var(--surface); color: var(--primary); border-color: var(--primary); }
.button-outline:hover { background: var(--sunken); }
.ranking { list-style: none; margin: 16px 0 0; padding: 0; }
.rank { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 8px; align-items: center; padding-block: 14px; border-top: 1px solid var(--line); }
.rank-position { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sunken); font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-first .rank-position { background: var(--green); }
.rank-name { font-weight: 600; overflow-wrap: anywhere; }
.rank-count { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-bar { grid-column: 2 / 4; height: 8px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.rank-bar span { display: block; width: var(--share, 0%); height: 100%; background: var(--primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.faq-section { padding-block: 96px; background: var(--surface); }
.questions details { border-top: 1px solid var(--line); }
.questions details:last-child { border-bottom: 1px solid var(--line); }
.questions summary { position: relative; padding: 24px 36px 24px 0; font-size: 18px; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::before, .questions summary::after { content: ""; position: absolute; top: calc(50% - 1px); right: 4px; width: 16px; height: 2px; background: var(--primary); }
.questions summary::after { transform: rotate(90deg); transition: transform 180ms ease-out; }
.questions details[open] summary::after { transform: rotate(0); }
.questions details[open] summary { color: var(--primary-deep); }
.questions details p { padding-bottom: 24px; padding-right: 24px; font-size: 16px; color: var(--muted); }
.questions p a { color: var(--primary-deep); overflow-wrap: anywhere; }
.questions p a:hover { color: var(--ink); }

.community-section { padding-block: 96px; }
.community-inner { max-width: 640px; margin-inline: auto; text-align: center; padding: 56px 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.community-inner h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; letter-spacing: -0.03em; }
.community-inner p { max-width: 48ch; margin: 24px auto 32px; color: var(--muted); font-size: 18px; line-height: 1.65; }

.join-section { padding-block: 96px; background: var(--primary-deep); color: var(--paper); }
.join-inner { text-align: center; }
.join-inner h2 { max-width: 17ch; margin-inline: auto; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.12; letter-spacing: -0.035em; }
.join-inner > p { margin-top: 24px; font-size: 18px; }
.button-light { background: var(--sun); color: var(--ink); }
.button-light:hover { background: var(--surface); }
.button-huge { width: min(640px, 100%); min-height: 104px; margin-top: 40px; justify-content: space-between; padding: 28px 40px; font-size: 28px; }
.button-huge .icon { width: 32px; height: 32px; }
.join-section :focus-visible { outline-color: var(--surface); }
.join-inner .join-note { font-size: 14px; margin-top: 18px; }
.site-footer { padding-block: 40px; }
.footer-inner { display: flex; align-items: center; gap: 48px; }
.footer-inner p { max-width: 55ch; flex: 1; color: var(--muted); font-size: 12px; }
.footer-inner .text-link { font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal { max-width: 72ch; padding-block: 72px 96px; }
.legal h1 { max-width: none; font-size: clamp(36px, 4vw, 52px); }
.legal-updated { margin-top: 16px; color: var(--muted); font-size: 14px; }
.legal-intro { margin-top: 32px; font-size: 18px; color: var(--muted); }
.legal h2 { margin-top: 56px; font-size: 26px; line-height: 1.3; letter-spacing: -0.02em; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; }
.legal p + p, .legal h2 + p, .legal ul, .legal ol { margin-top: 16px; }
.legal ul, .legal ol { padding-left: 24px; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--primary-deep); overflow-wrap: anywhere; }
.legal a:hover { color: var(--ink); }
.not-found { min-height: 70vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; padding-block: 64px; }
.not-found h1 { max-width: 18ch; }
.not-found p { max-width: 60ch; color: var(--muted); font-size: 18px; }

@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 40px; }
  .participation-preview { padding: 28px; }
  .participation-preview h2 { font-size: 32px; }
  .how-layout, .faq-layout, .ways-intro, .way, .numbers-layout { gap: 64px; }
  .navigation { gap: 20px; }
  .footer-inner { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 820px) {
  .container { width: calc(100% - 48px); }
  .header-inner { min-height: 88px; gap: 20px; }
  .navigation .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 56px 64px; gap: 48px; }
  h1 { max-width: 16ch; font-size: clamp(40px, 7.5vw, 60px); }
  .hero-description { max-width: 62ch; }
  .participation-preview { padding: 32px; }
  .participation-preview h2 { max-width: 22ch; }
  .how-section, .ways-section, .faq-section, .numbers-section { padding-block: 64px; }
  .numbers-layout { grid-template-columns: 1fr; gap: 40px; }
  .numbers-summary { position: static; }
  .how-layout, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .section-intro { max-width: 55ch; }
  .ways-intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
  .ways-intro h2 { max-width: 20ch; }
  .ways-intro p { max-width: 55ch; }
  .way { gap: 32px; grid-template-columns: 0.85fr 1.15fr; }
  .join-section { padding-block: 64px; }
  .legal { padding-block: 48px 64px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 80px; gap: 12px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 6px; }
  .button-small { font-size: 12px; padding: 10px 12px; max-width: 132px; text-align: center; }
  .hero { padding-top: 40px; }
  h1 { font-size: clamp(35px, 9.8vw, 47px); max-width: 14ch; }
  .hero-description { margin-top: 16px; font-size: 16px; }
  .button-large { width: 100%; min-height: 72px; justify-content: space-between; padding-inline: 22px; gap: 12px; font-size: 18px; }
  .button-note { font-size: 12px; }
  .participation-preview { padding: 28px 24px; border-radius: 16px; }
  .participation-preview h2 { font-size: 30px; }
  .preview-task { padding: 20px; }
  .preview-task h3 { font-size: 22px; }
  .preview-completion { align-items: flex-start; }
  .section-intro h2, .ways-intro h2 { font-size: 34px; }
  .section-intro p, .ways-intro p { font-size: 16px; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding-bottom: 32px; }
  .step-number { width: 40px; height: 40px; font-size: 18px; }
  .step:not(:last-child)::before { top: 40px; left: 19px; }
  .step h3 { font-size: 20px; margin-top: 5px; }
  .step p { font-size: 15px; }
  .way { grid-template-columns: 1fr; gap: 12px; padding-block: 24px; }
  .numbers-summary h2 { font-size: 34px; }
  .numbers-summary > p { font-size: 16px; }
  .score { padding: 22px 18px; }
  .score-label { font-size: 17px; }
  .ranking-panel { padding: 24px 20px; }
  .ranking-panel h3 { font-size: 22px; }
  .rank { column-gap: 12px; }
  .ranking-panel .button-small { max-width: none; padding: 12px 20px; font-size: 14px; }
  .way dt { font-size: 30px; }
  .way dd { font-size: 16px; }
  .questions summary { font-size: 16px; }
  .questions details p { font-size: 15px; }
  .join-inner h2 { font-size: 38px; }
  .join-inner > p { font-size: 16px; }
  .button-huge { font-size: 20px; padding: 24px; min-height: 88px; gap: 16px; }
  .button-huge .icon { width: 28px; height: 28px; }
  .join-inner .join-note { font-size: 12px; }
}

@media (max-width: 340px) {
  .scorecard { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
