﻿/* =========================================================
   CoreMax JP — Main Stylesheet v2.0
   Design: Bio-Science / Clean / Professional (White Base)
   ========================================================= */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;700;800&display=swap');

/* ── Design Tokens ── */
:root {
  --primary:       #00695C;
  --primary-dark:  #004D44;
  --primary-light: #00897B;
  --accent:        #1356A0;
  --accent-hover:  #0D4488;
  --teal:          #0097A7;
  --danger:        #C62828;

  --text:          #0C1D2B;
  --text-muted:    #4B6070;
  --text-light:    #8599A8;
  --bg:            #FFFFFF;
  --bg-alt:        #F7F9FB;
  --bg-alt2:       #EBF4F2;
  --bg-dark:       #0B2923;
  --border:        #DDE6EE;

  --radius-sm:  3px;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow:     0 1px 10px rgba(12, 29, 43, 0.07), 0 1px 3px rgba(12, 29, 43, 0.04);
  --shadow-lg:  0 6px 30px rgba(12, 29, 43, 0.11);
  --transition: 0.2s ease;

  --container:  1200px;
  --font-jp:    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, 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-jp);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
input, textarea, select, button {
  font-family: inherit;
}
input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
::placeholder {
  font-family: inherit;
  color: #9ca3af;
  opacity: 1;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--text); font-family: var(--font-en); }

/* ── Layout ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section      { padding: 88px 0; }
.section-alt  { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: white; }

.section-header   { text-align: center; margin-bottom: 52px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  font-family: var(--font-en);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--primary);
}
.section-title    { font-size: 1.85rem; margin-bottom: 10px; color: var(--text); letter-spacing: -0.02em; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  font-family: var(--font-en);
  letter-spacing: 0.01em;
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 1px 4px rgba(0, 105, 92, 0.2); }
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0, 105, 92, 0.3); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); }
.btn-outline:hover { background: var(--bg-alt); color: var(--text); border-color: var(--text-muted); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); color: white; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0, 119, 204, 0.3); }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--bg-alt); color: var(--primary-dark); }

/* ── Header ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 77, 64, 0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 105, 92, 0.25);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  mix-blend-mode: multiply;
  border-radius: 4px;
}
.logo-text {
  color: var(--text);
  font-weight: 800;
  font-size: 1rem;
  font-family: var(--font-en);
  letter-spacing: 0.02em;
  display: block;
  line-height: 1.2;
}
.logo-sub {
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  display: block;
  line-height: 1.1;
  margin-top: 2px;
}
@media (max-width: 768px) {
  .logo-sub { display: none; }
  .logo-text { font-size: 0.92rem; }
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu > li > a {
  display: block;
  padding: 8px 15px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
  color: var(--primary);
  background: var(--bg-alt2);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
/* ヘッダー専用 CTAボタン */
.btn-header-cta {
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius);
  font-family: var(--font-en);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-header-cta:hover {
  background: var(--primary);
  color: white;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  padding: 120px 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(0,172,193,0.15) 0%, transparent 50%);
}
.page-hero .container { position: relative; }
.page-hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
  font-family: var(--font-en);
}
.page-hero-title  { font-size: 2.2rem; color: white; margin-bottom: 8px; }
.page-hero-desc   { color: rgba(255,255,255,0.65); font-size: 0.97rem; }

/* Breadcrumb */
.breadcrumb { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 12px 0; }
.breadcrumb-inner { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); }
.breadcrumb-inner a { color: var(--text-muted); }
.breadcrumb-inner a:hover { color: var(--primary); }
.breadcrumb-inner .sep { color: var(--text-light); font-size: 0.75rem; }

/* ── HERO (Homepage) ── */
.hero {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 75% 45%, rgba(0, 105, 92, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 0%, rgba(19, 86, 160, 0.05) 0%, transparent 45%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 48%;
  background: linear-gradient(to left, rgba(235, 244, 242, 0.6) 0%, transparent 100%);
  pointer-events: none;
}
/* DNA / molecule decorative SVG background */
.hero-bg-svg {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 44vw;
  max-width: 580px;
  opacity: 0.22;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 600px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 26px;
  font-family: var(--font-en);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px; height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  font-family: var(--font-en);
}
.hero-title .jp { font-family: var(--font-jp); font-size: 0.52em; display: block; font-weight: 700; color: var(--text-muted); margin-top: 8px; letter-spacing: 0.02em; line-height: 1.5; }
.hero-title .accent { color: var(--primary); }
.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 2;
  max-width: 500px;
  font-weight: 400;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges {
  display: flex;
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.hero-badge-icon {
  width: 34px; height: 34px;
  background: var(--bg-alt2);
  border: 1px solid rgba(0, 105, 92, 0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-badge-icon svg { width: 16px; height: 16px; stroke: var(--primary); fill: none; }
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bobble 2.4s ease-in-out infinite;
  pointer-events: none;
}
@media (max-width: 768px) {
  .hero-scroll { display: none; }
}
@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

/* ── Product Category Cards ── */
.product-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  text-align: center;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0,105,92,0.3); }
.cat-card:hover .cat-link { gap: 8px; color: var(--primary-dark); }
.cat-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--bg-alt2), #d0ede9);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  border: 1px solid rgba(0,105,92,0.12);
}
.cat-icon svg { width: 30px; height: 30px; stroke: var(--primary); fill: none; }
.cat-image {
  height: 180px; 
  width: 100%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin: 0 auto 18px;
}
.cat-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* Optional: helps blend white backgrounds */
}
.cat-card h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--text); }
.cat-card p  { font-size: 0.87rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; }
.cat-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition), color var(--transition);
}
.cat-link::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 10;
}
.cat-link:hover { gap: 8px; color: var(--primary-dark); }

/* --- Cards (List View for Products) --- */
/* --- Cards (List View for Products) --- */
.product-list-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.product-card-v2 {
  display: grid;
  grid-template-columns: 360px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "img tags"
    "img body";
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,105,92,0.22);
}

/* Image area */
.pcv2-img {
  grid-area: img;
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--bg-alt2) 0%, #d4eee9 55%, #bfe5de 100%);
  overflow: hidden;
}
.pcv2-img-btn {
  flex: 1;
  min-height: 240px;
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  cursor: zoom-in;
}
.pcv2-img::before {
  content: "";
  position: absolute;
  top: -30px; right: -30px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(0,105,92,0.07);
  pointer-events: none;
}
.pcv2-img > img,
.pcv2-img-btn > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: contain;
  padding: 20px 20px 0;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.13));
  transition: transform 0.3s ease;
}
.product-card-v2:hover .pcv2-img > img,
.product-card-v2:hover .pcv2-img-btn > img { transform: scale(1.04) translateY(-4px); }

/* Title overlay on image */
.pcv2-title-bar {
  background: linear-gradient(to bottom, rgba(5,30,25,0.85) 0%, rgba(5,30,25,0.83) 75%, rgba(5,30,25,0.20) 90%, rgba(5,30,25,0.00) 100%);
  padding: 18px 18px 14px;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.pcv2-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  font-family: var(--font-en);
  margin: 0 0 5px;
}
.pcv2-name {
  font-family: var(--font-en);
  font-size: 1.18rem;
  font-weight: 800;
  color: white;
  margin: 0 0 4px;
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}
.pcv2-name-jp {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.92);
  margin: 0 0 10px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.pcv2-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}
.pcv2-cat-badge {
  background: white;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  letter-spacing: 0.04em;
  z-index: 3;
}
.pcv2-catno {
  background: white;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: var(--font-en);
  box-shadow: 0 1px 6px rgba(0,0,0,0.10);
  z-index: 3;
}

/* Feature tags (right top, above body) */
.pcv2-tags {
  grid-area: tags;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 10px 20px;
  background: white;
  border-bottom: 1px solid var(--border);
}
.pcv2-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.pcv2-tag-btn {
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
  background: var(--danger);
  color: white;
  box-shadow: 0 1px 4px rgba(198, 40, 40, 0.25);
}
.pcv2-tag-btn:hover {
  background: #9B1B1B;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35);
}
.product-img-tag {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 20px;
  font-family: var(--font-en);
  white-space: nowrap;
}
.product-img-tag--green { background: rgba(0,105,92,0.1); color: var(--primary); border: 1px solid rgba(0,105,92,0.22); }
.product-img-tag--teal  { background: rgba(0,151,167,0.1); color: var(--teal);  border: 1px solid rgba(0,151,167,0.2); }
.product-img-tag--gray  { background: rgba(75,96,112,0.07); color: var(--text-muted); border: 1px solid rgba(75,96,112,0.16); }

/* Card body */
.pcv2-body {
  grid-area: body;
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pcv2-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.pcv2-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.pcv2-actions .btn-sm { flex: 1; justify-content: center; text-align: center; }

/* QC Testing table */
.pqc-section { }
.pqc-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-en);
  margin: 0 0 6px;
}
.pqc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.pqc-table tr { border-bottom: 1px solid var(--border); }
.pqc-table tr:last-child { border-bottom: none; }
.pqc-table td {
  padding: 5px 4px;
  vertical-align: middle;
  line-height: 1.4;
}
.pqc-table td:first-child { color: var(--text-muted); }
.pqc-table td:last-child {
  text-align: right;
  font-weight: 700;
  font-family: var(--font-en);
  white-space: nowrap;
}
.pqc-pass { color: var(--primary) !important; }
.pqc-pass-icon { display: inline-flex; align-items: center; gap: 3px; }
.pqc-val { color: var(--text) !important; }

/* ── About Strip (Homepage) ── */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-text h2 { font-size: 1.9rem; margin-bottom: 14px; }
.about-text p  { color: var(--text-muted); line-height: 1.85; margin-bottom: 14px; }
.about-stats   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.stat-item     { padding: 18px 20px; background: white; border-radius: var(--radius); border: 1px solid var(--border); border-top: 3px solid var(--primary); box-shadow: var(--shadow); }
.stat-num      { font-size: 2rem; font-weight: 800; color: var(--primary); font-family: var(--font-en); line-height: 1; margin-bottom: 4px; }
.stat-label    { font-size: 0.8rem; color: var(--text-muted); }
.about-visual  { }
.about-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-alt2), #d0ede9);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,105,92,0.12);
}
.about-placeholder { text-align: center; color: var(--text-light); font-size: 0.85rem; }

/* ── Certifications ── */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
    max-width: 800px;
    margin-inline: auto;
}
.cert-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}
.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.cert-img-thumb {
    width: 100%;
    aspect-ratio: 1/1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
}
.cert-img-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.cert-card p {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

/* Modal */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.cert-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    border-radius: 4px;
}
#certModalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 16px 0;
    font-size: 1rem;
    font-weight: bold;
}
.cert-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
.cert-modal-close:hover,
.cert-modal-close:focus {
    color: #bbb;
    text-decoration: none;
}

/* ── News Cards ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card-img   { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--bg-alt2), #cce8e4); }
.news-card-body  { padding: 18px; }
.news-date       { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; font-family: var(--font-en); }
.news-card-title { font-size: 0.93rem; font-weight: 600; line-height: 1.6; color: var(--text); transition: color var(--transition); }
.news-card:hover .news-card-title { color: var(--primary); }

/* ── News list (ニュース一覧ページ) ── */
.news-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.news-list-item {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.news-list-item:hover { background: var(--bg-alt, #f8fbfa); }
.news-list-link {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 16px;
  text-decoration: none;
  color: inherit;
}
.news-list-cat {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  border-radius: 999px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: white;
  white-space: nowrap;
}
.news-list-cat--press {
  border-color: #b8860b;
  color: #8a5f00;
  background: #fffaf0;
}
.news-list-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.news-list-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.55;
}
.news-list-item:hover .news-list-title { color: var(--primary); }
.news-list-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-list-date {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .news-list-link {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 12px;
  }
  .news-list-cat { justify-self: start; }
  .news-list-date { justify-self: start; }
}

/* news-list-link はボタン要素として使用 */
button.news-list-link {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
button.news-list-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

/* ── News Modal ── */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.news-modal[hidden] { display: none; }
.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  animation: newsModalFade 0.2s ease;
}
.news-modal-dialog {
  position: relative;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: newsModalUp 0.25s ease;
}
.news-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.95);
  color: var(--text-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--transition);
}
.news-modal-close:hover { background: var(--bg-alt, #f3f4f6); }
.news-modal-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.news-modal-content {
  padding: 36px 36px 28px;
  overflow-y: auto;
}
.news-modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.news-modal-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-en);
}
.news-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-main);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.news-modal-body {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.85;
}
.news-modal-body p { margin: 0 0 14px; }
.news-modal-body ul { margin: 0 0 14px 1.4em; padding: 0; }
.news-modal-body li { margin-bottom: 6px; }
.news-modal-body a { color: var(--primary); text-decoration: underline; }
.news-modal-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
@keyframes newsModalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes newsModalUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 720px) {
  .news-modal { padding: 12px; }
  .news-modal-content { padding: 28px 20px 22px; }
  .news-modal-title { font-size: 1.1rem; }
}
body.news-modal-open { overflow: hidden; }
/* Responsive Content */
@media (max-width: 768px) {
  .product-list-view { gap: 20px; }
  .product-card-v2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      "img"
      "tags"
      "body";
  }
  .pcv2-img > img,
  .pcv2-img-btn > img { height: 200px; min-height: unset; }
  .pcv2-img-btn { min-height: unset; }
  .pcv2-tags { border-bottom: 1px solid var(--border); padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
  .pcv2-tag-btn { width: 100%; text-align: center; justify-content: center; margin-left: 0; }
  .pcv2-name { font-size: 1.05rem; }
  .pcv2-body { padding: 14px 16px 16px; gap: 12px; }
  .pcv2-actions { flex-direction: column; }
  .pspec-table th { width: 100px; font-size: 0.78rem; }
  .pspec-table td { font-size: 0.82rem; }
}

/* ── CTA Banner ── */
.cta-section {
  background: linear-gradient(135deg, var(--bg-dark), var(--primary));
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(0,172,193,0.2) 0%, transparent 50%);
}
.cta-section .container { position: relative; }
.cta-title { font-size: 2rem; color: white; margin-bottom: 14px; }
.cta-desc  { color: rgba(255,255,255,0.72); font-size: 1rem; margin-bottom: 34px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ── Product Grid ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0,105,92,0.25); }
.product-card-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-alt2), #cce8e4);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-card-img svg { width: 56px; height: 56px; stroke: rgba(0,105,92,0.3); fill: none; }
.product-cat-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 10px;
  background: rgba(0,105,92,0.1);
  border: 1px solid rgba(0,105,92,0.25);
  border-radius: 100px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.product-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-name    { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 4px; font-family: var(--font-en); }
.product-name-jp { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.product-cell    { font-size: 0.82rem; color: var(--text-muted); padding: 7px 11px; background: var(--bg-alt); border-radius: var(--radius-sm); margin-bottom: 14px; border-left: 2px solid var(--primary); }
.product-card-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.product-catno   { font-size: 0.78rem; color: var(--text-light); font-family: var(--font-en); }

/* Filter Tabs */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: white;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-jp);
}
.filter-btn:hover,
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ── Product Detail ── */
.product-detail { padding: 80px 0; }
.product-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.product-hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-alt2), #cce8e4);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.product-hero-img svg { width: 100px; height: 100px; stroke: rgba(0,105,92,0.3); fill: none; }
.product-detail-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; font-family: var(--font-en); }
.product-detail-name    { font-size: 2rem; color: var(--text); font-family: var(--font-en); margin-bottom: 6px; }
.product-detail-name-jp { font-size: 1rem; color: var(--text-muted); margin-bottom: 24px; }
.product-desc           { font-size: 0.97rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 30px; }
.product-specs          { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.specs-title            { background: var(--bg-dark); color: white; padding: 11px 18px; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-en); }
.spec-row               { display: grid; grid-template-columns: 150px 1fr; border-bottom: 1px solid var(--border); }
.spec-row:last-child    { border-bottom: none; }
.spec-label { padding: 11px 14px; background: var(--bg-alt); font-size: 0.84rem; font-weight: 600; color: var(--primary); border-right: 1px solid var(--border); }
.spec-value { padding: 11px 14px; font-size: 0.88rem; color: var(--text); }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── About Page ── */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 80px 0; }
.about-intro-reverse .about-intro-text { grid-column: 2; grid-row: 1; }
.about-intro-reverse .about-intro-visual { grid-column: 1; grid-row: 1; }
.about-intro-text h2 { font-size: 1.9rem; margin-bottom: 16px; }
.about-intro-text p  { color: var(--text-muted); line-height: 1.85; margin-bottom: 12px; }
.company-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.company-table th,
.company-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; text-align: left; vertical-align: top; }
.company-table th { background: var(--bg-alt); font-weight: 700; color: var(--primary); width: 130px; }
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

/* ── Touren Logo Lockup (About page) ── */
.touren-logo-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 3rem;
}
.touren-logo-lockup img {
  height: 1em;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.touren-logo-name {
  font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
  font-weight: 900;
  font-size: 1em;
  color: #2F6B1A;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  user-select: none;
}

.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.partner-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.partner-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(0,105,92,0.2); }
.partner-flag { font-size: 2.5rem; margin-bottom: 12px; }
.partner-card h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--text); }
.partner-role    { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin-bottom: 14px; font-family: var(--font-en); }
.partner-card p  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
.contact-info h3 { font-size: 1.4rem; margin-bottom: 14px; }
.contact-info p  { color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item    { display: flex; align-items: flex-start; gap: 14px; }
.contact-item-icon {
  width: 42px; height: 42px;
  background: var(--bg-alt2);
  border: 1px solid rgba(0,105,92,0.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg { width: 18px; height: 18px; stroke: var(--primary); fill: none; }
.contact-item-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); display: block; margin-bottom: 2px; }
.contact-item-text  { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

.contact-form-wrapper {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

/* Contact Form 7 styling */
.cf7-wrapper .form-group { margin-bottom: 18px; }
.cf7-wrapper .form-label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-required { color: var(--danger); margin-left: 3px; }
.wpcf7-form label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-jp);
  font-size: 0.93rem;
  color: var(--text);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  margin-top: 5px;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,105,92,0.1); }
.wpcf7-form textarea { resize: vertical; min-height: 200px; }
.wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  padding: 13px 36px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-jp);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}
.wpcf7-form input[type="submit"]:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,105,92,0.3); }
.wpcf7-response-output { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); font-size: 0.88rem; }

/* ── Footer ── */
/*
  フォントサイズ階層（3段階統一）
  - ブランド名:      1.15rem  / white
  - 本文・リンク:    0.9rem   / rgba(255,255,255,0.75)
  - 補助・小文字:    0.8rem   / rgba(255,255,255,0.45)
  - セクションラベル:0.7rem   / uppercase / rgba(255,255,255,0.4)
*/
#site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  line-height: 1.75;
  padding: 60px 0 0;
  border-top: 3px solid var(--primary);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.1fr 1.3fr;
  gap: 40px 52px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Brand column */
.footer-brand { display: flex; flex-direction: column; }
.footer-logo-link { display: inline-block; margin-bottom: 12px; line-height: 0; }
.footer-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 4px;
}
.footer-brand-name {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  line-height: 1.2;
}
.footer-brand-name sup { font-size: 0.5em; vertical-align: super; }
.footer-tagline {
  font-size: 0.9rem;          /* 本文サイズに統一 */
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  margin: 0 0 14px;
}
.footer-distributor {
  font-size: 0.9rem;          /* 本文サイズに統一 */
  font-weight: 600;
  color: var(--primary-light);
  margin: 0;
}

/* Nav columns */
.footer-col-title {
  font-size: 0.7rem;          /* ラベル専用サイズ */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: block;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.footer-links a {
  color: rgba(255,255,255,0.75); /* 読みやすいコントラスト */
  font-size: 0.9rem;             /* 本文サイズに統一 */
  transition: color var(--transition);
}
.footer-links a:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }

/* Contact column */
.footer-address { font-style: normal; display: flex; flex-direction: column; gap: 6px; }
.footer-address-zip  { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin: 0; }
.footer-address-line {
  font-size: 0.9rem;           /* 本文サイズに統一 */
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin: 0 0 4px;
}
.footer-address-item { margin: 0; }
.footer-address-item a {
  font-size: 0.9rem;           /* 本文サイズに統一 */
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.footer-address-item a:hover { color: white; }
.footer-address-hours {
  font-size: 0.8rem;           /* 補助サイズ */
  color: rgba(255,255,255,0.45);
  margin: 6px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-copy  { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.85); }

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── WordPress Core Overrides ── */
.wp-block-image { margin: 0; }
.aligncenter    { text-align: center; }
.alignleft      { float: left; margin-right: 20px; margin-bottom: 10px; }
.alignright     { float: right; margin-left: 20px; margin-bottom: 10px; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}
#wpadminbar ~ #site-header { top: 32px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-actions { gap: 12px; }
  .btn-header-cta { padding: 6px 14px; font-size: 0.78rem; }
  .site-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 16px 24px 24px;
    transform: translateY(-4px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-menu { flex-direction: column; gap: 2px; }
  .nav-menu > li > a { padding: 12px 14px; font-size: 0.95rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 36px; }
  .about-strip { gap: 48px; }
  .hero-bg-svg { width: 38vw; opacity: 0.1; }
}
@media (max-width: 768px) {
  .nav-actions { gap: 6px; }
  .btn-header-cta { padding: 5px 10px; font-size: 0.72rem; }
  .logo-text { font-size: 0.88rem; }
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding: 104px 0 60px; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.6rem); }
  .hero-desc  { font-size: 0.97rem; }
  .hero-bg-svg { display: none; }
  .hero-badges { gap: 14px; }
  .product-cats   { grid-template-columns: 1fr; gap: 16px; }
  .about-strip    { grid-template-columns: 1fr; gap: 40px; }
  .about-visual   { display: none; }
  .about-intro    { grid-template-columns: 1fr; padding: 60px 0; }
  .about-intro-reverse .about-intro-text,
  .about-intro-reverse .about-intro-visual { grid-column: auto; grid-row: auto; }
  .about-stats    { grid-template-columns: 1fr 1fr; }
  .partner-grid   { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid   { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrapper { padding: 24px 20px; }
  .news-grid      { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cert-grid      { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-detail-inner { grid-template-columns: 1fr; gap: 32px; }
  .page-hero-title { font-size: 1.8rem; }
  .cta-title      { font-size: 1.6rem; }
  .section-title  { font-size: 1.7rem; }
  .hero-actions   { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .filter-tabs    { gap: 6px; }
  .filter-btn     { padding: 7px 16px; font-size: 0.84rem; }
}
@media (max-width: 480px) {
  .nav-actions { gap: 4px; }
  .btn-header-cta { padding: 4px 8px; font-size: 0.65rem; }
  .logo-text { font-size: 0.8rem; }
  .header-inner { height: 64px; }
  .site-nav { top: 64px; }
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .footer-top   { grid-template-columns: 1fr; gap: 24px; }
  .product-grid { grid-template-columns: 1fr; }
  .about-stats  { grid-template-columns: 1fr 1fr; }
  .news-grid    { grid-template-columns: 1fr; }
  .hero-badges  { flex-direction: column; gap: 12px; }
  .cert-list    { gap: 24px; }
  .hero-title   { font-size: 1.85rem; }
  #wpadminbar ~ #site-header { top: 46px; }
  .site-nav { top: 110px; }
  .product-cats { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: 1fr; }
}

/* ── History Table (Spacious Redesign) ── */
.history-timeline {
    max-width: 800px;
    margin: 0 auto;
    border-top: 2px solid var(--primary);
    padding: 0;
}
.history-item {
    display: flex;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    margin: 0;
    align-items: center;
}
.history-item:last-child {
    border-bottom: none;
}
.history-date {
    width: 140px;
    text-align: left;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-en);
    font-size: 1.1rem;
    padding: 0;
    flex-shrink: 0;
}
.history-content {
    flex: 1;
    padding: 0;
}
.history-content h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 600;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 0;
        gap: 14px;
    }
    .history-date {
        width: auto;
        padding: 6px 14px;
        font-size: 0.95rem;
        background: rgba(0, 105, 92, 0.08); /* 淡い緑の背景 */
        border-radius: 4px;
        color: var(--primary);
        text-align: center;
    }
    .history-content h4 {
        font-size: 0.97rem;
    }
}

/* ── Google Fonts ── */
/* ── Legal pages (privacy policy / terms) ── */
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.legal-article {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px clamp(20px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.legal-header { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 2px solid var(--primary); }
.legal-title  { font-size: 1.6rem; font-weight: 700; color: var(--text-main); margin: 0 0 8px; }
.legal-meta   { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.legal-lead   { font-size: 0.97rem; line-height: 1.95; color: var(--text-main); margin-bottom: 32px; }

.legal-section { margin-bottom: 32px; }
.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark, var(--primary));
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.5;
}
.legal-section p {
  font-size: 0.95rem;
  line-height: 1.95;
  color: var(--text-main);
  margin: 0 0 12px;
}
.legal-section ul { margin: 0 0 12px 1.4em; padding: 0; }
.legal-section li { font-size: 0.95rem; line-height: 1.85; color: var(--text-main); margin-bottom: 6px; }

.legal-contact-box {
  margin-top: 14px;
  padding: 18px 22px;
  background: var(--bg-alt, #f5faf9);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
}
.legal-contact-box p { margin: 0 0 6px; font-size: 0.92rem; }
.legal-contact-box p:last-child { margin-bottom: 0; }
.legal-contact-box a { color: var(--primary); text-decoration: underline; }

.legal-foot {
  margin-top: 40px;
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── HTML Sitemap page ── */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.sitemap-col {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.sitemap-col-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark, var(--primary));
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitemap-list > li {
  margin: 0 0 10px;
  font-size: 0.93rem;
  line-height: 1.55;
}
.sitemap-list a {
  color: var(--text-main);
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  transition: color var(--transition);
}
.sitemap-list a:hover { color: var(--primary); text-decoration: underline; }
.sitemap-sublist {
  list-style: none;
  margin: 8px 0 0 14px;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--border);
}
.sitemap-sublist li {
  margin: 6px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.sitemap-sublist a { color: var(--text-muted); }
.sitemap-date {
  font-family: var(--font-en);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 70px;
}
.sitemap-foot {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.sitemap-foot a { color: var(--primary); text-decoration: underline; }

/* ── Performance Data Section ── */
.perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.perf-item {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.perf-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: zoom-in;
  overflow: hidden;
}
.perf-thumb {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}
.perf-thumb-btn:hover .perf-thumb { transform: scale(1.02); }
.perf-zoom-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 105, 92, 0.55);
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.perf-thumb-btn:hover .perf-zoom-icon,
.perf-thumb-btn:focus-visible .perf-zoom-icon { opacity: 1; }
.perf-caption {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}
.perf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
.perf-download-btn:hover { color: var(--primary-dark); }

/* ── Performance Lightbox ── */
.perf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.perf-lightbox[hidden] { display: none; }
.perf-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}
.perf-lightbox-content {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.perf-lightbox-img {
  display: block;
  width: 100%;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  flex: 1;
}
.perf-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 16px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  gap: 12px;
  flex-shrink: 0;
}
.perf-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  color: var(--text);
  transition: background var(--transition), transform var(--transition);
  z-index: 1;
}
.perf-lightbox-close:hover { background: var(--bg-alt); transform: scale(1.08); }

/* ── Performance inline (product list card) ── */
.perf-inline {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.perf-inline-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-family: var(--font-en);
  margin: 0 0 10px;
}
.perf-inline-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.perf-inline .perf-thumb-btn { border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.perf-inline .perf-thumb { max-width: 180px; height: auto; }

/* ── Product Spec Table (hardcoded fallback) ── */
.product-specs-table {
  margin-bottom: 20px;
}
.pspec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 16px;
}
.pspec-table th,
.pspec-table td {
  padding: 9px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
.pspec-table tr:last-child th,
.pspec-table tr:last-child td { border-bottom: none; }
.pspec-table th {
  width: 130px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-alt);
  white-space: nowrap;
  font-size: 0.82rem;
}
.pspec-table td {
  color: var(--text);
}
.pspec-manufacturer {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.pspec-custom-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--primary);
  background: var(--bg-alt2);
  border: 1px solid rgba(0,105,92,0.18);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 10px 0 0;
  line-height: 1.5;
}
.pspec-custom-note svg { flex-shrink: 0; margin-top: 2px; stroke: var(--primary); }
