/*
Theme Name: メンズ美容ナビ Magazine
Theme URI: https://artmake-navi.com
Author: メンズ美容ナビ編集部
Author URI: https://artmake-navi.com
Description: メンズ美容クリニック比較サイト専用テーマ。脱毛・アートメイク・エクソソーム・AGA治療のクリニック比較に最適化。マガジン・エディトリアルデザイン。
Version: 4.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mens-beauty-navi
Tags: beauty, clinic, comparison, responsive, custom-post-types, magazine

メンズ美容ナビ Magazine Theme v3.0.0
LP3カテゴリ（脱毛・アートメイク・エクソソーム）統合版
*/

/* ==========================================================================
   CSS VARIABLES — Magazine Editorial Design System
   ========================================================================== */
:root {
  --bk: #0a0a0a;
  --wh: #fff;
  --rd: #dc2626;
  --rd2: #b91c1c;
  --g50: #fafafa;
  --g100: #f5f5f5;
  --g200: #e5e5e5;
  --g300: #d4d4d4;
  --g400: #a3a3a3;
  --g500: #737373;
  --g600: #525252;
  --g700: #404040;
  --g800: #262626;
  --serif: 'Shippori Mincho', 'Noto Serif JP', serif;
  --sans: 'Inter', 'Noto Sans JP', sans-serif;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  background: var(--wh);
  color: var(--bk);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.label { font-family: var(--sans); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
.label-red { color: var(--rd); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 60px; }
.sec { padding: 100px 0; }
.sec-dk { background: var(--g50); }
.sec-h { margin-bottom: 60px; }
.sec-h .label { margin-bottom: 16px; display: block; }
.sec-h h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 400; line-height: 1.3; letter-spacing: -0.5px; }
.sec-h h2 strong { font-weight: 700; }
.sec-h p { margin-top: 20px; font-size: 16px; color: var(--g500); line-height: 2; max-width: 600px; }
.sec-hc { text-align: center; }
.sec-hc p { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  border-bottom: 1px solid var(--bk);
  position: sticky;
  top: 0;
  background: var(--wh);
  z-index: 100;
}
.header-logo {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--bk);
  text-decoration: none;
}
.header-nav { display: flex; gap: 40px; }
.header-nav a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--bk);
  text-decoration: none;
  font-weight: 500;
}
.header-nav a:hover { color: var(--rd); }
.hdr-act { display: flex; gap: 16px; align-items: center; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-d { background: var(--bk); color: var(--wh); border: none; padding: 12px 28px; font-family: var(--sans); font-size: 11px; letter-spacing: 2px; cursor: pointer; }
.btn-r { background: var(--rd); color: var(--wh); border: none; padding: 18px 48px; font-family: var(--sans); font-size: 12px; letter-spacing: 2px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.btn-r:hover { background: var(--rd2); }
.btn-o { background: none; color: var(--bk); border: 1px solid var(--bk); padding: 17px 36px; font-family: var(--sans); font-size: 12px; letter-spacing: 2px; cursor: pointer; text-decoration: none; display: inline-block; }

/* ==========================================================================
   PROMO BAR
   ========================================================================== */
.promo { background: var(--bk); color: var(--g400); text-align: center; padding: 10px 20px; font-family: var(--sans); font-size: 12px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 85vh; }
.hero-c { padding: 100px 80px 100px 60px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(40px, 5vw, 60px); font-weight: 400; line-height: 1.2; margin-bottom: 28px; letter-spacing: -1px; }
.hero h1 strong { font-weight: 700; }
.hero-t { font-size: 16px; line-height: 2.2; color: var(--g600); margin-bottom: 48px; }
.hero-cta { display: flex; gap: 16px; }
.hero-img .ph, .hero-img img { height: 100%; min-height: 600px; object-fit: cover; width: 100%; }

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--bk); border-bottom: 1px solid var(--bk); }
.stat { padding: 40px; text-align: center; border-right: 1px solid var(--g200); }
.stat:last-child { border-right: none; }
.stat-n { font-family: var(--sans); font-size: 48px; font-weight: 300; letter-spacing: -2px; margin-bottom: 8px; }
.stat-l { font-family: var(--sans); font-size: 12px; color: var(--g500); letter-spacing: 1px; }

/* ==========================================================================
   TOP PAGE — CATEGORY CARDS
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--bk); border: 1px solid var(--bk); }
.cat-card { background: var(--wh); text-decoration: none; color: inherit; transition: background 0.3s; padding: 0; }
.cat-card:hover { background: var(--g50); }
.cat-card-img { height: 280px; overflow: hidden; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cat-card:hover .cat-card-img img { transform: scale(1.05); }
.cat-card-body { padding: 32px; }
.cat-card-label { font-family: var(--sans); font-size: 10px; letter-spacing: 2px; color: var(--rd); font-weight: 600; margin-bottom: 12px; }
.cat-card-body h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.cat-card-body p { font-size: 14px; color: var(--g500); line-height: 1.8; }

/* ==========================================================================
   CLINIC CARD (Archive / Category)
   ========================================================================== */
.clinic-list { display: grid; gap: 32px; }
.clinic-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--bk);
  transition: transform 0.3s;
}
.clinic-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.clinic-card-img { position: relative; }
.clinic-card-img img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.clinic-card-badge {
  position: absolute; top: 0; left: 0;
  background: var(--bk); color: var(--wh);
  padding: 10px 16px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 2px; font-weight: 600;
}
.clinic-card-badge.gold { background: var(--rd); }
.clinic-card-content { padding: 32px; display: flex; flex-direction: column; }
.clinic-card-rank { font-family: var(--sans); font-size: 48px; font-weight: 200; color: var(--g300); margin-bottom: 8px; }
.clinic-card-content h3 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.clinic-card-area { font-family: var(--sans); font-size: 13px; color: var(--g500); margin-bottom: 12px; }
.clinic-card-desc { font-size: 14px; color: var(--g600); line-height: 2; margin-bottom: 16px; }
.clinic-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.clinic-card-tags .tag { display: inline-block; padding: 3px 8px; border: 1px solid var(--g300); font-family: var(--sans); font-size: 10px; letter-spacing: 0.5px; }
.clinic-card-tags .tag.hl { background: var(--rd); color: var(--wh); border-color: var(--rd); }
.clinic-card-cta { display: flex; gap: 12px; margin-top: auto; }
.clinic-card-cta .btn-r { padding: 14px 32px; flex: 2; }
.clinic-card-cta .btn-o { padding: 13px 24px; flex: 1; }

/* ==========================================================================
   SINGLE CLINIC
   ========================================================================== */
.single-clinic-hero { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--bk); }
.single-clinic-hero img { width: 100%; height: 100%; object-fit: cover; min-height: 500px; }
.single-clinic-info { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.single-clinic-info h1 { font-size: 36px; font-weight: 600; margin-bottom: 12px; }

/* ==========================================================================
   COLUMNS / ARTICLES
   ========================================================================== */
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--bk); border: 1px solid var(--bk); }
.col-card { background: var(--wh); text-decoration: none; color: inherit; transition: background 0.3s; }
.col-card:hover { background: var(--g50); }
.col-card img, .col-card .ph { height: 200px; width: 100%; object-fit: cover; }
.col-body { padding: 24px; }
.col-cat { font-family: var(--sans); font-size: 10px; letter-spacing: 2px; color: var(--rd); font-weight: 600; margin-bottom: 8px; }
.col-body h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; line-height: 1.5; }
.col-body p { font-size: 13px; color: var(--g500); line-height: 1.8; }
.col-date { font-family: var(--sans); font-size: 11px; color: var(--g400); margin-top: 12px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { border-top: 1px solid var(--bk); }
.faq-item { border-bottom: 1px solid var(--g200); }
.faq-q { padding: 28px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 500; }
.faq-q:hover { color: var(--rd); }
.faq-qn { font-family: var(--sans); font-size: 14px; color: var(--g400); margin-right: 20px; letter-spacing: 1px; }
.faq-tog { font-family: var(--sans); font-size: 24px; font-weight: 300; color: var(--g400); transition: all 0.3s; flex-shrink: 0; }
.faq-item.active .faq-tog { transform: rotate(45deg); color: var(--rd); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-ai { padding: 0 0 28px 48px; font-size: 15px; color: var(--g600); line-height: 2; }
.faq-item.active .faq-a { max-height: 300px; }

/* ==========================================================================
   NOTICE
   ========================================================================== */
.notice { border: 1px solid var(--rd); padding: 32px 40px; }
.notice-t { font-family: var(--sans); font-size: 12px; letter-spacing: 2px; color: var(--rd); font-weight: 600; margin-bottom: 12px; }
.notice p { font-size: 14px; color: var(--g600); line-height: 2; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--bk); color: var(--wh); padding: 80px 60px 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--g800); margin-bottom: 40px; }
.footer-brand { font-family: var(--sans); font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.footer-desc { font-size: 14px; color: var(--g500); line-height: 1.9; }
.footer-col h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 2px; margin-bottom: 20px; color: var(--g400); }
.footer-col a { display: block; color: var(--g500); text-decoration: none; font-size: 14px; padding: 6px 0; }
.footer-col a:hover { color: var(--wh); }
.footer-btm { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 12px; color: var(--g600); flex-wrap: wrap; gap: 16px; }

/* ==========================================================================
   PLACEHOLDER IMAGE
   ========================================================================== */
.ph {
  background: linear-gradient(135deg, #d1d5db, #9ca3af, #6b7280);
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af; font-family: var(--sans); font-size: 11px; letter-spacing: 1px;
  position: relative; overflow: hidden; flex-direction: column; gap: 4px;
}
.ph::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.03) 35px, rgba(255,255,255,0.03) 70px); pointer-events: none; }
.ph.dk { background: linear-gradient(135deg, #374151, #1f2937, #111827); }

/* ==========================================================================
   WORDPRESS SPECIFIC
   ========================================================================== */
.wp-block-image img { max-width: 100%; height: auto; }
.entry-content { max-width: 800px; margin: 0 auto; padding: 60px; }
.entry-content h2 { font-size: 28px; font-weight: 600; margin: 48px 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--bk); }
.entry-content h3 { font-size: 22px; font-weight: 600; margin: 36px 0 16px; }
.entry-content p { margin-bottom: 24px; line-height: 2; color: var(--g600); }
.entry-content ul, .entry-content ol { margin: 0 0 24px 24px; }
.entry-content li { margin-bottom: 8px; line-height: 1.8; color: var(--g600); }
.entry-content a { color: var(--rd); text-decoration: underline; }
.entry-content a:hover { color: var(--rd2); }
.entry-content blockquote { border-left: 3px solid var(--rd); padding: 16px 24px; margin: 24px 0; background: var(--g50); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content th { background: var(--bk); color: var(--wh); padding: 12px 16px; font-family: var(--sans); font-size: 12px; letter-spacing: 1px; text-align: left; }
.entry-content td { padding: 12px 16px; border-bottom: 1px solid var(--g200); font-family: var(--sans); font-size: 14px; }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 60px 0; font-family: var(--sans); }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--g300); font-size: 14px; }
.pagination .current { background: var(--bk); color: var(--wh); border-color: var(--bk); }
.pagination a:hover { border-color: var(--rd); color: var(--rd); }

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.page-404 { text-align: center; padding: 120px 60px; }
.page-404 h1 { font-family: var(--sans); font-size: 120px; font-weight: 200; color: var(--g300); }
.page-404 p { font-size: 18px; color: var(--g500); margin: 20px 0 40px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .header { padding: 16px 24px; }
  .header-nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-c { padding: 60px 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 24px; }
  .cat-grid { grid-template-columns: 1fr; }
  .clinic-card { grid-template-columns: 1fr; }
  .col-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .single-clinic-hero { grid-template-columns: 1fr; }
  .entry-content { padding: 40px 24px; }
}
