/*
  伊藤真理研究室 トップページ専用CSS
  トップページ専用の独立したスタイルシートです。
*/

:root {
  --home-primary: #0b4f9c;
  --home-primary-dark: #07376d;
  --home-primary-soft: #eaf2fc;
  --home-ink: #17243a;
  --home-muted: #586678;
  --home-line: #d8e1ec;
  --home-surface: #ffffff;
  --home-surface-alt: #f4f7fb;
  --home-shadow: 0 18px 45px rgba(19, 48, 83, 0.10);
  --home-radius-lg: 22px;
  --home-radius-md: 15px;
  --home-shell: 1180px;
}

html {
  scroll-behavior: smooth;
}

body.home-page {
  min-width: 0;
  margin: 0;
  color: var(--home-ink);
  background: var(--home-surface);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.8;
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

.home-page button,
.home-page input,
.home-page select,
.home-page textarea {
  font: inherit;
}

.home-page figure {
  margin: 0;
}

.home-page img {
  max-width: 100%;
  height: auto;
}

.home-page a {
  text-underline-offset: 0.18em;
}

.home-page #container {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: hidden;
  background: var(--home-surface);
}

.home-shell {
  width: min(calc(100% - 48px), var(--home-shell));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  color: #ffffff;
  background: var(--home-primary-dark);
  border-radius: 8px;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.home-page .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: auto;
  padding: 0;
  color: var(--home-ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 225, 236, 0.9);
  box-shadow: 0 5px 24px rgba(19, 48, 83, 0.05);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--home-shell));
  min-height: 82px;
  margin-inline: auto;
  gap: 28px;
}

.home-page #logo {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  line-height: 1.25;
}

.home-page #logo a {
  display: grid;
  gap: 2px;
  color: var(--home-ink);
  text-decoration: none;
}

.site-title {
  font-size: 1.16rem;
  font-weight: 780;
  letter-spacing: 0.03em;
}

.site-title-en {
  color: var(--home-muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.home-page #menubar_hdr {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--home-line);
  border-radius: 9px;
  background: #ffffff;
  cursor: pointer;
}

.home-page #menubar_hdr span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--home-ink);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 901px) {
  .home-page #menubar {
    position: static;
    display: block !important;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    overflow: visible;
  }

  .home-page #menubar nav {
    margin: 0;
    padding: 0;
  }

  .home-page #menubar nav > ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .home-page #menubar nav > ul > li {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .home-page #menubar nav > ul > li > a {
    position: relative;
    display: block;
    padding: 12px 11px;
    color: var(--home-ink);
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
  }

  .home-page #menubar nav > ul > li > a::after {
    position: absolute;
    right: 11px;
    bottom: 6px;
    left: 11px;
    height: 2px;
    content: "";
    background: var(--home-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
  }

  .home-page #menubar nav > ul > li > a:hover::after,
  .home-page #menubar nav > ul > li > a:focus-visible::after,
  .home-page #menubar nav > ul > li > a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

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

.home-page #contents,
.home-page main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.home-hero {
  position: relative;
  padding: 74px 0 82px;
  background:
    radial-gradient(circle at 82% 20%, rgba(104, 159, 219, 0.18), transparent 32%),
    linear-gradient(135deg, #f7faff 0%, #ffffff 56%, #edf4fc 100%);
  overflow: hidden;
}

.home-hero::before {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 420px;
  height: 420px;
  content: "";
  border: 1px solid rgba(11, 79, 156, 0.12);
  border-radius: 50%;
}

.home-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(42px, 6vw, 82px);
}

.home-kicker,
.home-section__label {
  margin: 0 0 12px;
  color: var(--home-primary);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 0 0 26px;
  color: var(--home-ink);
  font-size: clamp(2.15rem, 4.1vw, 3.55rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.24;
}

.home-hero h1 span {
  display: block;
  white-space: nowrap;
}

.home-hero__lead {
  max-width: 740px;
  margin: 0 0 16px;
  color: #2c3d52;
  font-size: clamp(1.03rem, 1.4vw, 1.18rem);
  font-weight: 560;
  line-height: 1.9;
}

.home-hero__text {
  max-width: 740px;
  margin: 0;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.95;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.home-button:hover,
.home-button:focus-visible {
  transform: translateY(-2px);
}

.home-button--primary {
  color: #ffffff;
  background: var(--home-primary);
  box-shadow: 0 10px 24px rgba(11, 79, 156, 0.24);
}

.home-button--primary:hover,
.home-button--primary:focus-visible {
  color: #ffffff;
  background: var(--home-primary-dark);
  box-shadow: 0 14px 30px rgba(11, 79, 156, 0.3);
}

.home-button--secondary {
  color: var(--home-primary);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(11, 79, 156, 0.45);
}

.home-button--secondary:hover,
.home-button--secondary:focus-visible {
  color: var(--home-primary-dark);
  background: #ffffff;
  border-color: var(--home-primary);
}

.home-profile {
  display: grid;
  gap: 2px;
  margin-top: 30px;
  padding-left: 17px;
  color: var(--home-muted);
  font-size: 0.9rem;
  border-left: 3px solid var(--home-primary);
}

.home-profile strong {
  color: var(--home-ink);
  font-size: 1rem;
}

.home-hero__media {
  position: relative;
  min-width: 0;
  margin: 0;
}

.home-hero__media::before {
  position: absolute;
  inset: 24px -24px -24px 24px;
  z-index: 0;
  content: "";
  background: var(--home-primary-soft);
  border-radius: var(--home-radius-lg);
}

.home-hero__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center top;
  border: 8px solid #ffffff;
  border-radius: var(--home-radius-lg);
  box-shadow: var(--home-shadow);
}

.home-hero__media img.home-hero__photo--lab {
  object-position: center 58%;
}

/* Sections -------------------------------------------------- */

.home-section {
  padding: 88px 0;
}

.home-section--muted {
  background: var(--home-surface-alt);
}

.home-section__heading {
  max-width: 740px;
  margin: 0 0 38px;
}

.home-section__heading h2,
.contact-panel h2 {
  margin: 0 0 14px;
  padding: 0;
  color: var(--home-ink);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.35;
  background: none;
  border: 0;
}

.home-section__heading h2::before,
.home-section__heading h2::after,
.contact-panel h2::before,
.contact-panel h2::after {
  display: none;
}

.home-section__heading > p:last-child {
  margin: 0;
  color: var(--home-muted);
  font-size: 1rem;
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.research-card {
  position: relative;
  min-height: 245px;
  padding: 34px 28px 28px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-md);
  box-shadow: 0 12px 30px rgba(19, 48, 83, 0.05);
  overflow: hidden;
}

.research-card::after {
  position: absolute;
  right: -32px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  content: "";
  background: var(--home-primary-soft);
  border-radius: 50%;
}

.research-card__number {
  display: inline-block;
  margin-bottom: 35px;
  color: var(--home-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.research-card h3,
.featured-card h3,
.audience-card h3,
.news-item h3 {
  margin: 0;
  padding: 0;
  color: var(--home-ink);
  background: none;
  border: 0;
}

.research-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 13px;
  font-size: 1.28rem;
  line-height: 1.55;
}

.research-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--home-muted);
}

.research-grid--four .research-card {
  min-height: 230px;
}


.home-section__more {
  margin: 28px 0 0;
  text-align: right;
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--home-primary);
  font-weight: 700;
  text-decoration: none;
}

.home-text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.home-text-link:hover::after,
.home-text-link:focus-visible::after {
  transform: translateX(4px);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.featured-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-md);
  box-shadow: 0 12px 32px rgba(19, 48, 83, 0.07);
  overflow: hidden;
}

.featured-card__visual {
  display: grid;
  min-height: 164px;
  place-items: center;
  color: var(--home-primary);
  background:
    linear-gradient(135deg, rgba(234, 242, 252, 0.95), rgba(247, 250, 255, 0.96));
  border-bottom: 1px solid var(--home-line);
}

.featured-card__visual svg {
  width: 78px;
  height: 78px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.featured-card__tag {
  margin: 0 0 9px;
  color: var(--home-primary);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.04em;
}

.featured-card h3 {
  margin-bottom: 13px;
  font-size: 1.25rem;
  line-height: 1.5;
}

.featured-card__body > p:not(.featured-card__tag) {
  margin: 0 0 22px;
  color: var(--home-muted);
}

.featured-card .home-text-link {
  margin-top: auto;
}

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

.home-news-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 0.64fr);
  align-items: start;
  gap: clamp(36px, 7vw, 88px);
}

.home-section__heading--side {
  position: sticky;
  top: 116px;
  margin-bottom: 0;
}

.news-list {
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-md);
  box-shadow: 0 12px 30px rgba(19, 48, 83, 0.05);
}

.news-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 25px 28px;
}

.news-item + .news-item {
  border-top: 1px solid var(--home-line);
}

.news-item__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.news-item time {
  color: var(--home-muted);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.news-category {
  display: inline-block;
  padding: 3px 9px;
  color: var(--home-primary-dark);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.5;
  background: var(--home-primary-soft);
  border-radius: 999px;
}

.news-item h3 {
  align-self: center;
  font-size: 1rem;
  line-height: 1.7;
}

.news-item h3 a {
  color: var(--home-ink);
  text-decoration: none;
}

.news-item h3 a:hover,
.news-item h3 a:focus-visible {
  color: var(--home-primary);
  text-decoration: underline;
}

/* Audience -------------------------------------------------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.audience-card {
  padding: 30px 28px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-top: 4px solid var(--home-primary);
  border-radius: var(--home-radius-md);
}

.audience-card__label {
  margin: 0 0 10px;
  color: var(--home-primary);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audience-card h3 {
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.audience-card > p:not(.audience-card__label) {
  margin: 0 0 22px;
  color: var(--home-muted);
}

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

.home-section--contact {
  padding-top: 36px;
  background: var(--home-surface);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: 44px;
  padding: clamp(36px, 5vw, 60px);
  color: #ffffff;
  background:
    linear-gradient(135deg, var(--home-primary-dark), var(--home-primary));
  border-radius: var(--home-radius-lg);
  box-shadow: var(--home-shadow);
}

.home-section__label--light {
  color: #dcecff;
}

.contact-panel h2 {
  color: #ffffff;
}

.contact-panel p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-links {
  display: grid;
  gap: 11px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 15px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 9px;
}

.contact-link::after {
  content: "↗";
  font-size: 0.9rem;
}

.contact-link--email::after {
  content: "→";
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--home-primary-dark);
  background: #ffffff;
}

.home-page #footermenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  width: min(calc(100% - 48px), var(--home-shell));
  margin: 70px auto 0;
  padding: 24px 0;
  list-style: none;
  border-top: 1px solid var(--home-line);
}

.home-page #footermenu li {
  margin: 0;
  padding: 0;
}

.home-page #footermenu a {
  color: var(--home-muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.home-page #footermenu a:hover,
.home-page #footermenu a:focus-visible {
  color: var(--home-primary);
  text-decoration: underline;
}

.home-page footer {
  margin: 0;
  padding: 22px 24px 34px;
  color: var(--home-muted);
  text-align: center;
  background: var(--home-surface);
}

.home-page footer a {
  color: inherit;
}

.home-page .pagetop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-page .pagetop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home-page .pagetop a {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #ffffff;
  font-size: 1.2rem;
  text-decoration: none;
  background: var(--home-primary);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(11, 79, 156, 0.24);
}

/* Focus ----------------------------------------------------- */

.home-page a:focus-visible,
.home-page [role="button"]:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 3px;
}

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

@media (max-width: 1060px) {
  .site-header__inner {
    width: min(calc(100% - 32px), var(--home-shell));
    gap: 16px;
  }


  .home-page #menubar nav > ul > li > a {
    padding-inline: 8px;
    font-size: 0.87rem;
  }

  .home-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }
}

@media (max-width: 900px) {
  .home-shell {
    width: min(calc(100% - 36px), var(--home-shell));
  }

  .site-header__inner {
    position: relative;
    min-height: 70px;
  }

  .home-page #menubar_hdr {
    display: block;
  }

  .home-page #menubar {
    position: absolute;
    top: calc(100% + 1px);
    right: -18px;
    left: -18px;
    display: none;
    width: auto;
    max-height: calc(100vh - 72px);
    margin: 0;
    padding: 10px 18px 18px;
    overflow-y: auto;
    color: var(--home-ink);
    background: #ffffff;
    border-bottom: 1px solid var(--home-line);
    box-shadow: 0 18px 34px rgba(19, 48, 83, 0.14);
  }

  .home-page .site-header.is-menu-open #menubar {
    display: block;
  }

  .home-page #menubar nav,
  .home-page #menubar nav > ul {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .home-page #menubar nav > ul {
    display: grid;
    list-style: none;
  }

  .home-page #menubar nav > ul > li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .home-page #menubar nav > ul > li:last-child {
    border-bottom: 0;
  }

  .home-page #menubar nav > ul > li > a {
    display: block;
    padding: 13px 4px;
    color: var(--home-ink);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    background: transparent;
  }

  .home-page #menubar nav > ul > li > a:hover,
  .home-page #menubar nav > ul > li > a:focus-visible,
  .home-page #menubar nav > ul > li > a[aria-current="page"] {
    color: var(--home-primary);
  }

  .home-page .site-header.is-menu-open #menubar_hdr span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .home-page .site-header.is-menu-open #menubar_hdr span:nth-child(2) {
    opacity: 0;
  }

  .home-page .site-header.is-menu-open #menubar_hdr span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-title {
    font-size: 1.02rem;
  }

  .site-title-en {
    font-size: 0.62rem;
  }

  .home-hero {
    padding: 54px 0 68px;
  }

  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__content {
    max-width: 760px;
  }

  .home-hero__media {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .research-grid,
  .featured-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .research-card {
    min-height: auto;
  }

  .home-news-layout {
    grid-template-columns: 1fr;
  }

  .home-section__heading--side {
    position: static;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .home-shell {
    width: min(calc(100% - 28px), var(--home-shell));
  }

  .home-section {
    padding: 68px 0;
  }

  .home-hero h1 {
    font-size: clamp(1.82rem, 8.6vw, 3rem);
  }

  .home-actions {
    display: grid;
  }

  .home-button {
    width: 100%;
  }

  .home-hero__media::before {
    inset: 14px -10px -14px 10px;
  }

  .home-hero__media img {
    border-width: 5px;
  }

  .home-section__heading {
    margin-bottom: 28px;
  }

  .research-card,
  .featured-card__body,
  .audience-card {
    padding: 24px 22px;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px;
  }

  .news-item__meta {
    flex-direction: row;
    align-items: center;
  }

  .contact-panel {
    padding: 30px 22px;
    border-radius: 16px;
  }

  .contact-link {
    overflow-wrap: anywhere;
  }

  .home-page #footermenu {
    width: calc(100% - 28px);
    margin-top: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* 2026-08-16 requested revisions --------------------------- */

.news-item__text {
  align-self: center;
  margin: 0;
  color: var(--home-ink);
  font-size: 1rem;
  line-height: 1.75;
}

.news-item__text a {
  color: var(--home-primary);
  font-weight: 700;
}

.audience-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}

.home-contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  gap: 22px;
}

.contact-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding: clamp(34px, 5vw, 54px);
}

.contact-link--email {
  overflow-wrap: anywhere;
}

.profiles-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 25px;
  padding: clamp(34px, 5vw, 54px);
  background: var(--home-surface-alt);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-lg);
  box-shadow: 0 12px 30px rgba(19, 48, 83, 0.06);
}

.profiles-panel h2 {
  margin: 0;
  padding: 0;
  color: var(--home-ink);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.35;
  background: none;
  border: 0;
}

.profiles-panel h2::before,
.profiles-panel h2::after {
  display: none;
}

.profile-links {
  display: grid;
  gap: 10px;
}

.profile-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 11px 15px;
  color: var(--home-ink);
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 9px;
}

.profile-link:hover,
.profile-link:focus-visible {
  color: var(--home-primary);
  border-color: rgba(11, 79, 156, 0.5);
  box-shadow: 0 8px 18px rgba(19, 48, 83, 0.07);
}

/* Message page --------------------------------------------- */

.message-hero {
  padding: 76px 0 64px;
  background:
    radial-gradient(circle at 82% 20%, rgba(104, 159, 219, 0.18), transparent 32%),
    linear-gradient(135deg, #f7faff 0%, #ffffff 56%, #edf4fc 100%);
}

.message-hero h1 {
  margin: 0 0 18px;
  color: var(--home-ink);
  font-size: clamp(2.15rem, 4.1vw, 3.45rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.3;
}

.message-hero > .home-shell > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--home-muted);
  font-size: 1.06rem;
}

.message-content {
  padding: 84px 0;
}

.message-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: start;
  gap: 24px;
}

.message-card {
  scroll-margin-top: 110px;
  padding: clamp(30px, 4vw, 48px);
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-top: 5px solid var(--home-primary);
  border-radius: var(--home-radius-lg);
  box-shadow: 0 12px 32px rgba(19, 48, 83, 0.07);
}

.message-card--company {
  border-top-color: var(--home-primary-dark);
}

.message-card__label {
  margin: 0 0 9px;
  color: var(--home-primary);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-card h2,
.message-contact__panel h2 {
  margin: 0 0 22px;
  padding: 0;
  color: var(--home-ink);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 750;
  line-height: 1.45;
  background: none;
  border: 0;
}

.message-card h2::before,
.message-card h2::after,
.message-contact__panel h2::before,
.message-contact__panel h2::after {
  display: none;
}

.message-card p:not(.message-card__label) {
  margin: 0 0 18px;
  color: var(--home-muted);
  line-height: 1.95;
}

.message-card p:last-child {
  margin-bottom: 0;
}

.message-contact {
  padding: 0 0 76px;
}

.message-contact__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: 34px;
  padding: clamp(32px, 5vw, 54px);
  color: #ffffff;
  background: linear-gradient(135deg, var(--home-primary-dark), var(--home-primary));
  border-radius: var(--home-radius-lg);
  box-shadow: var(--home-shadow);
}

.message-contact__panel h2 {
  margin-bottom: 0;
  color: #ffffff;
}

@media (max-width: 900px) {
  .home-contact-grid,
  .message-grid,
  .message-contact__panel {
    grid-template-columns: 1fr;
  }

  .profiles-panel,
  .contact-panel {
    padding: 34px 28px;
  }
}

@media (max-width: 680px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .message-hero {
    padding: 54px 0 46px;
  }

  .message-content {
    padding: 58px 0;
  }

  .message-card,
  .message-contact__panel {
    padding: 28px 22px;
  }
}


/* 2026-08-16 page expansion and contact revision ----------- */

.featured-more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.email-reveal-button {
  width: 100%;
  min-height: 46px;
  padding: 10px 15px;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  text-align: left;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 9px;
  cursor: pointer;
}

.email-reveal-button:hover,
.email-reveal-button:focus-visible {
  color: var(--home-primary-dark);
  background: #ffffff;
}

.email-output,
.contact-email-fallback {
  margin: 0;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 0.94rem;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 8px;
}

.email-output[hidden] {
  display: none;
}

/* Shared subpage hero -------------------------------------- */

.page-hero {
  padding: 76px 0 68px;
  background:
    radial-gradient(circle at 84% 18%, rgba(104, 159, 219, 0.18), transparent 32%),
    linear-gradient(135deg, #f7faff 0%, #ffffff 56%, #edf4fc 100%);
}

.page-hero--compact {
  padding-bottom: 60px;
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  align-items: end;
  gap: clamp(40px, 7vw, 88px);
}

.page-hero h1 {
  margin: 0 0 18px;
  padding: 0;
  color: var(--home-ink);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.25;
  background: none;
  border: 0;
}

.page-hero h1::before,
.page-hero h1::after {
  display: none;
}

.page-hero__lead {
  margin: 0 0 14px;
  color: #2c3d52;
  font-size: clamp(1.14rem, 2vw, 1.42rem);
  font-weight: 680;
  line-height: 1.75;
}

.page-hero__text {
  max-width: 800px;
  margin: 0;
  color: var(--home-muted);
  line-height: 1.95;
}

.research-page-note {
  margin: 0 0 28px;
  padding: 14px 18px;
  color: var(--home-muted);
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-sm);
}

.page-jump-nav {
  display: grid;
  gap: 9px;
}

.page-jump-nav a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px;
  color: var(--home-ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--home-line);
  border-radius: 10px;
}

.page-jump-nav a span {
  color: var(--home-primary);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.page-jump-nav a:hover,
.page-jump-nav a:focus-visible {
  color: var(--home-primary);
  border-color: rgba(11, 79, 156, 0.48);
  box-shadow: 0 9px 22px rgba(19, 48, 83, 0.07);
}

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

.research-page-content {
  padding: 88px 0;
}

.research-theme-section {
  scroll-margin-top: 108px;
  padding: clamp(36px, 5vw, 58px);
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-lg);
  box-shadow: 0 14px 36px rgba(19, 48, 83, 0.07);
}

.research-theme-section + .research-theme-section {
  margin-top: 30px;
}

.research-theme-section--alt {
  background: var(--home-surface-alt);
}

.research-theme-header {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 34px;
}

.research-theme-number {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--home-primary);
  border-radius: 18px;
}

.research-theme-kicker,
.cv-section-label {
  margin: 0 0 8px;
  color: var(--home-primary);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.research-theme-header h2,
.collaboration-card h3,
.cv-summary-card h2,
.cv-section h2 {
  margin: 0;
  padding: 0;
  color: var(--home-ink);
  background: none;
  border: 0;
}

.research-theme-header h2::before,
.research-theme-header h2::after,
.collaboration-card h3::before,
.collaboration-card h3::after,
.cv-summary-card h2::before,
.cv-summary-card h2::after,
.cv-section h2::before,
.cv-section h2::after {
  display: none;
}

.research-theme-header h2 {
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.45;
}

.research-theme-intro {
  max-width: 880px;
  margin: 17px 0 0;
  color: var(--home-muted);
  line-height: 1.95;
}

.research-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.research-facts > div {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 12px;
}

.research-theme-section:not(.research-theme-section--alt) .research-facts > div {
  background: var(--home-surface-alt);
}

.research-facts dt {
  color: var(--home-primary);
  font-weight: 800;
}

.research-facts dd {
  margin: 0;
  color: var(--home-muted);
}

.research-example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.research-example-card {
  padding: 22px 24px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-left: 4px solid var(--home-primary);
  border-radius: 11px;
}

.research-example-card h3 {
  margin: 0 0 9px;
  padding: 0;
  color: var(--home-ink);
  font-size: 1.06rem;
  background: none;
  border: 0;
}

.research-example-card h3::before,
.research-example-card h3::after {
  display: none;
}

.research-example-card p {
  margin: 0;
  color: var(--home-muted);
}

.research-method-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.research-method-flow > div {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 12px;
}

.research-method-flow span {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  place-items: center;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--home-primary);
  border-radius: 50%;
}

.research-method-flow strong {
  display: block;
  margin-bottom: 8px;
}

.research-method-flow p {
  margin: 0;
  color: var(--home-muted);
}

.collaboration-section {
  padding: 84px 0;
  background: var(--home-surface-alt);
}

.collaboration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 22px;
}

.collaboration-card {
  padding: clamp(30px, 4vw, 44px);
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-lg);
  box-shadow: 0 12px 30px rgba(19, 48, 83, 0.06);
}

.collaboration-card h3 {
  margin-bottom: 24px;
  font-size: 1.45rem;
}

.collaboration-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collaboration-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--home-line);
}

.collaboration-list li:first-child {
  border-top: 1px solid var(--home-line);
}

.collaboration-list time {
  color: var(--home-muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

.collaboration-list small {
  color: var(--home-muted);
}

.collaboration-note {
  margin: 16px 0 0;
  color: var(--home-muted);
}

.researchmap-cta {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--home-line);
}

.researchmap-cta p {
  margin: 0 0 18px;
  color: var(--home-muted);
}

/* CV page --------------------------------------------------- */

.cv-content {
  padding: 84px 0;
}

.cv-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: stretch;
  gap: 24px;
  margin-bottom: 30px;
}

.cv-photo {
  overflow: hidden;
  background: var(--home-surface-alt);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-lg);
  box-shadow: 0 12px 30px rgba(19, 48, 83, 0.06);
}

.cv-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.cv-photo figcaption {
  padding: 10px 16px;
  color: var(--home-muted);
  font-size: 0.84rem;
}

.cv-summary-card,
.cv-section {
  padding: clamp(30px, 4vw, 46px);
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-lg);
  box-shadow: 0 12px 30px rgba(19, 48, 83, 0.06);
}

.cv-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cv-summary-card h2,
.cv-section h2 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.45;
}

.cv-name {
  margin: 32px 0 7px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 760;
}

.cv-degree {
  margin: 0;
  color: var(--home-muted);
  font-size: 1.08rem;
}

.cv-section + .cv-section {
  margin-top: 24px;
}

.cv-section-heading {
  margin-bottom: 28px;
}

.career-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--home-line);
}

.career-item:first-child {
  border-top: 1px solid var(--home-line);
}

.career-year {
  color: var(--home-primary);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.career-item strong {
  display: block;
  line-height: 1.75;
}

.career-item p {
  margin: 8px 0 0;
  color: var(--home-muted);
  line-height: 1.85;
}

.qualification-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qualification-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--home-line);
}

.qualification-list li:first-child {
  border-top: 1px solid var(--home-line);
}

.qualification-list time {
  color: var(--home-primary);
  font-weight: 750;
}

.cv-section--links > p {
  margin: 0 0 22px;
  color: var(--home-muted);
}

.cv-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

@media (max-width: 900px) {
  .page-hero__grid,
  .collaboration-grid,
  .cv-profile-grid {
    grid-template-columns: 1fr;
  }

  .research-page-note {
  margin: 0 0 28px;
  padding: 14px 18px;
  color: var(--home-muted);
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius-sm);
}

.page-jump-nav {
    margin-top: 6px;
  }

  .research-facts,
  .research-example-grid {
    grid-template-columns: 1fr;
  }

  .research-method-flow {
    grid-template-columns: 1fr;
  }

  .cv-link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-hero {
    padding: 54px 0 48px;
  }

  .research-page-content,
  .cv-content,
  .collaboration-section {
    padding: 58px 0;
  }

  .research-theme-section,
  .collaboration-card,
  .cv-summary-card,
  .cv-section {
    padding: 28px 22px;
  }

  .research-theme-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .research-theme-number {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .research-facts > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 18px;
  }

  .collaboration-list li,
  .career-item,
  .qualification-list li {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .collaboration-list time {
    white-space: normal;
  }

  .featured-more .home-button {
    width: 100%;
  }
}


/* 2026-08-16 v4 revisions ---------------------------------- */

.career-link {
  color: var(--home-ink);
  text-decoration-color: rgba(11, 79, 156, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.career-link:hover,
.career-link:focus-visible {
  color: var(--home-primary);
  text-decoration-color: currentColor;
}

.profile-link--brand {
  min-height: 78px;
  padding: 12px 14px;
}

.profile-brand {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.profile-logo-frame {
  display: grid;
  width: 136px;
  height: 60px;
  place-items: center;
  padding: 4px 7px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(19, 48, 83, 0.12);
  border-radius: 7px;
}

.profile-logo-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.profile-logo-frame--square img {
  width: 40px;
  height: 40px;
}

.profile-logo-frame--wide {
  padding-inline: 8px;
}

.profile-logo-frame--tall {
  height: 74px;
  padding: 6px;
}

.profile-brand__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-link__external {
  color: var(--home-primary);
  font-size: 0.95rem;
}

@media (max-width: 620px) {
  .profile-brand {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .profile-logo-frame {
    width: 104px;
    height: 48px;
    padding: 4px 5px;
  }

  .profile-logo-frame--square img {
    width: 34px;
    height: 34px;
  }

  .profile-logo-frame--tall {
    height: 60px;
  }
}
