/* =========================================================
   yatsushiro-portal テーマ 共通スタイルシート
   - コーディング担当の静的プロトタイプ(d:\cursor\yatsushiro-city\coding\css\style.css)を
     WordPressテーマ用に移植・拡張したもの。デザイントークン・コンポーネント設計は踏襲。
   - モバイルファースト（基準: 〜767px / min-width:768px タブレット / min-width:1024px PC / min-width:1440px 大画面）
   - 配色は仮案A（ネイビー×アンバー）で確定
   - CSSは本テーマの assets/css/style.css にのみ置く（固定ページ本文の<style>タグには絶対に書かない。
     D:\cursor\HP仕様\WordPress固定ページ標準投稿-SKILL.md §8 事故事例を参照）
   ========================================================= */

/* ---------- 1. デザイントークン ---------- */
:root {
  /* カラー（仮案A：ネイビー×アンバー） */
  --color-bg: #F7F8FA;
  --color-surface: #FFFFFF;
  --color-text: #24303D;
  --color-text-muted: #5A6774;
  --color-primary: #1B3A5C;
  --color-primary-dark: #142B44;
  --color-primary-tint: #E8EDF2;
  --color-accent: #E0954C;
  --color-accent-dark: #C97D34;
  --color-sub: #5C8768;
  --color-sub-tint: #E7EFE8;
  --color-border: #DCE1E7;
  --color-muted-bg: #EDEFF2;
  --color-muted-text: #5C6675;
  --color-danger: #C0453A;

  /* 余白（8pxグリッド） */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;

  /* フォント */
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  /* レイアウト */
  --container-max: 1200px;
  --container-pad: var(--sp-2);
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 16px;
  --shadow-card: 0 2px 10px rgba(27, 58, 92, 0.08);
}

@media (min-width: 768px) {
  :root { --container-pad: var(--sp-3); }
}
@media (min-width: 1440px) {
  :root { --container-pad: var(--sp-4); }
}

/* ---------- 2. リセット & ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; }

.visually-hidden,
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  z-index: 2000;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* WP管理バー表示時、stickyヘッダーが管理バーと重ならないように調整 */
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* ---------- 3. レイアウトユーティリティ ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: var(--sp-6); }
@media (min-width: 768px) { .section { padding-block: var(--sp-8); } }
@media (min-width: 1024px) { .section { padding-block: var(--sp-12); } }

.section--alt { background: var(--color-surface); }
.section--primary { background: var(--color-primary); color: #fff; }

.section__head {
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.section__title {
  font-size: 1.375rem;
  position: relative;
  padding-left: 14px;
}
.section__title::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background: var(--color-accent);
  border-radius: 2px;
}
.section__lead { color: var(--color-text-muted); margin-top: var(--sp-1); }
@media (min-width: 768px) { .section__title { font-size: 1.625rem; } }

.section__more { white-space: nowrap; font-weight: 700; color: var(--color-primary); }
.section__more::after { content: " ›"; }

/* ---------- 4. ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border-radius: var(--radius-m);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: opacity .15s ease, background-color .15s ease;
}
.btn:hover { opacity: .88; }
.btn--block { width: 100%; }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }

.btn--accent { background: var(--color-accent); color: var(--color-primary); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--muted { background: var(--color-muted-bg); color: var(--color-muted-text); cursor: default; }
.btn--text { padding: 4px 0; color: var(--color-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- 5. タグ・バッジ ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.tag--industry { background: var(--color-sub-tint); color: var(--color-sub); }
.tag--region { background: var(--color-muted-bg); color: var(--color-muted-text); }
.tag--keyword { background: var(--color-primary-tint); color: var(--color-primary); }
.tag--category { background: var(--color-primary); color: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-s);
  font-size: 0.78rem;
  font-weight: 700;
}
.badge--hp-has { background: var(--color-sub-tint); color: var(--color-sub); }
.badge--hp-has::before { content: "✓"; }
.badge--hp-none { background: var(--color-muted-bg); color: var(--color-muted-text); }
.badge--hp-none::before { content: "－"; }

/* ---------- 6. ヘッダー（1段構成: サイトタイトル・キャッチフレーズ＋ナビゲーションを横並びで表示） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--sp-2);
  position: relative;
}
.site-header__brand-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding-block: 8px;
  min-width: 0;
}
.site-tagline {
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-text-muted);
}
.site-logo {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img { max-height: 44px; width: auto; }
/* TODO placeholder: 正式なサイトロゴは未確定（PROGRESS §4-8）。
   外観 → カスタマイズ → サイト基本情報 でロゴ画像を設定するまではサイトタイトルのテキストで代替 */

.hamburger {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger__bar {
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  transition: transform .2s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.global-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.global-nav.is-open { display: block; }
.global-nav__list { display: flex; flex-direction: column; padding: var(--sp-2) var(--container-pad) var(--sp-3); }
.global-nav__list li { border-bottom: 1px solid var(--color-border); }
.global-nav__list li:last-child { border-bottom: 0; }
.global-nav__list a { display: block; padding: 14px 4px; font-weight: 700; }
.global-nav__cta {
  margin-top: var(--sp-1);
  background: var(--color-accent);
  color: var(--color-primary) !important;
  text-align: center;
  border-radius: var(--radius-m);
}

@media (min-width: 1024px) {
  .hamburger { display: none; }
  .global-nav {
    display: block;
    position: static;
    border-bottom: 0;
    box-shadow: none;
    background: transparent;
  }
  .global-nav__list { flex-direction: row; align-items: center; gap: var(--sp-4); padding: 0; }
  .global-nav__list li { border-bottom: 0; }
  .global-nav__list a { padding: 8px 2px; }
  .global-nav__cta { margin-top: 0; padding: 10px 20px; }
}

/* ---------- 7. パンくず ---------- */
.breadcrumb { padding-block: var(--sp-2); font-size: 0.8rem; color: var(--color-text-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--color-border); }
.breadcrumb a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb li[aria-current="page"] { color: var(--color-text-muted); }

/* ---------- 8. ヒーロー ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #234A73 55%, #2C5B8C 100%);
  /* TODO placeholder: ヒーロー背景写真は未確定のためグラデーションで代替 */
  color: #fff;
  padding-block: var(--sp-6);
}
.hero__catch { font-size: 1.6rem; line-height: 1.5; margin-bottom: var(--sp-2); }
.hero__catch em { color: var(--color-accent); font-style: normal; }
.hero__lead { color: rgba(255,255,255,.85); margin-bottom: var(--sp-4); max-width: 40em; }
.hero__cta-mini { margin-top: var(--sp-3); }
.hero__cta-mini-btn {
  font-size: 1.05rem;
  padding: 15px 28px;
  box-shadow: 0 6px 20px rgba(224,149,76,.45);
}

@media (min-width: 768px) {
  .hero__catch { font-size: 2.1rem; }
}
@media (min-width: 1024px) {
  .hero { padding-block: var(--sp-12); }
  .hero__catch { font-size: 2.5rem; }
}

/* ヒーロー内 検索フォーム */
.hero-search {
  background: var(--color-surface);
  border-radius: var(--radius-l);
  padding: var(--sp-3);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}
.hero-search__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
.hero-search .form-field { margin: 0; }
.hero-search__submit { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .hero-search__row { grid-template-columns: 1fr 1fr; }
  .hero-search__submit { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .hero-search__row { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
  .hero-search__submit { grid-column: auto; }
}

/* ---------- 9. グリッド ---------- */
.grid { display: grid; gap: var(--sp-3); }
.grid--companies { grid-template-columns: 1fr; }
.grid--companies-scroll {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  padding-bottom: var(--sp-1);
  scroll-snap-type: x proximity;
}
.grid--companies-scroll > * { min-width: 82%; scroll-snap-align: start; }

.grid--industries { grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
.grid--columns { grid-template-columns: 1fr; }

/* フォトストリップ（新着企業を横スクロールで並べる。画面幅にかかわらず常時横スクロール） */
.photo-strip-block { margin-top: var(--sp-4); }
.photo-strip-block__label { font-size: 0.85rem; font-weight: 700; color: var(--color-text-muted); margin-bottom: var(--sp-2); }
.grid--photo-strip {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding-bottom: var(--sp-1);
  scroll-snap-type: x proximity;
}
.photo-strip-item {
  flex: 0 0 128px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.photo-strip-item__thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--color-muted-bg);
  border: 1px solid var(--color-border);
  transition: box-shadow .15s ease;
}
.photo-strip-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip-item:hover .photo-strip-item__thumb { box-shadow: var(--shadow-card); }
.photo-strip-item__name {
  font-size: 0.8rem; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.photo-strip-item__tag { align-self: flex-start; }
@media (min-width: 768px) {
  .photo-strip-item { flex-basis: 152px; }
}

@media (min-width: 768px) {
  .grid--companies, .grid--companies-scroll { grid-template-columns: repeat(2, 1fr); display: grid; overflow: visible; }
  .grid--industries { grid-template-columns: repeat(4, 1fr); }
  .grid--columns { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--companies-top { grid-template-columns: repeat(4, 1fr); }
  .grid--companies { grid-template-columns: repeat(3, 1fr); }
  .grid--industries { grid-template-columns: repeat(6, 1fr); }
  .grid--columns { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 10. カード ---------- */
.company-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  height: 100%;
  transition: box-shadow .15s ease, transform .15s ease;
}
.company-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.company-card__link { display: flex; flex-direction: column; height: 100%; }
.company-card__thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-muted-bg); }
.company-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.company-card__body { padding: var(--sp-2); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.company-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.company-card__name { font-size: 1.02rem; }
.company-card__desc { font-size: 0.85rem; color: var(--color-text-muted); flex: 1; }

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  height: 100%;
}
.article-card__link { display: flex; flex-direction: column; height: 100%; }
.article-card__thumb { aspect-ratio: 16 / 9; background: var(--color-muted-bg); overflow: hidden; }
.article-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { padding: var(--sp-2); display: flex; flex-direction: column; gap: 8px; }
.article-card__meta { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--color-text-muted); flex-wrap: wrap; }
.article-card__title { font-size: 1rem; line-height: 1.5; }
.article-card__excerpt { font-size: 0.85rem; color: var(--color-text-muted); }

/* ---------- 11. 業種アイコングリッド ---------- */
.icon { width: 28px; height: 28px; }
.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: var(--sp-2) var(--sp-1);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  font-size: 0.8rem;
  font-weight: 700;
}
.industry-item:hover { border-color: var(--color-primary); }
.industry-item__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary);
}

/* ---------- 12. 特集タブ ---------- */
.feature-tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-3); }
.feature-tabs__btn {
  padding: 9px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--color-surface);
  color: var(--color-text-muted);
}
.feature-tabs__btn[aria-selected="true"] { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.feature-tabs__panel { display: none; }
.feature-tabs__panel.is-active { display: block; }
/* 各パネルは該当企業0件のタブごとPHP側で出力自体を省略する運用（single front-page.php参照） */

/* ---------- 12b. 料金カード・仕様テーブル（広告掲載・料金のご案内ページ） ---------- */
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.pricing-card__name { font-size: 1.1rem; font-weight: 700; color: var(--color-primary); margin-bottom: var(--sp-1); }
.pricing-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-bottom: var(--sp-1); }
.pricing-card__price-value { font-size: 2rem; font-weight: 700; color: var(--color-text); }
.pricing-card__price-unit { color: var(--color-text-muted); font-size: 0.85rem; }
.pricing-card__note { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: var(--sp-3); }
.pricing-card__list { display: flex; flex-direction: column; gap: 8px; }
.pricing-card__list li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.92rem; }
.pricing-card__list li::before { content: "✓"; color: var(--color-sub); font-weight: 700; flex-shrink: 0; }

.spec-table { min-width: 480px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); vertical-align: top; font-size: 0.92rem; }
.spec-table th { width: 30%; color: var(--color-text-muted); font-weight: 700; white-space: nowrap; }

/* ---------- 13. お知らせ／準備中バナー ---------- */
.notice-box {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-m);
  padding: var(--sp-3);
  text-align: center;
  background: var(--color-surface);
  color: var(--color-text-muted);
}
.notice-box p { margin-bottom: var(--sp-2); }

/* ---------- 14. CTA帯 ---------- */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-l);
  padding: var(--sp-4) var(--sp-2);
}
.cta-band__title { font-size: 1.3rem; margin-bottom: var(--sp-1); }
.cta-band__lead { color: rgba(255,255,255,.85); margin-bottom: var(--sp-3); }
.cta-band__actions { display: flex; flex-direction: column; gap: var(--sp-2); align-items: stretch; }
@media (min-width: 768px) {
  .cta-band__actions { flex-direction: row; justify-content: center; }
  .cta-band__actions .btn { min-width: 220px; }
}

/* ---------- 14b. PR・広告エリア（各枠の幅・高さはCTA帯.cta-bandの背景ボックスに合わせる） ---------- */
.pr-banner-block__label { font-size: 0.7rem; font-weight: 700; letter-spacing: .05em; color: var(--color-text-muted); text-transform: uppercase; margin-bottom: 6px; }
.pr-banner { border-radius: var(--radius-l); overflow: hidden; }

.pr-banner--rotation { position: relative; height: 275px; background: var(--color-muted-bg); }
.pr-banner__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease;
}
.pr-banner__slide.is-active { opacity: 1; visibility: visible; }
.pr-banner__slide img { width: 100%; height: 100%; object-fit: contain; }
.pr-banner__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(27,58,92,.85));
  color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 28px var(--sp-2) 10px;
}
.pr-banner__dots { position: absolute; right: var(--sp-2); bottom: 10px; display: flex; gap: 6px; z-index: 2; }
.pr-banner__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); border: 0; padding: 0; cursor: pointer; }
.pr-banner__dot.is-active { background: #fff; }

.pr-banner--ad-local {
  height: 275px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1);
  text-align: center; padding: var(--sp-2);
}
.pr-banner__ad-label { font-size: 0.7rem; font-weight: 700; letter-spacing: .05em; color: var(--color-text-muted); text-transform: uppercase; }
.pr-banner__ad-text { color: var(--color-text-muted); }

/* フッター広告枠（Google AdSense想定。フッター4列目=footer-col内に表示。2026-08-09にSNSリンクから変更、独立ブロックだった旧配置から統合。幅・高さは「制作事例」準備中ボックス.notice-boxに合わせる） */
.footer-ad-slot {
  height: 150px;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-m);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1);
  text-align: center;
  margin-bottom: var(--sp-4);
}
/* 実際のAdSense広告ユニットは高さがレスポンシブに決まるため、プレースホルダー用の固定寸法・枠線は適用しない */
.footer-ad-slot--live {
  height: auto;
  background: none;
  border: 0;
  display: block;
  margin-bottom: var(--sp-4);
}

/* ---------- 15. フッター ---------- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,.85); }
.site-footer a:hover { text-decoration: underline; }
.site-footer__inner {
  padding-block: var(--sp-6);
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
.footer-col__title { color: #fff; font-weight: 700; margin-bottom: var(--sp-1); }
.footer-col li { margin-bottom: 6px; font-size: 0.88rem; }
.footer-logo { color: #fff; font-weight: 700; margin-bottom: var(--sp-1); }
.footer-widget:not(:last-child) { margin-bottom: var(--sp-3); }
.site-footer__copyright { text-align: center; font-size: 0.75rem; padding: var(--sp-2); border-top: 1px solid rgba(255,255,255,.12); }

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- 16. 絞り込みフォーム（業種一覧・検索ページ） ---------- */
.search-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  margin-bottom: var(--sp-4);
}
.search-panel > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--sp-2) var(--sp-3);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.search-panel > summary::-webkit-details-marker { display: none; }
.search-panel > summary::after { content: "▾"; transition: transform .15s ease; }
.search-panel[open] > summary::after { transform: rotate(180deg); }
.search-panel__body { padding: 0 var(--sp-3) var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-3); }

.filter-group__title { font-weight: 700; font-size: 0.85rem; margin-bottom: 8px; }
.filter-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.filter-checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; }

@media (min-width: 1024px) {
  .search-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-4); align-items: start; }
  .search-panel { position: sticky; top: 88px; margin-bottom: 0; }
  .search-panel > summary { display: none; }
  .search-panel { display: block; }
}

.no-results { display: none; }
.no-results.is-visible { display: block; }

/* ---------- 17. フォーム共通 ---------- */
.form-section { max-width: 760px; }
.form-lead { color: var(--color-text-muted); margin-bottom: var(--sp-4); }
fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-4); }
.form-fieldset__legend { font-weight: 700; font-size: 1.05rem; margin-bottom: var(--sp-2); padding-bottom: 8px; border-bottom: 2px solid var(--color-border); width: 100%; }

.form-field { margin-bottom: var(--sp-3); }
.form-field__label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; font-size: 0.92rem; }
.form-field__hint { display: block; font-weight: 400; color: var(--color-text-muted); font-size: 0.8rem; margin-top: 6px; }
.required-mark {
  background: var(--color-danger); color: #fff; font-size: 0.68rem; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
}
.optional-mark {
  background: var(--color-muted-bg); color: var(--color-muted-text); font-size: 0.68rem; font-weight: 700;
  padding: 2px 6px; border-radius: 3px;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field input[type="number"],
.form-field input[type="file"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  background: var(--color-surface);
  color: var(--color-text);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
@media (min-width: 768px) { .form-row--2col { grid-template-columns: 1fr 1fr; } }

.form-radio-group, .form-check-group { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.form-radio-group label, .form-check-group label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; }

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea { border-color: var(--color-danger); }
.form-error {
  display: none;
  color: var(--color-danger);
  font-size: 0.8rem;
  margin-top: 6px;
}
.form-field.is-invalid .form-error { display: block; }

.form-agree {
  background: var(--color-primary-tint);
  border-radius: var(--radius-m);
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
}
.form-submit-note { margin-top: var(--sp-2); font-size: 0.82rem; color: var(--color-text-muted); }

.form-alert {
  display: none;
  background: #FBEAE7;
  color: var(--color-danger);
  border: 1px solid #F0C6C0;
  border-radius: var(--radius-m);
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-3);
}
.form-alert.is-visible { display: block; }

/* ハニーポット（ボット対策用のダミー入力欄）。display:noneはボットに検知されやすいため
   opacity+positionで隠す（D:\cursor\HP仕様\GP-SKILL.md §1-1 準拠） */
.ycp-hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* 地域選択は区分未確定のため注記を必ず添える（PROGRESS §4 追加確認17） */
.region-note { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 6px; }

/* ---------- 18. 情報テーブル（企業詳細） ---------- */
.info-table th, .info-table td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.info-table th { width: 8.5em; color: var(--color-text-muted); font-weight: 700; font-size: 0.88rem; }
.info-table td { font-size: 0.95rem; }
.sns-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.sns-inline a { color: var(--color-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- 19. 企業詳細ページ 固有 ---------- */
.detail-visual { aspect-ratio: 16/9; border-radius: var(--radius-m); overflow: hidden; background: var(--color-muted-bg); margin-bottom: var(--sp-3); }
.detail-visual img { width: 100%; height: 100%; object-fit: cover; }

/* TOP画像2分割（最大2枚）。2枚表示時は4:3等の固定比率を強制せず、画像本来の縦横比のまま表示する */
.detail-visual--split { aspect-ratio: auto; overflow: visible; background: none; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.detail-visual__item { border-radius: var(--radius-m); overflow: hidden; background: var(--color-muted-bg); }
.detail-visual__item img { width: 100%; height: auto; display: block; }

/* TOP画像が1枚のみの場合は中央に1枚配置。4:3等の固定比率は強制せず、画像本来の縦横比のまま表示する。
   表示幅は実寸大(登録画像 ycp-detail-photo, 640×480)の70%(448px)を上限とする。
   ただし表示幅が640px以下の環境では縮小せず100%表示のまま。 */
.detail-visual--split.detail-visual--single { grid-template-columns: 1fr; justify-items: center; }
.detail-visual--split.detail-visual--single .detail-visual__item { width: 100%; }
@media (min-width: 641px) {
  .detail-visual--split.detail-visual--single .detail-visual__item { max-width: 448px; }
}

/* お問い合わせ：メール／電話の直接連絡ボタン */
.contact-actions { display: flex; flex-direction: column; gap: var(--sp-2); }
@media (min-width: 768px) {
  .contact-actions { flex-direction: row; flex-wrap: wrap; }
}

.detail-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-3); }
.detail-head__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-head__name { font-size: 1.5rem; }
@media (min-width: 768px) { .detail-head__name { font-size: 1.9rem; } }

/* HP有無 出し分けブロック（最重要）
   WordPress実装では公式URLカスタムフィールドの有無をPHPで判定し、該当パネルのみをサーバー側で出力する
   （静的プロトタイプのようなCSSでの表示/非表示切替ではなく、single-company.phpのPHP分岐で実現） */
.hp-status__panel { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-m); }
.hp-status__panel--has { background: var(--color-sub-tint); }
.hp-status__panel--none { background: var(--color-muted-bg); }
.hp-status__note { font-size: 0.85rem; color: var(--color-text-muted); }

.admin-links { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-4); }

.map-embed { aspect-ratio: 16/9; border-radius: var(--radius-m); overflow: hidden; background: var(--color-muted-bg); }
.map-embed img { width: 100%; height: 100%; object-fit: cover; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.rep-greeting { display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-start; }
.rep-greeting__avatar { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--color-muted-bg); flex-shrink: 0; }
.rep-greeting__avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .rep-greeting { flex-direction: row; align-items: flex-start; } }

.service-list { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
.service-list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: var(--sp-2);
}
@media (min-width: 768px) { .service-list { grid-template-columns: repeat(2, 1fr); } }

.detail-block { margin-bottom: var(--sp-6); }
.detail-block__title { font-size: 1.15rem; margin-bottom: var(--sp-2); padding-left: 12px; border-left: 4px solid var(--color-accent); }

/* ---------- 20. コラム 固有 ---------- */
.column-layout { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 1024px) { .column-layout { grid-template-columns: 1fr 320px; } }

.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-4); }
.category-tabs__btn {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--color-primary);
  color: var(--color-primary); font-weight: 700; font-size: 0.85rem; background: transparent;
}
.category-tabs__btn[aria-selected="true"] { background: var(--color-primary); color: #fff; }

.sidebar-block { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); padding: var(--sp-3); margin-bottom: var(--sp-3); }
.sidebar-block__title { font-weight: 700; margin-bottom: var(--sp-2); }
.sidebar-block .popular-list li { margin-bottom: 10px; font-size: 0.88rem; }
.sidebar-block .category-list li { margin-bottom: 8px; }
.sidebar-block .category-list a { display: flex; justify-content: space-between; font-size: 0.88rem; }
.sidebar-cta { text-align: center; }
.sidebar-cta .btn { margin-bottom: 8px; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-4); }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 8px; border-radius: var(--radius-s); border: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.pagination [aria-current="page"] { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* コラム詳細 */
.article-wrap { max-width: 760px; }
.article-header { margin-bottom: var(--sp-3); }
.article-header__title { font-size: 1.4rem; margin-bottom: var(--sp-2); }
.article-header__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 10px; }
@media (min-width: 768px) { .article-header__title { font-size: 1.9rem; } }

.article-toc { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); padding: var(--sp-3); margin-bottom: var(--sp-4); }
.article-toc__title { font-weight: 700; margin-bottom: 10px; }
.article-toc ol { counter-reset: toc; }
.article-toc li { counter-increment: toc; margin-bottom: 8px; font-size: 0.9rem; }
.article-toc li a::before { content: counter(toc) ". "; color: var(--color-accent); font-weight: 700; }

.article-body { max-width: 760px; }
.article-body h2 { font-size: 1.3rem; margin-top: var(--sp-6); margin-bottom: var(--sp-2); padding-bottom: 8px; border-bottom: 2px solid var(--color-border); }
.article-body h3 { font-size: 1.1rem; margin-top: var(--sp-4); margin-bottom: var(--sp-2); }
.article-body p { margin-bottom: var(--sp-2); }
.article-body ul, .article-body ol { margin: 0 0 var(--sp-2); padding-left: 1.4em; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body img { border-radius: var(--radius-m); margin-bottom: var(--sp-2); }
.article-body a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.article-body .btn { text-decoration: none; }
.article-eyecatch { aspect-ratio: 16/9; border-radius: var(--radius-m); overflow: hidden; background: var(--color-muted-bg); margin-bottom: var(--sp-4); }
.article-eyecatch img { width: 100%; height: 100%; object-fit: cover; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-4); }
.article-author { display: flex; align-items: center; gap: 12px; margin-top: var(--sp-6); padding: var(--sp-2) var(--sp-3); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-m); font-size: 0.85rem; color: var(--color-text-muted); }
.article-author__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--color-muted-bg); flex-shrink: 0; overflow: hidden; }
.article-author__avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 21. サンクスページ ---------- */
.thanks-block { text-align: center; padding-block: var(--sp-8); max-width: 640px; margin-inline: auto; }
.thanks-block__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--color-sub-tint); color: var(--color-sub); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--sp-3); font-size: 2rem; }
.thanks-block__title { font-size: 1.4rem; margin-bottom: var(--sp-2); }
.thanks-block__actions { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }
@media (min-width: 768px) { .thanks-block__actions { flex-direction: row; justify-content: center; } }

/* ---------- 22. 検索結果0件・一般ノーティス ---------- */
.empty-state { text-align: center; padding-block: var(--sp-8); }

/* ---------- 23. その他 ---------- */
.stack { display: flex; flex-direction: column; gap: var(--sp-2); }
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0 !important; }

/* ---------- 24. お知らせポップアップ（トップページのみ） ---------- */
.promo-popup {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.promo-popup[hidden] { display: none; }
.promo-popup__backdrop { position: absolute; inset: 0; background: rgba(20,26,34,.7); }
.promo-popup__dialog { position: relative; width: 90vw; }
.promo-popup__image {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-m);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.promo-popup__close {
  position: absolute; top: -16px; right: -16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--color-text);
  border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-card);
}
