/*
Theme Name: Career Redesign
Theme URI: https://example.com/
Author: 中原 大樹
Description: 40代のキャリアに悩む人向けコラムサイト「40代キャリア設計室」のオリジナルテーマ。
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: career-redesign
*/

/* =========================================================
   40代キャリア設計室 — main stylesheet
   Palette:
     --ink    #142B45  基調の濃紺(信頼・誠実)
     --steel  #3E5C76  補助のスチールブルー
     --mist   #F4F7FA  背景の薄ブルーグレー
     --brass  #A87C2A  CTAの琥珀(行動喚起)
     --text   #1F2933  本文
========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--text);
  background: var(--mist);
  line-height: 1.9;
  letter-spacing: .04em;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

:root {
  --ink:   #142B45;
  --ink-2: #0E1F33;
  --steel: #3E5C76;
  --mist:  #F4F7FA;
  --line:  #DDE5EC;
  --brass: #A87C2A;
  --brass-dark: #8C6620;
  --text:  #1F2933;
  --muted: #64748B;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(20, 43, 69, .07);
  --shadow-hover: 0 10px 28px rgba(20, 43, 69, .14);
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-en: "Inter", sans-serif;
  --header-h: 72px;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.pc-only { display: inline; }
.sp-only { display: none; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 2.2em;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem;
  letter-spacing: .08em;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.btn-primary {
  background: var(--brass); color: var(--white);
  box-shadow: 0 4px 14px rgba(168, 124, 42, .35);
}
.btn-primary:hover { background: var(--brass-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(168, 124, 42, .4); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.6); color: var(--white);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-cta {
  background: var(--ink); color: var(--white);
  padding: .7em 1.8em; font-size: .88rem;
}
.btn-cta:hover { background: var(--steel); transform: translateY(-1px); }
.btn-lg { padding: 1.05em 3em; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(20,43,69,.08); }
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 32px;
}
.site-logo { display: flex; flex-direction: column; line-height: 1.3; }
.logo-main {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 1.35rem; color: var(--ink); letter-spacing: .06em;
}
.logo-sub {
  font-family: var(--font-en); font-size: .58rem; font-weight: 600;
  letter-spacing: .32em; color: var(--brass);
}
.global-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-list > li > a,
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: .92rem; font-weight: 500;
  color: var(--ink); border-radius: 6px;
  position: relative;
  transition: color .2s ease;
}
.nav-list > li > a::after,
.nav-dropdown-toggle::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--brass);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-list > li > a:hover::after,
.nav-list > li > a.is-current::after,
.nav-dropdown-toggle:hover::after { transform: scaleX(1); }
.dd-arrow {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

/* dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 240px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-hover);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: block; padding: 10px 14px; font-size: .88rem;
  border-radius: 6px; color: var(--text);
}
.dropdown-menu a:hover { background: var(--mist); color: var(--ink); }

.header-cta-pc { flex-shrink: 0; }
.header-cta-sp { display: none; }

/* hamburger / drawer parts(SPのみ表示) */
.hamburger { display: none; width: 44px; height: 44px; position: relative; z-index: 110; }
.drawer-overlay { display: none; }
.hamburger span {
  position: absolute; left: 10px; width: 24px; height: 2px;
  background: var(--ink); transition: transform .3s ease, opacity .3s ease;
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink) 55%, #1E3A5C 100%);
  color: var(--white);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 40%, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  max-width: 1160px; margin: 0 auto;
  padding: 96px 24px 104px;
  display: flex; gap: 56px; align-items: center;
}
.hero-tate {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: .38em;
  color: rgba(255,255,255,.88);
  border-left: 1px solid rgba(255,255,255,.28);
  padding-left: 28px;
  height: 340px;
  flex-shrink: 0;
  animation: heroTate 1.2s ease .2s both;
}
@keyframes heroTate {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-body { animation: heroBody 1s ease .45s both; }
@keyframes heroBody {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  display: inline-block;
  font-size: .82rem; font-weight: 700; letter-spacing: .18em;
  color: #E4C883;
  border: 1px solid rgba(228, 200, 131, .45);
  border-radius: 999px;
  padding: .35em 1.2em;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: .05em;
  margin-bottom: 22px;
}
.hero-title em {
  font-style: normal; color: #E4C883;
}
.hero-lead {
  font-size: .98rem; color: rgba(255,255,255,.82);
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Slim hero(トップ=一覧ページ用) ---------- */
.hero-slim .hero-grid {
  mask-image: radial-gradient(ellipse 100% 120% at 60% 30%, #000 25%, transparent 80%);
}
.hero-slim-inner {
  position: relative;
  max-width: 1360px; margin: 0 auto;
  padding: 52px 24px 56px;
  animation: heroBody .9s ease .15s both;
}
.hero-slim-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700; letter-spacing: .08em;
  line-height: 1.6;
  margin: 14px 0 10px;
}
.hero-slim-title em { font-style: normal; color: #E4C883; }
.hero-slim .hero-eyebrow { margin-bottom: 0; }
.hero-slim-lead { font-size: .92rem; color: rgba(255,255,255,.8); }

/* ---------- Archive layout(トップの一覧) ---------- */
.archive-wrap { background: var(--white); padding: 72px 0 88px; }

.page-head { margin-bottom: 40px; }
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 700; color: var(--ink);
  letter-spacing: .06em;
  display: inline-flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.page-title::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 110px; height: 2px; background: var(--brass);
}
.page-title-en {
  font-family: var(--font-en);
  font-size: .78rem; font-weight: 500; font-style: italic;
  letter-spacing: .12em; color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-new { background: var(--white); }
.section-category { background: var(--mist); }
.section-archive { background: var(--white); }

.section-head { margin-bottom: 44px; }
.section-eyebrow {
  font-family: var(--font-en);
  font-size: .74rem; font-weight: 600; letter-spacing: .3em;
  color: var(--brass);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 700; color: var(--ink);
  letter-spacing: .06em;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--brass), transparent);
}

/* ---------- Post cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.card-grid-2col { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card-grid-3col { grid-template-columns: repeat(3, 1fr); gap: 26px; row-gap: 36px; }
.card-grid-3col .post-body { padding: 18px 18px 20px; gap: 8px; }
.card-grid-3col .post-title { font-size: .93rem; }

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
}
.post-chip {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(14, 31, 51, .85); color: var(--white);
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  padding: .4em 1em; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-title {
  font-size: 1.02rem; font-weight: 700; line-height: 1.7;
  color: var(--ink);
  transition: color .25s ease;
}
.post-card:hover .post-title { color: var(--steel); }
.post-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.8; }
.post-date {
  margin-top: auto;
  font-family: var(--font-en);
  font-size: .76rem; color: var(--muted); letter-spacing: .06em;
}
.post-date::before { content: "◷ "; }

/* thumbnail placeholders(実画像に差し替え前提) */
.ph { background-size: cover; background-position: center; }
.ph-1 { background: linear-gradient(140deg, #16324F, #3E5C76 70%, #56789A); }
.ph-2 { background: linear-gradient(140deg, #0E1F33, #2C4A68 65%, #A87C2A22), linear-gradient(140deg, #14304C, #3E5C76); }
.ph-3 { background: linear-gradient(160deg, #1E3A5C, #0E1F33 75%); }
.ph-4 { background: linear-gradient(140deg, #3E5C76, #1B3550 60%, #0E1F33); }
.ph-5 { background: linear-gradient(120deg, #22415F, #56789A 80%); }
.ph-6 { background: linear-gradient(150deg, #10263E, #2E4E6E 55%, #46688B); }
.post-thumb.ph::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  transition: transform .5s ease;
}
.post-card:hover .post-thumb.ph::after { transform: scale(1.08); }

/* ---------- Category cards ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 20px 24px;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-top-color .3s ease;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--brass);
}
.category-num {
  font-family: var(--font-serif);
  font-size: 1.5rem; color: var(--brass);
  display: block; margin-bottom: 10px;
}
.category-card h3 {
  font-size: .98rem; font-weight: 700; color: var(--ink);
  margin-bottom: 8px; line-height: 1.6;
}
.category-card p { font-size: .78rem; color: var(--muted); line-height: 1.7; }

/* ---------- 2col layout ---------- */
.layout-2col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}
/* グリッド子要素の min-width:auto による「はみ出し」を防ぐ。
   これが無いと、本文内の大きな画像(display:tableのfigure)や表の
   最小幅にカラム全体が引きずられ、スマホで横に崩れる */
.layout-2col > * { min-width: 0; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; margin-top: 56px;
}
.page-num {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-family: var(--font-en); font-weight: 600; font-size: .9rem;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.page-num:hover { background: var(--mist); transform: translateY(-2px); }
.page-num.is-current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.page-dots { color: var(--muted); }

/* 前のページ / 次のページ */
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 160px;
  padding: .85em 1.8em;
  border-radius: 999px;
  font-size: .9rem; font-weight: 700; letter-spacing: .06em;
  background: var(--white);
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
a.page-link:hover {
  background: var(--ink); color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.page-link.is-disabled {
  border-color: var(--line); color: #B4BEC8;
  cursor: default;
}

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 36px; position: sticky; top: calc(var(--header-h) + 24px); }
.widget {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.widget-title {
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  padding-bottom: 12px; margin-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.widget-title::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 36px; height: 2px; background: var(--brass);
}

.search-form { display: flex; }
.search-form input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 14px; font: inherit; font-size: .9rem;
  background: var(--mist);
}
.search-form input:focus { outline: none; border-color: var(--steel); background: var(--white); }
.search-form button {
  background: var(--ink); color: var(--white);
  padding: 0 16px; border-radius: 0 8px 8px 0;
  display: flex; align-items: center;
  transition: background-color .2s ease;
}
.search-form button:hover { background: var(--steel); }

.widget-cat-list li + li { border-top: 1px dashed var(--line); }
.widget-cat-list a {
  display: block; padding: 11px 4px 11px 20px;
  font-size: .9rem; position: relative;
  transition: color .2s ease, transform .2s ease;
}
.widget-cat-list a::before {
  content: ""; position: absolute; left: 4px; top: 50%;
  width: 8px; height: 8px;
  border-top: 1.5px solid var(--brass); border-right: 1.5px solid var(--brass);
  transform: translateY(-50%) rotate(45deg);
}
.widget-cat-list a:hover { color: var(--steel); transform: translateX(4px); }

.ranking-list li + li { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.ranking-list a { display: flex; gap: 12px; align-items: flex-start; }
.rank-num {
  font-family: var(--font-en); font-weight: 600; font-size: .8rem;
  width: 22px; height: 22px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white); border-radius: 4px;
}
/* 1位:金 / 2位:銀 / 3位:銅 */
.ranking-list li:nth-child(1) .rank-num { background: linear-gradient(135deg, #D4AF37, #B8912A); }
.ranking-list li:nth-child(2) .rank-num { background: linear-gradient(135deg, #A8B0B8, #8C959E); }
.ranking-list li:nth-child(3) .rank-num { background: linear-gradient(135deg, #B0764A, #96603A); }
.rank-thumb {
  width: 64px; aspect-ratio: 4/3; flex-shrink: 0;
  border-radius: 6px; position: relative; overflow: hidden;
}
.rank-text {
  font-size: .8rem; line-height: 1.65; font-weight: 500;
  transition: color .2s ease;
}
.ranking-list a:hover .rank-text { color: var(--steel); }

.new-list li + li { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.new-list a { display: flex; gap: 12px; align-items: flex-start; }
.new-list .new-body { display: flex; flex-direction: column; gap: 4px; }
.new-list a:hover .rank-text { color: var(--steel); }
.new-date {
  font-family: var(--font-en);
  font-size: .72rem; color: var(--muted); letter-spacing: .04em;
}
.new-date::before { content: "◷ "; }

.widget-profile .profile-name {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700; color: var(--ink);
  margin-bottom: 10px;
}
.widget-profile .profile-name span { font-size: .78rem; color: var(--muted); font-weight: 500; }
.widget-profile .profile-text { font-size: .84rem; color: var(--muted); line-height: 1.9; margin-bottom: 14px; }
.widget-more {
  font-size: .84rem; font-weight: 700; color: var(--brass);
  transition: opacity .2s ease;
}
.widget-more:hover { opacity: .7; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink-2), var(--ink) 60%, #1E3A5C);
  color: var(--white);
  padding: 88px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}
.cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-eyebrow {
  font-family: var(--font-en);
  font-size: .74rem; font-weight: 600; letter-spacing: .32em;
  color: #E4C883; margin-bottom: 14px;
}
.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 700;
  letter-spacing: .06em; margin-bottom: 18px;
}
.cta-text { font-size: .95rem; color: rgba(255,255,255,.82); margin-bottom: 34px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,.85); }
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 64px 24px 48px;
  display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,.6); }
/* フッターロゴ:クリックでトップページへ */
.footer-logo-link {
  color: inherit;
  transition: color .2s ease, opacity .2s ease;
}
.footer-logo-link:hover { color: var(--brass); }
.footer-logo-link:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 2px;
}
.footer-nav ul {
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 10px 40px;
}
.footer-nav a {
  font-size: .86rem; color: rgba(255,255,255,.75);
  transition: color .2s ease;
}
.footer-nav a:hover { color: #E4C883; }
.copyright {
  text-align: center; padding: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--font-en); font-size: .74rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Scroll reveal ----------
   デフォルトは表示。main.jsが読み込まれた時(htmlに.jsが付く)のみ
   非表示→スクロールでふわっと表示にする(JS未読込でも真っ白にならない) */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 1200px) {
  .card-grid-3col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3col { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .layout-2col { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-tate { height: 280px; }
  .archive-wrap { padding: 56px 0 72px; }
}

@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
  :root { --header-h: 60px; }

  /* header → 右からスライドするドロワー */
  /* backdrop-filterは子孫のposition:fixedの基準をヘッダーに変えてしまうため、
     ドロワーを正しく画面基準で動かすようSPでは無効化する */
  .site-header { backdrop-filter: none; background: var(--white); }
  .hamburger { display: block; margin-left: auto; }
  .header-cta-pc { display: none; }

  .drawer-overlay {
    display: block;
    position: fixed; inset: 0; z-index: 104;
    background: rgba(14, 31, 51, .55);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity .4s ease, visibility .4s;
  }
  .drawer-overlay.is-checked { opacity: 1; visibility: visible; }

  .global-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 105;
    width: min(78%, 340px);
    background: var(--ink-2);
    display: flex; flex-direction: column; justify-content: flex-start;
    padding: 84px 28px 40px;
    margin-left: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .45s cubic-bezier(.32, .72, .24, 1), visibility .45s;
    box-shadow: -12px 0 40px rgba(14, 31, 51, .3);
    overflow-y: auto;
  }
  .global-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  /* ドロワー展開中:ハンバーガー(×形)は紺のドロワー上に乗るため白線にする */
  .hamburger.is-active span { background: var(--white); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid rgba(255,255,255,.14); }
  .nav-list > li > a,
  .nav-dropdown-toggle {
    display: flex; width: 100%; justify-content: space-between;
    color: var(--white); padding: 16px 8px; font-size: 1rem;
  }
  .nav-list > li > a::after, .nav-dropdown-toggle::after { display: none; }
  .dropdown-menu {
    position: static; min-width: 0;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 8px 16px;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .has-dropdown.is-open .dropdown-menu { display: block; }
  .dropdown-menu a { color: rgba(255,255,255,.85); font-size: .92rem; }
  .dropdown-menu a:hover { background: rgba(255,255,255,.08); color: var(--white); }
  .dd-arrow { transition: transform .25s ease; }
  .has-dropdown.is-open .dd-arrow { transform: rotate(225deg) translateY(-2px); }

  /* hero */
  .hero-inner { flex-direction: column-reverse; align-items: flex-start; gap: 36px; padding: 64px 24px 72px; }
  .hero-tate {
    writing-mode: horizontal-tb;
    height: auto; border-left: none; padding-left: 0;
    border-top: 1px solid rgba(255,255,255,.28); padding-top: 20px;
    letter-spacing: .18em; font-size: 1.25rem;
  }

  .section { padding: 60px 0; }
  .card-grid, .card-grid-2col, .card-grid-3col { grid-template-columns: 1fr; gap: 24px; }
  .hero-slim-inner { padding: 40px 24px 44px; }
  .archive-wrap { padding: 44px 0 60px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-inner { flex-direction: column; gap: 36px; padding: 48px 24px 36px; }
  /* フッターナビ:スマホでは縦1列に */
  .footer-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 420px) {
  .category-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* =========================================================
   記事詳細ページ(single)
========================================================= */
.breadcrumb { background: var(--mist); border-bottom: 1px solid var(--line); }
.breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 12px 0;
  font-size: .78rem; color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: var(--line); font-size: .9rem; }
.breadcrumb a { color: var(--steel); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb li[aria-current] {
  max-width: 32em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block;
}

.single-wrap { padding-top: 48px; }

.post-article {
  background: var(--white);
}

/* --- 記事ヘッダー --- */
.article-header { margin-bottom: 28px; }
.article-chip {
  display: inline-block;
  background: var(--ink); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  padding: .4em 1.2em; border-radius: 4px;
  margin-bottom: 16px;
  transition: background-color .2s ease;
}
.article-chip:hover { background: var(--steel); }
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 700; color: var(--ink);
  line-height: 1.7; letter-spacing: .04em;
  margin-bottom: 16px;
}
.article-meta { display: flex; gap: 18px; }
.meta-item {
  font-family: var(--font-en);
  font-size: .8rem; color: var(--muted); letter-spacing: .05em;
}
.meta-pub::before { content: "◷ "; }
.meta-upd::before { content: "↻ "; }

.article-eyecatch {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  margin-bottom: 40px;
}
/* グリッド模様はアイキャッチ未設定時のプレースホルダー(.ph)のみに表示する。
   実画像には何も重ねない(縦線・横線が写真に乗っていた不具合の修正) */
.article-eyecatch.ph::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* --- 本文 --- */
.article-body {
  font-size: 1rem;
  line-height: 2.05;
  /* 長いURL・英単語でも折り返して横はみ出しを防ぐ */
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-body pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.article-body > p { margin-bottom: 1.6em; }
.article-body strong {
  font-weight: 700;
}
.article-body a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--brass); }

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 700; color: var(--white);
  line-height: 1.6; letter-spacing: .05em;
  background: linear-gradient(135deg, var(--ink-2), var(--ink) 70%, #1E3A5C);
  border-radius: 8px;
  padding: .8em 1.1em;
  margin: 2.6em 0 1.2em;
  position: relative;
}
.article-body h2::before {
  content: "";
  position: absolute; left: 0; top: 12%;
  width: 4px; height: 76%;
  background: var(--brass);
  border-radius: 0 4px 4px 0;
}
.article-body h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  line-height: 1.6;
  border-bottom: 2px solid var(--line);
  padding-bottom: .5em;
  margin: 2.2em 0 1em;
  position: relative;
}
.article-body h3::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 64px; height: 2px; background: var(--brass);
}

.article-ol { counter-reset: aol; margin: 0 0 1.6em; }
.article-ol li {
  counter-increment: aol;
  position: relative;
  padding-left: 42px;
  margin-bottom: .8em;
}
.article-ol li::before {
  content: counter(aol);
  position: absolute; left: 0; top: .35em;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
  font-family: var(--font-en); font-size: .8rem; font-weight: 600;
  border-radius: 50%;
}

/* --- 目次(SWELL風) --- */
.toc-box {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 30px;
  margin: 2.4em 0;
  background: var(--white);
  position: relative;
}
.toc-title {
  position: absolute; top: -0.9em; left: 24px;
  background: var(--white);
  padding: 0 14px;
  font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 700; color: var(--ink);
  letter-spacing: .3em;
}
.toc-list { counter-reset: toc; }
.toc-list > li {
  counter-increment: toc;
  position: relative;
  padding: .45em 0 .45em 34px;
  font-weight: 500;
}
.toc-list > li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 0; top: .55em;
  font-family: var(--font-en); font-size: .8rem; font-weight: 600;
  color: var(--brass);
}
.toc-list > li + li { border-top: 1px dashed var(--line); }
.toc-list a { color: var(--text); transition: color .2s ease; }
.toc-list a:hover { color: var(--brass); }
.toc-list ol { margin-top: .3em; }
/* サブ階層(h3):数字は付けず、細いダッシュのみ。
   詳細度を上げて本文用の連番スタイル(.article-body ol:not([class]))が
   目次内に効かないよう明示的に打ち消す */
.article-body .toc-box .toc-list ol li {
  counter-increment: none;
  font-size: .9rem; font-weight: 400;
  padding: .3em 0 .3em 18px;
  margin-bottom: 0;
  position: relative;
}
.article-body .toc-box .toc-list ol li::before {
  content: "–";
  position: absolute; left: 2px; top: auto;
  width: auto; height: auto;
  display: inline;
  background: none;
  border-radius: 0;
  color: var(--brass);
  font-family: inherit; font-size: inherit; font-weight: 400;
}

/* --- ボックス --- */
.box {
  border-radius: var(--radius);
  padding: 26px 28px 22px;
  margin: 2em 0;
  position: relative;
}
.box .box-label {
  position: absolute; top: -0.85em; left: 20px;
  font-family: var(--font-en);
  font-size: .74rem; font-weight: 600; letter-spacing: .22em;
  padding: .2em 1.1em;
  border-radius: 999px;
}
.box ul li {
  position: relative; padding-left: 24px; margin-bottom: .6em;
  line-height: 1.9;
}
.box ul li:last-child { margin-bottom: 0; }
.box p:last-child { margin-bottom: 0; }
.box-point {
  background: #FBF6EC;
  border: 1px solid #E8D9B8;
}
.box-point .box-label { background: var(--brass); color: var(--white); }
.box-point ul li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--brass); font-weight: 700;
}
.box-memo {
  background: var(--mist);
  border: 1px solid var(--line);
}
.box-memo .box-label { background: var(--steel); color: var(--white); }

/* --- 引用 --- */
.article-quote {
  border-left: 4px solid var(--brass);
  background: var(--mist);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 2em 0;
  font-family: var(--font-serif);
  color: var(--steel);
  position: relative;
}
.article-quote::before {
  content: "“";
  position: absolute; top: -6px; left: 12px;
  font-family: var(--font-serif);
  font-size: 3rem; color: rgba(168,124,42,.35);
  line-height: 1;
}
.article-quote p { margin: 0; }

/* --- テーブル --- */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: .92rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.article-table caption {
  caption-side: top;
  text-align: left;
  font-size: .8rem; color: var(--muted);
  margin-bottom: 8px;
}
.article-table th, .article-table td {
  padding: 13px 18px;
  border: 1px solid var(--line);
  text-align: left;
}
.article-table thead th {
  background: var(--ink); color: var(--white);
  font-weight: 700; border-color: rgba(255,255,255,.15);
}
.article-table tbody tr:nth-child(even) { background: var(--mist); }

/* --- シェア --- */
.share-row {
  display: flex; align-items: center; gap: 20px;
  margin: 48px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-label {
  font-family: var(--font-en);
  font-size: .74rem; font-weight: 600; letter-spacing: .28em;
  color: var(--brass);
}
.share-list { display: flex; gap: 12px; }
.share-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-weight: 700; font-size: .95rem;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.share-btn:hover {
  background: var(--ink); color: var(--white); border-color: var(--ink);
  transform: translateY(-3px);
}

/* --- 著者ボックス --- */
.author-box {
  display: flex; gap: 24px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 40px 0 0;
}
.author-avatar {
  width: 76px; height: 76px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), var(--steel));
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* プロフィール画像(images/avatar.png 等を置くと文字の代わりに表示) */
.author-avatar { overflow: hidden; padding: 0; }
.author-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.author-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  color: var(--brass);
  margin-bottom: 4px;
}
.author-name {
  font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700; color: var(--ink);
  margin-bottom: 8px;
}
.author-name span { font-size: .78rem; color: var(--muted); font-weight: 500; }
.author-text { font-size: .86rem; color: var(--muted); line-height: 1.9; margin-bottom: 10px; }

/* --- 前後記事 --- */
.pn-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin: 40px 0 0;
}
.pn-item {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pn-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pn-next { text-align: right; }
.pn-dir {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  color: var(--brass);
}
.pn-title { font-size: .85rem; font-weight: 500; line-height: 1.7; color: var(--ink); }

/* --- 関連記事 --- */
.related { margin-top: 64px; }
.related-title {
  font-family: var(--font-serif);
  font-size: 1.35rem; font-weight: 700; color: var(--ink);
  letter-spacing: .06em;
  padding-bottom: 14px; margin-bottom: 28px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.related-title::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 72px; height: 2px; background: var(--brass);
}

@media (max-width: 768px) {
  .single-wrap { padding-top: 32px; }
  .article-body { font-size: .95rem; }
  .article-body h2 { font-size: 1.15rem; }
  .article-body h3 { font-size: 1.05rem; }
  .toc-box { padding: 22px 20px; }
  .box { padding: 22px 14px 18px; }
  .author-box { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
  .pn-nav { grid-template-columns: 1fr; }
  .share-row { flex-wrap: wrap; gap: 14px; }
  .article-table { font-size: .84rem; }
  .article-table th, .article-table td { padding: 10px 12px; }
  .breadcrumb li[aria-current] { max-width: 16em; }

  /* テーブル:スマホでも表の形を保ったまま画面幅に収める(横スクロールなし)。
     table-layout: fixed で列幅を均等配分し、
     auto レイアウトによる「特定の列だけ数文字幅に潰れる」崩れを防ぐ */
  .article-body .wp-block-table { overflow-x: visible; }
  .article-body .wp-block-table table {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .article-body .wp-block-table th,
  .article-body .wp-block-table td {
    padding: 9px 8px;
    font-size: .78rem;
    line-height: 1.65;
    letter-spacing: 0;
    overflow-wrap: break-word;
  }

  /* リスト:インデント・字間・文字サイズを詰めて1行に収まりやすくする */
  .article-body ul:not([class]) li,
  .article-body ul.wp-block-list li {
    padding-left: 17px;
    font-size: .92rem;
    letter-spacing: .02em;
    line-height: 1.8;
    margin-bottom: .5em;
  }
  .article-body ul:not([class]) li::before,
  .article-body ul.wp-block-list li::before { left: 1px; top: .7em; }
  .article-body ol:not([class]) li,
  .article-body ol.wp-block-list li {
    padding-left: 34px;
    font-size: .92rem;
    letter-spacing: .02em;
  }
  .article-body ol:not([class]) li::before,
  .article-body ol.wp-block-list li::before { width: 24px; height: 24px; font-size: .74rem; }
  .box ul li {
    padding-left: 20px;
    font-size: .92rem;
    letter-spacing: .02em;
    line-height: 1.8;
  }
}

/* =========================================================
   固定ページ(about 等)
========================================================= */
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--ink) 55%, #1E3A5C 100%);
  color: var(--white);
  overflow: hidden;
}
.page-hero-inner {
  position: relative;
  max-width: 1360px; margin: 0 auto;
  padding: 56px 24px 60px;
  animation: heroBody .9s ease .1s both;
}
.page-hero-en {
  font-family: var(--font-en);
  font-size: .74rem; font-weight: 600; letter-spacing: .38em;
  color: #E4C883; margin-bottom: 10px;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700; letter-spacing: .08em;
}

.about-wrap { background: var(--white); padding: 72px 0 96px; }
.about-section + .about-section { margin-top: 80px; }

.about-catch {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700; color: var(--ink);
  letter-spacing: .06em; line-height: 1.8;
  margin-bottom: 32px;
  padding-left: 20px;
  border-left: 4px solid var(--brass);
}
.about-section > p { margin-bottom: 1.5em; line-height: 2.05; }
.about-section > p:last-child { margin-bottom: 0; }
.about-section strong {
  background: linear-gradient(transparent 68%, rgba(168, 124, 42, .28) 68%);
  font-weight: 700;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 700; color: var(--ink);
  letter-spacing: .06em;
  padding-bottom: 14px; margin-bottom: 36px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.about-heading::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 88px; height: 2px; background: var(--brass);
}
.about-subheading {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  margin: 48px 0 28px;
}

/* --- 方針カード --- */
.policy-list { display: flex; flex-direction: column; gap: 24px; }
.policy-item {
  position: relative;
  background: var(--mist);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  padding: 28px 30px 26px 96px;
  transition: transform .25s ease, box-shadow .25s ease, border-left-color .25s ease;
}
.policy-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-left-color: var(--brass);
}
.policy-num {
  position: absolute; left: 28px; top: 26px;
  font-family: var(--font-en);
  font-size: 1.9rem; font-weight: 500;
  color: var(--brass);
  line-height: 1;
}
.policy-item h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem; font-weight: 700; color: var(--ink);
  margin-bottom: 10px; line-height: 1.6;
}
.policy-item p { font-size: .92rem; color: var(--muted); line-height: 1.95; }

/* --- 経歴タイムライン --- */
.timeline { position: relative; padding-left: 0; }
.timeline-item {
  position: relative;
  display: flex; gap: 28px;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-label {
  flex-shrink: 0;
  width: 72px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
  font-family: var(--font-en); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em;
  border-radius: 6px;
  position: relative; z-index: 1;
}
.timeline-item:last-child .timeline-label { background: var(--brass); }
.timeline-item::before {
  content: "";
  position: absolute; left: 35px; top: 40px; bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline-item:last-child::before { display: none; }
.timeline-body h4 {
  font-size: 1rem; font-weight: 700; color: var(--ink);
  margin-bottom: 6px; line-height: 1.7;
}
.timeline-body p { font-size: .9rem; color: var(--muted); line-height: 1.95; }

.about-author { margin-bottom: 0; }

@media (max-width: 768px) {
  .about-wrap { padding: 52px 0 72px; }
  .about-section + .about-section { margin-top: 60px; }
  .policy-item { padding: 64px 22px 24px; }
  .policy-num { left: 22px; top: 22px; }
  .timeline-item { gap: 18px; padding-bottom: 32px; }
  .timeline-label { width: 60px; height: 34px; font-size: .74rem; }
  .timeline-item::before { left: 29px; top: 34px; }
  .page-hero-inner { padding: 40px 24px 44px; }
}

/* =========================================================
   はじめての方へ(start)
========================================================= */
.worry-nav {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 32px;
}
.worry-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--steel);
  color: var(--ink);
  font-size: .88rem; font-weight: 700;
  padding: .65em 1.5em;
  border-radius: 999px;
  transition: background-color .25s ease, color .25s ease, transform .25s ease, border-color .25s ease;
}
.worry-chip::before { content: "▼"; font-size: .6rem; color: var(--brass); }
.worry-chip:hover {
  background: var(--ink); color: var(--white); border-color: var(--ink);
  transform: translateY(-2px);
}
.worry-chip:hover::before { color: #E4C883; }

.worry-block { scroll-margin-top: calc(var(--header-h) + 20px); }
.worry-q {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
  font-family: var(--font-en); font-size: .85rem; font-weight: 600;
  padding: .25em .9em;
  border-radius: 6px;
  margin-right: 12px;
  vertical-align: .12em;
}

/* 推奨記事リスト(読む順番つき) */
.reco-list { margin-top: 28px; counter-reset: none; }
.reco-list li + li { margin-top: 14px; }
.reco-list a {
  display: flex; align-items: center; gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.reco-list a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--steel);
}
.reco-step {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brass); color: var(--white);
  font-family: var(--font-en); font-size: .85rem; font-weight: 600;
  border-radius: 50%;
}
.reco-list .rank-thumb { width: 88px; }
.reco-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.reco-title {
  font-size: .92rem; font-weight: 700; line-height: 1.65; color: var(--ink);
  transition: color .2s ease;
}
.reco-list a:hover .reco-title { color: var(--steel); }
.reco-note { font-size: .76rem; color: var(--brass); font-weight: 500; }
.reco-note::before { content: "→ "; }

@media (max-width: 768px) {
  .reco-list a { padding: 14px 14px; gap: 12px; }
  .reco-list .rank-thumb { display: none; }
  .worry-q { display: inline-flex; margin-bottom: 6px; }
}

/* =========================================================
   カテゴリーページ / お問い合わせ / プライバシー
========================================================= */
.category-desc {
  margin-top: 20px;
  font-size: .92rem; color: var(--muted); line-height: 1.95;
  max-width: 46em;
}

/* --- お問い合わせフォーム --- */
.contact-note { margin-top: 2em; }
.contact-form { margin-top: 40px; }
.form-row { margin-bottom: 30px; }
.form-label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .95rem; color: var(--ink);
  margin-bottom: 10px;
}
.req {
  display: inline-flex; align-items: center;
  background: #B03A2E; color: var(--white);
  font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  padding: .2em .8em; border-radius: 4px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit; font-size: .95rem;
  color: var(--text);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--steel);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(62, 92, 118, .15);
}
.contact-form ::placeholder { color: #A5B1BE; }
.contact-form textarea { resize: vertical; min-height: 180px; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute; right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.contact-form select { appearance: none; cursor: pointer; }

.form-consent {
  text-align: center;
  margin: 36px 0 28px;
  font-size: .92rem;
}
.form-consent label {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--brass);
  cursor: pointer;
}
.form-consent a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.form-consent a:hover { color: var(--brass); }
.form-consent .req { margin-left: 8px; }
.form-submit { text-align: center; }

/* --- プライバシーポリシー --- */
.privacy-body .about-section + .about-section { margin-top: 56px; }
.privacy-body .about-heading { font-size: 1.2rem; margin-bottom: 24px; }
.privacy-body p { margin-bottom: 1.4em; line-height: 2; }
.privacy-body p:last-child { margin-bottom: 0; }
.privacy-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: .7em;
  line-height: 1.95;
}
.privacy-list li::before {
  content: "";
  position: absolute; left: 4px; top: .78em;
  width: 7px; height: 7px;
  background: var(--brass);
  border-radius: 50%;
}
.privacy-date {
  margin-top: 2.5em;
  text-align: right;
  font-size: .88rem; color: var(--muted);
}
.privacy-body .about-subheading {
  margin: 1.8em 0 .8em;
  padding-left: 12px;
  border-left: 3px solid var(--brass);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}
.privacy-body .about-heading + .about-subheading { margin-top: 0; }
.privacy-link {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
.privacy-link:hover { color: var(--brass); }

/* --- 広告(PR)表記(記事詳細) --- */
.pr-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 24px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: .82rem;
  line-height: 1.8;
  color: var(--muted);
}
.pr-notice-label {
  flex-shrink: 0;
  padding: 1px 8px;
  border: 1px solid var(--brass);
  border-radius: 3px;
  color: var(--brass);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.7;
}
.pr-notice a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pr-notice a:hover { color: var(--brass); }

@media (max-width: 768px) {
  .privacy-body .about-section + .about-section { margin-top: 44px; }
  .form-consent label { align-items: flex-start; text-align: left; }
}


/* =========================================================
   WordPress 本文コンテンツ用の追加スタイル
========================================================= */
/* 箇条書き:クラス無しのul(クラシック)と ul.wp-block-list(WP6.4以降のリストブロック)の両方に対応 */
.article-body ul:not([class]),
.article-body ul.wp-block-list { margin: 0 0 1.6em; }
.article-body ul:not([class]) li,
.article-body ul.wp-block-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: .6em;
  line-height: 1.95;
}
.article-body ul:not([class]) li::before,
.article-body ul.wp-block-list li::before {
  content: "";
  position: absolute; left: 4px; top: .78em;
  width: 7px; height: 7px;
  background: var(--brass);
  border-radius: 50%;
}
.article-body ol:not([class]),
.article-body ol.wp-block-list { counter-reset: aol; margin: 0 0 1.6em; }
.article-body ol:not([class]) li,
.article-body ol.wp-block-list li {
  counter-increment: aol;
  position: relative; padding-left: 42px; margin-bottom: .8em;
}
.article-body ol:not([class]) li::before,
.article-body ol.wp-block-list li::before {
  content: counter(aol);
  position: absolute; left: 0; top: .35em;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--white);
  font-family: var(--font-en); font-size: .8rem; font-weight: 600;
  border-radius: 50%;
}
.article-body blockquote:not([class]),
.article-body .wp-block-quote {
  border-left: 4px solid var(--brass);
  background: var(--mist);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  margin: 2em 0;
  font-family: var(--font-serif);
  color: var(--steel);
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 2em 0; font-size: .92rem;
}
.article-body table th, .article-body table td {
  padding: 13px 18px; border: 1px solid var(--line); text-align: left;
}
.article-body table thead th { background: var(--ink); color: var(--white); font-weight: 700; }
.article-body table tbody tr:nth-child(even) { background: var(--mist); }
/* --- 画像・配置(Gutenberg / クラシック共通) ---
   コアCSSは配置付きfigureを display:table にするが、テーマが figure だけを
   display:block に上書きしていたため、
   1) 中央寄せが効かない(全幅ブロックに margin:auto が無効)
   2) figcaption の table-caption だけが残り、最小幅に潰れて縦書き状に崩れる
   という2つの不具合が起きていた。figure は shrink-to-fit(display:table)で統一し、
   キャプションは display:block に戻して画像幅に揃える。 */
.article-body img { border-radius: var(--radius); height: auto; }

.article-body figure.wp-block-image,
.article-body figure.wp-caption,
.article-body div.wp-caption {
  display: table;              /* 画像幅にフィットさせる(キャプション幅=画像幅) */
  max-width: 100%;
  margin: 2em 0;
}
.article-body figure.wp-block-image.alignwide,
.article-body figure.wp-block-image.alignfull { display: block; }

/* 中央寄せ:figure・単体imgのどちらの出力パターンにも対応 */
.article-body figure.aligncenter,
.article-body div.aligncenter {
  display: table;
  margin-left: auto;
  margin-right: auto;
}
.article-body img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.article-body .wp-block-image .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

/* 左寄せ・右寄せ(回り込み) */
.article-body figure.alignleft,
.article-body img.alignleft { float: left; margin: .4em 28px 1.2em 0; }
.article-body figure.alignright,
.article-body img.alignright { float: right; margin: .4em 0 1.2em 28px; }

/* 回り込み解除(見出しや後続要素に画像が食い込まないように) */
.article-body h2,
.article-body h3,
.article-body h4 { clear: both; }
.article-body::after { content: ""; display: block; clear: both; }

/* --- キャプション --- */
.article-body figure.wp-block-image figcaption,
.article-body .wp-element-caption,
.article-body .wp-caption-text {
  display: block;              /* table-caption を打ち消して崩れを防ぐ */
  margin: 0;
  padding: 9px 14px;
  background: var(--mist);
  border-radius: 0 0 8px 8px;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}
/* キャプション付きの場合は画像下側の角丸を外し、キャプションと一体化させる */
.article-body figure.wp-block-image:has(figcaption) img,
.article-body .wp-caption:has(.wp-caption-text) img {
  border-radius: var(--radius) var(--radius) 0 0;
}
/* キャプション未入力時に余白だけ残らないようにする */
.article-body figcaption:empty { display: none; padding: 0; }

/* --- H4(H2/H3との階層差を明確に) --- */
.article-body h4 {
  font-size: 1.02rem; font-weight: 700; color: var(--ink);
  line-height: 1.6;
  padding-left: 12px;
  border-left: 3px solid var(--brass);
  margin: 2em 0 .9em;
}

/* --- テーブル(スマホでは横スクロールで崩れ防止) --- */
.article-body .wp-block-table {
  margin: 2em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body .wp-block-table table { margin: 0; }

/* --- ボタンブロック --- */
.article-body .wp-block-buttons { margin: 2.2em 0; }
.article-body .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 2.2em;
  border-radius: 999px;
  background: var(--brass); color: var(--white);
  font-weight: 700; font-size: .95rem; letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(168, 124, 42, .35);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.article-body .wp-block-button__link:hover {
  background: var(--brass-dark); color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 124, 42, .4);
}

/* --- スマホ:回り込みは解除して中央に(横スクロール・極端な折返し防止) --- */
@media (max-width: 600px) {
  .article-body figure.alignleft,
  .article-body img.alignleft,
  .article-body figure.alignright,
  .article-body img.alignright {
    float: none;
    display: table;
    margin: 2em auto;
  }
}

/* WPが出力するユーティリティ */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* =========================================================
   お問い合わせ(contact)
========================================================= */

/* --- ヘッダーナビ:お問い合わせを琥珀のCTAピルに(PC) --- */
.nav-list > li > .nav-contact-link {
  margin-left: 12px;
  padding: 10px 24px;
  background: var(--brass);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(168, 124, 42, .3);
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.nav-list > li > .nav-contact-link:hover {
  background: var(--brass-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(168, 124, 42, .38);
}
.nav-list > li > .nav-contact-link::after { display: none; }

/* --- フォーム --- */
.contact-form { margin-top: 8px; }
.contact-form .form-field + .form-field { margin-top: 30px; }

.contact-form label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink);
  font-size: .95rem; letter-spacing: .05em;
  margin-bottom: 10px;
}
.required-mark {
  display: inline-block;
  background: var(--brass); color: var(--white);
  font-size: .68rem; font-weight: 700;
  line-height: 1;
  padding: 4px 9px; border-radius: 4px;
  letter-spacing: .08em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit; color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #A8B3BF; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(168, 124, 42, .16);
}
.contact-form textarea {
  resize: vertical;
  min-height: 200px;
  line-height: 1.9;
}

.contact-privacy-note {
  margin-top: 26px;
  font-size: .88rem; color: var(--muted); line-height: 1.9;
}
.contact-privacy-note a {
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-privacy-note a:hover { color: var(--brass-dark); }

.form-submit { margin-top: 40px; text-align: center; }

/* --- 完了・エラー表示 --- */
.contact-notice {
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
  line-height: 2;
}
.contact-notice-title {
  font-family: var(--font-serif);
  font-weight: 700; font-size: 1.2rem;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.contact-notice.is-success {
  background: var(--mist);
  text-align: center;
}
.contact-notice.is-success .contact-notice-title { color: var(--ink); }
.contact-notice-link { margin-top: 26px; }
.contact-notice.is-error {
  background: #FBF3F2;
  border-color: #E7C0BA;
  margin-bottom: 36px;
}
.contact-notice.is-error .contact-notice-title { color: #8C3A2E; font-size: 1.05rem; margin-bottom: 8px; }
.contact-notice.is-error ul { padding-left: 1.3em; }
.contact-notice.is-error li { list-style: disc; color: #8C3A2E; font-size: .92rem; }

/* --- スパム対策の隠し欄(視覚的に非表示) --- */
.crs-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
  /* ドロワー内ではピルを解除し、他項目と同じ形で琥珀色の文字に */
  .nav-list > li > .nav-contact-link {
    margin-left: 0;
    padding: 16px 8px;
    background: transparent;
    color: #E4C883;
    border-radius: 0;
    box-shadow: none;
    display: flex; width: 100%; justify-content: space-between;
    font-size: 1rem;
  }
  .nav-list > li > .nav-contact-link:hover {
    background: rgba(255, 255, 255, .08);
    transform: none;
    box-shadow: none;
  }

  .contact-form .form-field + .form-field { margin-top: 24px; }
  .contact-form textarea { min-height: 170px; }
  .form-submit { margin-top: 32px; }
  .form-submit .btn { width: 100%; }
  .contact-notice { padding: 26px 20px; }
}

/* =========================================================
   PR表記(ステマ規制対応)— トップのヒーロー右上に小さく表示
========================================================= */
.hero-slim-inner .pr-notice {
  position: absolute;
  top: 16px; right: 24px;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 4px;
  padding: .25em .8em;
}
@media (max-width: 768px) {
  .hero-slim-inner .pr-notice { top: 10px; right: 16px; font-size: .72rem; }
}
/* --- ヘッダーナビ:タブレット幅(769〜1100px)で項目が折り返さないよう調整 --- */
.nav-list > li > a,
.nav-dropdown-toggle { white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1100px) {
  .header-inner { gap: 16px; padding: 0 16px; }
  .logo-main { font-size: 1.15rem; letter-spacing: .03em; white-space: nowrap; }
  .logo-sub { letter-spacing: .2em; white-space: nowrap; }
  .nav-list { gap: 0; }
  .nav-list > li > a,
  .nav-dropdown-toggle { padding: 10px 9px; font-size: .84rem; }
  .nav-list > li > a::after,
  .nav-dropdown-toggle::after { left: 9px; right: 9px; }
  .nav-list > li > .nav-contact-link { margin-left: 6px; padding: 9px 16px; }
}
@media (min-width: 769px) and (max-width: 880px) {
  .header-inner { gap: 10px; padding: 0 12px; }
  .logo-main { font-size: 1.02rem; letter-spacing: 0; }
  .logo-sub { font-size: .5rem; letter-spacing: .12em; }
  .nav-list > li > a,
  .nav-dropdown-toggle { padding: 10px 7px; font-size: .8rem; }
  .nav-list > li > a::after,
  .nav-dropdown-toggle::after { left: 7px; right: 7px; }
  .nav-list > li > .nav-contact-link { margin-left: 4px; padding: 8px 13px; }
}
