/* Modern CSS Reset and Variables */
:root {
  --primary-color: #004098; /* 東邦ブルー（現代的・信頼感） */
  --secondary-color: #f4f7f9; /* 薄いグレーベース */
  --navy: #002d6b; /* ヒーローセクション用ネイビー */
  --text-color: #333333;
  --bg-color: #ffffff;
  --font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* Header & Navigation (統一デザイン) */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.5rem;
}

.logo-link img {
  height: 60px;
  width: auto;
  margin-right: 15px;
}

.global-nav ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 8px 15px;
  justify-items: center;
}

.global-nav a {
  font-weight: bold;
  font-size: 0.85rem;
  color: #333;
  padding: 5px 0;
}

.global-nav a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

/* Page Hero Section */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Layout Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 20px;
  min-height: 60vh;
}

.content-inner {
  background: var(--bg-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 40px;
  border: 1px solid #eee;
}

/* Typography elements found in old body */
hr {
  border: none;
  border-top: 2px solid var(--primary-color);
  margin: 30px 0;
}

table {
  width: 100% !important;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 12px;
  border: 1px solid #ddd;
}

th {
  background-color: var(--secondary-color);
  color: var(--navy);
  font-weight: bold;
  text-align: left;
}

/* Footer */
.site-footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

.site-footer p {
  font-size: 14px;
  margin: 0;
}

/* Wiremesh Products Sub-navigation */
.wiremesh-subnav {
  margin-bottom: 40px;
}

.wiremesh-menu-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.wiremesh-menu-list li {
  margin-bottom: 5px;
}

.wiremesh-menu-list a {
  display: block;
  padding: 8px 15px;
  background: var(--secondary-color);
  color: var(--navy);
  border-radius: 4px 4px 0 0;
  font-weight: bold;
  font-size: 0.85rem;
  transition: background 0.3s, color 0.3s;
}

.wiremesh-menu-list a:hover,
.wiremesh-menu-list a.active {
  background: var(--primary-color);
  color: #fff;
}

.wiremesh-preview {
  text-align: center;
  margin-top: 20px;
}

.wiremesh-preview img {
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
  .global-nav ul {
    gap: 8px;
  }
  .global-nav a {
    font-size: 0.75rem;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .global-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  body.menu-open .global-nav {
    display: block;
  }

  .global-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
}

/* Manufacturing Process Page Styles */
.process-intro {
  text-align: center;
  margin-bottom: 50px;
  font-size: 1.1rem;
  color: #555;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px 30px; /* 縦の隙間を広げて円が重なりすぎないように調整 */
  margin-top: 60px; /* 上部に円がはみ出すための余白を確保 */
}

.process-card {
  background: #ffffff;
  padding: 35px 25px 25px;
  border-radius: 12px;
  border: 1px solid #eef2f6;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* overflow: hidden; を削除して円がはみ出せるようにする */
}

.process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary-color);
  border-radius: 12px 0 0 12px;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 64, 152, 0.1);
}

.process-card-step {
  position: absolute;
  top: -20px; /* 少し上にずらして強調 */
  left: 20px;
  background: var(--primary-color);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 64, 152, 0.4);
  z-index: 2;
}

.process-card h3 {
  color: var(--navy);
  margin-bottom: 15px;
  font-size: 1.25rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.process-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

.process-images-container {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px dashed #ddd;
}

.process-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.process-image-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.process-image-item:hover {
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.process-image-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.process-image-item:hover img {
  transform: scale(1.05);
}

.process-image-caption {
  padding: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--navy);
  border-top: 2px solid var(--secondary-color);
}
