/* ==========================================================================
   株式会社マルトシ機工 — 伝わる看板デモ
   王道コーポレート × モダン × 重厚な信頼感（製造業B2B）
   主役: ディープネイビー #13314F / 差し色: machined-brass #B5853A（局所のみ）
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #FFFFFF;
  --surface: #F4F6F8;
  --surface-alt: #ECEFF3;
  --ink: #1F2933;
  --ink-subtle: #5A6B7B;
  --accent: #B5853A;
  --accent-dark: #8E6526;
  --line: #D9E0E7;
  --navy: #13314F;
  --navy-dark: #0E263D;
  --navy-tint: #E7ECF2;
  --brass-tint: #F3EADA;
  --ink-on-navy: #F4F6F8;
  --subtle-on-navy: #A9BACB;
  --success: #2F7D5B;
  --focus: #3D6B96;

  --font-head: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur-base: 240ms;
  --dur-slow: 480ms;

  --r-card: 6px;
  --r-button: 4px;
  --r-input: 4px;
  --r-image: 8px;
  --r-pill: 999px;

  --shadow-card: 0 1px 2px rgba(19, 49, 79, 0.06);
  --shadow-card-hover: 0 10px 28px rgba(19, 49, 79, 0.12);
  --shadow-header: 0 1px 0 rgba(19, 49, 79, 0.08);

  --container: 1180px;
  --gutter: 32px;
  --header-h: 80px;
  --header-h-shrunk: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-shrunk) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.95;
  letter-spacing: 0.02em;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 9vw, 128px);
}

.section--surface {
  background: var(--surface);
}

.measure {
  max-width: 760px;
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.en-label {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.en-label--on-navy {
  color: var(--subtle-on-navy);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--navy);
  margin-top: 12px;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 20px;
  background: var(--accent);
  border-radius: 999px;
}

.section-head--center .section-title::after {
  margin-inline: auto;
}

.section-lead {
  margin-top: 20px;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.95;
  color: var(--ink-subtle);
  max-width: 720px;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: var(--r-button);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.btn .btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn--primary {
  background: var(--accent-dark);
  color: #fff;
}

.btn--primary:hover {
  background: #6f4e1e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn--on-navy {
  background: transparent;
  color: var(--ink-on-navy);
  border-color: rgba(244, 246, 248, 0.4);
}

.btn--on-navy:hover {
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  transition: height var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled {
  height: var(--header-h-shrunk);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  transition: transform var(--dur-base) var(--ease-out);
}

.is-scrolled .brand {
  transform: scale(0.94);
  transform-origin: left center;
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.brand-en {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  color: var(--ink-subtle);
  text-transform: uppercase;
}

.global-nav {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav a.nav-link {
  position: relative;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding-block: 6px;
  white-space: nowrap;
}

.global-nav a.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--dur-fast) var(--ease-out);
}

.global-nav a.nav-link:hover::after {
  width: 100%;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--navy);
  white-space: nowrap;
}

.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.header-cta {
  white-space: nowrap;
}

/* モバイルメニュー内専用 CTA。デスクトップでは header-meta 側の CTA を使うため隠す */
.nav-mobile-cta {
  display: none;
}

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out),
    opacity var(--dur-base) var(--ease-out);
}

body.nav-open .nav-toggle .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle .bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(560px, 86vh, 760px);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1);
  animation: heroKenBurns 16s var(--ease-out) forwards;
}

@keyframes heroKenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(14, 38, 61, 0.92) 0%,
    rgba(19, 49, 79, 0.72) 46%,
    rgba(19, 49, 79, 0.32) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(48px, 9vw, 96px);
}

.hero-eyebrow {
  display: block;
  max-width: 640px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--subtle-on-navy);
  padding-inline-start: 16px;
  border-inline-start: 2px solid var(--accent);
}

.hero-since {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.hero h1 {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
  color: #fff;
}

.hero-lead {
  margin-top: 28px;
  max-width: 600px;
  font-size: clamp(0.95rem, 1.4vw, 1.075rem);
  line-height: 1.95;
  color: var(--ink-on-navy);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-tagline {
  position: absolute;
  z-index: 2;
  inset-block-end: 28px;
  inset-inline-end: var(--gutter);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: rgba(169, 186, 203, 0.7);
}

/* ==========================================================================
   Strength cards
   ========================================================================== */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.strength-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 36px 30px 40px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.strength-card::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--dur-base) var(--ease-out);
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.strength-card:hover::after {
  width: 100%;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-card);
  background: var(--navy-tint);
  color: var(--navy);
  margin-bottom: 22px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.strength-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 14px;
}

.strength-card p {
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Business
   ========================================================================== */
.biz-group + .biz-group {
  margin-top: clamp(56px, 7vw, 80px);
}

.biz-group-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.biz-group-head .group-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.biz-group-head h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--navy);
  line-height: 1.4;
}

.biz-group-lead {
  flex-basis: 100%;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--ink-subtle);
  max-width: 760px;
}

.biz-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, 1fr);
}

.biz-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.biz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.biz-card::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--dur-base) var(--ease-out);
  z-index: 2;
}

.biz-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.biz-card:hover::after {
  width: 100%;
}

.biz-card-media {
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  overflow: hidden;
}

.biz-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.biz-card:hover .biz-card-media img {
  transform: scale(1.05);
}

.biz-card-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.biz-card.is-textonly .biz-card-body {
  padding-top: 28px;
}

.biz-card-body h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--navy);
}

.biz-card-body p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--ink-subtle);
}

/* SALES 横並びカード（画像左・本文右・取扱メーカー/品目枠） */
.biz-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.biz-row {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.biz-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.biz-row-media {
  flex: 0 0 220px;
  background: var(--surface-alt);
  overflow: hidden;
}

.biz-row-media img {
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.biz-row:hover .biz-row-media img {
  transform: scale(1.05);
}

.biz-row-body {
  flex: 1;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.biz-row-body h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--navy);
}

.biz-row-body p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--ink-subtle);
}

.biz-makers {
  margin-top: auto;
  background: var(--surface);
  border-radius: var(--r-input);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.biz-makers-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-subtle);
}

.biz-makers-list {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--ink);
}

/* ==========================================================================
   Monozukuri (feature split)
   ========================================================================== */
.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.feature-media {
  border-radius: var(--r-image);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-headline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.feature-body {
  margin-top: 22px;
  font-size: 0.98rem;
  line-height: 1.95;
  color: var(--ink);
}

.feature-points {
  margin-top: 32px;
  display: grid;
  gap: 18px;
}

.feature-point {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-point .point-mark {
  margin-top: 4px;
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex: none;
}

.feature-point h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.feature-point p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--ink-subtle);
}

/* ==========================================================================
   History (navy band + timeline)
   ========================================================================== */
.history {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--ink-on-navy);
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.history-headline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.55;
  color: #fff;
}

.history-body {
  margin-top: 22px;
  font-size: 0.96rem;
  line-height: 1.95;
  color: var(--ink-on-navy);
  max-width: 560px;
}

.history-years {
  margin-top: 40px;
}

.years-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 9vw, 5.4rem);
  line-height: 1;
  color: #fff;
  letter-spacing: 0.01em;
  display: inline-block;
  position: relative;
}

.years-number .unit {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin-inline-start: 10px;
  color: var(--subtle-on-navy);
}

.years-number::after {
  content: "";
  display: block;
  width: 88px;
  height: 4px;
  margin-top: 18px;
  background: var(--accent);
  border-radius: 999px;
}

.years-caption {
  margin-top: 18px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--subtle-on-navy);
}

.history-media {
  margin-top: 32px;
  border-radius: var(--r-image);
  overflow: hidden;
  border: 1px solid rgba(169, 186, 203, 0.25);
  aspect-ratio: 16 / 9;
  background: var(--navy-dark);
}

.history-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.timeline {
  position: relative;
  padding-inline-start: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-block: 6px 6px;
  inset-inline-start: 6px;
  width: 2px;
  background: rgba(169, 186, 203, 0.35);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: -28px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--navy-dark);
  border: 3px solid var(--accent);
}

.timeline-year {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: #fff;
}

.timeline-year .year-sub {
  display: inline-block;
  margin-inline-start: 10px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--subtle-on-navy);
}

.timeline-item h4 {
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.timeline-item p {
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-on-navy);
  max-width: 520px;
}

/* ==========================================================================
   Company table
   ========================================================================== */
.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  text-align: start;
  vertical-align: top;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  line-height: 1.85;
}

.company-table th {
  width: 132px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  white-space: nowrap;
}

.company-table td {
  font-size: 0.95rem;
  color: var(--ink);
}

.company-media {
  border-radius: var(--r-image);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  position: sticky;
  top: calc(var(--header-h-shrunk) + 24px);
}

.company-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-mapnote {
  margin-top: 16px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--ink-subtle);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--surface);
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 56px);
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.channel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.channel-card .card-icon {
  margin-bottom: 16px;
}

.channel-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}

.channel-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--navy);
  word-break: break-word;
}

a.channel-value:hover {
  color: var(--accent-dark);
}

.channel-note {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--ink-subtle);
}

/* LINE を応募の主導線として強調するフィーチャーカード */
.channel-card--line {
  border: 1.5px solid var(--accent);
  background: var(--brass-tint);
  position: relative;
}

.channel-badge {
  position: absolute;
  inset-block-start: -11px;
  inset-inline-end: 18px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.channel-cta {
  margin-top: auto;
  width: 100%;
}

/* ---------- Form ---------- */
.contact-form-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink);
}

.form-field .req {
  display: inline-block;
  margin-inline-start: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.04em;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  transition: border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.8;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--focus);
  background: #fff;
}

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-subtle);
  text-align: center;
}

.form-status {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--success);
  text-align: center;
  min-height: 1.4em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.disclaimer {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
}

.disclaimer .container {
  padding-block: 28px;
}

.disclaimer p {
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--ink-subtle);
  max-width: 920px;
}

.disclaimer strong {
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--ink-on-navy);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: clamp(48px, 6vw, 72px);
}

.footer-brand .footer-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.footer-brand .footer-en {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  color: var(--subtle-on-navy);
}

.footer-brand address {
  margin-top: 20px;
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-on-navy);
}

.footer-brand .footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
}

.footer-brand .footer-phone svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav a {
  position: relative;
  display: inline-block;
  font-size: 0.92rem;
  color: var(--ink-on-navy);
  width: fit-content;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -2px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--dur-fast) var(--ease-out);
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid rgba(169, 186, 203, 0.22);
  padding-block: 22px;
}

.footer-copy {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--subtle-on-navy);
}

/* ==========================================================================
   Recruit teaser band (index トップ → 採用ページ誘導)
   ========================================================================== */
.recruit-teaser {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--ink-on-navy);
}

.recruit-teaser-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(40px, 6vw, 64px);
}

.recruit-teaser-headline {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  line-height: 1.5;
  color: #fff;
}

.recruit-teaser-body {
  margin-top: 16px;
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--ink-on-navy);
  max-width: 640px;
}

.recruit-teaser-action {
  flex: none;
}

/* ==========================================================================
   Recruit hero tweak (採用ページ・トップより少し低め)
   ========================================================================== */
.hero--recruit {
  min-height: clamp(480px, 72vh, 640px);
}

/* ==========================================================================
   Recruit: 働く環境のスタッツ
   ========================================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px 26px 34px;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.stat-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.stat-value--text {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.stat-value::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 14px;
  background: var(--accent);
  border-radius: 999px;
}

.stat-label {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ink-subtle);
}

.stat-note {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--ink-subtle);
  text-align: center;
}

/* ==========================================================================
   Recruit: 仕事内容の締めコメント
   ========================================================================== */
.work-closing {
  margin-top: clamp(28px, 4vw, 40px);
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-subtle);
  max-width: 760px;
}

/* ==========================================================================
   Recruit: 募集要項テーブル
   ========================================================================== */
.requirements-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow-card);
}

.requirements-table th {
  width: 148px;
}

.requirements-table tr:last-child th,
.requirements-table tr:last-child td {
  border-bottom: none;
}

.req-timestamp {
  display: inline-block;
  margin-inline-start: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  white-space: nowrap;
}

.req-note {
  margin-top: 18px;
  text-align: start;
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .biz-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 20px;
  }

  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-card-hover);
    padding: 12px 20px 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--dur-base) var(--ease-out),
      opacity var(--dur-base) var(--ease-out);
  }

  .is-scrolled .global-nav {
    inset-block-start: var(--header-h-shrunk);
  }

  body.nav-open .global-nav {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .global-nav a.nav-link {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .global-nav a.nav-link::after {
    display: none;
  }

  .nav-mobile-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 16px;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .header-meta {
    display: none;
  }

  .card-grid--3,
  .contact-channels,
  .biz-grid,
  .biz-grid--3 {
    grid-template-columns: 1fr;
  }

  .biz-row {
    flex-direction: column;
  }

  .biz-row-media {
    flex-basis: auto;
    aspect-ratio: 16 / 9;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recruit-teaser-inner {
    grid-template-columns: 1fr;
  }

  .feature-split,
  .history-grid,
  .company-layout {
    grid-template-columns: 1fr;
  }

  .feature-split .feature-media {
    order: -1;
  }

  .company-media {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-tagline {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }
}

@media (max-width: 480px) {
  .strength-card,
  .channel-card,
  .stat-card {
    padding-inline: 22px;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }

  .hero-media img {
    animation: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 150ms linear;
  }

  .strength-card:hover,
  .biz-card:hover,
  .channel-card:hover,
  .btn:hover {
    transform: none;
  }

  .biz-card:hover .biz-card-media img {
    transform: none;
  }
}
