/* =========================================================
   HYDROCORE — 事例紹介：オルガノイドデジタルツイン
   ========================================================= */

:root {
  --ink: #121822;
  --ink-soft: #3A4453;
  --line: #E1E5EC;
  --line-soft: #EAEDF1;
  --paper: #F3F5F8;
  --paper-alt: #FFFFFF;
  --hero-bg: #E7EAEF;
  --hero-grid: #D3D9E1;
  --dark: #0E141E;
  --dark-line: #23303F;
  --dark-text: #C4CEDB;
  --blue: #2F6BD6;
  --blue-deep: #12305F;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --gap-page: clamp(20px, 5vw, 88px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); text-decoration: underline; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: var(--gap-page);
  padding-right: var(--gap-page);
}

.accent { color: var(--blue); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Media slot (image placeholder handling) ---------- */
.js-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #DCE1E8;
}
.js-media.media--missing {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #7C889A;
  background: repeating-linear-gradient(135deg, #DCE1E8, #DCE1E8 10px, #E7EAEF 10px, #E7EAEF 20px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--hero-bg);
  padding-top: 0;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.7;
  pointer-events: none;
}
.hero__inner { position: relative; padding-top: clamp(28px, 4vw, 40px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(32px, 6vw, 56px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}
.eyebrow__tag { color: var(--blue); }
.eyebrow__rule { width: 40px; height: 1px; background: #C3CAD5; flex: none; }
.eyebrow__label { color: #5B6472; }

.breadcrumb-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px 8px;
}
.breadcrumb { margin: 0; }
.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #5B6472;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: '› ';
  color: #5B6472;
  font-size: 14px;
}
.breadcrumb__item a { color: #5B6472; text-decoration: none; }
.breadcrumb__item a:hover { color: var(--blue); }

.hero__event {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #5B6472;
}
.hero__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.cat-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 2px;
  padding: 3px 8px;
}
.hero__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.24;
  letter-spacing: 0.01em;
}
.hero__sub {
  margin: 22px 0 0;
  font-size: clamp(16px, 3vw, 21px);
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.hero__meta {
  margin: clamp(32px, 6vw, 52px) 0 0;
  padding: 22px 0;
  border-top: 1px solid #C3CAD5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hero__meta div { margin: 0; }
.hero__meta dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #8791A0;
  margin-bottom: 8px;
}
.hero__meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.hero__media {
  position: relative;
  margin: clamp(28px, 5vw, 44px) auto 0;
  width: 75%;
  aspect-ratio: 16 / 9;
}

/* ---------- Section rhythm ---------- */
.section { padding: clamp(56px, 9vw, 88px) 0; }
.section__kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin: 0 0 20px;
}
.section__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.section__title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin: 0;
}
.section__note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #98A2B0;
}

/* ---------- Overview ---------- */
.overview {
  padding-bottom: 0;
  padding-left: var(--gap-page);
  padding-right: var(--gap-page);
}
.overview__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(24px, 4.2vw, 32px);
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.overview__text {
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-wrap: pretty;
}
@media (min-width: 780px) {
  .overview { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
  .overview .section__kicker { padding-top: 10px; }
}

/* ---------- Exhibits ---------- */
.exhibits .section__head { margin-bottom: 0; }
.exhibit {
  padding: clamp(40px, 7vw, 52px) 0;
  border-bottom: 1px solid var(--line);
}
.exhibit__grid { display: grid; gap: 28px; }
.exhibit__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin: 0 0 14px;
}
.exhibit__title {
  margin: 0;
  font-weight: 900;
  font-size: 23px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}
.exhibit__sub {
  margin: 12px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #8A94A2;
}
.exhibit__body {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.exhibit__media { margin: 0; }
.exhibit__media img { height: 260px; }
.exhibit__media figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #98A2B0;
}
.exhibit__media-stack { display: flex; flex-direction: column; gap: 12px; }
.exhibit__media-stack img { height: auto; width: 100%; object-fit: contain; }
.exhibit__media-crop { overflow: hidden; }
.exhibit__media-crop img { margin-top: -50px; }
@media (min-width: 780px) {
  .exhibit__grid { grid-template-columns: 300px 1fr; align-items: start; }
  .exhibit__info { position: sticky; top: 24px; }
  .exhibit__media img { height: 360px; }
  .exhibit__media-stack img { height: auto; }
}

/* ---------- Voices ---------- */
.voices__grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}
@media (min-width: 700px) {
  .voices__grid { grid-template-columns: 1fr 1fr; }
}
.voice {
  margin: 0;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px 34px;
}
.voice__mark {
  font-size: 40px;
  font-weight: 900;
  color: #C9D6EA;
  line-height: 0.6;
  display: block;
}
.voice__quote {
  margin: 14px 0 28px;
  font-size: 16px;
  line-height: 2.0;
  letter-spacing: 0.03em;
  color: var(--ink);
  font-style: normal;
}
.voice__meta {
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.voice__name {
  display: block;
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
}
.voice__role {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- One studio ---------- */
.studio {
  background: var(--dark);
  color: var(--dark-text);
  padding: clamp(64px, 9vw, 88px) 0 clamp(72px, 10vw, 96px);
}
.studio__title {
  margin: 0;
  color: #EEF2F7;
  font-weight: 900;
  font-size: clamp(24px, 4.4vw, 33px);
  line-height: 1.5;
}
.studio__text {
  margin: 28px 0 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.03em;
  text-wrap: pretty;
}
.studio__list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
}
.studio__list li {
  background: var(--dark);
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: #B7C3D3;
}
.studio__list li span { color: #6C7A8E; margin-right: 10px; }
@media (min-width: 700px) {
  .studio__list { grid-template-columns: repeat(3, 1fr); }
}
.studio__closing {
  margin: 44px 0 0;
  font-weight: 700;
  font-size: clamp(18px, 3.2vw, 22px);
  line-height: 1.7;
  color: #EEF2F7;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--blue);
  color: #fff;
  padding: clamp(56px, 9vw, 76px) 0;
}
.cta__grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 700px) {
  .cta__grid { grid-template-columns: 1fr 1fr; }
  .cta__primary { grid-column: 1 / -1; }
}
.cta__primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: #fff;
  color: var(--blue-deep);
  border-radius: 4px;
  font-size: 18px;
  font-weight: 900;
}
.cta__primary:hover { color: var(--blue-deep); text-decoration: none; opacity: 0.9; }
.cta__arrow { font-family: var(--mono); font-size: 22px; }
.cta__secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
}
.cta__secondary:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,0.08); }
.cta__tag {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.8;
  font-weight: 400;
}
.cta__links {
  margin: 26px 0 0;
  font-size: 13px;
  line-height: 2;
  color: #E4ECFA;
}
.cta__links a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.5); }
.cta__links a:hover { color: #fff; }

/* ---------- Overview table ---------- */
.spec { background: var(--paper-alt); }
.spec__list { margin: 0; padding: 0; }
.spec__list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec__list dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #8A94A2;
}
.spec__list dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #242B36;
}
@media (min-width: 700px) {
  .spec__list > div { grid-template-columns: 170px 1fr; gap: 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px var(--gap-page) 56px;
  background: var(--paper-alt);
}
.site-footer p {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #B0B8C4;
}
