:root {
  /* Sapporo Medical University communication mark colors */
  --smu-blue-1: #00b4d7;
  --smu-blue-2: #5fdaeb;
  --smu-blue-3: #beffff;
  --smu-red-1: #b90000;
  --smu-red-2: #dc645f;
  --smu-red-3: #ffc8be;

  --ink: #1f2937;
  --muted: #56636f;
  --line: #d8edf2;
  --soft: #f4fcfd;
  --soft-2: #e8f8fb;
  --accent: var(--smu-blue-1);
  --accent-2: #005f73;
  --accent-3: var(--smu-blue-2);
  --accent-red: var(--smu-red-1);
  --accent-red-2: var(--smu-red-2);
  --accent-red-soft: var(--smu-red-3);
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(0, 180, 215, 0.14);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--accent-red);
  color: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 10px;
}

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

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--smu-blue-1), var(--smu-blue-2) 45%, var(--smu-red-2) 70%, var(--smu-red-1));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand {
  display: block;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-small {
  display: block;
  color: var(--accent-red);
  font-size: 0.86rem;
  line-height: 1.35;
}

.brand-main {
  display: block;
  color: var(--accent-2);
  font-weight: 700;
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.35;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-list a {
  color: var(--ink);
  display: block;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.94rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: linear-gradient(135deg, var(--smu-blue-3), #ffffff);
  color: var(--accent-2);
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 14%, rgba(255, 200, 190, 0.62), transparent 34%),
    radial-gradient(circle at 7% 9%, rgba(95, 218, 235, 0.52), transparent 30%),
    linear-gradient(135deg, #f7feff 0%, #e8f8fb 52%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
  padding: 74px 0 68px;
}

.hero-kicker,
.kicker {
  color: var(--accent-red);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--accent-2);
}

.hero-copy {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: #384454;
  max-width: 680px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-red);
  color: var(--white);
  font-weight: 700;
  border: 1px solid var(--accent-red);
}

.button:hover {
  background: #8f0000;
  text-decoration: none;
}

.button.secondary {
  background: var(--white);
  color: var(--accent-2);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.hero-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(219, 227, 238, 0.86);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.concept-visual {
  aspect-ratio: 1 / 0.88;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 18%, rgba(0, 180, 215, 0.20), transparent 34%),
    radial-gradient(circle at 82% 76%, rgba(185, 0, 0, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(0, 180, 215, 0.08), rgba(255, 200, 190, 0.16)),
    var(--white);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-neural-image {
  aspect-ratio: 3 / 1;
  padding: 0;
  background: var(--white);
}

.hero-neural-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.concept-visual-abstract::before,
.concept-visual-abstract::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  filter: blur(0.2px);
  opacity: 0.75;
}

.concept-visual-abstract::before {
  width: 34%;
  height: 34%;
  left: -10%;
  top: -8%;
  background: rgba(0, 180, 215, 0.13);
}

.concept-visual-abstract::after {
  width: 42%;
  height: 42%;
  right: -14%;
  bottom: -12%;
  background: rgba(185, 0, 0, 0.10);
}

.neuro-graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow {
  fill: none;
  stroke-linecap: round;
  stroke-width: 18;
  opacity: 0.72;
}

.flow-blue { stroke: url(#smuBlueRed); }
.flow-red { stroke: rgba(185, 0, 0, 0.48); }
.flow-soft { stroke: url(#smuSoft); stroke-width: 12; opacity: 0.62; }

.network-lines path {
  fill: none;
  stroke: rgba(21, 48, 78, 0.25);
  stroke-width: 2;
}

.network-dots circle {
  fill: var(--white);
  stroke: rgba(21, 48, 78, 0.42);
  stroke-width: 2.2;
  filter: drop-shadow(0 8px 14px rgba(21, 48, 78, 0.12));
}

.panel-caption {
  margin: 16px 2px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 64px 0;
}

.section.compact {
  padding: 42px 0;
}

.section.soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.section h2,
.page-content h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  color: var(--accent-2);
  line-height: 1.25;
}

.section-head p,
.lead {
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(21, 48, 78, 0.06);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 1.14rem;
  line-height: 1.45;
}

.card p {
  margin: 0;
  color: #465364;
}

.card ul,
.feature-list {
  margin: 14px 0 0;
  padding-left: 1.2em;
  color: #465364;
}

.label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--smu-blue-3), var(--smu-red-3));
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 12px;
}

.news-list {
  display: grid;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.news-item {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 18px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-date {
  color: var(--accent-red);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.news-text {
  color: #465364;
}

.page-hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 200, 190, 0.58), transparent 35%),
    linear-gradient(135deg, #f7feff 0%, #e8f8fb 70%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-inner {
  padding: 56px 0 52px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
}

.page-content {
  padding: 56px 0 70px;
}

.prose {
  max-width: 860px;
}

.prose p {
  margin: 0 0 1.15em;
}

.theme-card {
  position: relative;
  overflow: hidden;
}

.theme-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--smu-blue-1), var(--smu-blue-2), var(--smu-red-2), var(--smu-red-1));
}

.callout {
  background: linear-gradient(135deg, var(--accent-2), var(--smu-blue-1) 56%, var(--accent-red));
  color: var(--white);
  border-radius: 28px;
  padding: 32px;
  margin-top: 34px;
}

.callout h2,
.callout h3 {
  color: var(--white);
  margin-top: 0;
}

.callout p {
  color: rgba(255, 255, 255, 0.88);
}

.member-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--soft-2), #ffffff);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent-2);
  font-weight: 800;
}

.member-role {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.member-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--accent-2);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th, td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--soft-2);
  color: var(--accent-2);
}

tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f4fcfd 100%);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 0;
  }

  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .member-card {
    grid-template-columns: 56px 1fr;
  }

  .avatar {
    width: 56px;
    height: 56px;
  }
}

.history-intro {
  margin: 26px 0 34px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 22px 0 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 154px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 40px;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 147px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent-3);
  z-index: 1;
}

.timeline-item.current::before {
  border-color: var(--accent-red);
  background: var(--accent-red);
}

.timeline-date {
  color: var(--accent-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
  padding-top: 12px;
}

.timeline-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 12px 28px rgba(21, 48, 78, 0.06);
}

.timeline-body h3 {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 1.16rem;
}

.timeline-body p {
  margin: 0;
  color: #465364;
}

@media (max-width: 640px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 32px;
  }

  .timeline-item::before {
    left: 1px;
    top: 12px;
  }

  .timeline-date {
    padding-top: 0;
  }
}


/* 2026-06-17 updates: SMU communication mark and news archive */
.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 280px;
}

.smu-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.smu-mark:hover {
  text-decoration: none;
}

.smu-mark img {
  display: block;
  width: min(220px, 26vw);
  height: auto;
}

.brand {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.text-link {
  font-weight: 700;
  color: var(--accent-2);
  white-space: nowrap;
}

.news-text a {
  color: var(--accent-2);
  font-weight: 600;
}

.news-list-full .news-item {
  grid-template-columns: 10rem 1fr;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 16px;
}

code {
  background: var(--soft-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

@media (max-width: 920px) {
  .header-inner {
    align-items: flex-start;
  }

  .brand-group {
    width: 100%;
  }

  .smu-mark img {
    width: 190px;
  }
}

@media (max-width: 620px) {
  .brand-group {
    align-items: flex-start;
    gap: 12px;
  }

  .smu-mark img {
    width: 160px;
  }

  .brand {
    padding-left: 12px;
  }

  .news-item,
  .news-list-full .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section-head {
    align-items: flex-start;
  }
}


/* 2026-06-18 layout refinement */
.hero-minimal .hero-inner.hero-single {
  grid-template-columns: minmax(0, 820px);
  justify-content: start;
}

.hero-title-tight .title-line {
  display: block;
  white-space: nowrap;
}

.page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.page-hero-copy {
  max-width: 820px;
}

.image-frame {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--white);
}

.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame-wide {
  aspect-ratio: 16 / 7;
}

@media (max-width: 900px) {
  .hero-title-tight .title-line {
    white-space: normal;
  }

  .hero-minimal .hero-inner.hero-single {
    grid-template-columns: 1fr;
  }

  .image-frame-wide {
    aspect-ratio: 16 / 9;
  }
}


/* 2026-06-18: research title line-break and refined history page */
.research-title span {
  display: block;
}

@media (min-width: 901px) {
  .research-title span {
    white-space: nowrap;
  }
}

.history-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 200, 190, 0.64), transparent 34%),
    radial-gradient(circle at 8% 10%, rgba(95, 218, 235, 0.42), transparent 32%),
    linear-gradient(135deg, #f7feff 0%, #eefbfe 58%, #ffffff 100%);
}

.history-page {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fdff 100%);
}

.history-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
}

.history-overview h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--accent-2);
}

.history-overview p {
  margin: 0;
  color: #465364;
  font-size: 1.03rem;
}

.history-modern {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 8px 0 0;
}

.history-modern::before {
  content: "";
  position: absolute;
  left: 160px;
  top: 20px;
  bottom: 28px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--smu-blue-1), var(--smu-blue-2) 42%, var(--smu-red-2) 72%, var(--smu-red-1));
  opacity: 0.82;
}

.history-step {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 58px;
  align-items: stretch;
}

.history-step::before {
  content: "";
  position: absolute;
  left: 151px;
  top: 31px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--smu-blue-1);
  box-shadow: 0 0 0 7px rgba(0, 180, 215, 0.12);
  z-index: 1;
}

.history-step.current::before {
  border-color: var(--smu-red-1);
  background: var(--smu-red-1);
  box-shadow: 0 0 0 7px rgba(185, 0, 0, 0.12);
}

.history-year {
  padding-top: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-2);
  letter-spacing: -0.02em;
}

.history-card-modern {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 24px 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,252,253,0.94));
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(21, 48, 78, 0.08);
}

.history-card-modern::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 9px;
  height: 100%;
  background: linear-gradient(180deg, var(--smu-blue-1), var(--smu-red-1));
  opacity: 0.82;
}

.history-step.current .history-card-modern {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 200, 190, 0.42), transparent 32%),
    linear-gradient(135deg, #ffffff, #f7feff);
  border-color: rgba(185, 0, 0, 0.18);
}

.history-date {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-red);
  font-variant-numeric: tabular-nums;
}

.history-card-modern h2 {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.35;
}

.history-card-modern p {
  margin: 0;
  color: #465364;
}

@media (max-width: 760px) {
  .history-overview {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .history-modern::before {
    left: 12px;
  }

  .history-step {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 42px;
  }

  .history-step::before {
    left: 3px;
    top: 15px;
  }

  .history-year {
    padding-top: 0;
  }

  .history-card-modern {
    padding: 20px 22px;
  }
}


/* 2026-06-18 refine research/education hero images */
@media (min-width: 901px) {
  .page-hero-split {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.78fr);
    gap: 36px;
  }

  .page-hero-visual-compact {
    align-self: center;
    max-width: 420px;
    justify-self: end;
    width: 100%;
  }
}

.image-frame-compact {
  aspect-ratio: 4 / 3;
}

.image-caption {
  margin: 14px 4px 0;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .page-hero-visual-compact {
    max-width: 100%;
  }

  .image-frame-compact {
    aspect-ratio: 16 / 10;
  }
}


/* 2026-06-18 final adjustments: history axis alignment and wider research/education visuals */
.history-modern {
  --history-axis-left: 161px;
}

.history-modern::before {
  left: var(--history-axis-left);
  width: 2px;
}

.history-step::before {
  left: calc(var(--history-axis-left) - 10px);
  width: 20px;
  height: 20px;
}

@media (max-width: 760px) {
  .history-modern {
    --history-axis-left: 13px;
  }

  .history-modern::before {
    left: var(--history-axis-left);
  }

  .history-step::before {
    left: calc(var(--history-axis-left) - 9px);
  }
}

@media (min-width: 901px) {
  .page-hero-split {
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: 40px;
  }

  .page-hero-visual-compact {
    max-width: 520px;
  }
}

.image-frame-compact {
  aspect-ratio: 16 / 8.6;
}

.page-hero-visual-compact .image-caption {
  max-width: 42ch;
}

@media (max-width: 900px) {
  .image-frame-compact {
    aspect-ratio: 16 / 9;
  }
}


/* 2026-06-18: education title line-break refinement */
.education-title span {
  display: block;
}

@media (min-width: 901px) {
  .education-title span {
    white-space: nowrap;
  }
}


/* 2026-06-18: image role swap */
@media (min-width: 901px) {
  .hero-minimal .hero-inner.hero-single {
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.9fr);
    gap: 42px;
    align-items: center;
  }

  .top-hero-visual {
    justify-self: end;
    width: 100%;
    max-width: 520px;
  }
}

.image-frame-top {
  aspect-ratio: 16 / 8.6;
}

@media (max-width: 900px) {
  .image-frame-top {
    aspect-ratio: 16 / 9;
    margin-top: 22px;
  }
}


/* 2026-07-01: member page spacing */
.member-subsection {
  margin-top: 56px;
}

@media (max-width: 640px) {
  .member-subsection {
    margin-top: 42px;
  }
}


/* 2026-07-01: education page title should not leave 「考える。」 alone */
.education-title-oneline {
  white-space: nowrap;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  letter-spacing: -0.04em;
}

@media (max-width: 640px) {
  .education-title-oneline {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }
}


/* 2026-07-01: fix education title/image collision */
@media (min-width: 901px) {
  .education-hero-split {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 34px;
  }

  .education-hero-split .page-hero-copy {
    max-width: 760px;
  }

  .education-hero-split .page-hero-visual-compact {
    max-width: 360px;
  }

  .education-title-oneline {
    font-size: clamp(2rem, 3.05vw, 2.95rem);
    line-height: 1.18;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .education-title-oneline {
    white-space: normal;
    word-break: keep-all;
    line-height: 1.2;
  }
}


/* 2026-07-01: history overview title line-break refinement */
.history-overview-title {
  max-width: 13em;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (min-width: 761px) {
  .history-overview-title {
    white-space: nowrap;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
  }
}

@media (max-width: 760px) {
  .history-overview-title {
    max-width: 10em;
    line-height: 1.2;
  }
}


/* 2026-07-01: fix history overview overlap completely */
.history-overview {
  display: block;
  max-width: 900px;
  margin-bottom: 42px;
}

.history-overview > div {
  margin-bottom: 14px;
}

.history-overview-title {
  max-width: none;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  line-height: 1.18;
}

.history-overview p {
  max-width: 760px;
  margin-top: 0;
}

@media (min-width: 761px) {
  .history-overview-title {
    font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  }
}


/* 2026-07-01: careful line-break cleanup after full review */

/* Top: keep research intro short and avoid awkward narrow wrapping. */
.section-head p {
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: normal;
}

/* History: stop heading/copy from competing horizontally; copy is a normal single explanation line on desktop. */
.history-overview {
  display: block;
  max-width: 980px;
}

.history-overview-title {
  max-width: none;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

.history-overview-copy {
  display: block;
  max-width: none;
  margin: 10px 0 0;
  color: #465364;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (min-width: 901px) {
  .history-overview-copy {
    white-space: nowrap;
    font-size: 1.02rem;
  }
}

/* Research: no image caption, keep visual compact. */
.research-title span,
.education-title-oneline,
.hero-title-tight .title-line {
  word-break: keep-all;
  overflow-wrap: normal;
}

/* Avoid lonely short final lines in page leads where possible. */
.lead,
.hero-copy,
.card p,
.prose p {
  word-break: keep-all;
  overflow-wrap: normal;
}

@media (max-width: 640px) {
  .lead,
  .hero-copy,
  .card p,
  .prose p,
  .section-head p,
  .history-overview-copy {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}


/* 2026-07-01: fix card text overflow in Research > 研究の進め方 */
.card h3,
.card p,
.grid .card h3,
.grid .card p {
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (min-width: 641px) {
  .grid.three .card {
    min-width: 0;
  }
}

/* 2026-07-01: English pages */
html[lang="en"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
html[lang="en"] .brand-main { letter-spacing: 0; }
html[lang="en"] .hero h1,
html[lang="en"] .page-hero h1 { letter-spacing: -0.04em; }
html[lang="en"] .hero-copy,
html[lang="en"] .lead,
html[lang="en"] .card p,
html[lang="en"] .prose p,
html[lang="en"] .section-head p {
  word-break: normal;
  overflow-wrap: normal;
}
html[lang="en"] .nav-list a {
  font-size: 0.88rem;
  padding-inline: 9px;
}
html[lang="en"] .research-title span { white-space: normal; }
@media (max-width: 900px) {
  html[lang="en"] .hero-title-tight .title-line { white-space: normal; }
}


/* 2026-07-01: fix JP/EN top hero text-image overlap */
@media (min-width: 1001px) {
  .hero-minimal .hero-inner.hero-single {
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.58fr);
    gap: 56px;
    align-items: center;
  }

  .hero-minimal .hero-inner.hero-single > div:first-child {
    min-width: 0;
    max-width: 720px;
  }

  .top-hero-visual {
    max-width: 390px;
    width: 100%;
    justify-self: end;
  }

  .image-frame-top {
    aspect-ratio: 16 / 10;
  }

  .hero-title-tight .title-line {
    white-space: nowrap;
  }

  html[lang="en"] .hero-title-tight .title-line {
    white-space: normal;
  }

  html[lang="en"] .hero-minimal .hero-inner.hero-single > div:first-child {
    max-width: 680px;
  }

  html[lang="en"] .hero h1 {
    font-size: clamp(2.35rem, 4.2vw, 3.85rem);
  }
}

@media (min-width: 1001px) and (max-width: 1120px) {
  .hero-minimal .hero-inner.hero-single {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
    gap: 34px;
  }

  .top-hero-visual {
    max-width: 320px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.45rem);
  }

  html[lang="en"] .hero h1 {
    font-size: clamp(2rem, 3.8vw, 3rem);
  }
}

@media (max-width: 1000px) {
  .hero-minimal .hero-inner.hero-single {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .top-hero-visual {
    max-width: 560px;
    width: 100%;
    justify-self: start;
    margin-top: 8px;
  }

  .image-frame-top {
    aspect-ratio: 16 / 9;
  }
}


/* 2026-07-01: final verified left-right hero layout (no overlap) */
.hero,
.page-hero {
  overflow-x: clip;
}

.hero-minimal .hero-inner.hero-single,
.page-hero-inner.page-hero-split {
  position: relative;
  isolation: isolate;
}

.hero-minimal .hero-inner.hero-single > div:first-child,
.page-hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: none;
}

.top-hero-visual,
.page-hero-visual-compact {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  /* Japanese/English top page: preserve left-right layout while keeping a safe gutter. */
  .hero-minimal .hero-inner.hero-single {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 28vw, 400px) !important;
    gap: clamp(40px, 5vw, 72px) !important;
    align-items: center;
  }

  .top-hero-visual {
    max-width: 400px !important;
    justify-self: end;
  }

  .image-frame-top {
    aspect-ratio: 16 / 9.5;
  }

  html[lang="ja"] .hero h1 {
    font-size: clamp(2.45rem, 4.35vw, 3.65rem);
    line-height: 1.16;
  }

  html[lang="ja"] .hero-title-tight .title-line {
    display: block;
    white-space: nowrap;
  }

  html[lang="ja"] .hero-copy {
    max-width: 34em;
  }

  /* Research page: image is smaller than the text column; title cannot run into it. */
  .page-hero-inner.page-hero-split {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 380px) !important;
    gap: clamp(44px, 5vw, 72px) !important;
    align-items: center;
  }

  .page-hero-visual-compact {
    max-width: 380px !important;
    justify-self: end;
  }

  .image-frame-compact {
    aspect-ratio: 16 / 9.2;
  }

  html[lang="ja"] .research-title {
    font-size: clamp(2.25rem, 4vw, 3.35rem);
    line-height: 1.16;
  }

  html[lang="ja"] .research-title span {
    display: block;
    white-space: nowrap;
  }

  html[lang="ja"] .page-hero-copy .lead {
    max-width: 35em;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .hero-minimal .hero-inner.hero-single {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 38px !important;
  }

  .top-hero-visual {
    max-width: 300px !important;
  }

  html[lang="ja"] .hero h1 {
    font-size: clamp(2.15rem, 4.1vw, 2.8rem);
  }

  .page-hero-inner.page-hero-split {
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 40px !important;
  }

  .page-hero-visual-compact {
    max-width: 300px !important;
  }

  html[lang="ja"] .research-title {
    font-size: clamp(2.05rem, 3.8vw, 2.75rem);
  }
}

@media (max-width: 900px) {
  .hero-minimal .hero-inner.hero-single,
  .page-hero-inner.page-hero-split {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .top-hero-visual,
  .page-hero-visual-compact {
    justify-self: start;
    max-width: min(100%, 560px) !important;
  }

  html[lang="ja"] .hero-title-tight .title-line,
  html[lang="ja"] .research-title span {
    white-space: normal;
  }
}

/* 2026-07-01: English top is longer; stack slightly earlier to avoid crowding. */
@media (max-width: 1000px) {
  html[lang="en"] .hero-minimal .hero-inner.hero-single {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  html[lang="en"] .top-hero-visual {
    justify-self: start;
    max-width: min(100%, 560px) !important;
  }
}
