/* ============ Mory Renewal - Design System ============ */
/* モリ工業株式会社 HP リニューアル試作 共通CSS — 採用サイト「ステンレスで夢をカタチに」のトーン継承 */
/* 東亜工機株式会社 HP リニューアル試作 共通CSS（マリンブルー基調） */

/* ===== Scroll-driven animations（対応ブラウザでスクロール連動フェードイン） ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@supports (animation-timeline: view()) {
  .section .section-head,
  .section .card-grid > *,
  .section .stat,
  .career-stat,
  .qa-item,
  .person-card,
  .role-block,
  .news-card,
  .iso-card,
  .society-card {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }
  .hero h1, .page-hero h1, .qa-hero h1 {
    animation: fadeInScale 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
}

/* ===== News Section ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.news-card {
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
  transition: all var(--transition);
}
.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.news-card .news-date {
  font-family: var(--font-en); font-weight: 700;
  font-size: 13px; color: var(--green);
  letter-spacing: 0.04em;
}
.news-card .news-tag {
  display: inline-block; padding: 2px 10px;
  background: var(--green-tint); color: var(--green-dark);
  border-radius: 4px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.05em; margin-left: 10px;
}
.news-card h4 {
  font-size: 15.5px; line-height: 1.6;
  margin: 10px 0 6px; color: var(--gray-900);
}
.news-card p {
  font-size: 13px; color: var(--gray-700); line-height: 1.7; margin: 0;
}

/* ===== Catalog Download Button ===== */
.catalog-dl {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px;
  background: var(--white);
  border: 2px solid var(--green);
  color: var(--green);
  border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}
.catalog-dl:hover {
  background: var(--green); color: #fff;
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.catalog-dl .icon-pdf {
  font-family: var(--font-en); font-weight: 900; font-size: 11px;
  background: var(--green); color: #fff;
  padding: 4px 8px; border-radius: 3px;
  letter-spacing: 0.04em;
}
.catalog-dl:hover .icon-pdf {
  background: var(--white); color: var(--green);
}

:root {
  /* Brand Colors — Hybrid Navy × Warm Orange（採用サイトのトーン継承） */
  --green: #1a3a6c;        /* ダークネイビー（メイン） */
  --green-dark: #0d2548;   /* 濃紺 */
  --green-light: #3a6094;  /* 明るめネイビー */
  --green-tint: #ebf0f8;   /* 淡いネイビー */
  --navy: #1a3a6c;
  --navy-dark: #0d2548;
  --gold: #e8843a;         /* ウォームオレンジ（採用サイトのアクセント） */
  --gold-light: #f8be8a;
  /* Neutrals */
  --black: #1a1a1a;
  --gray-900: #2c2c2c;
  --gray-700: #4a4a4a;
  --gray-500: #6b6b6b;
  --gray-300: #c8c8c8;
  --gray-100: #f4f4f4;
  --gray-50: #fafafa;
  --white: #ffffff;
  /* Semantic */
  --text: var(--gray-900);
  --text-light: var(--gray-500);
  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --border: var(--gray-300);
  /* Typography */
  --font-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  /* Layout */
  --max-width: 1280px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 10vw, 120px);
  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ============ Typography ============ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-jp);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--black);
}
h1 { font-size: clamp(28px, 4.5vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.5vw, 36px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }
h4 { font-size: clamp(16px, 2vw, 18px); }
.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: inline-block;
}
.lead {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-light);
  line-height: 1.85;
  max-width: 640px;
}
.num-display {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green);
}

/* ============ Layout ============ */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--black); color: var(--gray-100); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: var(--white); }
.section.green { background: var(--green); color: var(--white); }
.section.green h1, .section.green h2, .section.green h3 { color: var(--white); }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { margin-bottom: 12px; }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--black);
}
.brand-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  color: var(--white);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 16px;
}
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name .ja { font-weight: 700; font-size: 16px; }
.brand-name .en { font-family: var(--font-en); font-size: 11px; color: var(--gray-500); letter-spacing: 0.1em; }
.nav-list {
  display: flex; gap: 28px; align-items: center;
}
.nav-list a {
  color: var(--gray-700); font-size: 14px; font-weight: 500;
  position: relative; padding: 6px 0;
}
.nav-list a:hover, .nav-list a.active { color: var(--green); }
.nav-list a.active::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--green);
}
.nav-cta {
  background: var(--green); color: var(--white);
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
}
.nav-cta:hover { background: var(--green-dark); color: var(--white); }
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--gray-700); transition: all var(--transition);
}
.menu-toggle span:nth-child(1) { top: 12px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 26px; }
@media (max-width: 1024px) {
  .nav-list { display: none; }
  .menu-toggle { display: block; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: var(--white);
}
.btn-primary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-ghost {
  background: transparent; color: var(--gray-700);
}
.btn-ghost:hover { color: var(--green); }
.btn-arrow::after { content: "→"; transition: transform var(--transition); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, rgba(14,110,62,0.85), rgba(26,77,128,0.85)),
              url('https://images.unsplash.com/photo-1565043589221-1a6fd9ae45c7?auto=format&fit=crop&w=1600&q=80') center/cover;
  color: var(--white);
  padding: clamp(80px, 12vw, 140px) 0;
}
.hero h1 { color: var(--white); font-size: clamp(32px, 5.5vw, 60px); margin-bottom: 24px; }
.hero h1 .en { display: block; font-family: var(--font-en); font-weight: 700; font-size: 0.55em; opacity: 0.85; margin-top: 12px; letter-spacing: 0.02em; }
.hero-sub { color: rgba(255,255,255,0.92); font-size: clamp(15px, 1.7vw, 18px); max-width: 640px; margin-bottom: 36px; }
.hero-meta { font-family: var(--font-en); font-size: 13px; opacity: 0.7; margin-top: 40px; letter-spacing: 0.1em; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--navy-dark));
  color: var(--white);
  padding: clamp(80px, 10vw, 120px) 0 clamp(40px, 6vw, 64px);
}
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: rgba(255,255,255,0.9); }
.page-hero .eyebrow { color: var(--gold-light); }
.breadcrumb {
  font-size: 13px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-en);
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ============ Numbers / Stats ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-top: 32px;
}
.stat {
  padding: clamp(24px, 4vw, 40px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.stat .num-display { color: var(--green); font-size: clamp(32px, 5vw, 52px); }
.stat .label { font-size: 13px; color: var(--gray-700); margin-top: 8px; font-weight: 600; }
.stat .label-en { font-family: var(--font-en); font-size: 11px; color: var(--gray-500); margin-top: 2px; letter-spacing: 0.05em; }
@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Cards ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) {
  .card-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid, .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--green); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card .card-img {
  aspect-ratio: 16/9;
  background: var(--gray-100) center/cover;
  position: relative;
}
.card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card .card-eyebrow {
  font-family: var(--font-en); font-size: 11px; font-weight: 600;
  color: var(--green); letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.card h3 { margin-bottom: 12px; font-size: 18px; }
.card .card-desc { font-size: 14px; color: var(--text-light); flex: 1; line-height: 1.7; }
.card .card-link {
  margin-top: 16px;
  font-size: 13px; font-weight: 600;
  color: var(--green);
  display: inline-flex; align-items: center; gap: 6px;
}
.card .card-link::after { content: "→"; transition: transform var(--transition); }
.card:hover .card-link::after { transform: translateX(4px); }

/* ============ Lists ============ */
.feature-list { display: grid; gap: 16px; }
.feature-list li {
  padding: 20px 24px;
  background: var(--bg-alt);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
}
.feature-list li strong { color: var(--black); display: block; margin-bottom: 4px; }

/* ============ Tables ============ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th, .data-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th { background: var(--bg-alt); font-weight: 600; color: var(--gray-700); }
.data-table tr:hover { background: var(--green-tint); }
.data-table .num { font-family: var(--font-en); font-weight: 600; }

/* ============ Footer ============ */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-top .brand-name .ja { color: var(--white); }
.footer-top h4 {
  color: var(--white); font-size: 14px;
  font-family: var(--font-en); letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.footer-top ul li { margin-bottom: 10px; }
.footer-top a { color: rgba(255,255,255,0.7); font-size: 13px; }
.footer-top a:hover { color: var(--green-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 12px; color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em; flex-wrap: wrap; gap: 12px;
}
.cert-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.cert-badge {
  padding: 4px 10px; font-family: var(--font-en);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 2px;
  font-size: 10px; color: rgba(255,255,255,0.6); letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ Utility ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 768px) { .split { grid-template-columns: 1fr; } }
.text-center { text-align: center; }
.mt-sm { margin-top: 16px; } .mt-md { margin-top: 32px; } .mt-lg { margin-top: 64px; }
.mb-sm { margin-bottom: 16px; } .mb-md { margin-bottom: 32px; } .mb-lg { margin-bottom: 64px; }
.text-green { color: var(--green); }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.6s ease-out; }
