:root {
  --bg: #ffffff;
  --ink: #0b1f3a;
  --ink-sub: #4a5868;
  --ink-soft: #7a8898;
  --line: #dde2ea;
  --line-soft: #eef1f5;
  --panel: #f4f5f8;
  --navy: #0b1f3a;
  --navy-deep: #061226;
  --red: #c8232c;
  --red-dark: #9c1a22;
  --paper: #f5f1ea;
  --steel: #1f4a8a;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 1360px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.85;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; letter-spacing: 0; text-wrap: balance; line-height: 1.45; }
/* 日本語では text-wrap: pretty が効かず、最終行に「ます。」のような数文字だけが
   残る。balance なら行数を変えずに、同じ行数のなかで文字を振り分け直す。 */
p { margin: 0; text-wrap: balance; }
html[lang="en"] p { text-wrap: pretty; } /* 英語は balance だと短い行が並ぶため（2026-09-10） */
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4 { word-break: auto-phrase; } /* 対応ブラウザでは文節で折り返す */
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: 64px 0; }
.section--panel { background: var(--panel); }
.section--soft { background: var(--line-soft); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #fff; }

svg.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--ink-sub);
}
.eyebrow--heading { font-weight: 400; line-height: 1.85; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red); }
.eyebrow--steel::before { background: var(--steel); }
.eyebrow--ink::before { background: var(--ink); }
.section--navy .eyebrow { color: rgba(255,255,255,.75); }

.h2 { font-size: 30px; font-weight: 700; }
.lead { font-size: 14px; color: var(--ink-sub); margin-top: 10px; max-width: 760px; }
.section--navy .lead { color: rgba(255,255,255,.72); }

.news-state {
  padding: 18px 4px; color: var(--ink-sub); font-size: 13px; line-height: 1.9;
}

.tag-confirm {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .5px;
  color: #9a6a16; background: #fbf1da; border: 1px solid #ecd8a8;
  padding: 1px 8px; border-radius: 2px; vertical-align: 2px; font-weight: 500;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 22px; font-size: 14px; font-weight: 700; border: none; border-radius: 0;
  font-family: var(--font); cursor: pointer; line-height: 1.45; text-align: center;
}
.btn--red { background: var(--red); color: #fff; }
.btn--steel { background: var(--steel); color: #fff; } /* 海外向け技術相談 */
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); font-weight: 600; }
.btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); font-weight: 600; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--navy-deep); }
.btn .arr { width: 15px; height: 15px; }


.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 26px; padding: 13px 40px; max-width: var(--maxw); margin: 0 auto; }
.brand img { height: 34px; width: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__jp { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.3; white-space: nowrap; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 13px; font-weight: 500; align-items: center; }
.nav a, .nav__dd-btn { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1380px) {
  .header__in { gap: 18px; padding-left: 24px; padding-right: 24px; }
  .nav { gap: 14px; font-size: 12.5px; }
  .header__cta { gap: 10px; }
  .header .btn { white-space: nowrap; padding: 9px 12px; font-size: 12.5px; }
}
/* The English logo image already carries the company name. Hide the
   adjacent Japanese text only on English pages to prevent header overlap. */
html[data-site-language="en"] .brand__jp { display: none; }
.nav a:hover { color: var(--red); }
.nav a.is-active { color: var(--red); font-weight: 700; }


.nav__dd { position: relative; }
.nav__dd-btn {
  background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav__dd.is-active .nav__dd-btn { color: var(--red); font-weight: 700; }
.nav__dd-btn:hover { color: var(--red); }
.nav__caret { width: 12px; height: 12px; transition: transform .15s; }
.nav__dd-panel {
  position: absolute; top: calc(100% + 14px); left: -16px; min-width: 330px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 36px rgba(11,31,58,.14);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.nav__dd-panel::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav__dd:hover .nav__dd-panel, .nav__dd:focus-within .nav__dd-panel, .nav__dd.is-open .nav__dd-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__dd:hover .nav__caret, .nav__dd.is-open .nav__caret { transform: rotate(180deg); }
.nav__dd-panel a {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 2px;
}
.nav__dd-panel a:hover { background: var(--line-soft); color: var(--ink); }
.nav__dd-panel a.is-current { background: var(--line-soft); }
.nav__dd-panel a.is-current b { color: var(--red); }
.nav__dd-panel a .ico { width: 18px; height: 18px; color: var(--red); }
.nav__dd-panel a b { display: block; font-size: 13px; }
.nav__dd-panel a small { display: block; font-size: 10.5px; color: var(--ink-soft); margin-top: 1px; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; align-items: center; font-family: var(--mono); }
.lang .on { padding: 4px 8px; background: var(--ink); color: #fff; border: 1px solid var(--ink); font-size: 11px; font-weight: 700; }
.lang a { padding: 4px 8px; font-size: 11px; color: var(--ink-sub); border: 1px solid var(--line); border-left: none; }
.lang a:first-child { border-left: 1px solid var(--line); }
.sns { display: flex; gap: 8px; align-items: center; }
.sns a { width: 30px; height: 30px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-sub); }
.sns a:hover { color: var(--red); border-color: var(--red); }
.sns .ico { width: 15px; height: 15px; }
.header .btn { padding: 10px 16px; font-size: 13px; }
.hamb { display: none; }


.footer { background: var(--navy-deep); color: rgba(255,255,255,.75); }
.footer__in { max-width: var(--maxw); margin: 0 auto; padding: 44px 40px 24px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 32px; }
.footer__logo { background: #fff; display: inline-block; padding: 9px 14px; border-radius: 2px; }
.footer__logo img { height: 26px; width: auto; }
.footer__desc { font-size: 12px; line-height: 1.95; color: rgba(255,255,255,.65); margin-top: 14px; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; color: rgba(255,255,255,.5); margin-bottom: 12px; font-weight: 500; }
.footer__col a { display: block; font-size: 12.5px; color: rgba(255,255,255,.85); margin-bottom: 9px; }
.footer__col a:hover { color: #fff; }
.footer__sns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.footer__sns a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.3); font-size: 12px; color: #fff; font-weight: 600;
}
.footer__sns a:hover { background: rgba(255,255,255,.1); }
.footer__sns .ico { width: 15px; height: 15px; }
.footer__news {
  margin-top: 14px; padding: 12px 14px; border: 1px dashed rgba(255,255,255,.25);
  font-size: 11.5px; color: rgba(255,255,255,.6); line-height: 1.8;
}
.footer__affil {
  margin: 2px 0 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.42);
}
/* 所属団体バッジ（日本金型工業会WEB会員証・かながた小町）。
   会員証は工業会の年度枠を背景に、社名画像を重ねる2層構成。
   年度枠は工業会側で毎年切り替わるため、更新時はこのURLを差し替える。 */
.footer__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.footer__badge { display: block; width: 180px; max-width: 100%; margin-bottom: 0; }
.footer__badge[hidden] { display: none; }
.footer__badge img { width: 100%; height: auto; }
.footer__badge--jdmia {
  background: url(https://www.jdmia.or.jp/member/membership2026.png) no-repeat 0 0;
  background-size: cover;
}
.footer__bottom {
  margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 10.5px; color: rgba(255,255,255,.45); font-family: var(--mono); letter-spacing: 1px;
}


.mnav {
  position: fixed; inset: 0; top: 57px; z-index: 90; background: rgba(6,18,38,.45);
  opacity: 0; transition: opacity .22s;
}
.mnav[hidden] { display: none; }
body.menu-open .mnav { opacity: 1; }
.mnav__in {
  background: #fff; max-height: calc(100vh - 61px); overflow-y: auto;
  padding: 10px 18px calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateY(-8px); transition: transform .22s;
  display: flex; flex-direction: column; gap: 2px;
}
body.menu-open .mnav__in { transform: translateY(0); }
.mnav__link { display: block; padding: 13px 4px; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--line-soft); }
.mnav__group { padding: 12px 4px 8px; border-bottom: 1px solid var(--line-soft); }
.mnav__cap { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; color: var(--ink-soft); margin-bottom: 4px; }
.mnav__group a { display: flex; align-items: center; gap: 10px; padding: 10px 4px; font-size: 14px; font-weight: 500; }
.mnav__group a .ico { width: 16px; height: 16px; color: var(--red); }
.mnav__cta {
  margin-top: 14px; background: var(--red); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 14.5px; font-weight: 700;
}
.mnav__cta .ico { width: 16px; height: 16px; }
.mnav__foot { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.mnav__foot a { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-sub); border: 1px solid var(--line); padding: 8px 12px; }
.mnav__foot a .ico { width: 14px; height: 14px; }
.mnav__en { font-size: 11px; color: var(--ink-soft); }
body.menu-open { overflow: hidden; }


.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(6,18,38,.92);
  display: flex; align-items: center; justify-content: center; padding: 48px 64px;
}
.lightbox[hidden] { display: none; }
.lightbox__body { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.lightbox__body img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; margin: 0 auto; }
.lightbox__body figcaption { color: rgba(255,255,255,.85); font-size: 12.5px; text-align: center; font-family: var(--mono); letter-spacing: .5px; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 44px; height: 44px; font-size: 22px; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }
/* 狭幅では左右64pxの余白が拡大表示を圧迫し、サムネイルより小さく開くため詰める（引き伸ばしはしない）。
   前後ボタンは絶対配置をやめ、折り返しで画像の下段へ回して画像と重ならないようにする。 */
@media (max-width: 640px) {
  /* 上余白66pxは閉じるボタン（top:18px + 44px = 下端62px）の逃げ。画面が低いとき
     中央寄せで画像が上へ寄っても、閉じるボタンに重ならない。下余白は16pxまで詰める。 */
  .lightbox { padding: 66px 16px 16px; flex-wrap: wrap; align-content: center; row-gap: 14px; }
  .lightbox__body { flex: 0 0 100%; order: 1; }
  .lightbox__body img { max-height: calc(100vh - 220px); }
  .lightbox__prev, .lightbox__next {
    position: static; top: auto; bottom: auto; left: auto; right: auto;
    transform: none; flex: 0 0 auto; margin: 0 7px;
  }
  .lightbox__prev { order: 2; }
  .lightbox__next { order: 3; }
  /* 画面が低いと下段の前後ボタンが固定ボトムバーの帯（z-index:100）に掛かるため、
     ライトボックス表示中だけバーを消す。position:fixed なのでレイアウトはずれない。 */
  body.lightbox-open .bottom-bar { display: none; }
  body.menu-open .bottom-bar { display: none; } /* the drawer's last rows sat under the fixed bar on phones (2026-09-10) */
}


[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}


[data-video] { cursor: pointer; }
[data-video] .play span { transition: transform .15s, background .15s; }
[data-video]:hover .play span { transform: scale(1.08); background: var(--red); }
[data-video]:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }


.hovercard { transition: border-color .18s, box-shadow .18s, transform .18s; }
.hovercard:hover { border-color: var(--red); box-shadow: 0 10px 28px rgba(11,31,58,.10); transform: translateY(-2px); }
.hovercard .zoomimg { overflow: hidden; }
.hovercard .zoomimg img { transition: transform .35s ease; }
.hovercard:hover .zoomimg img { transform: scale(1.04); }


a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--steel); outline-offset: 2px;
}


.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 50px; padding: 9px 0 7px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px rgba(11,31,58,.16);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
  pointer-events: none; font-family: var(--font);
}
.totop.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.totop .ico { width: 16px; height: 16px; }
.totop__label { font-size: 10px; font-weight: 700; letter-spacing: .5px; line-height: 1; }
.totop:hover { color: var(--red); border-color: var(--red); }


.pagehero { position: relative; min-height: 300px; display: flex; align-items: flex-end; overflow: hidden; }
.pagehero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pagehero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,18,38,.35) 0%, rgba(6,18,38,.82) 100%); }
.pagehero__in { position: relative; width: 100%; padding-top: 60px; padding-bottom: 34px; color: #fff; }
.pagehero h1 { font-size: clamp(27px, 3.4vw, 38px); color: #fff; }
.pagehero .h1-sub { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 1.5px; color: rgba(255,255,255,.65); margin-top: 8px; }
.pagehero .crumbs { font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px; color: rgba(255,255,255,.7); margin-bottom: 10px; }
.pagehero .crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs a { display: inline-block; padding: 6px 2px; margin: -6px -2px; } /* タップ領域を広げる（見た目は不変） */
.pagehero__lead { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.85); max-width: 640px; }


.cta-band { text-align: center; }
.cta-band .btns { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }


.relchips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.relchips a {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.35); padding: 8px 14px; border-radius: 2px;
}
.relchips a:hover { background: rgba(255,255,255,.12); }


.quality-anchor { scroll-margin-top: 90px; }
.related-info {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 16px 0 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.related-info::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  background: var(--red);
}
.related-info__copy { min-width: 0; }
.related-info__label {
  display: block;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--ink-soft);
}
.related-info__title { display: block; font-size: 14px; font-weight: 700; transition: color .15s; }
.related-info__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .15s;
}
.related-info__more .ico { width: 14px; height: 14px; }
.related-info:hover .related-info__title,
.related-info:hover .related-info__more { color: var(--red); }
.section--navy .related-info { border-color: rgba(255,255,255,.28); color: #fff; }
.section--navy .related-info__label { color: rgba(255,255,255,.62); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.related-grid .related-info { margin-top: 0; min-height: 84px; }

@media (max-width: 640px) {
  .related-info { grid-template-columns: 1fr; gap: 7px; padding-left: 16px; }
  .related-info__more { justify-self: start; }
  .related-grid { grid-template-columns: 1fr; gap: 12px; }
}


.form__row { margin-bottom: 18px; }
.form__row > label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.form__req { color: var(--red); font-size: 11px; font-weight: 700; margin-left: 6px; }
.form__opt { color: var(--ink-soft); font-size: 11px; font-weight: 500; margin-left: 6px; }
.form__row input[type="text"], .form__row input[type="email"], .form__row input[type="tel"],
.form__row select, .form__row textarea {
  width: 100%; padding: 12px 14px; font-size: 14px; font-family: var(--font);
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.form__row select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234a5868' stroke-width='1.6'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.form__row textarea { min-height: 150px; resize: vertical; }
.form__row input:focus, .form__row select:focus, .form__row textarea:focus { border-color: var(--steel); outline: none; box-shadow: 0 0 0 2px rgba(31,74,138,.12); }
.form__row.has-error input, .form__row.has-error select, .form__row.has-error textarea { border-color: var(--red); }
.form__error { display: block; color: var(--red); font-size: 12px; margin-top: 5px; min-height: 0; }
.form__hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; }
/* スパム対策のハニーポット。人間には見えず、botだけが埋める */
.form__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form__alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(200,35,44,.4);
  border-left: 3px solid var(--red);
  background: rgba(200,35,44,.05);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.9;
}
.form__alert[hidden] { display: none; }
/* 見学（工場見学・職場見学）の希望日時。種類が見学系のとき表示。
   色はCSS変数を使い、コーポ=鋼青/グレー・採用=琥珀/クリームに自動追従 */
.form-visit { border-left: 3px solid var(--steel); background: var(--panel); padding: 16px 20px 12px; }
body.rec .form-visit { border: 1px solid var(--line); border-left: 3px solid var(--steel); border-radius: 16px; background: #fff; }
.form-visit > label { margin-bottom: 2px; }
.form-visit .form__hint { margin-bottom: 4px; }
.visit-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.visit-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.visit-line__no {
  flex: 0 0 86px; font-size: 12.5px; font-weight: 700; color: var(--ink-sub);
  display: inline-flex; align-items: center; gap: 6px;
}
/* 日付欄は共通の入力欄スタイル対象外（input[type=date]）なので、他の入力欄と同じ枠・高さを明示 */
.form-visit .visit-date {
  flex: 0 1 210px; width: auto;
  padding: 12px 14px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: 14px; font-family: var(--font); line-height: 1.4;
}
.form-visit .visit-date:focus { border-color: var(--steel); outline: none; box-shadow: 0 0 0 2px rgba(31,74,138,.12); }
.form-visit .visit-ampm { flex: 0 0 132px; width: auto; }
body.rec .form-visit .visit-date, body.rec .form-visit .visit-ampm { border-radius: 8px; }
@media (max-width: 640px) {
  /* スマホは「ラベル→日付→時間帯」を縦積み（日付欄が窮屈にならないよう明示） */
  .visit-line { gap: 8px; }
  .visit-line__no { flex-basis: 100%; margin-bottom: 2px; }
  .form-visit .visit-date, .form-visit .visit-ampm { flex: 1 1 100%; }
}
.form__file {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px dashed var(--line); padding: 14px 16px; background: var(--panel);
}
.form__file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form__file-btn {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ink);
  padding: 9px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.form__file-btn .ico { width: 14px; height: 14px; }
.form__file-name { font-size: 12px; color: var(--ink-sub); }
.form__row > .form__agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.form__agree input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--red); }
@media (min-width: 768px) {
  .form__agree > span { white-space: nowrap; font-size: 12px; letter-spacing: -.02em; }
}
.form__done { border: 1px solid var(--line); background: #fff; padding: 36px 30px; text-align: center; }
.form__done .ico { width: 40px; height: 40px; color: var(--red); margin: 0 auto 12px; display: block; }


.hero__lead-phrase { white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 1000; padding: 10px 14px; background: #fff; color: var(--ink); border: 2px solid var(--red); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.br-sp { display: none; }
.sp-only { display: none; }


.bottom-bar { display: none; }

@media (max-width: 1100px) {
  .header__in { padding: 11px 18px; gap: 12px; }
  .nav, .header__cta .lang, .header__cta .btn, .header .sns { display: none; }
  .hamb { display: flex; margin-left: auto; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; }
  .hamb i { width: 22px; height: 2px; background: var(--ink); display: block; }
  .grid-4, .grid-5 { grid-template-columns: 1fr 1fr !important; }
  .grid-3 { grid-template-columns: 1fr 1fr !important; }
  .footer__grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 960px) {
  body:has(.bottom-bar) { padding-bottom: 64px; } /* 採用ページにはバーが無いので余白も付けない（2026-09-10） */
  /* 左右だけを詰める。ショートハンドにすると、後ろに書かれたこの指定が
     .wrap と併用されている .pagehero__in / .hero__in の上下余白まで
     0 に上書きしてしまい、SPでヒーロー下端に本文やCTAが貼り付く。 */
  .wrap { padding-left: 22px; padding-right: 22px; }
  .section { padding: 44px 0; }
  .br-sp { display: inline; }
  .sp-only { display: block; }
  .header__in { padding: 11px 18px; gap: 12px; }
  .nav, .header__cta .lang, .header__cta .btn, .header .sns { display: none; }
  .hamb { display: flex; margin-left: auto; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; }
  .hamb i { width: 22px; height: 2px; background: var(--ink); display: block; }
  .grid-4, .grid-5, .grid-3, .grid-2 { grid-template-columns: 1fr !important; }
  .h2 { font-size: 23px; }
  .footer__grid { grid-template-columns: 1fr !important; }
  .bottom-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    padding: 8px; background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(0,0,0,.10); gap: 8px;
  }
  .bottom-bar a {
    flex: 1; padding: 12px 8px; display: flex; align-items: center; justify-content: center;
    gap: 6px; font-size: 13px; font-weight: 700; color: #fff;
  }
  .bottom-bar .ico { width: 14px; height: 14px; }
  .totop { bottom: 76px; } /* 固定ボトムバーを避ける */
}

@media (max-width: 600px) { html[data-site-language="en"] .hero__lead-phrase { white-space: normal; } }

/* ===== 金型 / 専用機 自動写真スライドショー ===== */
.synergy-slider {
  position: relative; margin: 0; border: 1px solid rgba(255,255,255,.24);
  background: #fff; color: var(--ink); box-shadow: 18px 18px 0 rgba(200,35,44,.22);
}
.synergy-slider:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.synergy-slider__stage { display: grid; overflow: hidden; background: #f5f5f3; }
.synergy-slider__panel {
  grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}
.synergy-slider__panel.is-active {
  opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s;
}
.synergy-slider__panel img {
  width: 100%; height: 360px; object-fit: contain; background: #f5f5f3;
}
.synergy-slider__panel figcaption {
  min-height: 78px; padding: 15px 18px 17px; font-size: 13px; line-height: 1.7;
  border-top: 1px solid var(--line);
}
.synergy-slider__panel figcaption span {
  display: block; margin-bottom: 4px; color: var(--red); font-family: var(--mono);
  font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
}
@media (prefers-reduced-motion: reduce) {
  .synergy-slider__panel { transition: none; }
}
@media (max-width: 767px) {
  .synergy-slider { box-shadow: 10px 10px 0 rgba(200,35,44,.22); }
  .synergy-slider__panel img { height: 260px; }
}

/* English-only responsive guards (2026-09-04). Japanese pages are unaffected. */
html[data-site-language="en"] .eyebrow { flex-wrap: nowrap; }
html[data-site-language="en"] .eyebrow::before { flex: 0 0 24px; }
@media (max-width: 960px) { html[data-site-language="en"] .pagehero__lead br { display: none; } }
@media (max-width: 480px) { html[data-site-language="en"] .crumbs { letter-spacing: .6px; } }
@media (max-width: 480px) { html[data-site-language="en"] .column-fig { overflow-x: auto; -webkit-overflow-scrolling: touch; } html[data-site-language="en"] .column-fig svg[viewBox^="0 0 460"] { min-width: 400px; } }
@media (max-width: 480px) { html[data-site-language="en"] .column-fig:has(svg[viewBox^="0 0 460"])::before { content: "Swipe sideways to view the whole diagram"; display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .5px; color: var(--ink-soft); margin-bottom: 8px; } }

/* 2026-09-10 スマホ目視レビューの反映 */
.door__body .k { text-shadow: 0 1px 8px rgba(0,0,0,.55); }
@media (max-width: 640px) {
  .scope__table th, .spec-table th { white-space: nowrap; } /* 見出しセルの語中改行を防ぐ */
}
