/* ============================================
   RESET (destyle-based)
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-style: solid;
  border-width: 0;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #1a1a2e;
  background-color: #ffffff;
  background-image: url('./images/bg-texture.png');
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0;
}

@media screen and (max-width: 960px) {
  body {
    background-attachment: scroll;
    background-size: 150% auto;
  }
}

body.is-loading {
  overflow: hidden;
}

body.is-loaded {
  overflow: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

ul, ol {
  list-style: none;
}

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

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

button, input, select, textarea {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
  background: transparent;
  border-radius: 0;
}

button {
  cursor: pointer;
}

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-text: #1a1a2e;
  --color-text-muted: #555;
  --color-accent: #2856A0;
  --color-accent-dark: #1E3F75;
  --color-accent-light: #3A7BC8;
  --color-green: #1B7340;
  --color-green-light: #27a85b;
  --color-dark: #1a1a2e;
  --color-muted: rgba(240, 242, 245, 0.95);
  --ease-out: cubic-bezier(0.43, 0.05, 0.17, 1);
  --ease-smooth: cubic-bezier(0.26, 0.16, 0.1, 1);
}

/* ============================================
   STAR DECORATIONS
   ============================================ */
.star {
  position: absolute;
  border-top-right-radius: 10px;
  border-top-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 10px;
  opacity: 0;
  transition: opacity 500ms ease-out;
  pointer-events: none;
}

.is-loading .loading__stars .star,
.is-loaded .mv__stars .star {
  opacity: 1;
}

.star.--s { width: 5px; height: 7px; }
.star.--m { width: 8px; height: 10px; }
.star.--l { width: 10px; height: 12px; }

.star.--blue {
  animation: star-blue 3s infinite;
}
@keyframes star-blue {
  0%, 100% { background-color: #3A7BC8; }
  50% { background-color: #a8d4f0; }
}

.star.--orange {
  animation: star-orange 3s infinite;
}
@keyframes star-orange {
  0%, 100% { background-color: #27a85b; }
  50% { background-color: #a8e6c0; }
}

.star.--quick { animation-delay: 1s; }
.star.--normal { animation-delay: 1.5s; }
.star.--lazy { animation-delay: 2s; }

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  user-select: none;
  pointer-events: none;
  width: 100%;
  height: 100svh;
  background-color: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 600ms 200ms ease-out, visibility 600ms 200ms ease-out;
}

.is-opening .loading,
.is-loading .loading {
  opacity: 1;
  visibility: visible;
}

.loading__logo-wrap {
  position: relative;
  z-index: 5;
  text-align: center;
}

.loading__logo-text {
  font-family: "Heebo", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 7rem);
  letter-spacing: 0.15em;
  color: transparent;
  background: linear-gradient(90deg, #1E3F75 30%, #2856A0 50%, #1a1a2e 50%);
  background-size: 400% 100%;
  background-position: 200% 0%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 500ms 400ms ease-out;
}

.is-loading .loading__logo-text {
  clip-path: inset(0 0 0 0);
}

.loading__num-wrap {
  margin-top: 1rem;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #1a1a2e;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 500ms 400ms ease-out;
}

.is-loading .loading__num-wrap {
  clip-path: inset(0 0 0 0);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  color: #1a1a2e;
  padding: 0 clamp(1.25rem, 3.5vw, 3.125rem);
  height: clamp(4rem, 5.8vw, 5.25rem);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.header__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__logo {
  display: block;
  width: clamp(7rem, 13vw, 12rem);
}

.header__logo-img {
  width: 100%;
  height: auto;
}

.header__cert-logo {
  display: block;
  width: clamp(6rem, 10vw, 9rem);
}

.header__cert-logo-img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 960px) {
  .header__cert-logo {
    width: clamp(4.5rem, 8vw, 6rem);
  }
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__nav-logo {
  display: none;
}

.header__nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
  font-weight: 600;
  font-size: 0.875rem;
}

.header__nav__link {
  position: relative;
  letter-spacing: 0.05em;
}

.header__nav__link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 2rem;
  height: 2px;
  background-color: var(--color-accent);
  transition: transform 0.3s var(--ease-out);
}

@media (hover: hover) {
  .header__nav__link:hover::after {
    transform: translateX(-50%) scaleX(1);
  }
}

.header__nav-contact {
  margin-left: 1rem;
}

.header__contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.8rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.875rem;
  transition: background-color 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
}

@media (hover: hover) {
  .header__contact-btn:hover {
    background-color: var(--color-accent);
    color: #fff;
  }
}

.header__hamburger {
  display: none;
  position: relative;
  z-index: 100;
  width: 25px;
  height: 18px;
  background: none;
  flex-shrink: 0;
}

.header__hamburger span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 2px;
  background-color: #1a1a2e;
  transition: background-color 0.3s, top 0.3s, transform 0.3s;
}

.header__hamburger span:first-of-type { top: 0; }
.header__hamburger span:last-of-type { top: 100%; }

.is-open .header__hamburger span { background-color: transparent; }
.is-open .header__hamburger span:first-of-type {
  top: 50%;
  transform: rotate(45deg);
  background-color: var(--color-dark);
}
.is-open .header__hamburger span:last-of-type {
  top: 50%;
  transform: rotate(-45deg);
  background-color: var(--color-dark);
}

/* Mobile nav */
@media screen and (max-width: 960px) {
  .header {
    padding: 0 1.25rem;
  }

  .header__hamburger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: #ffffff;
    color: var(--color-dark);
    padding: 5rem 2rem 3rem;
    overflow-y: auto;
    visibility: hidden;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.5s var(--ease-out), visibility 0.5s;
  }

  .is-open .header__nav {
    visibility: visible;
    clip-path: inset(0 0 0 0);
  }

  .header__nav-logo {
    display: block;
    width: 10rem;
    margin: 0 auto 3rem;
  }

  .header__nav-logo img {
    width: 100%;
  }

  .header__nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-left: 2rem;
    font-size: 1rem;
  }

  .header__nav__link::after { display: none; }

  .header__nav-contact {
    margin: 2rem auto 0;
    width: 100%;
    padding: 0 1rem;
  }

  .header__contact-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--color-accent);
    color: #fff;
    padding: 0.9rem;
  }
}

/* ============================================
   MAIN VISUAL (HERO)
   ============================================ */
.mv {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mv::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: rgb(255, 255, 255);
  transition: background-color 800ms 1800ms var(--ease-out);
}

.is-loaded .mv::before {
  background-color: rgba(255, 255, 255, 0.55);
}

.mv__stars .star {
  z-index: 2;
  transition-delay: 600ms;
}

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

.mv__title {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.2rem, 1vw, 1rem);
  perspective: 800px;
}

.mv__title-char {
  display: inline-block;
  font-family: "Heebo", sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 10vw, 8rem);
  letter-spacing: 0.05em;
  color: var(--color-accent-dark);
  transform: scale(1.2) rotateX(90deg);
  transform-origin: center;
  transition: transform 700ms 1000ms var(--ease-out);
}

.mv__title-char[data-delay="1"] { transition-delay: 1060ms; transform: scale(1.2) rotateY(90deg); }
.mv__title-char[data-delay="2"] { transition-delay: 1120ms; transform: scale(0.8) rotateX(90deg); }
.mv__title-char[data-delay="3"] { transition-delay: 1180ms; transform: scale(1.2) rotateY(90deg); }
.mv__title-char[data-delay="4"] { transition-delay: 1240ms; transform: scale(0.8) rotateX(90deg); }
.mv__title-char[data-delay="5"] { transition-delay: 1300ms; transform: scale(1.2) rotateY(90deg); }
.mv__title-char[data-delay="6"] { transition-delay: 1360ms; transform: scale(1.5) rotateX(90deg); }

.is-loaded .mv__title-char {
  transform: scale(1) rotateX(0) rotateY(0);
}

.mv__subtitle {
  position: relative;
  z-index: 10;
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(1rem, 2.2vw, 2rem);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.1em;
  color: var(--color-dark);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1s 2s var(--ease-out);
}

.is-loaded .mv__subtitle {
  clip-path: inset(0 0 0 0);
}

.mv__lead {
  position: relative;
  z-index: 10;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  text-align: center;
  line-height: 2;
  color: #333;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  opacity: 0;
  transition: opacity 1s 2.5s var(--ease-out);
}

.is-loaded .mv__lead {
  opacity: 1;
}

@media screen and (max-width: 650px) {
  .mv__lead br { display: none; }
  .mv__lead { padding: 0 1.5rem; }
  .mv__subtitle { padding: 0 1.5rem; }
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */
.fade-in {
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}

.is-view .fade-in {
  opacity: 1;
}

.scale-in {
  transform: scale(1.1);
  transition: transform 600ms var(--ease-out);
}

.is-view .scale-in {
  transform: scale(1);
}

.clip-text {
  background: linear-gradient(to right, #1a1a2e 0%, #1a1a2e 100%);
  background-size: 0% 100%;
  background-position: 0% 0%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.clip-text-anim {
  background: linear-gradient(90deg, #1a1a2e);
  background-size: 300% 100%;
  background-position: 200% 0%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 1000ms ease-out;
}

.clip-text-anim.is-teal {
  background: linear-gradient(90deg, #1a1a2e, #1a1a2e 40%, #1E3F75 46%, #2856A0 50%, #3A7BC8 54%, #1B7340 60%, #27a85b 64%, #1a1a2e 68%, #1a1a2e);
  background-size: 300% 100%;
  background-position: 200% 0%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 1000ms ease-out;
}

.is-view .clip-text-anim {
  background-position: 0% 0%;
}

.heading-home-section-title {
  background: linear-gradient(90deg, #1a1a2e, #1a1a2e 40%, #1E3F75 46%, #2856A0 50%, #3A7BC8 54%, #1B7340 60%, #27a85b 64%, #1a1a2e 68%, #1a1a2e);
  background-size: 300% 100%;
  background-position: 200% 0%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 800ms ease-out;
}

.is-view .heading-home-section-title {
  background-position: 0% 0%;
}

.heading-home-section-desc {
  opacity: 0;
  transition: opacity 800ms 300ms var(--ease-out);
}

.is-view .heading-home-section-desc {
  opacity: 1;
}

/* ============================================
   SECTION HEADING (shared)
   ============================================ */
.section-heading__text {
  font-family: "Heebo", sans-serif;
  font-weight: 600;
  line-height: 0.9;
  font-size: clamp(3rem, 6.5vw, 6rem);
}

.section-heading__label {
  display: inline-block;
  text-align: center;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 500;
  color: #fff;
  background-color: var(--color-accent);
  padding: 0.5em 1.2em;
  margin-top: clamp(0.75rem, 2vw, 1.875rem);
  font-size: clamp(0.875rem, 1.5vw, 1.5rem);
}

.section-heading__desc {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 2;
  margin-top: clamp(1rem, 2vw, 1.875rem);
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  color: var(--color-text-muted);
}

/* ============================================
   BUTTON
   ============================================ */
.button-normal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  color: #fff;
  background-color: var(--color-accent);
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  transition: color 400ms var(--ease-smooth), background-color 400ms var(--ease-smooth);
}

@media (hover: hover) {
  .button-normal:hover {
    background-color: var(--color-accent-dark);
  }
}

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

@media (hover: hover) {
  .button-normal.--accent:hover {
    background-color: #155a32;
  }
}

.button-normal__icon {
  width: 2rem;
  height: auto;
  flex-shrink: 0;
}

/* ============================================
   ABOUT / CONCEPT
   ============================================ */
.about {
  position: relative;
  color: var(--color-text);
  background-color: transparent;
  padding: clamp(3.75rem, 8vw, 7.5rem) clamp(1.25rem, 5.5vw, 5rem);
}

.about__bg {
  position: absolute;
  left: 0;
  top: -20%;
  z-index: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 800ms 600ms var(--ease-out);
}

.is-loaded .about__bg {
  opacity: 0.08;
}

.about__bg-img {
  width: 100%;
  object-fit: cover;
}

.about__box {
  position: relative;
  z-index: 3;
}

.about__title {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(1.25rem, 3.8vw, 3.5rem);
  line-height: 1.6;
}

.about__title-line {
  display: block;
  width: fit-content;
}

.about__title-line:nth-child(2) { transition-delay: 50ms; }
.about__title-line:nth-child(3) { transition-delay: 100ms; }

.about__desc {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(0.8rem, 1.6vw, 1.5rem);
  line-height: 1.7;
}

.about__desc-block {
  margin-top: clamp(2rem, 4vw, 4rem);
}

.about__desc-text {
  display: block;
  width: fit-content;
}

.about__btn-wrap {
  margin-top: clamp(2rem, 4vw, 4rem);
  opacity: 0;
  transition: opacity 500ms var(--ease-out);
}

.is-view.about__btn-wrap {
  opacity: 1;
}

/* ============================================
   FEATURES (CONCEPT DETAIL)
   ============================================ */
.features {
  background-color: var(--color-bg-alt);
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 5.5vw, 5rem);
}

.features__inner {
  max-width: 1200px;
  margin-inline: auto;
}

.features__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.features__item:not(:first-child) {
  margin-top: clamp(3rem, 6vw, 6rem);
}

.features__item:nth-child(even) {
  direction: rtl;
}

.features__item:nth-child(even) > * {
  direction: ltr;
}

.features__img-wrap {
  overflow: hidden;
  border-radius: 4px;
}

.features__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features__num {
  font-family: "Heebo", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--color-green);
  line-height: 1;
}

.features__heading {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  line-height: 1.5;
  margin-top: 0.5rem;
}

.features__text {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 2;
  margin-top: 1rem;
  color: var(--color-text-muted);
}

@media screen and (max-width: 960px) {
  .features__item {
    grid-template-columns: 1fr;
  }

  .features__item:nth-child(even) {
    direction: ltr;
  }
}

/* ============================================
   LIBERTA LABO
   ============================================ */
.labo {
  background-color: transparent;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1.25rem, 5.5vw, 5rem);
}

.labo__inner {
  max-width: 1200px;
  margin-inline: auto;
}

/* -- Advisor profile -- */
.labo__advisor {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--color-bg);
  border-radius: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.labo__advisor-photo {
  flex-shrink: 0;
  width: clamp(120px, 15vw, 180px);
  height: clamp(120px, 15vw, 180px);
  border-radius: 50%;
  overflow: hidden;
}

.labo__advisor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.labo__advisor-role {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.labo__advisor-name {
  font-family: var(--font-ja-serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.labo__advisor-text {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.9;
  color: var(--color-text-light);
}

@media screen and (max-width: 768px) {
  .labo__advisor {
    flex-direction: column;
    text-align: center;
  }
}

.labo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-top: clamp(2rem, 5vw, 5rem);
}

.labo__card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.labo__card-img-wrap {
  overflow: hidden;
}

.labo__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.labo__card-body {
  padding: clamp(1.2rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.labo__card-title {
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  line-height: 1.6;
}

.labo__card-text {
  margin-top: 1rem;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  line-height: 2;
  color: var(--color-text-muted);
}

@media screen and (max-width: 960px) {
  .labo__card {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   WORK (Sticky scroll)
   ============================================ */
.work {
  background-color: var(--color-bg-alt);
}

.work__scroll-area {
  height: 400svh;
}

.work__sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100svh;
  gap: clamp(2rem, 5.5vw, 5rem);
  padding-left: clamp(1.25rem, 5.5vw, 5rem);
}

.work__title-area {
  flex-shrink: 0;
  width: clamp(14rem, 26vw, 24rem);
}

.work__btn-wrap {
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  opacity: 0;
  transition: opacity 600ms 600ms var(--ease-out);
}

.is-view.work__btn-wrap {
  opacity: 1;
}

.work__images-wrap {
  position: relative;
  flex: 1;
  height: 100svh;
}

.work__images-item {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 100%;
  max-width: 58rem;
}

.work__images-item:nth-child(1) {
  clip-path: inset(0 0 0 var(--work-clip-0, 0%));
  z-index: 3;
}
.work__images-item:nth-child(2) {
  clip-path: inset(0 0 0 var(--work-clip-1, 0%));
  z-index: 2;
}
.work__images-item:nth-child(3) {
  clip-path: inset(0 0 0 var(--work-clip-2, 0%));
  z-index: 1;
}

.work__images-relative {
  position: relative;
}

.work__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.work__image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
  color: #fff;
  background-color: rgba(40, 86, 160, 0.85);
  padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.75rem);
}

.work__image-label-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.75rem);
}

.work__image-label-text {
  font-family: "Shippori Mincho B1", serif;
  font-size: clamp(0.75rem, 1vw, 1rem);
}

/* Mobile work cards */
.work__mobile { display: none; }

@media screen and (max-width: 960px) {
  .work__scroll-area { display: none; }

  .work__mobile {
    display: block;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 3vw, 1.5rem);
  }

  .work__mobile-cards {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: grid;
    gap: 1rem;
  }

  .work__mobile-card {
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }

  .work__mobile-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .work__image-label {
    position: relative;
    width: 100%;
  }
}

/* ============================================
   WORK MAP
   ============================================ */
.work-map {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1.25rem, 5.5vw, 5rem);
}

.work-map__inner {
  max-width: 1200px;
  margin-inline: auto;
}

.work-map__img-wrap {
  margin-top: clamp(2rem, 5vw, 4rem);
  max-width: 800px;
  margin-inline: auto;
}

.work-map__img {
  width: 100%;
}

/* ============================================
   MESSAGE
   ============================================ */
.message {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
}

.message::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  z-index: 0;
}

.message__desc {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 100%;
  padding: 0 clamp(1.25rem, 3vw, 5rem);
  color: var(--color-dark);
}

@media screen and (max-width: 960px) {
  .message__desc {
    top: 10%;
  }
}

.message__title {
  display: flex;
  flex-direction: column;
  font-family: "Heebo", sans-serif;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  font-size: clamp(2.5rem, 6.5vw, 6rem);
  color: var(--color-accent-dark);
}

@media screen and (max-width: 960px) {
  .message__title {
    font-size: clamp(1.8rem, 7vw, 3rem);
    gap: 0.25rem;
  }
}

.message__title .line {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
}

@media screen and (max-width: 960px) {
  .message__title .line {
    flex-direction: column;
    gap: 0.25rem;
  }
}

.message__title .flex {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
}

@media screen and (max-width: 960px) {
  .message__title .flex {
    gap: clamp(0.3rem, 1vw, 1rem);
  }
}

.message__title .word {
  display: flex;
}

.message__title span {
  display: inline-block;
  transform: rotateX(90deg);
  transform-origin: center;
}

.message__title span:nth-child(1) { transition: transform 600ms 30ms var(--ease-out); }
.message__title span:nth-child(2) { transition: transform 600ms 60ms var(--ease-out); }
.message__title span:nth-child(3) { transition: transform 600ms 90ms var(--ease-out); }
.message__title span:nth-child(4) { transition: transform 600ms 120ms var(--ease-out); }
.message__title span:nth-child(5) { transition: transform 600ms 150ms var(--ease-out); }
.message__title span:nth-child(6) { transition: transform 600ms 180ms var(--ease-out); }
.message__title span:nth-child(7) { transition: transform 600ms 210ms var(--ease-out); }
.message__title span:nth-child(8) { transition: transform 600ms 240ms var(--ease-out); }
.message__title span:nth-child(9) { transition: transform 600ms 270ms var(--ease-out); }
.message__title span:nth-child(10) { transition: transform 600ms 300ms var(--ease-out); }

.is-view.message__title span {
  transform: rotateX(0);
}

.message__subtitle {
  font-family: "Shippori Mincho B1", serif;
  text-align: center;
  letter-spacing: 0.2em;
  font-size: clamp(1rem, 2.2vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--color-dark);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1000ms 300ms var(--ease-out);
}

.is-view.message__title ~ .message__subtitle {
  clip-path: inset(0 0 0 0);
}

.message__text {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 2.2;
  text-align: center;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
  color: #333;
  opacity: 0;
  transition: opacity 1000ms 600ms var(--ease-out);
}

.is-view.message__title ~ .message__text {
  opacity: 1;
}

.message__btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vw, 4.5rem);
  opacity: 0;
  transition: opacity 1000ms 900ms var(--ease-out);
}

.is-view.message__title ~ .message__btn-wrap {
  opacity: 1;
}

.message__image {
  width: 100%;
  height: 100%;
  min-height: 100svh;
  object-fit: cover;
}

/* ============================================
   COMPANY INFO
   ============================================ */
.company-info {
  background-color: var(--color-bg-alt);
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1.25rem, 5.5vw, 5rem);
}

.company-info__inner {
  max-width: 1200px;
  margin-inline: auto;
}

.company-info__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

@media screen and (max-width: 960px) {
  .company-info__grid {
    grid-template-columns: 1fr;
  }
}

.company-info__heading {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: 1.5rem;
}

.company-info__photo {
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.company-info__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.company-info__text {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 2;
  color: var(--color-text-muted);
}

.company-info__sig {
  margin-top: 1.5rem;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--color-text);
}

.company-info__dl {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
}

.company-info__dl > div {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.company-info__dl > div:last-child {
  border-bottom: 0;
}

.company-info__dl dt {
  font-weight: 700;
  white-space: nowrap;
  min-width: 6rem;
  color: var(--color-accent);
}

.company-info__dl dd {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.company-info__sdgs {
  margin-top: 2rem;
  max-width: 12rem;
}

/* ============================================
   RECRUIT
   ============================================ */
.recruit {
  position: relative;
  overflow: hidden;
  min-height: 80svh;
  display: flex;
  align-items: center;
}

.recruit__title-area {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 5.5vw, 5rem);
  max-width: 40rem;
}

.recruit__photo {
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: 4px;
  overflow: hidden;
  max-width: 28rem;
}

.recruit__photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.recruit__btn-wrap {
  margin-top: clamp(2rem, 3vw, 3rem);
  opacity: 0;
  transition: opacity 800ms 600ms var(--ease-out);
}

.is-view .recruit__btn-wrap {
  opacity: 1;
}

.recruit__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.recruit::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.65) 60%, rgba(255, 255, 255, 0.3) 100%);
}

/* ============================================
   NEWS
   ============================================ */
.news {
  position: relative;
  background-color: transparent;
  padding: clamp(5rem, 10vw, 15rem) clamp(1.25rem, 5.5vw, 5rem) clamp(4rem, 8vw, 7.5rem);
}

.news__inner {
  max-width: 1200px;
  margin-inline: auto;
}

.news__title {
  font-family: "Heebo", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 6.5vw, 6rem);
}

.news__list {
  margin-top: clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.5vw, 1.5rem);
}

.news__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text);
  background-color: var(--color-bg-alt);
  border: 1px solid #e5e7eb;
  padding: clamp(1rem, 2.3vw, 2rem) clamp(1rem, 2.5vw, 2.5rem);
  gap: 2rem;
  border-radius: 4px;
  transition: background-color 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}

@media (hover: hover) {
  .news__link:hover {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
}

.news__time {
  font-weight: 800;
  font-size: clamp(0.9rem, 1.4vw, 1.25rem);
  white-space: nowrap;
  color: var(--color-accent);
}

.news__text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  margin-top: clamp(0.5rem, 1vw, 1.25rem);
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
}

.news__icon {
  flex-shrink: 0;
  width: clamp(2.5rem, 3.5vw, 3rem);
  height: auto;
  color: var(--color-accent);
}

.news__btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(3rem, 5vw, 7.5rem);
  opacity: 0;
  transition: opacity 600ms var(--ease-out);
}

.is-view.news__btn-wrap {
  opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  color: #ffffff;
}

.footer__wave {
  position: relative;
  line-height: 0;
  font-size: 0;
}

.footer__wave-img {
  width: 100%;
  display: block;
}

.footer__wave-content {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2.5rem);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.4rem, 0.8vw, 0.6rem);
  line-height: 1;
  font-size: 1rem;
}

.footer__contact {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

.footer__contact-desc {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 5.5vw, 5rem) clamp(1.25rem, 5.5vw, 5rem);
}

.footer__contact-title {
  font-family: "Heebo", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 6.5vw, 6rem);
  color: var(--color-accent-dark);
}

.footer__contact-box {
  margin-top: clamp(3rem, 8vw, 10rem);
}

.footer__contact-text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1.5rem);
  line-height: 1.8;
  color: var(--color-text-muted);
}

.footer__contact-buttons {
  display: flex;
  gap: 1rem;
  margin-top: clamp(1.5rem, 2.5vw, 2rem);
}

.footer__contact-button.--normal {
  display: block;
  width: clamp(12rem, 25vw, 20rem);
  text-align: center;
  background-color: var(--color-accent);
  color: #fff;
  font-weight: 700;
  padding: clamp(0.7rem, 1.5vw, 1.4rem) 1.5rem;
  transition: background-color 0.3s;
}

@media (hover: hover) {
  .footer__contact-button.--normal:hover {
    background-color: var(--color-accent-dark);
  }
}

.footer__contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
}

.footer__bar-logo {
  width: clamp(8rem, 14vw, 12rem);
}

.footer__bar-logo img {
  width: 100%;
  filter: brightness(0) invert(1);
}

.footer__bar-copy {
  font-size: clamp(0.55rem, 0.75vw, 0.7rem);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.footer__bottom {
  display: flex;
  gap: clamp(3rem, 9vw, 8rem);
}

@media screen and (max-width: 960px) {
  .footer__bottom {
    flex-direction: column;
  }
}

.footer__company {
  flex-shrink: 0;
}

.footer__company-logo {
  width: clamp(10rem, 18vw, 16rem);
}

.footer__company-logo img {
  width: 100%;
  filter: brightness(0) invert(1);
}

.footer__company-list {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.75);
}

.footer__company-list li {
  display: flex;
  gap: 1rem;
}

.footer__company-list li span:first-child {
  min-width: 5rem;
  font-weight: 600;
  color: #ffffff;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 4vw, 3.75rem);
}

@media screen and (max-width: 960px) {
  .footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer__nav-title {
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  letter-spacing: 0.1em;
  color: #ffffff;
}

.footer__nav-list {
  margin-top: 0.5rem;
}

.footer__nav-link {
  display: block;
  font-weight: 600;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  line-height: 2.2;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s;
}

@media (hover: hover) {
  .footer__nav-link:hover {
    color: var(--color-green-light);
  }
}


@media screen and (max-width: 960px) {
  .footer__contact-buttons {
    flex-direction: column;
  }

  .footer__contact-button.--normal {
    width: 100%;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .fade-in, .scale-in,
  .clip-text-anim, .heading-home-section-title,
  .heading-home-section-desc, .mv__title-char,
  .mv__subtitle, .mv__lead,
  .loading__logo-text, .loading__num-wrap,
  .message__title span, .message__subtitle, .message__text {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    background-position: 0% 0% !important;
  }
}
