/*
Theme Name: Omiya Pilates Guide
Theme URI: https://example.com/
Author: Your Name
Description: 大宮パーソナルピラティス比較ガイド向けのオリジナルテーマです。トップページのヒーロー、比較表、スタジオ詳細、FAQなどをすべて管理画面から編集できます。
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omiya-pilates-guide
*/

html {
  scroll-behavior: smooth;
}

:root{
  --bg: #F4F7F5;
  --surface: #FFFFFF;
  --sage: #2FBF6B;
  --sage-deep: #1B6E40;
  --sage-light: #E1F3E8;
  --gold: #2FBF6B;
  --text: #1C2522;
  --text-soft: #51635A;
  --border: #DCE6E1;
  --radius: 14px;
}
*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; scroll-behavior: smooth; }
body{
  font-family: "Noto Sans JP", "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,.brand{
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
a{ color: inherit; text-decoration: none; }
img,.ph{ display:block; }

/* ---------- Leaf icon ---------- */
.leaf{ width:18px; height:18px; flex-shrink:0; }
.leaf path{ fill: var(--border); }
.leaf.filled path{ fill: var(--sage); }
.leaf-rating{ display:inline-flex; align-items:center; gap:3px; }
.leaf-rating .score{
  font-family: "Outfit", sans-serif;
  font-weight:700; color: var(--sage-deep); margin-left:6px; font-size:0.95rem;
}

/* ---------- Header / Nav ---------- */
header.site-header{
  background-color: #00c65e;
  color: #fff;
  position: sticky; top:0; z-index: 50;
  box-shadow: 0 4px 24px -8px rgba(0, 80, 30, 0.25);
}
.header-inner{
  max-width: 1180px; margin:0 auto;
  padding: 24px 24px 24px 20px;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:14px;
}
.brand{
  display:flex; align-items:center;
}
.brand-title{
  display:block;
  font-family: 'Noto Serif JP', serif;
  font-size: 44px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .05em;
  text-shadow: 0 4px 16px rgba(0,60,20,0.55), 0 1px 0 rgba(255,255,255,0.25);
  line-height: 1.1;
  padding-left: 0;
  margin-left: 0;
}
.brand small{
  display:block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: .18em;
  margin-top: 4px;
}
nav.tabs{
  display:flex; gap:6px; flex-wrap:wrap;
  margin-left: 24px;
}
nav.tabs a{
  font-family: "Noto Sans JP", sans-serif;
  font-size:0.9rem;
  font-weight: 700;
  background: #fff;
  color: #00a050;
  border: 2px solid #fff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor:pointer;
  display:inline-block;
  transition: background 0.2s, color 0.2s, transform .15s, box-shadow .2s, border-color .2s;
}
nav.tabs a:hover{
  background: #00a050; color:#fff; border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(0, 80, 30, 0.35);
}

/* ---------- Layout ---------- */
main{ max-width: 1180px; margin:0 auto; padding: 32px 24px 80px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  background: #fff;
  margin-bottom: 28px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 0% 42%;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 40%, rgba(255,255,255,0.0) 75%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 52px 56px;
  max-width: 600px;
}
.hero::after { display: none; }
.hero-photo { display: none; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: #00a050;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: 42px;
  font-weight: 700;
  color: #1C2522;
  line-height: 1.3;
  margin: 0 0 20px;
  text-shadow: none;
  letter-spacing: .03em;
  word-break: keep-all;
  max-width: 8em;
}
.hero p {
  font-size: 16px;
  color: #51635A;
  line-height: 1.8;
  margin: 0;
  max-width: 42ch;
}
@media (max-width: 800px) {
  .hero { min-height: 300px; }
  .hero-content { padding: 36px 28px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14px; }
}

/* ---------- TOC (Table of Contents) ---------- */
.toc{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 40px;
}
.toc-title{ font-weight:700; font-size:1.1rem; margin-bottom:16px; display:flex; align-items:center; gap:8px; }
.toc ul{ list-style:none; padding:0; margin:0; }
.toc li{ margin-bottom:8px; }
.toc a{ color: var(--sage-deep); font-weight:500; border-bottom: 1px solid transparent; transition: border-color .2s; }
.toc a:hover{ border-color: var(--sage-deep); }

/* ---------- Section heading ---------- */
.section-head{ display:flex; align-items:baseline; justify-content:space-between; margin: 48px 0 18px; gap:16px; flex-wrap:wrap; }
.section-head h2{ font-size:1.6rem; margin:0; display:flex; align-items:center; gap:10px; }
.section-sub{ color: var(--text-soft); font-size:0.9rem; margin: -10px 0 18px; }

/* ---------- Points section ---------- */
.points-block{
  background:#fff; padding:2rem;
  border-radius:14px; border:1px solid #DCE6E1; margin-bottom:40px;
}
.points-row{
  display:flex; gap:0.25rem; align-items:flex-start;
}
.points-list{
  width:60%; flex-shrink:0;
  display:flex; flex-direction:column; gap:15px;
}
.points-photos{
  width:40%; flex-shrink:0;
}
@media (max-width: 768px){
  .points-row{ flex-direction:column; }
  .points-list, .points-photos{ width:100%; }
}

.ph{
  width:100%; height:150px; background:
    repeating-linear-gradient(135deg, var(--sage-light) 0 14px, #EAFBEE 14px 28px);
  position:relative;
}
.ph span{
  position:absolute; bottom:10px; right:12px; font-size:0.7rem; color: var(--text-soft);
  background: rgba(255,255,255,0.9); padding:3px 8px; border-radius:6px;
  font-family:"Noto Sans JP",sans-serif; font-weight:500;
}
.ph img{ width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.card-area{ font-size:0.72rem; color: var(--sage-deep); font-weight:700; letter-spacing:0.1em; margin-bottom:4px; }
.tag{
  font-size:0.7rem; background: var(--sage-light); color: var(--sage-deep);
  padding: 4px 12px; border-radius: 8px; font-weight:700;
  font-family:"Noto Sans JP",sans-serif;
}
.tag.outline{ background:transparent; border:2px solid var(--border); color: var(--text-soft); }

/* ---------- Studio detail blocks ---------- */
.studio-block{ padding: 36px 0; border-bottom: 1px solid var(--border); }
.studio-block:first-of-type{ padding-top: 8px; }
.studio-block:last-of-type{ border-bottom: none; }

/* ---------- Quick jump list ---------- */
.quick-list{
  display:flex; flex-direction:column; gap:10px; margin-bottom: 36px;
}
.quick-item{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; cursor:pointer; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.quick-item:hover{
  border-color: var(--sage); transform: translateY(-2px);
  box-shadow: 0 8px 18px -12px rgba(31,138,60,0.35);
}
.quick-name{ font-weight:700; font-size:1.02rem; flex:1; min-width: 160px; }
.quick-meta{ display:flex; gap:14px; flex-wrap:wrap; align-items:center; font-size:0.85rem; color: var(--text-soft); }
.quick-meta .pill-ok, .quick-meta .pill-no{ font-weight:700; font-size:0.8rem; }
.quick-arrow{ font-size:1.2rem; color: var(--sage-deep); flex-shrink:0; }
@media (max-width: 600px){
  .quick-item{ flex-wrap:wrap; }
  .quick-meta{ width:100%; }
}

/* ---------- Studio detail (info table, map, CTA) ---------- */
.detail-grid{ display:grid; grid-template-columns: 1.1fr 1.4fr; gap:28px; align-items:start; }
.detail-photo .ph{ height: 260px; border-radius: var(--radius); }
.detail-photo .thumbs{ display:grid; grid-template-columns: repeat(4,1fr); gap:8px; margin-top:8px; }
.detail-photo .thumbs .ph{ height:60px; border-radius:8px; }
.detail-photo .map-embed{
  margin-top:8px; border-radius: var(--radius); overflow:hidden;
  border:1px solid var(--border); aspect-ratio: 16/10;
}
.detail-photo .map-embed iframe{ width:100%; height:100%; display:block; border:0; }
.detail-title .card-area{ margin-bottom:6px; }
.detail-title h3{ font-size:1.7rem; margin:0 0 10px; }
.detail-title p.lead{ color: var(--text-soft); font-size:0.92rem; max-width:42ch; }
.info-table{ width:100%; border-collapse: collapse; margin-top:20px; font-size:0.92rem; }
.info-table th, .info-table td{ text-align:left; padding: 13px 4px; border-bottom:1px solid var(--border); vertical-align:top; }
.info-table th{ width: 150px; color: var(--sage-deep); font-weight:700; font-family:"Outfit",sans-serif; font-size:0.95rem; }
.menu-list{ display:flex; flex-wrap:wrap; gap:8px; }
.cta-box{
  background: var(--sage-light); border-radius: var(--radius); padding:20px 22px; margin-top:24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  border: 1px solid var(--border);
}
.cta-box .label{ font-size:0.82rem; color: var(--sage-deep); font-weight:700; font-family:"Noto Sans JP",sans-serif; }
.btn-primary{
  background: var(--sage-deep); color:#fff; font-weight:700; font-size:0.9rem;
  padding: 12px 28px; border-radius: 8px; display:inline-block;
  font-family:"Outfit",sans-serif;
  transition: transform .15s, background .2s;
}
.btn-primary:hover{ transform: translateY(-2px); background: var(--sage); color:#fff; }

@media (max-width: 860px){
  .detail-grid{ grid-template-columns: 1fr; }
}

/* ---------- Compare table ---------- */
.table-wrap{
  border:2px solid var(--border); border-radius: var(--radius); overflow:auto;
  background: var(--surface); margin-bottom: 40px;
}
table.compare{ width:100%; border-collapse: collapse; font-size:0.86rem; min-width: 760px; }
table.compare th, table.compare td{
  padding: 14px 16px; text-align:left; border-bottom:1px solid var(--border); white-space:nowrap;
}
table.compare thead th{
  background: #22313A; color:#fff; font-weight:700; font-size:0.85rem;
  position: sticky; top:0; font-family:"Noto Sans JP",sans-serif;
}
table.compare tbody tr:nth-child(even){ background: var(--bg); }
table.compare tbody tr:hover{ background: var(--sage-light); }
table.compare td.name-col, table.compare th.name-col{
  position: sticky; left:0; z-index:3; min-width: 180px;
  box-shadow: 2px 0 4px -2px rgba(0,0,0,0.08);
}
table.compare td.name-col{ background: var(--surface); font-weight:700; }
table.compare tbody tr:nth-child(even) td.name-col{ background: var(--bg); }
table.compare thead th.name-col{ background: #22313A; }
table.compare td.name-col a{ color: var(--sage-deep); font-weight:700; border-bottom:2px solid var(--sage); }
.pill-ok{ color: var(--sage-deep); font-weight:700; }
.pill-no{ color: var(--text-soft); }

/* ---------- FAQ Section ---------- */
.faq-section {
  margin-bottom: 30px;
}

.faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-question {
  font-weight: bold;
  color: #333;
  font-size: 1.05em;
  padding: 15px 20px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #e8e8e8;
}

.faq-question:hover {
  background-color: #e0e0e0;
}

.accordion-icon {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.faq-question.active .accordion-icon {
  transform: rotate(-135deg);
}

.faq-answer {
  display: none;
  color: #555;
  line-height: 1.6;
  padding: 15px 20px;
}

@media (max-width: 768px) {
  .faq-question {
    font-size: 0.95em;
    padding: 12px 15px;
  }
  .faq-answer {
    font-size: 0.95em;
    padding: 12px 15px;
  }
}

/* ---------- Footer ---------- */
footer.site-footer{
  background: #00c65e;
  color: #fff;
  padding: 48px 24px; text-align:center;
  font-size:0.85rem; margin-top:60px; font-family:"Noto Sans JP",sans-serif;
}
footer.site-footer .brand{ color:#fff; justify-content:center; margin-bottom:12px; font-size:1.2rem; }
footer.site-footer a,
footer.site-footer p{
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
}
footer.site-footer p{ text-decoration: none; margin-top:10px; font-size:0.75rem; }

/* ---------- Responsive ---------- */
@media (max-width: 600px){
  nav.tabs a{ font-size:0.8rem; padding:7px 14px; }
  .section-head h2{ font-size:1.3rem; }
}
