/* =========================================
   人生どん底センター - Main Stylesheet
   Version: 1.0.0
   ========================================= */

/* ===== DESIGN TOKENS ===== */
:root {
  --white: #FFFFFF;
  --off-white: #F7F9FA;
  --bg-subtle: #EEF2F6;
  --teal-deep: #1A5C63;
  --teal-main: #2D8A84;
  --teal-light: #4AADA6;
  --teal-pale: #E0F5F4;
  --navy: #14233B;
  --navy-mid: #1B2A41;
  --amber: #D4821C;
  --amber-light: #F4A835;
  --text-dark: #1A2530;
  --text-mid: #3D5166;
  --text-muted: #6B7C8E;
  --border: #D8E4EB;
  --border-teal: rgba(45,138,132,0.25);
  --shadow-sm: 0 1px 4px rgba(20,35,59,0.08);
  --shadow-md: 0 4px 16px rgba(20,35,59,0.1);
  --shadow-lg: 0 8px 32px rgba(20,35,59,0.12);
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: 0.18s ease;
}

/* ===== RESET & BASE ===== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== LAYOUT ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--bg { background: var(--off-white); }
.section--dark { background: var(--navy); }
.section-inner { display: flex; flex-direction: column; gap: 32px; }

/* ===== SECTION HEADER ===== */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.section-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal-main); display: flex; align-items: center; gap: 8px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border-teal); max-width: 60px; }
.section-heading {
  font-family: 'Oswald', 'Noto Sans JP', sans-serif;
  font-size: 1.85rem; font-weight: 700; color: var(--navy);
  letter-spacing: 0.02em; margin-top: 6px; line-height: 1.3;
}
.section-heading em { font-style: normal; color: var(--teal-main); }
.section-sub { font-size: 0.9rem; color: var(--text-muted); margin-top: 6px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { line-height: 1.35; }
.entry-content h2 { font-size: 1.45rem; font-weight: 700; color: var(--navy); margin: 2.5em 0 0.8em; padding-bottom: 0.5em; border-bottom: 2px solid var(--teal-pale); }
.entry-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 2em 0 0.6em; padding-left: 12px; border-left: 3px solid var(--teal-main); }
.entry-content p { margin-bottom: 1.4em; line-height: 1.9; }
.entry-content ul, .entry-content ol { margin: 1em 0 1.4em 1.5em; }
.entry-content li { margin-bottom: 0.4em; line-height: 1.8; }
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }
.entry-content a { color: var(--teal-main); text-decoration: underline; }
.entry-content a:hover { color: var(--teal-deep); }
.entry-content strong { font-weight: 700; color: var(--navy); }
.entry-content blockquote { border-left: 3px solid var(--teal-light); padding: 12px 16px; margin: 1.5em 0; background: var(--teal-pale); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9rem; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--bg-subtle); font-weight: 700; }

/* ===== BADGE / TAG ===== */
.badge { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 3px; letter-spacing: 0.06em; }
.badge--teal { background: var(--teal-pale); color: var(--teal-deep); }
.badge--amber { background: #FEF3E2; color: var(--amber); }
.badge--red { background: #FDE8E8; color: #C0392B; }
.badge--gray { background: var(--bg-subtle); color: var(--text-muted); }
.badge--new { background: var(--teal-main); color: var(--white); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  font-size: 0.95rem; padding: 13px 28px; border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer; border: none; font-family: inherit;
}
.btn--primary {
  background: var(--teal-main); color: var(--white);
  box-shadow: 0 3px 14px rgba(45,138,132,0.3);
}
.btn--primary:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(45,138,132,0.35); color: var(--white); }
.btn--amber { background: var(--amber); color: var(--white); box-shadow: 0 3px 14px rgba(212,130,28,0.3); }
.btn--amber:hover { background: #B8711A; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,130,28,0.35); color: var(--white); }
.btn--outline { border: 1.5px solid var(--teal-main); color: var(--teal-main); background: transparent; font-size: 0.85rem; padding: 9px 20px; }
.btn--outline:hover { background: var(--teal-main); color: var(--white); }
.btn--outline-white { border: 1.5px solid rgba(255,255,255,0.5); color: rgba(255,255,255,0.9); background: transparent; font-size: 0.88rem; padding: 11px 24px; }
.btn--outline-white:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn--sm { padding: 8px 18px; font-size: 0.82rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: 1160px; margin: 0 auto; }
.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--teal-deep), var(--teal-light));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-icon svg { width: 22px; height: 22px; fill: white; }
.logo-text-wrap { line-height: 1.2; }
.site-name { font-family: 'Oswald', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--navy); letter-spacing: 0.06em; }
.site-tagline { font-size: 0.6rem; color: var(--text-muted); margin-top: 1px; }

/* Global Nav */
.global-nav { display: flex; gap: 2px; align-items: center; }
.global-nav a { font-size: 0.8rem; color: var(--text-mid); padding: 7px 12px; border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); font-weight: 500; }
.global-nav a:hover { background: var(--teal-pale); color: var(--teal-deep); }
.global-nav .nav-cta { background: var(--teal-main); color: var(--white); font-weight: 700; }
.global-nav .nav-cta:hover { background: var(--teal-deep); color: var(--white); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 36px; height: 36px; align-items: center; justify-content: center; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; }
.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); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(20,35,59,0.96); flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.1rem; font-weight: 700; color: var(--white); padding: 14px 32px; border-radius: var(--radius-md); transition: background var(--transition); width: 280px; text-align: center; }
.mobile-nav a:hover { background: rgba(255,255,255,0.1); }
.mobile-nav .nav-cta-mobile { background: var(--teal-main); margin-top: 8px; }
.mobile-nav-close { position: absolute; top: 20px; right: 20px; color: var(--white); font-size: 1.8rem; cursor: pointer; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 10px 0; background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.breadcrumb ol { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; color: var(--text-muted); margin-right: 2px; }
.breadcrumb a { color: var(--teal-main); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== HERO ===== */
.hero {
  background-image: url('<?php echo get_template_directory_uri(); ?>/assets/images/hero-bg.jpg');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  padding: 80px 0 68px; position: relative; overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(20,35,59,0.88) 0%, rgba(20,35,59,0.72) 50%, rgba(20,35,59,0.62) 100%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 380px; gap: 52px; align-items: center; }
.hero-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 12px; }
.hero-title { font-family: 'Oswald', 'Noto Sans JP', sans-serif; font-size: 2.9rem; font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 16px; }
.hero-title .accent { color: var(--amber-light); }
.hero-title .accent2 { color: var(--teal-light); }
.hero-desc { font-size: 0.9rem; color: rgba(255,255,255,0.72); margin-bottom: 28px; line-height: 1.9; max-width: 460px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-neutral-note { margin-top: 28px; font-size: 0.75rem; color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 10px 16px; line-height: 1.7; }

/* Hero Card */
.hero-card { background: rgba(255,255,255,0.97); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.25); }
.hero-card-top { background: var(--teal-deep); padding: 12px 18px; display: flex; align-items: center; gap: 8px; }
.hero-card-top svg { width: 14px; height: 14px; fill: rgba(255,255,255,0.8); }
.hero-card-label { font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.9); letter-spacing: 0.08em; }
.hero-card-body { padding: 20px; }
.firm-name-small { font-size: 0.75rem; color: var(--text-muted); }
.firm-name-big { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 2px 0 4px; }
.firm-cat { font-size: 0.75rem; color: var(--teal-main); margin-bottom: 14px; }
.firm-banner-area { height: 90px; background: var(--bg-subtle); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 14px; border: 1px dashed var(--border); }
.firm-points { list-style: none; margin-bottom: 14px; }
.firm-points li { font-size: 0.8rem; color: var(--text-mid); padding: 4px 0; display: flex; align-items: flex-start; gap: 6px; }
.firm-check { color: var(--teal-main); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.firm-diag-banner { height: 54px; background: var(--teal-pale); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--teal-deep); margin-bottom: 14px; border: 1px dashed var(--border-teal); cursor: pointer; font-weight: 700; transition: background var(--transition); }
.firm-diag-banner:hover { background: rgba(45,138,132,0.18); }

/* ===== NAV CARDS ===== */
.nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nav-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 22px; cursor: pointer; text-decoration: none;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; gap: 10px; position: relative;
}
.nav-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--teal-main); border-radius: var(--radius-md) var(--radius-md) 0 0; opacity: 0; transition: opacity var(--transition); }
.nav-card:hover { border-color: var(--teal-main); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.nav-card:hover::before { opacity: 1; }
.nav-card__icon { width: 44px; height: 44px; background: var(--teal-pale); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.nav-card__icon svg { width: 22px; height: 22px; fill: var(--teal-deep); }
.nav-card__title { font-size: 0.92rem; font-weight: 700; color: var(--navy); }
.nav-card__desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; }
.nav-card__arrow { font-size: 0.75rem; color: var(--teal-main); font-weight: 700; margin-top: auto; }
.nav-card--diag { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 24px; background: linear-gradient(135deg, var(--teal-pale), var(--white)); }
.nav-card--diag .nav-card__icon { width: 52px; height: 52px; flex-shrink: 0; }
.nav-card--diag .nav-card__content { flex: 1; }
.diag-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.diag-chip { background: var(--white); border: 1px solid var(--border-teal); color: var(--teal-deep); font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; cursor: pointer; transition: background var(--transition), color var(--transition); }
.diag-chip:hover { background: var(--teal-main); color: var(--white); border-color: var(--teal-main); }

/* ===== POST CARDS (お役立ちコラム) ===== */
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.col-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.col-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.col-card__thumb { height: 180px; overflow: hidden; background: var(--bg-subtle); position: relative; }
.col-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.col-card:hover .col-card__thumb img { transform: scale(1.04); }
.col-card__thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--teal-pale), var(--bg-subtle)); }
.col-card__thumb-placeholder svg { width: 40px; height: 40px; fill: var(--teal-main); opacity: 0.5; }
.col-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.col-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.col-card__title { font-size: 0.9rem; font-weight: 700; color: var(--navy); line-height: 1.55; }
.col-card__meta { font-size: 0.7rem; color: var(--text-muted); margin-top: auto; display: flex; gap: 12px; align-items: center; }
.col-card__meta-author { display: flex; align-items: center; gap: 5px; }
.col-card__meta-author img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* 4カラム */
.col-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ===== EPISODE CARDS ===== */
.ep-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.ep-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.ep-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ep-card--featured { grid-row: span 2; }
.ep-card__thumb { height: 150px; background: linear-gradient(160deg, var(--teal-pale), var(--bg-subtle)); display: flex; align-items: flex-end; padding: 14px; overflow: hidden; position: relative; }
.ep-card--featured .ep-card__thumb { height: 200px; }
.ep-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.ep-user { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.ep-avatar { width: 36px; height: 36px; background: var(--teal-deep); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: white; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.ep-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ep-user__name { font-size: 0.8rem; font-weight: 700; color: var(--navy); }
.ep-user__profile { font-size: 0.68rem; color: var(--text-muted); }
.ep-card__body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.ep-card__title { font-size: 0.88rem; font-weight: 700; color: var(--navy); line-height: 1.5; }
.ep-card--featured .ep-card__title { font-size: 0.95rem; }
.ep-card__excerpt { font-size: 0.75rem; color: var(--text-muted); line-height: 1.7; }

/* ===== QUICK LINKS ===== */
.ql-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ql-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.ql-head { padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--off-white); display: flex; align-items: center; gap: 10px; }
.ql-head__icon svg { width: 18px; height: 18px; fill: var(--teal-main); }
.ql-head__title { font-size: 0.9rem; font-weight: 700; color: var(--navy); }
.ql-list { padding: 8px; }
.ql-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.82rem; color: var(--text-mid); cursor: pointer; transition: background var(--transition), color var(--transition); text-decoration: none; }
.ql-item:hover { background: var(--teal-pale); color: var(--teal-deep); }
.ql-item__arrow { color: var(--teal-main); font-size: 0.8rem; }
.ql-more { padding: 10px 18px; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--teal-main); cursor: pointer; text-align: center; transition: background var(--transition); font-weight: 700; display: block; text-decoration: none; }
.ql-more:hover { background: var(--teal-pale); color: var(--teal-deep); }

/* ===== RECOMMENDED FIRM ===== */
.rec-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.rec-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--teal-main), var(--teal-light)); }
.rec-inner { display: grid; grid-template-columns: 260px 1fr auto; gap: 40px; align-items: start; }
.rec-image-area { height: 170px; background: var(--bg-subtle); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; color: var(--text-muted); border: 1px dashed var(--border); text-align: center; overflow: hidden; }
.rec-image-area img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.rec-badge { position: absolute; top: 20px; right: 24px; background: var(--teal-main); color: var(--white); font-size: 0.7rem; font-weight: 700; padding: 3px 12px; border-radius: 20px; letter-spacing: 0.08em; }
.rec-firm-name { font-size: 0.78rem; color: var(--teal-main); margin-bottom: 3px; }
.rec-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; line-height: 1.4; }
.rec-metrics { display: flex; gap: 20px; margin-bottom: 16px; }
.rec-metric-val { font-family: 'Oswald', sans-serif; font-size: 1.4rem; font-weight: 700; color: var(--navy); line-height: 1; }
.rec-metric-label { font-size: 0.68rem; color: var(--text-muted); }
.rec-features { list-style: none; }
.rec-features li { font-size: 0.82rem; color: var(--text-mid); padding: 4px 0; display: flex; align-items: flex-start; gap: 7px; }
.rec-features li::before { content: "›"; color: var(--teal-main); font-weight: 700; flex-shrink: 0; }
.rec-cta-area { display: flex; flex-direction: column; gap: 12px; align-items: stretch; min-width: 200px; }
.neutral-note { font-size: 0.8rem; color: var(--text-muted); background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; line-height: 1.7; }
.neutral-note--dark { color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

/* ===== DIAGNOSIS SECTION ===== */
.diag-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.diag-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); position: relative;
}
.diag-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--teal-main); border-radius: var(--radius-md) var(--radius-md) 0 0; }
.diag-card:hover { border-color: var(--teal-main); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.diag-card__icon svg { width: 28px; height: 28px; fill: var(--teal-main); }
.diag-card__name { font-size: 0.95rem; font-weight: 700; color: var(--navy); }
.diag-card__desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.7; flex: 1; }
.diag-card__meta { font-size: 0.7rem; color: var(--text-muted); }
.diag-card__btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; background: var(--teal-pale); color: var(--teal-deep); font-size: 0.8rem; font-weight: 700; padding: 8px; border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); }
.diag-card:hover .diag-card__btn { background: var(--teal-main); color: var(--white); }
.diag-card--cta { background: var(--teal-pale); border-color: var(--border-teal); justify-content: center; text-align: center; }

/* ===== AGE CARDS ===== */
.age-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.age-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 14px; text-align: center; text-decoration: none; transition: border-color var(--transition), transform var(--transition); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.age-card:hover { border-color: var(--teal-main); transform: translateY(-2px); }
.age-circle { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--teal-deep), var(--teal-light)); display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 700; color: white; }
.age-label { font-size: 0.85rem; font-weight: 700; color: var(--navy); }
.age-kw { font-size: 0.68rem; color: var(--teal-main); background: var(--teal-pale); padding: 2px 8px; border-radius: 20px; }

/* ===== SITUATION CARDS ===== */
.sit-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sit-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; text-decoration: none; display: flex; gap: 14px; transition: border-color var(--transition), transform var(--transition); }
.sit-card:hover { border-color: var(--teal-main); transform: translateY(-2px); }
.sit-card--urgent { border-left: 3px solid #E06B6B; }
.sit-icon { width: 46px; height: 46px; background: var(--teal-pale); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sit-icon svg { width: 22px; height: 22px; fill: var(--teal-main); }
.sit-card--urgent .sit-icon { background: #FDE8E8; }
.sit-card--urgent .sit-icon svg { fill: #C0392B; }
.sit-title { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.sit-desc { font-size: 0.76rem; color: var(--text-muted); line-height: 1.65; }

/* ===== AREA SECTION ===== */
.area-pref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.area-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.area-block__head { background: var(--off-white); padding: 10px 14px; font-size: 0.82rem; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--border); }
.area-pref-list { padding: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.area-pref-chip { font-size: 0.72rem; color: var(--text-mid); background: var(--bg-subtle); border: 1px solid var(--border); padding: 3px 9px; border-radius: 4px; cursor: pointer; transition: all var(--transition); text-decoration: none; display: inline-block; }
.area-pref-chip:hover { background: var(--teal-main); color: white; border-color: var(--teal-main); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-q { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; cursor: pointer; transition: background var(--transition); }
.faq-q:hover { background: var(--teal-pale); }
.faq-q__mark { width: 28px; height: 28px; border-radius: 50%; background: var(--teal-main); color: white; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.faq-q__text { font-size: 0.92rem; font-weight: 700; color: var(--navy); flex: 1; line-height: 1.55; }
.faq-q__arrow { font-size: 0.8rem; color: var(--teal-main); margin-top: 3px; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.is-open .faq-q__arrow { transform: rotate(90deg); }
.faq-a { display: none; padding: 0 20px 18px 62px; }
.faq-item.is-open .faq-a { display: block; }
.faq-a__text { font-size: 0.85rem; color: var(--text-mid); line-height: 1.85; border-left: 2px solid var(--teal-light); padding-left: 14px; }

/* ===== AUTHOR BOX ===== */
.author-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: start; }
.author-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal-main), var(--teal-light)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.author-img-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.author-img { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-md); border: 3px solid var(--teal-pale); }
.author-img img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-size: 0.88rem; font-weight: 700; color: var(--navy); text-align: center; }
.author-role { font-size: 0.7rem; color: var(--teal-main); text-align: center; font-weight: 700; }
.author-intro-head { font-family: 'Oswald', 'Noto Sans JP', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.author-quote { border-left: 3px solid var(--teal-main); padding-left: 16px; margin-bottom: 20px; }
.author-quote p { font-size: 0.88rem; color: var(--text-mid); line-height: 2.1; }
.author-history { list-style: none; }
.author-history li { font-size: 0.8rem; color: var(--text-muted); padding: 5px 0; display: flex; align-items: flex-start; gap: 7px; border-bottom: 1px solid var(--border); }
.author-history li::before { content: "▸"; color: var(--teal-main); flex-shrink: 0; margin-top: 2px; }

/* ===== ARCHIVE: COLUMN LIST ===== */
.archive-header { padding: 40px 0; background: var(--off-white); border-bottom: 1px solid var(--border); }
.archive-title { font-family: 'Oswald', 'Noto Sans JP', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.archive-desc { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; }
.filter-bar { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chip { background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text-mid); font-size: 0.78rem; padding: 5px 14px; border-radius: 20px; cursor: pointer; transition: all var(--transition); text-decoration: none; display: inline-block; }
.filter-chip.is-active, .filter-chip:hover { background: var(--teal-main); color: white; border-color: var(--teal-main); }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); font-size: 0.82rem; cursor: pointer; border: 1px solid var(--border); background: var(--white); color: var(--text-mid); transition: all var(--transition); text-decoration: none; }
.page-numbers.current { background: var(--teal-main); color: white; border-color: var(--teal-main); font-weight: 700; }
.page-numbers:hover:not(.current) { background: var(--teal-pale); color: var(--teal-deep); }
.page-numbers.dots { border: none; background: none; cursor: default; }

/* ===== SINGLE POST ===== */
.single-header { padding: 40px 0 32px; }
.single-title { font-family: 'Oswald', 'Noto Sans JP', sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--navy); line-height: 1.35; margin-bottom: 14px; }
.single-meta { display: flex; gap: 16px; align-items: center; font-size: 0.78rem; color: var(--text-muted); flex-wrap: wrap; }
.single-meta-author { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text-mid); }
.single-meta-author img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.single-eyecatch { width: 100%; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 36px; max-height: 440px; }
.single-eyecatch img { width: 100%; height: 100%; object-fit: cover; }
.single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }

/* Table of Contents */
.toc { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 40px; }
.toc__title { font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.toc__title svg { width: 16px; height: 16px; fill: var(--teal-main); }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.toc ol ol { margin-left: 16px; margin-top: 4px; }
.toc a { font-size: 0.82rem; color: var(--teal-main); transition: color var(--transition); display: flex; gap: 6px; }
.toc a:hover { color: var(--teal-deep); text-decoration: underline; }
.toc li { counter-increment: toc-item; }

/* Sidebar */
.sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.sidebar-widget__head { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--off-white); font-size: 0.82rem; font-weight: 700; color: var(--navy); }
.sidebar-widget__body { padding: 14px 16px; }
.sidebar-rec-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-rec-item { display: flex; gap: 10px; text-decoration: none; transition: opacity var(--transition); }
.sidebar-rec-item:hover { opacity: 0.8; }
.sidebar-rec-item__thumb { width: 68px; height: 52px; border-radius: 5px; overflow: hidden; flex-shrink: 0; background: var(--bg-subtle); }
.sidebar-rec-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-rec-item__title { font-size: 0.78rem; font-weight: 600; color: var(--navy); line-height: 1.5; }
.sidebar-cta { background: linear-gradient(135deg, var(--teal-deep), var(--teal-main)); padding: 18px; border-radius: var(--radius-md); text-align: center; }
.sidebar-cta__title { font-size: 0.88rem; font-weight: 700; color: var(--white); margin-bottom: 10px; line-height: 1.5; }

/* Related Posts */
.related-posts { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--border); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }

/* ===== REFERENCE SITES ===== */
.footer-ref { padding: 40px 0; background: var(--navy); }
.footer-ref__title { font-family: 'Oswald', 'Noto Sans JP', sans-serif; font-size: 0.95rem; font-weight: 700; color: var(--white); letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.footer-ref__lead { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ref-card { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); padding: 12px 14px; text-decoration: none; transition: background var(--transition), border-color var(--transition), transform var(--transition); }
.ref-card:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); transform: translateY(-1px); }
.ref-card__icon { width: 34px; height: 34px; background: rgba(255,255,255,0.12); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ref-card__icon svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.7); }
.ref-card__name { font-size: 0.83rem; font-weight: 700; color: var(--white); }
.ref-card__full { font-size: 0.65rem; color: rgba(255,255,255,0.45); margin-top: 1px; }
.ref-arrow { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-left: auto; flex-shrink: 0; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08); }
.footer-main { padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 280px 1fr 1fr 1fr; gap: 40px; }
.footer-logo-name { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 700; color: var(--white); }
.footer-logo-tagline { font-size: 0.6rem; color: rgba(255,255,255,0.4); }
.footer-desc { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 12px; line-height: 1.8; }
.footer-disclaimer { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-top: 12px; line-height: 1.7; }
.footer-col-title { font-size: 0.7rem; font-weight: 700; color: var(--teal-light); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li + li { margin-top: 7px; }
.footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.5); transition: color var(--transition); display: flex; align-items: center; gap: 5px; }
.footer-links a::before { content: "›"; color: var(--teal-main); opacity: 0.7; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: rgba(255,255,255,0.3); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }

/* ===== STICKY CTA ===== */
.sticky-cta { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.sticky-cta.is-visible { opacity: 1; pointer-events: auto; }
.sticky-btn { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 40px; font-size: 0.83rem; font-weight: 700; cursor: pointer; border: none; box-shadow: 0 4px 18px rgba(0,0,0,0.2); transition: transform var(--transition); font-family: inherit; }
.sticky-btn:hover { transform: scale(1.04); }
.sticky-btn--primary { background: var(--teal-main); color: var(--white); }
.sticky-btn--secondary { background: var(--white); color: var(--teal-deep); font-size: 0.78rem; padding: 9px 16px; border: 1px solid var(--teal-main); }

/* ===== CONTACT FORM 7 ===== */
.wpcf7 { margin-top: 32px; }
.wpcf7 .form-group { margin-bottom: 20px; }
.wpcf7 label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.wpcf7 .required-mark { color: #C0392B; margin-left: 4px; font-size: 0.75rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: inherit; color: var(--text-dark);
  background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: none; border-color: var(--teal-main); box-shadow: 0 0 0 3px rgba(45,138,132,0.15); }
.wpcf7 textarea { height: 160px; resize: vertical; }
.wpcf7 input[type="submit"] { background: var(--teal-main); color: var(--white); border: none; padding: 14px 36px; border-radius: var(--radius-sm); font-size: 1rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: background var(--transition); }
.wpcf7 input[type="submit"]:hover { background: var(--teal-deep); }
.wpcf7-response-output { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; }
.wpcf7-mail-sent-ok { background: var(--teal-pale); border: 1px solid var(--border-teal); color: var(--teal-deep); }
.wpcf7-validation-errors, .wpcf7-mail-sent-ng { background: #FDE8E8; border: 1px solid #F5C6C6; color: #C0392B; }
.wpcf7 .wpcf7-not-valid-tip { font-size: 0.75rem; color: #C0392B; margin-top: 4px; }

/* ===== 404 PAGE ===== */
.error404-content { text-align: center; padding: 80px 24px; }
.error404-num { font-family: 'Oswald', sans-serif; font-size: 7rem; font-weight: 700; color: var(--teal-pale); line-height: 1; }
.error404-title { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin: 16px 0 12px; }
.error404-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; }

/* ===== UTILITIES ===== */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.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; }
.wp-caption { max-width: 100%; background: var(--bg-subtle); padding: 6px; border-radius: var(--radius-sm); }
.wp-caption-text { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 4px; }
.alignleft { float: left; margin: 0 20px 16px 0; }
.alignright { float: right; margin: 0 0 16px 20px; }
.aligncenter { display: block; margin: 16px auto; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.js-fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js-fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .col-grid--4 { grid-template-columns: repeat(3, 1fr); }
  .rec-inner { grid-template-columns: 1fr auto; }
  .rec-image-area { display: none; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 52px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero-title { font-size: 2.1rem; }
  .nav-grid { grid-template-columns: 1fr 1fr; }
  .nav-card--diag { flex-direction: column; }
  .col-grid { grid-template-columns: 1fr; }
  .col-grid--4 { grid-template-columns: 1fr 1fr; }
  .ep-grid { grid-template-columns: 1fr; }
  .ep-card--featured { grid-row: auto; }
  .ql-grid { grid-template-columns: 1fr; }
  .diag-cards { grid-template-columns: 1fr; }
  .age-cards { grid-template-columns: repeat(3, 1fr); }
  .sit-cards { grid-template-columns: 1fr; }
  .area-pref-grid { grid-template-columns: 1fr 1fr; }
  .author-card { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ref-grid { grid-template-columns: 1fr 1fr; }
  .global-nav { display: none; }
  .hamburger { display: flex; }
  .rec-inner { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .nav-grid { grid-template-columns: 1fr; }
  .age-cards { grid-template-columns: 1fr 1fr; }
  .area-pref-grid { grid-template-columns: 1fr; }
  .ref-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .col-grid--4 { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 1.5rem; }
  .hero-title { font-size: 1.8rem; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}
