/* ============================================================
   Okuno Laboratory Website - 2026 Renewal
   Stylesheet
   ============================================================ */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI",
               "Yu Gothic", "Meiryo", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  line-height: 1.75;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1d4f91; text-decoration: none; transition: color .15s; }
a:hover { color: #d4a017; text-decoration: underline; }

:root {
  --navy: #102142;
  --navy-2: #1a3563;
  --accent: #1d4f91;
  --gold: #d4a017;
  --bg-soft: #f7f7ef;
  --bg-soft-2: #f4f6fb;
  --border: #e5e7eb;
  --text: #1f2937;
  --text-soft: #4b5563;
  --max-width: 1120px;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}
.site-logo .logo-mark {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .02em;
}
.site-logo .logo-sub {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: .05em;
  margin-top: 2px;
}
.site-logo:hover { text-decoration: none; }

.lang-switch {
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  white-space: nowrap;
}
.lang-switch:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  text-decoration: none;
}

/* ----- Primary Navigation ----- */
.primary-nav {
  border-top: 1px solid var(--border);
  background: #fff;
}
.primary-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.primary-nav li { }
.primary-nav a {
  display: block;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: .03em;
  position: relative;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 8px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}
.primary-nav a:hover { text-decoration: none; color: var(--navy); }
.primary-nav a:hover::after { transform: scaleX(1); }
.primary-nav a.is-current {
  color: var(--navy);
  font-weight: 700;
}
.primary-nav a.is-current::after { transform: scaleX(1); }

/* Hamburger button (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: transform .25s, opacity .25s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ----- Hero (homepage) ----- */
.hero {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #000;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(16,33,66,0.10) 0%,
              rgba(16,33,66,0.45) 100%);
  pointer-events: none;
}
.hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.hero-dots button {
  width: 10px; height: 10px; padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}
.hero-dots button.is-active { background: #fff; }

/* ----- Catchphrase ----- */
.catch {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
  text-align: center;
}
.catch h1 {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN",
               "Hiragino Mincho Pro", "MS PMincho", serif;
  font-size: clamp(22px, 3.4vw, 36px);
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: .04em;
  font-weight: 600;
}
.catch p {
  font-size: 14px;
  color: var(--text-soft);
  margin: 0;
  letter-spacing: .12em;
}

/* ----- News Section ----- */
.news-section {
  background: #fff;
  padding: 56px 24px 72px;
}
.news-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: .03em;
}
.section-title::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-title-en {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 400;
  letter-spacing: .2em;
  margin-left: 4px;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.news-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.news-list time {
  color: var(--text-soft);
  font-size: 13px;
  font-feature-settings: "tnum";
  letter-spacing: .04em;
}
.news-list .news-title {
  font-size: 15px;
  color: var(--text);
}
.news-more {
  margin-top: 24px;
  text-align: right;
}
.news-more a {
  font-size: 14px;
  color: var(--accent);
}
.news-more a::before { content: "› "; color: var(--gold); font-weight: bold; }

/* ----- Generic Page Layout ----- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: .04em;
  font-weight: 600;
}
.page-hero .breadcrumb {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  letter-spacing: .1em;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.85); }

.page-main {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.page-main h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  font-weight: 600;
  letter-spacing: .02em;
}
.page-main h2:first-child { margin-top: 0; }
.page-main h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
  font-weight: 600;
}
.page-main p { margin: 0 0 16px; }
.page-main figure {
  margin: 24px 0;
  text-align: center;
}
.page-main figure img {
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.page-main figure figcaption {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 8px;
  line-height: 1.7;
}

/* ----- Members layout ----- */
.member-group { margin-bottom: 40px; }
.member-group h3 {
  font-size: 17px;
  color: var(--navy);
  margin: 28px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}
.member-list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.member-list li {
  padding: 14px 0;
  border-bottom: 1px dotted var(--border);
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 16px;
  align-items: start;
}
.member-list li.no-photo {
  grid-template-columns: 1fr;
}
.member-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--bg-soft-2);
  background: var(--bg-soft-2);
  grid-row: 1 / span 3;
}
.member-photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-soft-2);
  border: 2px solid var(--bg-soft-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .02em;
  grid-row: 1 / span 3;
}
.member-info {
  grid-column: 2;
  align-self: center;
}
.member-list li.no-photo .member-info {
  grid-column: 1;
}
.member-role {
  display: inline-block;
  font-size: 12px;
  background: var(--bg-soft-2);
  color: var(--navy);
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 10px;
  letter-spacing: .05em;
  vertical-align: middle;
}
.member-name { font-weight: 600; color: var(--text); }
.member-note { color: var(--text-soft); font-size: 14px; margin-top: 4px; display: block; }
@media (max-width: 820px) {
  .member-list li {
    grid-template-columns: 56px 1fr;
    column-gap: 12px;
  }
  .member-photo, .member-photo-placeholder {
    width: 56px; height: 56px;
  }
  .member-photo-placeholder { font-size: 16px; }
}

/* ----- Publication list ----- */
.pub-section { margin-bottom: 40px; }
.pub-section h3 {
  font-size: 18px;
  color: var(--navy);
  border-left: 4px solid var(--gold);
  padding-left: 12px;
  margin: 28px 0 14px;
}
.pub-list {
  list-style: decimal inside;
  padding-left: 4px;
  margin: 0;
}
.pub-list li {
  padding: 10px 0 10px 4px;
  border-bottom: 1px dotted var(--border);
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}
.pub-list li::marker { color: var(--gold); font-weight: 700; }
.pub-doi {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  color: var(--accent);
  word-break: break-all;
}

/* ----- Access page ----- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}
.info-table th, .info-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}
.info-table th {
  background: var(--bg-soft-2);
  color: var(--navy);
  width: 30%;
  font-weight: 600;
}
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
}

/* ----- Link list ----- */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.link-list li {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-soft-2);
  transition: background .15s, border-color .15s, transform .15s;
}
.link-list li:hover {
  background: #fff;
  border-color: var(--gold);
  transform: translateY(-1px);
}
.link-list a { color: var(--navy); font-weight: 600; }
.link-list .link-desc { display: block; font-size: 13px; color: var(--text-soft); font-weight: 400; margin-top: 4px; }

/* ----- Contact ----- */
.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 16px 0;
  font-size: 15px;
}
.contact-card .label {
  display: inline-block;
  width: 120px;
  color: var(--text-soft);
  font-size: 13px;
}
.contact-card .value { font-weight: 600; }

/* ----- Footer ----- */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 32px 24px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .04em;
}
.site-footer a { color: #fff; }
.site-footer .footer-org { color: #fff; font-weight: 600; margin-bottom: 6px; }
.site-footer .footer-copy { color: #94a3b8; margin-top: 8px; font-size: 12px; }

/* ============================================================
   Responsive: Mobile (≤ 820px)
   ============================================================ */
@media (max-width: 820px) {
  .header-inner {
    padding: 12px 16px;
    flex-wrap: wrap;
    align-items: center;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .menu-toggle { display: block; }
  .lang-switch { padding: 5px 10px; font-size: 12px; }

  .primary-nav {
    display: none;
    border-top: 1px solid var(--border);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav-inner { padding: 0; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .primary-nav li { border-bottom: 1px solid var(--border); }
  .primary-nav li:last-child { border-bottom: 0; }
  .primary-nav a {
    padding: 14px 20px;
    font-size: 15px;
  }
  .primary-nav a::after { display: none; }
  .primary-nav a.is-current {
    background: var(--bg-soft-2);
    border-left: 4px solid var(--gold);
    padding-left: 16px;
  }

  .hero { height: 320px; }
  .catch { padding: 36px 16px; }
  .news-section { padding: 40px 16px 56px; }
  .news-list li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }
  .page-hero { padding: 36px 16px 32px; }
  .page-main { padding: 36px 16px 56px; }
  .page-main h2 { font-size: 19px; }
  .page-main h3 { font-size: 16px; }
  .info-table th { width: 35%; padding: 10px 12px; font-size: 13px; }
  .info-table td { padding: 10px 12px; font-size: 13px; }
  .contact-card .label { display: block; width: auto; margin-bottom: 4px; }
}

/* Tablet adjust */
@media (max-width: 1024px) and (min-width: 821px) {
  .primary-nav a { padding: 12px 12px; font-size: 13px; }
  .hero { height: 420px; }
}

/* Print */
@media print {
  .site-header, .primary-nav, .site-footer, .hero, .page-hero { display: none; }
  body { color: #000; }
}
