/* コム計画室 採用サイト A案 */
:root {
  --egg: #03B8DF;      /* ロゴの卵の色 */
  --egg-m: #5FCFEA;
  --egg-l: #A6E6F5;
  --egg-xl: #E4F6FB;
  --pale: #EEF9FD;
  --pale2: #DDF3FA;
  --deep: #0A6F8F;
  --ink: #16313D;
  --ink2: #44606B;
  --yel: #FFD23F;
  --cta: #E8590C;
  --cta-h: #C94A05;
  --jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --en: "Outfit", "Noto Sans JP", sans-serif;
  --hd-h: 64px;
  --bar-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--jp);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--ink);
  background: #fff;
  overflow-x: clip;
  font-feature-settings: "palt" 0;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
svg use { fill: inherit; }
.sp { display: none; }
@media (max-width: 767px) { .sp { display: inline; } }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 40px; position: relative; z-index: 1; }
@media (max-width: 767px) { .wrap { padding-inline: 20px; } }
.txt { text-align: justify; text-justify: inter-character; line-break: strict; text-wrap: pretty; }
.ln { display: inline-block; white-space: nowrap; }
.nw { white-space: nowrap; }
.fact__note, .office__addr { word-break: auto-phrase; }
.biz__txt, .jcard__txt, .stack__txt { text-align: justify; text-justify: inter-character; line-break: strict; }

/* ---------- 見出し（英字の札＋和文） ---------- */
.lab { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lab__en { display: inline-block; font-family: var(--en); font-weight: 700; font-size: 14px; letter-spacing: .16em; line-height: 1; padding: 7px 10px 6px; border-radius: 4px; background: var(--egg-xl); color: var(--deep); }
.lab__jp { font-size: 15px; font-weight: 700; color: var(--egg); letter-spacing: .1em; line-height: 1.4; }
.lab--w .lab__en { background: #fff; color: var(--deep); }
.lab--w .lab__jp { color: #CFF3FB; }
.sttl__h { margin-top: 24px; font-size: clamp(28px, 3.4vw, 46px); font-weight: 900; line-height: 1.45; letter-spacing: .06em; color: var(--ink); }
.sttl--w .sttl__h { color: #fff; }
@media (max-width: 767px) {
  .lab { align-items: center; }
  .sttl, .job__head, .ig__text { text-align: center; }
}

/* ---------- 卵の飾り ---------- */
.floategg {
  position: absolute; left: var(--l); top: var(--t); width: var(--w); aspect-ratio: 260.74 / 299.3; height: auto;
  fill: var(--c, var(--egg-l)); pointer-events: none; z-index: 0;
  translate: 0 var(--py, 0px);
  animation: eggfloat 9s ease-in-out infinite;
}
.floategg:nth-of-type(2n) { animation-duration: 11s; animation-delay: -3s; }
.floategg--w { fill: rgba(255, 255, 255, .13); }
.floategg--w2 { fill: rgba(255, 255, 255, .22); }
@keyframes eggfloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@media (max-width: 767px) {
  .floategg { width: calc(var(--w) * .6); }
  .fe-pc { display: none; }
  .biz__txt, .jcard__txt, .stack__txt { word-break: normal; text-align: justify; text-justify: inter-character; line-break: strict; }
}

/* ---------- オープニング ---------- */
.op { display: none; }
html.op-run .op {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: #fff;
  transition: background-color .9s ease .25s;
}
.op__catch { font-size: clamp(20px, 2vw, 28px); font-weight: 700; color: var(--deep); letter-spacing: .22em; white-space: nowrap; padding-left: .22em; text-align: center; line-height: 1.8; }
@media (max-width: 767px) { .op__catch .ln { display: block; } }
.op__catch .ch { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(12px); transition: opacity .8s ease, filter .8s ease, transform .9s var(--ease); transition-delay: calc(var(--ci) * 45ms); }
html.op-1 .op__catch .ch { opacity: 1; filter: blur(0); transform: none; }
html.op-2 .op__catch { opacity: 0; filter: blur(6px); transform: translateY(-18px); transition: opacity .5s ease, filter .5s ease, transform .6s var(--ease); }
.op__catch { grid-area: 1 / 1; }
.op__egg { grid-area: 1 / 1; width: clamp(84px, 8vw, 120px); fill: var(--egg); opacity: 0; transform: scale(.6); filter: blur(14px); }
.op__egg svg { display: block; width: 100%; height: auto; }
html.op-2 .op__egg { opacity: 1; transform: scale(1); filter: blur(0); transition: opacity .7s ease .1s, transform .8s var(--ease) .1s, filter .7s ease .1s; }
html.op-3 .op__egg { opacity: 0; transform: scale(18); filter: blur(10px); transition: transform 1.2s cubic-bezier(.6, 0, .2, 1), opacity .8s ease .35s, filter .8s ease .35s; }
html.op-run .op::after {
  content: ""; grid-area: 1 / 1; width: 60vmax; height: 60vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(3, 184, 223, .28) 0%, rgba(3, 184, 223, .1) 40%, rgba(3, 184, 223, 0) 68%);
  opacity: 0; transform: scale(.2); pointer-events: none;
}
html.op-3 .op::after { opacity: 1; transform: scale(2.4); transition: transform 1.4s cubic-bezier(.3, .6, .2, 1), opacity .3s ease; }
html.op-4 .op::after { opacity: 0; transition: opacity .9s ease; }
html.op-3 .op { background-color: rgba(255, 255, 255, 0); pointer-events: none; }
html.op-done .op { display: none; }

/* ---------- ヘッダー ---------- */
.hd { position: fixed; top: 0; left: 0; right: 0; z-index: 80; padding: 16px 24px 0; pointer-events: none; transform: translate3d(0, var(--hd-y, 0px), 0); }
.hd__in {
  pointer-events: auto; display: flex; align-items: center; gap: 20px; height: var(--hd-h);
  padding: 0 8px 0 30px; border-radius: 999px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hd__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hd__logo img { height: 26px; width: auto; }
.hd__tag { font-family: var(--en); font-weight: 700; font-size: 13px; letter-spacing: .18em; color: var(--egg); line-height: 1; padding-top: 2px; }
.hd__nav { margin-left: auto; display: flex; gap: 28px; }
.hd__nav a { display: grid; justify-items: center; line-height: 1.25; transition: color .3s ease; }
.hd__nav a span { font-family: var(--en); font-weight: 700; font-size: 14px; letter-spacing: .1em; }
.hd__nav a small { font-size: 12px; color: var(--ink2); letter-spacing: .06em; }
.hd__nav a:hover { color: var(--egg); }
.hd__entry {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 24px; border-radius: 999px;
  background: var(--cta); color: #fff; font-family: var(--en); font-weight: 700; font-size: 15px; letter-spacing: .12em; transition: background-color .3s ease;
}
.hd__entry svg { width: 13px; height: 15px; fill: #fff; transition: transform .5s var(--ease); }
.hd__entry:hover { background: var(--cta-h); }
.hd__entry:hover svg { transform: rotate(-16deg); }
.hd__menu { display: none; }
html.op-run .hd { opacity: 0; }
html.op-run.op-3 .hd { opacity: 1; transition: opacity .9s ease .9s, transform .45s var(--ease); }
@media (max-width: 1099px) {
  .hd__nav { display: none; }
  .hd__entry { margin-left: auto; }
  .hd__menu {
    display: grid; place-items: center; align-content: center; gap: 4px; width: 52px; height: 52px; border-radius: 50%;
    border: 0; background: var(--deep); color: #fff; cursor: pointer; padding: 0;
  }
  .hd__bars { display: grid; gap: 5px; }
  .hd__bars i { display: block; width: 20px; height: 2px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease); }
  .hd__menu-t { font-family: var(--en); font-weight: 700; font-size: 9px; letter-spacing: .1em; line-height: 1; display: none; }
  .hd__menu[aria-expanded="true"] .hd__bars i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .hd__menu[aria-expanded="true"] .hd__bars i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
}
@media (max-width: 767px) {
  :root { --hd-h: 56px; }
  .hd { padding: 10px 12px 0; }
  .hd__in { padding: 0 6px 0 18px; gap: 10px; }
  .hd__logo img { height: 19px; }
  .hd__tag { display: none; }
  .hd__entry { height: 42px; padding: 0 14px 0 16px; font-size: 13px; gap: 7px; }
  .hd__menu { width: 44px; height: 44px; }
}

/* ---------- メニュー ---------- */
.menu { position: fixed; inset: 0; z-index: 70; background: var(--deep); color: #fff; display: grid; align-content: center; justify-items: center; gap: 36px; padding: 100px 24px 60px; overflow-y: auto; opacity: 0; transition: opacity .45s ease; }
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__nav { display: grid; gap: 14px; justify-items: center; position: relative; z-index: 1; }
.menu__nav a { display: grid; justify-items: center; line-height: 1.2; opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .7s var(--ease); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .05s; } .menu.is-open .menu__nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .15s; } .menu.is-open .menu__nav a:nth-child(5) { transition-delay: .2s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: .25s; } .menu.is-open .menu__nav a:nth-child(7) { transition-delay: .3s; }
.menu__nav a span { font-family: var(--en); font-weight: 800; font-size: clamp(28px, 7vw, 40px); letter-spacing: .06em; }
.menu__nav a small { font-size: 13px; color: var(--egg-l); letter-spacing: .1em; }
.menu__corp { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; position: relative; z-index: 1; }
.menu__corp svg { width: 20px; height: 20px; }
.menu__eggs .egg { position: absolute; fill: rgba(255, 255, 255, .1); aspect-ratio: 260.74 / 299.3; }
.menu__eggs .egg--a { width: 180px; left: -40px; top: 12%; }
.menu__eggs .egg--b { width: 90px; right: 10%; top: 8%; fill: rgba(166, 230, 245, .3); }
.menu__eggs .egg--c { width: 240px; right: -60px; bottom: -40px; }
html.menu-open { overflow: hidden; }

/* ---------- MV ---------- */
.mv { position: relative; height: 100vh; height: 100svh; min-height: 620px; background: var(--pale); overflow: hidden; display: grid; place-items: center; }
.mv__eggs { position: absolute; inset: 0; }
.mvegg, .mvdot {
  --w: calc(var(--s) * 1vw);
  position: absolute; left: calc(var(--x) * 1% - var(--w) / 2); top: calc(var(--y) * 1% - var(--w) * .574);
  width: var(--w); height: auto; aspect-ratio: 260.74 / 299.3;
  fill: var(--c); rotate: calc(var(--r, 0) * 1deg);
  translate: var(--mx, 0px) var(--my, 0px); scale: 1; opacity: 1;
  transition: translate .9s var(--ease);
}
.mvegg { animation: eggfloat var(--dd, 10s) ease-in-out infinite; }
.mvdot { --w: max(10px, calc(var(--s) * 1vw)); aspect-ratio: 1; border-radius: 50%; background: var(--yel); top: calc(var(--y) * 1% - var(--w) / 2); }
.mvdot--b { background: var(--egg); }
html.op-run .mvegg, html.op-run .mvdot { translate: var(--bx, 0px) var(--by, 0px); scale: .1; opacity: 0; }
html.op-run.op-3 .mvegg, html.op-run.op-3 .mvdot {
  translate: var(--mx, 0px) var(--my, 0px); scale: 1; opacity: 1;
  transition: translate 1.5s cubic-bezier(.16, 1, .3, 1) var(--bd, 0s), scale 1.4s cubic-bezier(.16, 1, .3, 1) var(--bd, 0s), opacity .5s ease var(--bd, 0s);
}
html.op-run.op-done .mvegg, html.op-run.op-done .mvdot { transition: translate .9s var(--ease); }
.mv__body { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; padding: calc(var(--hd-h) + 16px) 20px 40px; }
.mv__en { font-family: var(--en); font-weight: 600; font-size: clamp(16px, 1.4vw, 20px); letter-spacing: .14em; color: var(--egg); line-height: 1; }
.mv__catch { margin-top: 18px; font-size: clamp(26px, 3.2vw, 46px); font-weight: 900; line-height: 1.5; letter-spacing: .14em; color: var(--deep); padding-left: .14em; }
.mv__logo { margin-top: clamp(26px, 3.4vw, 44px); display: grid; justify-items: center; font-weight: 500; }
.mv__mark { width: clamp(120px, 13vw, 200px); height: auto; aspect-ratio: 260.74 / 299.3; fill: var(--egg); }
.mv__name { width: clamp(250px, 26vw, 390px); margin-top: clamp(22px, 2.4vw, 32px); }
.mv__sub { margin-top: 18px; display: flex; align-items: center; gap: 14px; line-height: 1; }
.mv__sub-en { font-family: var(--en); font-weight: 700; font-size: 14px; letter-spacing: .3em; color: var(--deep); }
.mv__sub-jp { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--ink2); }
.mv__sub-jp::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--egg); margin-right: 14px; vertical-align: 3px; }
.mv__scroll { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 2; display: grid; justify-items: center; gap: 6px; font-family: var(--en); font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--deep); padding-left: .2em; }
.mv__scroll i { display: block; width: 7px; height: 8px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%; background: var(--egg); opacity: .25; animation: scrolldot 1.8s ease-in-out infinite; }
.mv__scroll i:nth-of-type(2) { animation-delay: .2s; } .mv__scroll i:nth-of-type(3) { animation-delay: .4s; }
@keyframes scrolldot { 0%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(3px); } }
/* MV の文字・ロゴの出方（オープニングのあと） */
.mv__en, .mv__catch .ln, .mv__mark, .mv__name, .mv__sub, .mv__scroll span { --ad: 0s; }
html.op-run .mv__en, html.op-run .mv__catch .ln, html.op-run .mv__mark, html.op-run .mv__name, html.op-run .mv__sub, html.op-run .mv__scroll { opacity: 0; filter: blur(12px); transform: translateY(22px); }
html.op-run.op-3 .mv__en, html.op-run.op-3 .mv__catch .ln, html.op-run.op-3 .mv__mark, html.op-run.op-3 .mv__name, html.op-run.op-3 .mv__sub, html.op-run.op-3 .mv__scroll {
  opacity: 1; filter: blur(0); transform: none;
  transition: opacity 1s ease var(--ad), filter 1s ease var(--ad), transform 1.2s var(--ease) var(--ad);
}
.mv__mark { --ad: .25s; } .mv__en { --ad: .55s; } .mv__catch .ln:nth-child(1) { --ad: .7s; } .mv__catch .ln:nth-child(2) { --ad: .85s; }
.mv__name { --ad: 1s; } .mv__sub { --ad: 1.15s; } .mv__scroll { --ad: 1.4s; }
html.op-run.op-3 .mv__scroll { transform: translateX(-50%); }
html.op-run .mv__scroll { transform: translate(-50%, 22px); translate: none; }
@media (max-width: 767px) {
  .mv { height: calc(100svh - 64px); min-height: 560px; }
  .mvegg, .mvdot { --w: calc(var(--s) * 1.9vw); }
  .mvegg--pc { display: none; }
  .mvdot { --w: max(8px, calc(var(--s) * 1.6vw)); }
  .mv__catch .ln { display: block; }
  .mv__en { font-size: 14px; letter-spacing: .06em; }
  .mv__mark { width: 116px; }
  .mv__name { width: 250px; }
  .mv__sub { flex-direction: column; gap: 10px; }
  .mv__sub-jp::before { display: none; }
  .mv__scroll { bottom: 16px; }
}
@media (max-width: 767px) and (max-height: 720px) {
  .mv__body { padding-top: calc(var(--hd-h) + 10px); padding-bottom: 20px; }
  .mv__catch { font-size: 24px; margin-top: 12px; }
  .mv__logo { margin-top: 18px; }
  .mv__mark { width: 86px; }
  .mv__name { width: 220px; margin-top: 14px; }
  .mv__sub { margin-top: 12px; }
  .mv__scroll { display: none; }
}
@media (max-width: 374px) {
  .hd { padding: 8px 8px 0; }
  .hd__in { padding: 0 5px 0 14px; gap: 8px; }
  .hd__logo img { height: 16px; }
  .hd__entry { padding: 0 12px; font-size: 13px; letter-spacing: .08em; }
  .hd__entry svg { display: none; }
}
.hd__entry, .hd__menu { flex-shrink: 0; }

/* ---------- 共通の出方 ---------- */
html.js .rv { opacity: 0; translate: 0 28px; filter: blur(6px); transition: opacity 1s ease var(--rd, 0s), translate 1.1s var(--ease) var(--rd, 0s), filter 1s ease var(--rd, 0s); }
html.js .rv.is-in { opacity: 1; translate: 0 0; filter: none; }
.rvl { display: block; overflow: hidden; padding-bottom: .06em; }
.rvl > span { display: inline-block; white-space: nowrap; }
html.js .rvl > span { transform: translateY(110%); transition: transform 1.1s cubic-bezier(.2, .75, .2, 1) var(--rd, 0s); }
html.js .rvl.is-in > span { transform: none; }
html.js .bi { opacity: 0; filter: blur(var(--bi-blur, 20px)); transition: opacity var(--bi-dur, 1.4s) cubic-bezier(.25, .6, .3, 1) var(--bi-delay, .15s), filter var(--bi-dur, 1.4s) cubic-bezier(.25, .6, .3, 1) var(--bi-delay, .15s); }
html.js .bi.bi--l { --bi-blur: 28px; --bi-dur: 1.6s; }
html.js .bi.is-bi { opacity: 1; filter: blur(0); }
html.js .bi.is-bi.bi-done { filter: none; transition: none; }

/* ---------- ABOUT US ---------- */
.about { position: relative; padding: 150px 0 120px; background: #fff; overflow: clip; }
.about__big { position: absolute; width: min(48vw, 680px); aspect-ratio: 260.74 / 299.3; height: auto; right: -6vw; top: 80px; fill: var(--egg-xl); translate: 0 var(--py, 0px); z-index: 0; }
.about__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }
.about__msg { margin-top: 30px; font-size: clamp(30px, 3.5vw, 50px); font-weight: 900; line-height: 1.55; letter-spacing: .08em; color: var(--ink); }
.about__msg .rvl:nth-child(2) { --rd: .12s; } .about__msg .rvl:nth-child(3) { --rd: .24s; }
.about__msg .rvl:nth-child(3) > span { color: var(--egg); }
.about__body { margin-top: 36px; max-width: 32em; font-size: 16.5px; line-height: 2.1; color: var(--ink2); }
.about__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 40px; }
.ph { border-radius: 28px; overflow: hidden; background: var(--egg-xl); }
.ph img { width: 100%; height: 100%; object-fit: cover; scale: 1.1; translate: 0 var(--py, 0px); }
.ph--a { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.ph--b { aspect-ratio: 1; }
.ph--c { aspect-ratio: 3 / 4; margin-top: 72px; }
.fact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 110px; }
.fact__item { background: var(--pale2); border-radius: 28px; padding: 36px 24px 34px; text-align: center; display: grid; justify-items: center; align-content: start; }
.fact__item:nth-child(2) { --rd: .12s; } .fact__item:nth-child(3) { --rd: .24s; }
.ico { display: block; width: 96px; height: 96px; border-radius: 50%; background: #fff center / 74% no-repeat; }
.ico--1 { background-image: url(../img/kr-a-ico-1.png); }
.ico--2 { background-image: url(../img/kr-a-ico-2.png); }
.ico--3 { background-image: url(../img/kr-a-ico-3.png); }
.fact__lab { margin-top: 18px; font-size: 18px; font-weight: 700; color: var(--deep); letter-spacing: .14em; }
.fact__num { margin-top: 4px; font-family: var(--en); font-weight: 700; font-size: clamp(56px, 5.6vw, 84px); line-height: 1.05; color: var(--deep); letter-spacing: -.01em; }
.fact__num small { font-family: var(--jp); font-size: 20px; font-weight: 700; color: var(--ink); margin-left: 6px; letter-spacing: .04em; }
.fact__note { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink2); }
@media (max-width: 1023px) {
  .about__wrap { grid-template-columns: 1fr; gap: 40px; }
  .about__text { text-align: center; display: grid; justify-items: center; }
  .about__body { text-align: justify; }
}
@media (max-width: 767px) {
  .about { padding: 96px 0 80px; }
  .about__big { width: 92vw; right: -30vw; top: 40px; }
  .about__msg { font-size: clamp(26px, 7.6vw, 34px); }
  .about__body { font-size: 16px; margin-top: 28px; }
  .about__photos { gap: 16px; padding-top: 0; }
  .ph { border-radius: 20px; }
  .ph--c { margin-top: 40px; }
  .fact { grid-template-columns: 1fr; gap: 16px; margin-top: 64px; }
  .fact__item { padding: 28px 20px 26px; }
  .ico { width: 84px; height: 84px; }
}

/* ---------- 流れる英字 ---------- */
.mq { overflow: hidden; padding: 30px 0 70px; background: #fff; }
.mq__track { display: flex; align-items: center; width: max-content; animation: mq 38s linear infinite; }
.mq__track span { font-family: var(--en); font-weight: 800; font-size: clamp(60px, 9vw, 140px); line-height: 1.1; letter-spacing: -.01em; color: var(--egg-l); white-space: nowrap; }
.mq__track svg { width: clamp(30px, 4vw, 60px); aspect-ratio: 260.74 / 299.3; height: auto; fill: var(--egg); margin: 0 .5em; flex-shrink: 0; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (max-width: 767px) { .mq { padding: 10px 0 50px; } .mq__track svg { margin: 0 .35em; } }

/* ---------- 波の縁 ---------- */
.wave { position: absolute; left: 0; width: 100%; height: 90px; z-index: 2; pointer-events: none; display: block; }
.wave--top { top: -89px; }
.wave--bottom { bottom: -89px; }
@media (max-width: 767px) { .wave { height: 44px; } .wave--top { top: -43px; } .wave--bottom { bottom: -43px; } }

/* ---------- BUSINESS ---------- */
.biz { position: relative; background: var(--deep); color: #fff; padding: 110px 0 130px; z-index: 2; }
.biz .wave { fill: var(--deep); }
.biz__eggs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.biz__jp { text-wrap: balance; word-break: auto-phrase; }
.biz__txt { text-wrap: pretty; }
.biz__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.biz__card { position: relative; overflow: hidden; background: #fff; color: var(--ink); border-radius: 28px; padding: 40px 40px 38px; }
.biz__card:nth-child(2) { --rd: .1s; } .biz__card:nth-child(4) { --rd: .1s; }
.biz__card::after {
  content: ""; position: absolute; right: -36px; bottom: -48px; width: 150px; aspect-ratio: 260.74 / 299.3;
  background: var(--egg-xl); -webkit-mask: url(../img/egg.svg) center / contain no-repeat; mask: url(../img/egg.svg) center / contain no-repeat;
  transition: transform .9s var(--ease); z-index: 0;
}
.biz__card:hover::after { transform: translate(-14px, -14px) scale(1.12); }
.biz__card > * { position: relative; z-index: 1; }
.biz__no { font-family: var(--en); font-weight: 800; font-size: 56px; line-height: 1; color: var(--egg); }
.biz__en { margin-top: 14px; font-family: var(--en); font-weight: 700; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; color: var(--deep); letter-spacing: .01em; }
.biz__jp { margin-top: 6px; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.biz__txt { margin-top: 14px; font-size: 15.5px; line-height: 1.95; color: var(--ink2); max-width: 30em; }
@media (max-width: 767px) {
  .biz { padding: 70px 0 84px; }
  .biz__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .biz__card { padding: 30px 24px 30px; border-radius: 22px; text-align: center; }
  .biz__txt { text-align: justify; }
  .biz__no { font-size: 46px; }
}

/* ---------- JOB ---------- */
.job { position: relative; background: var(--pale); }
.job__pin { padding: 170px 0 110px; }
.job__head { margin-bottom: 44px; }
.job__view { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.job__view::-webkit-scrollbar { display: none; }
.job__track { display: flex; gap: 28px; width: max-content; padding-inline: max(40px, calc((100vw - 1240px) / 2 + 40px)); }
.jcard { width: min(80vw, 900px); display: grid; grid-template-columns: 42% 1fr; background: #fff; border-radius: 32px; overflow: hidden; scroll-snap-align: center; min-height: 520px; }
.jcard__ph { position: relative; background: var(--egg-xl); }
.jcard__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jcard__body { padding: 52px 48px 48px; display: flex; flex-direction: column; justify-content: center; }
.jcard__en { font-family: var(--en); font-weight: 800; font-size: clamp(40px, 4.3vw, 64px); line-height: 1; letter-spacing: -.005em; color: var(--egg); }
.jcard__jp { margin-top: 16px; font-size: 26px; font-weight: 900; letter-spacing: .08em; line-height: 1.4; }
.jcard__txt { margin-top: 20px; font-size: 16px; line-height: 2.05; color: var(--ink2); }
.job__bar { width: 220px; height: 4px; border-radius: 4px; background: var(--egg-l); margin: 40px auto 0; overflow: hidden; }
.job__bar i { display: block; height: 100%; width: 100%; background: var(--deep); transform-origin: left; transform: scaleX(var(--jp, .25)); transition: transform .2s linear; }
@media (min-width: 1025px) {
  html.js .job.is-pin { height: var(--job-h, 300vh); }
  html.js .job.is-pin .job__pin { position: sticky; top: 0; height: 100vh; padding: calc(var(--hd-h) + 40px) 0 40px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  html.js .job.is-pin .job__view { overflow: visible; scroll-snap-type: none; }
  html.js .job.is-pin .job__track { transform: translate3d(var(--jx, 0px), 0, 0); will-change: transform; }
  html.js .job.is-pin .jcard { height: min(58vh, 520px); min-height: 0; }
}
@media (max-width: 767px) {
  .job__pin { padding: 110px 0 76px; }
  .job__head { margin-bottom: 30px; }
  .job__track { gap: 14px; padding-inline: 20px; }
  .jcard { width: 82vw; grid-template-columns: 1fr; min-height: 0; border-radius: 24px; }
  .jcard__ph { aspect-ratio: 4 / 3; }
  .jcard__ph img { object-position: center 22%; }
  .jcard__body { padding: 26px 22px 30px; text-align: center; }
  .jcard__en { font-size: clamp(34px, 10vw, 44px); }
  .jcard__jp { font-size: 21px; margin-top: 10px; }
  .jcard__txt { text-align: justify; font-size: 15.5px; margin-top: 14px; }
  .job__bar { margin-top: 26px; }
}

/* ---------- STORY ---------- */
.story { position: relative; background: #fff; padding: 140px 0 160px; overflow: clip; }
.stack { margin-top: 64px; display: grid; gap: 48px; }
.stack__item { position: sticky; top: calc(var(--hd-h) + 40px + var(--i) * 20px); }
.stack__card {
  display: grid; grid-template-columns: 1.1fr 1fr; min-height: 440px; border-radius: 32px; overflow: hidden; background: var(--pale2);
  transform-origin: 50% 0; scale: var(--sc, 1); transition: scale .25s linear;
}
.stack__item:nth-child(2) .stack__card { background: #CDEEF8; }
.stack__item:nth-child(3) .stack__card { background: #BEE8F5; }
.stack__item:nth-child(4) .stack__card { background: #AFE2F2; }
.stack__ph { position: relative; background: var(--egg-xl); }
.stack__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stack__body { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; }
.stack__no { font-family: var(--en); font-weight: 700; font-size: 16px; letter-spacing: .16em; color: var(--deep); line-height: 1; }
.stack__no span { display: block; font-weight: 800; font-size: 76px; letter-spacing: -.01em; color: var(--egg); margin-bottom: 12px; }
.stack__h { margin-top: 22px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 900; letter-spacing: .08em; line-height: 1.4; }
.stack__txt { margin-top: 18px; font-size: 16.5px; line-height: 2.05; color: var(--ink); }
@media (max-width: 767px) {
  .story { padding: 90px 0 100px; }
  .stack { margin-top: 40px; gap: 24px; }
  .stack__item { top: calc(var(--hd-h) + 20px + var(--i) * 12px); }
  .stack__card { grid-template-columns: 1fr; min-height: 0; border-radius: 24px; }
  .stack__ph { aspect-ratio: 16 / 10; }
  .stack__body { padding: 26px 22px 30px; text-align: center; }
  .stack__no span { font-size: 54px; margin-bottom: 8px; }
  .stack__h { margin-top: 14px; font-size: 24px; }
  .stack__txt { text-align: justify; font-size: 15.5px; margin-top: 12px; }
}

/* ---------- MEMBER ---------- */
.member { position: relative; background: var(--pale); padding: 120px 0 130px; }
.member .wave { fill: var(--pale); }
.mem { margin-top: 60px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mem__item { background: #fff; border-radius: 32px; padding: 44px 32px 40px; text-align: center; display: grid; justify-items: center; align-content: start; }
.mem__item:nth-child(2) { --rd: .12s; } .mem__item:nth-child(3) { --rd: .24s; }
.mem__egg { position: relative; width: 104px; aspect-ratio: 260.74 / 299.3; display: grid; place-items: center; transform-origin: 50% 92%; }
.mem__egg svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--egg-l); }
.mem__egg span { position: relative; font-family: var(--en); font-weight: 800; font-size: 34px; color: var(--deep); padding-top: 14px; }
.mem__item:hover .mem__egg { animation: sway 1.6s ease-in-out; }
@keyframes sway { 0% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 65% { transform: rotate(5deg); } 100% { transform: rotate(0); } }
.mem__h { margin-top: 24px; font-size: 22px; font-weight: 900; line-height: 1.6; letter-spacing: .06em; }
.mem__txt { margin-top: 16px; font-size: 15.5px; line-height: 2; color: var(--ink2); text-align: justify; }
@media (max-width: 1023px) { .mem { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
@media (max-width: 767px) {
  .member { padding: 84px 0 90px; }
  .mem { margin-top: 40px; gap: 16px; }
  .mem__item { padding: 32px 22px 30px; border-radius: 24px; }
  .mem__h { font-size: 20px; }
}

/* ---------- ENVIRONMENT ---------- */
.env { position: relative; background: #fff; padding: calc(100px + min(15vw, 240px)) 0 130px; overflow: clip; }
.env__giant {
  position: absolute; top: 40px; left: 0; z-index: 0; display: flex; align-items: center; gap: .25em; white-space: nowrap;
  font-family: var(--en); font-weight: 800; font-size: clamp(90px, 15vw, 240px); line-height: 1; color: var(--egg-xl); letter-spacing: -.01em;
  transform: translate3d(var(--gx, 0px), 0, 0);
}
.env__giant svg { width: .5em; aspect-ratio: 260.74 / 299.3; height: auto; fill: var(--egg-l); }
.env__offices { margin-top: 60px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.office { position: relative; overflow: hidden; background: var(--deep); color: #fff; border-radius: 32px; padding: 44px 44px 40px; }
.office:nth-child(2) { --rd: .12s; }
.office::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; aspect-ratio: 260.74 / 299.3; background: rgba(255, 255, 255, .08);
  -webkit-mask: url(../img/egg.svg) center / contain no-repeat; mask: url(../img/egg.svg) center / contain no-repeat;
}
.office__en { font-family: var(--en); font-weight: 800; font-size: clamp(44px, 4.4vw, 64px); line-height: 1; color: var(--egg-l); }
.office__h { margin-top: 14px; font-size: 22px; font-weight: 900; letter-spacing: .08em; }
.office__addr { margin-top: 12px; font-size: 16px; line-height: 1.9; color: #DDF6FC; }
.office__tel { margin-top: 20px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--en); font-weight: 700; font-size: 26px; letter-spacing: .04em; position: relative; z-index: 1; }
.office__tel svg { width: 24px; height: 24px; }
.client { margin-top: 32px; background: var(--pale2); border-radius: 32px; padding: 40px 48px; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: center; }
.client__h { font-size: 26px; font-weight: 900; color: var(--deep); line-height: 1.5; letter-spacing: .06em; }
.client__h span { display: block; }
.client__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.client__list li { font-size: 15px; line-height: 1.7; }
.client__list b { display: block; color: var(--deep); font-size: 16px; font-weight: 900; letter-spacing: .06em; }
.client__list li { padding-left: 20px; position: relative; }
.client__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 12px; background: var(--egg); -webkit-mask: url(../img/egg.svg) center / contain no-repeat; mask: url(../img/egg.svg) center / contain no-repeat; }
@media (max-width: 1023px) { .client { grid-template-columns: 1fr; text-align: center; } .client__list { text-align: left; } }
@media (max-width: 767px) {
  .env { padding: calc(64px + 24vw) 0 90px; }
  .env__giant { top: 34px; font-size: 24vw; }
  .env__offices { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .office { padding: 32px 24px 30px; border-radius: 24px; text-align: center; }
  .client { padding: 30px 22px; border-radius: 24px; gap: 20px; }
  .client__h { font-size: 22px; }
  .client__list { grid-template-columns: 1fr; }
}

/* ---------- INSTAGRAM ---------- */
.ig { position: relative; background: var(--pale); padding: 130px 0 160px; overflow: clip; }
.ig__wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.ig__text .btn-line { margin-top: 36px; }
.igem { position: relative; background: #fff; border-radius: 28px; overflow: hidden; max-width: 560px; width: 100%; justify-self: end; }
.igem::before { content: ""; display: block; padding-top: calc(66.67% + 170px); }
.igem iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.btn-line { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; color: var(--deep); padding: 10px 0; }
.btn-line__ig { width: 24px; height: 24px; }
.btn-line__arw { width: 56px; height: 24px; padding: 0 4px; border-radius: 999px; background: var(--deep); color: #fff; transition: width .5s var(--ease); }
.btn-line:hover .btn-line__arw { width: 72px; }
@media (max-width: 1023px) { .ig__wrap { grid-template-columns: 1fr; gap: 40px; } .ig__text { text-align: center; display: grid; justify-items: center; } .igem { justify-self: center; } }
@media (max-width: 767px) { .ig { padding: 84px 0 110px; } }

/* ---------- ENTRY ---------- */
.entry { position: relative; background: var(--egg); padding: 90px 0 120px; text-align: center; overflow: visible; }
.entry .wave { fill: var(--egg); }
.entry__eggs { position: absolute; inset: 0; overflow: hidden; }
.entry__wrap { display: grid; justify-items: center; }
.entry .lab { align-items: center; }
.entry .lab__jp { color: var(--ink); }
.entry__h { margin-top: 22px; font-size: clamp(30px, 4.2vw, 58px); font-weight: 900; line-height: 1.5; letter-spacing: .08em; color: var(--ink); }
.entry__h .ln { display: block; }
.entry__jobs { margin-top: 32px; display: grid; justify-items: center; gap: 10px; }
.entry__jobs-h { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: .1em; }
.entry__jobs-l { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0; font-size: clamp(19px, 1.8vw, 24px); font-weight: 900; color: var(--ink); letter-spacing: .06em; }
.entry__jobs-l span { display: inline-flex; align-items: center; white-space: nowrap; }
.entry__jobs-l span + span::before { content: ""; width: 9px; height: 10px; margin: 0 16px; background: #fff; -webkit-mask: url(../img/egg.svg) center / contain no-repeat; mask: url(../img/egg.svg) center / contain no-repeat; }
.entry__jobs-l .entry__jobs-etc { font-size: .8em; }
.entry__lead { margin-top: 24px; font-size: 17px; font-weight: 700; color: var(--ink); }
@media (max-width: 767px) { .entry__lead { font-size: 15px; } .entry__lead .ln { display: block; } }
.btn-cta {
  margin-top: 36px; display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-width: 420px; height: 88px;
  padding: 0 16px 0 48px; border-radius: 999px; background: var(--cta); color: #fff; font-size: 22px; font-weight: 900; letter-spacing: .1em;
  transition: background-color .3s ease;
}
.btn-cta:hover { background: var(--cta-h); }
.btn-cta__egg { position: relative; width: 50px; height: 58px; flex-shrink: 0; display: grid; place-items: center; }
.btn-cta__egg svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; fill: #fff; transition: transform .6s var(--ease); transform-origin: 50% 90%; }
.btn-cta__arw { position: relative; width: 22px; height: 22px; color: var(--cta); transition: transform .5s var(--ease); margin-top: 6px; }
.btn-cta:hover .btn-cta__egg svg:first-child { transform: rotate(-12deg); }
.btn-cta:hover .btn-cta__arw { transform: translateX(3px); }
.entry__tel { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 26px; }
.entry__tel p { width: 100%; font-size: 15px; font-weight: 700; color: var(--ink); }
.entry__tel a { font-family: var(--en); font-weight: 700; font-size: 28px; letter-spacing: .04em; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.entry__tel small { font-family: var(--jp); font-size: 14px; font-weight: 700; background: #fff; color: var(--deep); border-radius: 4px; padding: 2px 8px 1px; }
@media (max-width: 767px) {
  .entry { padding: 70px 0 90px; }
  .entry__h { font-size: clamp(24px, 7vw, 32px); }
  .btn-cta { min-width: 0; width: 100%; height: 76px; font-size: 19px; padding: 0 12px 0 28px; }
  .entry__tel a { font-size: 24px; }
}

/* ---------- フッター ---------- */
.ft { background: #fff; padding: 70px 0 48px; }
.ft__wrap { display: grid; justify-items: center; text-align: center; gap: 22px; }
.ft__logo img { width: 280px; }
.ft__offices { font-size: 14px; line-height: 1.9; color: var(--ink2); }
.ft__offices b { color: var(--ink); margin-right: 10px; }
.ft__offices span { display: inline-block; white-space: nowrap; }
.ft__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 15px; font-weight: 700; }
.ft__links a:hover { color: var(--egg); }
.ft__note, .ft__copy { font-size: 13px; color: var(--ink2); }
.ft__copy { font-family: var(--en); letter-spacing: .06em; }
@media (max-width: 767px) { .ft__logo img { width: 230px; } .ft__offices p + p { margin-top: 10px; } .ft__offices b { display: block; margin-right: 0; } }

/* ---------- スマホの下の CTA ---------- */
.spbar { display: none; }
@media (max-width: 640px) {
  :root { --bar-h: 64px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .spbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; display: grid; grid-template-columns: 1fr 1.5fr; height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); background: #fff; transform: translate3d(0, var(--bar-y, 0px), 0);
  }
  .spbar a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 16px; letter-spacing: .08em; }
  .spbar svg { width: 20px; height: 20px; }
  .spbar__tel { color: var(--deep); }
  .spbar__entry { background: var(--cta); color: #fff; }
  html.op-run .spbar { opacity: 0; }
  html.op-run.op-3 .spbar { opacity: 1; transition: opacity .8s ease 1s, transform .45s var(--ease); }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .rv, html.js .bi { opacity: 1 !important; translate: none !important; filter: none !important; }
  html.js .rvl > span { transform: none !important; }
}

/* スワイプのガイド（横に動かせる行に、最初だけ出す） */
.job__hint { display: none; }
@media (max-width: 1024px) {
  .job__pin { position: relative; }
  .job__hint {
    display: flex; align-items: center; gap: 8px; position: absolute; left: 50%; top: 52%; translate: -50% -50%; z-index: 3;
    padding: 12px 20px; border-radius: 999px; background: rgba(22, 49, 61, .82); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .06em;
    opacity: 0; pointer-events: none; transition: opacity .5s ease;
  }
  .job__hint svg { width: 22px; height: 22px; animation: hintx 1.2s ease-in-out infinite; }
  .job__hint.is-on { opacity: 1; }
}
@keyframes hintx { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }

/* ヘッダー：下へスクロールすると閉じ、止めて0.5秒で出る */
.hd { transition: transform .45s var(--ease); }
.hd.is-hide { transform: translate3d(0, -130%, 0); }
@media (max-width: 640px) {
  .spbar { transition: transform .45s var(--ease); }
  .spbar.is-hide { transform: translate3d(0, 110%, 0); }
}