/*
Theme Name:   飯島機工 Child Theme
Theme URI:    https://iijimakiko.co.jp
Description:  Swell 子テーマ for 飯島機工株式会社（A案・和モダン）
Author:       YS Wise Company
Version:      2.0.1
Template:     swell
Text Domain:  iijima-kiko-child

=== Design Tokens（A案・和モダン）===
Main:        #F09020（オレンジ）
BG:          #0E0B08（温かみのある黒）
Sub BG:      #14100A / #100C08 / #0C0A07
Text:        #FFF8EE
Border:      rgba(240,144,32,0.14)
Fonts:       Barlow Condensed / Noto Serif JP / Shippori Mincho
*/

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --orange: #F09020; }
/* スマホのスライドメニュー(閉時 translateX(100%))が画面右外に出て横スクロールを生むのを防ぐ。
   clip は hidden と違い position:sticky を壊さない（未対応ブラウザは hidden にフォールバック）。 */
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  background: #0E0B08;
  color: #FFF8EE;
  font-family: 'Noto Serif JP', serif;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* warm radial glow */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(240,144,32,0.06), transparent 65%);
}

/* ====== COMMON ====== */
.barlow { font-family: 'Barlow Condensed', sans-serif; }
.mincho { font-family: 'Shippori Mincho', serif; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.section { padding: 96px 0; position: relative; }
.section-alt { background: #14100A; }
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px;
  font-weight: 400; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(240,144,32,0.7);
}
.section-label::before {
  content: ''; display: inline-block; width: 36px; height: 1px;
  background: rgba(240,144,32,0.5); flex-shrink: 0;
}
.section-heading {
  font-family: 'Shippori Mincho', serif; font-size: 32px; font-weight: 600;
  letter-spacing: 0.14em; color: #fff; margin: 16px 0 44px;
}
.lead {
  font-size: 14px; color: rgba(255,248,238,0.69); line-height: 2.1;
  letter-spacing: 0.04em; max-width: 720px; margin: -28px 0 44px;
}
/* 改行のバランス調整：見出し・短文の各行の長さを揃え、1〜2字だけ落ちる不格好な改行を防ぐ。
   未対応ブラウザは無視（害なし）。さらに自然な日本語改行が必要なら将来 BudouX を追加可。 */
.section-heading, .lead, .hero-jp, .contact-card-lead, .privacy-intro,
.cat-name, .maker-name, .product-title, .news-title, .mega-name, .hero-cat-label {
  text-wrap: balance;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; background: transparent; color: #F09020;
  font-family: 'Barlow Condensed', sans-serif; font-size: 15px;
  font-weight: 400; letter-spacing: 0.28em; text-transform: uppercase;
  border: 1px solid rgba(240,144,32,0.55); cursor: pointer; transition: all 0.25s;
}
.btn-primary:hover { background: rgba(240,144,32,0.12); border-color: #F09020; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; background: transparent; color: rgba(255,248,238,0.85);
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px;
  font-weight: 400; letter-spacing: 0.22em; border: 1px solid rgba(240,144,32,0.3);
  cursor: pointer; transition: all 0.25s;
}
.btn-outline:hover { background: rgba(240,144,32,0.08); border-color: rgba(240,144,32,0.6); color: #F09020; }
.tag {
  display: inline-block; padding: 3px 12px; border: 1px solid rgba(240,144,32,0.3);
  font-family: 'Noto Serif JP', serif; font-size: 14px; letter-spacing: 0.08em; color: rgba(240,144,32,0.85);
}
/* カテゴリバッジ（メイン＋関連カテゴリをアイコン付きで表示） */
.cat-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cat-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 13px 4px 10px;
  border: 1px solid rgba(240,144,32,0.3);
  font-family: 'Noto Serif JP', serif; font-size: 14px; letter-spacing: 0.08em;
  color: rgba(240,144,32,0.85); transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.cat-badge:hover { border-color: #F09020; color: #F09020; background: rgba(240,144,32,0.08); }
.cat-badge-ic { display: inline-flex; }
.cat-badge-ic svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }
.breadcrumb {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; color: rgba(255,248,238,0.52); padding: 16px 0 36px; letter-spacing: 0.06em;
}
.breadcrumb a { color: rgba(255,248,238,0.52); transition: color 0.2s; }
.breadcrumb a:hover { color: #F09020; }
.breadcrumb-sep { color: rgba(240,144,32,0.3); }
.breadcrumb-current { color: rgba(255,248,238,0.74); }

/* ====== HEADER ====== */
header.site-header {
  background: rgba(14,11,8,0.92); border-bottom: 1px solid rgba(240,144,32,0.14);
  height: 66px; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.site-logo img { height: 28px; width: auto; }
.site-logo { cursor: pointer; transition: opacity 0.2s; }
.site-logo:hover { opacity: 0.82; }
.logo-ja { font-size: 13px; font-weight: 300; color: rgba(255,248,238,0.65); margin-top: 5px; letter-spacing: 0.18em; }
.header-nav { display: flex; align-items: center; gap: 34px; }
.header-nav a { font-size: 15px; font-weight: 400; color: rgba(255,248,238,0.8); letter-spacing: 0.08em; transition: color 0.2s; }
.header-nav a:hover { color: #fff; }
.header-nav a.current { color: #F09020; }
.header-nav a.btn-primary { padding: 10px 22px; font-size: 14px; letter-spacing: 0.18em; }
.header-nav a[data-mega] { cursor: pointer; }
.header-nav a[data-mega]::after { content: "\25BE"; font-size: 9px; margin-left: 7px; color: rgba(240,144,32,0.7); display: inline-block; transition: transform 0.25s; }
.header-nav a[data-mega].current { color: #F09020; }
.header-nav a[data-mega].current::after { transform: rotate(180deg); }

/* ====== MEGA MENU (取扱製品ドロップダウン) ====== */
.mega-menu {
  position: fixed; top: 66px; left: 0; right: 0; z-index: 99;
  background: rgba(12,9,6,0.97); border-bottom: 1px solid rgba(240,144,32,0.32);
  backdrop-filter: blur(14px); box-shadow: 0 26px 50px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.mega-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mega-inner { max-width: 1280px; margin: 0 auto; padding: 28px 24px 34px; }
.mega-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.mega-title { font-family: 'Shippori Mincho', serif; font-size: 16px; font-weight: 600; letter-spacing: 0.1em; color: #fff; }
.mega-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: 0.28em; color: rgba(240,144,32,0.7); }
.mega-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.mega-item { display: flex; align-items: center; gap: 13px; padding: 12px 14px; cursor: pointer; border: 1px solid rgba(240,144,32,0.1); background: rgba(255,255,255,0.015); transition: border-color 0.2s, background 0.2s; }
.mega-item:hover { border-color: #F09020; background: rgba(240,144,32,0.06); }
.mega-ic { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,248,238,0.4); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color 0.2s, box-shadow 0.2s; }
.mega-ic svg { width: 46%; height: 46%; stroke: #FFF8EE; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.mega-item:hover .mega-ic { border-color: #F09020; box-shadow: 0 0 0 4px rgba(240,144,32,0.08); }
.mega-item:hover .mega-ic svg { stroke: #F09020; }
.mega-name { font-family: 'Shippori Mincho', serif; font-size: 15.5px; letter-spacing: 0.04em; color: #fff; }
@media (max-width: 980px) { .mega-grid { grid-template-columns: repeat(2,1fr); } }

/* ====== SCROLL CUE (製品詳細→関連製品) ====== */
.scroll-cue {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 95; display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.45s;
}
.scroll-cue.show { opacity: 1; pointer-events: auto; }
.scroll-cue .cue-label { font-family: 'Shippori Mincho', serif; font-size: 14px; letter-spacing: 0.18em; color: rgba(255,248,238,0.82); text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
.scroll-cue .cue-chev {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(240,144,32,0.55);
  display: flex; align-items: center; justify-content: center; background: rgba(12,9,6,0.6);
  backdrop-filter: blur(4px); animation: cueBounce 1.5s ease-in-out infinite; transition: border-color 0.2s, box-shadow 0.2s;
}
.scroll-cue .cue-chev svg { width: 15px; height: 15px; stroke: #F09020; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scroll-cue:hover .cue-chev { border-color: #F09020; box-shadow: 0 0 0 5px rgba(240,144,32,0.1); }
@keyframes cueBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .cue-chev { animation: none; } }

/* ====== RAIL DIVIDER MOTIF ====== */
.rail-divider { position: relative; height: 14px; margin-top: 40px; max-width: 480px; }
.rail-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px;
  background: linear-gradient(90deg, #F09020 55%, rgba(240,144,32,0));
}
.rail-divider::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background-image: linear-gradient(90deg, rgba(240,144,32,0.45) 0 2px, transparent 2px 100%);
  background-size: 28px 14px;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent);
  mask-image: linear-gradient(90deg, #000 55%, transparent);
}

/* ====== HERO (TOP) — full-bleed moving background + category picker ====== */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 66px);
  display: flex; align-items: center; justify-content: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #0C0A07; }
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 75% 60% at 50% 42%, transparent, rgba(14,11,8,0.45) 100%),
    linear-gradient(180deg, rgba(14,11,8,0.5) 0%, rgba(14,11,8,0.32) 38%, rgba(14,11,8,0.9) 100%); }
.hero-inner { position: relative; z-index: 2; text-align: center; width: 100%; max-width: 1200px; padding: 26px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: clamp(24px,3vw,40px); }
.hero-sub { display: flex; flex-direction: column; align-items: center; gap: clamp(14px,1.8vw,22px); }
.hero-logo { display: block; width: clamp(240px,30vw,520px); height: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,0.5)); }
.hero-jp {
  text-align: center; font-family: 'Shippori Mincho', serif; font-weight: 600;
  font-size: clamp(15px,1.7vw,22px); letter-spacing: 0.2em; color: #fff; white-space: nowrap;
  text-shadow: 0 2px 22px rgba(0,0,0,0.6);
}
.hero-jp .rule { width: 44px; height: 1px; background: rgba(240,144,32,0.6); margin: 14px auto 0; }
/* category icon picker */
.hero-cats { display: flex; justify-content: center; gap: clamp(10px,2.2vw,38px); flex-wrap: wrap; margin-top: 0; }
.hero-cat { display: flex; flex-direction: column; align-items: center; gap: 11px; cursor: pointer; }
.hero-cat-ring {
  width: clamp(74px,7.2vw,100px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255,248,238,0.45); background: rgba(14,11,8,0.18); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.hero-cat-ring svg { width: 42%; height: 42%; stroke: #FFF8EE; fill: none; transition: stroke 0.3s; }
.hero-cat:hover .hero-cat-ring {
  border-color: #F09020; transform: translateY(-5px);
  box-shadow: 0 0 0 5px rgba(240,144,32,0.1), 0 14px 34px rgba(240,144,32,0.22);
}
.hero-cat:hover .hero-cat-ring svg { stroke: #F09020; }
.hero-cat-label {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: 'Shippori Mincho', serif; font-size: 14px; letter-spacing: 0.08em; color: #fff;
}
.hero-cat-label::before { content: '\203A'; color: #F09020; font-size: 15px; }
@media (max-width: 700px) {
  .hero { min-height: auto; }
  .hero-inner { padding: 56px 20px 64px; }
  .hero-logo { width: 100%; }
  /* 5カテゴリを 3＋2 のバランス配置に（各行とも中央寄せ）。4＋1のポツン落ちを解消 */
  .hero-cats { gap: 26px 18px; max-width: 340px; margin: 0 auto; }
  .hero-cat { width: calc((100% - 36px) / 3); gap: 9px; }
  .hero-cat-ring { width: 82px; }
  .hero-cat-label { font-size: 12.5px; }
}

/* ====== STATS BAR ====== */
.stats-bar { background: #14100A; border-top: 1px solid rgba(240,144,32,0.4); border-bottom: 1px solid rgba(240,144,32,0.14); }
.stats-bar-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { padding: 34px 24px; border-right: 1px solid rgba(240,144,32,0.12); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-value { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 700; color: #F09020; line-height: 1; letter-spacing: 0.02em; }
.stat-value span { font-size: 17px; font-weight: 400; }
.stat-label { font-size: 14px; color: rgba(255,248,238,0.64); margin-top: 8px; letter-spacing: 0.1em; }

/* ====== CATEGORY GRID ====== */
.category-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1px; background: rgba(240,144,32,0.14); }
.category-card { background: #100C08; padding: 18px 20px; cursor: pointer; position: relative; overflow: hidden; transition: background 0.25s; min-height: 134px; display: flex; flex-direction: column; }
.category-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: #F09020; transform: scaleX(0); transform-origin: left; transition: transform 0.35s; }
.category-card:hover { background: #161009; }
.category-card:hover::after { transform: scaleX(1); }
.cat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 400; letter-spacing: 0.2em; color: rgba(240,144,32,0.6); margin-bottom: 0; }
.cat-name { font-family: 'Shippori Mincho', serif; font-size: clamp(16px,1.25vw,19px); font-weight: 600; letter-spacing: 0.04em; line-height: 1.3; margin-top: auto; }
.cat-arrow { position: absolute; bottom: 16px; right: 18px; font-size: 16px; color: rgba(240,144,32,0.3); transition: color 0.2s, transform 0.2s; }
.category-card:hover .cat-arrow { color: #F09020; transform: translateX(4px); }
.cat-icon {
  position: absolute; top: 20px; right: 20px;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255,248,238,0.4); background: rgba(14,11,8,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cat-icon svg { width: 46%; height: 46%; stroke: #FFF8EE; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s; }
.category-card:hover .cat-icon { border-color: #F09020; box-shadow: 0 0 0 4px rgba(240,144,32,0.08); }
.category-card:hover .cat-icon svg { stroke: #F09020; }

/* ====== MAKER GRID（協力会社） ====== */
.maker-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(240,144,32,0.14); }
.maker-card { background: #100C08; padding: 30px; position: relative; overflow: hidden; transition: background 0.25s; cursor: pointer; }
.maker-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: #F09020; transform: scaleX(0); transform-origin: left; transition: transform 0.35s; }
.maker-card:hover { background: #161009; }
.maker-card:hover::after { transform: scaleX(1); }
.maker-name { font-family: 'Shippori Mincho', serif; font-size: 16px; font-weight: 500; letter-spacing: 0.05em; margin-bottom: 5px; }
.maker-en { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: 0.1em; color: rgba(255,248,238,0.55); margin-bottom: 12px; }
.maker-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ====== PRODUCT GRID ====== */
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(240,144,32,0.14); }
.product-card { background: #100C08; position: relative; overflow: hidden; cursor: pointer; }
.product-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: #F09020; transform: scaleX(0); transform-origin: left; transition: transform 0.35s; }
.product-card:hover::after { transform: scaleX(1); }
.product-img { width: 100%; aspect-ratio: 4/3; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img:has(span) { background: #F5F3EF; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-img span { display: flex; flex-direction: column; align-items: center; gap: 7px; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; color: #B0AAA0; letter-spacing: 0.16em; }
.product-img span::before { content: ''; width: 36px; height: 36px; opacity: 0.75; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B0AAA0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.5'/%3E%3Cpath d='M21 16l-5-5L5 20'/%3E%3C/svg%3E") center / contain no-repeat; }
.product-body { padding: 18px 22px; position: relative; z-index: 2; transition: background 0.25s; }
.product-title { font-family: 'Shippori Mincho', serif; font-size: 15px; font-weight: 500; letter-spacing: 0.04em; margin-bottom: 5px; }
.product-model { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: 0.08em; color: rgba(255,248,238,0.65); }
.product-overlay {
  position: absolute; inset: 0; background: rgba(240,144,32,0.9);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s;
  font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 600;
  letter-spacing: 0.18em; color: #0E0B08;
}
.product-card:hover .product-overlay { opacity: 1; }
/* ホバー（オレンジ）時：製品名エリアもオレンジにして文字を黒く＝視認性を確保 */
.product-card:hover .product-body { background: rgba(240,144,32,0.9); }
.product-card:hover .product-title { color: #0E0B08; }
.product-card:hover .product-model { color: rgba(14,11,8,0.72); }

/* ====== FILTER BAR ====== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 22px 0; border-bottom: 1px solid rgba(240,144,32,0.14); }
.filter-btn {
  padding: 9px 20px; background: transparent; border: 1px solid rgba(240,144,32,0.22);
  color: rgba(255,248,238,0.69); font-family: 'Noto Serif JP', serif; font-size: 15px; letter-spacing: 0.06em;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.filter-btn:hover, .filter-btn.active { background: rgba(240,144,32,0.12); border-color: #F09020; color: #F09020; }

/* ====== CONTACT (phone + mail) ====== */
.contact-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(240,144,32,0.16); border: 1px solid rgba(240,144,32,0.16); margin-top: 8px; }
.contact-card { background: #14100A; padding: 40px 36px; display: flex; flex-direction: column; align-items: flex-start; }
.contact-card-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: 0.18em; color: rgba(255,248,238,0.6); margin-bottom: 16px; white-space: nowrap; }
.contact-card-lead { font-size: 15px; color: rgba(255,248,238,0.82); line-height: 1.9; margin-bottom: 22px; }
.contact-tel { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(30px,3.4vw,44px); font-weight: 700; letter-spacing: 0.03em; color: #F09020; line-height: 1.05; text-decoration: none; white-space: nowrap; }
.contact-card-note { font-size: 13px; color: rgba(255,248,238,0.55); margin-top: 16px; line-height: 1.7; }
.contact-mail-btn { margin-top: 2px; }
.contact-tip { margin-top: 28px; padding: 22px 24px; background: #0C0A07; border: 1px solid rgba(240,144,32,0.2); border-left: 3px solid #F09020; font-size: 14px; color: rgba(255,248,238,0.78); line-height: 1.95; letter-spacing: 0.03em; }
.contact-tip strong { color: #fff; font-weight: 600; }
@media (max-width: 700px) { .contact-2col { grid-template-columns: 1fr; } }

/* ====== ACCESS (グーグルマップ) ====== */
.access-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1px; background: rgba(240,144,32,0.16); border: 1px solid rgba(240,144,32,0.16); }
.access-info { background: #14100A; padding: 36px 34px; display: flex; flex-direction: column; gap: 22px; }
.access-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.access-key { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: 0.12em; color: rgba(240,144,32,0.7); padding-top: 3px; }
.access-val { font-size: 15px; color: rgba(255,248,238,0.86); line-height: 1.8; letter-spacing: 0.03em; word-break: keep-all; }
.access-map { background: #0C0A07; min-height: 320px; position: relative; }
.access-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }
@media (max-width: 700px) { .access-grid { grid-template-columns: 1fr; } .access-map { min-height: 280px; } }

/* ====== NEWS ====== */
.news-list { border-top: 1px solid rgba(240,144,32,0.16); }
.news-item { display: grid; grid-template-columns: 124px 92px 1fr 24px; align-items: center; gap: 22px; padding: 21px 6px; border-bottom: 1px solid rgba(240,144,32,0.12); cursor: pointer; transition: background 0.2s; }
.news-item:hover { background: #14100A; }
.news-date { font-family: 'Barlow Condensed', sans-serif; font-size: 16px; letter-spacing: 0.08em; color: rgba(255,248,238,0.6); }
.news-tag { justify-self: start; font-size: 12px; letter-spacing: 0.08em; color: #F09020; border: 1px solid rgba(240,144,32,0.4); padding: 4px 12px; white-space: nowrap; }
.news-title { font-size: 16px; color: rgba(255,248,238,0.9); letter-spacing: 0.03em; line-height: 1.55; }
.news-item .cat-arrow { position: static; bottom: auto; right: auto; font-size: 16px; color: rgba(240,144,32,0.35); transition: color 0.2s, transform 0.2s; }
.news-item:hover .cat-arrow { color: #F09020; transform: translateX(3px); }
@media (max-width: 700px) {
  .news-item { grid-template-columns: auto 1fr; gap: 6px 14px; padding: 16px 4px; }
  .news-item .cat-arrow { display: none; }
  .news-title { grid-column: 1 / -1; font-size: 15px; }
}

/* ====== PRODUCT DETAIL ====== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-main-img { width: 100%; aspect-ratio: 1; background: #fff; border: 1px solid rgba(240,144,32,0.18); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; }
.product-main-img span { display: flex; flex-direction: column; align-items: center; gap: 9px; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; color: #B0AAA0; letter-spacing: 0.16em; }
.product-main-img span::before { content: ''; width: 52px; height: 52px; opacity: 0.75; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B0AAA0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='8.5' cy='9.5' r='1.5'/%3E%3Cpath d='M21 16l-5-5L5 20'/%3E%3C/svg%3E") center / contain no-repeat; }
.product-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.product-thumb { width: 76px; height: 76px; background: #fff; border: 1px solid rgba(240,144,32,0.2); cursor: pointer; transition: border-color 0.2s; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-thumb.active, .product-thumb:hover { border-color: #F09020; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 5px; box-sizing: border-box; }
.detail-title { font-family: 'Shippori Mincho', serif; font-size: 24px; font-weight: 600; letter-spacing: 0.06em; color: #fff; margin-bottom: 8px; }
.detail-model { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; letter-spacing: 0.1em; color: rgba(255,248,238,0.65); margin-bottom: 22px; }
.detail-desc { font-size: 14px; line-height: 2.1; letter-spacing: 0.04em; color: rgba(255,248,238,0.82); }
.maker-box { padding: 18px 20px; background: #14100A; border: 1px solid rgba(240,144,32,0.16); margin: 24px 0; }
/* 外部リンク欄（任意採用） */
.external-links { margin: 24px 0; }
.external-links-label { font-size: 14px; color: rgba(255,248,238,0.6); margin-bottom: 12px; letter-spacing: 0.06em; }
.external-link { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #14100A; border: 1px solid rgba(240,144,32,0.18); color: rgba(255,248,238,0.86); font-size: 14px; letter-spacing: 0.04em; transition: border-color 0.2s, color 0.2s; }
.external-link + .external-link { margin-top: 10px; }
.external-link:hover { border-color: rgba(240,144,32,0.55); color: #F09020; }
.external-link-icon { margin-left: auto; font-family: 'Barlow Condensed', sans-serif; font-size: 16px; color: rgba(240,144,32,0.7); }
.external-link:hover .external-link-icon { color: #F09020; }
.pdf-list { list-style: none; }
.pdf-list li a {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: #14100A; border: 1px solid rgba(240,144,32,0.14); color: rgba(255,248,238,0.82);
  font-size: 15px; letter-spacing: 0.04em; margin-bottom: 6px; transition: all 0.2s;
}
.pdf-list li a:hover { border-color: rgba(240,144,32,0.5); color: #F09020; }

/* ====== MAKER DETAIL（協力会社詳細） ====== */
.maker-hero-logo { background: #14100A; padding: 18px 28px; border: 1px solid rgba(240,144,32,0.22); font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700; color: #F09020; letter-spacing: 0.12em; }
.maker-product-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 24px; align-items: start;
  padding: 24px 20px; border-bottom: 1px solid rgba(240,144,32,0.12); transition: background 0.2s; cursor: pointer;
}
.maker-product-item:hover { background: #14100A; }
.maker-product-img { width: 100%; height: 124px; background: #fff; border: 1px solid rgba(240,144,32,0.14); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.maker-product-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.maker-product-num { position: absolute; bottom: 6px; left: 6px; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; color: rgba(240,144,32,0.7); background: rgba(14,11,8,0.7); padding: 2px 7px; }

/* ====== TIMELINE ====== */
.timeline { position: relative; padding-left: 34px; max-width: 640px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 4px; width: 1px; background: rgba(240,144,32,0.4); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -39px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #F09020; box-shadow: 0 0 0 4px #0E0B08, 0 0 0 5px rgba(240,144,32,0.5); }
.timeline-year { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; color: #F09020; margin-bottom: 5px; }
.timeline-text { font-size: 15px; color: rgba(255,248,238,0.74); line-height: 1.95; letter-spacing: 0.04em; }

/* ====== INFO TABLE ====== */
.info-table { width: 100%; border-collapse: collapse; max-width: 760px; margin-bottom: 88px; }
.info-table tr { border-bottom: 1px solid rgba(240,144,32,0.12); }
.info-table th { padding: 18px 22px; text-align: left; font-size: 15px; font-weight: 400; color: rgba(240,144,32,0.7); width: 150px; background: #14100A; white-space: nowrap; letter-spacing: 0.08em; }
.info-table td { padding: 18px 22px; font-size: 14px; color: rgba(255,248,238,0.9); letter-spacing: 0.04em; }
@media (max-width: 700px) {
    .info-table tr { display: block; padding: 4px 0; }
    .info-table th, .info-table td { display: block; width: auto; background: transparent; white-space: normal; }
    .info-table th { padding: 12px 18px 2px; }
    .info-table td { padding: 0 18px 12px; }
}

/* 製品動画（YouTube埋め込み・レスポンシブ16:9） */
.product-video { margin-top: 26px; }
.product-video .product-spec-label { /* 「仕様」見出しと同じスタイルを流用 */ }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 10px; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ====== CONTACT FORM ====== */
.contact-form label { display: block; font-size: 15px; font-weight: 400; color: rgba(255,248,238,0.82); margin-bottom: 8px; letter-spacing: 0.06em; }
.contact-form label .req, .contact-form label .required { color: #F09020; margin-left: 5px; font-size: 14px; }
.contact-form input:not([type="checkbox"]):not([type="radio"]), .contact-form select, .contact-form textarea {
  width: 100%; background: #0C0A07; border: 1px solid rgba(240,144,32,0.18); color: #fff;
  padding: 13px 16px; font-family: 'Noto Serif JP', serif; font-size: 14px; outline: none;
  transition: border-color 0.2s; -webkit-appearance: none; appearance: none; letter-spacing: 0.03em;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: rgba(240,144,32,0.6); }
.contact-form textarea { resize: vertical; min-height: 164px; }
/* セレクト（お問い合わせ種別）に▼を付けて「選択できる」ことを示す */
.contact-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F09020' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; cursor: pointer;
}
/* 同意チェックボックス（プライバシーポリシー）を通常のチェックボックス表示に */
.cf7-privacy .wpcf7-list-item { margin: 0; }
.cf7-privacy label { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.cf7-privacy input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; -webkit-appearance: auto; appearance: auto; accent-color: #F09020; cursor: pointer; }
.cf7-privacy a { color: #F09020; }
.field-group, .cf7-field-group { margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ====== PRIVACY POLICY ====== */
.privacy-intro { font-size: 16px; color: rgba(255,248,238,0.86); line-height: 2; letter-spacing: 0.03em; margin-bottom: 12px; }
.privacy-sec { padding: 28px 0; border-top: 1px solid rgba(240,144,32,0.14); }
.privacy-sec h2 { font-family: 'Shippori Mincho', serif; font-size: 19px; font-weight: 600; color: #fff; letter-spacing: 0.06em; margin-bottom: 14px; }
.privacy-sec p { font-size: 15px; color: rgba(255,248,238,0.82); line-height: 2; letter-spacing: 0.03em; }
.privacy-sec ul { margin: 12px 0 0; padding-left: 0; list-style: none; }
.privacy-sec li { position: relative; padding-left: 22px; font-size: 15px; color: rgba(255,248,238,0.82); line-height: 1.95; letter-spacing: 0.03em; }
.privacy-sec li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; background: #F09020; }
.privacy-contact { margin-top: 14px; padding: 20px 24px; background: #14100A; border: 1px solid rgba(240,144,32,0.16); }
.privacy-contact p { font-size: 15px; color: rgba(255,248,238,0.86); line-height: 1.9; }
.privacy-date { margin-top: 32px; font-size: 14px; color: rgba(255,248,238,0.55); text-align: right; letter-spacing: 0.06em; }

/* ====== FOOTER ====== */
footer.site-footer { background: #0B0906; border-top: 1px solid rgba(240,144,32,0.14); padding: 56px 0 26px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-copy { font-size: 14px; color: rgba(255,248,238,0.45); text-align: center; padding-top: 26px; border-top: 1px solid rgba(240,144,32,0.1); letter-spacing: 0.08em; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 15px; color: rgba(255,248,238,0.64); letter-spacing: 0.05em; transition: color 0.2s; }
.footer-nav a:hover { color: #F09020; }

/* ====== ハンバーガー（モバイル） ====== */
.hamburger { display: none; width: 38px; height: 38px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: #FFF8EE; transition: transform 0.3s, opacity 0.3s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mobile-nav {
  position: fixed; top: 66px; left: 0; right: 0; z-index: 98; background: rgba(12,9,6,0.98);
  height: calc(100vh - 66px); height: calc(100dvh - 66px);
  backdrop-filter: blur(14px); display: flex; flex-direction: column; padding: 32px 24px; gap: 4px;
  transform: translateX(100%); transition: transform 0.3s; overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav.is-open { transform: translateX(0); }
/* 背景スクロールの抑止は JS（touchmove/wheel の抑止）で行う。
   body に overflow:hidden や position:fixed を当てると、メニューを内包する
   sticky ヘッダーがズレるため、ここでは CSS でレイアウトを変えない。 */
.mobile-nav a { font-family: 'Shippori Mincho', serif; font-size: 18px; letter-spacing: 0.08em; color: #FFF8EE; padding: 18px 8px; border-bottom: 1px solid rgba(240,144,32,0.12); }
.mobile-nav a:hover { color: #F09020; }

/* ====== RESPONSIVE ====== */
@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(2,1fr); }
  .maker-grid, .product-grid { grid-template-columns: repeat(2,1fr); }
  .product-detail { grid-template-columns: 1fr; gap: 36px; }
  .header-nav { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(240,144,32,0.12); }
  .category-grid, .maker-grid, .product-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .maker-product-item { grid-template-columns: 1fr; gap: 14px; }
  .section { padding: 64px 0; }
}

/* ====== 管理バー表示時（ログイン中）のメニュー位置補正 ======
   ヘッダーは追加CSSで管理バー分だけ下げているが、開くメニュー側も
   同じだけ下げないと上の項目がヘッダーの裏に隠れる。
   管理バー: 32px（PC ≥783px）/ 46px（スマホ ≤782px）。ヘッダー高さ66px。 */
.admin-bar .mega-menu { top: 98px; }            /* 32 + 66 */
.admin-bar .mobile-nav { top: 98px; height: calc(100vh - 98px); height: calc(100dvh - 98px); }   /* 32 + 66（780〜980px用） */
@media (max-width: 782px) {
  .admin-bar .mega-menu { top: 112px; }         /* 46 + 66 */
  .admin-bar .mobile-nav { top: 112px; height: calc(100vh - 112px); height: calc(100dvh - 112px); }  /* 46 + 66 */
}

/* =====================================================
   販売チャネルバッジ（ソロエル / e-SHOP）＋ 製品スペック表
===================================================== */
.channel-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.ch-badge {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid #F09020; color: #F09020;
  font-family: 'Shippori Mincho', serif; font-size: 12.5px;
  padding: 4px 11px; border-radius: 3px; letter-spacing: 0.06em; line-height: 1;
}
.ch-badge svg { width: 20px; height: 20px; flex: none; }
.ch-badge--en { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 13.5px; letter-spacing: 0.08em; }
.ch-badge--sm { font-size: 11px; padding: 2px 8px; gap: 5px; }
.ch-badge--sm svg { width: 22px; height: 22px; }
.ch-badge--sm.ch-badge--en { font-size: 12px; }
.product-body .channel-badges { margin: 8px 0 0; }
/* 製品カードのホバー（オレンジ反転）時：バッジを黒にして視認性を確保 */
.product-card:hover .ch-badge { border-color: rgba(14,11,8,0.55); color: #0E0B08; }

.product-spec { margin: 22px 0 8px; }
.product-spec-label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px;
  color: rgba(240,144,32,0.7); letter-spacing: 0.1em; margin-bottom: 10px;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid rgba(240,144,32,0.14); }
.spec-table tr:first-child { border-top: 1px solid rgba(240,144,32,0.14); }
.spec-table th.spec-key {
  text-align: left; font-weight: normal; color: rgba(255,248,238,0.6);
  padding: 9px 16px 9px 0; vertical-align: top; width: 34%; letter-spacing: 0.04em;
}
.spec-table td.spec-val { color: rgba(255,248,238,0.85); padding: 9px 0; line-height: 1.7; }
.spec-table td.spec-full { color: #F09020; padding: 12px 0 7px; font-weight: 500; letter-spacing: 0.04em; }

/* =====================================================
   ページネーション（製品一覧・ニュース一覧 共通）
   ※SWELL標準スタイルを打ち消すため !important で統一
===================================================== */
.iijima-pagination ul.page-numbers {
  display: flex !important; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
  list-style: none !important; padding: 0 !important; margin: 0 !important; background: none !important;
}
.iijima-pagination ul.page-numbers li {
  list-style: none !important; margin: 0 !important; padding: 0 !important; background: none !important;
}
.iijima-pagination li a.page-numbers,
.iijima-pagination li span.page-numbers {
  display: inline-flex !important; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 16px; margin: 0 !important;
  background: transparent !important; border: 1px solid rgba(240,144,32,0.35) !important;
  border-radius: 0 !important; box-shadow: none !important;
  color: rgba(255,248,238,0.8) !important; text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 400; letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.iijima-pagination li span.page-numbers.current,
.iijima-pagination li .page-numbers.current {
  background: #F09020 !important; color: #1a1206 !important; border-color: #F09020 !important;
}
.iijima-pagination li a.page-numbers:hover {
  background: rgba(240,144,32,0.12) !important; border-color: #F09020 !important; color: #F09020 !important;
}
.iijima-pagination li span.page-numbers.dots {
  border-color: transparent !important; background: none !important;
}
