/*
Theme Name:  パーソナルジム比較ガイド
Theme URI:   https://bodymake-gym.com
Author:      GuidePro
Author URI:  https://bodymake-gym.com
Description: パーソナルジム比較ガイド専用テーマ（グリーン×ブラック×ホワイト）
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gym-guide
Tags:        gym, comparison, fitness, japanese
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --green:      #22A845;
  --green-dark: #178035;
  --green-light:#4DC96A;
  --green-pale: #E8F9EE;
  --black:      #0A0A0A;
  --dark:       #1A1A1A;
  --ink:		#1b0815;
  --mid:        #444444;
  --light-bg:   #F5F5F5;
  --white:      #FFFFFF;
  --border:     #E2E2E2;
  --line:		#e6e8ee;
  --muted:		#6b7280;
  --links:		#6b5cff;
  --radius:		12px;
  --gradient:   linear-gradient(135deg, #22A845 0%, #178035 100%);
  --shadow:	0 10px 24px rgba(17,19,24,.08);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--light-bg);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

strong {
  font-weight: 800;
  color: var(--g-ink);
  background: linear-gradient(transparent 55%, rgba(25,177,90,.22) 0);
  padding: 0 .18em;
  border-radius: 4px;
}


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--black);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  border-bottom: 2px solid var(--green);
}

.site-header .logo-wrap {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header .logo-img {
  height: 38px;
  width: auto;
  display: block;
}

/* --- ナビゲーション --- */
.site-header nav,
.site-header .header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-header nav a,
.site-header .header-nav a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
}

.site-header nav a::after,
.site-header .header-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.site-header nav a:hover,
.site-header .header-nav a:hover {
  color: var(--white);
}

.site-header nav a:hover::after,
.site-header .header-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  background: var(--gradient) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  transition: opacity 0.2s;
}

.header-cta::after {
  display: none !important;
}

.header-cta:hover {
  opacity: 0.85;
  color: var(--white) !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  margin-top: 68px;
  height: 90vh;
  min-height: 580px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--black);
}

/* グリッド背景 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 168, 69, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 168, 69, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 168, 69, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  bottom: -150px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 168, 69, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* バッジ */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 168, 69, 0.15);
  border: 1px solid rgba(34, 168, 69, 0.4);
  color: var(--green-light);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 3px;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}

/* タイトル */
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-title .green {
  color: var(--green);
}

.hero-title .outline {
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  margin-bottom: 36px;
  letter-spacing: 0.04em;
  animation: fadeUp 0.7s 0.15s ease both;
}

.hero-quote {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  line-height: 1.9;
  border-left: 3px solid var(--green);
  padding-left: 18px;
  margin-bottom: 44px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-quote strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ボタン */
.hero-btns {
  display: flex;
  gap: 14px;
  animation: fadeUp 0.7s 0.25s ease both;
}

.btn-green {
  background: var(--gradient);
  color: var(--white);
  padding: 15px 34px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 28px rgba(34, 168, 69, 0.4);
  display: inline-block;
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(34, 168, 69, 0.55);
  color: var(--white);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
  padding: 15px 34px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-light);
}

/* 統計グリッド */
.hero-right {
  animation: fadeUp 0.7s 0.3s ease both;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid rgba(34, 168, 69, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 28px 24px;
  border-right: 1px solid rgba(34, 168, 69, 0.12);
  border-bottom: 1px solid rgba(34, 168, 69, 0.12);
}

.stat-box:nth-child(2n)  { border-right: none; }
.stat-box:nth-child(3),
.stat-box:nth-child(4)   { border-bottom: none; }

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-num span {
  font-size: 1.2rem;
}

.stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* スクロールインジケーター */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

/* ============================================================
   セクション共通
   ============================================================ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

.sec-head {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
}

.sec-head-left {
  flex-shrink: 0;
  padding-right: 24px;
  border-right: 3px solid var(--green);
  margin-right: 24px;
}

.sec-en {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}

.sec-ja {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.01em;
}

@media screen and (max-width: 768px) {
.sec-en {
  font-size: 0.525rem;
  }
.sec-ja {
  font-size: 1rem;
  }
}

.sec-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   地域検索セクション（黒背景）
   ============================================================ */
.map-section {
  background: var(--dark);
}

.map-section .sec-ja {
  color: var(--white);
}

.map-section .sec-line {
  background: rgba(255, 255, 255, 0.08);
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 44px;
}

.region-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 22px 14px 18px;
  text-align: center;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
  text-decoration: none;
  display: block;
}

.region-card:hover {
  background: rgba(34, 168, 69, 0.12);
  border-color: rgba(34, 168, 69, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(34, 168, 69, 0.15);
}

.region-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: block;
}

.region-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.region-count {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* 東京エリアタグ */
.tokyo-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--green-light);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tokyo-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(34, 168, 69, 0.2);
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.65);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  letter-spacing: 0.02em;
}

.area-tag:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ============================================================
   記事カード
   ============================================================ */
.articles-section {
  background: var(--light-bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
  text-decoration: none;
  display: block;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(34, 168, 69, 0.3);
}

.card-img {
  height: 170px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* WP アイキャッチ画像 */
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-emoji {
  font-size: 2.8rem;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gradient);
  color: var(--white);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  font-family: 'Barlow Condensed', sans-serif;
}

.card-body {
  padding: 18px 20px 20px;
}

.card-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.55;
  margin-bottom: 14px;
}

.card-foot {
  display: flex;
  align-items: center;
  font-size: 0.62rem;
  color: #aaa;
  letter-spacing: 0.04em;
}

.card-foot-arrow {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 700;
}

/* ============================================================
   初心者ガイド
   ============================================================ */
.guide-section {
  background: var(--white);
  border-top: 3px solid var(--green);
  border-bottom: 3px solid var(--border);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.guide-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 14px 20px;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.guide-card:hover {
  background: var(--dark);
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.guide-card:hover .guide-lbl,
.guide-card:hover .guide-ttl {
  color: var(--white);
}

.guide-icon {
  font-size: 1.7rem;
  margin-bottom: 10px;
  display: block;
}

.guide-lbl {
  font-size: 0.57rem;
  color: var(--green-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
  transition: color 0.2s;
  font-family: 'Barlow Condensed', sans-serif;
}

.guide-ttl {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  transition: color 0.2s;
}

/* ============================================================
   タグクラウド
   ============================================================ */
.tags-section {
  background: var(--light-bg);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--mid);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.78rem;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
  font-weight: 500;
}

.tag:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ============================================================
   最新ニュース ＆ CTA
   ============================================================ */
.news-cta-section {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ニュース */
.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}

.news-item:first-child {
  border-top: 1px solid var(--border);
}

.news-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
  padding-top: 2px;
  letter-spacing: 0.04em;
}

.news-txt {
  font-size: 0.8rem;
  color: var(--mid);
  line-height: 1.5;
  transition: color 0.18s;
}

.news-item:hover .news-txt {
  color: var(--dark);
}

/* CTA ボックス */
.cta-box {
  background: var(--dark);
  border-radius: 10px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 168, 69, 0.25);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 168, 69, 0.2), transparent);
  pointer-events: none;
}

.cta-lbl {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 12px;
  font-weight: 700;
}

.cta-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1.45;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.cta-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.75;
  margin-bottom: 28px;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background: var(--black);
  padding: 56px 48px 28px;
  border-top: 2px solid var(--green);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 28px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  margin-bottom: 14px;
  display: block;
}

.footer-desc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.85;
  max-width: 340px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 0.18s;
  letter-spacing: 0.02em;
}

.footer-nav a:hover {
  color: var(--green-light);
}

.footer-copy {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.06em;
}

/* ============================================================
   アニメーション
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

@keyframes scrollPulse {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: translateY(8px); }
}

/* ============================================================
   WP標準クラスのリセット（管理バーとの調整）
   ============================================================ */
.admin-bar .site-header {
  top: 32px;
}

.admin-bar .hero {
  margin-top: calc(68px + 32px);
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 900px) {
  .site-header {
    padding: 0 20px;
  }

  .site-header .header-nav {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .hero-right {
    display: none;
  }

  .section {
    padding: 56px 20px;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .region-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 40px 20px 24px;
  }

  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.4rem;
  }
}



/*記事用に追記
/* =========================
   共通設定
========================= */

body {
    font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    line-height: 1.8;
    color: #222;
    background: #f7f8fb;
    margin: 0;
}

a {
    text-decoration: none;
    color: #6b5cff;
    transition: 0.2s;
}

a:hover {
    opacity: 0.8;
}


/* =========================
   記事全体
========================= */

.single .post {
    max-width: 860px;
    margin: 40px auto;
    background: #fff;
    padding: 40px 50px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}


/* =========================
   記事タイトル
========================= */

#post_header {
    margin-bottom: 40px;
}

#post_ttl {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

#post_date {
    font-size: 14px;
    color: #888;
    margin-top: 8px;
}


/* =========================
   カテゴリタグ
========================= */

.post_tag {
    margin-top: 10px;
}

.post_tagItem {
    display: inline-block;
    background: #f0f2ff;
    color: #6b5cff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 30px;
    margin-right: 6px;
    margin-bottom: 6px;
}


/* =========================
   アイキャッチ画像
========================= */

#post_img {
    margin-top: 30px;
}

.main_photo {
    width: 100%;
    border-radius: 12px;
}


/* =========================
   見出しデザイン
========================= */

.post h2 {
    font-size: 26px;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-left: 14px;
    border-left: 5px solid #6b5cff;
}

.post h3 {
    font-size: 22px;
    margin-top: 35px;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.post h4 {
    font-size: 18px;
    margin-top: 25px;
}


/* =========================
   本文
========================= */

.post p {
    margin-bottom: 20px;
}

.post ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post li {
    margin-bottom: 8px;
}


/* =========================
   ボックスデザイン
========================= */

.box_point {
    background: #f8f9ff;
    padding: 20px 22px;
    border-radius: 12px;
    margin: 30px 0;
}

.box_point strong {
    color: #6b5cff;
}


/* =========================
   ジム紹介カード（ランキング記事用）
========================= */

.gym_card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 5px 14px rgba(0,0,0,0.05);
    padding: 24px;
    margin-bottom: 30px;
}

.gym_card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.gym_card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.gym_card p {
    font-size: 15px;
}


/* =========================
   ボタン
========================= */

.btn_main {
    display: inline-block;
    background: linear-gradient(135deg, #6b5cff, #8b7cff);
    color: #fff;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 15px;
    font-weight: 600;
    margin-top: 15px;
}

.btn_main:hover {
    opacity: 0.9;
}


/* =========================
   目次
========================= */

.toc {
    background: #f7f8ff;
    border-radius: 12px;
    padding: 22px;
    margin: 35px 0;
}

.toc h2 {
    margin-top: 0;
    font-size: 20px;
}

.toc ul {
    padding-left: 18px;
}

.toc li {
    margin-bottom: 6px;
}


/* =========================
   スマホ対応
========================= */

@media screen and (max-width: 768px) {

    .single .post {
        padding: 25px 20px;
    }

    #post_ttl {
        font-size: 24px;
    }

    .post h2 {
        font-size: 22px;
    }

    .post h3 {
        font-size: 19px;
    }

}

/* =========================
   共通
========================= */
.g-wrap{ max-width: 980px; margin: 0 auto; padding: 0 16px; }
.g-section{ margin: 24px 0; }

/* =========================
   画像＋タイトルのカードリンク（PC/SP同一レイアウト）
========================= */
.g-cardlink{
  display: flex;                 /* ←常に横並び */
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 18px rgba(17,19,24,.06);
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}

.g-cardlink:hover{
  border-color: rgba(85,60,156,.25);
  box-shadow: 0 12px 26px rgba(17,19,24,.10);
}

.g-cardlink:active{
  transform: translateY(1px);
}

/* サムネ */
.g-cardlink__thumb{
  flex: 0 0 140px;               /* ←スマホでも横並び維持できるサイズ */
  width: 140px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #eef0f4;
}

.g-cardlink__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトル */
.g-cardlink__body{
  flex: 1 1 auto;
  min-width: 0;                  /* ←長文のはみ出し防止 */
}

.g-cardlink__title{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;         /* ←2行で省略（必要なら3に） */
  overflow: hidden;

  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  color: #1b0815;
}

/* SPでも形を崩さず、少しだけ詰める */
@media (max-width: 767px){
  .g-cardlink{
    gap: 12px;
    padding: 10px 12px;
  }

  .g-cardlink__thumb{
    flex-basis: 120px;
    width: 120px;
  }

  .g-cardlink__title{
    font-size: 14px;
    -webkit-line-clamp: 2;
  }
}


/* ============================================================
   ★ 追加スタイル：FV背景画像 / ポップアップ / スライダー
   ============================================================ */

/* ---------- HERO 背景画像 ---------- */
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(10, 10, 10, 0.82) 0%,
    rgba(10, 10, 10, 0.65) 50%,
    rgba(10, 10, 10, 0.30) 100%
  );
  z-index: 1;
}

/* グリッド・glow は z-index 調整 */
.hero::before { z-index: 1; }
.hero-glow,
.hero-glow2   { z-index: 1; }
.hero-content { z-index: 2; }
.hero-scroll  { z-index: 2; }

/* ---------- 都道府県グリッド（pref-grid） ---------- */
.pref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 32px;
}

.pref-card {
  background: rgba(34, 168, 69, 0.08);
  border: 1px solid rgba(34, 168, 69, 0.3);
  border-radius: 8px;
  padding: 18px 14px 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
  color: var(--white);
  font-family: inherit;
  width: 100%;
}

.pref-card:hover {
  background: rgba(34, 168, 69, 0.22);
  border-color: var(--green);
  transform: translateY(-3px);
}

/* region-card button リセット */
.region-card--popup {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: inherit;
}

/* ---------- モーダル共通 ---------- */
.area-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.area-modal.is-open {
  display: flex;
}

.area-modal__backdrop,
#modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  backdrop-filter: blur(3px);
}

#modal-backdrop.is-open {
  display: block;
}

.area-modal__inner {
  background: var(--white);
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  z-index: 1001;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.22s ease both;
}

.area-modal__inner--wide {
  max-width: 760px;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.area-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--mid);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.18s, color 0.18s;
  line-height: 1;
}

.area-modal__close:hover {
  background: var(--light-bg);
  color: var(--dark);
}

.area-modal__head {
  padding: 24px 24px 0;
  border-bottom: 2px solid var(--green);
  margin-bottom: 0;
}

.area-modal__title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--dark);
  padding-bottom: 14px;
}

.area-modal__body {
  padding: 20px 24px 24px;
}

/* 地図画像 */
.area-modal__map {
  margin-bottom: 18px;
}

.area-modal__map img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.area-modal__map--pref img {
  max-height: 220px;
  object-fit: contain;
}

/* 都道府県（body横並び） */
.area-modal__body--pref {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}

/* リンク一覧 */
.area-modal__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.area-modal__links--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.area-modal__link {
  display: block;
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--light-bg);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  text-align: center;
}

.area-modal__link:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* ---------- スライダー ---------- */
.slider-section {
  overflow: hidden;
}

.articles-section--dark {
  background: var(--dark);
}

.articles-section--dark .sec-ja {
  color: var(--white);
}

.articles-section--dark .sec-line {
  background: rgba(255, 255, 255, 0.1);
}

.slider-wrap {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* スライダーカード（6枚表示 → PC3枚/画面） */
.slider-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.slider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(34, 168, 69, 0.4);
}

.slider-card__img {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--light-bg);
}

.slider-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.slider-card__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* スライダーボタン */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--green);
  color: var(--green-dark);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  line-height: 1;
}

.slider-btn:hover {
  background: var(--green);
  color: var(--white);
}

.slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.slider-btn--prev { left: -16px; }
.slider-btn--next { right: -16px; }

/* articles-section--dark の中のスライダーボタン */
.articles-section--dark .slider-btn {
  background: var(--dark);
  border-color: var(--green);
  color: var(--green-light);
}

.articles-section--dark .slider-btn:hover {
  background: var(--green);
  color: var(--white);
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .pref-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slider-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  .area-modal__body--pref {
    grid-template-columns: 1fr;
  }

  .area-modal__links--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .pref-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slider-card {
    flex: 0 0 100%;
  }

  .slider-btn--prev { left: 4px; }
  .slider-btn--next { right: 4px; }

  .area-modal__links--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
