/* ═══════ ISMAS — Confirmed Design ═══════ */
:root {
  --indigo: #1E3A5F;
  --ocher: #C49A3C;
  --tag-gray: #8A8F98;
  --bg: #FAFAF8;
  --bg-alt: #F2F1ED;
  --text: #2A2A2A;
  --text-muted: #5A5A5A;
  --text-faint: #8a8a8a;
  --border: #e8e5e0;
  --font-body: 'Noto Serif JP', 'Georgia', serif;
  --font-display: 'Cormorant Garamond', 'Garamond', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); min-height: 100vh; }
::selection { background: rgba(196,154,60,0.13); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.revealed { opacity: 1; transform: translateY(0); }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(250,250,248,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 960px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.header-logo { display: flex; align-items: center; }
.header-logo img { height: auto; }
.main-nav { display: flex; gap: 4px; }
.nav-link { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em; color: var(--tag-gray); padding: 6px 12px; border-bottom: 2px solid transparent; transition: all 0.2s; }
.nav-link:hover { color: var(--indigo); }
.nav-active { color: var(--indigo); border-bottom-color: var(--ocher); }
.mobile-btn { display: none; background: none; border: none; font-size: 22px; color: var(--indigo); cursor: pointer; padding: 4px 8px; }

/* ── Hero ── */
.hero { background: var(--bg); text-align: center; padding: 48px 24px 40px; border-bottom: 1px solid var(--border); }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: 520px; height: auto; }

/* ── Sections ── */
.section { padding: 56px 24px 64px; }
.section--alt { background: var(--bg-alt); }
.container { max-width: 720px; margin: 0 auto; }
.container--wide { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
.section-title { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--indigo); margin-bottom: 24px; letter-spacing: 0.03em; }
.section-subtitle { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--indigo); margin-bottom: 12px; letter-spacing: 0.02em; }
.subsection-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--indigo); margin-top: 36px; margin-bottom: 12px; }
.body-text-core { font-size: 17px; line-height: 2; color: var(--text); margin-bottom: 18px; text-align: justify; letter-spacing: 0.02em; }
.body-text-intro { font-size: 16.5px; line-height: 2; color: var(--text); margin-bottom: 16px; text-align: justify; letter-spacing: 0.02em; }
.body-text { font-size: 15.5px; line-height: 2; color: var(--text); margin-bottom: 16px; text-align: justify; letter-spacing: 0.02em; }
.text-small { font-size: 13.5px; line-height: 1.85; color: var(--text-muted); margin-bottom: 12px; }
.text-faint { color: var(--text-faint); }
.text-bold { font-weight: 500; }
.ocher-line { width: 48px; height: 3px; background: var(--ocher); border-radius: 2px; margin: 0 0 28px; }

/* ── Links ── */
.link-arrow { font-family: var(--font-display); font-size: 15px; color: var(--indigo); letter-spacing: 0.04em; transition: color 0.2s; }
.link-arrow:hover { color: var(--ocher); }
.inline-link { color: var(--ocher); text-decoration: underline; }

/* ── Focal cards ── */
.focal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.focal-card { border: 1px solid var(--border); padding: 28px 24px; background: var(--bg); transition: box-shadow 0.3s; }
.focal-card:hover { box-shadow: 0 4px 20px rgba(30,58,95,0.08); }
.focal-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--indigo); margin-bottom: 10px; }
.focal-card p { font-size: 14.5px; line-height: 1.85; color: var(--text-muted); margin-bottom: 12px; }
.focal-tag { font-size: 12px; color: var(--ocher); letter-spacing: 0.02em; }

/* ── Publication items ── */
.pub-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.pub-type { display: inline-block; font-size: 11px; font-weight: 600; color: var(--ocher); letter-spacing: 0.08em; text-transform: uppercase; background: rgba(196,154,60,0.07); padding: 2px 8px; border-radius: 3px; margin-bottom: 6px; }
.pub-title { font-size: 15px; line-height: 1.8; color: var(--text); }
.pub-meta { font-size: 13px; color: var(--text-faint); margin-top: 4px; }
.pub-meta-en { font-family: var(--font-display); font-size: 14px; font-style: italic; color: var(--text-faint); margin-top: 4px; }
.theory-tag { font-size: 13px; color: var(--ocher); margin-top: 8px; letter-spacing: 0.01em; }

/* ── Activity items ── */
.activity-item { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.activity-date { font-family: var(--font-display); font-size: 14px; color: var(--tag-gray); white-space: nowrap; min-width: 90px; letter-spacing: 0.04em; }
.activity-desc { font-size: 14.5px; line-height: 1.75; color: var(--text); }

/* ── Info grid ── */
.info-grid { border-top: 1px solid var(--border); margin-top: 16px; }
.info-row { display: flex; border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 14.5px; line-height: 1.8; }
.info-label { width: 110px; flex-shrink: 0; color: var(--tag-gray); font-size: 13px; }
.info-value { color: var(--text); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 24px; }
.contact-card { border: 1px solid var(--border); border-left: 3px solid var(--ocher); padding: 20px; }
.contact-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--indigo); margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.comment-theme { padding-left: 16px; border-left: 2px solid var(--border); margin-bottom: 14px; }

/* ── Researcher ── */
.researcher-name { font-family: var(--font-body); font-size: 28px; font-weight: 500; color: var(--text); margin-bottom: 8px; }

/* ── Research Note ── */
.rn-back { font-size: 14px; color: var(--indigo); font-family: var(--font-display); margin-bottom: 32px; display: inline-block; }
.rn-back:hover { color: var(--ocher); }
.rn-label { font-size: 12px; font-weight: 700; color: var(--ocher); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; }
.rn-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--indigo); margin-bottom: 12px; line-height: 1.3; }
.rn-author { font-size: 14px; color: var(--text-faint); margin-bottom: 28px; }
.rn-abstract { padding: 24px; background: var(--bg-alt); border-radius: 6px; margin-bottom: 16px; }
.rn-abstract h2 { font-size: 12px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.rn-abstract p { font-size: 14px; line-height: 1.9; color: var(--text-muted); }
.rn-abstract-en p { font-family: var(--font-display); }
.rn-keywords { font-size: 13px; color: var(--text-faint); margin-bottom: 32px; }
.rn-keywords strong { color: var(--text-muted); }
.rn-body h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--indigo); margin-top: 40px; margin-bottom: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.rn-body p { font-size: 15.5px; line-height: 2; color: var(--text); margin-bottom: 16px; text-align: justify; }
.rn-citation { padding: 24px; background: var(--bg-alt); border-radius: 6px; margin-top: 40px; }
.rn-citation h2 { font-size: 12px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.rn-citation p { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 8px; }
.rn-citation .en { font-family: var(--font-display); }

/* ── Footer ── */
.site-footer { background: var(--indigo); color: rgba(255,255,255,0.6); padding: 48px 24px 32px; }
.footer-inner { max-width: 720px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; }
.footer-org { font-family: var(--font-body); font-size: 12px; margin-top: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-display); font-size: 13px; color: rgba(255,255,255,0.45); letter-spacing: 0.05em; }
.footer-nav a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom { max-width: 720px; margin: 28px auto 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; font-family: var(--font-display); font-size: 12px; color: rgba(255,255,255,0.25); letter-spacing: 0.05em; }

/* ── Page title (non-home) ── */
.page-title { font-family: var(--font-display); font-size: 36px; font-weight: 600; color: var(--indigo); margin-bottom: 40px; letter-spacing: 0.03em; }

/* ── Spacing helpers ── */
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 28px; }
.mt-l { margin-top: 40px; }
.mt-xl { margin-top: 48px; }
.mb-s { margin-bottom: 16px; }
.mb-m { margin-bottom: 24px; }
.mb-l { margin-bottom: 32px; }

/* ── Mobile ── */
@media (max-width: 700px) {
  .mobile-btn { display: block; }
  .main-nav {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: rgba(250,250,248,0.98); flex-direction: column;
    padding: 12px 24px 20px; border-bottom: 1px solid var(--border); z-index: 99;
  }
  .main-nav.nav-open { display: flex; }
  .nav-link { text-align: left; padding: 10px 0; }
  .focal-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 32px 16px 28px; }
  .hero-logo img { width: 320px; }
  .section { padding: 40px 20px 48px; }
  .info-row { flex-direction: column; gap: 2px; }
  .info-label { width: auto; }
  .activity-item { flex-direction: column; gap: 4px; }
}
