/* ==========================================================================
   一般社団法人ライフサイエンスボックス — サイト共通スタイル
   ========================================================================== */

:root {
  --navy: #003964;
  --navy-deep: #002544;
  --blue: #0e33c9;
  --blue-bright: #2b4ce0;
  --bg-soft: #f4f7fb;
  --bg-soft-2: #eaf1fb;
  --line: #dde5f0;
  --text: #1c2733;
  --text-soft: #5b6b7c;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(0, 40, 90, 0.08);
  --maxw: 1120px;
  --header-h: 112px;
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS明朝E",
    "MS PMincho", serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 80px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle::before { top: 13px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 25px; }
.nav-toggle.open::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle.open span { opacity: 0; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
  letter-spacing: 0.02em;
}

.main-nav a:hover { background: var(--bg-soft-2); color: var(--blue); }
.main-nav a.active { color: var(--blue); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: 100px 0 90px;
  background: linear-gradient(160deg, #eef3fc 0%, #f8fafd 55%, #ffffff 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #cfe0f9, transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -140px;
  bottom: -160px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, #dbe6fb, transparent 70%);
}

.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-visual { flex: 1 1 380px; max-width: 440px; }
.hero-visual svg { width: 100%; height: auto; display: block; }

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
  background: rgba(14, 51, 201, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.7;
  color: var(--navy);
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero p.lead {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-inner { flex-direction: column; }
  .hero-visual { max-width: 360px; order: -1; }
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(14, 51, 201, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--blue-bright); }

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* ---------------- Section scaffolding ---------------- */

section.block { padding: 88px 0; }
section.block.alt { background: var(--bg-soft); }
section.block.navy {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #eaf1fb;
}
section.block.navy .section-head { margin-bottom: 20px; }

.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.navy .section-head .eyebrow { color: #8fb0f5; }

.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--navy);
  margin: 0 0 14px;
  font-weight: 800;
}
.navy .section-head h2 { color: #ffffff; }

.section-head p { color: var(--text-soft); margin: 0; }
.navy .section-head p { color: #c4d5f2; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------- News ---------------- */

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.news-date {
  flex: 0 0 110px;
  font-size: 14px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}

.news-tag {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(14, 51, 201, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  height: fit-content;
}

.news-tag.event { color: #0a7a4a; background: rgba(10, 122, 74, 0.09); }
.news-tag.notice { color: var(--text-soft); background: rgba(91, 107, 124, 0.09); }

.news-title {
  flex: 1 1 320px;
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

.news-title a:hover { color: var(--blue); }

.news-more { margin-top: 32px; text-align: center; }

/* ---------------- Cards / Grid ---------------- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bg-soft-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}

.card h3 { font-size: 17px; color: var(--navy); margin: 0 0 10px; font-weight: 700; }
.card p { font-size: 14px; color: var(--text-soft); margin: 0; }

/* pillar card variant */
.pillar {
  text-align: left;
  padding: 0 0 28px;
  overflow: hidden;
}
.pillar h3 { color: var(--blue); font-size: 15.5px; letter-spacing: 0.02em; }
.pillar-banner {
  width: 100%;
  height: 118px;
  margin-bottom: 22px;
  display: block;
}
.pillar-banner svg { width: 100%; height: 100%; display: block; }
.pillar-body { padding: 0 26px; }

/* ---------------- Link cards (home quick nav) ---------------- */

.quick-links { }
.quick-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  min-height: 190px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.quick-link-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #c7d7f5; }
.quick-link-card .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--blue); margin-bottom: 14px; }
.quick-link-card h3 { font-size: 19px; color: var(--navy); margin: 0 0 10px; }
.quick-link-card p { font-size: 13.5px; color: var(--text-soft); margin: 0 0 18px; }
.quick-link-card .arrow { font-size: 14px; font-weight: 700; color: var(--blue); }

/* ---------------- Ecosystem diagram ---------------- */

.ecosystem {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.eco-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34%; height: 34%;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(12px, 1.6vw, 15px);
  text-align: center;
  box-shadow: var(--shadow);
  z-index: 2;
  padding: 6px;
}
.eco-node {
  position: absolute;
  width: 40%; height: 40%;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--blue-bright), var(--blue));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: clamp(13px, 1.8vw, 16px);
  z-index: 1;
}
.eco-node.n1 { top: 0; left: 0; }
.eco-node.n2 { top: 0; right: 0; }
.eco-node.n3 { bottom: 0; right: 0; }
.eco-node.n4 { bottom: 0; left: 0; }

/* ---------------- Table ---------------- */

.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--line); }
.info-table tr:first-child { border-top: 1px solid var(--line); }
.info-table th, .info-table td {
  text-align: left;
  padding: 20px 16px;
  font-size: 15px;
  vertical-align: top;
}
.info-table th {
  width: 190px;
  color: var(--blue);
  font-weight: 700;
  background: var(--bg-soft);
}
.info-table td { color: var(--text); }

/* ---------------- Officers ---------------- */

.officer-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  align-items: flex-start;
}
.officer-avatar {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--bg-soft-2), #d9e6fa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-weight: 800;
  font-size: 22px;
  overflow: hidden;
}
.officer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.officer-role { font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: 0.08em; margin-bottom: 6px; }
.officer-name { font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 10px; }
.officer-bio { font-size: 13.5px; color: var(--text-soft); margin: 0; }

/* ---------------- Message (greeting) ---------------- */

.message-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.message-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--bg-soft-2), #d9e6fa);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.message-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.message-body h3 { color: var(--navy); font-size: 20px; margin: 0 0 4px; }
.message-body .role { color: var(--blue); font-weight: 700; font-size: 13px; margin-bottom: 20px; display: block; }
.message-body p { color: var(--text); font-size: 15px; margin: 0 0 18px; }
.message-body .sign { color: var(--text-soft); font-size: 14px; margin-top: 24px; }

/* ---------------- Disclosure ---------------- */

.disclosure-list { list-style: none; margin: 0; padding: 0; }
.disclosure-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 14px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.disclosure-list .d-date { flex: 0 0 110px; font-size: 14px; color: var(--text-soft); }
.disclosure-list .d-title { flex: 1 1 300px; font-size: 15px; font-weight: 600; }

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-soft);
  background: var(--bg-soft);
}

.notice-box {
  background: var(--bg-soft-2);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 22px 26px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 40px;
}
.notice-box strong { color: var(--navy); }

/* ---------------- Breadcrumb / page header ---------------- */

.page-header {
  padding: 60px 0;
  background: linear-gradient(160deg, #eef3fc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.page-header-copy { flex: 1 1 480px; min-width: 0; }
.page-header-visual { flex: 0 0 180px; width: 180px; height: 180px; }
.page-header-visual svg { width: 100%; height: 100%; display: block; }

.page-header .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.page-header h1 { font-size: clamp(24px, 3.4vw, 34px); color: var(--navy); margin: 0 0 14px; font-weight: 700; }
.page-header p { color: var(--text-soft); margin: 0; }

@media (max-width: 800px) {
  .page-header-inner { flex-direction: column; align-items: flex-start; }
  .page-header-visual { order: -1; width: 130px; height: 130px; }
}

/* ---------------- CTA ---------------- */

.cta {
  border-radius: 20px;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta h2 { font-size: clamp(20px, 2.6vw, 26px); margin: 0 0 14px; }
.cta p { color: #c4d5f2; margin: 0 0 28px; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy-deep);
  color: #b9c8e2;
  padding: 64px 0 28px;
  border-top: 5px solid var(--blue);
}
.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand { flex: 0 0 320px; max-width: 340px; }
.footer-brand img { height: 60px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-org-name { font-size: 15px; font-weight: 700; color: #fff; margin: 0 0 14px; }
.footer-address { font-size: 13px; line-height: 1.9; color: #93a8cc; margin: 0 0 24px; }
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.2s ease;
}
.footer-cta:hover { background: rgba(255, 255, 255, 0.18); }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { flex: 0 0 160px; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: 0.08em; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 13.5px; color: #b9c8e2; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: #7f92b6;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 720px) {
  .footer-layout { flex-direction: column; gap: 36px; }
  .footer-cols { gap: 32px; }
}

/* ---------------- Contact ---------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info .card { margin-bottom: 20px; }
.contact-info .card h3 { font-size: 15px; }
.contact-info .card p { line-height: 1.9; }
.contact-info .card a { color: var(--blue); font-weight: 700; }

.form-embed-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  overflow: hidden;
}

.form-embed-frame {
  width: 100%;
  height: 1400px;
  border: 0;
  display: block;
  border-radius: 6px;
}

.form-fallback {
  text-align: center;
  padding: 10px 4px 16px;
  font-size: 13px;
  color: var(--text-soft);
}
.form-fallback a { color: var(--blue); font-weight: 700; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-embed-frame { height: 1500px; }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .message-block { grid-template-columns: 1fr; }
  .message-portrait { max-width: 180px; }
}

@media (max-width: 720px) {
  .brand img { height: 56px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; padding: 12px 20px 20px; gap: 2px; }
  .main-nav a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .info-table th { width: 120px; font-size: 13px; padding: 16px 10px; }
  .info-table td { padding: 16px 10px; font-size: 14px; }
  .news-date { flex-basis: 90px; }
  .cta { padding: 40px 24px; }
  .officer-card { flex-direction: column; }
  section.block { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
}
