/*
Theme Name: 西三河フォトスタジオ比較ガイド
Theme URI: https://nishimikawa-photo.example.com
Author: Nishimikawa Photo Guide
Description: 岡崎・豊田・安城・刈谷・西尾エリアのフォトスタジオ比較サイト専用テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: nishimikawa-photo
*/

/* ============================================================
   CSS カスタムプロパティ（変数）
   ============================================================ */
:root {
  --rose:       #b5846a;
  --rose-light: #f5ede8;
  --rose-mid:   #d4a896;
  --dark:       #2c2420;
  --mid:        #5a4a44;
  --muted:      #9e8e8a;
  --bg:         #faf8f6;
  --white:      #ffffff;
  --border:     #e8ddd8;

  --font-serif: 'Noto Serif JP', Georgia, serif;
  --font-sans:  'Noto Sans JP', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 4px rgba(44,36,32,0.07);
  --shadow-md:  0 4px 16px rgba(44,36,32,0.10);
  --shadow-lg:  0 8px 32px rgba(44,36,32,0.13);

  --container:  1140px;
  --transition: 0.22s ease;
}

/* ============================================================
   リセット & ベース
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mid);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rose);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: var(--rose-mid);
  opacity: 0.85;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--dark);
  line-height: 1.45;
  font-weight: 600;
}

h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

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

.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
  padding-block: 48px;
}

@media (max-width: 900px) {
  .content-area {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 32px;
  }
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.65em 1.5em;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}

.btn-primary:hover {
  background: var(--rose-mid);
  border-color: var(--rose-mid);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--rose);
  border-color: var(--rose);
}

.btn-outline:hover {
  background: var(--rose);
  color: var(--white);
}

/* ============================================================
   カード
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-body {
  padding: 24px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.card-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ============================================================
   セクション見出し
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--dark);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 560px;
  margin-inline: auto;
}

/* ============================================================
   バッジ・タグ
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--rose-light);
  color: var(--rose);
}

/* ============================================================
   ページヒーロー
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
  padding-block: 56px 40px;
  text-align: center;
}

.page-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.page-hero .breadcrumb a {
  color: var(--muted);
}

.page-hero .breadcrumb a:hover {
  color: var(--rose);
}

/* ============================================================
   投稿・固定ページ 本文スタイル
   ============================================================ */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.entry-content h2 {
  border-left: 4px solid var(--rose);
  padding-left: 12px;
}

.entry-content ul,
.entry-content ol {
  list-style: revert;
  padding-left: 1.5em;
  margin-bottom: 1.2em;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.entry-content th {
  background: var(--rose-light);
  color: var(--dark);
  font-weight: 600;
}

.entry-content tr:nth-child(even) td {
  background: #fdf9f7;
}

.entry-content blockquote {
  border-left: 3px solid var(--rose-mid);
  padding: 12px 20px;
  background: var(--rose-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-block: 1.5em;
  color: var(--mid);
  font-style: italic;
}

/* ============================================================
   ページネーション
   ============================================================ */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 10px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  color: var(--mid);
  background: var(--white);
  transition: all var(--transition);
}

.pagination a:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
}

.pagination .current {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
  font-weight: 700;
}

/* ============================================================
   ハンバーガーアニメーション
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
}

/* ============================================================
   アクセシビリティ
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ========== エリアページ ========== */
.area-hero {
  background: var(--bg);
  padding: 48px 24px 32px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.area-label { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.1em; }
.area-title { font-family: var(--font-serif); font-size: 2rem; color: var(--dark); margin: 8px 0; }
.area-subtitle { font-size: 0.9rem; color: var(--muted); }
.area-intro { max-width: 720px; margin: 32px auto; padding: 0 24px; line-height: 1.9; color: var(--mid); }

/* ========== スタジオカード ========== */
.studio-list { max-width: 800px; margin: 0 auto; padding: 0 24px 64px; display: flex; flex-direction: column; gap: 32px; }
.studio-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; gap: 24px; box-shadow: 0 2px 12px rgba(44,36,32,0.06); }
.studio-rank { width: 48px; height: 48px; background: var(--rose); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; flex-shrink: 0; }
.studio-body { flex: 1; }
.studio-name { font-family: var(--font-serif); font-size: 1.4rem; color: var(--dark); margin: 0 0 4px; }
.studio-catch { font-size: 0.88rem; color: var(--rose); font-weight: 600; margin: 0 0 12px; }
.studio-desc { font-size: 0.92rem; line-height: 1.8; color: var(--mid); margin-bottom: 16px; }
.studio-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { background: var(--rose-light); color: var(--rose); font-size: 0.78rem; padding: 3px 10px; border-radius: var(--radius-full); font-weight: 500; }
.studio-info { border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.info-row { display: flex; gap: 12px; font-size: 0.88rem; }
.info-label { color: var(--muted); min-width: 80px; font-weight: 500; }
.studio-link { display: inline-block; background: var(--rose); color: var(--white); padding: 8px 20px; border-radius: var(--radius-full); font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: background var(--transition); }
.studio-link:hover { background: var(--rose-mid); }

/* ========== 選び方ガイド ========== */
.select-guide { max-width: 800px; margin: 0 auto; padding: 0 24px 64px; }
.select-guide h2 { font-family: var(--font-serif); font-size: 1.6rem; color: var(--dark); margin-bottom: 24px; text-align: center; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.guide-item { background: var(--bg); border-radius: var(--radius-lg); padding: 24px; }
.guide-item h3 { font-family: var(--font-serif); font-size: 1rem; color: var(--rose); margin: 0 0 8px; }
.guide-item p { font-size: 0.88rem; line-height: 1.8; color: var(--mid); margin: 0; }

@media (max-width: 768px) {
  .studio-card { flex-direction: column; }
  .guide-grid { grid-template-columns: 1fr; }
}

/* ========== サイドバー検索 ========== */
.widget_search .search-form,
.widget_search form {
  display: flex;
  gap: 8px;
}

.widget_search input[type="search"] {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--dark);
  background: var(--white);
  outline: none;
}

.widget_search input[type="search"]:focus {
  border-color: var(--rose);
}

.widget_search input[type="submit"] {
  padding: 8px 16px;
  background: var(--rose);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition);
}

.widget_search input[type="submit"]:hover {
  background: var(--rose-mid);
}