/* ------------------------------------------------
   Division of Hematopoietic Disease Control
   Minimal laboratory-style design
------------------------------------------------ */

:root {
  --ink: #1f2933;
  --ink-deep: #111827;
  --muted: #667085;
  --line: #e7e2d8;
  --bg: #ffffff;
  --soft: #f7f6f3;
  --soft-2: #eeece7;
  --accent: #7c6a4b;
  --accent-dark: #4f432f;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.lab-site {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:hover {
  opacity: 1;
}

.sp-only {
  display: none;
}

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

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

.site-header__inner {
  width: min(1180px, 92%);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.35;
  min-width: 300px;
}

.site-brand__jp {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  font-size: 20px;
  color: var(--ink-deep);
  letter-spacing: 0.08em;
}

.site-brand__en {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-current::after {
  width: 100%;
}

/* Home hero
------------------------------------------------ */

.hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: 52% 48%;
  background: #fbfaf7;
  border-bottom: 1px solid var(--line);
}

.hero__image {
  min-height: 480px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.08) 55%,
      rgba(251, 250, 247, 0.92) 100%
    ),
    url("../img/top/hero_genomics.png") left center / cover no-repeat;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 7vw 44px 5vw;
}

.eyebrow,
.section-kicker,
.lab-card span,
.research-item__number {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.statement h2,
.contact-strip h2,
.section-title,
.lab-card h2,
.research-item h2,
.member-group h3,
.member-name {
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 2;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}



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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--accent);
  color: #fff;
}

.button--secondary {
  background: transparent;
  color: var(--accent-dark);
}

/* Home cards
------------------------------------------------ */

.lab-grid {
  width: min(1180px, 92%);
  margin: 84px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
  box-shadow: var(--shadow);
}

.lab-card {
  min-height: 250px;
  padding: 36px 30px;
  background: #fff;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lab-card:hover {
  background: #fbfaf8;
  transform: translateY(-2px);
}

.lab-card span {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lab-card h2 {
  margin: 0 0 16px;
  font-size: 25px;
  letter-spacing: 0.06em;
}

.lab-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* Statement / Contact strip
------------------------------------------------ */

.statement {
  width: min(920px, 88%);
  margin: 108px auto;
  text-align: center;
}

.statement h2 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.25;
}

.statement p:last-child {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
}

.contact-strip {
  width: min(1180px, 92%);
  margin: 0 auto 96px;
  padding: 42px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.contact-strip h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.contact-strip p {
  margin: 0;
  color: var(--muted);
}

/* Sub pages
------------------------------------------------ */

.page-hero {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 96px 0 66px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.page-main {
  width: min(1180px, 92%);
  margin: 0 auto 96px;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
}

.section-title {
  margin: 0 0 28px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.25;
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.text p {
  margin: 0 0 18px;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

/* Research page
------------------------------------------------ */

.research-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.research-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  padding: 30px 36px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  align-items: start;
  transition: background 0.2s ease;
}

.research-item:link,
.research-item:visited,
.research-item:hover,
.research-item:active {
  color: inherit;
  text-decoration: none;
}

.research-item:hover {
  background: #fbfaf8;
}

.research-item__number {
  margin: 6px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.research-item h2 {
  margin: 0 0 14px;
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

.research-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  text-decoration: none;
}

.research-item h2,
.research-item p,
.research-item div {
  text-decoration: none;
}

/* Members page
------------------------------------------------ */

.member-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.member-group {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 56px;
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
}

.member-group h3 {
  margin: 0;
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
}

.member-rows {
  border-left: 1px solid var(--line);
  padding-left: 42px;
}

.member-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(231, 226, 216, 0.72);
}

.member-row:first-child {
  padding-top: 0;
}

.member-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.member-role {
  margin: 4px 0 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.member-main {
  min-width: 0;
}

.member-name {
  margin: 0;
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
}

.member-jp {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
}

.member-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.info-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  padding: 28px 34px;
  background: #fff;
}

.info-row h2 {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.info-row p {
  margin: 0;
  color: var(--ink);
}

.note-box {
  padding: 32px 36px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.note-box p {
  margin: 0 0 14px;
  color: var(--muted);
}

.note-box p:last-child {
  margin-bottom: 0;
}

.clinical-redirect {
  min-height: 66vh;
  display: flex;
  align-items: center;
}

.page-photo {
  margin: 0 0 48px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.page-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.page-photo figcaption {
  margin: 0;
  padding: 12px 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.site-footer {
  width: 100%;
  margin: 0;
  padding: 34px 0;
  background: #1f2933;
  color: #fff;
}

.site-footer__inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

/* Tablet / small desktop
------------------------------------------------ */

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .site-header__inner {
    width: min(100% - 32px, 1120px);
    min-height: auto;
    padding: 18px 0 14px;
    display: block;
  }

  .site-brand {
    display: block;
    min-width: 0;
    margin-bottom: 14px;
  }

  .sp-only {
    display: inline;
  }

  .site-brand__jp,
  .site-brand__en {
    display: block;
    width: 100%;
  }

  .site-brand__jp {
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
  }

  .site-brand__en {
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.03em;
    white-space: normal;
  }

  .site-nav {
    display: flex;
    gap: 18px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav a {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 48% 52%;
    min-height: auto;
  }

  .hero__image {
    min-height: 480px;
  }

  .hero__content {
    padding: 48px 6vw 48px 4vw;
  }

  .hero h1 {
    font-size: clamp(30px, 8.5vw, 38px);
    line-height: 1.14;
    letter-spacing: -0.015em;
  }

  .lab-grid {
    width: calc(100% - 32px);
    margin: 56px auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .member-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .member-row {
    grid-template-columns: 200px minmax(200px, 1fr) 160px;
    gap: 20px;
  }

  .research-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .statement {
    width: calc(100% - 32px);
    margin: 64px auto;
    padding: 48px 0;
  }

  .statement h2 {
    font-size: 30px;
  }

  .contact-strip {
    width: calc(100% - 32px);
    padding: 36px 24px;
  }

  .site-footer__inner {
    width: calc(100% - 32px);
  }
}

/* Smartphone: stack hero image and text
------------------------------------------------ */

@media (max-width: 768px) {
  .hero {
    display: block;
    min-height: auto;
  }

  .hero__image {
    min-height: 280px;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(251, 250, 247, 0.88) 100%
      ),
      url("../img/top/hero_genomics.png") left center / cover no-repeat;
  }
  .hero__content {
    padding: 48px 6vw 48px 4vw;
  }

  .hero h1 {
    font-size: clamp(30px, 8.5vw, 38px);
    line-height: 1.14;
    letter-spacing: -0.015em;
  }

  .hero__content {
    padding: 42px 6% 48px;
    background: var(--soft);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    text-align: center;
  }
}

/* Smartphone
------------------------------------------------ */

@media (max-width: 640px) {
  .site-header__inner {
    width: calc(100% - 28px);
    padding: 16px 0 12px;
  }

  .site-brand {
    margin-bottom: 12px;
  }

  .site-brand__jp {
    display: block;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    white-space: normal;
  }

  .site-brand__en {
    display: block;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.03em;
    white-space: normal;
  }

  .site-nav {
    gap: 12px 16px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero__image {
    min-height: 220px;
  }

  .hero__content {
    padding: 36px 6% 42px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: clamp(26px, 7.5vw, 34px);
    line-height: 1.16;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .lab-grid {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    margin: 48px auto;
  }

  .lab-card {
    min-height: auto;
    padding: 30px 24px;
  }

  .statement {
    margin: 56px auto;
    text-align: left;
  }

  .contact-strip {
    margin-bottom: 72px;
    padding: 30px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-strip .button {
    width: 100%;
    margin-top: 24px;
    display: block;
  }

  .page-hero {
    padding: 60px 0 42px;
  }

  .page-main {
    margin-bottom: 64px;
  }

  .section {
    padding: 48px 0;
  }

  .member-group {
    display: block;
    padding: 36px 0;
  }

  .member-group h3 {
    margin-bottom: 22px;
    font-size: 24px;
  }

  .member-rows {
    border-left: 0;
    padding-left: 0;
  }

  .member-row {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .member-row:last-child {
    border-bottom: 0;
  }

  .member-role {
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .member-name {
    font-size: 21px;
  }

  .member-jp {
    margin-top: 4px;
    font-size: 14px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px;
  }

  .page-photo {
    margin-bottom: 32px;
  }

  .page-photo img {
    max-height: 300px;
    object-fit: cover;
  }
}

/* Research detail pages
------------------------------------------------ */
.research-detail .page-hero {
  padding-top: 54px;
  padding-bottom: 42px;
}

.research-detail .page-hero h1 {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.35;
}

.research-detail .page-main {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.research-detail .section-title {
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.35;
}

.research-detail .text {
  max-width: none;
}

.research-detail .text p {
  font-size: 15.5px;
  line-height: 2;
}

.research-detail mark {
  background: linear-gradient(transparent 62%, rgba(124, 106, 75, 0.22) 62%);
  color: inherit;
  padding: 0 0.08em;
}

.research-detail .research-photo {
  max-width: none;
  margin: 34px 0 0;
  text-align: center;
}

.research-detail .research-photo img {
  display: inline-block;
  max-width: 100%;
  width: auto;
  height: auto;
}

/* Professor's message
------------------------------------------------ */

.message-page .page-hero {
  padding: 72px 6vw 48px;
}

.message-page .page-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.message-page .page-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.3;
}

.message-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 6vw 0;
}

.message-content {
  max-width: 900px;
}

.message-content p {
  margin: 0 0 30px;
  font-size: 15.5px;
  line-height: 2.05;
  letter-spacing: 0.02em;
}

.message-content .message-signature {
  margin-top: 52px;
  margin-bottom: 0;
  text-align: right;
}

.message-back-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 6vw 96px;
}

.message-back {
  max-width: 900px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(124, 106, 75, 0.18);
}

@media (max-width: 767px) {
  .message-page .page-hero {
    padding: 48px 24px 32px;
  }

  .message-section {
    padding: 44px 24px 0;
  }

  .message-content p {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.95;
  }

  .message-content .message-signature {
    margin-top: 40px;
    text-align: left;
  }

  .message-back-section {
    padding: 22px 24px 72px;
  }

  .message-back {
    padding-top: 24px;
  }
}