/* ==========================================================================
   三条文化建設 サイト共通スタイル（2026 リニューアル）
   - 全ページ共通。トップ専用の部分と下層ページの部分を含む
   - スマートフォン（375px）基準のモバイルファースト
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --paper: #f3f2ee;
  --white: #ffffff;
  --ink: #15181c;
  --ink-2: #4b5057;
  --line: rgba(21, 24, 28, 0.14);
  --line-strong: rgba(21, 24, 28, 0.28);
  --deep: #0c1b3a;
  --deeper: #08132b;
  --blue: #065eb6;
  --mist: #a3bfda;
  --on-deep-2: rgba(255, 255, 255, 0.74);
  --on-deep-line: rgba(255, 255, 255, 0.18);

  --ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --sys: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --en: "Inter Tight", "Helvetica Neue", Arial, var(--ja);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: 20px;
  --header: 64px;
  --sec: 56px;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --sec: 72px; --header: 72px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 64px; --sec: 90px; --header: 80px; }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header); }
body.sbt {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ja);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
}
:where(.sbt) :where(h1, h2, h3, p, ul, ol, dl, dd, figure) { margin: 0; padding: 0; }
:where(.sbt) :where(ul, ol) { list-style: none; }
:where(.sbt) a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:where(.sbt) img { display: block; max-width: 100%; height: auto; }
:where(.sbt) picture { display: contents; }
:where(.sbt) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
:where(.sbt) address { font-style: normal; }
.sbt :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sbt [data-theme="deep"] :focus-visible, .menu :focus-visible { outline-color: var(--mist); }
.sbt ::selection { background: var(--blue); color: #fff; }

h1, h2, h3, .hero__copy, .pipe__title, .people__msg, .works__title, .news__title, .card__title, .commit__list span, .ft__nav a, .timeline__text { word-break: auto-phrase; text-wrap: pretty; }
/* CMSから入る文字列はWebフォントのサブセット外になるため、システムフォントで統一 */
.works__title, .works__info, .tags, .people__msg, .people__name small, .news__title, .news__empty { font-family: var(--sys); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; font-size: 14px; }
.skip:focus { top: 12px; }
@media (min-width: 768px) { .u-sp { display: none; } }

:where(.sbt) :where(.about__grid, .facts, .pipe__item, .biz__body, .biz__text, .works__list, .people__head, .recruit__grid, .points, .terms, .news__grid, .insta .wrap, .contact__inner, .ft__grid, .ft__nav) > * { min-width: 0; }
body.sbt { overflow-x: clip; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec); }
.sec--deep { background: var(--deep); color: #fff; }

/* --------------------------------------------------------------------------
   Typography / parts
   -------------------------------------------------------------------------- */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--en);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.label__num { color: var(--blue); }
.label__line { width: 40px; height: 1px; background: currentColor; transform-origin: left; }
.sec--deep .label, [data-theme="deep"] .label { color: var(--on-deep-2); }
.sec--deep .label__num, [data-theme="deep"] .label__num { color: var(--mist); }

.h2 {
  font-size: clamp(23px, 2.2vw + 14px, 44px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  font-feature-settings: "palt";
}
.h3 {
  font-size: clamp(19px, 0.7vw + 16px, 26px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.05em;
  font-feature-settings: "palt";
}

/* Arrow icon (SVG mask) */
.btn__arrow {
  display: inline-block;
  flex: none;
  width: 18px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.35s var(--ease);
}
.btn__arrow--left { transform: scaleX(-1); }
.btn__arrow--out { transform: rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: min(100%, 280px);
  min-height: 56px;
  padding: 0 22px 0 24px;
  border: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--fill { background: var(--ink); color: var(--paper); }
.btn--light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
@media (hover: hover) {
  .btn:hover { background: var(--ink); color: var(--paper); }
  .btn--fill:hover { background: var(--blue); border-color: var(--blue); }
  .btn--light:hover { background: #fff; color: var(--deep); border-color: #fff; }
  .btn:hover .btn__arrow { transform: translateX(4px); }
  .btn:hover .btn__arrow--out { transform: rotate(-45deg) translateX(3px); }
}

/* Text link */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
}
.tlink::after {
  content: "";
  width: 14px;
  height: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.35s var(--ease);
}
.tlink--light { color: #fff; }
@media (hover: hover) {
  .tlink:hover { color: var(--blue); }
  .tlink--light:hover { color: var(--mist); }
  .tlink:hover::after { transform: translateX(4px); }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.hd {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header);
  color: #fff;
  transition: transform 0.45s var(--ease), background-color 0.35s, color 0.35s, box-shadow 0.35s;
}
.hd.is-solid {
  background: rgba(243, 242, 238, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.hd.is-hidden { transform: translateY(-100%); }
.hd__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding-inline: var(--gutter);
  max-width: 1600px;
  margin-inline: auto;
}
.hd__logo { display: block; width: 172px; flex: none; padding-block: 8px; }
.hd__logo img { width: 100%; height: auto; }
.hd__logo-dark { display: none !important; }
.hd.is-solid .hd__logo-light { display: none !important; }
.hd.is-solid .hd__logo-dark { display: block !important; }

.hd__nav { display: none; }
.hd__cta {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  height: 40px;
  padding: 0 14px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.hd__cta-long { display: none; }
.hd__menu {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 44px;
  height: 44px;
  margin-right: -6px;
  padding: 0 6px;
}
.hd__menu-label { display: none; font-family: var(--en); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.hd__menu-icon { position: relative; display: block; width: 24px; height: 10px; }
.hd__menu-icon i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease); }
.hd__menu-icon i:first-child { top: 0; }
.hd__menu-icon i:last-child { bottom: 0; }

@media (hover: hover) {
  .hd__cta:hover { background: #fff; color: var(--deep); border-color: #fff; }
  .hd.is-solid .hd__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .hd__menu:hover .hd__menu-icon i:first-child { transform: translateX(-4px); }
}

@media (min-width: 768px) {
  .hd__logo { width: 210px; }
  .hd__cta { height: 44px; padding: 0 18px; font-size: 14px; }
  .hd__cta-long { display: inline; }
  .hd__cta-short { display: none; }
  .hd__menu-label { display: inline; }
  .hd__inner { gap: 20px; }
}
@media (min-width: 1200px) {
  .hd__nav { display: block; margin-left: auto; }
  .hd__nav ul { display: flex; gap: 28px; }
  .hd__nav a { display: block; padding-block: 12px; font-size: 14px; font-weight: 500; position: relative; }
  .hd__nav a::after { content: ""; position: absolute; left: 0; bottom: 6px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
  .hd__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .hd__cta { margin-left: 12px; }
  .hd__menu { display: none; }
}

/* --------------------------------------------------------------------------
   Menu (mobile / tablet)
   -------------------------------------------------------------------------- */
.menu { position: fixed; inset: 0; z-index: 60; color: #fff; }
.menu[hidden] { display: none; }
.menu__bg {
  position: absolute;
  inset: 0;
  background: var(--deep);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.45s var(--ease-io);
}
.menu.is-open .menu__bg { clip-path: inset(0 0 0 0); }
.menu__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--gutter) calc(32px + env(safe-area-inset-bottom));
}
.menu__head { display: flex; align-items: center; justify-content: space-between; height: var(--header); flex: none; }
.menu__head img { width: 172px; }
.menu__close { display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-right: -6px; padding: 0 6px; font-family: var(--en); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.menu__close > span:first-child { display: none; }
.menu__close-icon { position: relative; width: 22px; height: 22px; }
.menu__close-icon i { position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px; background: currentColor; }
.menu__close-icon i:first-child { transform: rotate(45deg); }
.menu__close-icon i:last-child { transform: rotate(-45deg); }
.menu__nav { margin-top: 24px; }
.menu__item { border-bottom: 1px solid var(--on-deep-line); }
.menu__item a { display: grid; grid-template-columns: 36px 1fr auto; align-items: baseline; padding-block: 15px; }
.menu__num { font-family: var(--en); font-size: 11px; color: var(--mist); letter-spacing: 0.1em; }
.menu__ja { font-size: 19px; font-weight: 700; letter-spacing: 0.04em; }
.menu__en { font-family: var(--en); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.menu__sub { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 16px; }
.menu__sub a { display: block; padding-block: 10px; font-size: 13px; color: var(--on-deep-2); }
.menu__cta { margin-top: auto; padding-top: 40px; }
.menu__cta .btn { width: 100%; }
.menu__tel { display: block; margin-top: 20px; font-family: var(--en); font-size: 24px; font-weight: 400; letter-spacing: 0.04em; line-height: 1.3; }
.menu__tel span { display: block; font-family: var(--ja); font-size: 12px; color: var(--on-deep-2); }

.menu__head, .menu__item, .menu__sub, .menu__cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.menu.is-open .menu__head, .menu.is-open .menu__item, .menu.is-open .menu__sub, .menu.is-open .menu__cta {
  opacity: 1;
  transform: none;
}
.menu.is-open .menu__head { transition-delay: 0.15s; }
.menu.is-open .menu__item { transition-delay: calc(0.18s + var(--i, 0) * 0.04s); }
.menu.is-open .menu__sub { transition-delay: 0.46s; }
.menu.is-open .menu__cta { transition-delay: 0.52s; }
.menu.is-closing .menu__head, .menu.is-closing .menu__item, .menu.is-closing .menu__sub, .menu.is-closing .menu__cta { transition-delay: 0s; transition-duration: 0.2s; }
@media (min-width: 768px) {
  .menu__close > span:first-child { display: inline; }
  .menu__nav { margin-top: 56px; }
  .menu__ja { font-size: 26px; }
  .menu__item a { grid-template-columns: 56px 1fr auto; padding-block: 20px; }
  .menu__cta { display: flex; align-items: center; gap: 40px; }
  .menu__cta .btn { width: auto; }
  .menu__tel { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: translate3d(0, calc(var(--hp, 0) * 14%), 0);
  will-change: transform;
}
.hero__img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: 56% 50%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(8, 19, 43, 0.5) 0%, rgba(8, 19, 43, 0) 22%),
    linear-gradient(to top, rgba(8, 19, 43, 0.86) 0%, rgba(8, 19, 43, 0.45) 42%, rgba(8, 19, 43, 0) 70%);
}
.hero__vertical {
  position: absolute;
  top: calc(var(--header) + 24px);
  right: calc(var(--gutter) - 4px);
  writing-mode: vertical-rl;
  font-family: var(--en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.8;
}
.hero__body {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(96px + env(safe-area-inset-bottom));
  opacity: calc(1 - var(--hp, 0) * 1.4);
  transform: translate3d(0, calc(var(--hp, 0) * -48px), 0);
}
.hero__title { font-weight: 700; }
.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.hero__eyebrow span + span { display: inline-flex; align-items: center; gap: 12px; }
.hero__eyebrow span + span::before { content: ""; width: 16px; height: 1px; background: currentColor; opacity: 0.7; }
.hero__copy {
  display: block;
  font-size: clamp(32px, 8.4vw, 94px);
  line-height: 1.34;
  letter-spacing: 0.03em;
  font-feature-settings: "palt";
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.hero__line > span { display: block; }
.hero__text { margin-top: 10px; font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, 0.82); }
.hero__text > span { display: inline-block; }

.hero__foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__scroll-line { position: relative; display: block; width: 1px; height: 44px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.hero__scroll-line i { position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: #fff; animation: drip 2.4s var(--ease-io) infinite; }
@keyframes drip {
  0% { transform: translateY(-14px); }
  60%, 100% { transform: translateY(44px); }
}
.hero__caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  text-align: right;
}
.hero__caption::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--mist); }

@media (min-width: 768px) {
  .hero__body { bottom: 128px; max-width: 980px; }
  .hero__eyebrow { font-size: 13px; margin-bottom: 24px; }
  .hero__text { font-size: 14px; }
  .hero__vertical { font-size: 11px; }
  .hero__foot { bottom: 36px; }
}
@media (min-width: 1024px) {
  .hero__body { bottom: 140px; }
  .hero__scrim {
    background:
      linear-gradient(to bottom, rgba(8, 19, 43, 0.5) 0%, rgba(8, 19, 43, 0) 20%),
      linear-gradient(to right, rgba(8, 19, 43, 0.62) 0%, rgba(8, 19, 43, 0.28) 45%, rgba(8, 19, 43, 0) 70%),
      linear-gradient(to top, rgba(8, 19, 43, 0.7) 0%, rgba(8, 19, 43, 0) 55%);
  }
  .hero__img { object-position: 50% 46%; }
}
@media (min-aspect-ratio: 16/10) and (min-width: 1024px) {
  .hero__copy { font-size: clamp(56px, 6.6vw, 112px); }
}

/* Hero intro（CSSのみ。JSの読み込みを待たずに再生し、初回描画を遅らせない） */
@keyframes hero-curtain { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes hero-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes rise-line { from { transform: translate3d(0, 108%, 0); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
@keyframes drop-in { from { opacity: 0; transform: translate3d(0, -8px, 0); } to { opacity: 1; transform: none; } }

.hero__media::after { content: ""; position: absolute; inset: -1px; background: var(--deep); transform-origin: 50% 100%; animation: hero-curtain 1.1s var(--ease-io) 0.05s both; }
.hero__img { animation: hero-zoom 1.8s var(--ease) both; }
.hero__line > span { animation: rise-line 0.9s var(--ease) 0.35s both; }
.hero__line + .hero__line > span { animation-delay: 0.45s; }
.hero__eyebrow { animation: rise 0.7s var(--ease) 0.25s both; }
.hero__text > span { animation: rise 0.8s var(--ease) 0.8s both; }
.hero__foot, .hero__vertical { animation: rise 0.8s var(--ease) 1s both; }
.hd__inner { animation: drop-in 0.4s var(--ease) 0.1s both; }

/* --------------------------------------------------------------------------
   OPENING（トップページ初回のみ。表示判定は header.php、終了処理は site.js）
   -------------------------------------------------------------------------- */
.opening { display: none; }
html.is-opening { overflow: hidden; }
.is-opening .opening {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--deep);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.7s var(--ease-io) 0.15s;
}
/* オープニング中はヒーローの演出を最初のフレームで止めておく */
.is-hold .hero__media::after, .is-hold .hero__img, .is-hold .hero__line > span, .is-hold .hero__eyebrow,
.is-hold .hero__text > span, .is-hold .hero__foot, .is-hold .hero__vertical, .is-hold .hd__inner { animation-play-state: paused; }

.opening__inner { display: flex; flex-direction: column; align-items: center; transition: opacity 0.4s var(--ease), transform 0.7s var(--ease); }
.opening.is-leave { opacity: 0; pointer-events: none; }
.opening.is-leave .opening__inner { opacity: 0; transform: translate3d(0, -12px, 0); }
.opening__svg { display: block; width: min(72vw, 400px); height: auto; overflow: visible; }
.opening__name {
  margin-top: 22px;
  padding-left: 0.34em;
  font-size: clamp(15px, 0.6vw + 12px, 19px);
  font-weight: 700;
  letter-spacing: 0.34em;
  line-height: 1.6;
  animation: op-wipe 1.1s var(--ease) 2s both;
}
.opening__en {
  margin-top: 10px;
  padding-left: 0.26em;
  font-family: var(--en);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mist);
  animation: rise 0.8s var(--ease) 2.3s both;
}
@media (min-width: 768px) { .opening__en { font-size: 11px; } }

.op-valve { fill: rgba(255, 255, 255, 0.6); opacity: 0; animation: op-in 0.4s var(--ease) 0.1s forwards; }
.op-pipe, .op-mouth, .op-flow { fill: none; stroke-linecap: round; }
.op-pipe, .op-mouth { stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.op-pipe { animation: op-draw 0.95s var(--ease-io) 0.15s forwards; }
.op-mouth { animation: op-draw 0.35s var(--ease) 1s forwards; }
.op-flow { stroke: #fff; stroke-width: 2; stroke-dasharray: 0.14 1.2; stroke-dashoffset: 0.14; opacity: 0; animation: op-flow 0.7s cubic-bezier(0.5, 0, 0.75, 0) 0.7s both; }
.op-pipe-group { animation: op-out 0.6s var(--ease) 2s forwards; }

.op-drop { fill: #fff; opacity: 0; transform-box: fill-box; transform-origin: 50% 0; animation: op-drop 0.66s linear 1.2s both; }
.op-surface { stroke: url(#op-surface); stroke-width: 1; transform-box: fill-box; transform-origin: center; transform: scaleX(0); animation: op-surface 1.3s var(--ease) 1.82s forwards; }
.op-ripple { fill: none; stroke: var(--mist); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transform-box: fill-box; transform-origin: center; animation: op-ripple 1.2s var(--ease) 1.84s both; }
.op-ripple--2 { animation-delay: 2.04s; }

.op-bar { transform: translate3d(0, 112px, 0); animation: op-bar 1.05s var(--ease) both; }
.op-bar--1 { fill: #2b72d6; animation-delay: 1.92s; }
.op-bar--2 { fill: #5b98e2; animation-delay: 2.02s; }
.op-bar--3 { fill: var(--mist); animation-delay: 2.12s; }

@keyframes op-in { to { opacity: 1; } }
@keyframes op-out { to { opacity: 0; } }
@keyframes op-draw { to { stroke-dashoffset: 0; } }
@keyframes op-flow {
  0% { opacity: 0; stroke-dashoffset: 0.14; }
  15%, 85% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -1; }
}
@keyframes op-drop {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.2); animation-timing-function: var(--ease); }
  32% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.4); }
  99% { opacity: 1; transform: translate3d(0, 95px, 0) scale(0.88, 1.12); }
  100% { opacity: 0; transform: translate3d(0, 95px, 0) scale(0.88, 1.12); }
}
@keyframes op-surface { to { transform: scaleX(1); } }
@keyframes op-ripple {
  0% { opacity: 0; transform: scale(0.06); }
  8% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes op-bar { to { transform: none; } }
@keyframes op-wipe {
  from { clip-path: inset(0 100% 0 0); transform: translate3d(-8px, 0, 0); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}

/* --------------------------------------------------------------------------
   ABOUT
   -------------------------------------------------------------------------- */
.about__text { margin-top: 28px; max-width: 34em; color: var(--ink-2); }
.about__text p + p { margin-top: 1em; }
.about__links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 40px; }
.about__photo { margin-top: 56px; margin-right: calc(var(--gutter) * -1); overflow: hidden; }
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__photo figcaption, .people__team figcaption { margin-top: 12px; font-size: 12px; color: var(--ink-2); letter-spacing: 0.06em; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.facts__item { padding: 14px; border-bottom: 1px solid var(--line); }
.facts__item:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.facts__item:nth-child(even) { padding-left: 20px; }
.facts dt { font-size: 12px; color: var(--ink-2); letter-spacing: 0.08em; }
.facts dd { margin-top: 6px; display: flex; align-items: baseline; }
.facts__num {
  font-family: var(--en);
  font-size: clamp(36px, 10.4vw, 92px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.facts__unit { margin-left: 4px; font-size: 14px; font-weight: 500; }

.commit { margin-top: 40px; }
.commit__title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.commit__list { margin-top: 16px; border-top: 1px solid var(--line); }
.commit__list li { border-bottom: 1px solid var(--line); }
.commit__list a {
  display: grid;
  grid-template-columns: 1fr 18px;
  grid-template-areas: "t a" "s a";
  align-items: center;
  column-gap: 16px;
  padding-block: 18px;
  transition: color 0.3s;
}
.commit__list a::after {
  content: "";
  grid-area: a;
  width: 14px;
  height: 8px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.35s var(--ease);
}
.commit__list span { grid-area: t; font-size: 15px; font-weight: 500; line-height: 1.6; }
.commit__list small { grid-area: s; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
@media (hover: hover) {
  .commit__list a:hover { color: var(--blue); }
  .commit__list a:hover::after { transform: translateX(4px); }
}

@media (min-width: 768px) {
  .about__links { flex-direction: row; align-items: center; gap: 32px; }
  .facts { grid-template-columns: repeat(4, 1fr); margin-top: 88px; }
  .facts__item, .facts__item:nth-child(odd), .facts__item:nth-child(even) { padding: 28px 24px 32px; border-right: 1px solid var(--line); }
  .facts__item:first-child { padding-left: 0; }
  .facts__item:last-child { border-right: 0; }
  .facts dd { margin-top: 10px; }
  .facts__num { font-size: clamp(48px, 6vw, 92px); }
  .commit { margin-top: 80px; }
}
@media (min-width: 1024px) {
  .about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: end; }
  .about__photo { margin-top: 0; }
  .commit { display: grid; grid-template-columns: 3fr 9fr; gap: 40px; margin-top: 120px; }
  .commit__list { margin-top: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; border-top: 0; }
  .commit__list li { border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   VALUE（配管が分岐し、暮らしにつながる）
   -------------------------------------------------------------------------- */
.value { background: var(--white); }
.value__lead { max-width: 34em; margin-top: 28px; color: var(--ink-2); }
.pipe { --pl: 34px; position: relative; margin-top: 72px; padding-left: var(--pl); }
.pipe__track {
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}
.pipe__water {
  position: absolute;
  inset: 0;
  background: var(--blue);
  transform-origin: top;
  transform: scaleY(var(--pipe, 0));
}
.pipe__head {
  position: absolute;
  left: 50%;
  top: calc(var(--pipe, 0) * 100%);
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(6, 94, 182, 0.16);
  opacity: calc(var(--pipe, 0) * 40);
}
.pipe__head::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--blue); animation: ripple 2.4s var(--ease) infinite; }
@keyframes ripple { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(2.6); opacity: 0; } }
.pipe__item { position: relative; padding-bottom: 72px; }
.pipe__item:last-child { padding-bottom: 0; }
.pipe__node {
  position: absolute;
  left: calc(var(--pl) * -1);
  top: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.6s var(--ease);
}
.pipe__node::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 14px;
  width: calc(var(--pl) - 22px);
  height: 2px;
  background: var(--line-strong);
  transform-origin: left;
  transition: background-color 0.4s var(--ease);
}
.pipe__item.is-on .pipe__node { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 6px rgba(6, 94, 182, 0.12); }
.pipe__item.is-on .pipe__node::after { background: var(--blue); }
.pipe__en {
  font-family: var(--en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  line-height: 1.5;
}
.pipe__en span { margin-right: 10px; }
.pipe__title { margin: 10px 0 14px; font-size: clamp(21px, 1.1vw + 16px, 32px); font-weight: 700; line-height: 1.45; letter-spacing: 0.05em; font-feature-settings: "palt"; }
.pipe__text > p:not(.pipe__en) { color: var(--ink-2); max-width: 28em; }
.pipe__photo { margin-top: 28px; overflow: hidden; }
.pipe__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 768px) {
  .pipe { --pl: 64px; }
  .pipe__item { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; padding-bottom: 104px; }
  .pipe__photo { margin-top: 0; }
}
@media (min-width: 1024px) {
  .pipe { --pl: 120px; margin-top: 112px; }
  .pipe__item { grid-template-columns: 5fr 6fr; gap: 80px; padding-bottom: 144px; }
  .pipe__text { padding-top: 0; }
  .pipe__item:nth-child(odd) .pipe__photo { transform: translateY(48px); }
}

/* --------------------------------------------------------------------------
   BUSINESS
   -------------------------------------------------------------------------- */
.biz__intro > p { margin-top: 28px; max-width: 32em; color: var(--ink-2); }
.biz__body { margin-top: 64px; }
.biz__index { display: none; }
.biz__list { display: grid; gap: 40px; }
.biz__photo { position: relative; margin-inline: calc(var(--gutter) * -1); overflow: hidden; }
.biz__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.biz__num {
  position: absolute;
  left: var(--gutter);
  bottom: 14px;
  font-family: var(--en);
  font-size: 88px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(8, 19, 43, 0.25);
}
.biz__text { margin-top: 28px; }
.biz__en { font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.biz__text .h3 { margin: 6px 0 14px; }
.biz__text > p:not(.biz__en) { color: var(--ink-2); max-width: 30em; }
.biz__text .tlink { margin-top: 14px; }

@media (min-width: 768px) {
  .biz__list { gap: 88px; }
  .biz__photo { margin-inline: 0; }
  .biz__photo img { aspect-ratio: 3 / 2; }
  .biz__num { left: 24px; bottom: 16px; font-size: 112px; }
}
@media (min-width: 1024px) {
  .biz__intro { display: grid; grid-template-columns: 7fr 5fr; gap: 80px; align-items: end; }
  .biz__intro > p { margin-top: 0; }
  .biz__body { display: grid; grid-template-columns: 4fr 8fr; gap: 80px; margin-top: 112px; }
  .biz__index { display: block; position: sticky; top: calc(var(--header) + 64px); align-self: start; border-top: 1px solid var(--line); }
  .biz__index li {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
    font-size: 20px;
    font-weight: 700;
    color: rgba(21, 24, 28, 0.64);
    transition: color 0.4s var(--ease), padding 0.5s var(--ease);
  }
  .biz__index span { font-family: var(--en); font-size: 13px; font-weight: 500; color: inherit; transition: color 0.4s; }
  .biz__index li.is-active { color: var(--ink); padding-left: 16px; }
  .biz__index li.is-active span { color: var(--blue); }
  .biz__list { gap: 160px; }
  .biz__text { display: grid; grid-template-columns: 1fr 1.3fr; column-gap: 48px; margin-top: 36px; }
  .biz__en, .biz__text .h3 { grid-column: 1; }
  .biz__text .h3 { margin-bottom: 0; }
  .biz__text > p:not(.biz__en) { grid-column: 2; grid-row: 1 / span 2; }
  .biz__text .tlink { grid-column: 2; justify-self: start; }
}

/* --------------------------------------------------------------------------
   WORKS
   -------------------------------------------------------------------------- */
.works { background: var(--white); }
.works__head > p { margin-top: 28px; color: var(--ink-2); }
.works__list { display: grid; gap: 56px; margin-top: 56px; }
.works__item { min-width: 0; }
.works__item a { display: block; }
.works__photo { overflow: hidden; background: #e6e5e0; }
.works__photo img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.works__item--lead .works__photo { margin-inline: calc(var(--gutter) * -1); }
.works__meta { position: relative; margin-top: 18px; padding-right: 40px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 2px 9px; border: 1px solid var(--line-strong); font-size: 11px; line-height: 1.8; letter-spacing: 0.06em; }
.works__title { margin-top: 12px; font-size: 17px; font-weight: 700; line-height: 1.65; letter-spacing: 0.03em; font-feature-settings: "palt"; }
.works__item--lead .works__title { font-size: 20px; }
.works__info { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.works__more { position: absolute; right: 0; top: 2px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.works__more .btn__arrow { width: 14px; height: 8px; }
@media (hover: hover) {
  .works__item a:hover .works__photo img { transform: scale(1.04); }
  .works__item a:hover .works__more { background: var(--ink); border-color: var(--ink); color: #fff; }
  .works__item a:hover .works__title { color: var(--blue); }
}
.works__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; margin-top: 64px; }
.works__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.works__cats a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; transition: border-color 0.3s, background-color 0.3s, color 0.3s; }
.works__cats span { font-family: var(--en); font-size: 11px; color: var(--ink-2); }
@media (hover: hover) {
  .works__cats a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
  .works__cats a:hover span { color: rgba(255, 255, 255, 0.7); }
}

@media (min-width: 768px) {
  .works__list { gap: 0; }
  .works__item--lead { margin-bottom: 40px; }
  .works__photo img { aspect-ratio: 4 / 3; }
  .works__item--lead .works__photo { margin-inline: 0; }
  .works__item--lead .works__photo img { aspect-ratio: 16 / 9; }
  .works__item:not(.works__item--lead) { border-top: 1px solid var(--line); }
  .works__item:not(.works__item--lead):last-child { border-bottom: 1px solid var(--line); }
  .works__item:not(.works__item--lead) a { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; padding-block: 24px; }
  .works__item:not(.works__item--lead) .works__meta { margin-top: 0; }
}
@media (min-width: 1024px) {
  .works__head { display: grid; grid-template-columns: 7fr 5fr; gap: 80px; align-items: end; }
  .works__head > p { margin-top: 0; }
  .works__list { grid-template-columns: 7fr 5fr; grid-template-rows: auto auto auto; gap: 0 56px; margin-top: 96px; }
  .works__item--lead { grid-column: 1; grid-row: 1 / span 3; }
  .works__item--lead .works__photo img { aspect-ratio: 4 / 3; }
  .works__item--lead .works__title { font-size: 24px; }
  .works__item--lead { margin-bottom: 0; }
  .works__item:not(.works__item--lead) a { grid-template-columns: 180px 1fr; gap: 24px; }
  .works__item:not(.works__item--lead) .works__title { font-size: 16px; }
  .works__foot { flex-direction: row; align-items: center; justify-content: space-between; margin-top: 80px; }
}

/* --------------------------------------------------------------------------
   PEOPLE
   -------------------------------------------------------------------------- */
.people__head > p { margin-top: 28px; max-width: 30em; color: var(--ink-2); }
.people__team { margin-top: 56px; overflow: hidden; }
.people__team img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.people__slider { margin-top: 80px; }
.people__bar { display: flex; align-items: center; justify-content: space-between; }
.people__bar-title { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.people__ctrl { display: flex; gap: 8px; }
.people__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color 0.3s, color 0.3s, opacity 0.3s; }
.people__btn[disabled] { opacity: 0.3; cursor: default; }
@media (hover: hover) {
  .people__btn:not([disabled]):hover { background: var(--ink); color: #fff; border-color: var(--ink); }
}
.people__list {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.people__list::-webkit-scrollbar { display: none; }
.people__item { flex: 0 0 72%; scroll-snap-align: start; }
.people__item:last-child { margin-right: var(--gutter); }
.people__photo { overflow: hidden; background: #e6e5e0; }
.people__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1s var(--ease); }
.people__msg { margin-top: 18px; font-size: 15px; font-weight: 500; line-height: 1.8; letter-spacing: 0.04em; }
.people__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; }
.people__name span { font-family: var(--en); font-size: 16px; font-weight: 500; letter-spacing: 0.06em; }
.people__name small { font-size: 12px; color: var(--ink-2); }
@media (hover: hover) {
  .people__item a:hover .people__photo img { transform: scale(1.04); }
}
.people__foot { margin-top: 32px; }
@media (min-width: 768px) {
  .people__item { flex-basis: 40%; }
  .people__team img { aspect-ratio: 21 / 9; }
  .people__list { gap: 24px; }
  .people__head { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
  .people__head > p { margin-top: 0; }
}
@media (min-width: 1024px) {
  .people__item { flex-basis: calc((100% - 24px * 3 - var(--gutter)) / 3.4); }
  .people__list { padding-left: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); }
}

/* --------------------------------------------------------------------------
   RECRUIT
   -------------------------------------------------------------------------- */
.recruit__head > p { margin-top: 28px; max-width: 30em; color: var(--on-deep-2); }
.recruit__photos { position: relative; margin-top: 56px; padding-bottom: 56px; }
.recruit__photo { overflow: hidden; }
.recruit__photo img { width: 100%; object-fit: cover; }
.recruit__photo--a { width: 84%; }
.recruit__photo--a img { aspect-ratio: 4 / 3; }
.recruit__photo--b { position: absolute; right: 0; bottom: 0; width: 44%; outline: 6px solid var(--deep); }
.recruit__photo--b img { aspect-ratio: 1 / 1; }

.points { margin-top: 72px; border-top: 1px solid var(--on-deep-line); }
.points__item { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; padding-block: 26px; border-bottom: 1px solid var(--on-deep-line); }
.points__num { grid-row: 1 / span 2; font-family: var(--en); font-size: 13px; font-weight: 500; color: var(--mist); line-height: 2; }
.points h3 { font-size: 18px; font-weight: 700; line-height: 1.6; letter-spacing: 0.04em; }
.points p { margin-top: 8px; font-size: 14px; line-height: 1.9; color: var(--on-deep-2); }

.terms { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; border-top: 1px solid var(--on-deep-line); }
.terms > div { padding: 20px 0 22px; border-bottom: 1px solid var(--on-deep-line); }
.terms > div:first-child { grid-column: 1 / -1; }
.terms > div:nth-child(2) { border-right: 1px solid var(--on-deep-line); }
.terms > div:nth-child(3) { padding-left: 20px; }
.terms dt { font-size: 12px; color: var(--on-deep-2); letter-spacing: 0.08em; }
.terms dd { margin-top: 6px; font-size: 14px; font-weight: 500; }
.terms dd span { margin-inline: 2px; font-family: var(--en); font-size: 40px; font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; }
.recruit__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 56px; }
.recruit__sub { display: flex; flex-wrap: wrap; gap: 0 28px; }

@media (min-width: 768px) {
  .points { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .points__item { border-top: 1px solid var(--on-deep-line); }
  .terms { grid-template-columns: repeat(3, 1fr); }
  .terms > div, .terms > div:first-child { grid-column: auto; padding: 24px 24px 28px; border-right: 1px solid var(--on-deep-line); }
  .terms > div:first-child { padding-left: 0; }
  .terms > div:last-child { border-right: 0; }
  .terms dd span { font-size: 52px; }
  .recruit__cta { flex-direction: row; align-items: center; gap: 40px; }
}
@media (min-width: 1024px) {
  .recruit__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
  .recruit__photos { margin-top: 0; }
  .points { margin-top: 112px; column-gap: 80px; }
  .points__item { padding-block: 32px; }
}

/* --------------------------------------------------------------------------
   NEWS
   -------------------------------------------------------------------------- */
.news__grid { display: flex; flex-direction: column; }
.news__head { display: contents; }
.news__head .label { order: 0; }
.news__head .h2 { order: 1; }
.news__list { order: 2; margin-top: 40px; border-top: 1px solid var(--line); }
.news__all { order: 3; align-self: flex-start; margin-top: 28px; }
.news__list li { border-bottom: 1px solid var(--line); }
.news__list a { display: grid; grid-template-columns: 1fr 20px; column-gap: 16px; align-items: center; padding-block: 22px; transition: color 0.3s; }
.news__list time { grid-column: 1; font-family: var(--en); font-size: 12px; color: var(--ink-2); letter-spacing: 0.06em; line-height: 1.6; }
.news__title { grid-column: 1; margin-top: 4px; font-size: 15px; font-weight: 500; line-height: 1.75; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.news__list .btn__arrow { grid-column: 2; grid-row: 1 / span 2; width: 14px; height: 8px; }
.news__empty { padding-block: 22px; color: var(--ink-2); }
@media (hover: hover) {
  .news__list a:hover { color: var(--blue); }
  .news__list a:hover .btn__arrow { transform: translateX(4px); }
}
@media (min-width: 768px) {
  .news__list a { grid-template-columns: 120px 1fr 20px; padding-block: 28px; }
  .news__list time { grid-column: 1; }
  .news__title { grid-column: 2; grid-row: 1; margin-top: 0; }
  .news__list .btn__arrow { grid-column: 3; grid-row: 1; }
}
@media (min-width: 1024px) {
  .news__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 80px; }
  .news__head { display: block; }
  .news__list { margin-top: 0; }
  .news__all { margin-top: 32px; }
}

/* --------------------------------------------------------------------------
   INSTAGRAM
   -------------------------------------------------------------------------- */
.insta { background: var(--white); }
.insta__title { font-family: var(--en); font-size: clamp(22px, 3.6vw, 48px); font-weight: 400; line-height: 1.2; letter-spacing: -0.01em; }
.insta__title a { transition: color 0.3s; }
@media (hover: hover) { .insta__title a:hover { color: var(--blue); } }
.insta__head > p:not(.label) { margin-top: 16px; color: var(--ink-2); }
.insta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 40px; }
.insta__grid a { display: block; overflow: hidden; aspect-ratio: 1 / 1; background: #e6e5e0; }
.insta__grid img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1s var(--ease); }
@media (hover: hover) { .insta__grid a:hover img { transform: scale(1.05); } }
.insta__foot { margin-top: 40px; }
@media (min-width: 1024px) {
  .insta .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 0 80px; }
  /* 左カラムの幅に @アカウント名 が1行で収まる大きさにする */
  .insta__title { font-size: clamp(26px, 2.6vw, 40px); }
  .insta__grid { margin-top: 0; grid-template-columns: repeat(3, 1fr); gap: 8px; grid-row: 1 / span 2; grid-column: 2; }
  .insta__foot { grid-column: 1; align-self: end; }
}

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */
.contact { position: relative; overflow: hidden; padding-block: 60px; isolation: isolate; }
.contact__media { position: absolute; inset: 0; z-index: -1; }
.contact__media img { width: 100%; height: 100% !important; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: 0.2; }
.contact__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--deep) 0%, rgba(12, 27, 58, 0.6) 50%, var(--deep) 100%); }
.contact__title { font-size: clamp(23px, 2vw + 13px, 40px); }
.contact__text { margin-top: 24px; color: var(--on-deep-2); }
.contact__actions { display: grid; gap: 12px; margin-top: 48px; }
.contact__btn {
  display: grid;
  grid-template-columns: 1fr 20px;
  align-items: center;
  column-gap: 16px;
  padding: 24px 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
.contact__btn > :not(.btn__arrow) { grid-column: 1; }
.contact__btn .btn__arrow { grid-column: 2; grid-row: 1 / span 3; }
.contact__btn-en { font-family: var(--en); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); transition: color 0.35s; }
.contact__btn-ja { margin-top: 6px; font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: 0.04em; }
.contact__btn-tel { font-family: var(--en); font-size: 28px; font-weight: 400; letter-spacing: 0.04em; }
.contact__btn small { margin-top: 4px; font-size: 12px; color: var(--on-deep-2); transition: color 0.35s; }
@media (hover: hover) {
  .contact__btn:hover { background: #fff; color: var(--deep); border-color: #fff; }
  .contact__btn:hover .contact__btn-en { color: var(--blue); }
  .contact__btn:hover small { color: var(--ink-2); }
  .contact__btn:hover .btn__arrow { transform: translateX(4px); }
}
@media (min-width: 768px) {
  .contact { padding-block: 80px; }
  .contact__actions { grid-template-columns: 1fr 1fr; gap: 20px; }
  .contact__btn { padding: 36px 32px 40px; }
  .contact__btn-ja { font-size: 22px; }
  .contact__btn-tel { font-size: 34px; }
}
@media (min-width: 1024px) {
  .contact { padding-block: 100px; }
  .contact__inner { display: grid; grid-template-columns: 7fr 5fr; gap: 0 80px; align-items: end; }
  .contact__inner .label, .contact__title, .contact__text { grid-column: 1; }
  .contact__actions { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: 1fr; margin-top: 0; }
  .contact__btn-ja { font-size: clamp(22px, 2vw, 24px); }
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.ft { background: var(--deeper); color: #fff; padding: 72px 0 calc(104px + env(safe-area-inset-bottom)); font-size: 13px; }
.ft__logo { display: inline-block; width: 220px; }
.ft__address { margin-top: 24px; line-height: 2; color: var(--on-deep-2); }
.ft__address a { display: inline-block; margin-top: 4px; color: #fff; font-family: var(--en); font-size: 15px; letter-spacing: 0.04em; }
.ft__info .tlink { margin-top: 12px; font-size: 13px; }
/* スマホは左列を文字幅に合わせ、右列の長い項目（にいがた健康経営推進企業）を1行に収める */
.ft__nav { display: grid; grid-template-columns: auto 1fr; gap: 0 24px; margin-top: 48px; }
.ft__nav a { display: block; padding-block: 9px; color: var(--on-deep-2); line-height: 1.6; transition: color 0.3s; }
@media (hover: hover) { .ft__nav a:hover { color: #fff; } }
.ft__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--on-deep-line); font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.ft__bottom a { padding-block: 4px; }
.ft__bottom small { font-family: var(--en); font-size: 11px; letter-spacing: 0.08em; }
@media (min-width: 768px) {
  .ft__nav { grid-template-columns: 1fr 1fr; gap: 0 20px; }
}
@media (min-width: 1024px) {
  .ft { padding: 96px 0 48px; }
  .ft__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
  .ft__nav { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   Dock（スマホ固定CTA）
   -------------------------------------------------------------------------- */
.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 6px;
  transform: translate3d(0, calc(100% + 24px), 0);
  transition: transform 0.5s var(--ease);
}
.dock.is-visible { transform: none; }
.dock__btn {
  display: grid;
  place-items: center;
  height: 52px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 30px rgba(8, 19, 43, 0.18);
}
.dock__btn--main { background: var(--deep); color: #fff; border-color: var(--deep); }
@media (min-width: 1024px) { .dock { display: none; } }

/* ==========================================================================
   下層ページ（2026 リニューアル）
   ========================================================================== */
.is-lower main { padding-top: var(--header); }
.hd__nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu__item a[aria-current="page"] .menu__ja { color: var(--mist); }
.sec--tight { padding-block: calc(var(--sec) * 0.6); }
.sec--white { background: var(--white); --curtain: var(--white); }
.narrow { max-width: 800px; margin-inline: auto; }
.empty { padding-block: 40px; color: var(--ink-2); }
.links-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 56px; }

/* Breadcrumb */
.crumbs { font-size: 12px; color: var(--ink-2); letter-spacing: 0.04em; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: ""; width: 12px; height: 1px; margin: 0 10px; background: currentColor; opacity: 0.5; }
.crumbs a { padding-block: 10px; transition: color 0.3s; }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { display: block; max-width: 18em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

/* Page head */
.ph { padding-top: 16px; }
.ph--plain { padding-bottom: 8px; }
.ph__body { margin-top: 40px; }
.ph__en {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  animation: rise 0.7s var(--ease) 0.05s both;
}
.ph__en-line { width: 32px; height: 1px; background: currentColor; }
.ph__title {
  margin-top: 18px;
  font-size: clamp(28px, 2.8vw + 16px, 60px);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: 0.05em;
  font-feature-settings: "palt";
}
.ph__title > span { display: block; animation: rise 0.9s var(--ease) 0.12s both; }
.ph__title--post { font-size: clamp(21px, 1.3vw + 15px, 36px); line-height: 1.6; }
.ph__lead { margin-top: 24px; max-width: 40em; color: var(--ink-2); animation: rise 0.9s var(--ease) 0.25s both; }
.ph__photo { position: relative; margin-top: 48px; overflow: hidden; }
.ph__photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; animation: hero-zoom 1.8s var(--ease) both; }
.ph__photo::after { content: ""; position: absolute; inset: -1px; background: var(--paper); transform-origin: 50% 100%; animation: hero-curtain 1.1s var(--ease-io) 0.15s both; }
.ph__body--narrow { max-width: 800px; margin-inline: auto; }
.tags--head { margin-top: 18px; }
.tags--head a { display: block; transition: color 0.3s; }
.tags--head a:hover { color: var(--blue); }
@media (min-width: 768px) {
  .ph { padding-top: 24px; }
  .ph__body { margin-top: 64px; }
  .ph__photo { margin-top: 72px; }
  .ph__photo img { aspect-ratio: 21 / 9; }
}
@media (min-width: 1024px) {
  .ph__body { margin-top: 88px; }
  .ph__photo img { aspect-ratio: 5 / 2; }
}

/* Split layout */
.split__text { margin-top: 24px; max-width: 30em; color: var(--ink-2); }
.split__text p + p { margin-top: 1em; }
.split__side { margin-top: 32px; }
.split > :last-child { margin-top: 48px; }
@media (min-width: 1024px) {
  .split { display: grid; grid-template-columns: 4fr 8fr; gap: 80px; align-items: start; }
  .split > :last-child { margin-top: 0; }
  .split__head { position: sticky; top: calc(var(--header) + 40px); }
}

/* Timeline（沿革） */
.timeline { --pl: 34px; position: relative; padding-left: var(--pl); }
.timeline__track { position: absolute; left: 6px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.timeline__item { position: relative; padding-bottom: 44px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__node {
  position: absolute;
  left: calc(var(--pl) * -1);
  top: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.6s var(--ease);
}
.timeline__item.is-on .timeline__node { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 6px rgba(6, 94, 182, 0.12); }
.timeline__year { font-family: var(--en); font-size: clamp(36px, 3vw + 24px, 64px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.timeline__year span { margin-left: 8px; font-family: var(--ja); font-size: 14px; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-2); }
.timeline__text { margin-top: 8px; font-size: 16px; font-weight: 500; }
@media (min-width: 768px) {
  .timeline { --pl: 64px; }
  .timeline__item { display: grid; grid-template-columns: 208px 1fr; align-items: baseline; gap: 24px; padding-bottom: 56px; }
  .timeline__text { margin-top: 0; }
}

/* Gallery */
.gallery { padding-bottom: var(--sec); }
.gallery__list {
  display: flex;
  gap: 12px;
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gallery__list::-webkit-scrollbar { display: none; }
.gallery__list li { flex: 0 0 82%; scroll-snap-align: start; overflow: hidden; }
.gallery__list li:last-child { margin-right: var(--gutter); }
.gallery__list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 768px) { .gallery__list li { flex-basis: 46%; } .gallery__list { gap: 20px; } }
@media (min-width: 1024px) { .gallery__list li { flex-basis: 34%; } }

/* Spec table */
.spec { border-top: 1px solid var(--line); }
.spec > div { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 12px; font-weight: 700; color: var(--ink-2); letter-spacing: 0.08em; }
.spec dd { margin-top: 6px; line-height: 1.85; }
.spec a { color: var(--blue); }
@media (min-width: 768px) {
  .spec > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 24px 0; }
  .spec dt { font-size: 14px; color: var(--ink); }
  .spec dd { margin-top: 0; }
  .spec--compact > div { grid-template-columns: 112px 1fr; }
}
.commit__list--stack { margin-top: 0; }
@media (min-width: 1024px) {
  .commit__list--stack { display: block; border-top: 1px solid var(--line); }
  .commit__list--stack li { border-top: 0; }
}
@media (min-width: 1024px) {
  .commit__list--grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; border-top: 0; }
  .commit__list--grid li { border-top: 1px solid var(--line); }
}

/* Message */
.message__photo { overflow: hidden; margin-inline: calc(var(--gutter) * -1); }
.message__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.message__body { margin-top: 48px; }
.message__title { font-size: clamp(24px, 1.7vw + 16px, 42px); font-weight: 700; line-height: 1.55; letter-spacing: 0.05em; font-feature-settings: "palt"; }
.message__text { margin-top: 32px; max-width: 34em; }
.message__text p + p { margin-top: 1.2em; }
.message__sign { margin-top: 40px; }
.message__sign small { display: block; font-size: 12px; color: var(--ink-2); letter-spacing: 0.08em; }
.message__sign img { width: 220px; margin-top: 10px; }
@media (min-width: 768px) {
  .message__photo { margin-inline: 0; }
}
@media (min-width: 1024px) {
  .message__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 96px; align-items: start; }
  .message__photo { position: sticky; top: calc(var(--header) + 40px); }
  .message__photo img { aspect-ratio: 4 / 5; }
  .message__body { margin-top: 0; padding-top: 24px; }
}

/* Filter */
.filter { margin-inline: calc(var(--gutter) * -1); }
.filter ul { display: flex; gap: 8px; padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
.filter ul::-webkit-scrollbar { display: none; }
.filter a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.filter span { font-family: var(--en); font-size: 11px; color: var(--ink-2); }
.filter a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter a[aria-current="page"] span { color: rgba(255, 255, 255, 0.7); }
@media (hover: hover) { .filter a:hover { border-color: var(--ink); } }
@media (min-width: 768px) { .filter { margin-inline: 0; } .filter ul { flex-wrap: wrap; padding-inline: 0; } }

/* Cards */
.cards { display: grid; gap: 48px; margin-top: 48px; }
.card { min-width: 0; }
.card a { display: block; }
.card__photo { overflow: hidden; background: #e6e5e0; }
.card__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.card__meta { margin-top: 16px; }
.card__title { margin-top: 10px; font-family: var(--sys); font-size: 17px; font-weight: 700; line-height: 1.65; letter-spacing: 0.03em; transition: color 0.3s; }
@media (hover: hover) {
  .card a:hover .card__photo img { transform: scale(1.04); }
  .card a:hover .card__title { color: var(--blue); }
}
@media (min-width: 768px) { .cards { grid-template-columns: 1fr 1fr; gap: 64px 32px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 72px 40px; margin-top: 64px; } }
.cards--related { margin-top: 40px; }

/* Pager */
.pager { margin-top: 72px; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pager a, .pager span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  font-family: var(--en);
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
}
.pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .dots { border-color: transparent; }
@media (hover: hover) { .pager a:hover { background: var(--ink); color: #fff; border-color: var(--ink); } }

/* Detail（施工事例・お知らせ） */
.detail__photo { margin-top: 40px; }
/* 写真は切り抜かず、元の縦横比のまま全体を見せる */
.detail__photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; margin-inline: auto; }
.detail__grid { margin-top: 56px; }
.detail__grid > * + * { margin-top: 48px; }
@media (min-width: 1024px) {
  .detail__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .detail__grid > * + * { margin-top: 0; }
}
.detail__date { display: block; margin-top: 16px; font-family: var(--en); font-size: 13px; color: var(--ink-2); letter-spacing: 0.08em; }
.detail__thumb { margin-top: 40px; overflow: hidden; }
.detail__thumb img { width: 100%; height: auto; }
.detail .narrow .entry { margin-top: 40px; }

.postnav { display: grid; gap: 16px; margin-block: 96px 0; padding-bottom: var(--sec); }
.postnav__item a { display: block; padding: 18px 0; border-top: 1px solid var(--line); transition: color 0.3s; }
.postnav__item small { display: block; font-size: 12px; color: var(--ink-2); }
.postnav__item span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 4px; font-family: var(--sys); font-size: 14px; font-weight: 500; line-height: 1.6; }
.postnav__item a:hover { color: var(--blue); }
.postnav .btn { justify-self: start; order: 3; }
@media (min-width: 768px) {
  .postnav { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; }
  .postnav .btn { order: 0; }
  .postnav__item--next { text-align: right; }
}

/* Entry（CMS本文） */
.entry { font-family: var(--sys); font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.entry > * + * { margin-top: 1.4em; }
.entry h2 { margin-top: 2.4em; padding-left: 14px; border-left: 3px solid var(--blue); font-size: 21px; font-weight: 700; line-height: 1.6; }
.entry h3 { margin-top: 2em; font-size: 18px; font-weight: 700; line-height: 1.6; }
.entry a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry img { height: auto; }
.entry figure { margin-inline: 0; }
.entry figcaption { margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li + li { margin-top: 0.4em; }
.entry table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry th, .entry td { padding: 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry th { background: rgba(21, 24, 28, 0.04); }
.entry blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--line-strong); color: var(--ink-2); }

/* People grid */
.people-grid { display: grid; gap: 56px; }
.people-grid .people__item, .people-grid .people__item:last-child { flex: none; margin-right: 0; }
@media (min-width: 768px) { .people-grid { grid-template-columns: 1fr 1fr; gap: 72px 32px; } }
@media (min-width: 1024px) { .people-grid { grid-template-columns: repeat(3, 1fr); gap: 88px 40px; } }

/* Interview detail */
.iv__head { padding-top: 16px; }
.iv__grid { margin-top: 32px; }
.iv__portrait { overflow: hidden; margin-inline: calc(var(--gutter) * -1); }
.iv__portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; animation: hero-zoom 1.8s var(--ease) both; }
.iv__intro { margin-top: 40px; }
.iv__quote { margin-top: 20px; font-size: clamp(20px, 1.5vw + 14px, 34px); font-weight: 700; line-height: 1.65; letter-spacing: 0.05em; font-feature-settings: "palt"; font-family: var(--sys); animation: rise 0.9s var(--ease) 0.15s both; }
.iv__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 28px; font-weight: 400; }
.iv__name span { font-family: var(--en); font-size: 22px; font-weight: 500; letter-spacing: 0.06em; }
.iv__name small { font-family: var(--sys); font-size: 13px; color: var(--ink-2); }
.iv__scene { overflow: hidden; }
.iv__scene img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.qa { margin-top: 56px; }
.qa__item { padding-block: 32px 36px; border-top: 1px solid var(--line); }
.qa__item:last-child { border-bottom: 1px solid var(--line); }
.qa__num { font-family: var(--en); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: var(--blue); }
.qa__q { margin-top: 10px; font-size: 19px; font-weight: 700; line-height: 1.65; }
.qa__a { margin-top: 16px; font-family: var(--sys); color: var(--ink-2); }
@media (min-width: 768px) { .iv__portrait { margin-inline: 0; } }
@media (min-width: 1024px) {
  .iv__grid { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: end; }
  .iv__intro { margin-top: 0; padding-bottom: 24px; }
  .iv__body { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .iv__scene { position: sticky; top: calc(var(--header) + 40px); }
  .qa { margin-top: 0; }
}

/* Stories（採用） */
.stories { display: grid; gap: 96px; }
.story__photo { overflow: hidden; margin-inline: calc(var(--gutter) * -1); }
.story__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story__text { margin-top: 28px; }
.story__en { font-family: var(--en); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }
.story__en span { margin-right: 10px; }
.story__text .h3 { margin: 8px 0 18px; }
.story__text p:not(.story__en) { color: var(--ink-2); max-width: 32em; }
.story__text p:not(.story__en) + p { margin-top: 0.8em; }
@media (min-width: 768px) { .story__photo { margin-inline: 0; } }
@media (min-width: 1024px) {
  .stories { gap: 160px; }
  .story { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .story__text { margin-top: 0; }
  .story:nth-child(even) .story__photo { order: 2; }
}
.recruit-entry .terms { margin-top: 48px; }
.entry-links { display: grid; gap: 12px; margin-top: 48px; }
.entry-link {
  display: grid;
  grid-template-columns: 1fr 20px;
  column-gap: 16px;
  align-items: center;
  padding: 28px 24px 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
.entry-link > :not(.btn__arrow) { grid-column: 1; }
.entry-link .btn__arrow { grid-column: 2; grid-row: 1 / span 3; }
.entry-link__title { margin-top: 6px; font-size: 22px; font-weight: 700; line-height: 1.5; }
.entry-link small { margin-top: 6px; font-size: 12px; color: var(--on-deep-2); transition: color 0.35s; }
@media (hover: hover) {
  .entry-link:hover { background: #fff; color: var(--deep); border-color: #fff; }
  .entry-link:hover small { color: var(--ink-2); }
  .entry-link:hover .contact__btn-en { color: var(--blue); }
  .entry-link:hover .btn__arrow { transform: translateX(4px); }
}
@media (min-width: 768px) {
  .entry-links { grid-template-columns: 1fr 1fr; gap: 20px; }
  .entry-link { padding: 40px 32px 44px; }
}
@media (min-width: 1024px) { .entry-link__title { font-size: 26px; } }

/* Apply */
.apply { margin-top: 48px; padding: 28px 24px; background: var(--white); border: 1px solid var(--line); }
.apply__text { color: var(--ink-2); font-size: 14px; }
.apply__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 24px; }
.apply__tel { font-family: var(--en); font-size: 24px; letter-spacing: 0.04em; line-height: 1.3; }
.apply__tel small { display: block; font-family: var(--ja); font-size: 12px; color: var(--ink-2); }

/* Contact form（Contact Form 7） */
.tel-block { display: block; margin-top: 32px; padding: 24px; border: 1px solid var(--line-strong); transition: background-color 0.3s, color 0.3s; }
.tel-block small { display: block; font-size: 12px; color: var(--ink-2); }
.tel-block span { display: block; margin-top: 4px; font-family: var(--en); font-size: 30px; letter-spacing: 0.04em; line-height: 1.3; }
@media (hover: hover) { .tel-block:hover { background: var(--ink); color: #fff; } .tel-block:hover small { color: rgba(255, 255, 255, 0.7); } }
.form .p-contact__form__item { margin-bottom: 28px; }
.form .hidden-fields-container { display: none; margin: 0; padding: 0; border: 0; }
.form .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.form .required { display: inline-block; padding: 1px 8px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea, .form select {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-family: var(--sys);
  font-size: 16px;
  line-height: 1.7;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form .optional { display: inline-block; padding: 0 7px; border: 1px solid var(--line-strong); color: #6b6e72; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; }
.form select {
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.form .p-contact__form__agree { margin-top: 36px; text-align: center; }
.form .p-contact__form__agree .wpcf7-list-item { margin: 0; }
.form .p-contact__form__agree label { display: inline-flex; justify-content: center; margin: 0; font-weight: 500; cursor: pointer; }
.form .p-contact__form__agree input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.form .p-contact__form__agree a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.form textarea { min-height: 220px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(6, 94, 182, 0.18); }
.form ::placeholder { color: #9a9c9f; }
.form .p-contact__form__btn { margin-top: 40px; }
.form input[type="submit"] {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.3s;
}
.form input[type="submit"]:hover { background: var(--blue); }
.form input[type="submit"]:disabled { background: #a7a9ac; cursor: not-allowed; }
.form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12px; color: #b3261e; }
.form .wpcf7-not-valid { border-color: #b3261e; }
.form .wpcf7-response-output { margin: 24px 0 0 !important; padding: 16px !important; font-size: 14px; }
.form .wpcf7-spinner { display: block; margin: 12px auto 0; }
@media (min-width: 768px) { .form input[type="submit"] { width: auto; min-width: 320px; } }

/* Notice（完了・404） */
.notice { display: flex; align-items: center; min-height: 72vh; min-height: 72svh; padding-block: 96px 120px; }
.notice__title { margin-top: 20px; font-size: clamp(24px, 2vw + 14px, 44px); font-weight: 700; line-height: 1.5; letter-spacing: 0.05em; font-feature-settings: "palt"; animation: rise 0.9s var(--ease) 0.1s both; }
.notice__text { margin-top: 24px; color: var(--ink-2); animation: rise 0.9s var(--ease) 0.2s both; }
.notice .links-row { margin-top: 40px; animation: rise 0.9s var(--ease) 0.3s both; }

/* SDGs・健康経営 */
.framed img { width: 100%; height: auto; }
.goals { border-top: 1px solid var(--line); }
.goals__item { display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; padding-block: 20px; border-bottom: 1px solid var(--line); }
.goals__item img { width: 72px; height: 72px; }
.goals__item p { font-size: 14px; }
.goals__item p + p { margin-top: 0.4em; }
@media (min-width: 768px) { .goals__item { grid-template-columns: 96px 1fr; gap: 32px; } .goals__item img { width: 96px; height: 96px; } .goals__item p { font-size: inherit; } }
.docs { display: grid; gap: 40px; }
.docs__item img { width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.docs__item figcaption { margin-top: 12px; font-size: 12px; color: var(--ink-2); }
@media (min-width: 768px) { .docs { grid-template-columns: 1fr 1fr; gap: 40px; max-width: 960px; margin-inline: auto; } }
.prose > section + section { margin-top: 56px; }
.prose .h3 { margin-bottom: 16px; }
.prose p + p { margin-top: 1em; }
.numlist { counter-reset: n; margin-top: 20px; border-top: 1px solid var(--line); }
.numlist li { counter-increment: n; display: flex; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); font-weight: 500; }
.numlist li::before { content: counter(n, decimal-leading-zero); font-family: var(--en); font-size: 13px; color: var(--blue); line-height: 2; }

/* Access */
.access__address { margin-top: 24px; line-height: 2; }
.access__address a { font-family: var(--en); font-size: 18px; letter-spacing: 0.04em; }
.access__info .tlink { margin-top: 12px; }
.access__map { margin-top: 40px; overflow: hidden; }
.access__map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(0.6) contrast(1.05); }
@media (min-width: 1024px) {
  .access__grid { display: grid; grid-template-columns: 4fr 8fr; gap: 80px; align-items: center; }
  .access__map { margin-top: 0; }
  .access__map iframe { aspect-ratio: 16 / 9; }
}

/* Lower CTA */
.contact--lower { padding-block: 60px; }
@media (min-width: 768px) { .contact--lower { padding-block: 144px; } }

/* --------------------------------------------------------------------------
   Reveal（スクロールで視線を誘導）
   -------------------------------------------------------------------------- */
.js [data-reveal]:not([data-reveal="img"]):not([data-reveal="line"]) {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in:not([data-reveal="img"]):not([data-reveal="line"]) { opacity: 1; transform: none; }

:where(.js [data-reveal="img"]) { position: relative; }
.js [data-reveal="img"]::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  background: var(--curtain, var(--paper));
  transform-origin: 50% 100%;
  transition: transform 1.1s var(--ease-io);
  transition-delay: var(--d, 0s);
  pointer-events: none;
}
.js [data-reveal="img"].is-in::after { transform: scaleY(0); }
.js [data-reveal="img"] img { transform: scale(1.1); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="img"].is-in img { transform: scale(1); }
.js .works__item [data-reveal="img"].is-in img, .js .insta__grid [data-reveal="img"].is-in img { transition: transform 1s var(--ease); transition-delay: 0s; }
.value, .works, .insta { --curtain: var(--white); }
.sec--deep { --curtain: var(--deep); }

.js [data-reveal="line"] .label__line { transform: scaleX(0); transition: transform 0.9s var(--ease) 0.1s; }
.js [data-reveal="line"] > :not(.label__line) { opacity: 0; transition: opacity 0.6s var(--ease); }
.js [data-reveal="line"] .label__en { transition-delay: 0.35s; }
.js [data-reveal="line"].is-in .label__line { transform: scaleX(1); }
.js [data-reveal="line"].is-in > :not(.label__line) { opacity: 1; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal] img, .js [data-reveal] > *, .js [data-reveal] .label__line { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-reveal="img"]::after { display: none; }
  .hero__media::after, .ph__photo::after { display: none; }
  .ph__en, .ph__title > span, .ph__lead, .ph__photo img, .iv__portrait img, .iv__quote, .notice__title, .notice__text, .notice .links-row { animation: none !important; }
  .hero__img, .hero__line > span, .hero__eyebrow, .hero__text > span, .hero__foot, .hero__vertical, .hd__inner { animation: none !important; opacity: 1; transform: none; clip-path: none; }
  .hero__media, .hero__body { transform: none !important; opacity: 1 !important; }
  .hero__scroll-line i { display: none; }
  .opening { display: none !important; }
}
