@charset "UTF-8";

/* =========================================================
   東洋炉機工業株式会社  リニューアル版スタイル
   ========================================================= */

:root {
  --ink: #0f1114;
  --charcoal: #171a1f;
  --steel: #23282f;
  --line: #e4e6e9;
  --muted: #6b717a;
  --paper: #f5f5f3;
  --fire: #d7261e;
  --ember: #ff6a2b;
  --gradient: linear-gradient(90deg, var(--fire), var(--ember));
  --font-ja: "HGｺﾞｼｯｸM", "HGゴシックM", "HGGothicM", "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  --font-en: "Montserrat", "Helvetica Neue", Arial, var(--font-ja);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.en { font-family: var(--font-en); letter-spacing: 0.12em; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
}
/* 背景は疑似要素に分ける（ヘッダー本体に backdrop-filter を付けると、
   中の固定配置メニューがヘッダー内に閉じ込められ、スマホで表示されなくなるため） */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 17, 20, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.site-header.is-solid::before,
.page-sub .site-header::before,
.nav-open .site-header::before { opacity: 1; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand-mark {
  width: auto;
  height: 32px;
}
.brand-text { line-height: 1.25; }
.brand-en { display: block; font-size: 10px; opacity: 0.75; white-space: nowrap; }
.brand-ja { display: block; font-size: 18px; letter-spacing: 0.08em; }

.global-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.global-nav a {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  text-decoration: none;
  color: #fff;
  opacity: 0.88;
  transition: opacity 0.2s;
}
.global-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.global-nav a:hover,
.global-nav a[aria-current="page"] { opacity: 1; }
.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after { transform: scaleX(1); }
.global-nav .nav-contact a {
  margin-left: 8px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
}
.global-nav .nav-contact a::after { display: none; }
.global-nav .nav-contact a:hover { background: #fff; color: var(--ink); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: #fff;
  content: "";
  transition: transform 0.3s, top 0.3s, opacity 0.3s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -8px; }
.nav-toggle span::after { left: 0; top: 8px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- トップのメインビジュアル ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero-slides img.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 17, 20, 0.55) 0%, rgba(15, 17, 20, 0.15) 40%, rgba(15, 17, 20, 0.85) 100%),
    linear-gradient(90deg, rgba(15, 17, 20, 0.7) 0%, rgba(15, 17, 20, 0) 60%);
}
.hero-content {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 14vh;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 12px;
}
.hero-label::before { content: ""; width: 40px; height: 2px; background: var(--gradient); }
.hero-title {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 72px);
  font-weight: normal;
  line-height: 1.3;
  letter-spacing: 0.08em;
}
.hero-title-long {
  max-width: 620px;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.7;
  letter-spacing: 0.06em;
}
.hero-title-long + .hero-sub {
  max-width: 620px;
  font-size: clamp(13px, 1.15vw, 15px);
}
.hero .nw { display: inline-block; }
.hero-sub {
  margin: 18px 0 0;
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: 0.12em;
  opacity: 0.9;
}
.hero-tagline {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: 13px;
  opacity: 0.75;
}
.hero-dots {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 14vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-dots button {
  width: 3px;
  height: 28px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s, height 0.3s;
}
.hero-dots button[aria-current="true"] { background: var(--ember); height: 44px; }
.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-size: 10px;
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  margin: 8px auto 0;
  background: linear-gradient(#fff, transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 下層ページのタイトル ---------- */
/* 会社案内と同じ：黒地＋右へ赤みのグラデーション＋うっすら TRK */
.page-hero {
  position: relative;
  padding: 180px 0 90px;
  background: linear-gradient(120deg, var(--ink) 40%, #3a1714 100%);
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: "TRK";
  position: absolute;
  right: 4%;
  bottom: -0.2em;
  font-family: var(--font-en);
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(255, 106, 43, 0.12);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .en {
  display: block;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
}
.page-hero h1 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: normal;
  letter-spacing: 0.2em;
}
.page-hero h1::before { content: ""; width: 32px; height: 2px; background: var(--gradient); }

.breadcrumb {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--fire); }

/* ---------- セクション共通 ---------- */
.section { padding: 110px 0; }
.section-dark { background: var(--charcoal); color: #fff; }
.section-paper { background: var(--paper); }

.section-head { margin-bottom: 56px; }
.section-head .en {
  display: block;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: normal;
  color: var(--muted);
}
.section-dark .section-head h2 { color: rgba(255, 255, 255, 0.65); }
.section-head h2::before { content: ""; width: 32px; height: 2px; background: var(--gradient); }
.section-head h2 small { font-size: 12px; }

.lead-text { font-size: 16px; line-height: 2.1; }
.note { font-size: 13px; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 34px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn::after { content: "→"; font-family: var(--font-en); transition: transform 0.3s; }
.btn:hover::after { transform: translateX(4px); }
.btn-fire { background: var(--gradient); border-color: transparent; color: #fff; }
.btn-fire:hover { filter: brightness(1.08); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section-dark .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- トップ：TOPICS ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-catch {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: normal;
  line-height: 1.6;
  letter-spacing: 0.06em;
}
.about-catch span { display: block; }
.about-catch .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-photo {
  position: relative;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid var(--fire);
  z-index: -1;
}
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 80px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-row div {
  padding: 28px 24px;
  background: #fff;
  font-size: 14px;
}
.feature-row .en {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fire);
}

/* ---------- トップ：製品一覧 ---------- */
.product-index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.product-index a {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  text-decoration: none;
  transition: background 0.3s, padding 0.3s;
}
.product-index a:hover { background: rgba(255, 255, 255, 0.04); padding-left: 20px; }
.product-index .num { font-family: var(--font-en); font-size: 14px; color: var(--ember); }
.product-index .name { font-size: clamp(16px, 2vw, 22px); letter-spacing: 0.06em; }
.product-index .arrow { font-family: var(--font-en); text-align: right; opacity: 0.6; }
.product-others { margin: 36px 0 40px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }

/* ---------- トップ：NEWS ---------- */
.news-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.news-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
}
.news-list time { font-family: var(--font-en); font-size: 13px; color: var(--fire); letter-spacing: 0.08em; }

/* ---------- お問い合わせ帯 ---------- */
.cta {
  position: relative;
  padding: 100px 0;
  background: var(--ink) url(../img/slide-5.jpg) center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 17, 20, 0.94) 30%, rgba(215, 38, 30, 0.75) 100%);
}
.cta .container { position: relative; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta .en { display: block; font-size: clamp(32px, 4.5vw, 56px); font-weight: 700; line-height: 1.1; }
.cta p { margin: 16px 0 0; opacity: 0.85; }
.cta-contacts { display: grid; gap: 14px; }
.cta-contacts a,
.cta-contacts div {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: background 0.3s;
}
.cta-contacts a:hover { background: rgba(255, 255, 255, 0.08); }
.cta-contacts .en { display: inline; min-width: 64px; font-size: 12px; font-weight: 600; color: var(--ember); }
.cta-contacts strong { font-family: var(--font-en); font-size: clamp(16px, 2vw, 22px); font-weight: 500; letter-spacing: 0.06em; }

/* ---------- 会社方針 ---------- */
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.policy-figure {
  padding: 32px;
  background: radial-gradient(circle at 50% 45%, var(--steel) 0%, var(--ink) 75%);
}
.policy-diagram { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; overflow: visible; }
.policy-diagram text { font-family: var(--font-ja); }
.policy-diagram .pg-en { font-family: var(--font-en); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; fill: #ff6a2b; }
.policy-diagram .pg-en-light { fill: rgba(255, 255, 255, 0.85); }
.policy-diagram .pg-label { font-size: 17px; letter-spacing: 0.06em; fill: #fff; }
.policy-diagram .pg-label-long { font-size: 14px; letter-spacing: 0.02em; }
.policy-diagram .pg-main { font-size: 26px; letter-spacing: 0.12em; }
/* 外周の点線がゆっくり回る */
.pg-orbit { transform-origin: 240px 240px; animation: pgOrbit 40s linear infinite; }
@keyframes pgOrbit { to { transform: rotate(360deg); } }
.pg-node circle { transition: fill 0.3s; }
.pg-node:hover circle { fill: #23282f; }

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
/* 罫線はマスごとに引く（最後の段に空きマスがあっても灰色にならないように） */
.client-grid li {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.client-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  padding: 20px 22px;
  background: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.client-grid span {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 20px 22px;
  background: #fff;
  font-size: 14px;
}
.client-grid a::after { content: "↗"; font-family: var(--font-en); color: var(--muted); }
.client-grid a:hover { background: var(--ink); color: #fff; }
.client-grid a:hover::after { color: var(--ember); }

/* ---------- 製品紹介 ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.product:first-of-type { padding-top: 0; }
.product:nth-of-type(even) .product-media { order: 2; }
/* 写真枠はすべて同じ大きさ（4:3・薄いグレー背景）にそろえ、写真は枠の中に全体が収まるように表示 */
.product-media {
  aspect-ratio: 4 / 3;
  padding: 24px;
  background: var(--paper);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* CAD図の白い背景を枠の色になじませる */
.product-media-fit img { mix-blend-mode: multiply; }
.product-compact {
  display: block;
  padding: 44px 0;
}
.product-compact h2 { margin-bottom: 0; }
.product-num { font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--fire); }
.product h2, .product h3 { margin: 6px 0 20px; font-size: clamp(20px, 2.4vw, 26px); font-weight: normal; letter-spacing: 0.06em; }
.product p { margin: 0 0 1em; }
.result {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 3px solid var(--fire);
  background: var(--paper);
  font-size: 14px;
}
.result span { display: block; font-size: 12px; color: var(--muted); }
.product-model { margin: -12px 0 18px; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.product-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.spec { margin: 24px 0 0; font-size: 13px; line-height: 1.7; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 10em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.spec small { margin-left: 4px; font-size: 11px; color: var(--muted); }

/* ---------- 主要仕入先・協力会社 ---------- */
.supplier-legend { margin: -16px 0 28px; font-size: 13px; color: var(--muted); }
.supplier-legend .tag { margin-left: 0; }
.supplier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.supplier-group { padding: 24px 26px; border: 1px solid var(--line); border-top: 3px solid var(--fire); }
.supplier-group .en { font-size: 11px; color: var(--fire); }
.supplier-group h3 { margin: 2px 0 12px; font-size: 17px; font-weight: normal; letter-spacing: 0.06em; }
.supplier-group ul { margin: 0; padding: 0; list-style: none; }
.supplier-group li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--line); }
.tag {
  flex: none;
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tag-maker { color: var(--fire); border-color: currentColor; }
@media (max-width: 960px) { .supplier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .supplier-grid { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 2px; }
}

.others-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.others-list li {
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
}
.others-list li::before { content: "— "; color: var(--ember); }

/* ---------- 会社概要・採用情報の表 ---------- */
.data-table { margin: 0; border-top: 2px solid var(--ink); }
.data-table > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
}
.data-table dt { font-weight: bold; color: var(--ink); }
.data-table dd { margin: 0; }

.timeline { position: relative; margin: 0; padding: 0 0 0 32px; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.timeline li { position: relative; padding: 0 0 36px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(215, 38, 30, 0.2);
}
.timeline time { display: block; font-size: 13px; color: var(--ember); letter-spacing: 0.1em; }

.job-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 72px; }
.job {
  position: relative;
  padding: 36px 32px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}
.job::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); }
.job:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 17, 20, 0.08); }
.job h3 { margin: 0 0 16px; font-size: 20px; font-weight: normal; letter-spacing: 0.08em; }
.job dl { margin: 0; font-size: 14px; }
.job dt { margin-top: 10px; font-size: 12px; color: var(--muted); }
.job dd { margin: 0; }
.recruit-notes { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.recruit-notes li { padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: #fff; }

/* ---------- アクセス ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(0.4) contrast(1.05); }
.route { margin-bottom: 40px; }
.route h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: normal;
}
.route h3 .en { font-size: 11px; font-weight: 600; color: var(--fire); }
.route-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.route-list li { padding: 14px 4px; border-bottom: 1px solid var(--line); }

/* ---------- お問い合わせ ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  color: var(--fire);
}
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: background 0.3s;
}
a.contact-card:hover { background: rgba(255, 255, 255, 0.06); }
.contact-card .en { display: block; font-size: 12px; font-weight: 600; color: var(--ember); }
.contact-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--font-en);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: 0.04em;
  word-break: break-all;
}
.contact-person { margin-top: 32px; color: rgba(255, 255, 255, 0.75); }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.75); font-size: 13px; }
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding: 72px 24px 56px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.footer-brand .brand-mark { height: 42px; }
.footer-address { margin: 20px 0 0; line-height: 1.9; }
.footer-address a { text-decoration: none; }
.footer-nav ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a { text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.copyright {
  margin: 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: var(--font-en);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- スクロール表示アニメーション ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 外国語ページ ---------- */
html[lang="en"], html[lang="id"] {
  --font-ja: "Segoe UI", "Helvetica Neue", Arial, "メイリオ", Meiryo, sans-serif;
}
html[lang="zh-Hans"] {
  --font-ja: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
}
html[lang="zh-Hant"] {
  --font-ja: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
}
html[lang="ko"] {
  --font-ja: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
.page-lang [lang="ja"] {
  font-family: "HGｺﾞｼｯｸM", "HGゴシックM", "HGGothicM", "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", sans-serif;
}
.page-lang main section[id] { scroll-margin-top: 72px; }
html[lang="ko"] .page-lang,
html[lang="ko"] .hero-title-long { word-break: keep-all; }
.policy-diagram .pg-main-latin { font-family: var(--font-en); font-size: 22px; letter-spacing: 0.04em; }

/* 言語切替（ヘッダー右上の小さなメニュー） */
.lang-menu { position: relative; order: 3; margin-left: 14px; color: #fff; }
.global-nav { order: 2; margin-left: auto; }
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 11px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.3s, color 0.3s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover,
.lang-menu[open] summary { background: #fff; color: var(--ink); }
.lang-menu ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 110;
  min-width: 132px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.lang-menu a {
  display: block;
  padding: 7px 16px;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
}
.lang-menu a:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.lang-menu a[aria-current] { opacity: 1; color: var(--ember); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 小さめのパソコン画面：メニューを詰める */
@media (max-width: 1200px) and (min-width: 961px) {
  .global-nav ul { gap: 0; }
  .global-nav a { padding: 8px 8px; font-size: 12px; }
  .global-nav a::after { left: 8px; right: 8px; }
  .global-nav .nav-contact a { margin-left: 4px; padding: 8px 14px; }
  .lang-menu { margin-left: 8px; }
}

/* =========================================================
   タブレット
   ========================================================= */
@media (max-width: 960px) {
  .about-grid,
  .policy-grid,
  .product,
  .access-grid,
  .cta-grid,
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .product:nth-of-type(even) .product-media { order: 0; }
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .others-list { grid-template-columns: repeat(2, 1fr); }

  .js .nav-toggle { display: block; }
  .global-nav {
    position: fixed;
    inset: 76px 0 0 0;
    padding: 24px;
    background: var(--ink);
    overflow-y: auto;
  }
  .js .global-nav { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
  .js .nav-open .global-nav { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav a { padding: 18px 8px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .global-nav a::after { display: none; }
  .global-nav .nav-contact a { margin: 24px 0 0; text-align: center; border-radius: 999px; }
  .lang-menu { order: 0; margin-left: auto; margin-right: 6px; }
  .nav-toggle { order: 1; }
}

/* =========================================================
   スマートフォン
   ========================================================= */
@media (max-width: 600px) {
  body { font-size: 14px; }
  .container { padding: 0 18px; }
  .footer-main { padding: 56px 18px 40px; }
  .header-inner { height: 64px; }
  .global-nav { inset: 64px 0 0 0; }
  .brand-mark { height: 28px; }
  .brand-ja { font-size: 15px; }
  .brand { gap: 8px; }
  .brand-en { font-size: 8.5px; letter-spacing: 0.08em; }
  .lang-menu summary { padding: 4px 8px; }

  .hero-content { bottom: 18vh; }
  .hero-dots { flex-direction: row; right: auto; left: 18px; bottom: 9vh; }
  .hero-dots button { width: 24px; height: 3px; }
  .hero-dots button[aria-current="true"] { width: 40px; height: 3px; }
  .hero-scroll { display: none; }

  .page-hero { padding: 130px 0 56px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }

  .feature-row,
  .client-grid,
  .job-grid,
  .steps,
  .others-list { grid-template-columns: 1fr; }
  .about-photo::before { inset: 14px -10px -14px 14px; }

  .product-index a { grid-template-columns: 48px 1fr 24px; padding: 22px 4px; }
  .news-list li { grid-template-columns: 1fr; gap: 4px; padding: 18px 4px; }
  .data-table > div { grid-template-columns: 1fr; gap: 6px; padding: 18px 4px; }
  .product-media { padding: 16px; }
  .job { padding: 28px 22px; }
  .cta-contacts a, .cta-contacts div { flex-direction: column; gap: 2px; }
}
