/* =========================================================
   METS ELECTRON – Unified Light Theme Stylesheet
   ---------------------------------------------------------
   • 白＋コーポレートブルー基調
   • すべてのページで同一ナビ/フッター/カード表現
   • ダーク背景を撤廃（表/フロー/ギャラリー/カード）
   ========================================================= */

/* -------------------------
   共通使用
------------------------- */

/* スマホだけ改行（共通） */
.br-sp {
  display: none;
}

@media (max-width: 768px) {
  .br-sp {
    display: inline;
  }
}


/* -------------------------
   CSS Variables
------------------------- */
:root{
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #333333;
  --muted: #666666;
  --brand: #007bff;     /* ブルー */
  --brand-2: #0056b3;   /* ブルー濃色 */
  --line: #e3e9f2;      /* 枠線の薄グレー */
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,.05);
  --news-accent: #d32f2f; /* お知らせ：赤アクセント */
}

/* -------------------------
   Base
------------------------- */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}
a{color: #003366; text-decoration: none;}
a:hover{ text-decoration: underline; }
img{max-width:100%; height:auto; display:block;}
.container{ width: min(1120px, 92vw); margin-inline: auto; }
h1,h2,h3{ line-height:1.35; margin: 0 0 .6em; }

/* -------------------------
   Header / Global Nav
------------------------- */
.site-header, .sub-header{
  position: sticky; top: 0; z-index: 20;
  background: #ffffff;                     /* 白ヘッダー */
  border-bottom: 1px solid #e0e3ea;
  backdrop-filter: none;                   /* ぼかし無効 */
}
.header-inner{
  display:grid; grid-template-columns:auto auto 1fr; gap:12px;
  align-items:center; padding: 14px 0;
}
.logo{ font-weight:800; letter-spacing:.06em; color:#003366; }
.logo-img{ height:80px; width:auto; display:block; }
.nav{ }
.nav ul{ display:flex; gap:18px; list-style:none; margin:0; padding:0; }
.nav a{ padding:10px 12px; border-radius: 6px; color:#003366; }
.nav .current a, .nav a:hover{ background:#e6f0ff; border-radius:6px; color:#000; }
.tel{ margin:0; color:#003366; font-size:.95rem; }
.nav-toggle{ display:none; }

/* Responsive nav */
@media (max-width: 900px){
  .logo-img{ height:46px; }
  .nav-toggle{
    display:inline-grid; place-items:center;
    width:44px; height:44px; border:1px solid var(--line);
    background:#fff; color:#003366; border-radius:10px;
  }
  .header-inner{ grid-template-columns:auto auto 1fr; }
  .nav{ display:none; }
  .nav.open{ display:block; }
  .nav ul{ flex-direction:column; gap:0; }
  .nav a{ display:block; padding:12px; border-radius:0; border-top:1px solid var(--line); }
  .tel{ display:none; }
}

/* -------------------------
   Hero (画像そのまま表示)
------------------------- */
.hero{ text-align:center; background:#ffffff; padding:0; margin:0; }
.hero-img{
  width:100%; max-width:960px; height:auto;
  margin:0 auto; box-shadow:0 2px 6px rgba(0,0,0,0.15);
  border-bottom:1px solid #e0e0e0;
}

/* -------------------------
   Sections / Utilities
------------------------- */
.section-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.more[aria-disabled="true"]{ opacity:.6; pointer-events:none; }

/* 太めのセクション区切り（必要ページで <hr class="section-hr"> を使用） */
.section-hr{
  margin: 28px 0 16px; border:0; height:8px;
  background:
    linear-gradient(90deg, #007bff, #3da0ff) left/180px 4px no-repeat,
    linear-gradient(#e8edf5, #e8edf5) left/100% 1px no-repeat;
  border-radius:4px;
}

/* -------------------------
   Cards / Grids
------------------------- */
.card-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:16px; }
.card{
  background:#f8f9fc; color:#333;
  border:1px solid #dde3ee; border-radius:10px;
  padding:20px; box-shadow: var(--shadow);
}

/* -------------------------
   Tables (仕様表)
------------------------- */
.table-wrap{
  overflow-x:auto; background:#fff;
  border:1px solid var(--line); border-radius: var(--radius);
}
.table-wrap table{ width:100%; border-collapse:collapse; }
.table-wrap th, .table-wrap td{
  padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:top;
}
.table-wrap thead th{ background:#f1f4fb; text-align:left; color:#333; }
.table-wrap tbody th{ width:220px; text-align:left; color:#333; }

/* -------------------------
   Flow (工程フロー)
------------------------- */
.flow{ counter-reset:step; list-style:none; padding:0; margin:24px 0 48px; display:grid; gap:18px; }
.flow>li{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding:20px; box-shadow: var(--shadow); position:relative;
}
.flow>li::before{
  counter-increment: step; content: counter(step);
  position:absolute; inset:12px auto auto 12px;
  width:36px; height:36px; display:grid; place-items:center;
  border-radius:50%; background: var(--brand); color:#fff; font-weight:700;
}

/* ===============================
   Gallery 3枚並び（事業概要）
   =============================== */
.gallery-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 最小300pxで可変3列 */
  gap: 16px;
  margin-top: 20px;
}

.gallery-3 figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #e3e9f2;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;  /* 縦横比を統一（例：4:3） */
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-3 figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.gallery-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* 枠内にきれいにトリミング */
  display: block;
  transition: transform 0.4s ease;
}

.gallery-3 figure:hover img {
  transform: scale(1.04); /* ホバーで少し拡大 */
}

/* スマホ対応：2列→1列 */
@media (max-width: 760px) {
  .gallery-3 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}


/* -------------------------
   Lists
------------------------- */
.bullets{ padding-left:1.2em; }
.bullets li{ margin:6px 0; }

/* -------------------------
   Buttons
------------------------- */
.btn{
  display:inline-block; border:1px solid var(--line);
  background:#fff; color:#003366; padding:10px 16px;
  border-radius:10px; text-decoration:none;
}
.btn.primary{
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  color:#fff; font-weight:700; border:none;
}
.btn.primary:hover{ filter:brightness(1.05); }

/* -------------------------
   Footer (Light Corporate)
------------------------- */
.site-footer{
  background:#f5f7fa; border-top:1px solid #dce2ea;
  padding:40px 0 30px; font-size:.95rem; color:#333; position:relative;
}
.footer-inner{ max-width:1080px; margin:0 auto; padding:0 16px; }
.footer-columns{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap:28px; margin-bottom:30px;
}
.footer-col h3{
  font-size:1rem; font-weight:700; color:#333;
  border-bottom:1px solid #ccd3de; padding-bottom:6px; margin-bottom:8px;
}
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin:6px 0; padding-left:14px; position:relative; }
.footer-col li::before{ content:"›"; position:absolute; left:0; top:0; color:#999; font-size:.9rem; }
.footer-col a{ color:#003366; text-decoration:none; transition: color .2s ease; }
.footer-col a:hover{ color:#0056b3; text-decoration:underline; }
.footer-copy{
  text-align:center; color:#777; font-size:.9rem;
  border-top:1px solid #e3e8ef; padding-top:14px;
}

/* -------------------------
   “3つの理由” セクション
------------------------- */
.reasons-head{ text-align:center; margin-bottom:32px; }
.reasons-head h2{ font-size:1.8rem; color:#003366; margin-bottom:6px; font-weight:700; }
.reasons-head h2 span{ color:#007bff; font-size:2rem; }
.reasons-sub{ color:#999; font-style:italic; font-size:.95rem; }

.reasons-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:24px; }
.reason{
  position:relative; background:#fff; border:1px solid #e3e9f2;
  border-radius:12px; padding:24px 20px 20px; box-shadow:0 3px 10px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.reason:hover{ transform: translateY(-4px); box-shadow:0 8px 20px rgba(0,0,0,.08); }
.reason-num{
  position:absolute; top:-18px; left:20px; width:46px; height:46px;
  display:grid; place-items:center; border-radius:50%;
  background: linear-gradient(180deg, #007bff, #0056b3);
  color:#fff; box-shadow:0 3px 8px rgba(0,0,0,.15);
}
.reason h3{ margin-top:20px; font-size:1.1rem; color:#003366; font-weight:700; }
.reason p{ font-size:.95rem; color:#333; margin-top:6px; line-height:1.7; }

@media (max-width:600px){
  .reason-num{ width:40px; height:40px; top:-16px; }
  .reason h3{ font-size:1rem; }
}

/* ===============================
   NEWS（縦ライン＋日付も同色）
   =============================== */

/* タイトル */
.news-title-ja {
  margin: 0 0 10px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #003366; /* 他の見出しと統一カラー */
}
.news-title-ja > span {
  position: relative;
  padding-left: 14px;
}
.news-title-ja > span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  bottom: .15em;
  width: 4px;
  background: #003366; /* 同系ブルーライン */
  border-radius: 2px;
}

/* リスト */
.news-simple {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-simple li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid #eee;
}
.news-simple li:first-child {
  border-top: 0;
}

/* 日付（黒グレー系） */
.news-simple time {
  font-weight: 700;
  color: #333;   /* 日付も本文と同じ色 */
  min-width: 9ch;
  letter-spacing: .03em;
}

/* タイトルリンク */
.news-simple a {
  color: #222;
  text-decoration: none;
}
.news-simple a:hover {
  text-decoration: underline;
}

/* 帯（任意） */
.news-band {
  background: #f7f9fc;
  border: 1px solid #e3e9f2;
  border-radius: 14px;
  padding: 18px 16px 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
  margin-top: 20px;
}
.news-band .news-head,
.news-band .news-title-ja {
  border-bottom: 1px solid #e6ebf2;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

/* スマホ対応 */
@media (max-width: 560px) {
  .news-simple li {
    flex-direction: column;
    gap: 4px;
  }
  .news-simple time {
    min-width: 0;
  }
}


/* ===============================
   Phone CTA (お問い合わせボックス)
   =============================== */
.tel-box {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 280px;
  width: calc(100% - 32px);
  margin: 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.tel-head{
  all: unset;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  font-weight: 700; color: #fff;
  background: linear-gradient(180deg, #1e66d0, #0d56ba);
  position: relative; cursor: pointer;
}
.tel-head .chev{ width: 20px; height: 20px; opacity: .9; transition: transform .2s ease; }
.tel-box.closed .chev{ transform: rotate(-90deg); }

.tel-body{ padding: 14px 16px 16px; background: #fff; }
.tel-caption{ margin: 0 0 6px; color: #333; font-size: .95rem; }
.tel-num{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.6rem; font-weight: 800; letter-spacing: .02em;
  color: #0d56ba; text-decoration: none;
}
.tel-num:hover{ text-decoration: underline; }
.tel-icon{ width: 28px; height: 28px; color: #0d56ba; }

/* スマホ時：電話ボックス全体を非表示 */
@media (max-width: 768px) {
  .tel-box {
    display: none !important;
  }
}


/* ===============================
   Local Contents (Business menu)
   =============================== */
.local-contents{
  max-width: 720px;           /* 横幅（必要なら container 幅に） */
  margin: 16px auto 24px;
  border: 1px solid #dfe6f2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  background: #fff;
}

/* 上部のブルー帯 */
.lc-head{
  padding: 10px 16px;
  color:#fff;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  background: linear-gradient(180deg,#2a78d9,#155fbe);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

/* リスト */
.lc-list{ list-style:none; margin:0; padding:0; }
.lc-list li{
  border-top: 1px solid #e9edf6;
}
.lc-list a{
  display:flex; align-items:center; gap:10px;
  padding: 14px 16px;
  color:#1b3f73; text-decoration:none;
  font-weight: 700;
  transition: background .15s ease, color .15s ease;
  position: relative;
}

/* 左の○アイコン（未選択は枠のみ） */
.lc-list a::before{
  content:"";
  width: 14px; height: 14px; border-radius:50%;
  border: 2px solid #2a7be0; background: #fff;
  flex: 0 0 14px;
}

/* current（選択）＝塗りつぶし */
.lc-list .current a::before{
  background:#2a7be0;
  box-shadow: inset 0 0 0 2px #fff; /* 白のリング */
}

/* hover */
.lc-list a:hover{
  background:#f5f9ff;
}

/* モバイル */
@media (max-width:600px){
  .local-contents{ margin:12px 16px 20px; }
}

/* ===============================
   製造品目セクション（A案）
   =============================== */
.sec-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #003366;
  border-left: 6px solid #007bff;
  padding-left: 10px;
  margin: 32px 0 20px;
  letter-spacing: .05em;
}

/* リスト */
.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.item-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8faff;
  border: 1px solid #e2e8f5;
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 600;
  color: #1b3f73;
  box-shadow: 0 3px 8px rgba(0,0,0,0.03);
  transition: transform .2s ease, box-shadow .2s ease;
}
.item-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* アイコン（簡易SVG） */
.item-list i::before {
  content: "";
  display: inline-block;
  width: 20px; height: 20px;
  background: var(--brand, #007bff);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}
.icon-pcb::before   { mask-image: url('data:image/svg+xml,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect x="4" y="4" width="16" height="16" rx="2" ry="2"/><circle cx="8" cy="8" r="1.5"/><circle cx="16" cy="16" r="1.5"/></svg>'); }
.icon-design::before{ mask-image: url('data:image/svg+xml,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 17.25V21h3.75l11.06-11.06-3.75-3.75L3 17.25zM20.71 7.04a1.003 1.003 0 0 0 0-1.42l-2.34-2.34a1.003 1.003 0 0 0-1.42 0l-1.83 1.83 3.75 3.75 1.84-1.82z"/></svg>'); }
.icon-chip::before  { mask-image: url('data:image/svg+xml,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15 9H9v6h6V9zm6 2h2v2h-2v2h2v2h-2v2h-2v2h-2v2h-2v2h-2v2h-2v-2H9v-2H7v-2H5v-2H3v-2H1v-2h2v-2H1v-2h2V9H1V7h2V5h2V3h2V1h2v2h2V1h2v2h2v2h2v2h2v2h2v2z"/></svg>'); }

/* ===== Spec table（ブルー見出し帯＋薄グレー枠） ===== */
.spec-table{
  border: 1px solid #dfe6f2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  background:#fff;
  margin: 8px 0 24px;
}
.spec-table table{ width:100%; border-collapse: collapse; }
.spec-table thead th{
  background: linear-gradient(180deg,#2b78da,#165fbe);
  color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.25);
  padding:14px 16px; font-weight:700; font-size:1rem;
  border-right: 1px solid rgba(255,255,255,.25);
}
.spec-table thead th:last-child{ border-right:0; }
.spec-table tbody th,
.spec-table tbody td {
  padding: 12px 14px;
  border-top: 1px solid #e9edf6;
  text-align: center; /* ← 中央寄せを追加 */
}

.spec-table tbody th{
  width: 36%; background:#f7f9fe; color:#1b3f73; font-weight:700;
  border-right:1px solid #e9edf6;
}
.spec-table tbody tr:nth-child(even) td{ background:#fcfdff; }

/* ===== Feature block（ブルー見出し＋角丸ボックス） ===== */
.feature-block{
  background:#fff; border:1px solid #dfe6f2; border-radius:12px;
  padding: 12px 14px 14px; margin: 16px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
.feature-head{
  margin:0 0 10px; padding:8px 12px;
  background: linear-gradient(180deg,#e9f2ff,#d9e8ff);
  border:1px solid #cfe0f7; border-radius:8px;
  color:#1b3f73; font-weight:800; letter-spacing:.03em;
}
.feature-list{ list-style:none; margin:0; padding:4px 2px 0; display:grid; gap:10px; }
.feature-list > li{
  position: relative; padding: 6px 4px 6px 28px; color:#1c2f4d;
  border-bottom: 1px dashed #e8eef7;
}
.feature-list > li:last-child{ border-bottom:0; }

.badge{
  position:absolute; left:0; top:.7em; width:14px; height:14px;
  border-radius:50%; box-shadow: inset 0 0 0 3px #fff;
  background:#2a7be0; outline: 2px solid #2a7be0;
}

/* サブリスト */
.feature-list .sub{ list-style: disc; margin: 6px 0 0 1.2em; color:#333; }
.feature-list .sub li{ margin: 3px 0; }

/* モバイル調整 */
@media (max-width: 600px){
  .spec-table thead th{ font-size:.95rem; padding:12px; }
  .spec-table tbody th, .spec-table tbody td{ padding:10px 12px; }
}
/* ===============================
   「3つの理由」 番号バッジ付きデザイン
   =============================== */
.reasons-grid {
  counter-reset: reason;
}

.reason {
  position: relative;
  padding-top: 40px; /* バッジ分の余白 */
}

.reason::before {
  counter-increment: reason;
  content: counter(reason, decimal-leading-zero);
  position: absolute;
  top: -18px;
  left: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #007bff, #0056b3);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  font-size: 1.1rem;
}

/* スマホ調整 */
@media (max-width: 600px){
  .reason::before {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: -14px;
  }
}

/* =====================================
   Feature blocks 2-column layout
   ===================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); /* 横2列→狭いと1列 */
  gap: 24px;
  margin-top: 20px;
}

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


/* 各ブロックの見た目は既存を再利用 */
.feature-block {
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 12px;
  padding: 12px 14px 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
/* ===============================
   About Visual Banner
   =============================== */
.about-visual {
  text-align: center;
  margin: 40px auto 48px;
}

.about-banner {
  width: 100%;
  max-width: 980px;         /* 最大幅を指定 */
  height: auto;
  display: block;
  margin-inline: auto;      /* 中央寄せ */
  border-radius: 10px;      /* 角を少し丸めて高級感 */
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-banner:hover {
  transform: scale(1.02);   /* ホバーで少し拡大 */
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

/* ===== Brand Table (青ヘッダー/角丸/ライト罫線) ===== */
.table-wrap.is-brand {
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 14px;
  overflow: hidden;                     /* 角丸を内側まで適用 */
  box-shadow: 0 6px 16px rgba(0,0,0,.04);
}

.table-wrap.is-brand table { width: 100%; border-collapse: collapse; }

.table-wrap.is-brand thead th {
  background: linear-gradient(180deg, #1e6fff, #0d5bd7); /* コーポレート青 */
  color: #fff;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: none;
}

.table-wrap.is-brand th,
.table-wrap.is-brand td {
  padding: 12px 16px;
  border-bottom: 1px solid #e6ebf2;     /* 薄い罫線 */
  color: #333;
  line-height: 1.7;
}

.table-wrap.is-brand tbody th {
  width: 240px;                          /* 左列幅（必要に応じて調整） */
  background: #f7f9fc;                   /* 左列うっすらグレー */
  color: #003366;
  font-weight: 700;
  white-space: nowrap;
}

.table-wrap.is-brand tbody tr:last-child th,
.table-wrap.is-brand tbody tr:last-child td {
  border-bottom: none;                    /* 最終行の下線を消す */
}

/* モバイル最適化（幅が狭いときは左列幅を少し絞る） */
@media (max-width: 560px){
  .table-wrap.is-brand tbody th { width: 180px; }
}


/* ==== 製造工程紹介テーブル：スマホ表示調整 ==== */
@media (max-width: 560px) {

  /* 行ごとにブロック表示（1行=2段組をやめる） */
  .table-wrap.is-brand tbody tr {
    display: block;
    border-bottom: 1px solid #e6ebf2;
    padding: 8px 0;
  }

  .table-wrap.is-brand tbody th,
  .table-wrap.is-brand tbody td {
    display: block;
    width: 100%;          /* 幅を100%に */
    box-sizing: border-box;
  }

  /* 見出しセル（項目名） */
  .table-wrap.is-brand tbody th {
    width: auto;          /* 240px/180px を上書き */
    border-right: none;
    background: #f5f9ff;
    white-space: nowrap;  /* 項目名は折り返さない程度でOKならこのまま */
    padding-bottom: 4px;
  }

  /* 説明セル */
  .table-wrap.is-brand tbody td {
    border-bottom: none;
    padding-top: 4px;
  }
}



/* ---- Flow item with image ---- */
.flow-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;             /* スマホ時に縦並び */
}

.flow-text {
  flex: 1 1 300px;
}

.flow-image {
  flex: 0 0 280px;
  margin: 0;
}

.flow-image img {
  width: 100%;
  height: auto;
  border: 1px solid #dde3ee;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* スマホで縦並び */
@media (max-width: 640px) {
  .flow-item { flex-direction: column; }
  .flow-image { flex: none; margin-top: 12px; }
}
/* =========================================
   flow.html 専用ボタンスタイル
   ========================================= */
.page-flow .btn.primary,
.page-flow .btn[href^="mailto:"] {
  display: inline-block;
  background: linear-gradient(180deg, #007bff, #0056b3);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 32px;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 91, 187, 0.3);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.25s ease-in-out;
}

.page-flow .btn.primary:hover,
.page-flow .btn[href^="mailto:"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 91, 187, 0.45);
  filter: brightness(1.05);
}

/* 文章は常に左揃え */
.page-flow .flow-text p { text-align: left; }

/* ボタンだけ中央寄せ＆幅を内容サイズに */
.page-flow .flow-text p > .btn {
  display: block;          /* ブロックでもOKにして */
  width: fit-content;      /* ← ここで“伸び防止” */
  margin: 12px auto 0;     /* 中央寄せ */
}

/* 万一 fit-content に未対応の環境向けのフォールバック */
@supports not (width: fit-content) {
  .page-flow .flow-text p > .btn {
    display: inline-block; /* 伸び防止 */
    margin: 12px auto 0;
  }
}



/* ===============================
   flow.html スマホ向け文字サイズ調整
   =============================== */

/* 工程フローの見出し（各ステップの h2） */
.page-flow .flow > li h2 {
  /* 最小 1.05rem ～ 最大 1.5rem、画面幅で自動調整 */
  font-size: clamp(1.05rem, 3.6vw, 1.5rem);
  line-height: 1.5;
}

/* 工程フロー内の本文テキスト */
.page-flow .flow-text p,
.page-flow .flow-subsection p {
  /* 最小 0.9rem ～ 最大 1.05rem */
  font-size: clamp(0.9rem, 3.2vw, 1.05rem);
}

/* 製造工程紹介 テーブル内の文字 */
.page-flow .flow-subsection .table-wrap.is-brand th,
.page-flow .flow-subsection .table-wrap.is-brand td {
  font-size: clamp(0.88rem, 3.0vw, 1rem);
  line-height: 1.7;
}

/* さらに画面がかなり狭いスマホ（例：横幅 480px 以下）での微調整 */
@media (max-width: 480px) {
  .page-flow .flow > li {
    padding-left: 52px; /* 番号バッジと本文のバランスを少し詰める */
  }

  .page-flow .flow > li h2 {
    font-size: clamp(1rem, 3.8vw, 1.3rem);
  }

  .page-flow .flow-text p,
  .page-flow .flow-subsection p {
    font-size: clamp(0.86rem, 3.2vw, 0.98rem);
  }
}

/* サブタイトル “～…～” を改行させない（PC・タブレット共通） */
.page-flow .flow > li h2 .nowrap {
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  font-size: 0.95rem;
}

/* スマホ時にサブタイトルの文字を少し小さくする */
@media (max-width: 480px) {
  .page-flow .flow > li h2 .nowrap {
    font-size: 0.8rem; /* はみ出さない程度まで小さく */
  }
}





/* ========== Global Nav dropdown ========== */
.nav ul { position: relative; }
.nav li.has-sub { position: relative; }

/* 矢印 */
.nav .nav-caret {
  display: inline-block;
  margin-left: 6px;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #003366;
  vertical-align: middle;
  transition: transform .2s;
}
.nav .has-sub[aria-open="true"] .nav-caret,
.nav .has-sub:focus-within > a .nav-caret { transform: rotate(180deg); }

/* サブメニュー */
.nav .sub{
  position: absolute;
  left: 0; top: calc(100% + 10px);
  min-width: 180px;
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 30;
}
.nav .sub li { margin: 0; }
.nav .sub a{
  display: block; padding: 10px 12px; border-radius: 8px;
  color: #003366;
}
.nav .sub a:hover{ background: #e6f0ff; }

/* PC：hover / focus で開く */
@media (hover:hover){
  .nav li.has-sub:hover > .sub,
  .nav li.has-sub:focus-within > .sub{
    opacity: 1; visibility: visible; transform: translateY(0);
  }
}

/* モバイルではナビ全体を縦積み＋タップで展開 */
@media (max-width:900px){
  .nav { display: none; }
  .nav.open { display: block; }
  .nav ul { display: block; }
  .nav li.has-sub { border-top: 1px solid var(--line); }
  .nav .sub{
    position: static;
    border: none; box-shadow: none; padding: 4px 0 8px;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav li.has-sub[aria-open="true"] > .sub { display: block; }
}
/* ==== グローバルナビ右寄せ ==== */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav {
  margin-left: auto; /* ナビを右端へ寄せる */
}

.nav ul {
  justify-content: flex-end; /* メニュー項目も右揃え */
}
/* ==== プルダウンメニュー（サブメニュー）縦並び設定 ==== */
.nav ul li {
  position: relative;
}

/* サブメニューの基本スタイル */
.nav ul li ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #d0d8e0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  display: none;               /* 通常は非表示 */
  flex-direction: column;      /* ← 縦並び指定！ */
  min-width: 180px;
  z-index: 999;
}

/* ホバー時に表示 */
.nav ul li:hover > ul {
  display: flex;
}

/* 各項目 */
.nav ul li ul li {
  display: block;
  padding: 0;
}

.nav ul li ul li a {
  display: block;
  padding: 10px 16px;
  color: #003366;
  text-decoration: none;
  white-space: nowrap;
}

.nav ul li ul li a:hover {
  background: #e6f0ff;
}
/* ==== flow番号バッジの位置調整 ==== */
/* PC 幅のみ少し左にオフセットしたデザインにする */
@media (min-width: 768px) {
  .flow > li {
    padding-left: 60px;        /* 左だけ広げる（他の padding は元の 20px を維持） */
  }

  .flow > li::before {
    left: 20px;
    top: 22px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 50%;
    background: #007bff;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
}

/* ---------- Offices Section ---------- */
.offices {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 40px 0;
}

.office {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 24px;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
  background: #fff;
}

.office-info h2 {
  color: #003366;
  margin-top: 0;
}

.office-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
}

/* スマホ表示 */
@media (max-width: 768px) {
  .office {
    grid-template-columns: 1fr;
  }
  .office-map iframe {
    height: 220px;
  }
}
/* Offices: 拠点写真 */
.office-photo { margin-top: 10px; }
.office-photo img{
  width: 100%;
  max-width: 520px;     /* 左カラムの幅感に合わせて適度に制限 */
  aspect-ratio: 16 / 9; /* 統一トリミング */
  object-fit: cover;
  display: block;
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
}

/* ===============================
   Section Headings（共通見出し）
=============================== */
main h2{
  position: relative;
  font-size: 1.5rem;
  color: #0b3570;           /* 濃紺で締める */
  letter-spacing: .02em;
  margin: 28px 0 14px;
}
main h2::after{
  content:"";
  display:block;
  height:3px; width:88px;
  margin-top:8px;
  border-radius: 2px;
  background: linear-gradient(90deg,#007bff,#0056b3);
}

/* ===============================
   代表挨拶（カード化＋格式ある明朝体）
=============================== */
.greeting {
  position: relative;
  background: linear-gradient(180deg,#f7faff 0%, #ffffff 100%);
  border: 1px solid #e3e9f2;
  border-radius: 14px;
  padding: 28px 26px;
  line-height: 1.9;
  box-shadow: 0 6px 22px rgba(0,0,0,.05);
  font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN W6", "Hiragino Mincho ProN",
               "MS 明朝", serif; /* 明朝系で品格を */
  color: #222;
  font-size: 1.02rem;
}

.greeting::before {
  /* 左端アクセントバー */
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg,#007bff,#0056b3);
}

.greeting h2 {
  font-size: 1.7rem;
  color: #0b3570;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
  font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN W6", "Hiragino Mincho ProN",
               "MS 明朝", serif;
  border-left: 5px solid #0056b3;
  padding-left: 12px;
}

.greeting p {
  margin: 0 0 1.3em;
  text-indent: 1em; /* 冒頭の一文字下げで落ち着き */
}


/* ==== 代表挨拶（スマホ最適化）==== */
@media (max-width: 600px) {
  .greeting {
    padding: 20px 18px;       /* 横幅が狭いスマホ向けに少し薄く */
    font-size: 0.95rem;       /* 文字サイズを適度に縮小 */
    line-height: 1.85;        /* 読みやすい行間に調整 */
  }

  .greeting h2 {
    font-size: 1.35rem;       /* タイトルもスマホ向けに最適化 */
    margin-bottom: 12px;
  }

  .greeting p {
    text-indent: 0.8em;       /* 1文字下げを軽めに調整 */
    margin-bottom: 1.2em;
  }

  .greeting .sign {
    margin-top: 18px;
    margin-right: 4px;        /* 署名の右余白も調整 */
  }

  .greeting .sign-img {
    height: 24px;             /* 署名画像も縮小 */
  }
}




/* ===============================
   署名（右寄せ・画像）
=============================== */
.greeting .sign {
  text-align: right;
  margin-top: 24px;
  margin-right: 10px;
  font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN W6", "Hiragino Mincho ProN",
               "MS 明朝", serif;
  font-size: 1.05rem;
  color: #5f6b7a;
  font-weight: 600;
}

.greeting .sign-img {
  height: 28px;           /* サイズ調整 */
  width: auto;
  display: inline-block;
  opacity: 0.95;
  transition: opacity .3s ease;
}
.greeting .sign-img:hover {
  opacity: 1;
}



/* ===============================
   会社概要・沿革（表の高級化）
=============================== */
.table-wrap{
  background:#fff;
  border:1px solid #e7edf6;
  border-radius:12px;
  overflow:hidden;
  box-shadow: 0 6px 22px rgba(0,0,0,.04);
}
.table-wrap table{ width:100%; border-collapse: separate; border-spacing:0; }
.table-wrap th,
.table-wrap td{ padding: 12px 14px; border-bottom:1px solid #eff3f8; }

/* 左見出しセルをプレート化 */
.table-wrap tbody th{
  width: 220px;
  background:#f5f9ff;
  color:#0b3570;
  font-weight: 700;
  border-right:1px solid #eaf0f7;
  white-space: nowrap;
}
.table-wrap tbody tr:nth-child(odd) td{ background:#fcfeff; }

/* 行ホバー（PC） */
@media (hover:hover){
  .table-wrap tbody tr:hover td{ background:#f3f8ff; }
}

/* モバイル時の可読性 */
@media (max-width: 640px){
  .table-wrap tbody th{ width: 34%; font-size: .95rem; }
  .table-wrap tbody td{ font-size: .95rem; }
}



/* ===== profile（会社概要テーブル）スマホ最適化 ===== */
@media (max-width: 560px){
  .table-wrap tbody th,
  .table-wrap tbody td{
    font-size: 0.85rem;     /* ← 小さめ文字で収まり改善 */
    line-height: 1.6;
  }

  /* 左列の幅を少し縮める */
  .table-wrap tbody th{
    width: 120px;           /* ← 既存 220px → 圧縮 */
    white-space: nowrap;    /* ← 見出しは折返し防止 */
  }

  /* データ側は折返し許可 */
  .table-wrap tbody td{
    white-space: normal;
    word-break: break-word; /* 長文も綺麗に折返し */
  }
}


/* ===============================
   沿革だけ「年表・タイムライン風」
   ※ <section class="history"> を付けた時だけ有効
=============================== */
.history .table-wrap tbody{ position: relative; }
.history .table-wrap tbody th{
  position: relative;
  width: 140px;             /* 年の列を少し細く */
  text-align: right;
  padding-right: 18px;
  background: #f7fbff;
}
.history .table-wrap tbody td{ position: relative; }

/* 年の列にドット、本文側に縦ライン */
.history .table-wrap tbody th::after{
  content:"";
  position:absolute; top:50%; right:-6px;
  width:10px; height:10px; transform: translateY(-50%);
  border-radius:50%;
  background:#007bff;
  box-shadow: 0 0 0 3px #e8f1ff;
}
.history .table-wrap tbody tr td::before{
  content:"";
  position:absolute; left:-1px; top:0; bottom:0;
  width:2px; background: linear-gradient(#e8f0fb,#e8f0fb);
}
.history .table-wrap tbody tr:first-child td::before{ border-top-left-radius: 2px; }
.history .table-wrap tbody tr:last-child td::before{ border-bottom-left-radius: 2px; }

/* 品質・環境方針 */
.policy { margin: 12px 0 28px; }
.policy-lead, .policy-note { line-height: 1.9; color: #333; }
.policy-lead { margin: 8px 0 14px; }
.policy-note { margin: 12px 0 0; color: #555; }

/* 青枠パネル */
.policy-panel{
  background: #f7faff;
  border: 2px solid #dbe7ff;
  border-radius: 12px;
  padding: 16px 16px 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04) inset;
}

/* 箇条書き（チェック風アイコン） */
.policy-list{
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
}
.policy-list li{ display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.policy-list p{ margin: 0; line-height: 1.85; }

.policy-list .bullet{
  width: 18px; height: 18px; border-radius: 4px;
  border: 2px solid #7aa2ff; background: #fffbcc; /* 黄ベース＋青枠（添付に寄せる） */
  box-shadow: inset 0 0 0 2px #e7f0ff;
  position: relative; top: 2px;
}
.policy-list .bullet::after{
  content: ""; position: absolute; inset: 50% auto auto 50%;
  width: 6px; height: 6px; transform: translate(-50%, -50%);
  background: #3366ff; border-radius: 2px;
}

/* 強調 */
.policy strong{ color:#0b3570; }
@media (max-width: 560px){
  .policy-list li{ grid-template-columns: 20px 1fr; }
  .policy-list .bullet{ width:16px; height:16px; }
}
/* ==== Mobile Nav (bodyフラグ方式) ==== */
@media (max-width: 900px){
  .site-header{ position: sticky; top: 0; z-index: 1000; }
  .header-inner{ position: relative; }

  /* 既定は非表示。競合対策でID指定＆!important */
  #global-nav{
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none !important;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }

  /* body.nav-open が付いたら表示 */
  body.nav-open #global-nav{
    display: block !important;
  }

  /* 縦積み */
  #global-nav ul{ display: block; }
  #global-nav a{ display: block; padding: 12px; }
}
