/* 調整様 — performative-ui inspired surfaces + Zeldec green accent */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans+JP:wght@400;500;600;700&display=swap");

:root,
[data-theme="light"] {
  color-scheme: light;
  --primary: #087a3d;
  --primary-hover: #066832;
  --primary-light: rgba(8, 122, 61, 0.1);
  --primary-muted: rgba(8, 122, 61, 0.18);
  --on-primary: #ffffff;
  --grad-from: #087a3d;
  --grad-mid: #14b8a6;
  --grad-to: #06b6d4;
  --grad: linear-gradient(120deg, var(--grad-from), var(--grad-mid), var(--grad-to));
  --bg: #ffffff;
  --bg-elevated: #f7f7fa;
  --surface-container: #ededf2;
  --text: #0b0b10;
  --text-secondary: #4a4a55;
  --text-muted: #88889a;
  --border: #e6e6ec;
  --border-subtle: #ededf2;
  --border-bright: #d2d2da;
  --yes: #087a3d;
  --maybe: #b86e00;
  --no: #c5221f;
  --best-bg: rgba(8, 122, 61, 0.08);
  --best-border: rgba(8, 122, 61, 0.25);
  --glass: rgba(255, 255, 255, 0.78);
  --glass-soft: rgba(255, 255, 255, 0.55);
  --overlay: rgba(0, 0, 0, 0.04);
  --overlay-strong: rgba(0, 0, 0, 0.06);
  --header-bg: rgba(255, 255, 255, 0.72);
  --footer-bg: rgba(255, 255, 255, 0.6);
  --grid-dot: rgba(0, 0, 0, 0.045);
  --aurora-1: rgba(8, 122, 61, 0.16);
  --aurora-2: rgba(20, 184, 166, 0.12);
  --aurora-3: rgba(6, 182, 212, 0.1);
  --ascii-panel-fill: linear-gradient(180deg, rgba(247, 247, 250, 0.75), rgba(255, 255, 255, 0.35));
  --focus-ring: rgba(8, 122, 61, 0.18);
  --focus-ring-soft: rgba(8, 122, 61, 0.12);
  --glow: 0 0 24px rgba(8, 122, 61, 0.18);
  --glow-strong: 0 0 48px rgba(8, 122, 61, 0.22), 0 0 96px rgba(20, 184, 166, 0.12);
  --btn-primary-shadow: rgba(8, 122, 61, 0.2);
  --btn-primary-shadow-hover: rgba(8, 122, 61, 0.28);
  --button-dark-fill: linear-gradient(180deg, #ffffff, #f4f4f8);
  --button-dark-border: rgba(0, 0, 0, 0.1);
  --hero-gradient-a: rgba(8, 122, 61, 0.06);
  --hero-gradient-b: rgba(6, 182, 212, 0.08);
  --login-gradient-a: rgba(8, 122, 61, 0.1);
  --login-gradient-b: rgba(6, 182, 212, 0.08);
  --alert-warning-bg: rgba(251, 191, 36, 0.12);
  --alert-warning-border: rgba(251, 191, 36, 0.35);
  --alert-warning-text: #92400e;
  --alert-error-bg: rgba(248, 113, 113, 0.12);
  --alert-error-border: rgba(248, 113, 113, 0.35);
  --alert-error-text: #991b1b;
  --alert-info-text: #065f46;
  --code-bg: rgba(0, 0, 0, 0.06);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  --header-height: 64px;
  --max-width: 960px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --primary: #6ee7b7;
    --primary-hover: #a7f3d0;
    --primary-light: rgba(110, 231, 183, 0.12);
    --primary-muted: rgba(110, 231, 183, 0.22);
    --on-primary: #041510;
    --grad-from: #087a3d;
    --grad-mid: #10b981;
    --grad-to: #06b6d4;
    --bg: #08080b;
    --bg-elevated: #0e0e13;
    --surface-container: #14141c;
    --text: #f4f4f6;
    --text-secondary: #a3a3b2;
    --text-muted: #6b6b7a;
    --border: #1f1f2b;
    --border-subtle: #1a1a24;
    --border-bright: #2a2a3a;
    --yes: #6ee7b7;
    --maybe: #fbbf24;
    --no: #f87171;
    --best-bg: rgba(110, 231, 183, 0.1);
    --best-border: rgba(110, 231, 183, 0.3);
    --glass: rgba(15, 15, 22, 0.78);
    --glass-soft: rgba(15, 15, 22, 0.55);
    --overlay: rgba(255, 255, 255, 0.04);
    --overlay-strong: rgba(255, 255, 255, 0.07);
    --header-bg: rgba(14, 14, 19, 0.82);
    --footer-bg: rgba(8, 8, 11, 0.88);
    --grid-dot: rgba(255, 255, 255, 0.025);
    --aurora-1: rgba(8, 122, 61, 0.35);
    --aurora-2: rgba(16, 185, 129, 0.22);
    --aurora-3: rgba(6, 182, 212, 0.18);
    --ascii-panel-fill: linear-gradient(180deg, rgba(20, 20, 28, 0.65), rgba(8, 8, 11, 0.45));
    --focus-ring: rgba(110, 231, 183, 0.22);
    --focus-ring-soft: rgba(110, 231, 183, 0.16);
    --glow: 0 0 24px rgba(8, 122, 61, 0.35);
    --glow-strong: 0 0 48px rgba(8, 122, 61, 0.45), 0 0 96px rgba(6, 182, 212, 0.2);
    --btn-primary-shadow: rgba(0, 0, 0, 0.4);
    --btn-primary-shadow-hover: rgba(0, 0, 0, 0.5);
    --button-dark-fill: linear-gradient(180deg, #1a1a26, #0e0e16);
    --button-dark-border: rgba(255, 255, 255, 0.08);
    --hero-gradient-a: rgba(8, 122, 61, 0.12);
    --hero-gradient-b: rgba(6, 182, 212, 0.1);
    --login-gradient-a: rgba(8, 122, 61, 0.2);
    --login-gradient-b: rgba(6, 182, 212, 0.14);
    --alert-warning-bg: rgba(251, 191, 36, 0.12);
    --alert-warning-border: rgba(251, 191, 36, 0.3);
    --alert-warning-text: #fde68a;
    --alert-error-bg: rgba(248, 113, 113, 0.12);
    --alert-error-border: rgba(248, 113, 113, 0.3);
    --alert-error-text: #fecaca;
    --alert-info-text: #a7f3d0;
    --code-bg: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  }
}

[data-theme="dark"] {
  color-scheme: dark;
  --primary: #6ee7b7;
  --primary-hover: #a7f3d0;
  --primary-light: rgba(110, 231, 183, 0.12);
  --primary-muted: rgba(110, 231, 183, 0.22);
  --on-primary: #041510;
  --grad-from: #087a3d;
  --grad-mid: #10b981;
  --grad-to: #06b6d4;
  --bg: #08080b;
  --bg-elevated: #0e0e13;
  --surface-container: #14141c;
  --text: #f4f4f6;
  --text-secondary: #a3a3b2;
  --text-muted: #6b6b7a;
  --border: #1f1f2b;
  --border-subtle: #1a1a24;
  --border-bright: #2a2a3a;
  --yes: #6ee7b7;
  --maybe: #fbbf24;
  --no: #f87171;
  --best-bg: rgba(110, 231, 183, 0.1);
  --best-border: rgba(110, 231, 183, 0.3);
  --glass: rgba(15, 15, 22, 0.78);
  --glass-soft: rgba(15, 15, 22, 0.55);
  --overlay: rgba(255, 255, 255, 0.04);
  --overlay-strong: rgba(255, 255, 255, 0.07);
  --header-bg: rgba(14, 14, 19, 0.82);
  --footer-bg: rgba(8, 8, 11, 0.88);
  --grid-dot: rgba(255, 255, 255, 0.025);
  --aurora-1: rgba(8, 122, 61, 0.35);
  --aurora-2: rgba(16, 185, 129, 0.22);
  --aurora-3: rgba(6, 182, 212, 0.18);
  --ascii-panel-fill: linear-gradient(180deg, rgba(20, 20, 28, 0.65), rgba(8, 8, 11, 0.45));
  --focus-ring: rgba(110, 231, 183, 0.22);
  --focus-ring-soft: rgba(110, 231, 183, 0.16);
  --glow: 0 0 24px rgba(8, 122, 61, 0.35);
  --glow-strong: 0 0 48px rgba(8, 122, 61, 0.45), 0 0 96px rgba(6, 182, 212, 0.2);
  --btn-primary-shadow: rgba(0, 0, 0, 0.4);
  --btn-primary-shadow-hover: rgba(0, 0, 0, 0.5);
  --button-dark-fill: linear-gradient(180deg, #1a1a26, #0e0e16);
  --button-dark-border: rgba(255, 255, 255, 0.08);
  --hero-gradient-a: rgba(8, 122, 61, 0.12);
  --hero-gradient-b: rgba(6, 182, 212, 0.1);
  --login-gradient-a: rgba(8, 122, 61, 0.2);
  --login-gradient-b: rgba(6, 182, 212, 0.14);
  --alert-warning-bg: rgba(251, 191, 36, 0.12);
  --alert-warning-border: rgba(251, 191, 36, 0.3);
  --alert-warning-text: #fde68a;
  --alert-error-bg: rgba(248, 113, 113, 0.12);
  --alert-error-border: rgba(248, 113, 113, 0.3);
  --alert-error-text: #fecaca;
  --alert-info-text: #a7f3d0;
  --code-bg: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
}

@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4%, -3%) scale(1.08); }
}

@keyframes breathe {
  0%, 100% { box-shadow: var(--shadow-md); }
  50% { box-shadow: var(--glow); }
}

*, *::before, *::after { box-sizing: border-box; }

.app-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.app-bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background:
    radial-gradient(circle at 18px 18px, var(--grid-dot) 1px, transparent 1.5px) 0 0 / 18px 18px;
}

.app-bg__aurora {
  position: absolute;
  inset: -20%;
  filter: blur(50px) saturate(140%);
  animation: aurora-drift 16s ease-in-out infinite alternate;
}

.app-bg__blob {
  position: absolute;
  border-radius: 50%;
}

.app-bg__blob--1 {
  width: 55%;
  height: 45%;
  top: -5%;
  left: 10%;
  background: var(--aurora-1);
}

.app-bg__blob--2 {
  width: 45%;
  height: 40%;
  top: 20%;
  right: -5%;
  background: var(--aurora-2);
}

.app-bg__blob--3 {
  width: 50%;
  height: 35%;
  bottom: -5%;
  left: 25%;
  background: var(--aurora-3);
}

body.app-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

body.page-login {
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.app-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.app-logo__mark {
  display: inline-grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 6px;
  background: var(--grad);
  color: #000;
  font-size: 0.75rem;
  line-height: 1;
}

.app-logo:hover { color: var(--primary); }

.app-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
}

.app-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-full);
  transition: background 0.15s, color 0.15s;
}

.app-nav__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.app-nav__icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.app-nav a:hover {
  color: var(--text);
  background: var(--overlay-strong);
}

.app-nav__user {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.app-nav__cta {
  background: var(--overlay) !important;
  color: var(--primary) !important;
  border: 1px solid var(--border-bright);
}

.app-nav__cta:hover {
  background: var(--overlay-strong) !important;
  border-color: var(--primary-muted);
}

.app-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
}

.app-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--footer-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.page-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-hero--large {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 680px);
  margin: -2rem -1.25rem 3rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ascii-panel-fill, linear-gradient(180deg, var(--glass-soft), transparent));
}

.page-hero__aurora {
  position: absolute;
  inset: -20%;
  filter: blur(50px) saturate(140%);
  animation: aurora-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.page-hero__aurora-blob {
  position: absolute;
  border-radius: 50%;
}

.page-hero__aurora-blob--1 {
  width: 55%;
  height: 45%;
  top: -5%;
  left: 5%;
  background: var(--aurora-1);
}

.page-hero__aurora-blob--2 {
  width: 45%;
  height: 40%;
  top: 15%;
  right: -5%;
  background: var(--aurora-2);
}

.page-hero__aurora-blob--3 {
  width: 50%;
  height: 35%;
  bottom: -10%;
  left: 20%;
  background: var(--aurora-3);
}

.page-hero__ascii {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 1.25rem;
  overflow: hidden;
  border: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: clamp(7px, 0.95vw, 11px);
  line-height: 1.15;
  color: var(--primary);
  opacity: 0.42;
  white-space: pre;
  text-align: left;
  cursor: crosshair;
  user-select: none;
  pointer-events: auto;
}

.page-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 88% 72% at 50% 44%, transparent 0%, var(--bg) 80%);
  opacity: 0.92;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  margin: 0 0 1rem;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--glass-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.eyebrow-pill--sm {
  font-size: 0.75rem;
  padding: 0.3125rem 0.75rem;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--yes);
  box-shadow: 0 0 8px var(--yes);
  flex-shrink: 0;
}

@keyframes caret-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.gradient-text {
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 8s ease infinite;
}

.page-hero__headline {
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  line-height: 1.1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-hero__static {
  display: block;
  margin-bottom: 0.125rem;
  text-align: center;
}

.hero-rotator {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  gap: 0.125rem;
}

.hero-rotator__word {
  white-space: nowrap;
  line-height: 1;
}

.hero-rotator__cursor {
  display: block;
  width: 0.5em;
  height: 0.92em;
  border-radius: 2px;
  flex-shrink: 0;
  margin-bottom: 0.08em;
  color: var(--text);
  background: currentColor;
  -webkit-text-fill-color: currentColor;
}

.hero-rotator__cursor--blink {
  animation: caret-blink 1.05s steps(2, start) infinite;
}

.page-hero__lead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin: 0 0 0.375rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.page-hero__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

.page-title {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.page-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.text-muted { color: var(--text-muted); font-size: 0.875rem; }
.text-hint { color: var(--text-muted); font-size: 0.8125rem; margin-top: 0.25rem; }
.required { color: var(--no); }

.card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.card:hover { border-color: var(--border-bright); }

.card--padded { padding: 1.5rem; }
.card__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.card + .card { margin-top: 1.5rem; }

.hero-panel {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad);
  opacity: 0.08;
  pointer-events: none;
}

.hero-panel__title {
  position: relative;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.5rem;
}

.step-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }

@media (min-width: 640px) {
  .step-grid { grid-template-columns: 1fr 1fr; }
}

.step-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--overlay);
  border: 1px solid var(--border);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-bright);
}

.step-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: var(--grad);
  background-size: 200% 200%;
  color: #000;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.step-card__title { font-weight: 600; margin: 0 0 0.5rem; font-size: 0.9375rem; }
.step-card__desc { font-size: 0.8125rem; color: var(--text-secondary); margin: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-muted);
  box-shadow: var(--glow);
}

.feature-card__title { font-weight: 600; font-size: 0.9375rem; margin: 0 0 0.5rem; }
.feature-card__desc { font-size: 0.8125rem; color: var(--text-secondary); margin: 0; }

.event-list { list-style: none; margin: 0; padding: 0; }

.event-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.event-list__item:last-child { border-bottom: none; }

.event-list__link {
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-list__link:hover { color: var(--primary-hover); text-decoration: underline; }
.event-list__meta { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 1.5rem; }

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 160ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}

.btn-primary {
  position: relative;
  isolation: isolate;
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  background: var(--button-dark-fill);
  border: 1px solid var(--button-dark-border);
  box-shadow: var(--glow);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: var(--grad);
  background-size: 300% 300%;
  z-index: -1;
  filter: blur(12px);
  opacity: 0.5;
  animation: grad-shift 5s ease infinite;
}

.btn-primary:hover {
  box-shadow: var(--glow-strong);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(1px); }
.btn-primary--lg { padding: 0.875rem 2rem; font-size: 1rem; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
}

.btn-secondary:hover {
  background: var(--overlay-strong);
  border-color: var(--primary-muted);
}

.btn-secondary--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
  font-family: inherit;
}

.btn-text:hover { text-decoration: underline; }
.btn-text--danger { color: var(--no); }
.text-center { text-align: center; }

.form-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--glass-soft);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-readonly { font-weight: 500; margin: 0; }

.slot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.slot-row input[type="date"],
.slot-row input[type="time"] {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg-elevated);
}

.slot-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring-soft);
}

.hidden { display: none !important; }

.answer-slot {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--glass-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.answer-slot + .answer-slot { margin-top: 0.75rem; }
.answer-slot__date { font-weight: 600; font-size: 0.9375rem; margin: 0 0 0.75rem; }

.answer-options { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }

.answer-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  font-size: 0.9375rem;
}

.answer-options input[type="radio"] {
  accent-color: var(--primary);
  width: 1.125rem;
  height: 1.125rem;
}

.status-yes { color: var(--yes); font-weight: 600; }
.status-maybe { color: var(--maybe); font-weight: 600; }
.status-no { color: var(--no); font-weight: 600; }

.matrix-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.matrix-table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
}

.matrix-table th,
.matrix-table td {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  vertical-align: middle;
}

/* 外枠は .matrix-wrap が担当するため、外周セルの罫線を除く */
.matrix-table tr > :first-child { border-left: none; }
.matrix-table tr > :last-child { border-right: none; }
.matrix-table thead tr:first-child > * { border-top: none; }
.matrix-table tfoot tr:last-child > * { border-bottom: none; }
.matrix-table tbody tr:last-child > * { border-bottom: none; }

.matrix-table thead th {
  background: var(--surface-container);
  font-weight: 600;
  min-width: 100px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-align: center;
  border-bottom-width: 2px;
}

.matrix-table tbody td {
  text-align: center;
  background: transparent;
}

.matrix-table .name-col {
  text-align: left;
  min-width: 120px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
}

.matrix-table .best-col {
  background: var(--best-bg);
}

.matrix-table thead .best-col {
  box-shadow: inset 0 3px 0 var(--primary);
}

.matrix-table .best-badge {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 0.125rem;
}

.matrix-table tfoot td {
  background: var(--surface-container);
  font-weight: 600;
  text-align: center;
  border-top-width: 2px;
}

.matrix-table tfoot .name-col {
  background: var(--surface-container);
}

.name-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.name-link:hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
}

.copy-btn.copied {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: var(--on-primary) !important;
}

.alert {
  padding: 1rem 1.125rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.alert--warning { background: var(--alert-warning-bg); border: 1px solid var(--alert-warning-border); color: var(--alert-warning-text); }
.alert--error { background: var(--alert-error-bg); border: 1px solid var(--alert-error-border); color: var(--alert-error-text); }
.alert--info { background: var(--primary-light); border: 1px solid var(--primary-muted); color: var(--alert-info-text); }
.alert__title { font-weight: 600; margin: 0 0 0.25rem; }
.alert p { margin: 0.25rem 0 0; }
.alert code { font-size: 0.8125em; background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }

.event-header { margin-bottom: 1.5rem; }
.event-header__organizer { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.event-header__memo { margin: 0.75rem 0 0; color: var(--text-secondary); white-space: pre-wrap; font-size: 0.9375rem; }

.slot-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }

.slot-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  background: var(--glass-soft);
}

.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.login-card__logo {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.login-card__sub {
  text-align: center;
  margin: 0 0 1.5rem;
}

.login-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  background: var(--button-dark-fill);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.login-google:hover {
  background: var(--overlay-strong);
  box-shadow: var(--glow);
  border-color: var(--primary-muted);
}

.login-google.is-disabled,
.login-google.is-disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  background: var(--button-dark-fill);
  border-color: var(--border-bright);
}

.in-app-browser-steps {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
  text-align: left;
  font-size: 0.875rem;
  line-height: 1.55;
}

.in-app-browser-steps li + li {
  margin-top: 0.375rem;
}

.login-hint { text-align: center; font-size: 0.8125rem; color: var(--text-muted); margin: 0 0 1.25rem; }
.login-hint strong { color: var(--primary); }

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.1875rem;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-full);
  background: var(--glass-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.theme-switch--floating {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.theme-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.5rem;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.theme-switch__btn:hover {
  color: var(--text-secondary);
  background: var(--primary-light);
}

.theme-switch__btn.is-active {
  color: var(--primary);
  background: var(--overlay-strong);
  box-shadow: var(--shadow-sm);
}

.theme-switch__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.theme-switch__label {
  display: none;
}

@media (min-width: 768px) {
  .theme-switch--floating .theme-switch__btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
  }

  .theme-switch--floating .theme-switch__label {
    display: inline;
  }
}

@media (max-width: 767px) {
  .page-hero--large {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    min-height: min(62vh, 520px);
  }

  .page-hero__ascii {
    font-size: 6px;
    padding: 0.75rem;
  }

  .app-header__inner {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .app-logo {
    font-size: 1.125rem;
    white-space: nowrap;
  }

  .app-nav {
    gap: 0.375rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .app-nav__user { display: none; }

  .app-nav__label {
    display: none;
  }

  .app-nav a.app-nav__icon-link {
    padding: 0.4375rem;
  }

  .theme-switch {
    padding: 0.125rem;
    gap: 0;
  }

  .theme-switch__btn {
    padding: 0.4375rem;
  }

  .theme-switch__icon {
    width: 0.9375rem;
    height: 0.9375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-bg__aurora,
  .page-hero__aurora,
  .gradient-text,
  .btn-primary::before,
  .hero-rotator__cursor--blink {
    animation: none;
  }

  .step-card:hover,
  .feature-card:hover,
  .btn-primary:hover {
    transform: none;
  }
}
