@charset "UTF-8";
/* ============================================
   大地建設工業株式会社 - style.css
   参考: motoya-united.co.jp のモーション設計
   ============================================ */

:root {
  --c-text: #1a1a1a;
  --c-sub: #777;
  --c-bg: #fff;
  --c-dark: #141414;
  --c-accent: #4694d1;
  --c-line: #e3e3e3;
  /* モトヤユナイテッド参考のポップパレット */
  --pop-yellow: #ffe33f;
  --pop-coral: #dd7687;
  --pop-green: #6bbc6e;
  --pop-teal: #61c1be;
  --pop-sky: #7ecef4;
  --pop-blue: #4694d1;
  --pop-pink: #f19ec2;
  --pop-orange: #f6ae6a;
  --pop-mustard: #eace76;
  --pop-purple: #bb8dbe;
  --font-en: "Oswald", sans-serif;
  --font-ja: "Noto Sans JP", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; }
body {
  font-family: var(--font-ja);
  font-size: 1.5rem;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-hijack { overflow-y: scroll; }
img { max-width: 100%; display: block; }
ul, li { list-style: none; }
a { color: inherit; text-decoration: none; }
body.is-fine-pointer a,
body.is-fine-pointer button { cursor: none; }

/* ---------- スムーススクロールラッパー ---------- */
body.is-hijack .smooth {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  will-change: transform;
}

/* ---------- 写真プレースホルダー ---------- */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(0,0,0,0.025) 14px 28px),
    linear-gradient(135deg, #dcdcdc 0%, #c8ccd0 50%, #d8d4cf 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph span {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  color: #8a8a8a;
  border: 1px solid #aaa;
  padding: 0.6em 1.4em;
  background: rgba(255,255,255,0.55);
  white-space: nowrap;
}
.ph--dark {
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,0.03) 14px 28px),
    linear-gradient(135deg, #3a3f45 0%, #2b2f34 60%, #43464a 100%);
}
.ph--dark span { color: #ccc; border-color: #777; background: rgba(0,0,0,0.35); }

/* ---------- ローダー ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.loader__curtain {
  position: absolute;
  inset: 0;
  background: var(--pop-yellow);
  transform-origin: top center;
  transition: transform 0.9s var(--ease-out) 0.2s;
}
.loader__logo {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--c-text);
  opacity: 0;
  animation: loaderIn 0.8s var(--ease-out) 0.1s forwards;
  transition: opacity 0.4s;
}
.loader__en {
  display: block;
  font-family: var(--font-en);
  font-size: 4rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
}
.loader__ja { display: block; font-size: 1.2rem; letter-spacing: 0.5em; text-indent: 0.5em; margin-top: 0.6em; }
@keyframes loaderIn { to { opacity: 1; } }
body.is-loaded .loader__logo { opacity: 0; transition: opacity 0.4s; animation: none; }
body.is-loaded .loader__curtain { transform: scaleY(0); transform-origin: top center; }
body.is-loaded .loader { pointer-events: none; }

/* ---------- カスタムカーソル ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
body.is-fine-pointer .cursor-dot,
body.is-fine-pointer .cursor-ring { opacity: 1; }
.cursor-dot {
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--c-text);
  mix-blend-mode: difference;
  background: #fff;
}
.cursor-ring {
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border: 1px solid rgba(120,120,120,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              margin 0.35s var(--ease-out), background-color 0.35s, border-color 0.35s;
}
.cursor-ring__label {
  font-family: var(--font-en);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(20,20,20,0.08);
  border-color: rgba(20,20,20,0.5);
}
.cursor-ring.is-view {
  width: 88px; height: 88px;
  margin: -44px 0 0 -44px;
  background: rgba(221,118,135,0.9);
  border-color: transparent;
}
.cursor-ring.is-view .cursor-ring__label { opacity: 1; }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.2rem 3.2rem;
  transition: transform 0.5s var(--ease-out);
}
.header.is-hide { transform: translateY(-110%); }
.header__logo { text-align: left; display: inline-block; }
.header__logo-en {
  display: block;
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1;
}
.header__logo-ja { display: block; font-size: 1rem; letter-spacing: 0.32em; margin-top: 0.4em; }
.header__right { display: flex; align-items: center; gap: 1.4rem; }
.header__menu-txt { font-size: 1.3rem; letter-spacing: 0.08em; }
.menu-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--c-dark);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
}
.menu-btn:hover { transform: scale(1.1); }
.menu-btn span {
  display: block;
  width: 18px; height: 1.5px;
  background: #fff;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
body.is-menu-open .menu-btn span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.is-menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.is-menu-open .menu-btn span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- フルスクリーンメニュー ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  pointer-events: none;
}
.menu__bg {
  position: absolute;
  inset: 0;
  background: rgba(15,15,15,0.97);
  clip-path: circle(0% at calc(100% - 5.8rem) 4.8rem);
  transition: clip-path 0.8s var(--ease-out);
}
body.is-menu-open .menu { visibility: visible; pointer-events: auto; }
body.is-menu-open .menu__bg { clip-path: circle(150% at calc(100% - 5.8rem) 4.8rem); }
.menu__list {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(3rem, 12vw, 16rem);
  gap: 0.6rem;
}
.menu__list li {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
body.is-menu-open .menu__list li { opacity: 1; transform: none; }
body.is-menu-open .menu__list li:nth-child(1) { transition-delay: 0.25s; }
body.is-menu-open .menu__list li:nth-child(2) { transition-delay: 0.3s; }
body.is-menu-open .menu__list li:nth-child(3) { transition-delay: 0.35s; }
body.is-menu-open .menu__list li:nth-child(4) { transition-delay: 0.4s; }
body.is-menu-open .menu__list li:nth-child(5) { transition-delay: 0.45s; }
body.is-menu-open .menu__list li:nth-child(6) { transition-delay: 0.5s; }
body.is-menu-open .menu__list li:nth-child(7) { transition-delay: 0.55s; }
.menu__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 1.6rem;
  color: #fff;
  padding: 0.4rem 0;
}
.menu__en {
  font-family: var(--font-en);
  font-size: clamp(3.2rem, 5.5vw, 5.6rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  position: relative;
}
.menu__en::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.menu__list a:hover .menu__en::after { transform: scaleX(1); transform-origin: left; }
.menu__ja { font-size: 1.2rem; letter-spacing: 0.2em; color: #aaa; }

/* ---------- KV ---------- */
.kv {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
}
.kv__bg-txt {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 0;
  white-space: nowrap;
  pointer-events: none;
}
.kv__bg-txt span {
  font-family: var(--font-en);
  font-size: clamp(10rem, 22vw, 24rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px #e8e8e8;
}
.kv__photo-wrap {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-44%, -50%);
  width: min(72vw, 1100px);
  height: min(74vh, 700px);
  z-index: 1;
}
.kv__photo {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease 1s, transform 1.6s var(--ease-out) 1s;
}
body.is-loaded .kv__photo { opacity: 1; transform: scale(1); }
.kv__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 7s linear;
}
.kv__slide.is-active { opacity: 1; transform: scale(1); }
.kv__copy {
  position: absolute;
  top: 50%;
  left: clamp(2rem, 6vw, 9rem);
  transform: translateY(-50%);
  z-index: 2;
  font-size: clamp(4.2rem, 7.4vw, 8.6rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
.kv__copy-line { display: block; overflow: hidden; }
.kv__copy-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
  padding: 0 0.12em;
  background-image: linear-gradient(transparent 58%, var(--mc, var(--pop-yellow)) 58%);
}
.kv__copy-line:nth-child(1) .kv__copy-inner { --mc: var(--pop-yellow); }
.kv__copy-line:nth-child(2) .kv__copy-inner { --mc: var(--pop-teal); }
.kv__copy-line:nth-child(3) .kv__copy-inner { --mc: var(--pop-pink); }
body.is-loaded .kv__copy-line:nth-child(1) .kv__copy-inner { transition-delay: 1.15s; transform: none; }
body.is-loaded .kv__copy-line:nth-child(2) .kv__copy-inner { transition-delay: 1.3s; transform: none; }
body.is-loaded .kv__copy-line:nth-child(3) .kv__copy-inner { transition-delay: 1.45s; transform: none; }
.kv__vertical {
  position: absolute;
  top: 50%;
  right: clamp(1.6rem, 4vw, 5rem);
  transform: translateY(-50%);
  z-index: 2;
  writing-mode: vertical-rl;
  height: 20em;
}
.kv__vertical-item {
  position: absolute;
  top: 0; right: 0;
  font-size: 1.5rem;
  letter-spacing: 0.42em;
  font-weight: 700;
  padding: 0.6em 0.3em;
  background: var(--mc, var(--pop-yellow));
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
}
.kv__vertical-item:nth-child(1) { --mc: var(--pop-yellow); }
.kv__vertical-item:nth-child(2) { --mc: var(--pop-sky); }
.kv__vertical-item:nth-child(3) { --mc: var(--pop-green); }
.kv__vertical-item:nth-child(4) { --mc: var(--pop-orange); }
.kv__vertical-item.is-active { opacity: 1; transform: none; }
.kv__topics {
  position: absolute;
  right: 0; bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  background: #fff;
  padding: 1.2rem 2.4rem;
  gap: 2rem;
  max-width: min(60vw, 640px);
}
.kv__topics-label { font-family: var(--font-en); font-size: 1.3rem; letter-spacing: 0.12em; color: var(--c-sub); flex-shrink: 0; }
.kv__topics-ticker { overflow: hidden; }
.kv__topics-ticker p {
  font-size: 1.3rem;
  white-space: nowrap;
  animation: ticker 26s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}
.kv__scroll {
  position: absolute;
  left: clamp(2rem, 4vw, 4.4rem);
  bottom: 3rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.kv__scroll span {
  font-family: var(--font-en);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}
.kv__scroll i {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--c-text) 50%, transparent 50%);
  background-size: 100% 200%;
  animation: scrollLine 2s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0% { background-position: 0 100%; }
  55%, 100% { background-position: 0 -100%; }
}

/* ---------- 共通見出し ---------- */
.sec-head { padding: 0 clamp(2.4rem, 8vw, 12rem); margin-bottom: 6rem; }
.sec-head__en {
  font-family: var(--font-en);
  font-size: 1.4rem;
  letter-spacing: 0.24em;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.sec-head__ja {
  font-size: clamp(2.8rem, 4.2vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.sec-head__desc { margin-top: 2rem; color: var(--c-sub); }
.sec-head--white .sec-head__ja { color: var(--c-text); }
.sec-head--white .sec-head__en { color: var(--pop-blue); }
.sec-head__en {
  display: inline-block;
  padding: 0.2em 0.9em;
  border-radius: 999px;
  background: rgba(70,148,209,0.12);
}

/* ---------- 理念 ---------- */
.message {
  position: relative;
  padding: 18rem 0;
  overflow: hidden;
}
.message__bg-txt {
  position: absolute;
  top: 8rem;
  left: 0;
  white-space: nowrap;
  pointer-events: none;
}
.message__bg-txt span {
  font-family: var(--font-en);
  font-size: clamp(12rem, 26vw, 30rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #ececec;
}
.message__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2.4rem;
}
.message__lead {
  font-size: clamp(2.4rem, 3.6vw, 3.8rem);
  font-weight: 900;
  line-height: 2;
  letter-spacing: 0.06em;
  margin-bottom: 6rem;
}
.message__lead span { display: block; overflow: hidden; }
.message__body p { margin-bottom: 2.4em; color: #333; }
.message__catch {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-text);
}

/* ---------- 行ごとリビール（js-lines） ---------- */
.js-lines span { display: block; overflow: hidden; }
.js-lines span > em {
  font-style: normal;
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.js-lines.is-view span > em { transform: none; }

/* ---------- マーキー ---------- */
.marquee {
  padding: 10rem 0 12rem;
  overflow: hidden;
}
.marquee__row {
  white-space: nowrap;
  will-change: transform;
}
.marquee__row + .marquee__row { margin-top: 1rem; }
.marquee__body { display: inline-block; }
.marquee__item {
  display: inline-block;
  font-size: clamp(4rem, 7vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-right: 1.2em;
  transition: transform 0.35s var(--ease-out), color 0.3s, -webkit-text-stroke-color 0.3s;
}
.marquee__item:hover { transform: scale(1.14); }
/* 日本語行：塗りつぶし。英語行：アウトラインで同系色 */
.marquee__row:not(.marquee__row--rev) .marquee__item:nth-child(1) { color: var(--pop-yellow); }
.marquee__row:not(.marquee__row--rev) .marquee__item:nth-child(2) { color: var(--pop-blue); }
.marquee__row:not(.marquee__row--rev) .marquee__item:nth-child(3) { color: var(--pop-teal); }
.marquee__row:not(.marquee__row--rev) .marquee__item:nth-child(4) { color: var(--pop-green); }
.marquee__row:not(.marquee__row--rev) .marquee__item:nth-child(5) { color: var(--pop-sky); }
.marquee__row:not(.marquee__row--rev) .marquee__item:nth-child(6) { color: var(--pop-mustard); }
.marquee__row:not(.marquee__row--rev) .marquee__item:nth-child(7) { color: var(--pop-coral); }
.marquee__row:not(.marquee__row--rev) .marquee__item:nth-child(8) { color: var(--pop-purple); }
.marquee__item::after {
  content: "・";
  margin-left: 1.2em;
  color: #ccc;
  font-weight: 400;
}
.marquee__row--rev .marquee__item {
  font-family: var(--font-en);
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--mc, #bbb);
}
.marquee__row--rev .marquee__item:hover { color: var(--mc, #bbb); -webkit-text-stroke-width: 0; }
.marquee__row--rev .marquee__item:nth-child(1) { --mc: var(--pop-yellow); }
.marquee__row--rev .marquee__item:nth-child(2) { --mc: var(--pop-blue); }
.marquee__row--rev .marquee__item:nth-child(3) { --mc: var(--pop-teal); }
.marquee__row--rev .marquee__item:nth-child(4) { --mc: var(--pop-green); }
.marquee__row--rev .marquee__item:nth-child(5) { --mc: var(--pop-sky); }
.marquee__row--rev .marquee__item:nth-child(6) { --mc: var(--pop-mustard); }
.marquee__row--rev .marquee__item:nth-child(7) { --mc: var(--pop-coral); }
.marquee__row--rev .marquee__item:nth-child(8) { --mc: var(--pop-purple); }
.marquee__row--rev .marquee__item::after { color: #ccc; -webkit-text-stroke: 0; }

/* ---------- 事業カード ---------- */
.business { padding-bottom: 16rem; }
.business__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 5rem 4rem;
  padding: 0 clamp(2.4rem, 8vw, 12rem);
}
.business-card { position: relative; }
.business-card__a { display: block; }
.business-card:nth-child(8n+1) { --ac: var(--pop-yellow); }
.business-card:nth-child(8n+2) { --ac: var(--pop-blue); }
.business-card:nth-child(8n+3) { --ac: var(--pop-teal); }
.business-card:nth-child(8n+4) { --ac: var(--pop-green); }
.business-card:nth-child(8n+5) { --ac: var(--pop-sky); }
.business-card:nth-child(8n+6) { --ac: var(--pop-mustard); }
.business-card:nth-child(8n+7) { --ac: var(--pop-coral); }
.business-card:nth-child(8n+8) { --ac: var(--pop-purple); }
.business-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--ac, var(--pop-yellow));
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.business-card:hover .business-card__img { transform: translate(-3px, -3px); box-shadow: 14px 14px 0 var(--ac, var(--pop-yellow)); }
.business-card__img .ph {
  transition: transform 0.9s var(--ease-out);
}
.business-card:hover .business-card__img .ph { transform: scale(1.07); }
.business-card__txt { padding: 2rem 0.4rem 0; position: relative; }
.business-card__num {
  position: absolute;
  top: -1.4rem;
  right: 0.4rem;
  font-family: var(--font-en);
  font-size: 4.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ac, var(--pop-yellow));
  transition: transform 0.4s var(--ease-out);
}
.business-card:hover .business-card__num { transform: rotate(-8deg) scale(1.15); }
.business-card__ttl {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline-block;
  position: relative;
}
.business-card__ttl::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 0.45em;
  z-index: -1;
  background: var(--ac, var(--pop-yellow));
  opacity: 0.9;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
.business-card:hover .business-card__ttl::after { transform: scaleX(1); transform-origin: left; }
.business-card__desc { margin-top: 1rem; font-size: 1.35rem; color: var(--c-sub); }

/* ---------- 実績 ---------- */
.works {
  position: relative;
  background: #fdf6dc;
  padding: 14rem 0 16rem;
  overflow: hidden;
}
.works__bg-txt {
  position: absolute;
  top: 4rem;
  left: 0;
  white-space: nowrap;
  pointer-events: none;
}
.works__bg-txt span {
  font-family: var(--font-en);
  font-size: clamp(10rem, 20vw, 22rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(230,180,40,0.25);
}
.works__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  padding: 0 clamp(2.4rem, 8vw, 12rem);
  margin-bottom: 10rem;
}
.works__stats li { text-align: center; border-left: 1px solid rgba(0,0,0,0.1); }
.works__stats li:nth-child(1) .works__num { color: var(--pop-blue); }
.works__stats li:nth-child(2) .works__num { color: var(--pop-coral); }
.works__stats li:nth-child(3) .works__num { color: var(--pop-green); }
.works__stats li:nth-child(4) .works__num { color: var(--pop-purple); }
.works__num {
  font-family: var(--font-en);
  font-size: clamp(5rem, 7vw, 7.6rem);
  font-weight: 500;
  line-height: 1.1;
}
.works__num small { font-size: 0.35em; margin-left: 0.2em; font-family: var(--font-ja); font-weight: 700; }
.works__label { margin-top: 0.6rem; font-size: 1.3rem; color: #8a7f56; letter-spacing: 0.1em; }
.works__gallery {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 4rem;
  padding: 0 clamp(2.4rem, 6vw, 10rem);
  align-items: flex-start;
}
.works__item { flex: 1; aspect-ratio: 4 / 3; }
.works__item:nth-child(1) { box-shadow: 12px 12px 0 var(--pop-teal); }
.works__item:nth-child(2) { margin-top: 6rem; box-shadow: 12px 12px 0 var(--pop-coral); }
.works__item:nth-child(3) { margin-top: -3rem; box-shadow: 12px 12px 0 var(--pop-blue); }

/* ---------- 会社概要 ---------- */
.company { padding: 16rem 0; }
.company__table {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2.4rem;
}
.company__table > div {
  display: flex;
  padding: 2.2rem 1rem;
  border-bottom: 1px solid var(--c-line);
  gap: 2rem;
}
.company__table > div:first-child { border-top: 1px solid var(--c-line); }
.company__table dt {
  width: 9em;
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-sub);
}
.company__table dd { flex: 1; }

/* ---------- 採用 ---------- */
.recruit {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.recruit__photo {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
}
.recruit__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,12,16,0.55);
}
.recruit__inner {
  position: relative;
  z-index: 1;
  padding: 12rem clamp(2.4rem, 8vw, 12rem);
  max-width: 900px;
}
.recruit__en {
  font-family: var(--font-en);
  font-size: 1.4rem;
  letter-spacing: 0.24em;
  color: #9ec7ec;
  margin-bottom: 1.6rem;
}
.recruit__ttl {
  font-size: clamp(3rem, 5vw, 5.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin-bottom: 2.6rem;
}
.recruit__desc { margin-bottom: 3.6rem; color: #ddd; }

/* ---------- ボタン ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  min-width: 260px;
  padding: 1.6rem 3.2rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.12em;
  overflow: hidden;
  transition: color 0.4s var(--ease-out);
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.recruit .btn:hover { color: var(--c-text); }
.recruit .btn::before { background: var(--pop-orange); }
.contact .btn:hover { color: var(--c-text); }
.contact .btn::before { background: var(--pop-pink); }
.btn i {
  width: 6px; height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s;
}
.btn:hover i { transform: rotate(45deg) translate(3px, -3px); }
.btn--line { flex-direction: column; gap: 0.2rem; }
.btn--line span { font-family: var(--font-en); font-size: 2.2rem; letter-spacing: 0.06em; }
.btn--line small { font-size: 1.1rem; font-weight: 400; }

/* ---------- お問い合わせ ---------- */
.contact { padding: 16rem 2.4rem; text-align: center; }
.contact__en {
  font-family: var(--font-en);
  font-size: 1.4rem;
  letter-spacing: 0.24em;
  color: var(--c-accent);
  margin-bottom: 1.4rem;
}
.contact__ttl { font-size: clamp(2.6rem, 4vw, 4rem); font-weight: 900; letter-spacing: 0.08em; margin-bottom: 1.8rem; }
.contact__desc { color: var(--c-sub); margin-bottom: 4rem; }
.contact__btns {
  display: flex;
  gap: 2.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- フッター ---------- */
.footer { background: var(--c-dark); color: #fff; padding: 6rem 2.4rem 3rem; }
.footer__inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer__logo { font-family: var(--font-en); font-size: 2.6rem; letter-spacing: 0.3em; }
.footer__logo span { display: block; font-family: var(--font-ja); font-size: 1.1rem; letter-spacing: 0.4em; margin-top: 0.6em; color: #aaa; }
.footer__addr { margin-top: 2.4rem; font-size: 1.25rem; color: #999; }
.footer__copy { margin-top: 4rem; font-family: var(--font-en); font-size: 1.1rem; letter-spacing: 0.1em; color: #666; }

/* ---------- スクロールリビール ---------- */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s ease, transform 1.1s var(--ease-out);
}
.reveal.is-view { opacity: 1; transform: none; }
.reveal-img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.2s var(--ease-out);
}
.reveal-img .ph { transform: scale(1.15); transition: transform 1.4s var(--ease-out); }
.reveal-img.is-view { clip-path: inset(0 0 0 0); }
.reveal-img.is-view .ph { transform: scale(1); }
.business-card:hover .business-card__img.is-view .ph { transform: scale(1.07); }

/* ---------- モバイル調整 ---------- */
@media (max-width: 768px) {
  .kv__photo-wrap {
    width: 88vw;
    height: 60vh;
    transform: translate(-50%, -50%);
  }
  .kv__copy { mix-blend-mode: normal; text-shadow: 0 0 24px rgba(255,255,255,0.6); }
  .kv__vertical { display: none; }
  .kv__topics { max-width: 86vw; padding: 1rem 1.6rem; }
  .works__gallery { flex-direction: column; }
  .works__item:nth-child(2), .works__item:nth-child(3) { margin-top: 0; }
  .works__stats li { border-left: none; }
  .company__table > div { flex-direction: column; gap: 0.4rem; }
  .company__table dt { width: auto; }
  .menu__list { padding-left: 3rem; }
}

/* ============================================
   下層ページ・ポップ共通コンポーネント
   ============================================ */

/* ---------- ページ遷移（カーテンが下から戻る） ---------- */
body.is-leaving .loader__curtain {
  transform: scaleY(1);
  transform-origin: bottom center;
  transition: transform 0.45s var(--ease-out);
}
body.is-leaving .loader { pointer-events: auto; }

/* ---------- メニューの色分け ---------- */
.menu__list li:nth-child(1) a .menu__en::after { background: var(--pop-yellow); }
.menu__list li:nth-child(2) a .menu__en::after { background: var(--pop-pink); }
.menu__list li:nth-child(3) a .menu__en::after { background: var(--pop-blue); }
.menu__list li:nth-child(4) a .menu__en::after { background: var(--pop-teal); }
.menu__list li:nth-child(5) a .menu__en::after { background: var(--pop-green); }
.menu__list li:nth-child(6) a .menu__en::after { background: var(--pop-orange); }
.menu__list li:nth-child(7) a .menu__en::after { background: var(--pop-sky); }
.menu__en::after { height: 4px; }
.menu__list a::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  margin-right: 1.2rem;
  flex-shrink: 0;
  transform: rotate(45deg);
}
.menu__list a { align-items: center; }
.menu__list li:nth-child(1) a::before { background: var(--pop-yellow); }
.menu__list li:nth-child(2) a::before { background: var(--pop-pink); }
.menu__list li:nth-child(3) a::before { background: var(--pop-blue); }
.menu__list li:nth-child(4) a::before { background: var(--pop-teal); }
.menu__list li:nth-child(5) a::before { background: var(--pop-green); }
.menu__list li:nth-child(6) a::before { background: var(--pop-orange); }
.menu__list li:nth-child(7) a::before { background: var(--pop-sky); }
.menu__list a[aria-current="page"] .menu__en::after { transform: scaleX(1); }

/* ---------- View Moreボタン ---------- */
.btn--more {
  min-width: 220px;
  margin-top: 4rem;
  background: #fff;
}
.btn--more::before { background: var(--mc, var(--pop-yellow)); }
.btn--more:hover { color: var(--c-text); }
.sec-head .btn--more { margin-top: 2.4rem; }

/* ---------- 下層ページヒーロー ---------- */
.page-hero {
  position: relative;
  padding: 18rem clamp(2.4rem, 8vw, 12rem) 8rem;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  top: 6rem;
  left: 0;
  white-space: nowrap;
  pointer-events: none;
}
.page-hero__bg span {
  font-family: var(--font-en);
  font-size: clamp(12rem, 24vw, 26rem);
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #ececec;
}
.page-hero__en {
  position: relative;
  display: inline-block;
  font-family: var(--font-en);
  font-size: clamp(4.6rem, 8vw, 9rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.1;
  padding: 0 0.15em;
  background-image: linear-gradient(transparent 58%, var(--mc, var(--pop-yellow)) 58%);
}
.page-hero__ja {
  position: relative;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--c-sub);
  margin-top: 1.6rem;
}
.page-hero__lead {
  position: relative;
  margin-top: 3.2rem;
  max-width: 640px;
  font-size: 1.6rem;
}
.breadcrumb {
  position: relative;
  display: flex;
  gap: 1em;
  font-size: 1.2rem;
  color: var(--c-sub);
  margin-bottom: 3rem;
}
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 汎用2カラムブロック ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  padding: 6rem clamp(2.4rem, 8vw, 12rem);
}
.split__img { aspect-ratio: 4 / 3; box-shadow: 12px 12px 0 var(--mc, var(--pop-yellow)); }
.split--rev .split__img { order: 2; box-shadow: -12px 12px 0 var(--mc, var(--pop-yellow)); }
.split__ttl {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.split__ttl em {
  font-style: normal;
  background-image: linear-gradient(transparent 62%, var(--mc, var(--pop-yellow)) 62%);
}
.split__txt p { margin-bottom: 1.6em; color: #333; }

/* ---------- 事業詳細 ---------- */
.b-detail {
  position: relative;
  padding: 8rem clamp(2.4rem, 8vw, 12rem);
}
.b-detail:nth-child(even) { background: #fafafa; }
.b-detail__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 6rem;
  align-items: start;
}
.b-detail:nth-child(even) .b-detail__inner > .b-detail__img { order: 2; }
.b-detail__img { aspect-ratio: 4 / 3; box-shadow: 12px 12px 0 var(--ac, var(--pop-yellow)); position: sticky; top: 12rem; }
.b-detail__num {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem; height: 4.4rem;
  border-radius: 50%;
  background: var(--ac, var(--pop-yellow));
  margin-bottom: 1.6rem;
}
.b-detail__ttl {
  font-size: clamp(2.6rem, 3.4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.b-detail__en {
  font-family: var(--font-en);
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  color: var(--c-sub);
  margin-bottom: 2.4rem;
  text-transform: uppercase;
}
.b-detail__desc { margin-bottom: 2.8rem; color: #333; }
.b-detail__list { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.b-detail__list li {
  font-size: 1.3rem;
  font-weight: 500;
  padding: 0.5em 1.2em;
  border-radius: 999px;
  border: 1.5px solid var(--ac, var(--pop-yellow));
  background: #fff;
}

/* ---------- 沿革タイムライン ---------- */
.history { max-width: 780px; margin: 0 auto; padding: 0 2.4rem; }
.history li {
  position: relative;
  display: flex;
  gap: 3rem;
  padding: 0 0 4rem 2.4rem;
  border-left: 3px solid #eee;
}
.history li::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 0.5em;
  width: 1.4rem; height: 1.4rem;
  border-radius: 50%;
  background: var(--mc, var(--pop-yellow));
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #ddd;
}
.history li:nth-child(5n+1) { --mc: var(--pop-yellow); }
.history li:nth-child(5n+2) { --mc: var(--pop-teal); }
.history li:nth-child(5n+3) { --mc: var(--pop-coral); }
.history li:nth-child(5n+4) { --mc: var(--pop-green); }
.history li:nth-child(5n+5) { --mc: var(--pop-purple); }
.history__year {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 600;
  flex-shrink: 0;
  width: 6em;
  line-height: 1.4;
}
.history__txt { color: #333; }

/* ---------- フロー（施工の流れ等） ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2.4rem;
  padding: 0 clamp(2.4rem, 8vw, 12rem);
  counter-reset: flow;
}
.flow li {
  counter-increment: flow;
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 1.2rem;
  padding: 2.8rem 2rem 2.4rem;
  position: relative;
}
.flow li::before {
  content: "0" counter(flow);
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: var(--mc, var(--pop-yellow));
  position: absolute;
  top: -2rem;
  left: 2rem;
}
.flow li:nth-child(6n+1) { --mc: var(--pop-yellow); }
.flow li:nth-child(6n+2) { --mc: var(--pop-sky); }
.flow li:nth-child(6n+3) { --mc: var(--pop-green); }
.flow li:nth-child(6n+4) { --mc: var(--pop-orange); }
.flow li:nth-child(6n+5) { --mc: var(--pop-pink); }
.flow li:nth-child(6n+6) { --mc: var(--pop-teal); }
.flow__ttl { font-weight: 700; font-size: 1.6rem; margin-bottom: 0.8rem; }
.flow li p { font-size: 1.3rem; color: var(--c-sub); }

/* ---------- 社員の声：スクロールで積み重なるカードスタック ---------- */
/* motoya-united.co.jpの「次々にカードがめくれる」演出を参考。
   あちらはネイティブposition:stickyだが、当サイトは慣性スクロール用に
   #smoothをtransformで動かす自前方式のため、sticky代わりにJS(main.js)で
   同じ見た目になるよう各カードのtranslateYを毎フレーム計算している。 */
.voice-stack {
  /* position:relative にしない: カードのoffsetTopをcontainer.offsetTopと
     同じ基準（#smooth基準）に揃えるため、あえて positioned ancestor にしない */
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(2.4rem, 6vw, 4rem);
}
.voice-card {
  position: relative;
  display: flex;
  gap: 3.2rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--vc, var(--pop-orange));
  border-radius: 2.4rem;
  padding: 4rem clamp(2.8rem, 5vw, 5rem);
  margin-bottom: 4rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
  will-change: transform;
}
.voice-card:last-child { margin-bottom: 0; }
.voice-card__photo {
  width: 140px; height: 140px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid rgba(255,255,255,0.6);
}
.voice-card__photo .ph { border-radius: 50%; }
.voice-card__photo .ph span { font-size: 1.1rem; text-align: center; line-height: 1.5; padding: 0.4em 0.6em; }
.voice-card__body { flex: 1; min-width: 220px; }
.voice-card__role {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.3em 1em;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  margin-bottom: 1.4rem;
}
.voice-card__txt { font-size: 1.5rem; line-height: 1.9; color: #222; }
.voice-card__name { margin-top: 1.6rem; font-weight: 700; }
.voice-card__name span { margin-left: 0.8em; font-weight: 400; font-size: 1.2rem; color: #333; }
@media (max-width: 640px) {
  .voice-card { padding: 3rem 2.2rem; margin-bottom: 2.4rem; gap: 2rem; }
  .voice-card__photo { width: 96px; height: 96px; }
}

/* ---------- お問い合わせフォーム ---------- */
.form { max-width: 720px; margin: 0 auto; padding: 0 2.4rem; }
.form__row { margin-bottom: 3rem; }
.form__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.form__req {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.2em 0.8em;
  border-radius: 999px;
  background: var(--pop-coral);
  color: #fff;
}
.form__req--opt { background: #ccc; color: #555; }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  padding: 1.4rem 1.6rem;
  border: 1.5px solid #ddd;
  border-radius: 0.8rem;
  background: #fafafa;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--pop-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(70,148,209,0.15);
}
.form textarea { min-height: 180px; resize: vertical; }
.form__submit { text-align: center; margin-top: 4rem; }
.form__submit .btn {
  border: none;
  background: var(--pop-yellow);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.12em;
  min-width: 300px;
  padding: 1.8rem 3.2rem;
}
.form__submit .btn::before { background: var(--c-text); }
.form__submit .btn:hover { color: #fff; }
.form__note { text-align: center; font-size: 1.25rem; color: var(--c-sub); margin-top: 1.6rem; }

/* ---------- 情報カード（アクセス等） ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
  padding: 0 clamp(2.4rem, 8vw, 12rem);
}
.info-card {
  border: 1.5px solid #eee;
  border-radius: 1.6rem;
  padding: 3rem 2.6rem;
  background: #fff;
}
.info-card__ttl {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.info-card__ttl::before {
  content: "";
  width: 1.2rem; height: 1.2rem;
  border-radius: 3px;
  transform: rotate(45deg);
  background: var(--mc, var(--pop-yellow));
}
.info-card p { font-size: 1.35rem; color: #444; }
.map-ph { height: 380px; margin: 6rem clamp(2.4rem, 8vw, 12rem) 0; box-shadow: 12px 12px 0 var(--pop-green); }

/* ---------- 実績一覧テーブル ---------- */
.w-table { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 2.4rem; border-collapse: collapse; }
.w-table th, .w-table td { padding: 1.6rem 1.4rem; text-align: left; font-size: 1.4rem; }
.w-table thead th {
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--c-sub);
  border-bottom: 2px solid var(--c-text);
}
.w-table tbody tr { border-bottom: 1px solid var(--c-line); }
.w-table tbody tr:hover { background: #fdf6dc; }
.w-table .tag {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 0.25em 1em;
  border-radius: 999px;
  background: var(--mc, var(--pop-yellow));
  white-space: nowrap;
}

/* ---------- ギャラリーグリッド ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4rem 3.6rem;
  padding: 0 clamp(2.4rem, 8vw, 12rem);
}
.gallery-grid figure { margin: 0; }
.gallery-grid .ph { aspect-ratio: 4 / 3; }
.gallery-grid figure:nth-child(6n+1) .ph { box-shadow: 10px 10px 0 var(--pop-yellow); }
.gallery-grid figure:nth-child(6n+2) .ph { box-shadow: 10px 10px 0 var(--pop-sky); }
.gallery-grid figure:nth-child(6n+3) .ph { box-shadow: 10px 10px 0 var(--pop-coral); }
.gallery-grid figure:nth-child(6n+4) .ph { box-shadow: 10px 10px 0 var(--pop-green); }
.gallery-grid figure:nth-child(6n+5) .ph { box-shadow: 10px 10px 0 var(--pop-purple); }
.gallery-grid figure:nth-child(6n+6) .ph { box-shadow: 10px 10px 0 var(--pop-orange); }
.gallery-grid figcaption { margin-top: 1.4rem; font-size: 1.35rem; font-weight: 500; }
.gallery-grid figcaption small { display: block; color: var(--c-sub); font-size: 1.15rem; margin-top: 0.2em; }

/* ---------- 下層共通の余白 ---------- */
.page-section { padding: 8rem 0; }
.page-section--tint { background: #f7fbff; }
.page-section .sec-head { margin-bottom: 5rem; }
.page-cta { text-align: center; padding: 10rem 2.4rem; background: #fdf6dc; }
.page-cta__ttl { font-size: clamp(2.2rem, 3.4vw, 3.2rem); font-weight: 900; letter-spacing: 0.1em; margin-bottom: 3rem; }

@media (max-width: 768px) {
  .split, .b-detail__inner { grid-template-columns: 1fr; gap: 3.6rem; }
  .split--rev .split__img { order: 0; }
  .b-detail__img { position: static; }
  .history li { gap: 1.2rem; flex-direction: column; padding-bottom: 3rem; }
  .history__year { width: auto; }
  .page-hero { padding-top: 14rem; }
}

@media (max-width: 640px) {
  .header { padding: 1.6rem 2rem; }
  .header__logo-en { font-size: 2rem; }
  .header__logo-ja { font-size: 0.9rem; letter-spacing: 0.2em; }
  .header__menu-txt { display: none; }
  .menu-btn { width: 46px; height: 46px; }
  .kv__copy { font-size: clamp(3.4rem, 13vw, 4.2rem); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
