/* 西鐵工所グループ: 公開7ページのスタイル */

/* 共通のルールとページ固有のルールを、元の優先順のまままとめています。 */

/* data-page の指定があるHTMLから読み込みます。画像は ../images/ を参照します。 */

/* 全ページ共通 */

:root {
  --bg: #f4f6f8;
  --text: #1f2933;
  --muted: #65727f;
  --dark: #111827;
  --primary: #0f3d5e;
  --primary2: #165f8f;
  --accent: #d6a84f;
  --white: #ffffff;
  --line: #e5e9ee;
  --shadow: 0 18px 45px rgba(15, 31, 45, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}

a {
  color: inherit; text-decoration: none;
}

img {
  max-width: 100%; height: auto; vertical-align: middle;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229,233,238,0.9);
}

/* index.html, recruit.html */

:where(html[data-page="index"], html[data-page="recruit"]) .header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* infinite.html, company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="infinite"], html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* 全ページ共通 */

.logo-wrap img {
  width: 235px;
  max-height: 54px;
  object-fit: contain;
}

/* index.html */

:where(html[data-page="index"]) .logo-assemble {
  position: relative;
  display: block;
  width: 235px;
  height: 54px;
  aspect-ratio: 1200 / 332;
  overflow: hidden;
}

:where(html[data-page="index"]) .logo-wrap .logo-assemble-piece {
  position: absolute;
  top: 0;
  left: 20px;
  width: 195px;
  height: 54px;
  max-height: none;
  object-fit: contain;
  opacity: 0;
  clip-path: var(--logo-from);
  transform: translateY(7px);
}

:where(html[data-page="index"]) .logo-assemble.is-ready .logo-assemble-piece {
  animation: logo-assemble-in 0.36s cubic-bezier(0.22, 0.72, 0.2, 1) forwards;
  animation-delay: var(--logo-delay);
}

:where(html[data-page="index"]) .logo-piece-n {
  --logo-from: inset(0 100% 0 0);
  --logo-to: inset(0 68.4% 0 0);
  --logo-delay: 0.04s;
}

:where(html[data-page="index"]) .logo-piece-s {
  --logo-from: inset(0 68% 0 32%);
  --logo-to: inset(0 44% 0 32%);
  --logo-delay: 0.14s;
}

:where(html[data-page="index"]) .logo-piece-i-center {
  --logo-from: inset(0 43% 0 57%);
  --logo-to: inset(0 33% 0 57%);
  --logo-delay: 0.24s;
}

:where(html[data-page="index"]) .logo-piece-h {
  --logo-from: inset(0 32% 0 68%);
  --logo-to: inset(0 10.5% 0 68%);
  --logo-delay: 0.34s;
}

:where(html[data-page="index"]) .logo-piece-i-end {
  --logo-from: inset(0 0 0 90%);
  --logo-to: inset(0 0 0 89.5%);
  --logo-delay: 0.44s;
}

@keyframes logo-assemble-in {
  0% {
    opacity: 0;
    clip-path: var(--logo-from);
    transform: translateY(7px);
  }
  20% { opacity: 1; }
  100% {
    opacity: 1;
    clip-path: var(--logo-to);
    transform: translateY(0);
  }
}

/* 全ページ共通 */

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #344250;
}

.nav a {
  position: relative; padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav a:hover::after, .nav a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  padding: 10px 14px !important;
  color: #fff !important;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15,61,94,0.18);
}

.nav-cta::after {
  display: none;
}

@media (min-width: 1181px) {

  /* index.html */

  :where(html[data-page="index"]) body.pc-nav-intro:not(.pc-nav-ready) .nav > a {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(7px);
  }

  :where(html[data-page="index"]) body.pc-nav-intro.pc-nav-ready .nav > a:not(.nav-cta) {
    animation: pc-nav-item-build 0.32s cubic-bezier(0.2, 0.78, 0.25, 1) both;
  }

  :where(html[data-page="index"]) body.pc-nav-intro.pc-nav-ready .nav > .nav-cta {
    animation: pc-nav-cta-build 0.34s cubic-bezier(0.18, 0.85, 0.22, 1) both;
  }

  :where(html[data-page="index"]) body.pc-nav-intro.pc-nav-ready .nav > a:nth-child(1) {
    animation-delay: 0.1s;
  }

  :where(html[data-page="index"]) body.pc-nav-intro.pc-nav-ready .nav > a:nth-child(2) {
    animation-delay: 0.17s;
  }

  :where(html[data-page="index"]) body.pc-nav-intro.pc-nav-ready .nav > a:nth-child(3) {
    animation-delay: 0.24s;
  }

  :where(html[data-page="index"]) body.pc-nav-intro.pc-nav-ready .nav > a:nth-child(4) {
    animation-delay: 0.31s;
  }

  :where(html[data-page="index"]) body.pc-nav-intro.pc-nav-ready .nav > a:nth-child(5) {
    animation-delay: 0.38s;
  }

  :where(html[data-page="index"]) body.pc-nav-intro.pc-nav-ready .nav > a:nth-child(6) {
    animation-delay: 0.46s;
  }

  :where(html[data-page="index"]) body.pc-nav-intro.pc-nav-ready .nav > a:nth-child(7) {
    animation-delay: 0.54s;
  }

  :where(html[data-page="index"]) body.pc-nav-intro.pc-nav-ready .nav > a.active::after {
    animation: pc-nav-active-line 0.28s 0.46s ease-out both;
  }

}

/* index.html */

@keyframes pc-nav-item-build {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes pc-nav-cta-build {
  from { opacity: 0; transform: translateY(5px) scaleX(0.78); }
  to { opacity: 1; transform: translateY(0) scaleX(1); }
}

@keyframes pc-nav-active-line {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

/* 全ページ共通 */

.menu-button {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-button > span {
  position: absolute;
  left: 50%;
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 !important;
  background: var(--dark);
  transform: translateX(-50%);
}

.menu-button > span:nth-of-type(1) {
  top: 8px;
}

.menu-button > span:nth-of-type(2) {
  top: 14px;
}

.menu-button > span:nth-of-type(3) {
  top: 20px;
}

.menu-button-text {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  text-align: center;
}

.menu-close-icon {
  display: none;
  position: absolute;
  top: 2px;
  left: 50%;
  width: 24px;
  height: 24px;
  color: var(--dark);
  transform: translateX(-50%);
}

.menu-button[aria-expanded="true"] > span {
  display: none;
}

.menu-button[aria-expanded="true"] .menu-close-icon {
  display: block;
  animation: menu-close-icon-in 0.18s ease-out both;
}

.menu-button[aria-expanded="false"] > span {
  animation: menu-line-in 0.18s ease-out both;
}

.menu-button[aria-expanded="false"] > span:nth-of-type(1) {
  animation-delay: 0.06s;
}

.menu-button[aria-expanded="false"] > span:nth-of-type(2) {
  animation-delay: 0.09s;
}

.menu-button[aria-expanded="false"] > span:nth-of-type(3) {
  animation-delay: 0.12s;
}

@keyframes menu-close-icon-in {
  from { opacity: 0; transform: translateX(-50%) rotate(-35deg); }
  to { opacity: 1; transform: translateX(-50%) rotate(0); }
}

@keyframes menu-line-in {
  from { opacity: 0; transform: translateX(-50%) scaleX(0.2); }
  to { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

/* index.html */

:where(html[data-page="index"]) .menu-button.menu-intro:not(.is-intro-complete) {
  border-color: transparent;
}

:where(html[data-page="index"]) .menu-button.menu-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
}

:where(html[data-page="index"]) .menu-button.menu-intro:not(.is-intro-playing):not(.is-intro-complete) > span,
:where(html[data-page="index"]) .menu-button.menu-intro:not(.is-intro-playing):not(.is-intro-complete) .menu-button-text {
  opacity: 0;
}

:where(html[data-page="index"]) .menu-button.menu-intro.is-intro-playing::after {
  animation: menu-intro-frame 0.28s 0.04s ease-out both;
}

:where(html[data-page="index"]) .menu-button.menu-intro.is-intro-playing > span {
  animation: menu-intro-line 0.26s cubic-bezier(0.3, 0.8, 0.25, 1) both;
}

:where(html[data-page="index"]) .menu-button.menu-intro.is-intro-playing > span:nth-of-type(1) {
  animation-delay: 0.26s;
}

:where(html[data-page="index"]) .menu-button.menu-intro.is-intro-playing > span:nth-of-type(2) {
  animation-delay: 0.33s;
}

:where(html[data-page="index"]) .menu-button.menu-intro.is-intro-playing > span:nth-of-type(3) {
  animation-delay: 0.4s;
}

:where(html[data-page="index"]) .menu-button.menu-intro.is-intro-playing .menu-button-text {
  animation: menu-intro-text 0.2s 0.52s ease-out both;
}

@keyframes menu-intro-frame {
  from { opacity: 0; transform: scale(0.78); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes menu-intro-line {
  from { opacity: 0; transform: translateX(-50%) scaleX(0.08); }
  to { opacity: 1; transform: translateX(-50%) scaleX(1); }
}

@keyframes menu-intro-text {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 全ページ共通 */

.mobile-menu-panel {
  display: none;
}

/* index.html */

:where(html[data-page="index"]) .hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
  linear-gradient(90deg, rgba(7,19,30,0.9) 0%, rgba(7,19,30,0.74) 46%, rgba(7,19,30,0.46) 100%),
  url("../images/web/factory-large-machining-center-close.jpg") center/cover;
}

:where(html[data-page="index"]) .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
  linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

:where(html[data-page="index"]) .hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 690px;
  padding: 72px 0;
}

/* infinite.html */

:where(html[data-page="infinite"]) .hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
  linear-gradient(90deg, rgba(7,19,30,0.94) 0%, rgba(7,19,30,0.78) 48%, rgba(7,19,30,0.48) 100%),
  url("../images/web/green-industrial-loom-03.jpg") center/cover;
}

/* company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
  linear-gradient(90deg, rgba(8, 23, 37, 0.86), rgba(8, 23, 37, 0.62)),
  url("../images/web/head-office-building.jpg") center/cover;
}

/* infinite.html, company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="infinite"], html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
  linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* infinite.html */

:where(html[data-page="infinite"]) .hero-inner {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  padding: 76px 0;
}

/* company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .hero-inner {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding: 70px 0;
}

/* recruit.html */

:where(html[data-page="recruit"]) .hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
  linear-gradient(rgba(8, 23, 37, 0.76), rgba(8, 23, 37, 0.72)),
  url("../images/web/factory-building-no7.jpg") center/cover;
}

:where(html[data-page="recruit"]) .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
  linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
}

:where(html[data-page="recruit"]) .hero-inner {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

/* 全ページ共通 */

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #f3d28a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: #f3d28a;
}

/* index.html */

:where(html[data-page="index"]) .hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.2;
  letter-spacing: 0.05em;
}

:where(html[data-page="index"]) .hero-heading-line {
  display: block;
  white-space: nowrap;
}

:where(html[data-page="index"]) .hero-lead {
  margin: 24px 0 0;
  max-width: 620px;
  color: rgba(255,255,255,0.86);
  font-size: 17px;
}

/* infinite.html, recruit.html */

:where(html[data-page="infinite"], html[data-page="recruit"]) .hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.18;
  letter-spacing: 0.05em;
}

:where(html[data-page="infinite"], html[data-page="recruit"]) .controlled-heading-line {
  display: block;
  white-space: nowrap;
}

/* company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.18;
  letter-spacing: 0.05em;
}

/* infinite.html, company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="infinite"], html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .hero-lead {
  margin: 24px 0 0;
  max-width: 680px;
  color: rgba(255,255,255,0.88);
  font-size: 17px;
}

/* recruit.html */

:where(html[data-page="recruit"]) .hero-lead {
  margin: 24px 0 0;
  max-width: 660px;
  color: rgba(255,255,255,0.88);
  font-size: 17px;
}

/* index.html, infinite.html, recruit.html */

:where(html[data-page="index"], html[data-page="infinite"], html[data-page="recruit"]) .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

:where(html[data-page="index"], html[data-page="infinite"], html[data-page="recruit"]) .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

:where(html[data-page="index"], html[data-page="infinite"], html[data-page="recruit"]) .button:hover {
  transform: translateY(-2px);
}

:where(html[data-page="index"], html[data-page="infinite"], html[data-page="recruit"]) .button-primary {
  color: #122033;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
}

:where(html[data-page="index"], html[data-page="infinite"], html[data-page="recruit"]) .button-secondary {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.08);
}

/* index.html */

:where(html[data-page="index"]) .hero-proof {
  max-width: 520px;
  margin-top: 36px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  background: rgba(7,19,30,0.48);
  backdrop-filter: blur(10px);
}

:where(html[data-page="index"]) .hero-proof strong {
  display: block; font-size: 18px;
}

:where(html[data-page="index"]) .hero-proof span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

:where(html[data-page="index"]) .stats {
  position: relative;
  z-index: 2;
  margin-top: -44px;
}

:where(html[data-page="index"]) .stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--line);
  box-shadow: var(--shadow);
}

:where(html[data-page="index"]) .stat {
  padding: 28px 24px;
  background: #fff;
}

:where(html[data-page="index"]) .stat-en {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.2em;
}

:where(html[data-page="index"]) .stat strong {
  display: block;
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}

:where(html[data-page="index"]) .stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

/* infinite.html, recruit.html */

:where(html[data-page="infinite"], html[data-page="recruit"]) .lead-boxes {
  position: relative;
  z-index: 2;
  margin-top: -56px;
}

:where(html[data-page="infinite"], html[data-page="recruit"]) .lead-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--line);
  box-shadow: var(--shadow);
}

/* infinite.html */

:where(html[data-page="infinite"]) .lead-card {
  padding: 26px 24px; background: #fff;
}

:where(html[data-page="infinite"]) .lead-card strong {
  display: block;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.35;
}

:where(html[data-page="infinite"]) .lead-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* recruit.html */

:where(html[data-page="recruit"]) .lead-card {
  padding: 28px;
  background: #fff;
}

:where(html[data-page="recruit"]) .lead-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 20px;
}

:where(html[data-page="recruit"]) .lead-card span {
  color: var(--muted);
  font-size: 14px;
}

/* 全ページ共通 */

.section {
  padding: 88px 0;
}

.section-white {
  background: #fff;
}

/* infinite.html */

:where(html[data-page="infinite"]) .section-soft {
  background:
  linear-gradient(180deg, #fff 0%, #f4f6f8 100%);
}

/* recruit.html */

:where(html[data-page="recruit"]) .message-section {
  padding-bottom: 42px;
}

:where(html[data-page="recruit"]) .point-section {
  padding-top: 42px;
}

/* 全ページ共通 */

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 36px;
}

/* index.html, infinite.html, company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="index"], html[data-page="infinite"], html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .section-title {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

/* business-contact.html */

:where(html[data-page="business-contact"]) .nowrap {
  white-space: nowrap;
}

/* 全ページ共通 */

.section-sub {
  margin: 0 0 10px;
  color: var(--primary2);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 13px;
}

/* recruit.html */

:where(html[data-page="recruit"]) .section-title {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 42px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

/* index.html, recruit.html */

:where(html[data-page="index"], html[data-page="recruit"]) .section-desc {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* index.html */

:where(html[data-page="index"]) .strength-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

:where(html[data-page="index"]) .strength-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(24,39,54,0.08);
}

:where(html[data-page="index"]) .strength-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

:where(html[data-page="index"]) .strength-body {
  position: relative; padding: 28px;
}

:where(html[data-page="index"]) .strength-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-radius: 15px;
  font-weight: 800;
}

:where(html[data-page="index"]) .strength-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.5;
}

:where(html[data-page="index"]) .strength-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

:where(html[data-page="index"]) .services-bg {
  position: relative;
  color: #fff;
  background:
  linear-gradient(rgba(8,18,30,0.78), rgba(8,18,30,0.7)),
  url("../images/web/combined-lathe-machining-fixture.jpg") center/cover;
}

:where(html[data-page="index"]) .services-bg .section-sub {
  color: var(--accent);
}

:where(html[data-page="index"]) .services-bg .section-title {
  color: #fff;
}

:where(html[data-page="index"]) .services-bg .section-desc {
  color: rgba(255,255,255,0.82);
}

:where(html[data-page="index"]) .service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

:where(html[data-page="index"]) .service-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

:where(html[data-page="index"]) .service-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

:where(html[data-page="index"]) .photo-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

:where(html[data-page="index"]) .photo-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: #111827;
}

:where(html[data-page="index"]) .photo-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.5s ease;
}

:where(html[data-page="index"]) .photo-card:hover img {
  transform: scale(1.04);
}

:where(html[data-page="index"]) .photo-label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background: rgba(7,19,30,0.72);
  backdrop-filter: blur(10px);
}

:where(html[data-page="index"]) .photo-label strong {
  display: block; font-size: 18px;
}

:where(html[data-page="index"]) .photo-label span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}

:where(html[data-page="index"]) .quality {
  color: #fff;
  background:
  linear-gradient(rgba(17,24,39,0.88), rgba(17,24,39,0.88)),
  url("../images/web/factory-floor-machines-wide.jpg") center/cover;
}

:where(html[data-page="index"]) .quality .section-sub,
:where(html[data-page="index"]) .quality .section-desc {
  color: rgba(255,255,255,0.76);
}

:where(html[data-page="index"]) .quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

:where(html[data-page="index"]) .quality-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

:where(html[data-page="index"]) .quality-card h3 {
  margin: 0 0 10px; font-size: 20px;
}

:where(html[data-page="index"]) .quality-card p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}

/* infinite.html, company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="infinite"], html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .section-desc {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* infinite.html */

:where(html[data-page="infinite"]) .service-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
}

:where(html[data-page="infinite"]) .service-photo {
  overflow: hidden;
  border-radius: 26px;
  background: #dfe6ec;
  box-shadow: var(--shadow);
}

:where(html[data-page="infinite"]) .service-photo img {
  width: 100%;
  min-height: 430px;
  object-fit: contain;
  padding: 28px;
  background: #fff;
}

:where(html[data-page="infinite"]) .service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

:where(html[data-page="infinite"]) .service-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
  font-weight: 700;
}

:where(html[data-page="infinite"]) .service-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

:where(html[data-page="infinite"]) .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

:where(html[data-page="infinite"]) .product-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(24,39,54,0.08);
}

:where(html[data-page="infinite"]) .product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

:where(html[data-page="infinite"]) .product-body {
  padding: 28px;
}

:where(html[data-page="infinite"]) .product-tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 11px;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

:where(html[data-page="infinite"]) .product-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.45;
}

:where(html[data-page="infinite"]) .product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

:where(html[data-page="infinite"]) .machine-list {
  display: grid;
  gap: 28px;
}

:where(html[data-page="infinite"]) .machine-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(24,39,54,0.1);
}

:where(html[data-page="infinite"]) .machine-card:nth-child(even) {
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1fr);
}

:where(html[data-page="infinite"]) .machine-card:nth-child(even) .machine-media {
  order: -1;
}

:where(html[data-page="infinite"]) .machine-card h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.4;
}

:where(html[data-page="infinite"]) .machine-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

:where(html[data-page="infinite"]) .machine-media {
  display: grid;
  gap: 14px;
  align-items: center;
}

:where(html[data-page="infinite"]) .machine-main-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
  linear-gradient(135deg, rgba(15,61,94,0.06), rgba(214,168,79,0.06)),
  #fff;
}

:where(html[data-page="infinite"]) .machine-main-media::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 12px;
  border-radius: 50%;
  background: rgba(15,31,45,0.08);
  filter: blur(8px);
}

:where(html[data-page="infinite"]) .machine-photo {
  width: 100%;
  min-height: 300px;
  object-fit: contain;
  padding: 34px;
  position: relative;
  z-index: 1;
}

:where(html[data-page="infinite"]) .machine-photo-wide {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

:where(html[data-page="infinite"]) .feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 20px 0 0;
  padding: 18px;
  border-radius: 16px;
  background: #f7f9fb;
  color: #334155;
  font-size: 14px;
  list-style: none;
}

:where(html[data-page="infinite"]) .feature-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: 1px;
}

:where(html[data-page="infinite"]) .loom-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin-bottom: 28px;
  align-items: stretch;
}

:where(html[data-page="infinite"]) .loom-photo {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 26px;
  background: #111827;
  box-shadow: var(--shadow);
}

:where(html[data-page="infinite"]) .loom-photo img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.5s ease;
}

:where(html[data-page="infinite"]) .loom-photo:hover img {
  transform: scale(1.04);
}

:where(html[data-page="infinite"]) .loom-label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 18px;
  border-radius: 18px;
  color: #fff;
  background: rgba(7,19,30,0.74);
  backdrop-filter: blur(10px);
}

:where(html[data-page="infinite"]) .loom-label strong {
  display: block; font-size: 18px;
}

:where(html[data-page="infinite"]) .loom-label span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.74);
  font-size: 13px;
}

:where(html[data-page="infinite"]) .submachine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

:where(html[data-page="infinite"]) .submachine-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(24,39,54,0.08);
}

:where(html[data-page="infinite"]) .submachine-card img {
  width: 100%;
  height: 230px;
  object-fit: contain;
  padding: 24px;
  background:
  linear-gradient(135deg, rgba(15,61,94,0.05), rgba(214,168,79,0.05)),
  #fff;
  border-bottom: 1px solid var(--line);
}

:where(html[data-page="infinite"]) .submachine-card div {
  padding: 22px;
}

:where(html[data-page="infinite"]) .submachine-card h3 {
  margin: 0 0 8px; font-size: 18px;
}

:where(html[data-page="infinite"]) .submachine-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

:where(html[data-page="infinite"]) .auto-photo-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 32px;
}

:where(html[data-page="infinite"]) .auto-photo-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background: #111827;
}

:where(html[data-page="infinite"]) .auto-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  opacity: 0.88;
  transition: transform 0.5s ease;
}

:where(html[data-page="infinite"]) .auto-photo-card:hover img {
  transform: scale(1.04);
}

:where(html[data-page="infinite"]) .auto-photo-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px;
  border-radius: 16px;
  color: #fff;
  background: rgba(7,19,30,0.72);
  backdrop-filter: blur(10px);
}

:where(html[data-page="infinite"]) .auto-photo-label strong {
  display: block; font-size: 17px;
}

:where(html[data-page="infinite"]) .auto-photo-label span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}

:where(html[data-page="infinite"]) .feature {
  color: #fff;
  background:
  linear-gradient(rgba(17,24,39,0.88), rgba(17,24,39,0.88)),
  url("../images/web/factory-floor-machines-wide.jpg") center/cover;
}

:where(html[data-page="infinite"]) .feature .section-sub,
:where(html[data-page="infinite"]) .feature .section-desc {
  color: rgba(255,255,255,0.76);
}

:where(html[data-page="infinite"]) .feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

:where(html[data-page="infinite"]) .feature-card {
  padding: 26px 22px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

:where(html[data-page="infinite"]) .feature-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: #122033;
  background: #f3d28a;
  border-radius: 13px;
  font-weight: 800;
}

:where(html[data-page="infinite"]) .feature-card h3 {
  margin: 0 0 8px; font-size: 18px;
}

:where(html[data-page="infinite"]) .feature-card p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}

/* recruit.html */

:where(html[data-page="recruit"]) .message-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

:where(html[data-page="recruit"]) .message-layout > * {
  min-width: 0;
}

:where(html[data-page="recruit"]) .message-photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 1.16 / 1;
  min-height: 420px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: #dfe6ec;
}

:where(html[data-page="recruit"]) .message-photo-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

:where(html[data-page="recruit"]) .message-photo-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  object-fit: cover;
}

:where(html[data-page="recruit"]) .message-photo-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 999px;
  color: #fff;
  background: rgba(7,17,29,0.42);
  box-shadow: 0 12px 28px rgba(7,17,29,0.22);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font: inherit;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

:where(html[data-page="recruit"]) .message-photo-control:hover {
  background: rgba(7,17,29,0.62);
  transform: translateY(-50%) scale(1.04);
}

:where(html[data-page="recruit"]) .message-photo-control:disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

:where(html[data-page="recruit"]) .message-photo-control:focus-visible {
  outline: 3px solid rgba(255,255,255,0.84);
  outline-offset: 3px;
}

:where(html[data-page="recruit"]) .message-photo-control-prev {
  left: 16px;
}

:where(html[data-page="recruit"]) .message-photo-control-next {
  right: 16px;
}

:where(html[data-page="recruit"]) .message-photo-control span {
  display: block;
  margin-top: -2px;
  font-size: 34px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {

  /* recruit.html */

  :where(html[data-page="recruit"]) .message-photo-track {
    transition: none;
  }

}

/* recruit.html */

:where(html[data-page="recruit"]) .message-text h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.4;
}

:where(html[data-page="recruit"]) .message-text p {
  margin: 0 0 16px;
  color: var(--muted);
}

:where(html[data-page="recruit"]) .jobs-grid,
:where(html[data-page="recruit"]) .point-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

:where(html[data-page="recruit"]) .job-card,
:where(html[data-page="recruit"]) .point-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(24,39,54,0.08);
}

:where(html[data-page="recruit"]) .job-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

:where(html[data-page="recruit"]) .job-body,
:where(html[data-page="recruit"]) .point-card {
  padding: 28px;
}

:where(html[data-page="recruit"]) .job-body h3,
:where(html[data-page="recruit"]) .point-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.5;
}

:where(html[data-page="recruit"]) .job-body p,
:where(html[data-page="recruit"]) .point-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

:where(html[data-page="recruit"]) .job-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #435363;
  font-size: 14px;
}

:where(html[data-page="recruit"]) .job-list li {
  position: relative;
  padding-left: 18px;
}

:where(html[data-page="recruit"]) .job-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

:where(html[data-page="recruit"]) .point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  border-radius: 16px;
  font-weight: 800;
}

:where(html[data-page="recruit"]) .recruit-illustration {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
  linear-gradient(135deg, rgba(15,61,94,0.06), rgba(214,168,79,0.13)),
  #fff;
  box-shadow: 0 12px 34px rgba(24,39,54,0.07);
}

:where(html[data-page="recruit"]) .recruit-illustration strong {
  display: block;
  color: var(--primary);
  font-size: 20px;
  line-height: 1.45;
}

:where(html[data-page="recruit"]) .recruit-illustration span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

:where(html[data-page="recruit"]) .recruit-illustration-images {
  display: flex;
  align-items: center;
  gap: 14px;
}

:where(html[data-page="recruit"]) .recruit-illustration-images img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,0.74);
}

/* index.html, infinite.html, recruit.html */

:where(html[data-page="index"], html[data-page="infinite"], html[data-page="recruit"]) .flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

:where(html[data-page="index"], html[data-page="infinite"], html[data-page="recruit"]) .flow-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(24,39,54,0.08);
}

:where(html[data-page="index"], html[data-page="infinite"], html[data-page="recruit"]) .flow-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--primary);
  border-radius: 50%;
  font-weight: 800;
}

:where(html[data-page="index"], html[data-page="infinite"], html[data-page="recruit"]) .flow-card h3 {
  margin: 14px 0 0; font-size: 18px;
}

/* recruit.html */

:where(html[data-page="recruit"]) .nowrap-title {
  white-space: nowrap;
  font-size: clamp(14px, 4vw, 18px);
}

/* index.html, infinite.html, recruit.html */

:where(html[data-page="index"], html[data-page="infinite"], html[data-page="recruit"]) .flow-card p {
  margin: 16px 0 0; color: var(--muted); font-size: 14px;
}

/* company.html */

:where(html[data-page="company"]) .company-stack {
  display: grid;
  gap: 36px;
}

:where(html[data-page="company"]) .company-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

:where(html[data-page="company"]) .company-card-head {
  padding: 28px 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
}

:where(html[data-page="company"]) .company-card-head small {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

:where(html[data-page="company"]) .company-card-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

:where(html[data-page="company"]) .company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

:where(html[data-page="company"]) .company-table th,
:where(html[data-page="company"]) .company-table td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

:where(html[data-page="company"]) .company-table tr:last-child th,
:where(html[data-page="company"]) .company-table tr:last-child td {
  border-bottom: 0;
}

:where(html[data-page="company"]) .company-table th {
  width: 170px;
  color: var(--primary);
  background: #f4f7fa;
  font-weight: 800;
  white-space: nowrap;
}

:where(html[data-page="company"]) .company-table td {
  color: #243241;
}

:where(html[data-page="company"]) .company-table p {
  margin: 0;
}

:where(html[data-page="company"]) .company-table p + p {
  margin-top: 10px;
}

:where(html[data-page="company"]) .history-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(html[data-page="company"]) .history-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
}

:where(html[data-page="company"]) .history-list time {
  color: var(--primary);
  font-weight: 800;
}

:where(html[data-page="company"]) .client-list {
  margin: 0;
  padding-left: 1.1em;
}

:where(html[data-page="company"]) .client-list li + li {
  margin-top: 4px;
}

/* access.html */

:where(html[data-page="access"]) .access-intro {
  position: relative;
  margin-bottom: 32px;
  padding: 30px 34px 30px 96px;
  border: 1px solid rgba(214,168,79,0.45);
  border-left: 7px solid var(--accent);
  border-radius: 20px;
  background:
  linear-gradient(135deg, rgba(214,168,79,0.16), rgba(255,255,255,0.96) 42%),
  #fff;
  box-shadow: 0 18px 46px rgba(24,39,54,0.11);
}

:where(html[data-page="access"]) .access-intro::before {
  content: "!";
  position: absolute;
  left: 30px;
  top: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

:where(html[data-page="access"]) .access-intro p {
  margin: 0;
  color: #243241;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.9;
}

:where(html[data-page="access"]) .access-intro p + p {
  margin-top: 10px;
  color: #0f3d5e;
  font-size: 20px;
  font-weight: 900;
}

:where(html[data-page="access"]) .access-intro strong {
  color: #9a6814;
  background: linear-gradient(transparent 62%, rgba(214,168,79,0.32) 62%);
}

/* company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(24,39,54,0.08);
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-card-header {
  padding: 26px 28px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-card-header small {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-card-header h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-body {
  display: grid;
  gap: 16px;
  padding: 26px 28px 30px;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-row:last-child {
  border-bottom: 0; padding-bottom: 0;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-label {
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-value {
  color: #243241; font-weight: 700;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-value span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-value a {
  color: var(--primary2); text-decoration: underline; text-underline-offset: 3px;
}

/* company.html, business-contact.html, contact.html */

:where(html[data-page="company"], html[data-page="business-contact"], html[data-page="contact"]) .access-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: stretch;
}

:where(html[data-page="company"], html[data-page="business-contact"], html[data-page="contact"]) .office-list {
  display: grid;
  gap: 18px;
}

:where(html[data-page="company"], html[data-page="business-contact"], html[data-page="contact"]) .office-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24,39,54,0.07);
}

:where(html[data-page="company"], html[data-page="business-contact"], html[data-page="contact"]) .office-card img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

:where(html[data-page="company"], html[data-page="business-contact"], html[data-page="contact"]) .office-body {
  padding: 20px 20px 20px 0;
}

/* access.html */

:where(html[data-page="access"]) .access-layout {
  display: grid;
  gap: 28px;
}

:where(html[data-page="access"]) .office-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

:where(html[data-page="access"]) .office-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24,39,54,0.07);
}

:where(html[data-page="access"]) .office-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

:where(html[data-page="access"]) .office-body {
  padding: 20px;
}

/* company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .office-body h3 {
  margin: 0 0 8px; font-size: 19px;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .office-body h3 span {
  display: block;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .office-body p {
  margin: 0; color: var(--muted); font-size: 14px;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .office-body a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--primary2);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .map-panel {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* company.html, business-contact.html, contact.html */

:where(html[data-page="company"], html[data-page="business-contact"], html[data-page="contact"]) .map-panel iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

/* access.html */

:where(html[data-page="access"]) .map-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

:where(html[data-page="access"]) .map-panel iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
}

/* company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .map-caption {
  padding: 18px 22px;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
  border-top: 1px solid var(--line);
}

/* access.html */

:where(html[data-page="access"]) .parking-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(24,39,54,0.08);
}

:where(html[data-page="access"]) .parking-panel img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: contain;
  background: #f9fafb;
}

:where(html[data-page="access"]) .parking-caption {
  padding: 16px 22px;
  color: #243241;
  font-size: 15px;
  font-weight: 800;
  background: #fff;
  border-top: 1px solid var(--line);
}

/* company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .notice {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid #ead7a8;
  border-radius: 18px;
  color: #5a4414;
  background: #fff8e8;
  font-size: 14px;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) /* ── フォーム ── */
    .inquiry-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 48px;
  box-shadow: var(--shadow);
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-row {
  margin-bottom: 22px;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-row:last-child {
  margin-bottom: 0;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-required {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-optional {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-input,
:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-select,
:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-input:focus,
:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-select:focus,
:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-textarea:focus {
  outline: none;
  border-color: var(--primary2);
  box-shadow: 0 0 0 3px rgba(22,95,143,0.12);
  background: #fff;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-input.is-error,
:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-select.is-error,
:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-textarea.is-error {
  border-color: #e53e3e;
  background: #fff5f5;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-textarea {
  resize: vertical; min-height: 150px; line-height: 1.7;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-note.is-error {
  color: #e53e3e;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-radio-group {
  display: flex; gap: 20px; flex-wrap: wrap; padding-top: 4px;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 15px;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-radio input[type="radio"] {
  accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-divider {
  margin: 32px 0;
  border: none;
  border-top: 1px solid var(--line);
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-privacy {
  font-size: 13px; color: var(--muted);
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 38px;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15,61,94,0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .btn-submit:hover {
  transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15,61,94,0.3);
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .btn-submit:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-alert {
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 28px;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-alert-success {
  border: 1px solid #b7ebc7; background: #f0fff4; color: #1a6b3c;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-alert-error {
  border: 1px solid #fed7d7; background: #fff5f5; color: #c53030;
}

@media (max-width: 640px) {

  /* company.html, access.html, business-contact.html, contact.html */

  :where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .inquiry-form-card {
    padding: 28px 22px;
  }

  /* company.html, access.html */

  :where(html[data-page="company"], html[data-page="access"]) .form-grid-2 {
    grid-template-columns: 1fr;
  }

  /* business-contact.html, contact.html */

  :where(html[data-page="business-contact"], html[data-page="contact"]) .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  :where(html[data-page="business-contact"], html[data-page="contact"]) .form-row {
    margin-bottom: 18px;
  }

  :where(html[data-page="business-contact"], html[data-page="contact"]) .form-grid-2 .form-row:last-child {
    margin-bottom: 18px;
  }

  :where(html[data-page="business-contact"], html[data-page="contact"]) .form-label {
    margin-bottom: 7px;
  }

  :where(html[data-page="business-contact"], html[data-page="contact"]) .form-note {
    margin-top: 5px;
  }

  /* company.html, access.html, business-contact.html, contact.html */

  :where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .form-footer {
    flex-direction: column; align-items: stretch;
  }

  :where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .btn-submit {
    justify-content: center;
  }

}

/* recruit.html */

:where(html[data-page="recruit"]) .requirements {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

:where(html[data-page="recruit"]) .req-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--line);
}

:where(html[data-page="recruit"]) .req-row:last-child {
  border-bottom: none;
}

:where(html[data-page="recruit"]) .req-head {
  padding: 18px 22px;
  color: var(--primary);
  font-weight: 800;
  background: #f7f9fb;
}

:where(html[data-page="recruit"]) .req-body {
  padding: 18px 22px;
  color: #344250;
}

:where(html[data-page="recruit"]) .req-line {
  display: block;
  white-space: nowrap;
}

:where(html[data-page="recruit"]) .work-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

:where(html[data-page="recruit"]) .work-detail-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24,39,54,0.08);
}

:where(html[data-page="recruit"]) .work-detail-card h3 {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 22px;
  line-height: 1.45;
}

:where(html[data-page="recruit"]) .work-detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* 全ページ共通 */

.cta {
  padding: 80px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #081725);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* index.html */

:where(html[data-page="index"]) .cta h2,
:where(html[data-page="index"]) .cta h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.4;
}

:where(html[data-page="index"]) .cta-heading-nowrap {
  white-space: nowrap;
}

/* recruit.html */

:where(html[data-page="recruit"]) .cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  flex-shrink: 0;
}

/* infinite.html, company.html, recruit.html, access.html, business-contact.html, contact.html */

:where(html[data-page="infinite"], html[data-page="company"], html[data-page="recruit"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .cta h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.4;
}

/* business-contact.html, contact.html */

:where(html[data-page="business-contact"], html[data-page="contact"]) .controlled-heading-line {
  display: block;
  white-space: nowrap;
}

/* 全ページ共通 */

.cta p {
  margin: 12px 0 0; color: rgba(255,255,255,0.78);
}

/* index.html, infinite.html */

:where(html[data-page="index"], html[data-page="infinite"]) .cta-note {
  max-width: 560px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.08);
  font-size: 14px;
}

/* business-contact.html, contact.html */

:where(html[data-page="business-contact"], html[data-page="contact"]) .cta-contact {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  font-weight: 700;
}

:where(html[data-page="business-contact"], html[data-page="contact"]) .cta-contact-line {
  display: block;
  white-space: nowrap;
}

:where(html[data-page="business-contact"], html[data-page="contact"]) .cta-contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* company.html, access.html, business-contact.html, contact.html */

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .button:hover {
  transform: translateY(-2px);
}

:where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .button-primary {
  color: #122033;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
}

/* 全ページ共通 */

.site-footer {
  padding: 34px 0;
  color: rgba(255,255,255,0.68);
  background: #07111d;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex; gap: 20px;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1; transform: translateY(0);
}

@media (max-width: 1180px) {

  /* infinite.html, company.html, recruit.html, access.html, business-contact.html, contact.html */

  :where(html[data-page="infinite"], html[data-page="company"], html[data-page="recruit"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .header-inner {
    height: 64px;
  }

  :where(html[data-page="infinite"], html[data-page="company"], html[data-page="recruit"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .logo-wrap img {
    width: 176px; max-height: 42px;
  }

  :where(html[data-page="infinite"], html[data-page="company"], html[data-page="recruit"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .menu-button {
    display: block;
  }

  /* 全ページ共通 */

  body {
    padding-bottom: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    height: auto;
    border-bottom: 1px solid rgba(229,233,238,0.9);
    background: rgba(255,255,255,0.96);
  }

  .header-inner {
    height: 64px;
    overflow: visible;
  }

  .logo-wrap {
    display: inline-flex;
  }

  /* index.html */

  :where(html[data-page="index"]) .logo-wrap img {
    width: 176px;
    max-height: 42px;
  }

  :where(html[data-page="index"]) .logo-assemble {
    width: 176px;
    height: 42px;
  }

  :where(html[data-page="index"]) .logo-wrap .logo-assemble-piece {
    left: 12px;
    width: 152px;
    height: 42px;
  }

  /* 全ページ共通 */

  .header-inner > .menu-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 64px;
    height: 46px;
    border-color: var(--accent);
  }

  .header-inner > .menu-button span {
    width: 20px;
    height: 2px;
    margin: 2px auto;
  }

  .menu-button-text {
    color: var(--dark);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
  }

  .nav {
    display: none;
  }

  .mobile-menu-panel {
    position: fixed;
    left: auto;
    right: 16px;
    top: 76px;
    bottom: auto;
    z-index: 130;
    display: none;
    width: min(292px, calc(100vw - 32px));
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .mobile-menu-panel.is-open,
        .mobile-menu-panel.is-closing {
    display: grid;
  }

  .mobile-menu-panel.is-open {
    animation: mobile-menu-slide-in 0.26s cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }

  .mobile-menu-panel.is-closing {
    animation: mobile-menu-slide-out 0.14s ease-in both;
  }

  @keyframes mobile-menu-slide-in {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes mobile-menu-slide-out {
    to { opacity: 0; transform: translateY(-6px) scale(0.98); }
  }

  .mobile-menu-panel a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 14px;
    border-radius: 12px;
    background: #f7f9fb;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
    min-width: 0;
  }

  .mobile-menu-panel .nav-cta {
    justify-content: center;
    color: #fff;
    background: var(--primary);
  }

  .mobile-menu-panel a:nth-child(5) {
    grid-column: auto;
  }

  .mobile-menu-panel .mobile-contact-link {
    grid-column: auto;
  }

}

@media (max-width: 920px) {

  /* index.html */

  :where(html[data-page="index"]) .service-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* infinite.html */

  :where(html[data-page="infinite"]) .service-layout {
    grid-template-columns: 1fr;
  }

  /* index.html, infinite.html */

  :where(html[data-page="index"], html[data-page="infinite"]) .hero-inner {
    min-height: auto; padding: 56px 0 92px;
  }

  /* index.html */

  :where(html[data-page="index"]) .stats-inner,
  :where(html[data-page="index"]) .strength-grid,
  :where(html[data-page="index"]) .flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* infinite.html */

  :where(html[data-page="infinite"]) .lead-grid,
  :where(html[data-page="infinite"]) .product-grid,
  :where(html[data-page="infinite"]) .feature-grid,
  :where(html[data-page="infinite"]) .flow-grid,
  :where(html[data-page="infinite"]) .submachine-grid,
  :where(html[data-page="infinite"]) .auto-photo-band,
  :where(html[data-page="infinite"]) .loom-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  :where(html[data-page="infinite"]) .machine-card,
  :where(html[data-page="infinite"]) .machine-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  :where(html[data-page="infinite"]) .machine-card:nth-child(even) .machine-media {
    order: 0;
  }

  /* recruit.html */

  :where(html[data-page="recruit"]) .hero-inner {
    min-height: auto; padding: 70px 0 118px;
  }

  :where(html[data-page="recruit"]) .lead-grid,
  :where(html[data-page="recruit"]) .jobs-grid,
  :where(html[data-page="recruit"]) .point-grid,
  :where(html[data-page="recruit"]) .flow-grid,
  :where(html[data-page="recruit"]) .work-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  :where(html[data-page="recruit"]) .recruit-illustration {
    grid-template-columns: 1fr;
  }

  :where(html[data-page="recruit"]) .message-layout {
    grid-template-columns: 1fr;
  }

  /* 全ページ共通 */

  .section-head, .cta-inner, .footer-inner {
    display: block;
  }

  .section-desc {
    margin-top: 18px;
  }

  /* company.html, business-contact.html, contact.html */

  :where(html[data-page="company"], html[data-page="business-contact"], html[data-page="contact"]) .contact-grid,
  :where(html[data-page="company"], html[data-page="business-contact"], html[data-page="contact"]) .access-layout {
    grid-template-columns: 1fr;
  }

  /* recruit.html */

  :where(html[data-page="recruit"]) .cta-actions {
    align-items: flex-start; margin-top: 24px;
  }

  /* access.html */

  :where(html[data-page="access"]) .contact-grid,
  :where(html[data-page="access"]) .office-list,
  :where(html[data-page="access"]) .map-stack {
    grid-template-columns: 1fr;
  }

  /* 全ページ共通 */

  .cta .button {
    margin-top: 24px;
  }

  /* recruit.html */

  :where(html[data-page="recruit"]) .cta-actions .button {
    margin-top: 0;
  }

  /* 全ページ共通 */

  .footer-links {
    margin-top: 18px; flex-wrap: wrap;
  }

}

@media (max-width: 640px) {

  /* 全ページ共通 */

  .container {
    width: min(100% - 28px, 1120px);
  }

  /* infinite.html */

  :where(html[data-page="infinite"]) .hero {
    background:
    linear-gradient(90deg, rgba(7,19,30,0.94) 0%, rgba(7,19,30,0.78) 48%, rgba(7,19,30,0.48) 100%),
    url("../images/web/green-industrial-loom-01-02.jpg") center/cover;
  }

  /* index.html, infinite.html */

  :where(html[data-page="index"], html[data-page="infinite"]) .hero-inner {
    min-height: 320px; padding: 44px 0 76px;
  }

  /* index.html */

  :where(html[data-page="index"]) .hero h1 {
    font-size: clamp(24px, 8vw, 34px);
  }

  /* infinite.html */

  :where(html[data-page="infinite"]) .hero h1 {
    font-size: clamp(22px, 7.3vw, 34px);
  }

  /* index.html, infinite.html */

  :where(html[data-page="index"], html[data-page="infinite"]) .hero-lead {
    display: none;
  }

  /* index.html */

  :where(html[data-page="index"]) .hero-proof {
    margin-top: 28px;
  }

  :where(html[data-page="index"]) .strength-grid,
  :where(html[data-page="index"]) .photo-band {
    grid-template-columns: 1fr;
  }

  :where(html[data-page="index"]) .stats-inner,
  :where(html[data-page="index"]) .service-list,
  :where(html[data-page="index"]) .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :where(html[data-page="index"]) .stat {
    padding: 22px 16px;
  }

  :where(html[data-page="index"]) .stat strong {
    font-size: 20px;
  }

  :where(html[data-page="index"]) .service-list {
    gap: 10px;
  }

  :where(html[data-page="index"]) .service-item {
    padding: 18px 14px; font-size: 14px;
  }

  :where(html[data-page="index"]) .flow-grid {
    gap: 12px;
  }

  /* recruit.html */

  :where(html[data-page="recruit"]) .hero-inner {
    min-height: 390px; padding: 44px 0 72px;
  }

  :where(html[data-page="recruit"]) .message-text {
    display: none;
  }

  :where(html[data-page="recruit"]) .hero h1 {
    font-size: clamp(24px, 8.5vw, 34px);
  }

  :where(html[data-page="recruit"]) .message-text h2 {
    font-size: clamp(20.5px, 6.7vw, 29px);
  }

  :where(html[data-page="recruit"]) .cta h2 {
    font-size: clamp(18px, 6vw, 28px);
  }

  :where(html[data-page="recruit"]) .lead-grid,
  :where(html[data-page="recruit"]) .jobs-grid,
  :where(html[data-page="recruit"]) .point-grid,
  :where(html[data-page="recruit"]) .work-detail-grid {
    grid-template-columns: 1fr;
  }

  :where(html[data-page="recruit"]) .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  }

  /* index.html, recruit.html */

  :where(html[data-page="index"], html[data-page="recruit"]) .flow-card {
    padding: 22px 16px;
  }

  /* index.html */

  :where(html[data-page="index"]) .cta-heading-nowrap {
    font-size: clamp(17px, 5.7vw, 24px);
  }

  :where(html[data-page="index"]) .service-photo img {
    min-height: 260px;
  }

  /* infinite.html */

  :where(html[data-page="infinite"]) .strength-title,
  :where(html[data-page="infinite"]) .cta h2 {
    font-size: clamp(19px, 5.8vw, 28px);
  }

  :where(html[data-page="infinite"]) .lead-grid,
  :where(html[data-page="infinite"]) .service-list,
  :where(html[data-page="infinite"]) .product-grid,
  :where(html[data-page="infinite"]) .submachine-grid,
  :where(html[data-page="infinite"]) .auto-photo-band,
  :where(html[data-page="infinite"]) .loom-showcase {
    grid-template-columns: 1fr;
  }

  :where(html[data-page="infinite"]) .feature-grid,
  :where(html[data-page="infinite"]) .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  }

  :where(html[data-page="infinite"]) .feature-card,
  :where(html[data-page="infinite"]) .flow-card {
    padding: 22px 16px;
  }

  :where(html[data-page="infinite"]) .feature-list {
    grid-template-columns: 1fr;
  }

  /* company.html, access.html */

  :where(html[data-page="company"], html[data-page="access"]) .hero-inner {
    min-height: 320px; padding: 48px 0;
  }

  /* business-contact.html, contact.html */

  :where(html[data-page="business-contact"], html[data-page="contact"]) .hero-inner {
    min-height: 360px; padding: 44px 0;
  }

  /* company.html, access.html, business-contact.html, contact.html */

  :where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .hero h1 {
    font-size: 34px;
  }

  /* business-contact.html, contact.html */

  :where(html[data-page="business-contact"], html[data-page="contact"]) .form-title {
    font-size: clamp(18px, 6.2vw, 28px);
  }

  :where(html[data-page="business-contact"], html[data-page="contact"]) .cta h2 {
    font-size: clamp(16px, 5.2vw, 28px);
  }

  :where(html[data-page="business-contact"], html[data-page="contact"]) .cta-contact {
    font-size: clamp(12px, 3.8vw, 15px);
  }

  :where(html[data-page="business-contact"], html[data-page="contact"]) .cta-contact-line {
    font-size: clamp(8.5px, 2.75vw, 15px);
  }

  /* 全ページ共通 */

  .section {
    padding: 64px 0;
  }

  /* index.html, infinite.html */

  :where(html[data-page="index"], html[data-page="infinite"]) .service-photo img {
    min-height: 260px;
  }

}

@media (prefers-reduced-motion: reduce) {

  /* index.html */

  :where(html[data-page="index"]) .logo-wrap .logo-assemble-piece,
  :where(html[data-page="index"]) .logo-assemble.is-ready .logo-assemble-piece {
    opacity: 1;
    clip-path: var(--logo-to);
    transform: none;
    animation: none;
  }

  :where(html[data-page="index"]) .menu-button.menu-intro:not(.is-intro-complete) {
    border-color: var(--accent);
  }

  :where(html[data-page="index"]) .menu-button.menu-intro::after {
    display: none;
  }

  :where(html[data-page="index"]) .menu-button.menu-intro > span,
  :where(html[data-page="index"]) .menu-button.menu-intro .menu-button-text {
    opacity: 1 !important;
    animation: none !important;
  }

  :where(html[data-page="index"]) body.pc-nav-intro .nav > a {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    animation: none !important;
  }

  :where(html[data-page="index"]) body.pc-nav-intro .nav > a.active::after {
    animation: none !important;
  }

}

@media (max-width: 640px) {

  /* company.html */

  :where(html[data-page="company"]) .company-card-head {
    padding: 24px 22px;
  }

  :where(html[data-page="company"]) .company-table,
  :where(html[data-page="company"]) .company-table tbody,
  :where(html[data-page="company"]) .company-table tr,
  :where(html[data-page="company"]) .company-table th,
  :where(html[data-page="company"]) .company-table td {
    display: block;
    width: 100%;
  }

  :where(html[data-page="company"]) .company-table th {
    border-bottom: 0;
    padding: 14px 18px 6px;
  }

  :where(html[data-page="company"]) .company-table td {
    padding: 6px 18px 18px;
  }

  :where(html[data-page="company"]) .history-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  /* access.html */

  :where(html[data-page="access"]) .access-intro {
    padding: 24px 22px;
  }

  :where(html[data-page="access"]) .access-intro::before {
    position: static;
    margin-bottom: 12px;
  }

  :where(html[data-page="access"]) .access-intro p {
    font-size: 16px;
  }

  :where(html[data-page="access"]) .access-intro p + p {
    font-size: 18px;
  }

  /* company.html, access.html, business-contact.html, contact.html */

  :where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .contact-row {
    grid-template-columns: 1fr; gap: 4px;
  }

  /* company.html, business-contact.html, contact.html */

  :where(html[data-page="company"], html[data-page="business-contact"], html[data-page="contact"]) .office-card {
    grid-template-columns: 1fr;
  }

  /* company.html, access.html, business-contact.html, contact.html */

  :where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .office-card img {
    height: 190px;
  }

  /* company.html, business-contact.html, contact.html */

  :where(html[data-page="company"], html[data-page="business-contact"], html[data-page="contact"]) .office-body {
    padding: 20px;
  }

  /* company.html, access.html, business-contact.html, contact.html */

  :where(html[data-page="company"], html[data-page="access"], html[data-page="business-contact"], html[data-page="contact"]) .map-panel iframe {
    height: 420px;
  }

  /* recruit.html */

  :where(html[data-page="recruit"]) .message-section {
    padding-bottom: 34px;
  }

  :where(html[data-page="recruit"]) .point-section {
    padding-top: 34px;
  }

  :where(html[data-page="recruit"]) .message-photo {
    min-height: auto;
  }

  :where(html[data-page="recruit"]) .recruit-illustration {
    padding: 22px;
  }

  :where(html[data-page="recruit"]) .recruit-illustration-images img {
    width: 82px; height: 82px;
  }

  :where(html[data-page="recruit"]) .req-row {
    grid-template-columns: 1fr;
  }

  :where(html[data-page="recruit"]) .req-head {
    border-bottom: 1px solid var(--line);
  }

  :where(html[data-page="recruit"]) .req-head {
    padding: 16px 14px;
  }

  :where(html[data-page="recruit"]) .req-body {
    padding: 16px 14px;
    font-size: clamp(13px, 4vw, 15px);
    line-height: 1.8;
  }

  :where(html[data-page="recruit"]) .req-body-benefits {
    padding-right: 12px;
    padding-left: 12px;
    font-size: clamp(10.5px, 3.5vw, 15px);
  }

  /* access.html */

  :where(html[data-page="access"]) .parking-panel img {
    height: auto;
  }

}
