.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  transition:
    padding 0.28s ease,
    background 0.24s ease,
    color 0.24s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.04) 87%,
    rgba(0, 0, 0, 0) 100%
  );
  color: #fff;
  padding: 0.85rem 1rem;
}

.site-header .logo img {
  max-width: 150px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  transition: max-width 0.28s ease;
}

.site-header.is-scrolled .logo img {
  max-width: 100px;
}

@media (max-width: 768px) {
  .site-header .logo img {
    max-width: 100px;
  }
  .site-header {
    padding: 0.85rem 1rem;
  }
}
#webGLApp {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  min-height: 100dvh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  background: var(--webgl-gradient-fallback);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

body.home.is-webgl-off #webGLApp {
  display: none;
}

#webGLApp canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#webGLApp.is-shader-ready canvas {
  opacity: 1;
}

.fv {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  z-index: 1;
  /* overflow は付けない（内包要素の fixed / WebGL 連動を壊す。FV横はみ出しは .heading 側で抑制） */
}

.section {
  position: relative;
  z-index: 2;
  padding: 12rem 10vw;
  line-height: 1.9;
  color: inherit;
}

.about-brand-title {
  margin-bottom: clamp(2.2rem, 5vw, 3.2rem);
  text-align: left;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 0.14em;
  row-gap: 0.08em;
}

.about-brand-title-brand {
  display: inline-block;
  font-family: "Shippori Mincho", serif;
  font-size: clamp(2.2rem, 7vw, 5rem);
  letter-spacing: 0.01em;
  line-height: 0.9;
}

.about-brand-title-cross {
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 4rem;
  opacity: 0.5;
  font-weight: 100;
  line-height: 1;
  transform: translateY(-0.04em);
}

.about-brand-title-tech {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 6.5vw, 4.8rem);
  letter-spacing: 0.05em;
  line-height: 0.9;
  text-transform: uppercase;
}

@media screen and (max-width: 1200px) {
  .about-brand-title-cross {
    font-size: clamp(2.6rem, 4.5vw, 4rem);
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 5vw;
  }

  .about-brand-title {
    margin-bottom: 2rem;
    row-gap: 0;
  }

  .about-brand-title-brand {
    font-size: clamp(2.6rem, 9.5vw, 4.2rem);
  }

  .about-brand-title-tech {
    font-size: clamp(2.7rem, 8.8vw, 3.9rem);
    margin-top: 0.5rem;
  }

  .about-brand-title-cross {
    font-size: clamp(2.6rem, 8.2vw, 3.8rem);
  }
}
.section-bg-white {
  background-color: var(--bg-white);
  position: relative;
  z-index: 2;
  padding: 0 6vw;
  line-height: 1.9;
  min-height: 300vh;
  margin-top: var(--space-section-y);
  margin-bottom: var(--space-section-y);
  overflow-x: hidden;
}

#business.section-bg-white {
  min-height: auto;
  margin-top: 0;
}

/* 769px+：calc + 固定 rem（clamp を var に入れると環境によって margin が消える） */
@media (min-width: 769px) {
  .section-bg-white.section-offset-left {
    margin-left: 2rem;
    width: calc(100% - 2rem);
  }

  .section-bg-white.section-offset-right {
    margin-right: 2rem;
    width: calc(100% - 2rem);
  }
}

@media (min-width: 900px) {
  .section-bg-white.section-offset-left {
    margin-left: 3rem;
    width: calc(100% - 3rem);
  }

  .section-bg-white.section-offset-right {
    margin-right: 3rem;
    width: calc(100% - 3rem);
  }
}

@media (min-width: 1200px) {
  .section-bg-white.section-offset-left {
    margin-left: 4rem;
    width: calc(100% - 4rem);
  }

  .section-bg-white.section-offset-right {
    margin-right: 4rem;
    width: calc(100% - 4rem);
  }
}

#company.section-bg-white {
  min-height: auto;
  padding-top: var(--space-section-y);
  padding-bottom: var(--space-section-y);
  padding-left: 6vw;
}

.company-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.company-heading,
.company-table-wrap {
  width: 100%;
  min-width: 0;
}
@media (max-width: 768px) {
  #company.section-bg-white {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .company-layout {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
}
@media (max-width: 500px) {
  #company.section-bg-white {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }
}

@media (min-width: 1200px) {
  .company-layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4rem;
  }

  .company-heading {
    flex: 0 0 calc((100% - 4rem) / 3);
    max-width: calc((100% - 4rem) / 3);
  }

  .company-table-wrap {
    flex: 1 1 auto;
    max-width: 48rem;
    margin-left: auto;
  }
}

/* --- トップ：About --- */
#about p {
  font-size: var(--text-base);
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 2rem;
}

/* SP：About 本文だけ一段大きく（他本文 15〜16px とのバランス） */
@media (max-width: 768px) {
  #about p {
    font-size: clamp(1rem, 2.2vw, 1.0625rem);
  }
}

@media (min-width: 768px) {
  #about p {
    font-size: var(--text-xl);
  }
}

.about-brand-title {
  font-weight: 500;
  line-height: 1;
}

/* --- トップ：Philosophy --- */
#philosophy {
  margin-top: 2rem;
  margin-bottom: 2rem;
  /* overflow-x: hidden は付けない（iOS で初回表示時にセクション内スクロール化しやすい） */
}

/* 写真行だけ横はみ出しを抑える */
#philosophy > .flex {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

/* SP：Culture / Contact の section-lg padding-top(4rem) に合わせる */
@media (max-width: 768px) {
  #philosophy {
    margin-top: 4rem;
    touch-action: pan-y;
  }

  #philosophy .section-md {
    padding-top: 0;
    padding-bottom: var(--space-section-y);
  }

  /* h2-reveal：はみ出し計算で一瞬だけ内側スクロール化しやすい */
  #philosophy h2.h2-reveal .h2-reveal-line {
    contain: layout paint;
    max-height: 1.15em;
  }
}

@media (min-width: 768px) {
  #philosophy {
    margin-top: 4rem;
    margin-bottom: 8rem;
  }
}

#philosophy h2 {
  font-size: var(--text-3xl);
  color: var(--text-white);
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

#philosophy p {
  color: var(--text-white);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-top: 4rem;
  text-align: left;
}

@media (min-width: 768px) {
  #philosophy p {
    font-size: var(--text-base);
    text-align: center;
  }
}

/* --- トップ：Culture --- */
#culture .culture-eyebrow {
  display: block;
  padding-bottom: 0.25rem;
  margin-inline: auto;
  text-align: center;
  color: var(--text-white);
  font-size: var(--text-xs);
  font-weight: 300;
}

@media (min-width: 768px) {
  #culture .culture-eyebrow {
    font-size: var(--text-base);
  }
}

#culture h2 {
  margin-bottom: 2rem;
  font-family: "Poppins", sans-serif;
  font-size: var(--text-5xl);
  font-weight: 500;
  line-height: 1;
  color: var(--text-white);
  text-align: center;
}

@media (min-width: 768px) {
  #culture h2 {
    margin-bottom: 5rem;
  }
}

#culture .culture-card {
  background-color: var(--bg-white);
}

#culture .culture-card h3 {
  margin-bottom: 1rem;
  font-size: var(--text-lg);
  font-weight: 500;
}

#culture .culture-card p {
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

#culture .culture-card img {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  #culture .culture-card img {
    margin-bottom: 5rem;
  }
}

/* --- トップ：Company 見出し --- */
.company-heading .company-eyebrow {
  display: block;
  padding-bottom: 0.25rem;
  font-size: var(--text-xs);
  font-weight: 500;
}

@media (min-width: 768px) {
  .company-heading .company-eyebrow {
    font-size: var(--text-sm);
  }
}

.company-heading h2 {
  margin-bottom: 1rem;
  font-family: "Poppins", sans-serif;
  font-size: var(--text-4xl);
  font-weight: 500;
  line-height: 1;
  text-align: left;
  color: var(--text-black);
}

@media (min-width: 768px) {
  .company-heading h2 {
    margin-bottom: 5rem;
    font-size: var(--text-5xl);
  }
}

#company .company-table-wrap td:first-child {
  font-weight: 600;
}

#company .company-table-wrap td:last-child {
  font-weight: 400;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .section-bg-white.section-offset-left {
    width: calc(100% - 1rem);
    margin-left: 1rem;
  }

  .section-bg-white.section-offset-right {
    width: calc(100% - 1rem);
    margin-right: 1rem;
  }
}
