/* 034 凪野化学 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #ffffff;
  --c-bg2: #f3f7ff;
  --c-ink: #0b1b33;
  --c-accent: #2f6bff;
  --c-accent-text: #1d4ed8;
  --c-cloud1: #7aa7ff;
  --c-cloud2: #8fe3ff;
  --c-cloud3: #c3b5ff;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #dbe3f0;
  --font: "IBM Plex Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  /* 切り抜きの形（GSAP で動かすので、同じ点の数の「たたんだ形」と組で持つ） */
  --hex: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  --circle: circle(50% at 50% 50%);
  --arch: inset(0% 0% 0% 0% round 999px 999px 0px 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.label { font-family: var(--font-mono); font-weight: 500; font-size: 15px; letter-spacing: .14em; color: var(--c-accent-text); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--c-accent); transform: rotate(45deg); }
.h2 { font-weight: 600; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.45; color: var(--c-ink); margin-bottom: 22px; letter-spacing: .02em; }
.note { margin-top: 16px; font-size: 15px; color: var(--c-sub); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 4px; line-height: 1; font-weight: 600; text-decoration: none; white-space: nowrap; flex: none; transition: background-color .3s; }
.btn--blue { background: var(--c-accent-text); color: #fff; }
.btn--blue:hover { background: var(--c-ink); }

/* ヘッダー */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 20px; height: 68px; padding: 0 12px 0 20px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c-line); }
.logo { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: var(--c-ink); white-space: nowrap; flex: none; }
.logo__mark { width: 30px; height: 30px; }
.logo__ja { font-weight: 700; font-size: 20px; letter-spacing: .1em; }
.logo__en { display: none; font-family: var(--font-mono); font-size: 15px; letter-spacing: .1em; color: var(--c-sub); }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 15px; }
@media (min-width: 768px) { .logo__en { display: inline; } }
@media (min-width: 1080px) {
  .header__inner { height: 80px; padding: 0 5vw; }
  .gnav { display: flex; gap: 32px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--c-ink); }
  .gnav a:hover { color: var(--c-accent-text); }
  .header__btn { margin-left: 0; padding: 0 24px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--c-ink); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--c-line); padding: 8px 20px 20px; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(11, 27, 51, .08); }
.spmenu__nav a { display: flex; align-items: center; min-height: 54px; font-weight: 600; font-size: 17px; color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 切り抜きの形（F04） ===== */
.shape { overflow: hidden; }
.shape img { width: 100%; height: 100%; object-fit: cover; }
/* 白地の写真は白い背景に溶けて形が見えないので、薄い青をかけて切り抜きの形を見せる */
.biz__photo, .hero__photo { background: #e3ecff; }
.biz__photo img, .hero__photo img { mix-blend-mode: multiply; }
.shape--hex { clip-path: var(--hex); }
.shape--circle { clip-path: var(--circle); }
.shape--arch { clip-path: var(--arch); }

/* ===== 演出①（D03＋E03）：ぼかした雲 ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 108px 20px 64px; overflow: hidden; background: var(--c-bg); }
.clouds { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; filter: blur(56px); opacity: .6; }
.cloud--1 { width: 70vw; height: 60vw; max-width: 760px; max-height: 640px; background: var(--c-cloud1); left: -24vw; top: 4%; }
.cloud--2 { width: 56vw; height: 52vw; max-width: 600px; max-height: 560px; background: var(--c-cloud2); right: -14vw; top: 28%; }
.cloud--3 { width: 50vw; height: 44vw; max-width: 520px; max-height: 460px; background: var(--c-cloud3); left: 24%; bottom: -12%; opacity: .5; }
.is-motion .cloud--1 { animation: morph1 22s ease-in-out infinite alternate; }
.is-motion .cloud--2 { animation: morph2 26s ease-in-out infinite alternate; }
.is-motion .cloud--3 { animation: morph3 30s ease-in-out infinite alternate; }
@keyframes morph1 { 50% { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; transform: translate(8vw, 4vh) scale(1.08); } 100% { border-radius: 38% 62% 50% 50% / 62% 38% 62% 38%; transform: translate(3vw, 10vh) scale(.95); } }
@keyframes morph2 { 50% { border-radius: 35% 65% 55% 45% / 40% 55% 45% 60%; transform: translate(-10vw, -6vh) scale(1.1); } 100% { border-radius: 55% 45% 40% 60% / 50% 62% 38% 50%; transform: translate(-4vw, 6vh); } }
@keyframes morph3 { 50% { border-radius: 50% 50% 65% 35% / 35% 65% 35% 65%; transform: translate(-8vw, -8vh) scale(1.15); } 100% { border-radius: 45% 55% 40% 60% / 60% 40% 60% 40%; transform: translate(6vw, -2vh); } }
.hero__inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; display: grid; gap: 40px; }
.hero__title { font-weight: 600; font-size: clamp(36px, 5.4vw, 76px); line-height: 1.3; color: var(--c-ink); letter-spacing: .02em; margin-bottom: 22px; }
.hero__lead { max-width: 30em; margin-bottom: 28px; color: var(--c-ink); }
.hero__photo { width: min(78vw, 420px); aspect-ratio: 1 / 1.08; justify-self: end; }
.hero__formula { position: absolute; right: 20px; bottom: 20px; font-family: var(--font-mono); font-size: 15px; color: var(--c-sub); }
.hero__formula sub { font-size: 15px; vertical-align: -.25em; line-height: 0; }
@media (min-width: 1080px) {
  .hero { padding: 140px 5vw 80px; display: flex; align-items: center; }
  .hero__inner { width: 100%; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 4vw; }
  .hero__photo { width: min(36vw, 520px); }
  .hero__formula { right: 5vw; bottom: 32px; }
}
[data-blur] .ch { display: inline-block; }
[data-blur] .ln { white-space: nowrap; }

/* ===== わたしたちについて ===== */
.about { padding: 96px 0; background: var(--c-bg2); }
.about__inner { display: grid; gap: 40px; align-items: center; }
.about__photo { width: min(70vw, 360px); aspect-ratio: 1; justify-self: center; }
.nums { display: grid; gap: 0; margin-top: 56px !important; }
.nums li { border-top: 1px solid var(--c-line); padding: 18px 0; display: flex; align-items: baseline; gap: 16px; }
.nums__v { font-family: var(--font); font-weight: 400; letter-spacing: 0; font-size: clamp(32px, 3.6vw, 44px); line-height: 1; color: var(--c-ink); white-space: nowrap; }
.nums__v small { font-family: var(--font); font-size: 16px; margin-left: 4px; }
@media (min-width: 900px) {
  .about { padding: 140px 0; }
  .about__inner { grid-template-columns: 1.3fr 1fr; gap: 80px; }
  .nums { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .nums li { display: block; }
}

/* ===== 演出②（F04）：事業 ===== */
.business { padding: 112px 0 40px; }
.biz { display: grid; gap: 28px; align-items: center; margin-top: 56px; }
.biz__photo { width: min(80vw, 460px); aspect-ratio: 1; justify-self: center; }
.biz__no { font-family: var(--font-mono); font-size: 15px; letter-spacing: .12em; color: var(--c-accent-text); }
.biz__name { font-weight: 600; font-size: clamp(26px, 3vw, 36px); color: var(--c-ink); margin: 6px 0 12px; }
.biz__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.biz__tags li { border: 1px solid var(--c-line); border-radius: 4px; padding: 2px 12px; font-size: 15px; color: var(--c-ink); background: #fff; }
@media (min-width: 900px) {
  .business { padding: 160px 0 80px; }
  .biz { grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 96px; }
  .biz:nth-of-type(even) .biz__photo { order: 2; }
}

/* ===== 研究開発 ===== */
.rd { position: relative; padding: 96px 20px; background: var(--c-ink); overflow: hidden; }
.rd__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd__panel { position: relative; max-width: 620px; margin: 0 auto; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); padding: 40px 28px; border-top: 4px solid var(--c-accent); }
@media (min-width: 1080px) { .rd { padding: 160px 5vw; } .rd__panel { margin: 0; padding: 56px 56px; } }

/* ===== 工場と環境 ===== */
.plant { padding: 112px 0; }
.plant__inner { display: grid; gap: 40px; align-items: end; }
.plant__photo { width: 100%; aspect-ratio: 4 / 3; }
.plant__list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--c-line); color: var(--c-ink); }
.plant__list span { flex: none; font-family: var(--font-mono); color: var(--c-accent-text); }
@media (min-width: 900px) { .plant { padding: 160px 0; } .plant__inner { grid-template-columns: 1.2fr 1fr; gap: 72px; } }

/* ===== 採用・お問い合わせ ===== */
.doors { display: grid; background: var(--c-bg2); }
.door { position: relative; display: block; padding: 56px 20px; text-decoration: none; color: var(--c-ink); border-top: 1px solid var(--c-line); transition: background-color .4s, color .4s; }
.door:hover, .door:focus-visible { background: var(--c-accent-text); color: #fff; }
.door__en { font-family: var(--font-mono); font-size: clamp(36px, 5vw, 64px); line-height: 1.1; letter-spacing: .04em; }
.door__ja { font-weight: 700; font-size: 20px; margin: 6px 0 10px; }
.door__arrow { position: absolute; right: 24px; top: 56px; font-size: 32px; transition: transform .4s; }
.door:hover .door__arrow { transform: translateX(8px); }
@media (min-width: 900px) { .doors { grid-template-columns: 1fr 1fr; } .door { padding: 96px 5vw; } .door + .door { border-left: 1px solid var(--c-line); } }

/* ===== フッター ===== */
.footer { background: var(--c-ink); color: #dbe5f5; padding: 64px 0 28px; font-size: 15px; }
.footer__inner { display: grid; gap: 24px; }
.footer__logo { font-weight: 700; font-size: 26px; letter-spacing: .1em; color: #fff; }
.footer__logo small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 15px; color: #9cc0ff; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer__fiction { margin-top: 32px; text-align: center; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: end; gap: 48px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
