@charset "UTF-8";
/* =========================================================
   株式会社エスティーワイ コーポレートサイト
   Design system  ── ブルー × 近未来 × 工場
   参考トーン：神明電機株式会社（https://www.shinmei-e.co.jp/）
   ========================================================= */

/* 色は assets/css/theme.css（既定：S-BLUE）／theme-navy.css（旧配色）で定義する。
   このファイルには色を直接書かない ── 配色を差し替えられなくなるため。 */
:root{
  --ff-jp: "Noto Sans JP", YuGothic, "Yu Gothic", 游ゴシック, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
  --ff-en: "Open Sans", "Noto Sans JP", sans-serif;

  --w-max: 1200px;
  --w-narrow: 960px;
  --header-h: 88px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:var(--header-h); }
body{
  margin:0; font-family:var(--ff-jp); color:var(--c-text);
  font-size:16px; line-height:1.9; background:var(--c-bg);
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img{ max-width:100%; height:auto; vertical-align:bottom; }
a{ color:var(--c-blue); text-decoration:none; transition:.25s; }
a:hover{ opacity:.75; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p,figure,dl,dd{ margin:0; }
/* 日本語が単語の途中で折り返さないようにする。
   auto-phrase は文節で折る指定（未対応ブラウザは無視するだけで害はない） */
h1,h2,h3,h4,.hd__jp,.card__ttl,.strength__ttl,.mcard__model{
  word-break:auto-phrase; text-wrap:balance; }
p,li,dd,.lead,.note{ word-break:auto-phrase; text-wrap:pretty; }
table{ border-collapse:collapse; }

/* ---------- Layout ---------- */
.inner{ width:min(100% - 48px, var(--w-max)); margin-inline:auto; }
.inner--narrow{ width:min(100% - 48px, var(--w-narrow)); margin-inline:auto; }
.section{ padding:96px 0; position:relative; }
.section--soft{ background:var(--c-bg-soft); }
.section--tight{ padding:64px 0; }

/* 近未来グリッド背景 */
.bg-grid{ position:relative; }
.bg-grid::before{
  content:""; position:absolute; inset:0; pointer-events:none; z-index:0;
  background-image:linear-gradient(rgba(var(--rgb-grid),.055) 1px, transparent 1px),
                   linear-gradient(90deg, rgba(var(--rgb-grid),.055) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
          mask-image:radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}
.bg-grid > *{ position:relative; z-index:1; }

/* 斜めのアクセサリ（神明電機のクリップパスを踏襲） */
.accessory{ position:relative; }
.accessory::before{
  content:""; position:absolute; left:0; top:-70px; width:100%; height:70px;
  background:var(--c-bg-soft); clip-path:polygon(0 0, 0 100%, 100% 100%);
}

/* ---------- Heading ---------- */
.hd{ margin-bottom:44px; }
.hd__en{
  display:block; font-family:var(--ff-en); font-weight:700; color:var(--c-navy);
  font-size:clamp(38px, 5.6vw, 72px); line-height:1.05; letter-spacing:.01em;
}
.hd__jp{
  display:block; margin-top:10px; font-size:clamp(17px,2vw,20px); font-weight:700;
  letter-spacing:.08em; color:var(--c-text);
}
.hd--white .hd__en, .hd--white .hd__jp{ color:#fff; }
.hd--center{ text-align:center; }

.hd3{ font-size:clamp(20px,2.4vw,26px); font-weight:700; color:var(--c-navy);
  padding-left:16px; border-left:5px solid var(--c-blue-lt); line-height:1.5; margin-bottom:24px; }
.hd4{ font-size:18px; font-weight:700; color:var(--c-navy); margin-bottom:10px; }

/* ---------- Button ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:space-between; gap:20px;
  min-width:260px; padding:15px 24px; border:2px solid var(--c-blue);
  color:var(--c-blue); font-weight:700; letter-spacing:.06em; background:#fff;
}
.btn::after{ content:""; width:34px; height:1px; background:currentColor; position:relative; transition:.25s; }
.btn:hover{ background:var(--c-blue); color:#fff; opacity:1; }
.btn:hover::after{ width:44px; }
.btn--fill{ background:var(--c-blue); color:#fff; }
.btn--fill:hover{ background:var(--c-navy); border-color:var(--c-navy); }
.btn--ghost{ background:transparent; border-color:#fff; color:#fff; }
.btn--ghost:hover{ background:#fff; color:var(--c-navy); border-color:#fff; }
.btn--sm{ min-width:0; padding:10px 18px; font-size:14px; gap:12px; }
/* ボタンを並べるときは必ずこれで包む。<p>内にインラインで並べるとSPでずれる */
.btns{ display:flex; flex-wrap:wrap; gap:14px; margin-top:32px; }

/* 狭い画面で語の途中に改行が落ちる見出し用。意味の切れ目で折る */
.br-sp{ display:none; }
@media (max-width:480px){ .br-sp{ display:inline; } }

/* ---------- Header ---------- */
.utilbar{ background:var(--c-deep); color:rgba(255,255,255,.72); font-size:12px; letter-spacing:.03em; }
.utilbar__in{ width:min(100% - 32px, 1440px); margin-inline:auto; display:flex; justify-content:flex-end;
  align-items:center; gap:12px; height:34px; }
.utilbar a{ color:#fff; font-weight:700; }
.header{
  position:sticky; top:0; z-index:100; background:#fff;
  border-bottom:1px solid var(--c-line);
  /* backdrop-filter は使わない：固定配置のドロワーの包含ブロックになってしまうため */
}
.header__in{ display:flex; align-items:center; gap:24px; height:var(--header-h);
  width:min(100% - 32px, 1440px); margin-inline:auto; }
.gnav{ display:flex; align-items:center; gap:22px; }
.logo{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.logo img{ width:52px; }
.logo__txt{ line-height:1.25; }
.logo__name{ display:block; font-size:19px; font-weight:700; color:var(--c-deep); letter-spacing:.04em; }
.logo__en{ display:block; font-family:var(--ff-en); font-size:10px; letter-spacing:.14em; color:var(--c-blue); }
.gnav{ margin-left:auto; }
.gnav__list{ display:flex; align-items:center; gap:26px; }
.gnav__list > li > a{ color:var(--c-text); font-weight:700; font-size:15px; letter-spacing:.03em; position:relative; padding:6px 0; }
.gnav__list > li > a::after{ content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--c-blue); transition:.25s; }
.gnav__list > li > a:hover{ opacity:1; color:var(--c-blue); }
.gnav__list > li > a:hover::after{ width:100%; }
.header__cta{ display:inline-flex; align-items:center; justify-content:center; padding:14px 30px;
  background:linear-gradient(135deg, var(--c-blue) 0%, var(--c-navy) 100%); color:#fff; font-weight:700; font-size:15px; }
.header__cta:hover{ opacity:.88; }
.header__group{ display:none; font-size:12px; color:var(--c-text-sub); line-height:1.5; }
.header__group a{ font-weight:700; }
.burger{ display:none; }

/* ---------- Hero ----------
   生成した工場写真を敷き、コピーは画像側で空けてあるセーフエリア
   （PC＝左1/3・SP＝上1/3）に置く。装飾は足さない。 */
.hero{ position:relative; display:flex; align-items:center; overflow:hidden;
  min-height:min(72vh, 620px); background:var(--c-hero-bg); }

.hero__media{ position:absolute; inset:0; display:block; }
.hero__media img{ width:100%; height:100%; object-fit:cover; object-position:right top; display:block; }

/* 文字の可読性を担保する最小限のベール。写真の質感は殺さない */
.hero__veil{ position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(100deg, rgba(var(--rgb-veil),.86) 0%, rgba(var(--rgb-veil),.62) 28%,
                                     rgba(var(--rgb-veil),.12) 46%, rgba(var(--rgb-veil),0) 60%); }

.hero__in{ position:relative; z-index:2; padding:72px 0;
  display:grid; justify-items:start; grid-template-columns:minmax(0, 760px); }
@media (min-width:1080px){
  .hero__in{ grid-template-columns:minmax(0, 600px); }
}
.hero__lead{ display:inline-block; font-family:var(--ff-en);
  letter-spacing:.3em; font-size:12px; color:var(--c-hero-lead); margin-bottom:26px; }
.hero__ttl{ color:#fff; font-size:clamp(26px,3.0vw,38px); font-weight:700;
  line-height:1.45; letter-spacing:.01em; text-shadow:0 2px 24px rgba(0,0,0,.45); }
.hero__sub{ color:rgba(255,255,255,.84); font-size:clamp(15px,1.7vw,18px); margin-top:24px;
  letter-spacing:.06em; text-shadow:0 1px 16px rgba(0,0,0,.5); }
.hero__sub span{ margin-left:1.4em; }
.hero__btns{ display:flex; flex-wrap:wrap; gap:16px; margin-top:44px; }

/* タブレット幅（821〜1079px）はPC画像の左の平坦部が横方向に切り落とされ、
   コピーが機械に重なる。この帯だけベールを強めて可読性を担保する。 */
@media (min-width:821px) and (max-width:1079px){
  .hero__veil{ background:linear-gradient(100deg, rgba(var(--rgb-veil),.90) 0%, rgba(var(--rgb-veil),.78) 34%,
                                                  rgba(var(--rgb-veil),.42) 58%, rgba(var(--rgb-veil),.12) 78%,
                                                  rgba(var(--rgb-veil),0) 92%); }
  .hero__btns .btn--ghost{ background:rgba(var(--rgb-veil),.42); }
  .hero__btns .btn--ghost:hover{ background:#fff; }
}

/* 下層ページ見出し */
.phead{ position:relative; background:linear-gradient(120deg, var(--c-deep) 0%, var(--c-mid) 60%, var(--c-blue) 100%);
  color:#fff; padding:64px 0 58px; overflow:hidden; }
.phead::after{ content:""; position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size:48px 48px; }
.phead::before{ content:""; position:absolute; right:-6%; top:-60%; width:52vw; height:52vw; max-width:640px; max-height:640px;
  background:radial-gradient(circle at 50% 50%, rgba(var(--rgb-glow),.28), rgba(var(--rgb-glow),0) 62%); }
.phead__en{ text-shadow:0 0 18px rgba(var(--rgb-glow),.45); }
.phead__in{ position:relative; z-index:1; }
.phead__en{ font-family:var(--ff-en); font-size:13px; letter-spacing:.26em; color:var(--c-cyan); display:block; }
.phead__ttl{ font-size:clamp(26px,4vw,42px); font-weight:700; margin-top:8px; letter-spacing:.04em; }
.breadcrumb{ font-size:12px; color:var(--c-text-sub); padding:14px 0; border-bottom:1px solid var(--c-line); }
.breadcrumb li{ display:inline; }
.breadcrumb li + li::before{ content:"／"; margin:0 8px; color:#bbb; }

/* ---------- Cards ---------- */
.cards{ display:grid; gap:24px; }
.cards--2{ grid-template-columns:repeat(2,1fr); }
.cards--3{ grid-template-columns:repeat(3,1fr); }
.cards--4{ grid-template-columns:repeat(4,1fr); }
.card{ background:#fff; border:1px solid var(--c-line); display:flex; flex-direction:column; height:100%; transition:.25s; }
a.card:hover{ opacity:1; transform:translateY(-4px); box-shadow:0 12px 30px rgba(var(--rgb-shadow),.13); border-color:var(--c-blue-lt); }
/* 旧サイトの写真は107〜500pxしかないため、等倍を超えて拡大しない。
   拡大するとぼやけるので、中立背景の中央に等倍で置く。大きい写真だけ --cover で全面表示する。 */
.card__img{ aspect-ratio:16/10; overflow:hidden; padding:14px; position:relative;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(155deg, var(--c-soft-1) 0%, var(--c-soft-2) 100%); }
.card__img::before{ content:""; position:absolute; inset:0; pointer-events:none;
  background-image:linear-gradient(rgba(var(--rgb-grid),.05) 1px,transparent 1px),
                   linear-gradient(90deg, rgba(var(--rgb-grid),.05) 1px,transparent 1px);
  background-size:22px 22px; }
.card__img img{ position:relative; z-index:1;
  max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
.card__img--cover{ padding:0; aspect-ratio:4/3; }
.card__img--cover img{ width:100%; height:100%; max-width:none; max-height:none; object-fit:cover; }
.card__img--contain img{ object-fit:contain; }
.card__body{ padding:20px 22px 24px; flex:1; }
.card__ttl{ font-weight:700; font-size:17px; color:var(--c-navy); margin-bottom:8px; }
.card__txt{ font-size:14px; color:var(--c-text-sub); line-height:1.8; }

/* 強み（番号付き） */
.strength{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.strength__item{ position:relative; padding:34px 26px 30px; background:#fff; border:1px solid var(--c-line); }

.strength__no{ position:absolute; top:-18px; left:22px; font-family:var(--ff-en); font-size:44px; font-weight:700;
  color:var(--c-blue-lt); opacity:.55; line-height:1; }
.strength__ttl{ font-size:19px; font-weight:700; color:var(--c-navy); margin:6px 0 12px; }
.strength__txt{ font-size:14.5px; color:var(--c-text-sub); }

/* ごあいさつ（写真＋本文）。インラインstyleでの列指定はSPで効かなくなるため専用クラスにする */
.greeting{ display:grid; grid-template-columns:220px 1fr; gap:36px; align-items:start; }
/* 元写真が144pxしかないため拡大しない。枠を付けて意図的な見せ方にする */
.greeting__photo img{ max-width:100%; height:auto; border:1px solid var(--c-line); background:#fff; padding:6px; }
.greeting__name{ margin-top:14px; }
.greeting__name b{ font-size:20px; color:var(--c-navy); }

/* メディア＋本文の2カラム（画像は等倍以上に拡大しない） */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
.split--center{ align-items:center; }
.split__fig{ display:flex; align-items:center; justify-content:center;
  background:linear-gradient(155deg,var(--c-soft-1),var(--c-soft-2)); border:1px solid var(--c-line); padding:18px; }
.split__fig img{ max-width:100%; height:auto; }

/* 用途タイル */
.uses{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.uses__item{ position:relative; aspect-ratio:1/1; display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:700; letter-spacing:.06em; text-align:center; overflow:hidden;
  background:linear-gradient(150deg, var(--c-deep-2), var(--c-blue)); }
.uses__item::after{ content:""; position:absolute; inset:0; border:1px solid rgba(255,255,255,.18); }
.uses__item span{ position:relative; z-index:1; font-size:15px; padding:0 8px; }
.uses__item::before{ content:""; position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:26px 26px; }
.uses__item:nth-child(4n+2){ background:linear-gradient(150deg, var(--c-deep), var(--c-mid-2)); }
.uses__item:nth-child(4n+3){ background:linear-gradient(150deg, var(--c-mid-3), var(--c-mid-4)); }
.uses__item:nth-child(4n){ background:linear-gradient(150deg, var(--c-deep-2), var(--c-mid-5)); }
.uses__item{ transition:.3s; }
.uses__item:hover{ transform:translateY(-3px); box-shadow:0 12px 26px rgba(var(--rgb-shadow),.25); }

/* テーブル */
.tbl{ width:100%; font-size:15px; }
.tbl th,.tbl td{ border:1px solid var(--c-line); padding:14px 16px; text-align:left; vertical-align:top; }
.tbl th{ background:var(--c-bg-soft); color:var(--c-navy); font-weight:700; white-space:nowrap; width:210px; }
.tbl--data th{ width:auto; white-space:nowrap; text-align:center; }
/* 仕様表：見出し列を固定幅にして本文を広く取る */
.tbl--spec{ font-size:14.5px; }
.tbl--spec th{ width:200px; }
.tbl--data td{ text-align:center; white-space:nowrap; }
.tbl-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }

/* 沿革 */
.history{ border-top:1px solid var(--c-line); }
.history__row{ display:grid; grid-template-columns:200px 1fr; gap:24px; padding:18px 4px; border-bottom:1px solid var(--c-line); }
.history__year{ font-weight:700; color:var(--c-navy); }

/* 動画 */
.movie{ position:relative; aspect-ratio:16/9; background:#000; }
.movie iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

/* バナー（背景写真＋オーバーレイ） */
.promo{ position:relative; overflow:hidden; color:#fff;
  background:linear-gradient(115deg, var(--c-deep) 0%, var(--c-mid) 55%, var(--c-blue) 100%); }
.promo::after{ content:""; position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size:52px 52px; pointer-events:none; }
.promo__in{ position:relative; z-index:1; padding:88px 0; }

/* お知らせ */
.news__item{ display:grid; grid-template-columns:120px 130px 1fr; gap:20px; align-items:center;
  padding:20px 4px; border-bottom:1px solid var(--c-line); }
.news__date{ font-family:var(--ff-en); color:var(--c-text-sub); font-size:14px; }
.news__cat{ font-size:12px; text-align:center; border:1px solid var(--c-blue); color:var(--c-blue); padding:3px 0; }
.news__ttl{ font-size:15px; }

/* 注記 */
.note{ font-size:13px; color:var(--c-text-sub); line-height:1.8; }
.lead{ font-size:clamp(16px,1.9vw,18px); line-height:2.1; }
.mb0{margin-bottom:0}.mb8{margin-bottom:8px}.mb16{margin-bottom:16px}.mb24{margin-bottom:24px}
.mb32{margin-bottom:32px}.mb40{margin-bottom:40px}.mb56{margin-bottom:56px}
.tac{text-align:center}

/* ---------- Footer ---------- */
.footer{ background:var(--c-deep); color:rgba(255,255,255,.82); padding:72px 0 28px; font-size:14px; }
.footer a{ color:rgba(255,255,255,.82); }
.footer a:hover{ color:#fff; opacity:1; }
.footer__top{ display:grid; grid-template-columns:1.1fr 2fr; gap:56px; }
.footer__logo{ display:flex; align-items:center; gap:12px; margin-bottom:22px; }
.footer__logo img{ width:56px; filter:brightness(0) invert(1); }
.footer__logo strong{ font-size:19px; color:#fff; letter-spacing:.04em; }
.footer__addr{ line-height:2; }
.footer__nav{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
.footer__nav > details{ min-width:0; }
.footer__nav summary{ color:#fff; font-size:14px; font-weight:700; letter-spacing:.06em;
  margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid rgba(255,255,255,.2);
  list-style:none; cursor:default; pointer-events:none; }
.footer__nav summary::-webkit-details-marker{ display:none; }
.footer__nav summary::after{ content:""; }
.footer__nav li{ margin-bottom:7px; font-size:13.5px; }
.footer__bottom{ margin-top:56px; padding-top:20px; border-top:1px solid rgba(255,255,255,.16);
  display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; font-size:12px; }

/* ---------- Reveal ---------- */
.rv{ opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease; }
.rv.is-show{ opacity:1; transform:none; }

/* =========================================================
   成形機仕様一覧（検索）
   ========================================================= */
.mfilter{ background:var(--c-bg-soft); border:1px solid var(--c-line); padding:24px; margin-bottom:24px; }
.mfilter__count b{ font-family:var(--ff-en); }
.mfilter__row{ display:grid; grid-template-columns:repeat(auto-fit, minmax(190px,1fr)); gap:18px; }
.mfilter label{ display:block; font-size:13px; font-weight:700; color:var(--c-navy); margin-bottom:6px; }
.mfilter input[type=search], .mfilter select{
  width:100%; padding:11px 12px; border:1px solid var(--c-line); background:#fff;
  font-family:inherit; font-size:15px; color:var(--c-text); border-radius:0; }

/* フォーム部品 */
.field{ width:100%; padding:12px 14px; border:1px solid var(--c-line); background:#fff;
  font-family:inherit; font-size:15px; color:var(--c-text); border-radius:0; }
.field:focus{ outline:2px solid var(--c-blue-lt); outline-offset:-1px; }
.field--sm{ max-width:340px; }
.req{ color:#c00; }
.mfilter input:focus, .mfilter select:focus{ outline:2px solid var(--c-blue-lt); outline-offset:-1px; }
.mfilter__foot{ display:flex; flex-wrap:wrap; align-items:center; gap:16px; margin-top:18px; }
.mfilter__count{ font-weight:700; color:var(--c-navy); }
.mfilter__count b{ font-family:var(--ff-en); font-size:22px; color:var(--c-blue); }

.mtable{ width:100%; font-size:13.5px; white-space:nowrap; }
.mtable th,.mtable td{ border:1px solid var(--c-line); padding:9px 12px; text-align:center; }
.mtable thead th{ background:var(--c-navy); color:#fff; font-weight:700; font-size:12.5px; }
/* 見出し追従は検索用の一覧表（#mtable）だけに適用する */
#mtable thead th{ position:sticky; top:var(--header-h); z-index:2; }
.mtable thead tr:first-child th{ background:var(--c-deep); }
#mtable thead tr:last-child th{ top:calc(var(--header-h) + 40px); }
.mtable tbody tr:nth-child(even){ background:var(--c-row-even); }
.mtable tbody tr:hover{ background:var(--c-row-hover); }
.mtable td.al{ text-align:left; }
.mtable .plant{ font-size:12px; color:var(--c-text-sub); }
.mtable th.sortable{ cursor:pointer; user-select:none; }
.mtable th.sortable::after{ content:"⇅"; margin-left:5px; opacity:.5; font-size:11px; }
.mtable th.sortable.asc::after{ content:"▲"; opacity:1; }
.mtable th.sortable.desc::after{ content:"▼"; opacity:1; }
.mtable mark{ background:#ffe9a8; color:inherit; padding:0 1px; }
.mempty{ padding:56px 0; text-align:center; color:var(--c-text-sub); }

/* 成形機カード（スマートフォン用）
   全項目を開いたまま66台並べると読めないので、見出し行＋詳細の開閉にする */
.mcards{ display:none; gap:10px; grid-template-columns:1fr; }
.mcard{ border:1px solid var(--c-line); background:#fff; }
.mcard[open]{ border-color:var(--c-blue-lt); box-shadow:0 4px 16px rgba(var(--rgb-shadow),.10); }

.mcard__head{ list-style:none; cursor:pointer; position:relative;
  display:grid; grid-template-columns:auto 1fr auto; align-items:baseline;
  gap:2px 10px; padding:14px 38px 14px 16px; }
.mcard__head::-webkit-details-marker{ display:none; }
.mcard__head::after{ content:""; position:absolute; right:16px; top:50%; width:8px; height:8px;
  margin-top:-6px; border-right:2px solid var(--c-blue); border-bottom:2px solid var(--c-blue);
  transform:rotate(45deg); transition:.25s; }
.mcard[open] .mcard__head::after{ transform:rotate(-135deg); margin-top:-2px; }

.mcard__maker{ font-size:12px; color:var(--c-text-sub); }
.mcard__model{ font-size:17px; font-weight:700; color:var(--c-navy); line-height:1.35; }
.mcard__ton{ font-size:17px; font-weight:700; color:var(--c-blue); white-space:nowrap; }
.mcard__ton small{ font-size:11px; margin-left:2px; font-weight:700; }
.mcard__plant{ grid-column:1 / -1; font-size:11.5px; color:var(--c-text-sub); margin-top:2px; }

.mcard__body{ padding:0 16px 14px; border-top:1px solid var(--c-line); }
.mcard__dl{ margin:0; }
.mcard__row{ display:grid; grid-template-columns:8.5em 1fr; gap:10px; padding:7px 2px;
  border-bottom:1px solid var(--c-line); font-size:13.5px; line-height:1.6; }
.mcard__row--key{ padding-top:12px; }
.mcard__row dt{ color:var(--c-text-sub); }
.mcard__row dd{ margin:0; font-weight:700; }
.mcard__row dd span{ font-weight:400; font-size:11.5px; color:var(--c-text-sub); }
.mcard__take{ font-size:12.5px; color:var(--c-text-sub); margin-top:12px; }
.mcard__co{ font-size:11.5px; color:var(--c-text-sub); margin-top:4px; }

/* 対談記事 */
.interview__page{ border:1px solid var(--c-line); box-shadow:0 8px 30px rgba(var(--rgb-shadow),.10); }
.qa{ border-left:3px solid var(--c-blue-lt); padding:2px 0 2px 22px; margin-bottom:26px; }
.qa__q{ font-weight:700; color:var(--c-navy); margin-bottom:6px; }

/* 栃木シティ */
.sponsor{ display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
.sponsor__box{ background:linear-gradient(140deg, var(--c-deep), var(--c-blue)); color:#fff; padding:44px; }

/* ---------- Responsive ---------- */
@media (max-width:1320px){
  .gnav__list{ gap:17px; }
  .gnav__list > li > a{ font-size:14px; }
  .header__cta{ padding:13px 20px; font-size:14px; }
  .logo__name{ font-size:17px; }
  .logo img{ width:44px; }
}
@media (max-width:1000px){
  :root{ --header-h:70px; }
  .burger{ display:flex; flex-direction:column; justify-content:center; gap:6px; width:46px; height:46px;
    margin-left:auto; background:none; border:0; cursor:pointer; padding:0; }
  .burger span{ display:block; height:2px; background:var(--c-navy); transition:.3s; }
  .burger.is-open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
  .burger.is-open span:nth-child(2){ opacity:0; }
  .burger.is-open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }
  .utilbar{ display:none; }
  .gnav{ position:fixed; inset:var(--header-h) 0 0; background:#fff; padding:24px; overflow-y:auto;
    transform:translateX(100%); transition:.32s; margin-left:0;
    flex-direction:column; align-items:stretch; gap:0; }
  .gnav.is-open{ transform:none; }
  .gnav__list{ flex-direction:column; align-items:stretch; gap:0; }
  .gnav__list > li{ border-bottom:1px solid var(--c-line); }
  .gnav__list > li > a{ display:block; padding:17px 4px; font-size:16px; }
  .gnav__list > li > a::after{ display:none; }
  .header__cta{ margin-top:22px; width:100%; padding:17px; }
  .header__group{ display:block; margin-top:20px; border:0; padding:0; }
  .cards--4{ grid-template-columns:repeat(2,1fr); }
  .strength{ grid-template-columns:repeat(2,1fr); }
  .uses{ grid-template-columns:repeat(3,1fr); }
  .greeting{ grid-template-columns:180px 1fr; gap:26px; }
  .split{ gap:28px; }
  .footer__top{ grid-template-columns:1fr; gap:36px; }
  .footer__nav{ grid-template-columns:repeat(2,1fr); }
  .sponsor{ grid-template-columns:1fr; gap:28px; }
  /* 成形機一覧：横19列の表は読みづらいのでカード表示に切り替える */
  .mtable-wrap{ display:none; }
  .mcards{ display:grid; }
}
@media (max-width:640px){
  body{ font-size:15px; }
  .inner,.inner--narrow{ width:calc(100% - 32px); }
  .section{ padding:60px 0; }
  .section--tight{ padding:44px 0; }
  .cards--2,.cards--3,.cards--4{ grid-template-columns:1fr; }
  .greeting,.split{ grid-template-columns:1fr; gap:24px; }
  .greeting__photo{ display:flex; align-items:center; gap:18px; }
  .greeting__photo img{ max-width:120px; }
  .greeting__name{ margin-top:0; }
  .uses{ grid-template-columns:repeat(2,1fr); }
  .btn{ min-width:0; width:100%; }
  .hero{ min-height:78vh; align-items:flex-start; }
  .hero__in{ padding:44px 0 52px; }
  /* 上の平坦部は見出しが占めるため、画像は上を基準に寄せる（下の機械側を切る） */
  .hero__media img{ object-position:center top; }
  .hero__veil{ background:linear-gradient(180deg, rgba(var(--rgb-veil),.84) 0%, rgba(var(--rgb-veil),.66) 38%,
                                                  rgba(var(--rgb-veil),.34) 56%, rgba(var(--rgb-veil),.10) 74%,
                                                  rgba(var(--rgb-veil),0) 88%); }
  /* 写真全体を暗くする代わりに、ボタンだけ局所的にコントラストを確保する */
  .hero__btns .btn--ghost{ background:rgba(var(--rgb-veil),.46); backdrop-filter:blur(2px); }
  .hero__btns .btn--ghost:hover{ background:#fff; }
  .hero__btns{ margin-top:30px; gap:12px; }
  .hero__sub span{ display:block; margin-left:0; margin-top:2px; }
  .tbl th{ width:auto; }
  .tbl th,.tbl td{ display:block; width:100%; border-bottom:0; }
  .tbl tr:last-child td{ border-bottom:1px solid var(--c-line); }
  .history__row{ grid-template-columns:1fr; gap:2px; }
  .news__item{ grid-template-columns:1fr; gap:6px; }
  .news__cat{ width:110px; }
  .mfilter{ padding:18px; }
  .sponsor__box{ padding:28px; }

  /* 強み：番号をカード内に収める（枠外に浮くのを防ぐ） */
  .strength{ grid-template-columns:1fr; gap:16px; }
  .strength__item{ padding:22px 20px 24px; }
  .strength__item::after{ content:""; position:absolute; left:0; top:0; width:44px; height:3px; background:var(--c-blue-lt); }
  .strength__no{ position:static; font-size:32px; display:block; margin-bottom:2px; opacity:.7; }
  .strength__ttl{ margin-top:0; font-size:18px; }

  /* フッター：カテゴリをアコーディオンにして縦の長さを抑える */
  .footer{ padding:52px 0 24px; }
  .footer__nav{ grid-template-columns:1fr; gap:0; }
  .footer__nav > details{ border-bottom:1px solid rgba(255,255,255,.16); }
  .footer__nav summary{ margin:0; padding:15px 2px; border-bottom:0; position:relative; cursor:pointer; pointer-events:auto; }
  .footer__nav summary::after{ content:""; position:absolute; right:6px; top:50%; width:9px; height:9px;
    margin-top:-6px; border-right:2px solid #fff; border-bottom:2px solid #fff;
    transform:rotate(45deg); transition:.25s; }
  .footer__nav details[open] summary::after{ transform:rotate(-135deg); margin-top:-2px; }
  .footer__nav ul{ padding:0 2px 14px; }
  .footer__nav li{ margin-bottom:12px; font-size:14px; }
  .footer__bottom{ margin-top:32px; }

  /* iOS Safari はフィールドが16px未満だとフォーカス時に自動ズームする */
  .field, .mfilter input[type=search], .mfilter select,
  input, select, textarea{ font-size:16px; }

  /* カード画像：SPは横長にして余白が目立たないようにする */
  .card__img{ aspect-ratio:16/9; padding:12px; }
  .card__img--cover{ aspect-ratio:16/10; }
}
@media (prefers-reduced-motion:reduce){
  .rv{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ---------- Hero SVG のアニメーション ---------- */

/* =========================================================
   オープニング ── サイトに入った最初の1回だけロゴを見せる
   ・セッション中1回（sessionStorage）
   ・prefers-reduced-motion では出さない
   ・本体は下で既に描画済み。オーバーレイが退場するだけなので表示は遅らせない
   ========================================================= */
.opening{
  position:fixed; inset:0; z-index:999; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(180deg, var(--c-open-1) 0%, var(--c-open-2) 55%, var(--c-open-3) 100%);
  animation:opWipe .72s cubic-bezier(.7,0,.24,1) 1.5s forwards;
}
.opening::after{           /* ヒーローと同じ斜めの分割を退場に使う */
  content:""; position:absolute; inset:0; background:inherit;
  clip-path:polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.opening__in{ position:relative; z-index:1; text-align:center;
  animation:opOut .5s ease 1.42s forwards; }
/* 濃紺の地にそのまま置くとロゴの紺部分が沈むため、フッターと同じく白抜きで使う */
.opening__logo{ display:block; width:clamp(112px, 16vw, 176px); height:auto; margin:0 auto 26px;
  filter:brightness(0) invert(1);
  opacity:0; transform:translateY(14px) scale(.94);
  animation:opLogo .9s cubic-bezier(.16,1,.3,1) .12s forwards; }
.opening__name{ display:block; color:#fff; font-size:clamp(17px,2.2vw,22px); font-weight:700;
  letter-spacing:.16em; opacity:0; animation:opText .8s ease .52s forwards; }
.opening__en{ display:block; font-family:var(--ff-en); color:var(--c-hero-lead); font-size:11px;
  letter-spacing:.34em; margin-top:10px; opacity:0; animation:opText .8s ease .68s forwards; }

@keyframes opLogo{ to{ opacity:1; transform:none; } }
@keyframes opText{ to{ opacity:1; } }
@keyframes opOut{ to{ opacity:0; transform:translateY(-10px); } }
@keyframes opWipe{ to{ transform:translateY(-100%); visibility:hidden; } }

/* 2回目以降・モーション抑制時は最初から出さない（ちらつき防止のため属性で制御） */
html[data-opened] .opening{ display:none; }
/* 演出中はスクロールを止める */
html:not([data-opened]) body{ overflow:hidden; }
html[data-opened] body{ overflow:visible; }

/* =========================================================
   ヒーロースライダー
   ・画像は重ねてクロスフェード。1枚目は即表示（LCPを遅らせない）
   ・prefers-reduced-motion では自動送りしない（JS側で制御）
   ========================================================= */
.hero__slide{ opacity:0; z-index:0; transition:opacity 1.1s ease; }
.hero__slide.is-on{ opacity:1; z-index:1; }
/* 仮画像は文字を中央に置いているため、切り取り基準を中央にする */
.hero__slide--ph img{ object-position:center center; }

.hero__dots{ position:absolute; right:0; bottom:24px; z-index:3;
  width:min(100% - 48px, var(--w-max)); left:50%; transform:translateX(-50%);
  display:flex; justify-content:flex-end; gap:10px; }
.hero__dot{ width:34px; height:4px; padding:0; border:0; cursor:pointer;
  background:rgba(255,255,255,.42); transition:.25s; }
.hero__dot.is-on{ background:#fff; }
.hero__dot:hover{ background:rgba(255,255,255,.8); }
@media (max-width:640px){
  .hero__dots{ width:calc(100% - 32px); justify-content:center; bottom:16px; }
  .hero__dot{ width:26px; }
}

/* =========================================================
   仮画像・仮情報の注記
   写真／情報をご提供いただいたら、この装飾ごと外す
   ========================================================= */
.tmp{ display:inline-block; font-size:11px; font-weight:700; letter-spacing:.08em;
  color:#fff; background:var(--c-blue-lt); padding:2px 8px; margin-right:8px;
  vertical-align:2px; }
.tmp-note{ font-size:12.5px; color:var(--c-text-sub); line-height:1.8; margin-top:8px; }
.tmp-box{ border:1px dashed var(--c-blue-lt); background:var(--c-bg-soft); padding:20px 22px; }

/* 動画の仮置き枠 */
.movie--tmp{ display:flex; align-items:center; justify-content:center; text-align:center;
  background:linear-gradient(150deg, var(--c-deep), var(--c-blue)); color:#fff; padding:24px; }
.movie--tmp .movie__ph{ position:relative; z-index:1; }
.movie--tmp .movie__ph b{ display:block; font-size:clamp(16px,2.2vw,20px); margin-bottom:8px; }
.movie--tmp .movie__ph span{ font-size:13px; opacity:.82; }

/* =========================================================
   配色スイッチャー（確認用。build.py の PREVIEW = False で消える）
   ========================================================= */
.themesw{ position:fixed; left:16px; bottom:16px; z-index:300;
  display:flex; align-items:center; gap:6px; padding:7px 9px;
  background:rgba(255,255,255,.94); border:1px solid var(--c-line);
  box-shadow:0 6px 24px rgba(var(--rgb-shadow),.18); font-size:12px; }
.themesw__lb{ font-weight:700; color:var(--c-text-sub); letter-spacing:.06em; margin-right:2px; }
.themesw__btn{ padding:5px 10px; border:1px solid var(--c-line); color:var(--c-text-sub);
  font-weight:700; white-space:nowrap; }
.themesw__btn.is-on{ background:var(--c-blue); border-color:var(--c-blue); color:#fff; }
.themesw__btn:hover{ opacity:1; border-color:var(--c-blue); color:var(--c-blue); }
.themesw__btn.is-on:hover{ color:#fff; }
@media (max-width:640px){
  .themesw{ left:8px; bottom:8px; padding:5px 7px; font-size:11px; }
  .themesw__btn{ padding:4px 8px; }
}

/* 地図（Google Map の埋め込み） */
.map{ position:relative; aspect-ratio:4/3; background:var(--c-bg-soft); border:1px solid var(--c-line); }
.map iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.map__cap{ font-weight:700; font-size:15px; color:var(--c-navy); margin-bottom:10px; }

/* ヒーローの重なり順（スライドを重ねるため、ベール以降を明示的に上へ） */
.hero__veil{ z-index:2; }
.hero__in{ z-index:3; }
.hero__dots{ z-index:4; }

/* 栃木シティ：右カラムに写真が入って高さが揃わないため、上端で揃える */
.sponsor{ align-items:start; }

/* 地域とともに：メッセージを上、栃木シティを横長の帯で下に置く（2026-10-22 先方指定） */
.local__msg{ max-width:none; margin-bottom:36px; }
.local__box{ display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:44px; align-items:center; }
.local__fig{ margin:0; }
.local__fig img{ width:100%; height:auto; display:block; }
@media (max-width:820px){
  .local__box{ grid-template-columns:1fr; gap:24px; }
}

/* 2026-11-23 技術紹介：ロボット稼働動画 */
.robot-movie{ max-width:960px; margin:56px auto 0; }
.robot-movie .hd4{ margin-bottom:16px; }
.movie--video video{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#000; }
@media (max-width:767px){ .robot-movie{ margin-top:40px; } }
