/*
Theme Name: Motoki Research
Author: Motoki Yamamori
Description: 個人研究サイト用クラシックテーマ。トップページの文言は固定ページ「ホーム」の編集画面から変更できる。コラムは「投稿」で書くとトップに最新3件が自動表示される。
Version: 1.13.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: motoki
*/

:root {
  --black: #111111;
  --ink: #1e1e1e;
  --mid: #555555;
  --light: #999999;
  --rule: #e0e0e0;
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --teal: #0d6e6e;
  --teal-dark: #0a5555;
  --teal-light: #e6f2f2;
  --nav-top: 0px;
}
body.admin-bar { --nav-top: 32px; }
@media (max-width: 782px) { body.admin-bar { --nav-top: 46px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Noto Sans JP', 'Inter', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }

/* ── NAV ── */
.site-nav {
  position: fixed; top: var(--nav-top); left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-nav.scrolled, body:not(.home) .site-nav { border-color: var(--rule); }
.nav-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1rem; letter-spacing: 0.08em;
  color: var(--black); text-decoration: none;
}
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  font-family: 'Inter', sans-serif;
}

/* ── HERO ──
   写真なし（no-photo）：白地に流れのパターン（assets/hero-flow.svg）、文字は黒
   写真あり（has-photo）：全面写真＋暗いグラデーション、文字は白 */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem 2.5rem 5rem; background: var(--bg); color: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); display: block; }

/* no-photo: 人の流れが集まり、また散っていくパターン */
.hero-media.is-empty {
  background: url("assets/hero-flow.svg") right center / auto 100% no-repeat;
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-content .hero-name { max-width: none; }
.hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 1.5rem; font-family: 'Inter', sans-serif; font-weight: 400;
}
.hero-title {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  font-weight: 300; font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.4; letter-spacing: -0.01em; color: var(--black); margin-bottom: 2rem;
}
.hero-title em { font-style: normal; color: var(--teal); }
.hero-name {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif; font-weight: 400;
  font-size: clamp(2.6rem, 8.6vw, 7.25rem); line-height: 0.95; letter-spacing: -0.005em;
  color: var(--black); margin: 0 0 2.5rem; white-space: nowrap;
}
.hero-name + .hero-name-sub { margin-top: -1.6rem; }
.hero-name em { font-style: normal; color: var(--teal); }
.hero-name-sub { font-family: 'Noto Serif JP', serif; font-size: 0.95rem; letter-spacing: 0.35em; color: var(--mid); margin-bottom: 2.5rem; }
.hero-title.is-sub { font-size: clamp(1.4rem, 2.6vw, 2.1rem); margin-bottom: 1.5rem; }
.hero-title.is-sub .hero-title-en { font-size: 0.5em; }
.hero-title-en {
  display: block; margin-top: 0.9rem;
  font-size: 0.4em; line-height: 1.6; color: var(--mid);
  font-family: 'Inter', 'Noto Sans JP', sans-serif; font-weight: 300; letter-spacing: 0.03em;
}
.hero-sub { font-size: 0.9rem; color: var(--mid); max-width: 520px; line-height: 1.9; margin-bottom: 2.5rem; }
.hero-meta { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-meta-item { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-meta-label { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light); }
.hero-meta-value { font-size: 0.85rem; color: var(--ink); }
.scroll-hint {
  position: absolute; bottom: 2rem; right: 2.5rem; z-index: 1;
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--light);
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 0.75rem; font-family: 'Inter', sans-serif;
}
.scroll-hint::after { content: ''; display: block; width: 1px; height: 48px; background: var(--teal); }

/* has-photo: 全面写真 */
.hero.has-photo { background: #0e2424; color: #fff; }
.hero.has-photo .hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,22,22,0.88) 0%, rgba(8,22,22,0.45) 45%, rgba(8,22,22,0.12) 100%),
    linear-gradient(to right, rgba(8,22,22,0.55) 0%, rgba(8,22,22,0) 65%);
}
.hero.has-photo .hero-eyebrow, .hero.has-photo .hero-title em { color: #7fd8d8; }
.hero.has-photo .hero-title, .hero.has-photo .hero-name { color: #fff; text-shadow: 0 1px 24px rgba(0,0,0,0.25); }
.hero.has-photo .hero-name em { color: #7fd8d8; }
.hero.has-photo .hero-name-sub { color: rgba(255,255,255,0.8); }
.hero.has-photo .hero-title-en { color: rgba(255,255,255,0.82); }
.hero.has-photo .hero-sub { color: rgba(255,255,255,0.85); }
.hero.has-photo .hero-meta-label { color: rgba(255,255,255,0.55); }
.hero.has-photo .hero-meta-value { color: #fff; }
.hero.has-photo .scroll-hint { color: rgba(255,255,255,0.7); }
.hero.has-photo .scroll-hint::after { background: #7fd8d8; }

/* 写真ありのとき、スクロール前のナビを透明・白文字に */
body.hero-has-photo .site-nav:not(.scrolled) { background: transparent; backdrop-filter: none; border-color: transparent; }
body.hero-has-photo .site-nav:not(.scrolled) .nav-logo,
body.hero-has-photo .site-nav:not(.scrolled) .nav-toggle { color: #fff; }
body.hero-has-photo .site-nav:not(.scrolled) .nav-logo span { color: #7fd8d8; }
body.hero-has-photo .site-nav:not(.scrolled) .nav-links:not(.open) a { color: rgba(255,255,255,0.85); }
body.hero-has-photo .site-nav:not(.scrolled) .nav-links:not(.open) a:hover { color: #7fd8d8; }

/* ── SECTION BASE ── */
.section { padding: 6rem 2.5rem; max-width: 960px; margin: 0 auto; }
.band { background: var(--bg-alt); padding: 6rem 0; }
.band-inner, .section-inner { max-width: 960px; margin: 0 auto; padding: 0 2.5rem; }
.section-header {
  display: flex; align-items: baseline; gap: 1.25rem;
  margin-bottom: 3.5rem; border-bottom: 1px solid var(--rule); padding-bottom: 1.25rem;
}
.section-num { font-family: 'Inter', sans-serif; font-size: 0.65rem; font-weight: 400; letter-spacing: 0.15em; color: var(--teal); }
.section-title-en { font-family: 'DM Serif Display', Georgia, serif; font-size: 1.5rem; color: var(--black); font-weight: 400; }
.section-title-jp { font-size: 0.75rem; color: var(--mid); margin-left: auto; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-photo { width: 100%; max-width: 300px; aspect-ratio: 4/5; overflow: hidden; margin: 0 0 2rem; background: var(--teal-light); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-photo-placeholder { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--teal); text-transform: uppercase; }
.about-name-block { margin-bottom: 2rem; }
.about-name-jp { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 1.6rem; line-height: 1.4; color: var(--black); }
.about-name-en { font-family: 'DM Serif Display', Georgia, serif; font-size: 1rem; color: var(--mid); margin-top: 0.3rem; }
.profile-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.9rem; }
.profile-links a { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; color: var(--mid); text-decoration: none; font-family: 'Inter', 'Noto Sans JP', sans-serif; overflow-wrap: anywhere; }
.profile-links a:hover { color: var(--teal); }
.profile-links a:hover span { text-decoration: underline; }
.profile-links img { width: 16px; height: 16px; flex: 0 0 16px; display: block; }
.about-bio { font-size: 0.9rem; line-height: 2; color: var(--ink); margin-bottom: 1.5rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 2.5rem; }
.tag { font-size: 0.7rem; padding: 0.3rem 0.75rem; border: 1px solid var(--rule); color: var(--mid); letter-spacing: 0.05em; }
.tag.accent { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
.about-career { border-left: 1px solid var(--rule); padding-left: 2.5rem; }
.career-group-label { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.career-group-label + .career-item { margin-top: 0; }
.career-group + .career-group { margin-top: 1.5rem; }
.career-item { display: grid; grid-template-columns: 5rem 1fr; gap: 0.5rem 1rem; margin-bottom: 0.85rem; font-size: 0.82rem; }
.career-year { color: var(--light); font-family: 'Inter', sans-serif; }
.career-item.no-year { grid-template-columns: 1fr; }
.career-item.no-year .career-desc { padding-left: 0.9rem; position: relative; }
.career-item.no-year .career-desc::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }

/* ── RESEARCH ── */
.research-theme { margin-bottom: 4rem; }
.theme-label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem; }
.theme-question {
  font-family: 'Noto Serif JP', serif; font-weight: 300;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem); line-height: 1.6; color: var(--black);
  margin-bottom: 1rem; max-width: 640px;
}
.theme-desc { font-size: 0.88rem; color: var(--mid); max-width: 640px; line-height: 1.95; }
.theme-desc p + p { margin-top: 1em; }
.block-label { font-family: 'Inter', 'Noto Sans JP', sans-serif; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--light); margin-bottom: 1rem; }
.pillars { margin-bottom: 4rem; }
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pillar { background: var(--bg); border-top: 2px solid var(--teal); padding: 2rem 1.75rem 2.25rem; position: relative; }
.pillar-num { position: absolute; top: 1.25rem; right: 1.5rem; font-family: 'DM Serif Display', Georgia, serif; font-size: 2.4rem; line-height: 1; color: var(--teal-light); }
.pillar-sub { font-size: 0.7rem; letter-spacing: 0.06em; color: var(--teal); margin-bottom: 0.4rem; }
.pillar-title { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 1.25rem; color: var(--black); margin-bottom: 1rem; line-height: 1.5; }
.pillar-desc { font-size: 0.82rem; color: var(--mid); line-height: 1.95; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); }
.method-card { background: var(--bg-alt); padding: 2rem 1.75rem; }
.method-step { font-family: 'Inter', sans-serif; font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem; }
.method-title { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 1rem; color: var(--black); margin-bottom: 0.75rem; }
.method-desc { font-size: 0.8rem; color: var(--mid); line-height: 1.85; }
.method-list-label { font-size: 0.6rem; letter-spacing: 0.12em; color: var(--light); margin-top: 1.25rem; font-family: 'Inter', 'Noto Sans JP', sans-serif; }
.method-list { list-style: none; margin-top: 0.5rem; }
.method-list li.is-main { font-weight: 700; color: var(--black); }
.main-badge { display: inline-block; margin-left: 0.5rem; font-size: 0.6rem; font-weight: 400; letter-spacing: 0.05em; color: var(--teal); border: 1px solid var(--teal); padding: 0 0.4rem; line-height: 1.6; vertical-align: 1px; }
.method-list li { font-size: 0.78rem; color: var(--ink); padding-left: 1rem; position: relative; margin-bottom: 0.4rem; }
.method-list li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 4px; height: 4px; background: var(--teal); border-radius: 50%; }
.method-bridge { display: flex; align-items: center; gap: 1.25rem; margin: 1.75rem 0; }
.method-bridge-line { flex: 1; height: 1px; background: var(--rule); }
.method-bridge-text { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--teal); white-space: nowrap; }
.method-grid + .method-policy { margin-top: 1.75rem; }
.method-policy { background: var(--teal); color: #fff; padding: 2.5rem 2rem; }
.method-policy .method-step { color: #bfe6e6; }
.method-policy .method-desc { color: rgba(255,255,255,0.86); }
.method-policy-title { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 1.15rem; color: #fff; margin-bottom: 0.9rem; line-height: 1.5; }

/* ── PUBLICATIONS ── */
.pub-list { border-top: 1px solid var(--rule); }
.pub-item {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 1.5rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit;
}
a.pub-item:hover .pub-title { color: var(--teal); }
.pub-year { font-size: 0.72rem; color: var(--light); font-family: 'Inter', sans-serif; }
.pub-title { font-size: 0.88rem; color: var(--ink); transition: color 0.15s; }
.pub-body { display: flex; flex-direction: column; gap: 0.25rem; }
.pub-journal { font-size: 0.72rem; color: var(--teal); line-height: 1.6; }
.works-group + .works-group { margin-top: 3rem; }
.works-label { font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light); margin-bottom: 0.5rem; }
.section-tight { padding-top: 0; }
.section-note { margin-top: 1.5rem; font-size: 0.75rem; color: var(--light); }

/* ── MEDIA ── */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.media-column h3 {
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light);
  margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rule);
}
.media-item { display: flex; gap: 1rem; margin-bottom: 1rem; align-items: baseline; }
.media-date { font-size: 0.7rem; color: var(--light); white-space: nowrap; font-family: 'Inter', sans-serif; min-width: 4rem; }
.media-desc { font-size: 0.83rem; color: var(--ink); line-height: 1.6; }

/* ── POST CARDS ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.blog-card { background: var(--bg-alt); padding: 2rem 1.75rem; text-decoration: none; color: inherit; display: block; transition: background 0.15s; }
.band .blog-card { background: var(--bg-alt); }
.blog-card:hover { background: var(--teal-light); }
.blog-thumb { aspect-ratio: 16/10; overflow: hidden; margin: -2rem -1.75rem 1.5rem; background: var(--teal-light); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-lang { margin-left: 0.6rem; padding: 0 0.4rem; border: 1px solid var(--rule); color: var(--light); letter-spacing: 0.05em; text-transform: none; }
.section-title-jp:empty { display: none; }
.nav-lang a { border: 1px solid currentColor; padding: 0.15rem 0.5rem; }
.article-abstract { background: var(--bg-alt); border-left: 2px solid var(--teal); padding: 1.5rem 1.75rem; margin-bottom: 2.5rem; font-family: 'Inter', 'Noto Sans JP', sans-serif; font-size: 0.88rem; line-height: 1.85; color: var(--ink); }
.article-abstract-label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem; }
.article-abstract-title { font-weight: 500; margin-bottom: 0.5rem; }
.article-abstract p + p { margin-top: 0.8em; }
.blog-tag { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem; }
.blog-title { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 0.95rem; color: var(--black); line-height: 1.6; margin-bottom: 0.75rem; }
.blog-excerpt { font-size: 0.78rem; color: var(--mid); line-height: 1.8; margin-bottom: 1rem; }
.blog-date { font-size: 0.65rem; color: var(--light); font-family: 'Inter', sans-serif; }
.blog-more { margin-top: 2rem; text-align: right; }
.link-arrow {
  font-size: 0.8rem; color: var(--teal); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 0.1rem;
}
.empty-note { font-size: 0.85rem; color: var(--mid); padding: 2rem 0; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: start; }
.contact-lead { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.7; color: var(--black); margin-bottom: 1.5rem; }
.contact-note { font-size: 0.82rem; color: var(--mid); line-height: 1.9; margin-bottom: 2rem; }
.contact-email { display: inline-flex; gap: 0.5rem; font-size: 0.85rem; color: var(--teal); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.1rem; }
.contact-aff-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); margin: 2.5rem 0 0.75rem; }
.contact-aff { font-size: 0.82rem; color: var(--mid); line-height: 1.9; }
.contact-form-area label { display: block; font-size: 0.7rem; letter-spacing: 0.08em; color: var(--mid); margin: 1.25rem 0 0.4rem; }
.contact-form-area input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.contact-form-area select, .contact-form-area textarea {
  width: 100%; border: 1px solid var(--rule); background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: 0.85rem; font-weight: 300; padding: 0.6rem 0.75rem; outline: none;
}
.contact-form-area input:focus, .contact-form-area select:focus, .contact-form-area textarea:focus { border-color: var(--teal); }
.contact-form-area textarea { resize: vertical; min-height: 100px; }
.btn, .contact-form-area input[type=submit] {
  margin-top: 1.5rem; display: inline-block; background: var(--teal); color: #fff; text-decoration: none;
  font-size: 0.75rem; font-family: 'Inter', sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.8rem 2rem; border: none; cursor: pointer; transition: background 0.2s;
}
.btn:hover, .contact-form-area input[type=submit]:hover { background: var(--teal-dark); }
.section-note a { color: var(--teal); }
/* Contact Form 7 */
.contact-form-area form > p, .contact-form-area .wpcf7 p { margin: 0; }
.contact-form-area label { display: block; }
.contact-form-area .wpcf7-form-control-wrap { display: block; margin-top: 0.4rem; }
.contact-form-area .req { color: var(--teal); margin-left: 0.25em; }
.contact-form-area .wpcf7-not-valid { border-color: #b3261e !important; }
.contact-form-area .wpcf7-not-valid-tip { display: block; font-size: 0.72rem; color: #b3261e; margin-top: 0.3rem; }
.contact-form-area .wpcf7-response-output { margin: 1.25rem 0 0 !important; padding: 0.75rem 1rem !important; font-size: 0.8rem; border: 1px solid var(--rule) !important; }
.contact-form-area .wpcf7 form.sent .wpcf7-response-output { border-color: var(--teal) !important; color: var(--teal); background: var(--teal-light); }
.contact-form-area .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-area .wpcf7 form.failed .wpcf7-response-output { border-color: #b3261e !important; color: #b3261e; }
.contact-form-area .wpcf7-spinner { margin: 1.5rem 0 0 0.75rem; vertical-align: middle; }
.contact-form-area .form-privacy { font-size: 0.72rem; color: var(--light); margin-top: 1rem; line-height: 1.7; }

/* ── ARCHIVE / SINGLE ── */
.page-head { padding: 9rem 2.5rem 3rem; max-width: 960px; margin: 0 auto; }
.page-head .theme-label { margin-bottom: 1rem; }
.page-title { font-family: 'Noto Serif JP', serif; font-weight: 300; font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.5; color: var(--black); }
.page-desc { margin-top: 1rem; font-size: 0.88rem; color: var(--mid); }
.archive-body { max-width: 960px; margin: 0 auto; padding: 0 2.5rem 6rem; }
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-block; min-width: 2.2rem; text-align: center; padding: 0.4rem 0.6rem;
  border: 1px solid var(--rule); font-size: 0.78rem; color: var(--mid); text-decoration: none; text-transform: none; letter-spacing: 0;
}
.pagination .page-numbers.current { border-color: var(--teal); color: #fff; background: var(--teal); }

.article { max-width: 720px; margin: 0 auto; padding: 9rem 2.5rem 4rem; }
.article-meta { display: flex; gap: 1.25rem; align-items: baseline; margin-bottom: 1.25rem; }
.article-cat a { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); text-decoration: none; }
.article-date { font-size: 0.72rem; color: var(--light); font-family: 'Inter', sans-serif; }
.article-title { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.55; color: var(--black); margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--rule); }
.article-thumb { margin-bottom: 2.5rem; }
.article-thumb img { width: 100%; display: block; }

.entry-content { font-size: 0.95rem; line-height: 2.05; color: var(--ink); overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1.5em; }
.entry-content h2 {
  font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 1.35rem; line-height: 1.6; color: var(--black);
  margin-top: 3em; padding-left: 0.9rem; border-left: 2px solid var(--teal);
}
.entry-content h3 { font-family: 'Noto Serif JP', serif; font-weight: 400; font-size: 1.1rem; color: var(--black); margin-top: 2.4em; }
.entry-content h4 { font-size: 0.95rem; font-weight: 500; margin-top: 2em; }
.entry-content strong { font-weight: 500; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content blockquote { border-left: 2px solid var(--rule); padding: 0.25em 0 0.25em 1.25em; color: var(--mid); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 0.75rem; color: var(--light); margin-top: 0.5em; text-align: center; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.85rem; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--rule); padding: 0.6em 0.8em; text-align: left; }
.entry-content th { font-weight: 500; background: var(--bg-alt); }
.entry-content code { font-size: 0.85em; background: var(--bg-alt); padding: 0.1em 0.35em; }
.entry-content pre { background: var(--bg-alt); padding: 1.25em; overflow-x: auto; font-size: 0.82rem; line-height: 1.7; }
.entry-content hr { border: none; border-top: 1px solid var(--rule); margin: 3em 0; }
.entry-content .wp-block-image img { display: block; }
.entry-content .alignwide { max-width: none; }

.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 4rem; }
.article-nav a { background: var(--bg); padding: 1.25rem 1.5rem; text-decoration: none; color: var(--ink); font-size: 0.82rem; line-height: 1.6; display: block; }
.article-nav a:hover { background: var(--teal-light); }
.article-nav .label { display: block; font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.4rem; font-family: 'Inter', sans-serif; }
.article-nav .next { text-align: right; grid-column: 2; }
.article-back { margin-top: 2.5rem; }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--rule); padding: 2rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: 0.72rem; color: var(--light);
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--light); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-nav { padding: 1rem 1.25rem; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--rule);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 0.9rem 1.25rem; border-top: 1px solid var(--rule); }
  .hero { padding: 7rem 1.25rem 4rem; min-height: 92svh; }
  .hero-title { font-size: clamp(1.3rem, 6.2vw, 1.8rem); }
  .hero-title-en { font-size: 0.75rem; }
  .hero-name { font-size: clamp(2.2rem, 11vw, 3.2rem); white-space: normal; margin-bottom: 1.75rem; }
  .hero-name-sub { margin-bottom: 1.75rem; }
  .hero-title.is-sub { font-size: clamp(1.15rem, 5.2vw, 1.4rem); }
  .scroll-hint { display: none; }
  .hero-media.is-empty { background-size: cover; background-position: 72% center; opacity: 0.75; }
  .section { padding: 4rem 1.25rem; }
  .band { padding: 4rem 0; }
  .band-inner, .section-inner { padding: 0 1.25rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 220px; margin-bottom: 1.5rem; }
  .about-career { border-left: none; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.5rem; }
  .method-grid, .media-grid, .blog-grid, .pillar-grid { grid-template-columns: 1fr; }
  .method-bridge-text { white-space: normal; text-align: center; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
  /* Research：スマホでは余白を詰める */
  #research.band { padding: 3.5rem 0; }
  #research .section-header { margin-bottom: 2rem; }
  .research-theme { margin-bottom: 2.5rem; }
  .theme-question { margin-bottom: 0.75rem; }
  .pillars { margin-bottom: 2.5rem; }
  .pillar-grid { gap: 1rem; }
  .pillar { padding: 1.5rem 1.25rem 1.5rem; }
  .pillar-num { top: 1rem; right: 1.1rem; font-size: 2rem; }
  .pillar-title { margin-bottom: 0.6rem; }
  .method-card { padding: 1.5rem 1.25rem; }
  .method-title { margin-bottom: 0.5rem; }
  .method-list-label { margin-top: 1rem; }
  .method-list li { margin-bottom: 0.3rem; }
  .method-bridge { margin: 1.25rem 0; gap: 0.75rem; }
  .method-policy { padding: 1.75rem 1.25rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pub-item { grid-template-columns: 3.5rem 1fr; gap: 0 1rem; }
  .page-head { padding: 7rem 1.25rem 2rem; }
  .archive-body { padding: 0 1.25rem 4rem; }
  .article { padding: 7rem 1.25rem 3rem; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { grid-column: 1; }
  .site-footer { flex-direction: column; text-align: center; }
}
