:root {
  --mint: #ddf2e7;
  --aubergine: #25182d;
  --coral: #f45d48;
  --blue: #3349c9;
  --citron: #ddf34e;
  --white: #fffdf7;
  --header-bg: rgba(221, 242, 231, 0.9);
  --header-ink: var(--aubergine);
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --page-pad: clamp(1.25rem, 4vw, 5.5rem);
  --header-height: 4.75rem;
  --space-section: clamp(5rem, 10vw, 10rem);
  --title-xl: clamp(3rem, 8.4vw, 9rem);
  --title-lg: clamp(2.4rem, 5.7vw, 6.4rem);
  --body-lg: clamp(1.05rem, 1.55vw, 1.45rem);
  --line: 1.7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--mint);
  color: var(--aubergine);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body[data-tone="aubergine"] {
  --header-bg: rgba(37, 24, 45, 0.9);
  --header-ink: var(--white);
}

body[data-tone="coral"] {
  --header-bg: rgba(244, 93, 72, 0.9);
  --header-ink: var(--aubergine);
}

body[data-tone="blue"] {
  --header-bg: rgba(51, 73, 201, 0.9);
  --header-ink: var(--white);
}

body[data-tone="citron"] {
  --header-bg: rgba(221, 243, 78, 0.9);
  --header-ink: var(--aubergine);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.7rem var(--page-pad);
  background: var(--header-bg);
  color: var(--header-ink);
  border-bottom: 1px solid currentColor;
  backdrop-filter: blur(12px);
  transition: background-color 260ms ease, color 260ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(42rem, 48vw);
  color: inherit;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
}

.brand-mark {
  color: var(--coral);
  font-family: var(--font-serif);
  font-size: 2.1rem;
  line-height: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
}

.site-nav a {
  position: relative;
  padding: 0.8rem 0.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0.05rem;
  bottom: 0.35rem;
  width: 0.48rem;
  height: 0.48rem;
  background: var(--citron);
  border: 1px solid var(--aubergine);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scale(1);
}

.menu-toggle {
  display: none;
}

:focus-visible {
  outline: 3px solid var(--citron);
  outline-offset: 4px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: max(46rem, 100svh);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto auto;
  gap: 1.2rem 1rem;
  padding: calc(var(--header-height) + clamp(2rem, 7vh, 6rem)) var(--page-pad) clamp(2rem, 6vh, 5rem);
  background: var(--mint);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 22%;
  right: -6vw;
  width: clamp(10rem, 34vw, 35rem);
  aspect-ratio: 1;
  background: var(--citron);
  border-radius: 50%;
}

.hero-company {
  grid-column: 1 / 8;
  align-self: start;
  margin: 0;
  padding-top: 0.45rem;
  border-top: 2px solid currentColor;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 650;
}

.hero-title {
  grid-column: 2 / 12;
  align-self: end;
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--title-xl);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.96;
}

.hero-title span {
  color: var(--coral);
}

.hero-highlight {
  grid-column: 5 / 12;
  margin: 0;
  padding: 1rem 0 0.8rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.35vw, 2.35rem);
  font-weight: 600;
}

.hero-subtitle {
  grid-column: 2 / 8;
  margin: 0;
  max-width: 46rem;
  font-size: var(--body-lg);
  line-height: var(--line);
}

.hero-links {
  grid-column: 9 / 13;
  align-self: end;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.hero-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  min-height: 2.75rem;
  padding: 0.65rem 0;
  border-bottom: 2px solid currentColor;
  font-weight: 700;
  text-decoration: none;
}

.hero-links span {
  color: var(--coral);
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 0;
}

.hero-punctuation {
  position: absolute;
  z-index: -1;
  color: var(--blue);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 0.7;
  pointer-events: none;
}

.punctuation-colon {
  top: 17%;
  left: -0.06em;
  font-size: clamp(9rem, 25vw, 26rem);
  opacity: 0.13;
}

.punctuation-comma {
  right: 4vw;
  bottom: -0.1em;
  color: var(--coral);
  font-size: clamp(8rem, 19vw, 20rem);
  opacity: 0.28;
}

.services-intro {
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-section) var(--page-pad) 3rem;
  background: var(--aubergine);
  color: var(--white);
}

.services-intro h2,
.advantages > h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--title-lg);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.services-intro h2 span,
.advantages > h2 span {
  color: var(--citron);
}

.service-movement {
  position: relative;
  min-height: clamp(34rem, 82vh, 55rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  overflow: hidden;
  padding: var(--space-section) var(--page-pad);
}

.movement-copy {
  position: relative;
  z-index: 1;
  max-width: 55rem;
}

.movement-copy h3 {
  margin: 0 0 clamp(2rem, 5vw, 5rem);
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 6vw, 6.7rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.movement-highlight {
  margin: 0 0 1.25rem;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 700;
}

.movement-copy p:last-child {
  max-width: 44rem;
  margin: 0;
  font-size: var(--body-lg);
  line-height: var(--line);
}

.movement-punctuation {
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(18rem, 48vw, 50rem);
  font-weight: 700;
  line-height: 0.7;
  opacity: 0.16;
  pointer-events: none;
}

.service-brand {
  background: var(--coral);
  color: var(--aubergine);
}

.service-brand .movement-copy {
  grid-column: 2 / 10;
}

.service-brand .movement-punctuation {
  top: 0.05em;
  right: -0.12em;
}

.service-digital {
  background: var(--blue);
  color: var(--white);
}

.service-digital .movement-copy {
  grid-column: 5 / 13;
}

.service-digital .movement-punctuation {
  left: -0.15em;
  bottom: -0.1em;
  color: var(--citron);
}

.service-event {
  background: var(--citron);
  color: var(--aubergine);
}

.service-event .movement-copy {
  grid-column: 1 / 9;
  transform: translateY(4vw);
}

.service-event .movement-punctuation {
  right: 8vw;
  top: 0.05em;
  color: var(--coral);
}

.service-system {
  background: var(--aubergine);
  color: var(--white);
}

.service-system .movement-copy {
  grid-column: 4 / 12;
  transform: translateY(-3vw);
}

.service-system .movement-punctuation {
  left: -0.18em;
  top: 0.12em;
  color: var(--coral);
}

.about {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--space-section) * 1.2) var(--page-pad);
  overflow: hidden;
  background: var(--mint);
}

.about-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 68rem);
  padding: clamp(2rem, 6vw, 6rem);
  background: var(--white);
  box-shadow: 1.1rem 1.1rem 0 var(--blue);
}

.about-copy::before {
  content: "「";
  position: absolute;
  top: -0.42em;
  left: -0.16em;
  color: var(--coral);
  font-family: var(--font-serif);
  font-size: clamp(9rem, 17vw, 18rem);
  font-weight: 700;
  line-height: 1;
  opacity: 0.92;
}

.about h2 {
  position: relative;
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 600;
  letter-spacing: -0.06em;
}

.about h2 span {
  color: var(--coral);
}

.about-copy p {
  margin: 0 0 1.35rem;
  font-size: var(--body-lg);
  line-height: 1.9;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-orbit span {
  position: absolute;
  padding: 0.35rem 0.5rem;
  background: var(--citron);
  border: 1px solid var(--aubergine);
  font-size: clamp(0.72rem, 1vw, 0.95rem);
  font-weight: 700;
}

.about-orbit span:nth-child(1) {
  top: 13%;
  left: 4%;
  transform: rotate(-5deg);
}

.about-orbit span:nth-child(2) {
  top: 10%;
  right: 7%;
  background: var(--coral);
  transform: rotate(4deg);
}

.about-orbit span:nth-child(3) {
  bottom: 11%;
  left: 8%;
  background: var(--coral);
  transform: rotate(3deg);
}

.about-orbit span:nth-child(4) {
  right: 3%;
  bottom: 14%;
  transform: rotate(-4deg);
}

.advantages {
  position: relative;
  min-height: 100svh;
  padding: var(--space-section) var(--page-pad) calc(var(--space-section) * 1.4);
  overflow: hidden;
  background: var(--coral);
  color: var(--aubergine);
}

.echo-flow {
  position: relative;
  width: min(100%, 92rem);
  margin: clamp(4rem, 9vw, 9rem) auto 0;
}

.echo-flow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 42vw;
  max-width: 42rem;
  border: clamp(2.5rem, 7vw, 7rem) solid var(--citron);
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0.85;
}

.advantage {
  position: relative;
  z-index: 1;
  width: min(48rem, 62%);
  padding: clamp(1.4rem, 2.8vw, 2.6rem) 0;
  border-top: 2px solid currentColor;
}

.advantage h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.1vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.advantage p {
  margin: 0;
  max-width: 39rem;
  font-size: var(--body-lg);
  line-height: var(--line);
}

.advantage-second,
.advantage-fourth {
  margin-left: auto;
}

.advantage-third {
  margin-left: 8%;
}

.advantage-fourth {
  width: min(44rem, 55%);
  margin-right: 7%;
}

.advantages-stop {
  position: absolute;
  right: -0.1em;
  bottom: -0.22em;
  color: var(--blue);
  font-family: var(--font-serif);
  font-size: clamp(15rem, 40vw, 42rem);
  font-weight: 700;
  line-height: 1;
  opacity: 0.23;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  min-height: 11rem;
  padding: 2.5rem var(--page-pad);
  background: var(--aubergine);
  color: var(--white);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  padding: 0.35rem 0;
  text-underline-offset: 0.3em;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  :root {
    --header-height: 4.25rem;
    --page-pad: clamp(1rem, 5vw, 1.5rem);
    --space-section: 4.5rem;
  }

  .brand {
    max-width: calc(100vw - 7rem);
    font-size: 0.72rem;
  }

  .brand-mark {
    font-size: 1.65rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    width: 2.85rem;
    height: 2.85rem;
    display: grid;
    place-content: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    padding: 0;
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    border-radius: 50%;
  }

  .menu-toggle span {
    width: 1.15rem;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(0.23rem) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-0.23rem) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 0.7rem var(--page-pad) 1rem;
    background: var(--header-bg);
    border-bottom: 1px solid currentColor;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.6rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 3rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid currentColor;
  }

  .site-nav a::after {
    right: 0.2rem;
    bottom: 1.22rem;
  }

  .hero {
    min-height: 100svh;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: auto 1fr auto auto auto;
    gap: 1rem;
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero::before {
    top: 19%;
    right: -26vw;
    width: 75vw;
  }

  .hero-company {
    grid-column: 1 / 6;
  }

  .hero-title {
    grid-column: 1 / 7;
    font-size: clamp(3.1rem, 16vw, 5rem);
    line-height: 1;
  }

  .hero-highlight {
    grid-column: 2 / 7;
    font-size: 1.2rem;
  }

  .hero-subtitle {
    grid-column: 1 / 7;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-links {
    grid-column: 1 / 7;
    justify-content: space-between;
  }

  .punctuation-colon {
    top: 26%;
  }

  .services-intro {
    min-height: 44vh;
  }

  .service-movement {
    min-height: 75svh;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .service-brand .movement-copy,
  .service-digital .movement-copy,
  .service-event .movement-copy,
  .service-system .movement-copy {
    grid-column: 1 / 7;
    transform: none;
  }

  .movement-copy h3 {
    margin-bottom: 2.5rem;
    font-size: clamp(2.65rem, 13vw, 4.5rem);
  }

  .movement-highlight {
    font-size: 1.2rem;
  }

  .movement-copy p:last-child {
    font-size: 1rem;
  }

  .movement-punctuation {
    font-size: 75vw;
    opacity: 0.12;
  }

  .about {
    padding-top: 7rem;
    padding-bottom: 8rem;
  }

  .about-copy {
    padding: 3.6rem 1.35rem 2rem;
    box-shadow: 0.55rem 0.55rem 0 var(--blue);
  }

  .about-copy::before {
    top: -0.28em;
  }

  .about h2 {
    font-size: 3rem;
  }

  .about-copy p {
    font-size: 1rem;
    line-height: 1.85;
  }

  .about-orbit span {
    display: none;
  }

  .advantages > h2 {
    font-size: 3rem;
  }

  .echo-flow::before {
    left: auto;
    right: -35vw;
    width: 70vw;
    transform: none;
    opacity: 0.55;
  }

  .advantage,
  .advantage-fourth {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding: 2rem 0;
  }

  .advantage h3 {
    font-size: 2rem;
  }

  .advantage p {
    font-size: 1rem;
  }

  .site-footer {
    flex-direction: column;
    min-height: 13rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) {
  .about-copy p:nth-of-type(2) {
    margin-left: 8%;
    max-width: 88%;
  }

  .about-copy p:nth-of-type(3) {
    margin-left: 18%;
    max-width: 80%;
  }
}

@media (min-width: 1100px) {
  .hero-title {
    max-width: 82rem;
  }

  .service-movement {
    min-height: 90vh;
  }

  .movement-copy p:last-child {
    max-width: 39rem;
  }

  .about-copy {
    transform: rotate(-0.6deg);
  }

  .advantage-second {
    transform: translateY(-1.5rem);
  }

  .advantage-third {
    transform: translateY(1rem);
  }
}

@media (min-width: 1440px) {
  :root {
    --page-pad: clamp(5.5rem, 6vw, 8.5rem);
  }

  .hero-company {
    grid-column-end: 7;
  }

  .hero-title {
    grid-column: 2 / 11;
  }

  .service-brand .movement-copy {
    grid-column: 2 / 9;
  }

  .service-digital .movement-copy {
    grid-column: 6 / 12;
  }

  .service-event .movement-copy {
    grid-column: 1 / 8;
  }

  .service-system .movement-copy {
    grid-column: 5 / 11;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  :root {
    --header-height: 3.6rem;
    --space-section: 3.5rem;
  }

  .site-header {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .brand {
    max-width: 50vw;
  }

  .hero {
    min-height: 42rem;
    padding-top: calc(var(--header-height) + 1.25rem);
  }

  .service-movement {
    min-height: 34rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .about {
    min-height: 40rem;
  }

  .advantages {
    min-height: 42rem;
  }
}

@media (min-aspect-ratio: 2 / 1) {
  .hero {
    min-height: 44rem;
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero-title {
    font-size: clamp(4.5rem, 7vw, 7.5rem);
  }

  .service-movement {
    min-height: 38rem;
  }

  .about {
    min-height: 46rem;
  }
}

@media (max-aspect-ratio: 3 / 4) {
  .hero {
    min-height: 100svh;
  }

  .service-movement {
    min-height: 78svh;
  }

  .about {
    min-height: 100svh;
  }
}

@media (min-aspect-ratio: 2 / 1) and (max-height: 500px) {
  .hero {
    min-height: 100svh;
    gap: 0.35rem 1rem;
    padding-top: calc(var(--header-height) + 0.65rem);
    padding-bottom: 0.65rem;
  }

  .hero-title {
    font-size: clamp(3rem, 6.3vw, 3.5rem);
    line-height: 0.92;
  }

  .hero-highlight {
    padding: 0.35rem 0;
    font-size: 1.05rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .hero-links a {
    min-height: 2.2rem;
    padding: 0.35rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
