/* ============================================================
   style.css — 江戸川鍛工株式会社 共通スタイル
   ============================================================ */

:root {
  --corp:     #330099;   /* 強調文字・ボーダーアクセント */
  --navy:     #3a3060;   /* ベース紫紺（ヘッダー・フッター・信頼バー） */
  --navy-mid: #5a4a8a;   /* ミディアム紫（ヒーロー右側） */
  --heat:     #e85d00;   /* 熱・鍛造アクセント（炉のオレンジ） */
  --heat-mid: #ff9130;   /* 明るい熱色（ハイライト） */
  --red:      #d84c3f;   /* 予備 */
  --gold:     #e8a000;   /* CTAボタン・黄色 */
  --text:     #222;
  --text-sub: #555;
  --border:   #e0e4e8;
  --bg-alt:   #f3f6f8;
  --white:    #fff;
}

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

.container {
  width: min(1000px, 90%);
  margin: 0 auto;
}

/* ===== ドロップダウンナビ ===== */
.header-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  flex-wrap: nowrap;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-top {
  display: block;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  background: none;
  border: none;
  font-family: inherit;
  line-height: 1.8;
}

.nav-item > a:hover,
.nav-top:hover {
  background: #f0f3f5;
  color: var(--navy);
}

.nav-top::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.6;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--corp);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 200;
  padding-top: 4px;
}

/* ナビとドロップダウンの隙間を透明な橋で埋める */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 8px;
  background: transparent;
}

/* PC：ホバーで開く（min-width メディアクエリ内に移動済み） */

.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  white-space: nowrap;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s, color 0.1s;
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  background: var(--bg-alt);
  color: var(--corp);
}

/* ===== ヘッダー（上書き） ===== */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--corp);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  flex-wrap: nowrap;
}

.header-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-logo-main {
  font-size: 15px;
  font-weight: bold;
  color: var(--navy);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header-logo-sub {
  font-size: 10px;
  color: #888;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-style: italic;
}



  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-tel {
  text-decoration: none;
  color: var(--navy);
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header-tel:hover {
  color: var(--corp);
}

.header-cta {
  display: inline-block;
  background: var(--gold);
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s;
}

.header-cta:hover {
  background: var(--corp);
  color: var(--white);
}

/* ===== ヒーロー（アニメーション背景・トップページ用） ===== */
@keyframes heroZoom {
  0%   { transform: scale(1)    translate(0, 0); }
  50%  { transform: scale(1.08) translate(-1%, 1%); }
  100% { transform: scale(1)    translate(0, 0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero.hero-grid {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: #1a1020;
}

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

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: heroZoom 14s ease-in-out infinite;
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 100px 0 90px;
  max-width: 680px;
  animation: heroFadeIn 1s ease both;
}

.hero-content .company-name {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

.hero-content .company-name strong {
  font-size: 18px;
  color: var(--white);
}

.hero-content h1 {
  font-size: 30px;
  line-height: 1.45;
  margin: 0 0 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-content p {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255,255,255,0.88);
  margin: 0 0 8px;
}

.hero-content .cta {
  margin-top: 36px;
}

.hero-content .cta a:last-child {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
}

/* ===== ヒーロー（サブページ用） ===== */
.hero.hero-sub {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 280px;
  display: flex;
  align-items: center;
  color: var(--white);
  background: #1a1020;
}

.hero-sub .hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-sub .hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: heroZoom 14s ease-in-out infinite;
  will-change: transform;
}

.hero-sub .hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(25, 8, 45, 0.88) 0%,
    rgba(50, 18, 70, 0.78) 50%,
    rgba(60, 22, 10, 0.72) 100%
  );
}

.hero-sub .container {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
  animation: heroFadeIn 0.8s ease both;
}

.hero-sub .hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-sub .hero-text { flex: 1.2; }
.hero-sub .hero-image { flex: 1; }

.hero-sub .hero-image img {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.hero-sub h1 {
  font-size: 30px;
  line-height: 1.4;
  margin: 0 0 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-sub p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.88);
  margin: 0;
}

.company-name {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

.company-name strong {
  font-size: 18px;
  color: var(--white);
}

.company-sub {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.4;
  margin: 0 0 20px;
}

.hero p {
  font-size: 17px;
  margin: 0 0 8px;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
}


/* ===== CTAボタン ===== */
.cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.cta a {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s, transform 0.2s;
}

.cta a:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.cta a:first-child {
  background: var(--gold);
  color: #222;
}

.hero-grid .cta a:last-child {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
}

/* ===== 信頼性バー ===== */
.trust-bar {
  background: #3a3060;
  color: var(--white);
  padding: 16px 0;
  position: relative;
  z-index: 2;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 13px;
  padding: 6px 20px;
  white-space: nowrap;
}

.trust-num {
  font-size: 20px;
  font-weight: bold;
  color: #f0c040;
  margin-right: 2px;
}

.trust-em {
  font-weight: bold;
  color: #f0c040;
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.trust-eco {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-eco img {
  height: 32px;
  width: auto;
}

/* ===== セクション ===== */
.section {
  background: var(--white);
  margin: 0;
  padding: 72px 0;
  position: relative;
  z-index: 0;
}

.section-alt {
  background: var(--bg-alt);
  padding: 72px 0;
  position: relative;
  z-index: 0;
}

.section h2 {
  font-size: 30px;
  margin: 0 0 20px;
  color: var(--corp);
}

.section p {
  font-size: 17px;
  margin: 0 0 16px;
}

.section-intro {
  font-size: 16px;
  color: var(--text-sub);
  margin: 0 0 28px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.14em;
  color: var(--corp);
  text-transform: uppercase;
  border-bottom: 2px solid var(--corp);
  padding-bottom: 3px;
  margin-bottom: 10px;
}

/* ===== 2カラム ===== */
.two-column {
  display: flex;
  gap: 40px;
  align-items: center;
}

.two-column .text { flex: 1; }
.two-column .image { flex: 1; }

.two-column img {
  width: 100%;
  border-radius: 8px;
}

.caption {
  font-size: 13px;
  color: #888;
  margin-top: 6px;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--corp);
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
}

.text-link:hover {
  text-decoration: underline;
}

.section-cta {
  margin-top: 24px;
  text-align: right;
}

/* ===== ご挨拶 ===== */
.greeting-name {
  font-weight: bold;
  color: var(--navy);
  margin-top: 16px;
  font-size: 15px;
}

/* ===== 強み ===== */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.feature-box {
  background: var(--white);
  border-left: 5px solid var(--corp);
  padding: 24px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-box h3 {
  margin-top: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--navy);
}

.feature-box p {
  margin: 0;
  font-size: 15px;
  color: var(--text-sub);
}

/* ===== 製造フロー ===== */
.flow-image {
  margin-top: 24px;
  text-align: center;
}

.flow-image img {
  max-width: 100%;
  height: auto;
}

/* ===== ギャラリー ===== */
.gallery-subtitle {
  font-size: 17px;
  font-weight: bold;
  color: var(--navy);
  border-left: 4px solid var(--corp);
  padding-left: 12px;
  margin: 32px 0 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  background: var(--bg-alt);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--white);
  padding: 12px;
  box-sizing: border-box;
}

.gallery-item p {
  font-size: 12px;
  color: var(--text-sub);
  margin: 6px 0 10px;
  padding: 0 8px;
}

/* ===== リスト ===== */
.list {
  padding-left: 20px;
  font-size: 17px;
}

.list li {
  margin-bottom: 8px;
}

/* ===== 設備 ===== */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.equipment-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--corp);
  border-radius: 6px;
  padding: 22px 18px;
}

.equipment-name {
  font-size: 20px;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 6px;
}

.equipment-spec {
  font-size: 15px;
  color: var(--corp);
  font-weight: bold;
  margin-bottom: 6px;
}

.equipment-maker {
  font-size: 12px;
  color: #999;
}

.equip-photos {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  align-items: flex-start;
}

.equip-photos img {
  width: calc(50% - 8px);
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.equipment-box--tbd {
  opacity: 0.6;
  border-top-color: #aaa;
  border-style: dashed;
}

.equipment-box--tbd .equipment-spec {
  color: #999;
  font-weight: normal;
}

/* ===== アクセス ===== */
.access-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.access-table th,
.access-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.access-table th {
  width: 100px;
  color: var(--navy);
  font-weight: bold;
  white-space: nowrap;
}

.access-table td a {
  color: var(--corp);
  text-decoration: none;
}

.access-table td a:hover {
  text-decoration: underline;
}

.access-map {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ===== 製品グリッド ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.product-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
}

.product-item img {
  width: 100%;
  height: auto;
  display: block;
  background: #f5f5f5;
  padding: 16px;
  box-sizing: border-box;
}

.product-name {
  font-size: 13px;
  font-weight: bold;
  color: var(--navy);
  padding: 8px 8px 2px;
}

.product-weight {
  font-size: 12px;
  color: var(--text-sub);
  padding: 0 8px 4px;
}

.product-note {
  font-size: 11px;
  color: var(--corp);
  padding: 0 8px 8px;
}

/* 大型ワーク：グリッド2列分を占有 */
.product-item--large {
  grid-column: span 2;
}

.product-item--large img {
  max-height: 260px;
  width: 100%;
  height: auto;
  object-fit: contain;
  padding: 20px;
  box-sizing: border-box;
  background: #f5f5f5;
}

/* ===== 製造工程フロー ===== */
.process-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
}

.process-step {
  background: var(--white);
  border: 2px solid var(--corp);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: bold;
  color: var(--corp);
  text-align: center;
  line-height: 1.4;
}

.process-step small {
  display: block;
  font-size: 10px;
  font-weight: normal;
  color: var(--text-sub);
  margin-top: 2px;
}

.process-step--main {
  background: var(--corp);
  color: var(--white);
}

.process-step--main small {
  color: rgba(255,255,255,0.8);
}

.process-arrow {
  color: var(--corp);
  font-size: 16px;
  font-weight: bold;
}

/* ===== 利点リスト ===== */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 16px 20px;
}

.benefit-num {
  font-size: 24px;
  font-weight: bold;
  color: var(--corp);
  line-height: 1;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.benefit-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  padding-top: 2px;
}

/* ===== 工程写真 ===== */
.process-photos {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.process-photo-item {
  flex: 1;
  text-align: center;
}

.process-photo-item img {
  width: 100%;
  border-radius: 6px;
}

.process-photo-item p {
  font-size: 13px;
  color: var(--text-sub);
  margin: 6px 0 0;
}

.equip-photo-full {
  margin-top: 16px;
}

.equip-photo-full img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* ===== 採用：社員写真グリッド ===== */
.staff-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.staff-photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  display: block;
}

@media (max-width: 640px) {
  .staff-photos {
    grid-template-columns: 1fr;
  }
}

/* ===== 社員写真グリッド ===== */
.staff-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.staff-photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  display: block;
}

@media (max-width: 768px) {
  .staff-photos {
    grid-template-columns: 1fr;
  }
}

/* ===== 摩擦圧接工程グリッド ===== */
.fw-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.fw-process-item {
  text-align: center;
}

.fw-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--corp);
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 8px;
}

.fw-process-label {
  font-size: 14px;
  font-weight: bold;
  color: var(--corp);
  margin-bottom: 8px;
}

.fw-process-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  margin-bottom: 8px;
  display: block;
}

.fw-process-item p {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 768px) {
  .fw-process-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .fw-process-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 設備テーブル ===== */
.equip-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 15px;
}

.equip-table th,
.equip-table td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.equip-table thead th {
  background: var(--corp);
  color: var(--white);
  font-weight: bold;
}

.equip-table tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

/* ===== 小見出し ===== */
.sub-heading {
  font-size: 16px;
  color: var(--navy);
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--corp);
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-flow {
    gap: 4px;
  }

  .process-step {
    padding: 8px 10px;
    font-size: 12px;
  }

  .process-photos {
    flex-direction: column;
  }
}

/* ===== サイトフッター ===== */
.site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* ===== 企業理念 ===== */
.philosophy-hero {
  text-align: center;
  padding: 48px 0 32px;
}

.philosophy-tagline {
  font-size: 36px;
  font-weight: bold;
  color: var(--corp);
  letter-spacing: 0.08em;
  margin: 0;
  line-height: 1.4;
}

.mgmt-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.mgmt-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--white);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mgmt-num {
  font-size: 28px;
  font-weight: bold;
  color: var(--corp);
  line-height: 1;
  flex-shrink: 0;
  width: 32px;
  text-align: center;
}

.mgmt-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  padding-top: 4px;
}

.greeting-body {
  max-width: 720px;
}

.greeting-body p {
  font-size: 16px;
  line-height: 2;
  margin: 0 0 16px;
}

.greeting-sign {
  text-align: right;
  font-weight: bold;
  color: var(--navy);
  margin-top: 32px !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
}

@media (max-width: 768px) {
  .philosophy-tagline {
    font-size: 24px;
  }

  .mgmt-item {
    padding: 16px;
  }
}

/* ===== 事業内容グリッド ===== */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.business-box {
  background: var(--bg-alt);
  border-top: 4px solid var(--corp);
  border-radius: 6px;
  padding: 24px 20px;
}

.business-box h3 {
  font-size: 17px;
  color: var(--corp);
  margin: 0 0 12px;
}

.business-box p {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .business-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 会社概要テーブル ===== */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.company-table th,
.company-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 140px;
  color: var(--corp);
  font-weight: bold;
  white-space: nowrap;
  background: #f8f6ff;
}

.company-table td a {
  color: var(--corp);
  text-decoration: none;
}

.company-table td a:hover {
  text-decoration: underline;
}

.company-en {
  font-size: 13px;
  color: var(--text-sub);
}

.cert-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cert-logo {
  height: 48px;
  width: auto;
}

/* ===== 沿革タイムライン ===== */
.timeline {
  position: relative;
  margin-top: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 148px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  position: relative;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-year {
  width: 140px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: bold;
  color: var(--corp);
  padding-right: 16px;
  text-align: right;
  line-height: 1.5;
}

.timeline-year span {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
  font-weight: normal;
}

.timeline-dot {
  width: 18px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.timeline-dot::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--white);
  flex-shrink: 0;
}

.timeline-item--highlight .timeline-dot::before {
  background: var(--corp);
}

.timeline-item--highlight .timeline-year {
  color: var(--corp);
}

.timeline-content {
  flex: 1;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text);
}

.timeline-item--highlight .timeline-content {
  font-weight: bold;
}

.timeline-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 72px;
  }

  .timeline-year {
    width: 64px;
    font-size: 11px;
    padding-right: 8px;
  }

  .timeline-content {
    padding-left: 12px;
    font-size: 14px;
  }

  .timeline-content p {
    font-size: 14px;
  }
}

/* ===== フッター ===== */
.footer-contact {
  background: #3a3060;
  color: var(--white);
  padding: 56px 0;
  position: relative;
  z-index: 1;
}

.footer-contact h2 {
  font-size: 28px;
  margin: 0 0 16px;
  color: var(--white);
}

.footer-contact p {
  font-size: 16px;
  margin: 0 0 24px;
  color: rgba(255,255,255,0.85);
}

.footer-contact a.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gold);
  color: #222;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-contact a.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 4px;
  }

  .header-nav a {
    font-size: 12px;
    padding: 5px 8px;
  }

  .hero,
  .hero-grid {
    padding: 48px 0 40px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-grid .hero-inner,
  .hero-sub .hero-inner {
    display: flex;
    flex-direction: column;
  }

  .hero-image {
    display: none;
  }

  /* モバイルでオーバーレイをさらに濃くして文字を読みやすく */
  .hero-bg-overlay {
    background: rgba(20, 5, 35, 0.88);
  }

  .hero.hero-grid {
    min-height: 420px;
  }

  .hero-content {
    padding: 60px 0 52px;
  }

  .hero-content h1 {
    font-size: 22px;
  }

  .section h2 {
    font-size: 24px;
  }

  .features,
  .equipment-grid {
    grid-template-columns: 1fr;
  }

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

  .two-column {
    flex-direction: column;
  }

  .equip-photos {
    flex-direction: column;
  }

  .equip-photos img {
    width: 100%;
  }

  .trust-inner {
    flex-direction: column;
    gap: 6px;
  }

  .trust-divider {
    display: none;
  }

  .footer-contact h2 {
    font-size: 22px;
  }
}

/* ===== お問い合わせフォーム ===== */
.contact-tel-box {
  background: var(--bg-alt);
  border-left: 5px solid var(--corp);
  border-radius: 0 8px 8px 0;
  padding: 24px 32px;
  margin: 24px 0 0;
  display: inline-block;
}

.contact-tel-label {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.contact-tel-num {
  display: block;
  font-size: 32px;
  font-weight: bold;
  color: var(--corp);
  text-decoration: none;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.contact-tel-hours {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
}

.inquiry-form {
  max-width: 680px;
  margin-top: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-required {
  display: inline-block;
  background: var(--corp);
  color: #fff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--corp);
  box-shadow: 0 0 0 3px rgba(51,0,153,0.08);
}

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

.form-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 4px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  cursor: pointer;
}

.form-radio input {
  accent-color: var(--corp);
  width: 16px;
  height: 16px;
}

.form-submit {
  margin-top: 32px;
}

.form-btn {
  display: inline-block;
  background: var(--gold);
  color: #222;
  border: none;
  padding: 14px 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.form-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-tel-num {
    font-size: 24px;
  }
  .form-radio-group {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== 先輩の声 ===== */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.voice-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.voice-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e8e4f0;
}

.voice-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e4f0, #d0c8e8);
  color: #a090c0;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.voice-body {
  padding: 20px;
}

.voice-profile {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.voice-name {
  font-size: 16px;
  font-weight: bold;
  color: var(--corp);
}

.voice-role {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.voice-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
}

.voice-note {
  font-size: 12px;
  color: #aaa;
  margin-top: 20px;
  text-align: right;
}

/* ===== プライバシーポリシー ===== */
.privacy-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 40px;
}

.privacy-title {
  font-size: 15px;
  color: var(--navy);
  margin: 0 0 12px;
}

.privacy-box p {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0 0 8px;
  line-height: 1.7;
}

.privacy-box p:last-child {
  margin: 0;
}

.privacy-list {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
  padding-left: 20px;
  margin: 8px 0 12px;
}

.privacy-list li {
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  .voice-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== エコアクション21 ===== */
.eco-logo-wrap {
  text-align: center;
}

.eco-logo {
  width: auto;
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

/* ============================================================
   ② 熱カラーアクセント — 鍛造・摩擦圧接の「炎・火花」を表現
   ============================================================ */

/* ヒーローオーバーレイに熱色を混ぜる */
.hero-bg-overlay {
  background: linear-gradient(
    120deg,
    rgba(25, 8, 45, 0.90) 0%,
    rgba(50, 18, 70, 0.80) 45%,
    rgba(60, 22, 10, 0.75) 100%
  );
}

/* セクションラベルを熱色に */
.section-label {
  color: var(--heat);
  border-bottom-color: var(--heat);
}

/* セクション見出しのアンダーライン装飾 */
.section h2 {
  position: relative;
  display: block;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2em;
  height: 3px;
  background: linear-gradient(90deg, var(--heat), var(--heat-mid));
  border-radius: 2px;
}


/* 強みボックスの左ボーダーを熱色に */
.feature-box {
  border-left-color: var(--heat);
}

/* ギャラリー小見出しを熱色に */
.gallery-subtitle {
  border-left-color: var(--heat);
  color: var(--navy);
}

/* 設備カード上ボーダーを熱色に */
.equipment-box {
  border-top-color: var(--heat);
}

/* テキストリンクを熱色に */
.text-link {
  color: var(--heat);
}

.text-link:hover {
  color: var(--heat-mid);
}

/* アクセステーブルのリンクを熱色に */
.access-table td a {
  color: var(--heat);
}

/* 会社テーブルのリンク */
.company-table td a {
  color: var(--heat);
}

/* 信頼性バーの強調テキストを熱色に */
.trust-em {
  color: var(--heat-mid);
}

.trust-num {
  color: var(--heat-mid);
}

/* ナビホバー時に熱色 */
.nav-dropdown a:hover {
  color: var(--heat);
}

.header-tel:hover {
  color: var(--heat);
}

/* フッターお問い合わせボタンを熱色グラデに */
.footer-contact a.btn {
  background: linear-gradient(135deg, var(--heat) 0%, var(--gold) 100%);
  color: #fff;
}

.footer-contact a.btn:hover {
  background: linear-gradient(135deg, var(--heat-mid) 0%, var(--gold) 100%);
}

/* CTAボタン（技術相談）を熱グラデに */
.hero-content .cta a:first-child,
.cta a:first-child {
  background: linear-gradient(135deg, var(--heat) 0%, var(--gold) 100%);
  color: #fff;
}

/* 企業理念の数字を熱色に */
.mgmt-num {
  color: var(--heat);
}

/* 利点番号を熱色に */
.benefit-num {
  color: var(--heat);
}

/* フォーム必須バッジを熱色に */
.form-required {
  background: var(--heat);
}

/* ヒーロー右端に熱のグロー光彩 */
.hero.hero-grid .hero-content::before {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(232, 93, 0, 0.18) 0%,
    rgba(232, 93, 0, 0.06) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
}

/* ===== スマホ ドロップダウン（タップ対応） ===== */
@media (max-width: 768px) {
  .nav-dropdown {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-top: 2px solid var(--heat);
    border-radius: 0;
    background: #f8f6ff;
    min-width: 0;
  }

  .nav-item.is-open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* PCでは従来のhoverを維持 */
@media (min-width: 769px) {
  .nav-item:hover .nav-dropdown {
    display: block;
  }
}

/* ===== お問い合わせページではヘッダーボタンを非表示 ===== */
.page-inquiry .header-cta {
  display: none;
}

/* ===== 採用 職場の様子ギャラリー ===== */
.workplace-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 0;
}

.workplace-photo {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.workplace-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.workplace-photo:hover img {
  transform: scale(1.04);
}

.workplace-photo .caption {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  text-align: center;
  padding: 8px;
  margin: 0;
}

@media (max-width: 768px) {
  .workplace-gallery {
    grid-template-columns: 1fr;
  }
}

/* 先輩の声 5枚対応 */
.voice-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== ハンバーガーメニュー ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== スマホ用電話ボタン ===== */
.sp-tel-bar {
  display: none;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .header-inner {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
  }

  .header-logo {
    flex: 1;
  }

  .header-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 8px 0;
    gap: 0;
  }

  .header-nav.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-top,
  .nav-item > a {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    box-sizing: border-box;
  }

  .nav-top::after {
    float: right;
    margin-top: 2px;
  }

  .nav-dropdown {
    position: static;
    border: none;
    border-top: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: var(--bg-alt);
  }

  .nav-item.is-open .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 12px 28px;
    font-size: 14px;
    border-bottom: 1px solid #e8e8e8;
  }

  .header-contact {
    display: none;
  }

  /* スマホ用電話ボタンバー */
  .sp-tel-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: 56px;
  }

  .sp-tel-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.03em;
  }

  .sp-tel-bar .sp-tel {
    background: var(--navy);
    color: #fff;
  }

  .sp-tel-bar .sp-inquiry {
    background: var(--gold);
    color: #222;
  }

  /* 固定フッターバーの分、ページ下に余白を追加 */
  body {
    padding-bottom: 56px;
  }
}
