/*
Theme Name: Coworking Hikaku
Theme URI: https://space-hikaku.com
Author: Space Hikaku
Description: コワーキングスペース比較サイト用テーマ
Version: 1.2
License: GNU General Public License v2 or later
Text Domain: coworking-hikaku
*/
 
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=BIZ+UDPGothic:wght@400;700&display=swap');
 
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
:root {
  --bg: #f5f3ee;
  --bg2: #eceae3;
  --white: #ffffff;
  --ink: #1c1c1a;
  --ink2: #5a5a56;
  --ink3: #9a9a94;
  --accent: #2563eb;
  --accent-bg: #eff6ff;
  --gold: #b45309;
  --gold-bg: #fffbeb;
  --green: #15803d;
  --green-bg: #f0fdf4;
  --red: #b91c1c;
  --border: #dddbd4;
  --radius: 10px;
}
 
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.7; }
 
/* ===================================================
   NAV（ヘッダーナビゲーション）
=================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.site-logo { font-family: 'BIZ UDPGothic', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: 0.05em; }
.site-logo span { color: var(--accent); }
.header-nav ul { display: flex; gap: 1.5rem; list-style: none; }
.header-nav a { font-size: 0.82rem; font-weight: 500; color: var(--ink2); text-decoration: none; transition: color 0.15s; }
.header-nav a:hover { color: var(--accent); }
.nav-meta { font-size: 0.75rem; color: var(--ink3); }
 
/* ===================================================
   HERO（ヒーローセクション）
=================================================== */
.hero {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}
 
/* 背景画像 */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://space-hikaku.com/wp-content/uploads/2026/05/coworking-hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.45);
  z-index: 0;
}
 
/* コンテンツを背景の上に表示 */
.hero-content {
  position: relative;
  z-index: 1;
}
 
/* エリアバッジ */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
 
/* サイト名（大きく表示） */
.hero-site-name {
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
 
/* キャッチフレーズ（小さめ） */
.hero h1, .hero-title {
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  letter-spacing: 0.08em;
}
 
/* 統計数字 */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}
 
/* ===================================================
   FILTER（絞り込みバー）
=================================================== */
.filter-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1rem 2rem; display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.filter-label { font-size: 0.75rem; font-weight: 500; color: var(--ink2); }
.filter-btn {
  font-size: 0.78rem; font-weight: 500; padding: 5px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--white); color: var(--ink2);
  cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }
 
/* ===================================================
   CONTAINER（共通コンテナ）
=================================================== */
.container { max-width: 1000px; margin: 0 auto; padding: 2rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; }
.section-title { font-family: 'BIZ UDPGothic', sans-serif; font-size: 1.2rem; font-weight: 700; }
.section-count { font-size: 0.8rem; color: var(--ink3); }
 
/* ===================================================
   CARDS（スペースカード）
=================================================== */
.card-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; }
.space-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
}
.space-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-inner { display: grid; grid-template-columns: auto 1fr 250px; }
.card-rank {
  width: 56px; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; padding: 1.25rem 0;
  border-right: 1px solid var(--border);
}
.rank-num { font-family: 'BIZ UDPGothic', sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.rank-1 { color: #b45309; } .rank-2 { color: #6b7280; } .rank-3 { color: #92400e; }
.rank-other { color: var(--ink3); font-size: 1.2rem; }
.card-body { padding: 1.25rem 1.5rem; }
.card-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 0.6rem; flex-wrap: wrap; }
.card-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.badge { font-size: 0.68rem; font-weight: 500; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.badge-new { background: #fef2f2; color: var(--red); }
.badge-popular { background: var(--gold-bg); color: var(--gold); }
.badge-24h { background: var(--green-bg); color: var(--green); }
.badge-private { background: var(--accent-bg); color: var(--accent); }
.card-area { font-size: 0.78rem; color: var(--ink3); margin-bottom: 0.75rem; }
.card-features { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 0.9rem; }
.feat { font-size: 0.72rem; padding: 3px 9px; border-radius: 4px; background: var(--bg); color: var(--ink2); border: 1px solid var(--border); }
.feat.on { background: var(--green-bg); color: var(--green); border-color: #bbf7d0; }
.feat.off { display: none; }
.card-desc { font-size: 0.83rem; color: var(--ink2); line-height: 1.7; }
 
/* card-right：PC表示 */
.card-right {
  padding: 1.25rem; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: flex-end;
  justify-content: space-between; min-width: 160px;
}
.price-block { text-align: right; }
.price-label { font-size: 0.7rem; color: var(--ink3); }
.price-main { font-family: 'BIZ UDPGothic', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.price-unit { font-size: 0.75rem; color: var(--ink2); }
.price-day { font-size: 0.78rem; color: var(--ink3); margin-top: 3px; }
 
/* おすすめプラン表示 */
.price-rec-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 3px;
}
.price-rec-reason {
  font-size: 0.68rem;
  color: var(--ink3);
  margin-top: 1px;
  line-height: 1.4;
}
 
.score-block { text-align: right; }
.score-stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: -1px; }
.score-num { font-size: 0.78rem; color: var(--ink2); margin-left: 4px; }
 
/* 詳細ボタン（PCのcard-right内） */
.btn-detail {
  display: block; width: 100%; background: var(--accent); color: var(--white);
  font-size: 0.78rem; font-weight: 500; text-align: center; padding: 8px 0;
  border-radius: 6px; text-decoration: none; transition: opacity 0.15s; margin-top: 0.75rem;
}
.btn-detail:hover { opacity: 0.85; }
 
/* ===================================================
   スマホ用詳細ボタン（card-body内・PC非表示）
=================================================== */
.btn-detail-mobile {
  display: none; /* PCでは非表示 */
  margin-top: 1rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
  letter-spacing: 0.05em;
  width: 100%;
  box-sizing: border-box;
}
.btn-detail-mobile:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
 
/* ===================================================
   AD BANNER（広告バナー）
=================================================== */
.ad-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  border-radius: var(--radius); padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.ad-text { color: var(--white); }
.ad-label { font-size: 0.7rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.ad-title { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.ad-desc { font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.ad-btn {
  background: var(--white); color: var(--accent); font-size: 0.8rem; font-weight: 700;
  padding: 10px 24px; border-radius: 6px; text-decoration: none;
  white-space: nowrap; transition: opacity 0.15s; flex-shrink: 0;
}
.ad-btn:hover { opacity: 0.9; }
 
/* ===================================================
   COMPARE TABLE（料金・設備比較表）
=================================================== */
.compare-section { margin-bottom: 3rem; }
.compare-table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); font-size: 0.83rem;
}
.compare-table th {
  background: var(--bg2); padding: 10px 14px; text-align: left;
  font-weight: 500; color: var(--ink2); border-bottom: 1px solid var(--border);
  font-size: 0.75rem; letter-spacing: 0.05em;
}
.compare-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--ink); vertical-align: middle; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg); }
.check { color: var(--green); font-weight: 700; font-size: 1rem; }
.cross { color: #d1d5db; font-size: 0.9rem; }
.price-cell { font-weight: 700; color: var(--accent); }
 
/* ===================================================
   AREA GRID（エリアリンク）
=================================================== */
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 3rem; }
.area-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; text-decoration: none; transition: all 0.15s;
  display: flex; flex-direction: column; gap: 4px;
}
.area-card:hover { border-color: var(--accent); background: var(--accent-bg); }
.area-name { font-size: 0.9rem; font-weight: 700; color: var(--ink); }
.area-count { font-size: 0.75rem; color: var(--ink3); }
.area-arrow { font-size: 0.75rem; color: var(--accent); margin-top: 4px; }
 
/* ===================================================
   PAGE CONTENT（固定ページ・投稿記事）
=================================================== */
.page-hero {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem; text-align: center;
}
.page-hero h1 { font-family: 'BIZ UDPGothic', sans-serif; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: 0.5rem; }
.page-hero p { font-size: 0.9rem; color: var(--ink2); }
.page-content { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.single-content { max-width: 1100px; margin: 0 auto; padding: 2rem; }
.page-content h2 { font-family: 'BIZ UDPGothic', sans-serif; font-size: 1.2rem; font-weight: 700; margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent); }
.page-content h3 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.page-content p { font-size: 0.9rem; color: var(--ink2); margin-bottom: 1rem; line-height: 1.9; }
.page-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li { font-size: 0.9rem; color: var(--ink2); margin-bottom: 0.4rem; }
 
/* ===================================================
   PRICING PAGE（料金ページ）
=================================================== */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.pricing-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.75rem; position: relative; transition: border-color 0.2s;
}
.pricing-card:hover { border-color: var(--accent); }
.pricing-card.featured { border-color: var(--accent); }
.pricing-badge {
  position: absolute; top: -1px; right: 1.5rem;
  background: var(--accent); color: var(--white);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; padding: 3px 10px; border-radius: 0 0 6px 6px;
}
.pricing-type { font-size: 0.75rem; letter-spacing: 0.15em; color: var(--ink3); margin-bottom: 0.75rem; }
.pricing-price { font-family: 'BIZ UDPGothic', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 0.4rem; }
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: var(--ink3); }
.pricing-desc { font-size: 0.83rem; color: var(--ink2); line-height: 1.8; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
 
/* ===================================================
   CONTACT FORM（お問い合わせフォーム）
=================================================== */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; }
.form-label .required { font-size: 0.7rem; background: var(--red); color: var(--white); padding: 1px 6px; border-radius: 3px; margin-left: 6px; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.9rem; color: var(--ink);
  background: var(--white); transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--accent); }
.form-textarea { min-height: 160px; resize: vertical; }
.btn-submit {
  width: 100%; background: var(--accent); color: var(--white); border: none;
  font-family: 'Noto Sans JP', sans-serif; font-size: 0.95rem; font-weight: 700;
  padding: 14px; border-radius: 8px; cursor: pointer; transition: opacity 0.15s;
}
.btn-submit:hover { opacity: 0.85; }
 
/* ===================================================
   ACCESS PAGE（アクセスページ）
=================================================== */
.info-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 2rem; }
.info-table th { width: 140px; background: var(--bg2); padding: 12px 16px; text-align: left; font-size: 0.82rem; font-weight: 500; color: var(--ink2); border-bottom: 1px solid var(--border); vertical-align: top; }
.info-table td { padding: 12px 16px; font-size: 0.88rem; color: var(--ink); border-bottom: 1px solid var(--border); line-height: 1.7; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.map-wrap { background: var(--bg2); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/7; display: flex; align-items: center; justify-content: center; color: var(--ink3); font-size: 0.85rem; margin-bottom: 2rem; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
 
/* ===================================================
   FOOTER（フッター）
=================================================== */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,0.4);
  padding: 2rem; font-size: 0.78rem; text-align: center; line-height: 2;
}
.site-footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
 
/* ===================================================
   ANIMATIONS（アニメーション）
=================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.space-card { animation: fadeUp 0.5s ease both; }
.space-card:nth-child(1) { animation-delay: 0.05s; }
.space-card:nth-child(2) { animation-delay: 0.1s; }
.space-card:nth-child(3) { animation-delay: 0.15s; }
.space-card:nth-child(4) { animation-delay: 0.2s; }
.space-card:nth-child(5) { animation-delay: 0.25s; }
 
/* ===================================================
   HAMBURGER MENU（ハンバーガーボタン）
   スマホ時のみ表示される三本線ボタン
=================================================== */
.hamburger {
  display: none; /* PCでは非表示 */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
  width: 40px;
  height: 40px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
 
/* ===================================================
   MOBILE MENU（モバイルドロワーメニュー）
   ハンバーガーを押したときに開く
=================================================== */
.mobile-menu {
  display: none; /* 初期非表示 */
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 49;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 0.5rem 0 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 0.5rem 1rem; }
.mobile-menu li { border-bottom: 0.5px solid rgba(221,219,212,0.6); }
.mobile-menu li:last-child { border-bottom: none; }
.mobile-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}
.mobile-menu li a::after { content: '→'; font-size: 0.8rem; color: var(--accent); opacity: 0.6; }
.mobile-menu li a:hover { color: var(--accent); }

/* ===== COLUMN SECTION ===== */
.column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.column-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.column-card:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.column-cat {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}
.column-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.column-date {
  font-size: 0.72rem;
  color: var(--ink3);
  margin-top: auto;
}
 
/* ===================================================

/* PC：テーブル全体をコンテンツ幅に収める */
.page-content .wp-block-table {
  width: 100%;
  overflow-x: hidden;
}
.page-content .wp-block-table table {
  width: 100% !important;
  table-layout: fixed;
}
.page-content .wp-block-table td,
.page-content .wp-block-table th {
  white-space: normal !important;
  word-break: break-word;
}

/* ===================================================
   SEARCH FORM（検索フォーム）
   front-page.php用
   ※ style.cssの末尾（メディアクエリの前）に追加してください
=================================================== */
.search-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
}
.search-form-title {
  font-family: 'BIZ UDPGothic', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}
.search-form-title .ti {
  font-size: 18px;
  vertical-align: -3px;
  margin-right: 6px;
  color: var(--accent);
}
.search-row {
  margin-bottom: 1.25rem;
}
.search-row:last-of-type {
  margin-bottom: 1.5rem;
}
.search-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink2);
  margin-bottom: 8px;
}
.search-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.search-btn {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink2);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.search-btn:hover,
.search-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.search-feat {
  font-size: 0.72rem;
  padding: 5px 11px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.search-feat:hover {
  border-color: var(--accent);
}
.search-feat.active {
  background: var(--green-bg);
  color: var(--green);
  border-color: #bbf7d0;
}
.search-feat.active::before {
  content: '✓ ';
}
.search-select,
.search-input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.88rem;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  box-sizing: border-box;
}
.search-select:focus,
.search-input:focus {
  outline: none;
  border-color: var(--accent);
}
.search-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.search-result-text {
  font-size: 0.9rem;
  color: var(--ink2);
}
.search-result-text #search-count {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 4px;
}
.search-clear {
  padding: 8px 18px;
  background: var(--white);
  color: var(--ink2);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.search-clear:hover {
  background: var(--bg);
  border-color: var(--ink3);
}
 
/* スマホ対応 */
@media (max-width: 768px) {
  .search-form {
    padding: 1.25rem 1rem;
  }
  .search-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .search-result-text {
    text-align: center;
  }
}


/* ===================================================
   RESPONSIVE（スマホ専用スタイル）
   768px以下で適用 ※すべてのスマホ対応を1箇所に集約
=================================================== */
@media (max-width: 768px) {
  /* ヘッダー */
  .site-header { padding: 0 1rem; }
  .header-nav { display: none; } /* PCナビ非表示 */
  .nav-meta { display: none; }   /* 日付テキスト非表示 */
  .hamburger { display: flex; }  /* ハンバーガー表示 */

  /* ヒーロー */
  .hero { padding: 2rem 1rem 1.5rem; }
  .stats-row { gap: 1.5rem; }
  .hero-site-name { font-size: clamp(1.6rem, 8vw, 2.5rem); }

  /* ヒーロー統計数字のスマホ調整 */
  .stat-num { font-size: 1.5rem; }
  .stat-label { font-size: 0.65rem; }

  /* レイアウト */
  .filter-bar { padding: 0.75rem 1rem; }
  .container, .page-content { padding: 1.25rem 1rem; }
  .ad-banner { flex-direction: column; }
  .pricing-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }

  /* カード：スマホ表示 */
  .card-inner { grid-template-columns: 44px 1fr; } /* card-rightを非表示 */
  .card-rank { width: 44px; }
  .card-right { display: none; } /* 価格・評価・ボタンごと非表示 */

  /* スマホ用詳細ボタン表示 */
  .btn-detail-mobile { display: block; }

  /* 比較表 */
  .compare-table { font-size: 0.75rem; }
  .compare-table th, .compare-table td { padding: 8px 10px; }

  /* page-hero h1 フォントサイズ調整 */
  .page-hero h1 {
    font-size: 1.3rem;
    line-height: 1.6;
  }

  /* 個別スペースページ サイドバー縦並び */
  .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* コラムグリッド */
  .column-grid { grid-template-columns: 1fr; }

  /* フッターフォントサイズ */
  .site-footer { font-size: 0.7rem; }

  /* テーブルラッパーの横スクロール対応（スマホのみ） */
  .page-content .wp-block-table {
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
  }

  /* page-contentがはみ出さないように（スマホのみ） */
  .page-content {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* スマホ：section-headを縦並びに */
  .section-head {
   flex-direction: column;
   align-items: flex-start;
   gap: 8px;
  }
  .section-title {
    white-space: nowrap;
  }
}
