/*
Theme Name: Ohmi Chemical-Tech Products
Theme URI: https://example.com/ohmi-chemicaltech
Author: 齋藤 (個人事業・制作見本)
Author URI: https://example.com
Description: 近江ケミカルテック株式会社（架空）の製品検索サイト用 自作WordPressテーマ。産業用薬剤200点超を「カテゴリー / 業態 / 用途 / 型番」の4軸で絞り込み＋SDS/カタログPDF管理。有料プラグイン（FacetWP等）を使わず admin-ajax による自作絞り込みで実装。製造業×製品検索の見本（ナックウェブ基準）。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ohmi-chemicaltech
Tags: product-catalog, manufacturing, custom-post-type, ajax-filter, responsive, japanese
*/

/* =========================================================
   0. デザイントークン（CSS変数で一元管理）
   ── 化学・薬剤メーカー＝クリーンな深いティール＋アクア
   ========================================================= */
:root {
  --brand:     #0c3a45;   /* ディープ・ペトロール（清潔感ある化学の深緑青） */
  --brand-2:   #0f4a58;
  --steel:     #3d5b63;
  --steel-2:   #6b878e;
  --accent:    #12b5a5;   /* アクア＝薬液・分子のイメージ（CTA/強調） */
  --accent-2:  #5fe3d0;
  --accent-dk: #0e9a8d;
  --amber:     #f2a922;   /* PDF/資料のアクセント（差し色） */
  --ink:       #14232a;
  --paper:     #f2f7f7;
  --paper-2:   #e5eef0;
  --white:     #ffffff;
  --line:      rgba(12, 58, 69, 0.12);
  --line-dk:   rgba(255, 255, 255, 0.14);
  --shadow:    0 18px 48px -24px rgba(12, 58, 69, 0.45);

  --font-sans: 'Plus Jakarta Sans', 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Zen Kaku Gothic New', 'Noto Sans JP', system-ui, sans-serif;

  --wrap: 1200px;
  --radius: 14px;
}

/* =========================================================
   1. リセット & ベース
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  font-feature-settings: "palt" 1, "pkna" 1;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.35; margin: 0; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: clamp(52px, 8vw, 108px) 0; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; color: var(--accent-dk); text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--accent-2); }
.section-title { font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: .01em; margin-bottom: 16px; }
.section-lead { max-width: 660px; color: var(--steel); font-size: 1.02rem; }
.empty-inline { color: var(--steel-2); font-size: .92rem; }

/* =========================================================
   2. ボタン
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 15px 30px; border-radius: 999px; font-weight: 700;
  font-size: .98rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #062b28; box-shadow: 0 12px 26px -12px rgba(18,181,165,.85); }
.btn--primary:hover { background: var(--accent-dk); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--brand); color: #fff; }
.btn--dark:hover { background: var(--brand-2); }
.btn--block { width: 100%; }
.btn__arrow { transition: transform .2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* =========================================================
   3. ヘッダー / ナビ
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px clamp(20px, 4vw, 48px);
  background: rgba(12, 58, 69, 0); backdrop-filter: blur(0px);
  transition: background .3s, backdrop-filter .3s, padding .3s;
}
.site-header.is-scrolled {
  background: rgba(12, 58, 69, .94); backdrop-filter: blur(8px);
  padding-top: 11px; padding-bottom: 11px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name { font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; line-height: 1.2; }
.brand__name small { display: block; font-size: .6rem; letter-spacing: .16em; color: var(--accent-2); font-weight: 500; }
.nav { display: flex; align-items: center; gap: clamp(12px, 1.8vw, 26px); }
.nav a { color: #fff; font-size: .92rem; font-weight: 500; opacity: .92; }
.nav a:hover { opacity: 1; color: var(--accent-2); }
.nav .btn { padding: 10px 20px; font-size: .86rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

@media (max-width: 980px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(80vw, 330px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 20px; padding: 40px; background: var(--brand);
    transform: translateX(100%); transition: transform .3s; z-index: 120; }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 1.06rem; }
  .nav-toggle { display: block; position: relative; z-index: 130; width: 30px; height: 22px; }
  .nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
  .nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2){ opacity: 0; }
  .nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================================
   4. ヒーロー ＋ 検索
   ========================================================= */
.hero {
  position: relative; min-height: 92svh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 100% at 82% 0%, rgba(18,181,165,.32), transparent 55%),
    linear-gradient(160deg, rgba(8,44,42,.92) 0%, rgba(10,56,52,.88) 55%, rgba(20,46,58,.85) 100%),
    url("img/hero.jpg") center 60%/cover no-repeat;
}
.hero::after { /* 分子ドットの薄いテクスチャ */
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: radial-gradient(rgba(95,227,208,.7) 1.4px, transparent 1.6px);
  background-size: 34px 34px;
  mask-image: radial-gradient(80% 80% at 70% 40%, #000, transparent 78%);
}
.hero__inner { position: relative; z-index: 2; padding: 130px 0 80px; }
.hero__q { font-size: clamp(2.4rem, 7.5vw, 5.2rem); line-height: 1.15; letter-spacing: .01em; }
.hero__q .em { color: var(--accent-2); position: relative; }
.hero__q .em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .1em; background: var(--accent); border-radius: 2px; }
.hero__sub { margin-top: 22px; font-size: clamp(1rem, 2.3vw, 1.25rem); font-weight: 500; color: rgba(255,255,255,.92); }
.hero__sub b { color: var(--accent-2); }

.hero-search { margin-top: 32px; display: flex; gap: 10px; max-width: 640px; }
.hero-search__input {
  flex: 1; padding: 16px 20px; border-radius: 999px; border: 2px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.96); color: var(--ink); font-size: 1rem; font-family: inherit;
}
.hero-search__input:focus { outline: 3px solid var(--accent-2); border-color: transparent; }
.hero-search__btn {
  flex: none; display: inline-flex; align-items: center; gap: .4em;
  padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #062b28; font-weight: 800; font-size: 1rem;
}
.hero-search__btn:hover { background: var(--accent-dk); color: #fff; }
.hero-search__chips { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .86rem; color: rgba(255,255,255,.7); }
.hero-search__chips a { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); color: #fff; }
.hero-search__chips a:hover { background: rgba(255,255,255,.12); border-color: var(--accent-2); }
.hero-search__all { border-color: transparent !important; color: var(--accent-2) !important; font-weight: 700; }

.hero__scroll { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.7); font-size: .66rem; letter-spacing: .2em; writing-mode: vertical-rl; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 38px; margin: 10px auto 0; background: rgba(255,255,255,.5); animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* =========================================================
   5. 探し方（HOW）
   ========================================================= */
.how__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.how__card {
  position: relative; display: block; padding: 30px 24px 26px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -22px rgba(12,58,69,.5); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.how__card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(12,58,69,.55); border-color: var(--accent); }
.how__card--accent { background: linear-gradient(160deg, var(--brand), var(--brand-2)); color: #fff; }
.how__card--accent p { color: rgba(255,255,255,.82); }
.how__no { font-family: var(--font-head); font-weight: 800; font-size: .84rem; letter-spacing: .12em; color: var(--accent-dk); }
.how__card--accent .how__no { color: var(--accent-2); }
.how__ico { display: block; font-size: 2rem; margin: 8px 0 12px; }
.how__card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.how__card p { color: var(--steel); font-size: .92rem; margin: 0; }

/* =========================================================
   6. カテゴリー一覧
   ========================================================= */
.categories { background: var(--paper); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.cat-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 24px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.cat-card__ico { font-size: 1.8rem; }
.cat-card__name { font-weight: 700; font-size: 1.06rem; color: var(--brand); }
.cat-card__count { font-size: .8rem; color: var(--accent-dk); font-weight: 700; }

/* =========================================================
   7. 業態・用途チップ
   ========================================================= */
.axes__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); }
.axes__title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 18px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; background: var(--paper-2); color: var(--brand);
  font-weight: 600; font-size: .92rem; border: 1px solid transparent; transition: .2s;
}
.chip-link small { font-size: .74rem; color: #fff; background: var(--accent-dk); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.chip-link:hover { background: #fff; border-color: var(--accent); color: var(--accent-dk); }

/* =========================================================
   8. 数字（カウントアップ）
   ========================================================= */
.stats { background: var(--brand); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 22px 10px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid var(--line-dk); }
.stat__num { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--accent-2); line-height: 1; }
.stat__num .unit { font-size: .9rem; color: #fff; margin-left: 3px; }
.stat__label { margin-top: 12px; font-size: .85rem; color: rgba(255,255,255,.8); }

/* =========================================================
   9. 選定フロー
   ========================================================= */
.flow { counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 42px; }
.flow__item { display: grid; grid-template-columns: 60px 1fr; gap: 18px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.flow__no { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(150deg, var(--accent), var(--accent-dk)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.flow__no b { font-size: 1.2rem; }
.flow__title { font-size: 1.08rem; margin-bottom: 6px; color: var(--brand); }
.flow__body { color: var(--steel); font-size: .93rem; margin: 0; }

/* =========================================================
   10. 事業/会社（biz）
   ========================================================= */
.biz { background: var(--brand); color: #fff; }
.biz__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.biz__title { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.biz__title b { color: var(--accent-2); }
.biz__body { color: rgba(255,255,255,.82); }
.biz__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.biz__fact { border: 1px solid var(--line-dk); border-radius: 12px; padding: 16px; }
.biz__fact dt { font-size: .76rem; color: var(--accent-2); letter-spacing: .1em; }
.biz__fact dd { margin: 6px 0 0; font-size: 1.4rem; font-weight: 800; }

/* =========================================================
   11. CTA 帯
   ========================================================= */
.cta {
  color: #fff; text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, rgba(18,181,165,.4), transparent 60%), linear-gradient(150deg, var(--brand-2), var(--brand));
}
.cta__title { font-size: clamp(1.6rem, 4vw, 2.5rem); margin-bottom: 14px; }
.cta__title b { color: var(--accent-2); }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.cta__tel { margin-top: 20px; font-size: .9rem; color: rgba(255,255,255,.82); }
.cta__tel b { font-size: 1.5rem; color: #fff; letter-spacing: .04em; }

/* =========================================================
   12. 製品ファインダー（アーカイブ：4軸絞り込みの主役）
   ========================================================= */
.finder__layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }

/* 絞り込みパネル */
.finder__side { position: sticky; top: 84px; }
.filter { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 12px 34px -28px rgba(12,58,69,.5); }
.filter__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.filter__title { font-size: 1.15rem; color: var(--brand); }
.filter__clear { background: none; border: 0; color: var(--accent-dk); font-weight: 700; cursor: pointer; font-size: .86rem; }
.filter__clear:hover { text-decoration: underline; }
.filter-group { border: 0; margin: 0 0 20px; padding: 0; }
.filter-group__title { display: block; font-weight: 700; font-size: .92rem; color: var(--brand); margin-bottom: 10px; padding: 0; }
.filter-search input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .96rem;
}
.filter-search input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.filter-hint { font-size: .76rem; color: var(--steel-2); margin: 6px 0 0; }
.filter-group__list { display: grid; gap: 6px; }
.filter-check {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px;
  cursor: pointer; font-size: .92rem; color: var(--steel); transition: background .15s;
}
.filter-check:hover { background: var(--paper); }
.filter-check input { width: 17px; height: 17px; accent-color: var(--accent-dk); flex: none; }
.filter-check__name { flex: 1; }
.filter-check__count { font-size: .74rem; color: var(--steel-2); background: var(--paper-2); border-radius: 999px; padding: 1px 8px; }
.filter__submit { margin-top: 6px; }

/* 結果側 */
.finder__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.finder__count { font-size: 1rem; color: var(--steel); margin: 0; }
.finder__count b { font-size: 1.5rem; color: var(--accent-dk); }
.finder__active { display: flex; flex-wrap: wrap; gap: 8px; }
.active-chip { background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 600; cursor: pointer; }
.active-chip:hover { background: var(--accent-dk); }
.active-chip--kw { background: var(--accent-dk); }
.finder__loading { text-align: center; padding: 20px; color: var(--accent-dk); font-weight: 700; }

/* =========================================================
   13. 製品グリッド / カード
   ========================================================= */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 34px -28px rgba(12,58,69,.5);
  transition: transform .22s, box-shadow .22s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -28px rgba(12,58,69,.55); }
.p-card__link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.p-card__thumb { aspect-ratio: 16/10; position: relative; background: linear-gradient(150deg, var(--steel), var(--brand)); }
.p-card__cat { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--brand); font-size: .72rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.p-card__body { padding: 18px 20px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-card__model { font-family: var(--font-head); font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: var(--accent-dk); }
.p-card__title { font-size: 1.1rem; color: var(--brand); line-height: 1.4; }
.p-card__summary { font-size: .9rem; color: var(--steel); margin: 0; flex: 1; }
.p-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag { display: inline-block; font-size: .74rem; color: var(--accent-dk); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.tag:hover { background: var(--accent); color: #062b28; }
.p-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.p-card__form { font-size: .8rem; color: var(--steel-2); }
.p-card__pdf { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: var(--brand); }
.p-card__pdf:hover { color: var(--accent-dk); }
.p-card__pdf--muted { color: var(--steel-2); }
.pdf-ico { font-size: .62rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--amber); border-radius: 4px; padding: 2px 5px; }
.p-card__pdf--muted .pdf-ico { background: var(--steel-2); }

/* 画像プレースホルダー */
.img-placeholder {
  display: grid; place-items: center; text-align: center; gap: 6px;
  color: rgba(255,255,255,.92); font-size: .8rem; letter-spacing: .04em; line-height: 1.5;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px),
    linear-gradient(150deg, var(--steel), var(--brand));
  width: 100%; height: 100%; padding: 16px;
}
.img-placeholder__ico { font-size: 2rem; }

.empty-state { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); color: var(--steel); }
.empty-state b { color: var(--brand); font-size: 1.1rem; }
.empty-state a { color: var(--accent-dk); font-weight: 700; text-decoration: underline; }

/* ページャ */
.p-pager { margin-top: 40px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.p-pager .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--brand); font-weight: 700; }
.p-pager .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.p-pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent-dk); }

/* =========================================================
   14. 製品詳細（single）
   ========================================================= */
.p-detail { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; }
.p-detail__cat { display: inline-block; background: var(--accent); color: #062b28; font-size: .76rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.p-detail__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.p-detail__docs { margin-top: 22px; display: grid; gap: 12px; }
.p-detail__docs-title { font-size: 1rem; color: var(--brand); margin-bottom: 2px; }
.doc-btn {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; transition: border-color .2s, transform .2s;
}
.doc-btn:hover { border-color: var(--amber); transform: translateY(-2px); }
.doc-btn__ico { font-size: .68rem; font-weight: 800; color: #fff; background: var(--amber); border-radius: 6px; padding: 6px 8px; flex: none; }
.doc-btn__txt { flex: 1; line-height: 1.4; }
.doc-btn__txt b { display: block; color: var(--brand); font-size: .96rem; }
.doc-btn__txt small { color: var(--steel-2); font-size: .78rem; }
.doc-btn__dl { color: var(--amber); font-weight: 800; font-size: 1.2rem; }
.doc-btn--muted { opacity: .7; }
.doc-btn--muted .doc-btn__ico { background: var(--steel-2); }

.p-detail__h2 { font-size: 1.3rem; color: var(--brand); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); display: inline-block; }
.p-detail__desc { margin-top: 40px; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-table th { width: 150px; background: var(--paper); color: var(--brand); font-weight: 700; white-space: nowrap; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table td .tag { margin: 0 4px 4px 0; }

/* =========================================================
   15. ページヘッダー（下層）
   ========================================================= */
.page-hero {
  color: #fff; padding: 148px 0 66px; position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 85% 0%, rgba(18,181,165,.28), transparent 55%), linear-gradient(150deg, var(--brand), var(--brand-2));
}
.page-hero--search::after, .page-hero--product::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(rgba(95,227,208,.7) 1.3px, transparent 1.5px);
  background-size: 30px 30px; mask-image: radial-gradient(70% 80% at 80% 30%, #000, transparent 78%);
}
.page-hero__eyebrow { color: var(--accent-2); letter-spacing: .18em; font-size: .78rem; font-weight: 700; text-transform: uppercase; position: relative; z-index: 1; }
.page-hero__title { font-size: clamp(1.7rem, 4.6vw, 3rem); margin-top: 10px; position: relative; z-index: 1; }
.page-hero__lead { margin-top: 14px; max-width: 640px; color: rgba(255,255,255,.85); position: relative; z-index: 1; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.72); margin-bottom: 16px; position: relative; z-index: 1; }
.breadcrumb a:hover { color: var(--accent-2); }

/* =========================================================
   16. 記事本文（single/index）
   ========================================================= */
.article { max-width: 820px; margin: 0 auto; }
.article__body p { color: var(--ink); }
.article__body h2, .article__body h3 { color: var(--brand); margin: 1.4em 0 .6em; }
.article__body ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { display: inline-block; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--accent-dk); font-weight: 700; }

/* =========================================================
   17. 資料請求フォーム
   ========================================================= */
.apply { background: var(--paper); }
.apply__box { max-width: 780px; margin-inline: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 46px); }
.form-note { background: var(--paper-2); border-left: 4px solid var(--amber); padding: 12px 16px; border-radius: 8px; font-size: .84rem; color: var(--steel); margin-bottom: 22px; }
.form-note code { background: #fff; padding: 1px 6px; border-radius: 5px; font-size: .82em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.form-field .req-mark { color: #e0322b; margin-left: 4px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.form-field select { min-width: 10rem; padding-right: 2.2rem; text-overflow: ellipsis; }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-submit { text-align: center; margin-top: 8px; }
.form-hint { font-size: .8rem; color: var(--steel-2); }

/* =========================================================
   18. フッター
   ========================================================= */
.site-footer { background: var(--brand); color: rgba(255,255,255,.82); padding: 62px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__name small { color: var(--accent-2); }
.footer__desc { font-size: .9rem; margin-top: 16px; color: rgba(255,255,255,.66); }
.footer__col h4 { color: var(--accent-2); font-size: .82rem; letter-spacing: .14em; margin-bottom: 14px; }
.footer__col a { display: block; font-size: .92rem; padding: 5px 0; color: rgba(255,255,255,.8); }
.footer__col a:hover { color: var(--accent-2); }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dk); font-size: .78rem; color: rgba(255,255,255,.55); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   19. スクロール登場アニメ
   ========================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: .08s; }
.reveal[data-delay="2"]{ transition-delay: .16s; }
.reveal[data-delay="3"]{ transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll::after { animation: none; }
}

/* =========================================================
   20. 404
   ========================================================= */
.notfound { min-height: 66vh; display: grid; place-items: center; text-align: center; padding: 140px 20px 80px; }
.notfound__code { font-size: clamp(4rem, 16vw, 9rem); font-weight: 800; color: var(--brand); line-height: 1; }
.notfound__code b { color: var(--accent); }

/* =========================================================
   21. レスポンシブ
   ========================================================= */
@media (max-width: 1040px) {
  .how__grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .p-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .finder__layout { grid-template-columns: 1fr; }
  .finder__side { position: static; }
  .p-detail { grid-template-columns: 1fr; }
  .axes__grid, .biz__grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .how__grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .p-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .hero-search__btn { padding: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .spec-table th { width: 110px; padding: 12px 12px; }
  .spec-table td { padding: 12px 12px; }
}

/* =========================================================
   22. mockup 追加：特長・使用方法リスト
   ========================================================= */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 30px; color: var(--steel); font-size: .96rem; line-height: 1.7; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #062b28; display: grid; place-items: center; font-size: .74rem; font-weight: 800; margin-top: 3px; }
