:root {
  --ink: #022a3e;
  --body: #333333;
  --muted: #707070;
  --blue: #32b0e6;
  --navy: #3f4998;
  --pink: #e7447a;
  --paper: #ffffff;
  --soft: #f9f9f9;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--body);
  background: var(--paper);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

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

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.loader img {
  width: 90px;
  animation: loaderPulse 1.1s ease-in-out infinite;
}

body.loaded .loader {
  opacity: 0;
  visibility: hidden;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 90px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease, height 0.25s ease;
}

.site-header.is-scrolled {
  height: 70px;
  box-shadow: 0 8px 25px rgba(2, 42, 62, 0.08);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  align-items: center;
}

.brand img {
  width: 118px;
}

.global-nav {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 52px);
  color: var(--muted);
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 2.25px;
}

.global-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.global-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  content: "";
}

.global-nav a:hover,
.global-nav a:focus-visible {
  color: var(--ink);
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 900px;
  padding: 190px max(24px, calc((100vw - var(--max)) / 2)) 50px;
  overflow: hidden;
  background: #fff;
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(560px, 100%);
  margin-left: clamp(0px, 3vw, 80px);
  animation: slideUp 0.9s ease both 0.35s;
  pointer-events: none;
}

.hero-copy-sp {
  display: none;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.28;
}

.hero p {
  margin: 8px 0 0;
  color: #8b9aa4;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 300;
}

.pink {
  color: var(--pink);
}

.blue {
  color: var(--navy);
}
.bold {
    font-weight: 600;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #fff;
}

.hero-video-media {
  position: absolute;
  border: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-video-sp {
  display: none;
  margin: 17% auto 0 auto;
}

.hero-video-pc {
  object-fit: contain;
  background: #fff;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 40px;
  z-index: 3;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  transform: translateX(-50%);
}

.scroll-cue img {
  width: 50px;
  margin-top: 4px;
  animation: bounce 1.6s ease-in-out infinite;
}

.service,
.about,
.message,
.recruit,
.news,
.movie {
  position: relative;
  overflow: hidden;
}

.service {
  min-height: 886px;
  padding: 60px 0 120px;
  background: var(--soft);
}

.section-heading {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.section-heading p,
.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.4;
}

.section-heading h2,
.about-copy h2,
.message-copy h2,
.recruit-copy h2,
.contact-band h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Montserrat Alternates", Inter, sans-serif;
  font-size: clamp(46px, 5vw, 60px);
  line-height: 1.4;
}

.service-band {
  position: absolute;
  left: 15%;
  right: 0;
  top: 290px;
  height: 476px;
  border-radius: 500px 0 0 500px;
  background: rgba(50, 176, 230, 0.5);
}

.line-art {
  width: 450px;
  height: 588px;
  object-fit: cover;
  opacity: 0.6;
  transform: translate(260px, -56px);
}

.service-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  margin: 120px auto 0;
  display: grid;
  grid-template-columns: 1fr 412px;
  align-items: end;
  gap: 50px;
}

.service-card {
  justify-self: end;
  width: 384px;
  padding: 30px;
  background: #fff;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card img {
  width: 200px;
}

.service-card h3 {
  margin: 24px 0 8px;
  color: #333;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 2.8px;
  line-height: 1.5;
}

.service-card p,
.about-copy p,
.recruit-copy p {
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 1.8;
}

.service-product {
  width: 412px;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

.more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 144px;
  height: 43px;
  margin-top: 18px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 300;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.more-button img {
  width: 14px;
}

.more-button:hover,
.more-button:focus-visible {
  color: #fff;
  background: var(--ink);
  transform: translateY(-3px);
}

.movie {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 515px;
  gap: 80px;
  align-items: center;
  padding: 44px max(9%, calc((100vw - 1405px) / 2)) 80px;
  background: rgba(249, 249, 249, 0.9);
}

.movie-copy {
  letter-spacing: 2.4px;
}

.movie-copy .small {
  margin-bottom: 56px;
  font-size: 13px;
}

.movie-link {
  display: inline-block;
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}

.video-card {
  position: relative;
  aspect-ratio: 515 / 319;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-thumb {
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)), url("img/news-dainote.webp") center / cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumb {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 50px;
  border-radius: 14px;
  background: #e11936;
  transform: translate(-50%, -50%);
}

.play-button::after {
  position: absolute;
  left: 31px;
  top: 15px;
  border-left: 17px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  content: "";
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 698px) minmax(320px, 512px);
  gap: 70px;
  align-items: end;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 172px 0 100px;
}

.about-image img {
  width: 698px;
}

.message {
  display: grid;
  grid-template-columns: minmax(320px, 598px) minmax(300px, 426px);
  gap: 50px;
  align-items: start;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 92px 0 204px;
}

.leader {
  margin: 10px 0 28px;
  font-size: 20px;
}

.message-text {
  display: grid;
  gap: 22px;
  font-size: 12px;
  letter-spacing: 1.95px;
  line-height: 2.15;
}

.message-text p {
  margin: 0;
}

.message-photo {
  width: 426px;
}

.recruit {
  background: var(--soft);
  display: grid;
  grid-template-columns: minmax(320px, 546px) minmax(320px, 704px);
  gap: 30px;
  align-items: center;
  padding: 150px max(24px, calc((100vw - var(--max)) / 2)) 50px;
}

.tagline {
  margin: 0 0 18px;
  font-size: 24px !important;
  line-height: 1.35 !important;
}

.confetti {
  width: 455px;
  margin: 70px 0 0 -200px;
}

.recruit-main {
  width: 704px;
}

.news {
  padding: 60px max(24px, calc((100vw - var(--max)) / 2)) 96px;
}

.align-left {
  width: auto;
}

.news-grid {
  max-width: 1026px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
}

.news-card {
  cursor: pointer;
}

.news-card img {
  width: 312px;
  height: 204px;
  object-fit: cover;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card h3 {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.news-card:hover img {
  box-shadow: 0 16px 30px rgba(2, 42, 62, 0.15);
  transform: translateY(-6px);
}

.news-more {
  margin-top: 35px;
}

.contact-band {
  min-height: 516px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #fff;
  background:
    linear-gradient(rgba(2, 42, 62, 0.55), rgba(2, 42, 62, 0.8)),
    url("img/recruit-main.webp") center / cover;
}

.contact-band h2,
.contact-band p {
  color: #fff;
  margin: 0 auto;
    width: 90%;
    text-align: center;
}

.contact-band a {
  margin-top: 22px;
  padding: 11px 40px;
  border: 1px solid #fff;
  border-radius: 999px;
  font-family: Montserrat, sans-serif;
  letter-spacing: 2px;
  transition: background 0.25s ease, color 0.25s ease;
}

.contact-band a:hover {
  background: #fff;
  color: var(--ink);
}

.footer {
  position: relative;
  display: grid;
  place-items: center;
  gap: 22px;
  padding: 60px 24px;
  color: #fff;
  background: var(--ink);
}

.footer-logo {
  width: 259px;
}

.footer nav,
.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  font-size: 15px;
  letter-spacing: 2.25px;
}

.legal {
  gap: 18px;
  font-size: 13px;
}

.footer a {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.footer a:hover {
  opacity: 1;
}

.page-top {
  position: absolute;
  left: 70px;
  top: 115px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.section-reveal,
.float-in,
.news-card {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.section-reveal.is-visible,
.float-in.is-visible,
.news-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loaderPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.92) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(8deg);
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 60px;
  }

  .header-inner {
    width: calc(100% - 50px);
    grid-template-columns: 1fr auto;
  }

  .brand img {
    width: 118px;
  }

  .menu-button {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span {
    position: absolute;
    left: 9.5px;
    width: 31px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.25s ease;
  }

  .menu-button span:first-child {
    top: 19px;
  }

  .menu-button span:last-child {
    top: 30px;
  }

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

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

  .global-nav {
    position: fixed;
    inset: 60px 0 auto;
    display: grid;
    gap: 0;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 30px rgba(2, 42, 62, 0.08);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }

  .global-nav.is-open {
    transform: translateY(0);
  }

  .global-nav a {
    padding: 12px 0;
  }

  .hero {
    min-height: 840px;
    padding-top: 118px;
  }

  .hero-video-pc {
    display: none;
  }

  .hero-video-sp {
    display: block;
  }

  .hero-copy-desktop {
    display: none;
  }

  .hero-copy-sp {
    display: block;
  }

  .hero-copy {
    margin-left: 0;
  }

  .hero h1 {
    color: var(--ink);
    font-size: 30px;
    line-height: 1.28;
  }

  .hero p {
    width: 250px;
    margin-top: 8px;
    color: #8b9aa4;
    font-size: 11px;
    line-height: 1.5;
  }

  .service,
  .about,
  .message,
  .recruit,
  .news,
  .movie {
    padding-left: 25px;
    padding-right: 25px;
  }

  .service-content,
  .movie,
  .about,
  .message,
  .recruit {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 38px;
  }

  .service {
    min-height: auto;
  }

  .service-band {
    left: 0;
    top: 260px;
    height: 300px;
  }

  .line-art {
    width: 280px;
    height: 365px;
    transform: translate(50px, -30px);
  }

  .service-content {
    margin-top: 260px;
  }

  .service-card {
    justify-self: start;
    width: min(100%, 384px);
  }

  .service-product,
  .recruit-main,
  .message-photo,
  .about-image img {
    width: 90%;
        margin: 0 auto;
  }

  .movie {
    gap: 36px;
  }

  .message,
  .about,
  .recruit {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .confetti {
    width: 90%;
    margin-left: -80px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .news-card {
    display: grid;
    grid-template-columns: 159px 1fr;
    gap: 22px;
    align-items: center;
  }

  .news-card img {
    width: 159px;
    height: 125px;
  }

  .news-card h3 {
    margin: 0;
    font-size: 14px;
  }

  .footer {
    place-items: start;
    padding: 60px 25px;
  }

  .footer nav,
  .legal {
    display: grid;
    justify-content: start;
    gap: 8px;
  }

  .page-top {
    right: 25px;
    left: auto;
    top: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
