:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --text: #111111;
  --muted: rgba(17, 17, 17, 0.68);
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.2);
  --accent: #e31217;
  --accent-dark: #bf0d12;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  --container: 1200px;
  --header-h: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
}

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

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

button,
a.button {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  border-right-color: transparent;
  transform: rotate(-16deg);
}

.brand-name {
  font-size: 1.05rem;
}

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
  font-weight: 800;
}

.header-nav a {
  position: relative;
  padding: 6px 0;
}

.header-nav a::after,
.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.header-nav a:hover::after,
.footer-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.header-cta {
  background: var(--accent);
  color: #fff;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  align-items: center;
  justify-content: center;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-button span::before,
.menu-button span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-button span::before {
  top: -6px;
}

.menu-button span::after {
  top: 6px;
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.mobile-menu-inner {
  display: grid;
  gap: 10px;
  padding: 18px 0 22px;
}

.mobile-menu-inner a {
  font-weight: 800;
  padding: 8px 0;
}

.mobile-menu-cta {
  margin-top: 4px;
  justify-self: start;
  padding: 0 18px;
  min-height: 46px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
}

.hero {
  padding-top: var(--header-h);
}

.hero,
.section {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.hero-stage {
  position: relative;
  min-height: clamp(470px, 52svh, 620px);
  overflow: clip;
  background: #000;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02) 55%, rgba(0, 0, 0, 0.12)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06), transparent 34%, transparent 72%, rgba(0, 0, 0, 0.12));
}

.hero-title-wrap {
  position: absolute;
  right: 5.2%;
  bottom: 31%;
  max-width: 58%;
  background: rgba(255, 255, 255, 0.98);
  padding: 1.1rem 1.4rem 1.05rem;
  box-shadow: var(--shadow);
}

.hero-title {
  margin: 0;
  font-size: clamp(3.2rem, 4.7vw, 4.5rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  word-break: keep-all;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.dot {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  padding: 0;
}

.dot.is-active {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.65);
}

.section {
  padding: 92px 0;
}

.mission-section {
  padding-top: 88px;
}

.mission-grid,
.solution-layout,
.proof-grid,
.contact-grid {
  display: grid;
  gap: 40px;
}

.mission-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
}

.section-kicker {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
}

.section-kicker--light {
  color: rgba(255, 255, 255, 0.86);
}

.section-title {
  margin: 0;
  font-size: 3rem;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.section-copy,
.solution-intro,
.contact-copy,
.support-item p,
.feature-card p,
.process-card p,
.service-category p,
.partner-card p,
.about-panel p {
  color: var(--muted);
  font-size: 1.01rem;
}

.section-copy p {
  margin: 0 0 1.1rem;
}

.solution-section {
  background: var(--bg-soft);
}

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

.service-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
  margin-bottom: 18px;
}

.service-category {
  padding: 26px 28px 28px;
  border-right: 1px solid var(--line);
}

.service-category:last-child {
  border-right: 0;
}

.category-label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
  color: rgba(17, 17, 17, 0.45);
}

.service-category h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 900;
  word-break: keep-all;
}

.service-category p {
  margin: 0;
}

.category-links,
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.category-links a,
.about-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 800;
  background: #fff;
}

.category-links a::after,
.about-links a::after {
  content: "->";
  margin-left: 8px;
  color: var(--accent);
}

.solution-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
}

.solution-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 28px;
}

.solution-panel--lead {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 100%;
}

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

.price-row > div {
  border-top: 2px solid var(--accent);
  padding-top: 12px;
}

.price-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(17, 17, 17, 0.56);
}

.price-value {
  font-size: 1.8rem;
  line-height: 1.15;
}

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

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 100%;
}

.feature-index {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--accent);
}

.feature-card h3,
.support-item h3,
.process-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.proof-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.proof-media img {
  width: 100%;
  aspect-ratio: 1.24 / 1;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}

.proof-copy {
  display: grid;
  gap: 24px;
}

.support-list {
  display: grid;
  gap: 18px;
}

.support-item {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.process-section {
  background: #fff;
}

.partners-section {
  background: var(--bg-soft);
}

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

.partner-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.partner-card h3,
.about-panel h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.28;
  font-weight: 900;
  word-break: keep-all;
}

.about-section {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.about-panel {
  padding: 30px;
  border-left: 4px solid var(--accent);
  background: #fff;
}

.about-panel p {
  margin: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.process-card {
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 100%;
}

.process-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
}

.contact-section {
  background: #111;
  color: #fff;
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
}

.contact-title {
  margin: 0;
  font-size: 3.15rem;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.contact-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px;
}

.contact-copy {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.74);
}

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

.button {
  min-width: 200px;
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.button--secondary:hover {
  border-color: rgba(255, 255, 255, 0.46);
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 26px 0 32px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
}

.footer-note {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 800;
}

.footer-nav a {
  position: relative;
  padding-bottom: 4px;
}

@media (max-width: 1060px) {
  .header-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .mission-grid,
  .solution-layout,
  .proof-grid,
  .contact-grid,
  .service-categories,
  .partners-grid,
  .about-grid,
  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .section-heading {
    display: grid;
  }

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

  .service-category {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-category:last-child {
    border-bottom: 0;
  }

  .hero-title-wrap {
    right: 18px;
    left: 18px;
    max-width: none;
    bottom: 22%;
  }

  .hero-title {
    font-size: 3rem;
    white-space: normal;
  }

  .section-title,
  .contact-title {
    font-size: 2.45rem;
  }

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

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  .header-inner {
    height: 68px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero-stage {
    min-height: clamp(470px, 58svh, 560px);
  }

  .hero-title-wrap {
    bottom: 19%;
    padding: 0.8rem 0.9rem 0.75rem;
  }

  .hero-eyebrow {
    font-size: 0.72rem;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .hero-dots {
    bottom: 11%;
    gap: 8px;
  }

  .dot {
    width: 15px;
    height: 15px;
  }

  .section {
    padding: 68px 0;
  }

  .mission-section {
    padding-top: 64px;
  }

  .section-title,
  .contact-title {
    font-size: 2rem;
  }

  .solution-panel,
  .service-category,
  .feature-card,
  .partner-card,
  .process-card,
  .about-panel,
  .contact-panel {
    padding: 20px;
  }

  .category-links,
  .about-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .price-row {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

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

  .footer-nav {
    gap: 14px;
  }
}
