/* ── TEAM MEMBER PAGES ── shared styles for Octagram individual profiles */

:root {
  --node-color: #f0879e;
  --node-color2: #ffc0d2;
  --white: #fefcf9;
  --cream: #fdf6ef;
  --blush: #fff5f0;
  --sakura: #ffc0d2;
  --sakura-deep: #f0879e;
  --gold: #d9b45a;
  --text-primary: #2a1f2d;
  --text-secondary: #5a4a5e;
  --text-muted: #9a8a9e;
  --border: #f0e8f0;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', system-ui, sans-serif;
  background: var(--white);
  color: var(--text-primary);
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-font-smoothing: antialiased;
}

/* ── GLOBAL NAV (same as main site) ── */
.gnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 72px;
  background: rgba(254,252,249,.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(240,135,158,.12);
}
.gnav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-primary);
}
.gnav-brand img { height: 40px; width: auto; }
.gnav-brand span {
  font-size: 15px; font-weight: 700; letter-spacing: .12em;
  line-height: 1.2;
}
.gnav-brand small {
  display: block; font-size: 10px; font-weight: 500;
  letter-spacing: .2em; color: var(--sakura-deep);
}
.gnav-links {
  display: flex; align-items: center; gap: 28px;
}
.gnav-links a {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; letter-spacing: .04em;
  transition: color .2s;
}
.gnav-links a:hover { color: var(--sakura-deep); }
.gnav-cta {
  background: var(--sakura-deep) !important; color: #fff !important;
  padding: 8px 20px !important; border-radius: 24px;
  font-size: 12px !important; letter-spacing: .08em;
}
.gnav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.gnav-burger i {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.gnav-burger.open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gnav-burger.open i:nth-child(2) { opacity: 0; }
.gnav-burger.open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .gnav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 0;
    background: rgba(254,252,249,.96);
    backdrop-filter: blur(16px);
    transform: translateY(-120%); opacity: 0;
    transition: transform .35s, opacity .35s;
    border-bottom: 1px solid var(--border);
  }
  .gnav-links.open { transform: translateY(0); opacity: 1; }
  .gnav-links a { padding: 14px 24px; width: 100%; font-size: 15px; }
  .gnav-burger { display: flex; }
}

/* ── NODE HERO ── */
.node-hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 100px 24px 60px;
  overflow: hidden;
  text-align: center;
}

.node-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, color-mix(in srgb, var(--node-color) 12%, transparent), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, color-mix(in srgb, var(--node-color2) 15%, transparent), transparent),
    linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
  z-index: 0;
}

.node-hero::after {
  content: attr(data-no);
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(200px, 30vw, 400px);
  font-weight: 900;
  color: var(--node-color);
  opacity: .06;
  z-index: 0;
  pointer-events: none;
  line-height: 1;
  letter-spacing: -.05em;
}

.node-hero > * { position: relative; z-index: 1; }

.node-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,.7);
  border: 1px solid color-mix(in srgb, var(--node-color) 30%, transparent);
  border-radius: 24px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em;
  color: var(--node-color);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.node-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--node-color);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* ── WORKSPACE SCENE ── */
.workspace-scene {
  width: clamp(300px, 70vw, 560px);
  height: clamp(200px, 45vw, 380px);
  margin: 32px auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--node-color2) 20%, var(--cream)) 0%, var(--white) 100%);
  border: 1px solid color-mix(in srgb, var(--node-color) 15%, transparent);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--node-color) 10%, transparent),
              0 4px 16px rgba(0,0,0,.04);
}

.ws-desk {
  position: absolute; bottom: 0; left: 5%; right: 5%; height: 35%;
  background: linear-gradient(180deg, #c8a97e 0%, #a67c52 100%);
  border-radius: 8px 8px 0 0;
}
.ws-desk::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #deb887, #d4a76a, #deb887);
  border-radius: 8px 8px 0 0;
}

.ws-monitor {
  position: absolute;
  width: 38%; height: 45%;
  bottom: 38%; left: 31%;
  background: #1a1a2e;
  border-radius: 6px;
  border: 3px solid #333;
  overflow: hidden;
}
.ws-monitor::after {
  content: ''; position: absolute;
  bottom: -14px; left: 38%; width: 24%; height: 14px;
  background: #555; border-radius: 0 0 4px 4px;
}

.ws-screen-content {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--node-color) 80%, #000) 0%, #1a1a2e 100%);
  display: flex; flex-direction: column; padding: 8%;
  gap: 6%;
}
.ws-screen-bar {
  height: 8%; width: 60%; border-radius: 2px;
  background: color-mix(in srgb, var(--node-color2) 40%, transparent);
  animation: screen-pulse 3s ease-in-out infinite;
}
.ws-screen-bar:nth-child(2) { width: 80%; animation-delay: .3s; }
.ws-screen-bar:nth-child(3) { width: 45%; animation-delay: .6s; }
.ws-screen-bar:nth-child(4) { width: 70%; animation-delay: .9s; }
.ws-screen-bar:nth-child(5) { width: 55%; animation-delay: 1.2s; }
@keyframes screen-pulse {
  0%, 100% { opacity: .3; }
  50% { opacity: .8; }
}

.ws-chart {
  position: absolute; bottom: 20%; left: 8%; width: 30%;
  display: flex; align-items: flex-end; gap: 6%; height: 30%;
}
.ws-chart-bar {
  flex: 1; border-radius: 2px 2px 0 0;
  background: var(--node-color);
  opacity: .6;
  animation: chart-grow 2s ease-out forwards;
}
@keyframes chart-grow {
  from { height: 0; }
}

.ws-bookshelf {
  position: absolute; top: 8%; right: 6%; width: 16%; height: 50%;
  display: flex; flex-direction: column; gap: 4px;
}
.ws-book {
  height: 14%; border-radius: 2px;
  background: var(--node-color);
  opacity: .3;
}
.ws-book:nth-child(2) { background: var(--node-color2); opacity: .4; width: 85%; }
.ws-book:nth-child(3) { background: var(--gold); opacity: .3; width: 90%; }
.ws-book:nth-child(4) { background: var(--node-color); opacity: .25; width: 80%; }
.ws-book:nth-child(5) { background: var(--sakura); opacity: .35; width: 95%; }

.ws-window {
  position: absolute; top: 4%; left: 4%; width: 20%; height: 40%;
  background: linear-gradient(180deg, #87CEEB 0%, #b8e4f9 100%);
  border-radius: 6px;
  border: 3px solid #ddd;
  overflow: hidden;
}
.ws-window::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--node-color2) 30%, rgba(255,182,193,.3)));
}

.ws-lamp {
  position: absolute; bottom: 34%; right: 14%;
  width: 8%; height: 20%;
}
.ws-lamp::before {
  content: ''; position: absolute; bottom: 0; left: 30%; width: 3px;
  height: 70%; background: #888;
}
.ws-lamp::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 40%; background: var(--gold); border-radius: 50% 50% 0 0;
  box-shadow: 0 4px 16px rgba(217,180,90,.3);
}

.ws-node-icon {
  position: absolute;
  bottom: 40%; left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

.ws-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.ws-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--node-color);
  opacity: 0;
  animation: float-particle 4s ease-in-out infinite;
}
@keyframes float-particle {
  0% { opacity: 0; transform: translateY(20px) scale(0); }
  30% { opacity: .6; }
  70% { opacity: .4; }
  100% { opacity: 0; transform: translateY(-100px) scale(1.5); }
}

/* ── NODE TITLES ── */
.node-name-block { margin-top: 32px; }
.node-kana {
  font-size: 12px; font-weight: 500; letter-spacing: .2em;
  color: var(--node-color);
  margin-bottom: 4px;
}
.node-name {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.1;
  color: var(--text-primary);
}
.node-title-en {
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--node-color);
  margin-top: 8px;
}
.node-lead {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 24px;
  letter-spacing: .02em;
}
.node-summary {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 500px;
  line-height: 1.8;
}

.scroll-hint {
  position: absolute; bottom: 32px;
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 11px; letter-spacing: .12em;
  animation: bob 2s ease-in-out infinite;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 32px;
  background: linear-gradient(180deg, var(--node-color), transparent);
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── ROLE SECTION ── */
.node-section {
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 80px);
  max-width: 960px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: .2em;
  color: var(--node-color);
  padding: 4px 12px;
  border: 1px solid color-mix(in srgb, var(--node-color) 25%, transparent);
  border-radius: 16px;
  margin-bottom: 20px;
}
.section-heading {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
  line-height: 1.4;
}
.section-text {
  font-size: 16px;
  line-height: 2;
  color: var(--text-secondary);
}

/* ── DUTIES GRID ── */
.duties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.duty-card {
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.duty-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--node-color), var(--node-color2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.duty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--node-color) 10%, transparent);
  border-color: color-mix(in srgb, var(--node-color) 20%, transparent);
}
.duty-card:hover::before { transform: scaleX(1); }
.duty-num {
  font-size: 32px; font-weight: 900;
  color: var(--node-color); opacity: .2;
  line-height: 1; margin-bottom: 12px;
}
.duty-text {
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ── CONNECTION SECTION ── */
.connection-band {
  background: var(--cream);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 80px);
  text-align: center;
}
.connection-inner {
  max-width: 720px; margin: 0 auto;
}
.connection-text {
  font-size: 15px;
  line-height: 2;
  color: var(--text-secondary);
}
.connection-arrow {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 24px 0;
  flex-wrap: wrap;
}
.conn-node {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700;
  letter-spacing: .06em;
}
.conn-node.self {
  background: var(--node-color);
  color: #fff;
}
.conn-node.other {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.conn-node.other:hover {
  border-color: var(--node-color);
  transform: translateY(-2px);
}
.conn-arrow-icon {
  font-size: 20px;
  color: var(--node-color);
}

/* ── TEAM NAV (prev/next) ── */
.team-nav {
  display: flex; justify-content: space-between; align-items: stretch;
  border-top: 1px solid var(--border);
}
.team-nav-link {
  flex: 1; display: flex; flex-direction: column;
  padding: 32px clamp(24px, 4vw, 48px);
  text-decoration: none; color: var(--text-primary);
  transition: background .2s;
}
.team-nav-link:hover { background: var(--cream); }
.team-nav-link + .team-nav-link { border-left: 1px solid var(--border); text-align: right; }
.team-nav-label {
  font-size: 11px; font-weight: 600; letter-spacing: .15em;
  color: var(--text-muted); margin-bottom: 4px;
}
.team-nav-name {
  font-size: 18px; font-weight: 700;
  letter-spacing: .04em;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,.7);
  padding: 56px clamp(24px, 5vw, 80px) 32px;
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 24px;
  align-items: center; text-align: center;
}
.f-name {
  font-size: 18px; font-weight: 700; letter-spacing: .15em;
  color: #fff;
}
.f-sub { font-size: 12px; margin-top: 6px; line-height: 1.6; }
.f-licenses {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  margin-top: 12px;
}
.f-license {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
}
.f-license .gov-mark {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sakura);
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
}
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,.6);
  text-decoration: none; letter-spacing: .04em;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }
.footer-sns {
  display: flex; gap: 16px; align-items: center;
  margin-top: 4px;
}
.footer-sns a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  transition: background .2s, transform .2s;
}
.footer-sns a:hover {
  background: rgba(255,255,255,.15);
  transform: translateY(-2px);
}
.footer-sns svg { width: 18px; height: 18px; fill: rgba(255,255,255,.7); }
.footer-copy {
  font-size: 11px; line-height: 1.6;
  color: rgba(255,255,255,.4);
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s, transform .7s;
}
.fade-in.show {
  opacity: 1; transform: translateY(0);
}

/* ── SAKURA PETALS ── */
.petal {
  position: fixed; top: -20px;
  width: 12px; height: 12px;
  background: var(--sakura);
  border-radius: 50% 0 50% 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  animation: petal-fall linear forwards;
}
@keyframes petal-fall {
  0%   { opacity: 0; transform: translateX(0) rotate(0deg); }
  10%  { opacity: .5; }
  90%  { opacity: .3; }
  100% { opacity: 0; transform: translateX(80px) rotate(720deg) translateY(100vh); }
}

/* ─────────────────────────────────────────────────────────────
   「SCROLL」指標が本文に重なる件の是正
   2026-09-15 実測：/kogo.html・/ceo.html で、下から32pxに置かれた指標が
                    直前の段落（下端985px）と 54×29px 重なり、
                    「…責任者としてSCROLLコンプライアンス体制を…」と読めなくなっていた。
   処置：節の下に、指標の高さ（約57px）＋余白ぶんの場所を確保する。
         指標の意匠・位置・動きは変えない。
   ───────────────────────────────────────────────────────────── */
.node-hero{ padding-bottom: 150px; }
