/* 博田 光 Research Portfolio — shared styles (from Figma) */
:root {
  --text: #242424;
  --muted: #73807a;
  --link: #0d33b2;
  --accent: #e65a5a;
  --green: #346d66;
  --line: #cdd2c8;
  --beige: #f5f3ec;
  --mint: #eaf4f2;
  --white: #ffffff;
  --gutter: 88px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 400;
  line-height: normal;
  overflow-wrap: anywhere;
}
p, h1, h2, h3, h4, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-size: inherit; font-weight: 700; }
a { color: var(--link); text-decoration: underline; text-underline-position: from-font; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.arrow { font-family: "Inter", system-ui, sans-serif; color: var(--text); font-weight: 400; }
.b { font-weight: 700; }
.muted { color: var(--muted); }
.lh { line-height: 1.95; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 10; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 16px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.brand-name .jp { color: var(--accent); font-size: 18px; font-weight: 700; }
.brand-name .en { color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.brand-badge {
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 1px; padding: 4px 8px; border-radius: 99px; white-space: nowrap;
}
.gnav ul { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.gnav li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gnav a { font-size: 13px; white-space: nowrap; }
.gnav li::after { content: ""; display: block; height: 2px; width: 0; background: var(--green); }
.gnav li.current a { font-weight: 700; }
.gnav li.current::after { width: 32px; }
.gnav li.ext { flex-direction: row; gap: 6px; }
.gnav li.ext::after { display: none; }
.gnav li.ext .arrow { font-size: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--beige); padding: 40px var(--gutter) 24px;
  display: flex; flex-direction: column; gap: 24px;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.footer-sign { width: 520px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.footer-sign .name { font-size: 36px; white-space: nowrap; }
.footer-sign .desc { font-size: 12px; line-height: 1.95; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: 12px; line-height: 1.95; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-contact { width: 260px; display: flex; flex-direction: column; gap: 10px; }
.footer-contact .label { font-size: 12px; line-height: 1.95; }
.footer-contact .rm { font-size: 13px; }
.footer-contact .url { font-size: 11px; }
.footer-bottom { display: flex; flex-direction: column; gap: 14px; }
.footer-bottom hr { border: 0; height: 1px; background: var(--line); margin: 0; }
.footer-note { display: flex; justify-content: space-between; gap: 16px; font-size: 10px; }
.footer-note a { line-height: 1.95; }
.footer-note .copy { color: var(--muted); white-space: nowrap; }

/* ---------- Shared components ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { background: var(--beige); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.panel-head h2, .panel-head h3 { font-size: 16px; font-weight: 700; }
.panel-head p { font-size: 11px; line-height: 1.95; color: var(--muted); }
.panel-row { border-top: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.panel-row > * { max-width: 100%; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 11px; white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 20px;
  background: #fff; border: 1px solid var(--green); border-radius: var(--radius);
  font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none;
}
.btn .label { text-decoration: underline; text-underline-position: from-font; }
.btn .arrow { font-size: 16px; }
.btn:hover { background: var(--mint); }

/* ---------- Home ---------- */
.home { padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; gap: 24px; }
.banner { background: var(--beige); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.banner h1 { font-size: 28px; line-height: 1.5; }
.banner p { font-size: 15px; line-height: 1.95; }
.home-main { display: flex; gap: 24px; align-items: flex-start; }
.side-menu { width: 220px; flex-shrink: 0; }
.side-menu li { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.side-menu li.current { background: var(--mint); }
.side-menu li a { font-size: 14px; font-weight: 700; }
.side-menu li span { font-size: 11px; line-height: 1.95; color: var(--muted); }
.home-center { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.home-right { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 24px; }

.feat-meta { display: flex; justify-content: space-between; gap: 12px; width: 100%; flex-wrap: wrap; }
.feat-meta .k1 { font-size: 10px; letter-spacing: 2px; }
.feat-meta .k2 { font-size: 11px; letter-spacing: 1px; }
.feat-title { font-size: 22px; line-height: 1.95; }
.body14 { font-size: 14px; line-height: 1.95; }
.rel-label { display: flex; justify-content: space-between; width: 100%; font-size: 18px; font-weight: 700; }
.rel-label .arrow { font-size: 16px; }
.rel-title { font-size: 18px; line-height: 1.95; }
.year { font-size: 18px; font-weight: 700; }
.pub-meta { display: flex; gap: 16px; align-items: flex-start; white-space: nowrap; }
.pub-meta .date { font-size: 13px; }
.pub-meta .kind { font-size: 10px; line-height: 1.95; color: var(--muted); }
.pub-title { font-size: 16px; line-height: 1.95; }
.pub-src { font-size: 11px; line-height: 1.95; color: var(--muted); }
.class-label { font-size: 18px; font-weight: 700; }
.class-period { font-size: 12px; line-height: 1.95; }
.class-title { font-size: 20px; line-height: 1.95; }
.class-desc { font-size: 12px; line-height: 1.95; }
.person-name { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.person-name .jp { font-size: 24px; font-weight: 700; letter-spacing: 2px; }
.person-name .en { font-size: 20px; line-height: 1.1; }
.small12 { font-size: 12px; line-height: 1.95; }
.cross { background: var(--beige); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.cross-fields { display: flex; gap: 12px; }
.cross-fields > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cross-fields .en { font-size: 14px; font-weight: 700; }
.cross-fields .jp { font-size: 11px; line-height: 1.95; }
.cross .note { font-size: 11px; line-height: 1.95; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  :root { --gutter: 40px; }
  .home-main { flex-wrap: wrap; }
  .home-right { width: 100%; flex-direction: row; }
  .home-right > * { flex: 1 1 0; min-width: 0; }
  .site-header .inner { flex-direction: column; align-items: flex-start; }
  .gnav ul { justify-content: flex-start; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .home-main { flex-direction: column; }
  .side-menu, .home-right { width: 100%; }
  .home-right { flex-direction: column; }
  .footer-top { flex-direction: column; }
  .footer-sign .name { font-size: 28px; white-space: normal; }
  .footer-note { flex-direction: column; }
  .gnav ul { gap: 12px 18px; }
  .banner h1 { font-size: 24px; }
  .btn { white-space: normal; height: auto; min-height: 44px; padding: 10px 16px; }
}
