/* 岸繊維産業 サイト共通スタイル。設計の考え方は docs/design-plan.md(末尾の「改訂計画」) */
:root {
  --white: #ffffff;
  --paper: #f3f4f1;
  --ink: #222420;
  --sub: #5b615a;
  --line: #d6dad3;
  --green: #3e5b4d;
  --green-deep: #2f473b;
  --green-pale: #a9c2b3;
  --night: #1c201e;
  --night-line: #3a403c;
  --on-dark: #f1f3ef;
  --on-dark-sub: #b7beb8;

  --mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 11vw, 160px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --ease-drop: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .04em;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--mincho);
  font-weight: 700;
  font-feature-settings: "palt";
  letter-spacing: .08em;
  line-height: 1.6;
}
p { margin: 0; }
figure { margin: 0; }
/* 日本語を文節で折り返す(対応していないブラウザでは通常の折り返し) */
h1, h2, h3, .intro-text, .sec-lead, .page-lead, .greeting-body, .contact-band p, .factory-name { word-break: auto-phrase; text-wrap: pretty; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 8px 14px;
}
.skip:focus { top: 12px; }
.skip:hover { color: var(--on-dark); }

/* ボタン(角の丸い枠と、横に伸びる矢印) */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-width: 260px; min-height: 56px; padding: 12px 28px 12px 32px;
  border: 1px solid currentColor; border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font-weight: 500; letter-spacing: .1em; line-height: 1.5;
  transition: background-color .4s, color .4s, border-color .4s;
}
.btn::after {
  content: ""; flex: none; width: 28px; height: 7px;
  border-bottom: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: skewX(45deg); transition: translate .4s var(--ease);
}
.btn:hover { color: #fff; background: var(--green); border-color: var(--green); }
.btn:hover::after { translate: 6px 0; }
.btn-light { color: var(--on-dark); }
.btn-light:hover { color: var(--ink); background: var(--on-dark); border-color: var(--on-dark); }

/* ===== ヘッダー(写真に重ね、スクロールしたら白地に) ===== */
.site-header {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  color: #fff;
  transition: background-color .5s, color .5s, box-shadow .5s, height .5s var(--ease);
}
html:not(.js) .site-header { position: absolute; }
.site-header:not(.is-solid) { text-shadow: 0 1px 10px rgba(0, 0, 0, .4); }
.site-header.is-solid { height: 68px; color: var(--ink); background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--line); }
.site-header :focus-visible { outline-color: currentColor; }
.brand {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none;
  font-family: var(--mincho); font-weight: 700; font-size: 19px;
  font-feature-settings: "palt"; letter-spacing: .1em; line-height: 1.4;
}
.brand:hover { color: inherit; }
.brand span, .menu-label { white-space: nowrap; }
.brand img { width: 38px; filter: brightness(0) invert(1) drop-shadow(0 1px 5px rgba(0, 0, 0, .45)); transition: filter .5s; }
.is-solid .brand img { filter: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(20px, 2.8vw, 44px); }
.site-nav a {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding-block: 6px;
  color: inherit; text-decoration: none;
  font-size: 15px; font-weight: 500; letter-spacing: .1em; line-height: 1.45;
}
.site-nav a:hover { color: inherit; }
.site-nav a span { font-family: var(--latin); font-style: italic; font-size: 14px; letter-spacing: .04em; opacity: .8; }
.site-nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px;
  background: currentColor; transition: left .4s var(--ease), right .4s var(--ease);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { left: 0; right: 0; }
.site-nav .nav-contact { padding: 8px 26px; border: 1px solid currentColor; border-radius: 999px; transition: background-color .4s, color .4s, border-color .4s; }
.site-nav .nav-contact::after { display: none; }
.site-nav .nav-contact:hover { color: var(--ink); background: #fff; border-color: #fff; }
.is-solid .site-nav .nav-contact { color: #fff; background: var(--green); border-color: var(--green); }
.is-solid .site-nav .nav-contact:hover { background: var(--green-deep); border-color: var(--green-deep); }

.menu-toggle {
  position: relative; z-index: 2;
  display: none; align-items: center; gap: 12px;
  min-height: 44px; padding: 8px 2px;
  color: inherit; background: none; border: 0; cursor: pointer;
  font: 500 14px/1 var(--gothic); letter-spacing: .12em;
}
.menu-icon { position: relative; width: 28px; height: 10px; }
.menu-icon::before, .menu-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: top .4s var(--ease), rotate .4s var(--ease);
}
.menu-icon::before { top: 0; }
.menu-icon::after { top: 8.5px; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 4.25px; rotate: 35deg; }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 4.25px; rotate: -35deg; }

/* ===== ヒーロー: 全画面の写真が切り替わり、縦書きのキャッチを重ねる ===== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; color: #fff; background: var(--night); }
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-lace img { object-position: 40% 50%; }
.hero-slide-ishikawa img { object-position: 50% 62%; }
/* 白い文字を読みやすくする影。キャッチのある右側と、ヘッダー・下端を濃くする */
.hero-slides::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 16, 14, .66) 0, rgba(12, 16, 14, .3) 90px, rgba(12, 16, 14, 0) 200px),
    linear-gradient(270deg, rgba(12, 16, 14, .64) 0, rgba(12, 16, 14, .26) 36%, rgba(12, 16, 14, 0) 70%),
    linear-gradient(0deg, rgba(12, 16, 14, .55) 0, rgba(12, 16, 14, 0) 26%);
}
.hero-copy {
  position: absolute; z-index: 2;
  top: calc(var(--header-h) + clamp(28px, 7vh, 88px));
  right: clamp(24px, 8vw, 140px);
  writing-mode: vertical-rl;
  font-weight: 900;
  /* 縦の長さが画面に収まるよう、幅と高さの小さいほうで決める */
  font-size: clamp(38px, min(5vw, 6.6vh), 80px);
  line-height: 1.4;
  letter-spacing: .14em;
  text-shadow: 0 0 28px rgba(0, 0, 0, .28);
}
.hero-copy .line { display: block; }
.hero-copy .line + .line { padding-top: 1.6em; }
.hero-copy .ch { display: inline-block; }

.hero-foot {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter) clamp(22px, 4vh, 40px);
}
.hero-since { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: clamp(22px, 2vw, 30px); line-height: 1; letter-spacing: .02em; }
.hero-controls { display: flex; align-items: center; gap: 14px; }
.hero-controls[hidden] { display: none; }
.hero-caption { min-width: 7.5em; text-align: right; font-size: 13px; letter-spacing: .14em; line-height: 1.4; }
.hero-dots { display: flex; gap: 6px; }
.hero-dot { position: relative; width: 52px; height: 44px; padding: 0; color: #fff; background: none; border: 0; cursor: pointer; }
.hero-dot::before, .hero-dot span { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; }
.hero-dot::before { background: rgba(255, 255, 255, .36); }
.hero-dot span { background: #fff; transform-origin: left center; scale: 0 1; }
.hero-dot[aria-pressed="true"] span { scale: 1 1; }
.hero-pause {
  display: grid; place-items: center; width: 44px; height: 44px; margin-left: 6px;
  color: #fff; background: rgba(12, 16, 14, .2); border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; cursor: pointer;
}
.hero-pause::before { content: ""; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero-pause[data-state="paused"]::before { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.hero :focus-visible { outline-color: #fff; }

/* 下へ続く一本の経糸(たていと)。写真の下端をまたいで、次の段へつなぐ */
.hero-scroll { position: absolute; z-index: 3; left: 50%; bottom: -56px; width: 44px; height: 112px; margin-left: -22px; }
.hero-scroll::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(rgba(255, 255, 255, .8) 0 50%, var(--green) 50% 100%);
}
.hero-scroll::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 5px; height: 5px; margin-left: -2px;
  border-radius: 50%; background: var(--green-pale); opacity: 0;
}

/* ===== セクション共通 ===== */
.section { padding-block: var(--section); }
.bg-paper { background: var(--paper); }
.sec-head { margin-bottom: clamp(44px, 5.6vw, 80px); }
.sec-en {
  font-family: var(--latin); font-weight: 500;
  font-size: clamp(50px, 6.6vw, 100px); line-height: .95; letter-spacing: .01em;
  color: var(--green);
}
.sec-head h2 { margin-top: 16px; font-size: clamp(18px, 1.6vw, 21px); letter-spacing: .2em; }
.sec-lead { margin-top: 26px; max-width: 36em; }
.on-dark .sec-en { color: var(--green-pale); }

/* 導入の一文 */
.intro { padding-block: clamp(120px, 14vw, 200px) clamp(96px, 11vw, 160px); text-align: center; }
.intro-text {
  font-family: var(--mincho); font-weight: 700;
  font-size: clamp(21px, 2.5vw, 34px); line-height: 2.1; letter-spacing: .14em;
  font-feature-settings: "palt";
}
.intro .btn { margin-top: clamp(40px, 5vw, 56px); }

/* ===== 弊社の強み: 大きな写真に白い文字箱を重ね、左右交互に ===== */
.strength-list { list-style: none; margin: 0; padding: 0 0 64px; display: grid; gap: clamp(112px, 13vw, 200px); }
.strength { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.strength-photo { grid-column: 1 / 9; grid-row: 1; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.strength-photo img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.strength-card {
  grid-column: 7 / 12; grid-row: 1; position: relative; z-index: 1;
  margin-bottom: -64px; padding: clamp(32px, 4vw, 60px);
  background: var(--white);
}
.strength:nth-child(even) .strength-photo { grid-column: 5 / 13; }
.strength:nth-child(even) .strength-card { grid-column: 2 / 7; }
.strength h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: .12em; }
.strength p { margin-top: 20px; }

/* ===== 工場: 暗い地に、写真を大きく使ったパネル2枚 ===== */
.factories { padding-bottom: 0; color: var(--on-dark); background: var(--night); }
.factory-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.factory-panel {
  position: relative; display: block; overflow: hidden;
  height: clamp(480px, 82vh, 860px);
  color: #fff; text-decoration: none; background: #000;
}
.factory-panel:hover { color: #fff; }
.factory-panel img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; transition: scale 1.6s var(--ease); }
.factory-panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 13, 11, .82) 0, rgba(10, 13, 11, .25) 52%, rgba(10, 13, 11, .12) 100%);
}
.factory-text {
  position: absolute; z-index: 1; left: clamp(24px, 4vw, 64px); right: clamp(24px, 4vw, 64px); bottom: clamp(32px, 5vw, 64px);
  display: grid; justify-items: start; gap: 4px;
}
.factory-en { font-family: var(--latin); font-style: italic; font-weight: 500; font-size: clamp(44px, 4.6vw, 68px); line-height: 1; }
.factory-name { margin-top: 10px; font-family: var(--mincho); font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: .14em; line-height: 1.5; }
.factory-addr { font-size: 14px; color: rgba(255, 255, 255, .88); }
.factory-more {
  display: inline-flex; align-items: center; gap: 18px; margin-top: 22px; padding: 8px 22px 8px 26px;
  border: 1px solid rgba(255, 255, 255, .8); border-radius: 999px; font-size: 14px; letter-spacing: .1em;
  transition: background-color .4s, color .4s;
}
.factory-more::after, .gate-arrow::after {
  content: ""; width: 22px; height: 6px;
  border-bottom: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: skewX(45deg); transition: translate .4s var(--ease);
}
.factory-panel:hover img { scale: 1.06; }
.factory-panel:hover .factory-more { color: var(--ink); background: #fff; }
.factory-panel:hover .factory-more::after { translate: 5px 0; }
.factory-panel:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

/* ===== 社長あいさつ ===== */
.greeting-grid {
  display: grid;
  grid-template-columns: minmax(240px, 400px) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
/* 元画像は白い余白と影を含むので、表示の枠で写真の部分だけを見せる(画像そのものは加工しない) */
.portrait-crop { aspect-ratio: 602 / 589; overflow: hidden; background: var(--paper); }
.portrait-crop img { width: 132.9%; max-width: none; margin-left: -17.44%; }
.greeting .sec-head { margin-bottom: clamp(28px, 3.6vw, 44px); }
.greeting-body {
  max-width: 33em;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 2.25;
  letter-spacing: .06em;
}
.greeting-body p + p { margin-top: 1.1em; }

/* ===== 会社概要 ===== */
.outline-list {
  margin: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.outline-row {
  display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px;
  padding-block: 20px; border-bottom: 1px solid var(--line);
}
.outline-row dt { font-size: 15px; font-weight: 700; color: var(--sub); padding-top: 1px; }
.outline-row dd { margin: 0; }
.outline-row.wide { grid-column: 1 / -1; }

/* 写真付きの入口(会社概要・工場設備・CSR規程) */
.gates { list-style: none; margin: clamp(64px, 8vw, 112px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.gate { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; text-decoration: none; background: var(--night); }
.gate:hover { color: #fff; }
.gate img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); }
.gate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 13, 11, .78) 0, rgba(10, 13, 11, .1) 60%); }
.gate-text { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.gate-en { display: block; font-family: var(--latin); font-weight: 500; font-size: clamp(30px, 2.8vw, 40px); line-height: 1; }
.gate-ja { display: block; margin-top: 10px; font-size: 14px; letter-spacing: .14em; line-height: 1.4; }
.gate-arrow { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; transition: background-color .4s, color .4s; }
.gate:hover img { scale: 1.07; }
.gate:hover .gate-arrow { color: var(--ink); background: #fff; }
.gate:hover .gate-arrow::after { translate: 4px 0; }
.gate:focus-visible { outline-offset: 4px; }

/* ===== お問い合わせの帯(暗くした写真の上) ===== */
.contact-band { position: relative; overflow: hidden; padding-block: clamp(104px, 12vw, 176px); color: var(--on-dark); background: var(--night); }
.contact-bg { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; opacity: .3; }
.contact-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; }
.contact-band .sec-en { color: var(--green-pale); }
.contact-band h2 { margin-top: 16px; font-size: clamp(18px, 1.6vw, 21px); letter-spacing: .2em; }
.contact-band p { margin-top: 20px; color: var(--on-dark-sub); }
.contact-band :focus-visible { outline-color: var(--on-dark); }

/* ===== フッター ===== */
.site-footer { color: var(--on-dark-sub); background: var(--night); border-top: 1px solid var(--night-line); font-size: 14px; line-height: 1.9; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.6fr .8fr; gap: 40px clamp(32px, 5vw, 80px); padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.footer-catch { margin-top: 18px; font-family: var(--mincho); font-weight: 700; color: var(--on-dark); letter-spacing: .12em; }
.footer-h { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--green-pale); }
.footer-offices dl { margin: 0; display: grid; gap: 10px; }
.footer-offices dl div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; }
.footer-offices dt { color: var(--on-dark); }
.footer-offices dd { margin: 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-nav a, .to-top { color: var(--on-dark); text-decoration: none; }
.footer-nav a:hover, .to-top:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px 28px; border-top: 1px solid var(--night-line); font-size: 12px; }
.to-top { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; letter-spacing: .1em; }
.to-top::after { content: ""; width: 7px; height: 7px; margin-top: 4px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; rotate: 45deg; }
.site-footer :focus-visible { outline-color: var(--on-dark); }
.brand-footer { color: var(--on-dark); }
.brand-footer:hover { color: #fff; }

/* ===== 動き(端末で「動きを減らす」にしていないときだけ) ===== */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* キャッチを一文字ずつ、上から */
  .hero-copy .ch { animation: ch-in 1.1s var(--ease) both; animation-delay: calc(.5s + var(--i) * 85ms); }
  /* 写真はゆっくり寄っていく */
  .js .hero-slide.is-active img, .js .hero-slide.is-leaving img { animation: zoom 9s ease-out both; }
  .hero.is-paused .hero-slide img { animation-play-state: paused; }
  .hero-dot.is-running span { animation: progress var(--slide-ms, 6.5s) linear both; }
  .hero.is-paused .hero-dot span { animation-play-state: paused; }
  .hero-scroll::after { animation: thread 2.6s var(--ease) 2.4s both; }
  .hero-since, .hero-controls { animation: fade-in 1.4s ease 1.6s both; }

  /* スクロールで現れる。.motion は head の小さなスクリプトが付ける(JS が動かないときは最初から見える) */
  .motion [data-reveal] {
    opacity: 0; translate: 0 28px;
    transition: opacity 1.1s var(--ease), translate 1.1s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .motion [data-reveal].is-in { opacity: 1; translate: 0 0; }
  /* 写真は、レースが機械から降りてくるように上から下へ */
  .motion [data-reveal="drop"] {
    opacity: 1; translate: none;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.6s var(--ease-drop);
    transition-delay: var(--delay, 0s);
  }
  .motion [data-reveal="drop"].is-in { clip-path: inset(0); }
  .motion [data-reveal="drop"] img { transition: scale 2.4s var(--ease); }
  .motion [data-reveal="drop"]:not(.is-in) img { scale: 1.16; }

  /* 下層ページの写真の帯 */
  .page-hero img { animation: settle 2.6s var(--ease) both; }
  .page-hero-inner > * { animation: rise 1.2s var(--ease) .2s both; }
  .page-hero-inner > * + * { animation-delay: .38s; }

  /* スマホのメニューの項目を順に */
  .js .site-nav[data-open="true"] li { animation: rise .6s var(--ease) both; }
  .js .site-nav[data-open="true"] li:nth-child(2) { animation-delay: .06s; }
  .js .site-nav[data-open="true"] li:nth-child(3) { animation-delay: .12s; }
  .js .site-nav[data-open="true"] li:nth-child(4) { animation-delay: .18s; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide, .site-header, .brand img, .js .site-nav, .site-nav a::after { transition: none; }
  .factory-panel img, .gate img { transition: none; }
  .factory-panel:hover img, .gate:hover img { scale: none; }
}
@keyframes ch-in { from { opacity: 0; translate: 0 -.7em; filter: blur(8px); } }
@keyframes zoom { from { scale: 1; } to { scale: 1.09; } }
@keyframes progress { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes thread { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 5px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes settle { from { scale: 1.12; } }
@keyframes rise { from { opacity: 0; translate: 0 22px; } }

/* ===== 下層ページ ===== */
.page-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  height: clamp(320px, 56vh, 560px);
  color: #fff; background: var(--night);
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 16, 14, .66) 0, rgba(12, 16, 14, .2) 38%, rgba(12, 16, 14, .62) 100%);
}
.page-hero-inner { position: relative; z-index: 1; padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero .sec-en { color: #fff; font-size: clamp(46px, 6.4vw, 92px); }
.page-hero h1 { margin-top: 14px; font-size: clamp(20px, 2vw, 26px); letter-spacing: .2em; }
.breadcrumb { border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; padding-block: 12px; margin-block: 0; padding-inline: 0; font-size: 13px; color: var(--sub); }
.breadcrumb li + li::before { content: "/"; margin-inline: .9em; color: #9aa199; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }
.page-body { padding-block: clamp(56px, 7vw, 104px) var(--section); }
.page-lead { max-width: 36em; margin-bottom: clamp(40px, 5vw, 64px); }

/* 会社概要(全項目) */
.outline-list.full { grid-template-columns: 1fr; max-width: 860px; }
.outline-list.full .outline-row { grid-template-columns: 10em minmax(0, 1fr); }

/* 工場設備 */
.plant + .plant { margin-top: var(--section); }
.plant-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; margin-bottom: 28px; }
.plant-en { flex-basis: 100%; font-family: var(--latin); font-style: italic; font-weight: 500; font-size: clamp(36px, 4vw, 56px); line-height: 1; color: var(--green); }
.plant-head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.plant-head p { font-size: 15px; color: var(--sub); }
.gallery-main { overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-rest {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(10px, 1.6vw, 20px); margin-top: clamp(10px, 1.6vw, 20px);
}
.gallery-rest figure { overflow: hidden; }
.gallery-rest img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* CSR規程 */
.csr h2 { font-size: clamp(22px, 2.4vw, 28px); }
.csr-lead { max-width: 38em; margin-top: 20px; }
.csr-list { list-style: none; counter-reset: csr; max-width: 940px; margin: clamp(32px, 4vw, 48px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.csr-list li {
  counter-increment: csr;
  display: grid; grid-template-columns: 2.6em minmax(10em, 15em) minmax(0, 1fr); gap: 8px 20px;
  padding-block: 22px; border-bottom: 1px solid var(--line);
}
.csr-list li::before { content: counter(csr) "."; font-family: var(--mincho); font-weight: 700; color: var(--sub); }
.csr-list h3 { font-size: 18px; line-height: 1.7; }

/* お問い合わせ */
.contact-form { max-width: 640px; }
.field + .field { margin-top: 28px; }
.field label { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.field .req { font-size: 12px; font-weight: 700; color: #fff; background: var(--green); padding: 1px 10px; border-radius: 999px; letter-spacing: .06em; }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 8px;
  font: inherit; color: var(--ink); background: #fbfcfa;
  border: 1px solid #8f978e; border-radius: 4px; padding: 12px 14px; min-height: 52px;
}
.field textarea { min-height: 220px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: #a33a2c; }
.field .error { margin-top: 6px; font-size: 15px; color: #8f2f22; }
.field .hint { margin-top: 6px; font-size: 14px; color: var(--sub); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.button-primary {
  min-height: 56px; padding: 14px 48px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 16px/1.4 var(--gothic); letter-spacing: .12em;
  color: #fff; background: var(--green);
  transition: background-color .4s;
}
.button-primary:hover { background: var(--green-deep); }
.button-primary[disabled] { opacity: .6; cursor: progress; }
.form-status { font-weight: 700; }
.form-status.ok { color: var(--green-deep); }
.form-status.ng { color: #8f2f22; }

/* ===== タブレット ===== */
@media (max-width: 960px) {
  .strength-photo, .strength:nth-child(even) .strength-photo { grid-column: 1 / 12; }
  .strength-card, .strength:nth-child(even) .strength-card { grid-column: 3 / 13; grid-row: 2; margin: -96px var(--gutter) 0 0; }
  .strength:nth-child(even) .strength-photo { grid-column: 2 / 13; }
  .strength:nth-child(even) .strength-card { grid-column: 1 / 11; margin: -96px 0 0 var(--gutter); }
  .strength-list { padding-bottom: 0; }
  .outline-list { grid-template-columns: 1fr; }
  .gates { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ===== スマホ(メニューは全画面に) ===== */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .site-header.is-solid { height: 60px; }
  .brand { gap: 10px; font-size: 16px; letter-spacing: .06em; }
  .brand img { width: 30px; }
  .menu-toggle { display: inline-flex; }
  html.menu-open { overflow: hidden; }
  html.menu-open .site-header { color: var(--on-dark); }
  html.menu-open .brand img { filter: brightness(0) invert(1); }
  .js .site-nav {
    position: fixed; z-index: 1; inset: 0;
    padding: calc(var(--header-h) + 28px) var(--gutter) 40px;
    overflow-y: auto;
    color: var(--on-dark); background: var(--night);
    visibility: hidden; opacity: 0;
    transition: opacity .4s, visibility 0s .4s;
  }
  .js .site-nav[data-open="true"] { visibility: visible; opacity: 1; transition: opacity .4s; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .site-nav li { border-bottom: 1px solid var(--night-line); }
  .js .site-nav li:last-child { border-bottom: 0; }
  .js .site-nav a { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 20px 4px; font-family: var(--mincho); font-weight: 700; font-size: 21px; }
  .js .site-nav a span { font-size: 16px; }
  .js .site-nav a::after { display: none; }
  .js .site-nav .nav-contact,
  .js .is-solid .site-nav .nav-contact { margin-top: 32px; padding: 16px 28px; justify-content: center; gap: 18px; color: var(--ink); background: var(--on-dark); border-color: var(--on-dark); font-family: var(--gothic); font-size: 17px; }
  /* JS が動かないときは、ヘッダーを写真に重ねず上に置き、ナビをそのまま見せる */
  html:not(.js) .site-header { position: relative; flex-wrap: wrap; height: auto; padding-block: 12px; background: var(--night); }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; gap: 4px 20px; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .hero { min-height: 520px; }
  .hero-copy { right: 18px; font-size: clamp(30px, 8.6vw, 40px); letter-spacing: .1em; }
  .hero-slides::after {
    background:
      linear-gradient(180deg, rgba(12, 16, 14, .55) 0, rgba(12, 16, 14, 0) 140px),
      linear-gradient(270deg, rgba(12, 16, 14, .62) 0, rgba(12, 16, 14, .38) 50%, rgba(12, 16, 14, .22) 100%),
      linear-gradient(0deg, rgba(12, 16, 14, .66) 0, rgba(12, 16, 14, 0) 34%);
  }
  .hero-foot { flex-wrap: wrap; align-items: center; padding-bottom: 72px; }
  .hero-caption { display: none; }
  .hero-dot { width: 40px; }
  .hero-scroll { bottom: -40px; height: 80px; }

  .sec-en { font-size: clamp(44px, 13vw, 60px); }
  .intro { text-align: left; }
  .intro-text { font-size: 20px; letter-spacing: .1em; }
  .intro-text br { display: none; }
  .btn { min-width: 0; width: 100%; }

  .strength { display: block; }
  .strength-photo { aspect-ratio: 4 / 3; }
  .strength-card, .strength:nth-child(even) .strength-card { margin: -48px 16px 0; padding: 28px 22px 32px; }

  .factory-panels { grid-template-columns: 1fr; }
  .factory-panel { height: clamp(420px, 72svh, 600px); }

  .greeting-grid { grid-template-columns: 1fr; }
  .portrait-crop { max-width: 320px; }

  .outline-row { grid-template-columns: 6.5em minmax(0, 1fr); }
  .gates { grid-template-columns: 1fr; }
  .gate { aspect-ratio: 16 / 9; }

  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }

  .page-hero { height: clamp(260px, 44svh, 380px); }
  .outline-list.full .outline-row { grid-template-columns: 7em minmax(0, 1fr); }
  .csr-list li { grid-template-columns: 2.2em minmax(0, 1fr); }
  .csr-list li p { grid-column: 2; }
  .gallery-main img { aspect-ratio: 4 / 3; }
}
