/* ============================================
   アーカイブ株式会社 — Nordic Box UI
   ============================================ */

/* === Variables === */
:root {
  --bg: #E8E3DB;
  --box: #FFFFFF;
  --text: #2A2A2A;
  --text-muted: #6B6B6B;
  --accent: #3D6B84;
  --accent-dark: #2E5470;
  --accent-light: #EBF3F8;
  --border: #C4BEB6;
  --border-strong: #A09890;
  --radius: 0px;
  --max-w: 860px;
  --box-gap: 1.25rem;
  --font: 'Noto Sans JP', system-ui, sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
}

/* === Header / Nav === */
header {
  background: var(--box);
  border-bottom: 1.5px solid var(--border-strong);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.logo-svg {
  height: 18px;
  width: auto;
  fill: var(--text);
  display: block;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.35rem 1rem;
  border: 1.5px solid transparent;
  transition: all 0.15s;
  display: block;
}
.nav-links a:hover {
  color: var(--accent);
  border-color: var(--border);
  background: var(--bg);
}
.nav-links a.active {
  color: var(--accent);
  border-color: var(--border-strong);
  background: var(--accent-light);
}

/* スクロール時の影 */
header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: box-shadow 0.2s;
}

/* ハンバーガーボタン */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Main Wrapper === */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--box-gap) 1.25rem calc(var(--box-gap) * 3);
  display: flex;
  flex-direction: column;
  gap: var(--box-gap);
}

/* === Box (共通コンテナ) === */
.box {
  background: var(--box);
  border: 1.5px solid var(--border);
}

/* === Hero === */
.hero {
  background:
    linear-gradient(rgba(255,255,255,0.40), rgba(255,255,255,0.40)),
    url('../img/papers.webp') center / cover no-repeat;
  border: 1.5px solid var(--border);
  padding: 6rem 3.5rem;
  text-align: center;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Buttons === */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--box);
  padding: 0.75rem 2.25rem;
  border: 1.5px solid var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s;
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: 0.02em;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }
.btn:disabled { opacity: 0.4; cursor: default; }

/* === Section (ボックス内コンテンツ) === */
.section {
  background: var(--box);
  border: 1.5px solid var(--border);
  padding: 3.5rem;
}

/* === Section Label === */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

/* === Typography === */
h1 { font-size: 2.2rem; font-weight: 700; line-height: 1.4; }
h2 { font-size: 1.45rem; font-weight: 700; margin-bottom: 1.5rem; line-height: 1.4; }
h3 { font-size: 1.05rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); }

/* === Feature Cards === */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
  border: 1.5px solid var(--border);
}
.card {
  background: var(--box);
  padding: 2rem 1.75rem;
  border-right: 1.5px solid var(--border);
}
.card:last-child { border-right: none; }
.card-icon {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* === Service Feature (single service layout) === */
.service-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--border);
  margin-top: 2rem;
}
.service-feature-body {
  padding: 2.5rem;
  border-right: 1.5px solid var(--border);
}
.service-feature-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.4rem 0 1rem;
}
.service-feature-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.service-feature-list {
  padding: 2.5rem;
  background: var(--bg);
}
.service-feature-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-feature-list li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.7;
}
.service-feature-list li:last-child { border-bottom: none; }
.service-feature-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* service-feature 内リスト（左パネル用） */
.service-feature-ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.service-feature-ul li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.7;
}
.service-feature-ul li:last-child { border-bottom: none; }
.service-feature-ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* service-feature 右パネル：写真 */
.service-feature-img {
  overflow: hidden;
  min-height: 280px;
}
.service-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === Certification Badges === */
.cert-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 1.5rem 0 0;
  border: 1.5px solid var(--border);
}
.cert-badge {
  padding: 1.75rem 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.2s;
}
.cert-badge:first-child {
  border-right: 1.5px solid var(--border);
}
.cert-badge:hover {
  background: var(--accent-light);
}
.cert-logo--text {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  padding: 0.4rem 0;
}
.cert-desc {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0.25rem 0 0;
}

/* === QCD / CIA Cards === */
.qcd-block {
  margin: 1.75rem 0 0;
}
.qcd-block-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.qcd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
  gap: 0;
  border: 1.5px solid var(--border);
}
.qcd-card {
  padding: 1.75rem 1.25rem;
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}
.qcd-card:nth-child(3n) { border-right: none; }
.qcd-card:nth-last-child(-n+3) { border-bottom: none; }
.qcd-letter {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.qcd-word {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.qcd-desc {
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

/* === Quality & Security Cards === */
.quality-group {
  margin-top: 2.5rem;
}
.quality-group-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--border-strong);
  margin-bottom: 0;
}
.quality-group-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 1rem 0;
  margin-bottom: 0;
  line-height: 1.8;
}
.quality-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1.5px solid var(--border);
  margin-top: 1rem;
}
.quality-card {
  padding: 2rem 1.75rem;
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}
.quality-card:nth-child(2n) { border-right: none; }
.quality-card:nth-last-child(-n+2) { border-bottom: none; }
.quality-card .section-label { display: block; margin-bottom: 0.5rem; }
.quality-card h4 {
  margin: 0 0 0.75rem;
}
.quality-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}
.quality-card ul {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding-left: 1.25rem;
  margin: 0;
}
.quality-card li { margin-bottom: 0.3rem; }
.quality-card li:last-child { margin-bottom: 0; }

/* === President Message === */
.president-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--accent);
  margin-top: 2rem;
}
.president-photo-wrap {
  background: var(--bg);
  border-right: 1.5px solid var(--border);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.president-photo {
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.president-name {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.7;
  text-align: center;
  color: var(--text);
}
.president-message {
  padding: 2.5rem;
  background: var(--box);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.president-message p {
  font-size: 0.9rem;
  line-height: 1.95;
  color: var(--text);
  margin: 0;
}

/* === Voice (お客さまの声) === */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--accent);
  margin-top: 2rem;
}
.voice-card {
  background: var(--box);
  padding: 2rem 1.75rem;
  border-right: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.voice-card:last-child { border-right: none; }
.voice-industry {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.voice-quote {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text);
  flex: 1;
}
.voice-attr {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.voice-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* === CTA Section === */
.cta-section {
  background:
    linear-gradient(135deg, rgba(46,84,112,0.93) 0%, rgba(61,107,132,0.88) 100%),
    url('../img/papers.webp') center / cover no-repeat;
  color: var(--box);
  text-align: center;
  padding: 4rem 2rem;
}
.cta-section h2 { color: var(--box); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.cta-section .btn {
  background: var(--box);
  color: var(--accent);
  border-color: var(--box);
}
.cta-section .btn:hover { background: var(--accent-light); border-color: var(--accent-light); }

/* === Page Header === */
.page-header {
  background: var(--box);
  border: 1.5px solid var(--border);
  padding: 3.5rem;
}
.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem;
}
.page-header p { color: var(--text-muted); margin: 0; }

.page-header--img-contact {
  background:
    linear-gradient(rgba(255,255,255,0.45), rgba(255,255,255,0.45)),
    url('../img/bg_contact.webp') center / cover no-repeat;
  padding: 4.5rem 3.5rem;
}
.page-header--img-company {
  background:
    linear-gradient(rgba(255,255,255,0.45), rgba(255,255,255,0.45)),
    url('../img/bg_company.webp') center / cover no-repeat;
  padding: 4.5rem 3.5rem;
}
.page-header--img-privacy {
  background:
    linear-gradient(rgba(255,255,255,0.50), rgba(255,255,255,0.50)),
    url('../img/bg_privacy.webp') center / cover no-repeat;
  padding: 4.5rem 3.5rem;
}
.page-header--img-service {
  background:
    linear-gradient(rgba(255,255,255,0.45), rgba(255,255,255,0.45)),
    url('../img/bg_service.webp') center / cover no-repeat;
  padding: 4.5rem 3.5rem;
}

/* === Machine Gallery (◀▶ボタン付き横スクロール) === */
.machine-gallery-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.machine-gallery {
  flex: 1;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.machine-gallery::-webkit-scrollbar { display: none; }
.machine-nav {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  background: var(--box);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.machine-nav:hover { background: var(--accent-light); }
.machine-nav:disabled { opacity: 0.3; cursor: default; }
.machine-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--box);
  margin: 0;
}
.machine-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.machine-card figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  line-height: 1.4;
  text-align: center;
}

/* === Anchor Scroll Offset === */
#scanning, #faq, #cost, #quality, #flow, #tsuite {
  scroll-margin-top: 115px;
}

/* === In-page Nav === */
.page-nav {
  background: var(--box);
  border: 1.5px solid var(--border);
  border-top: none;
  position: sticky;
  top: 60px;
  z-index: 90;
}
.page-nav-inner {
  display: flex;
  overflow-x: auto;
}
.page-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.25rem;
  white-space: nowrap;
  transition: all 0.15s;
  border-right: 1.5px solid var(--border);
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
}
.page-nav a:last-child { border-right: none; }
.page-nav a:hover {
  color: var(--accent);
  background: var(--bg);
  border-bottom-color: var(--accent);
}
.page-nav a.active {
  color: var(--accent);
  background: var(--accent-light);
  border-bottom-color: var(--accent);
}

/* === Tables === */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border: 1.5px solid var(--border);
}
th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  vertical-align: top;
}
th:last-child, td:last-child { border-right: none; }
th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
  width: 30%;
  background: var(--bg);
}
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: none; }

/* === Lists === */
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* === Privacy Mark === */
.pmark-link {
  float: right;
  margin: 0.25rem 0 1.25rem 1.75rem;
  display: block;
  line-height: 0;
}
.pmark-link img {
  width: 100px;
  height: auto;
  display: block;
}

/* === Table Note === */
.table-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
}

/* === Highlight Box === */
.highlight-box {
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; line-height: 2; }
.highlight-box .btn { margin-top: 1.25rem; display: inline-block; }

/* === FAQ === */
.faq-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--border);
}
.faq-item {
  padding: 1.75rem 2rem;
  border-bottom: 1.5px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}
.faq-q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.faq-a {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0;
  padding-left: 1.5rem;
  position: relative;
}
.faq-a::before {
  content: 'A';
  position: absolute;
  left: 0;
  color: var(--text);
  font-weight: 700;
}

/* === Price Display === */
.price-display {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--box);
  border: 1.5px solid var(--border);
  margin: 1.5rem 0;
}
.price-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.price-unit {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* === Process Steps === */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 1.5rem 0;
  border: 1.5px solid var(--border);
}
.step {
  text-align: center;
  padding: 1.25rem 0.5rem;
  background: var(--box);
  border-right: 1px solid var(--border);
}
.step:last-child { border-right: none; }
.step-num {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.step-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}
.step-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.5;
}
.steps--6 { grid-template-columns: repeat(6, 1fr); }
.steps--accent-top { border-top: 3px solid var(--accent); }

/* === Form === */
.form-group { margin-bottom: 1.5rem; }
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--box);
  transition: border-color 0.15s;
  color: var(--text);
  border-radius: 0;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 160px; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

/* === Footer === */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-brand {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}
.footer-address { font-size: 0.85rem; }
.footer-address a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.footer-address a:hover {
  color: #fff;
  text-decoration-color: rgba(255,255,255,0.7);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.15);
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.15s;
}
.footer-links a:last-child { border-bottom: none; }
.footer-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.footer-copy {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  text-align: center;
}

/* === Stats Bar (実績数値バー) === */
.stats-bar {
  background: var(--text);
  border: 1.5px solid #1A1A1A;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  padding: 2.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.stat-value small {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  letter-spacing: 0.03em;
}

/* === Pain Grid (顧客の悩みセクション) === */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 2rem;
  border: 1.5px solid var(--border);
}
.pain-card {
  padding: 2.25rem 2rem;
  background: var(--box);
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}
.pain-card:nth-child(2n) { border-right: none; }
.pain-card:nth-child(3),
.pain-card:nth-child(4) { border-bottom: none; }
.pain-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}
.pain-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.5;
  color: var(--text);
}
.pain-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* === Cost Tiers === */
.cost-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--border);
  margin: 1rem 0 0.75rem;
}
.cost-tier {
  padding: 2rem 1.5rem;
  text-align: center;
  border-right: 1.5px solid var(--border);
}
.cost-tier:last-child { border-right: none; }
.cost-tier-size {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.cost-tier-vol {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.cost-tier-range {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1;
}

/* === Tag Grid === */
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  background: var(--bg);
  line-height: 1.5;
}

/* === News Cards === */
.news-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.news-card {
  background: var(--box);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem;
}
.news-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--accent-dark);
}
.news-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.news-card p:last-child { margin-bottom: 0; }

/* === スクロールアニメーション === */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Flow Steps === */
.flow-steps {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
}
.flow-step {
  display: flex;
  gap: 1.5rem;
  position: relative;
}
.flow-step:not(:last-child) .flow-left::after {
  content: '';
  display: block;
  width: 1.5px;
  background: var(--border);
  flex: 1;
  margin: 0.4rem auto 0;
}
.flow-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 2.5rem;
}
.flow-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.flow-body {
  flex: 1;
  padding: 0.25rem 0 2.5rem;
}
.flow-step:last-child .flow-body {
  padding-bottom: 0;
}
.flow-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  line-height: 1.5;
}
.flow-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.75;
}
.flow-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.7;
}
.flow-option-label {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
  margin-top: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .fade-up.is-visible { opacity: 1; transform: none; transition: none; }
}

/* === Accessibility === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* === Responsive === */
@media (max-width: 700px) {
  main { padding: 0.75rem 0.75rem 3rem; }
  .hero { padding: 3.5rem 1.75rem; }
  .hero h1 { font-size: 1.8rem; }
  .page-header h1 { font-size: 1.8rem; }
  .section { padding: 2.5rem 1.75rem; }
  table tr { display: block; border-bottom: 1.5px solid var(--border); }
  table th, table td { display: block; width: 100%; border-right: none; border-bottom: none; box-sizing: border-box; }
  table th { white-space: normal; padding-bottom: 0.25rem; }
  table td { padding-top: 0.25rem; }
  tbody tr:last-child { border-bottom: none; }
  .flow-option { flex-direction: column; gap: 0.4rem; }
  .page-header { padding: 2.5rem 1.75rem; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: none; border-bottom: 1.5px solid var(--border); }
  .card:last-child { border-bottom: none; }
  .voice-grid { grid-template-columns: 1fr; }
  .voice-card { border-right: none; border-bottom: 1.5px solid var(--border); }
  .voice-card:last-child { border-bottom: none; }
  .president-block { grid-template-columns: 1fr; }
  .president-photo-wrap { border-right: none; border-bottom: 1.5px solid var(--border); flex-direction: column; align-items: center; padding: 1.5rem; }
  .president-photo { width: 120px; height: 150px; }
  .president-message { padding: 1.75rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps--6 { grid-template-columns: repeat(2, 1fr); }
  .step { border-bottom: 1px solid var(--border); }
  .step:nth-child(2n) { border-right: none; }
  .step:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; }
  .footer-links { width: 100%; }
  .site-nav { padding: 0 1rem; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--box);
    border-bottom: 1.5px solid var(--border-strong);
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    z-index: 99;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 1rem; padding: 0.875rem 1.5rem; border: none; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  /* 数値バー */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
  .stat-value { font-size: 1.75rem; }
  /* 悩みグリッド */
  .pain-grid { grid-template-columns: 1fr; }
  .pain-card { border-right: none; border-bottom: 1.5px solid var(--border); }
  .pain-card:last-child { border-bottom: none; }
  .pain-card:nth-child(3) { border-bottom: 1.5px solid var(--border); }
  /* サービスフィーチャー */
  .cost-tiers { grid-template-columns: 1fr; }
  .cost-tier { border-right: none; border-bottom: 1.5px solid var(--border); }
  .cost-tier:last-child { border-bottom: none; }
  .service-feature { grid-template-columns: 1fr; }
  .service-feature-body { border-right: none; border-bottom: 1.5px solid var(--border); }
  .service-feature-img { display: none; }
  /* 認定バッジ */
  .cert-badges { grid-template-columns: 1fr; }
  .cert-badge:first-child { border-right: none; border-bottom: 1.5px solid var(--border); }
  /* QCDカード */
  .qcd-grid { grid-template-columns: 1fr; }
  .qcd-card { border-right: none; border-bottom: 1.5px solid var(--border); }
  .qcd-card:nth-last-child(-n+3) { border-bottom: 1.5px solid var(--border); }
  .qcd-card:last-child { border-bottom: none; }
  /* 品質・セキュリティカード */
  .quality-cards { grid-template-columns: 1fr; }
  .quality-card { border-right: none; border-bottom: 1.5px solid var(--border); }
  .quality-card:nth-last-child(-n+2) { border-bottom: 1.5px solid var(--border); }
  .quality-card:last-child { border-bottom: none; }
}
