@charset "UTF-8";
/* ==========================================================================
   pillars.css
   「学び方」と「生き方」をつくる５つの柱
   支給HTML（tankyu_molecular_scroll_popup_pdf.html）の <style> をそのまま移植。
   LP全体に影響する指定（*, html, body, button）のみ .experience 内に範囲を限定し、
   変更箇所には [LP組み込み] のコメントを付けています。
   ========================================================================== */

:root {
  --text: #2f4050;
  --muted: #667788;
  --line: rgba(91, 111, 132, .32);
  --accent: #7f95ab;
  --scene-h: 100svh;
  --core: #adcf8d;
  --node-1: #6daad3;
  --node-2: #a2a5d1;
  --node-3: #efb075;
  --node-4: #f19aa1;
}

/* [LP組み込み] 元：* { box-sizing } → このブロック内に限定 */
:where(.experience) * { box-sizing: border-box; }
/* [LP組み込み] 元：html { scroll-behavior: smooth; } → style.css 側で指定 */
/* [LP組み込み] 元：body { … } → このブロックの基準スタイルとして適用
   （margin・overflow-x はLP全体に影響するため除外。文字サイズ・行間は元のbody既定値を明示） */
.experience {
  min-width: 320px;
  background: transparent;
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}
:where(.experience) button { font: inherit; }
:where(.experience) button:focus-visible { outline: 2px solid #8fa7bc; outline-offset: 4px; }

.experience { isolation: isolate; }
.scroll-runway { height: 500svh; position: relative; }
.scene {
  height: var(--scene-h);
  min-height: 620px;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: transparent;
}

.artboard {
  position: absolute;
  z-index: 2;
  top: 9%;
  bottom: 10%;
  left: 2%;
  width: 66%;
  perspective: 1200px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.bonds {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  overflow: visible;
  z-index: 1;
}
.bond-glow {
  stroke: rgba(126, 145, 163, .12);
  stroke-width: 8;
  stroke-linecap: round;
}
.bond {
  stroke: url(#bondGradient);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.core {
  position: absolute;
  z-index: 6;
  left: 49%; top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(240px, 21vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  cursor: pointer;
  appearance: none;
  pointer-events: auto;
  font: inherit;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.88), transparent 28%),
    radial-gradient(circle at 74% 80%, rgba(73, 94, 61, .28), transparent 36%),
    radial-gradient(circle at 38% 34%, #d6e9c5 0%, var(--core) 55%, #8db26c 100%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow:
    inset -22px -18px 30px rgba(74, 98, 52, .18),
    inset 12px 12px 22px rgba(255, 255, 255, .34),
    0 18px 46px rgba(71, 89, 61, .18);
}
.core::before,
.node::before {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,.25);
}
.core-label,
.node-num {
  font: 700 10px/1 Arial, sans-serif;
  letter-spacing: .18em;
  color: rgba(55, 71, 86, .78);
  margin-bottom: 12px;
}
.core-title {
  font-size: clamp(42px, 4.4vw, 62px);
  font-weight: 700;
  letter-spacing: .16em;
  text-indent: .16em;
  color: #375146;
  line-height: 1.1;
}
.core, .node {
  transition: box-shadow .2s ease;
}
.core:hover, .node:hover {
  box-shadow:
    inset -13px -17px 24px rgba(55, 65, 81, .16),
    inset 9px 9px 18px rgba(255, 255, 255, .32),
    0 22px 52px rgba(77, 95, 114, .26);
}
.core:focus-visible, .node:focus-visible {
  outline: 3px solid #4b6f87;
  outline-offset: 6px;
}

.node {
  position: absolute;
  z-index: 3;
  left: 49%; top: 50%;
  width: clamp(136px, 12.4vw, 176px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  pointer-events: auto;
  font: inherit;
  padding: 0;
  border: 1px solid rgba(255,255,255,.62);
  box-shadow:
    inset -14px -18px 24px rgba(50, 61, 76, .15),
    inset 9px 9px 18px rgba(255,255,255,.26),
    0 18px 40px rgba(77, 95, 114, .16);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.node-name {
  color: #334557;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 700;
  letter-spacing: .06em;
  text-indent: .06em;
  line-height: 1.35;
}
.node[data-index="0"] {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.88), transparent 28%),
    radial-gradient(circle at 75% 80%, rgba(63, 97, 122, .22), transparent 35%),
    radial-gradient(circle at 38% 34%, #caeaf5 0%, var(--node-1) 55%, #4f90bc 100%);
}
.node[data-index="1"] {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.88), transparent 28%),
    radial-gradient(circle at 75% 80%, rgba(74, 76, 119, .20), transparent 35%),
    radial-gradient(circle at 38% 34%, #d9dbf0 0%, var(--node-2) 55%, #8a8ec0 100%);
}
.node[data-index="2"] {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.9), transparent 28%),
    radial-gradient(circle at 75% 80%, rgba(133, 88, 43, .18), transparent 35%),
    radial-gradient(circle at 38% 34%, #f9dfbf 0%, var(--node-3) 55%, #dea163 100%);
}
.node[data-index="3"] {
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.9), transparent 28%),
    radial-gradient(circle at 75% 80%, rgba(136, 70, 76, .18), transparent 35%),
    radial-gradient(circle at 38% 34%, #f8c9ce 0%, var(--node-4) 55%, #df8089 100%);
}
.node[data-index="2"] .node-name,
.node[data-index="3"] .node-name {
  font-size: clamp(15px, 1.24vw, 18px);
}

.detail {
  position: absolute;
  z-index: 8;
  width: min(28vw, 390px);
  top: 50%;
  right: 5.5vw;
  transform: translateY(-42%);
  min-height: 320px;
}
.detail-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.detail-line {
  width: 36px;
  height: 1px;
  background: #95a8bb;
  flex-shrink: 0;
}
.detail-tag {
  color: #8196aa;
  font: 700 10px Arial, sans-serif;
  letter-spacing: .25em;
}
.detail-card {
  position: absolute;
  inset: 42px 0 auto;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .35s ease, transform .45s ease;
}
.detail-card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.detail-count {
  color: #98a8b9;
  font: 400 12px Arial, sans-serif;
  letter-spacing: .17em;
  margin: 0 0 18px;
}
.detail-count span { opacity: .45; }
.detail h2 {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: .05em;
  margin: 0;
  color: #314457;
  white-space: nowrap;
}
.detail h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(129,150,170,.55);
  margin-top: 24px;
}
.detail p {
  font-size: 14px;
  line-height: 2;
  letter-spacing: .03em;
  color: #5e7083;
  margin: 20px 0 0;
  max-width: 350px;
}

/* 右側のリード文からも共通ポップアップを開く */
.detail-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 168px;
  min-height: 46px;
  margin-top: 30px;
  padding: 11px 19px;
  border: 1px solid #93a6b8;
  border-radius: 100px;
  background: transparent;
  color: #344d63;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.5;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.detail-more::after {
  content: "↗";
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}
.detail-more:hover {
  background: #344d63;
  border-color: #344d63;
  color: #fff;
  transform: translateY(-2px);
}
.detail-more:focus-visible {
  outline: 2px solid #577f9b;
  outline-offset: 3px;
}

.controls {
  position: absolute;
  z-index: 15;
  right: 5.5vw;
  bottom: 50px;
  width: min(28vw, 390px);
  display: flex;
  gap: 17px;
  align-items: center;
}
.nav-label {
  font: 700 10px Arial, sans-serif;
  letter-spacing: .17em;
  color: #8799aa;
  white-space: nowrap;
}
.step-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.step {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 10px 0;
  width: 28px;
  background: transparent;
  position: relative;
}
.step::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: #bac6d1;
  opacity: .64;
  transition: background .3s ease, opacity .3s ease;
}
.step.is-active::before {
  background: #6d87a1;
  opacity: 1;
}

.scroll-hint {
  position: absolute;
  z-index: 12;
  left: 4.6vw;
  bottom: 50px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: #8a9dad;
  font: 700 10px Arial, sans-serif;
  letter-spacing: .22em;
}
.scroll-hint .track {
  position: relative;
  width: 1px;
  height: 44px;
  background: rgba(138,157,173,.25);
  overflow: hidden;
}
.scroll-hint .track::after {
  position: absolute;
  content: "";
  width: 1px;
  height: 21px;
  top: 0;
  left: 0;
  background: #8a9dad;
  animation: flow 2.1s infinite ease-in-out;
}
@keyframes flow {
  0% { transform: translateY(-23px); }
  100% { transform: translateY(58px); }
}

/* 球体・右側のボタンクリックで表示する共通ポップアップ。本文は後から設定する。 */
.topic-modal {
  --modal-accent: #adcf8d;
  width: min(540px, calc(100% - 36px));
  max-height: min(680px, 82dvh);
  overflow-y: auto;
  padding: 0;
  margin: auto;
  border: 1px solid rgba(163, 179, 194, .48);
  border-radius: 20px;
  background: #fff;
  color: #314457;
  box-shadow: 0 25px 85px rgba(28, 42, 54, .2);
}
.topic-modal::backdrop {
  background: rgba(31, 48, 64, .37);
  backdrop-filter: blur(4px);
}
.topic-modal__inner {
  position: relative;
  padding: clamp(28px, 5vw, 52px);
}
.topic-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e3e8ed;
  border-radius: 50%;
  background: #fff;
  color: #536679;
  font-size: 22px;
  cursor: pointer;
}
.topic-modal__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  color: #8193a4;
  font: 700 11px/1.5 Arial, sans-serif;
  letter-spacing: .18em;
}
.topic-modal__dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--modal-accent);
  box-shadow: inset -3px -3px 4px rgba(51, 64, 82, .12);
  flex: 0 0 auto;
}
.topic-modal h2 {
  margin: 0;
  color: #314457;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: .06em;
}
.topic-modal__rule {
  width: 48px;
  height: 3px;
  margin: 24px 0;
  background: var(--modal-accent);
  border-radius: 3px;
}
.topic-modal__content {
  min-height: 70px;
  font-size: 14px;
  line-height: 1.95;
  color: #647486;
}
.topic-modal__placeholder { margin: 0; }


/* PDFの教育内容を3つのポイントに分けて表示するポップアップ */
.topic-modal {
  width: min(1000px, calc(100% - 36px));
  max-height: min(780px, 88dvh);
  border-radius: 22px;
}
.topic-modal__inner { padding: clamp(30px, 4.5vw, 58px); }
.topic-modal__close { z-index: 2; }
.topic-modal__rule { margin: 20px 0 22px; }
.topic-modal__content { min-height: 0; color: #526475; }
.topic-modal__lead {
  margin: 0 0 28px;
  font-size: clamp(14px, 1.5vw, 17px);
  font-weight: 600;
  line-height: 1.85;
  letter-spacing: .025em;
  color: #3f5365;
}
.topic-modal__note {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #758697;
  font-weight: 400;
}
.topic-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
}
.topic-modal__feature {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 22px 20px 24px;
  border: 1px solid #e8edf1;
  border-top: 4px solid var(--modal-accent);
  border-radius: 12px;
  background: #f9fbfc;
}
.topic-modal__feature h3 {
  margin: 0 0 14px;
  color: #30475b;
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .03em;
}
.topic-modal__feature p {
  margin: 0;
  color: #5e7182;
  font-size: 13px;
  line-height: 1.95;
}
@media (max-width: 760px) {
  .topic-modal { width: calc(100% - 26px); max-height: 87dvh; border-radius: 15px; }
  .topic-modal__inner { padding: 28px 20px 26px; }
  .topic-modal__lead { margin-bottom: 20px; padding-right: 8px; }
  .topic-modal__grid { grid-template-columns: 1fr; gap: 12px; }
  .topic-modal__feature { padding: 17px 18px 19px; }
  .topic-modal__feature h3 { margin-bottom: 7px; }
}

@media (max-width: 1100px) {
  .artboard { width: 70%; left: -1%; }
  .detail, .controls { width: 31vw; }
}

@media (max-width: 760px) {
  .scene { min-height: 680px; }
  .scroll-runway { height: 480svh; }
  .artboard {
    left: 0;
    width: 100%;
    top: 6%;
    bottom: 34%;
  }
  .core { width: clamp(176px, 44vw, 220px); padding: 20px; }
  .core-label, .node-num { font-size: 8px; margin-bottom: 8px; }
  .core-title { font-size: clamp(34px, 9vw, 44px); }
  .node {
    width: clamp(108px, 28vw, 138px);
    gap: 8px;
  }
  .node-name { font-size: clamp(14px, 4vw, 18px); }
  .node[data-index="2"] .node-name,
  .node[data-index="3"] .node-name {
    font-size: clamp(12px, 3.5vw, 15px);
  }
  .detail {
    left: 6%;
    right: 6%;
    width: auto;
    top: auto;
    bottom: 78px;
    transform: none;
    min-height: 165px;
  }
  .detail-top { margin-bottom: 7px; gap: 9px; }
  .detail-line { width: 20px; }
  .detail-tag { font-size: 8px; }
  .detail-card { inset: 18px 0 auto; }
  .detail-count { font-size: 10px; margin: 0 0 8px; }
  .detail h2 {
    font-size: 24px;
    white-space: normal;
  }
  .detail h2::after { display: none; }
  .detail p {
    font-size: 11px;
    line-height: 1.8;
    margin-top: 10px;
    max-width: 100%;
  }
  .detail-more {
    margin-top: 16px;
    min-height: 40px;
    min-width: 150px;
    padding: 9px 16px;
    font-size: 11px;
  }
  .controls {
    left: 6%;
    right: 6%;
    bottom: 24px;
    width: auto;
  }
  .nav-label { font-size: 8px; }
  .step-nav { gap: 8px; }
  .scroll-hint {
    left: auto;
    right: 6%;
    bottom: 204px;
    font-size: 8px;
    gap: 8px;
  }
  .scroll-hint .track { height: 28px; }
  .scroll-hint .track::after { height: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  /* [LP組み込み] html の指定は style.css 側で指定 */
  :where(.experience) *, :where(.experience) *::before, :where(.experience) *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
