:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #111112;
  --muted: #6b6e76;
  --border: #e4e7eb;
  --accent: #111112;
  --accent-muted: rgba(17, 17, 18, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans JP', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

img,
video {
  max-width: 100%;
  display: block;
}

p {
  line-height: 1.7;
}

main {
  opacity: 0;
  transition: opacity 0.4s ease;
}

main.is-visible {
  opacity: 1;
}

.hero {
  padding: 6rem clamp(1.5rem, 5vw, 6rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0;
}

.lede {
  font-size: 1.1rem;
  max-width: 48ch;
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary {
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.button-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 15px 30px rgba(17, 17, 18, 0.15);
}

.button-secondary {
  border-color: var(--border);
  background: transparent;
}

.button-primary:focus-visible,
.button-secondary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.button-primary:hover,
.button-secondary:hover {
  transform: translateY(-2px);
}

.section {
  padding: 4rem clamp(1.5rem, 5vw, 6rem);
}

.section--alt {
  background: #f7f8fa;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.section-subheader {
  margin-top: 4rem;
  margin-bottom: 1.5rem;
}

.section-subheader h3 {
  margin: 0.25rem 0 0;
  font-size: 1.5rem;
}

.video-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.3s ease;
}

.video-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  background: #000;
}

.video-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-card__title {
  margin: 0;
  font-size: 1.1rem;
}

.video-card__desc {
  margin: 0;
  color: var(--muted);
}

.video-card:hover {
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.12);
}

.web-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.web-card {
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.web-card__media {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.web-card__media::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.web-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.web-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.web-card__title {
  margin: 0;
  font-size: 1.1rem;
}

.web-card__desc {
  margin: 0;
  color: var(--muted);
}

.web-card__link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.web-card__link::after {
  content: '↗';
  font-size: 0.9rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.about-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
}

.about-grid li + li {
  margin-top: 0.5rem;
}

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

.site-footer {
  padding: 2.5rem clamp(1.5rem, 5vw, 6rem) 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.to-top {
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
}

.auth-card {
  background: #fff;
  border-radius: 32px;
  padding: clamp(2rem, 5vw, 3rem);
  width: min(420px, 100%);
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.auth-card.is-loading .button-primary {
  opacity: 0.6;
  pointer-events: none;
}

.auth-card__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-card label {
  font-weight: 600;
}

.auth-card input {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.auth-error {
  min-height: 1.25rem;
  color: #d6001c;
  font-weight: 600;
  margin: 0;
}

.auth-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 600px) {
  .hero {
    padding-top: 4rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .auth-card {
    border-radius: 24px;
  }
}
