/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:  #8ED462;
  --dark:   #4E4E3E;
  --yellow: #F5E211;
  --cream:  #F5F1E4;
  --white:  #FFFFFF;
  --ink:    #2C2E2A;
  --max-w:  1160px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img  { display: block; max-width: 100%; }
a    { text-decoration: none; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin: 12px 16px 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}
.logo-mark { flex-shrink: 0; line-height: 0; }
.logo-img  { height: 36px; width: auto; object-fit: contain; }
.logo-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 7px 14px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-link:hover,
.nav-link--active { background: var(--cream); }
.caret { font-size: 11px; opacity: 0.4; }

/* Me button */
.btn-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.btn-me:hover { opacity: 0.82; }
.btn-me-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* ============================================================
   HERO  — centered text, large image at bottom
   ============================================================ */
.hero {
  background:
    radial-gradient(ellipse at 50% 90%, rgba(255,255,210,0.45) 0%, rgba(200,245,140,0.2) 40%, transparent 65%),
    var(--green);
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Text block */
.hero-text-wrap {
  text-align: center;
  padding: 72px 48px 40px;
  max-width: 720px;
  transform-origin: center top;
  will-change: transform;
}

.hero-title {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(0,0,0,0.55);
}

/* Image block */
.hero-image-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-left: 60px;
}

/* Decorative blob behind figures */
.hero-blob {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 260px;
  background: rgba(180,230,130,0.45);
  border-radius: 50%;
  filter: blur(12px);
}

.hero-img {
  position: relative;
  z-index: 1;
  max-width: 860px;
  width: 90%;
  object-fit: contain;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(44,46,42,0.22));
}

/* ============================================================
   SECTION COLORS
   ============================================================ */
.dark-section  { background: var(--dark); }
.section-green { background: var(--green); }

/* ============================================================
   SCROLL SECTIONS
   ============================================================ */
.scroll-section { padding: 88px 0; }

.scroll-inner {
  display: flex;
  align-items: center;
  gap: 72px;
}

.scroll-img-right  { flex-direction: row; }
.scroll-img-left   { flex-direction: row-reverse; }

/* Text */
.scroll-text { flex: 1; min-width: 0; }

.scroll-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.scroll-tag--dark { color: var(--ink); }

.scroll-text h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--cream);
  margin-bottom: 16px;
}

.scroll-text p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245,241,228,0.65);
  margin-bottom: 28px;
  max-width: 520px;
}

.text-ink     { color: var(--ink) !important; }
.text-ink-mid { color: rgba(44,46,42,0.6) !important; }

/* Image */
.scroll-img {
  flex: 0 0 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.scroll-img img {
  max-height: 340px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.22));
}

.scroll-img--large          { flex: 0 0 320px; }
.scroll-img--large img      { max-height: 400px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 11px 11px 20px;
  background: rgba(245,241,228,0.1);
  border: 1.5px solid rgba(245,241,228,0.22);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  transition: background 0.15s;
}
.btn-pill:hover { background: rgba(245,241,228,0.18); }

.btn-pill--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.btn-pill--dark:hover { opacity: 0.85; }

.arrow-wrap {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.arrow-wrap--light { background: rgba(255,255,255,0.9); color: var(--ink); }

/* ============================================================
   ME? HOVER TOOLTIP
   ============================================================ */
.me-wrap {
  position: relative;
  flex-shrink: 0;
}

.me-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  z-index: 300;
}

.me-wrap.me-open .me-tooltip { display: block; }

/* 吹き出し三角 */
.me-tooltip::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 24px;
  width: 14px;
  height: 14px;
  background: var(--ink);
  border-left: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.12);
  transform: rotate(45deg);
}

.me-tooltip-bio {
  font-size: 13px;
  line-height: 1.7;
  color: var(--cream);
  margin-bottom: 16px;
}

.me-tooltip-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(245,241,228,0.1);
  border: 1px solid rgba(245,241,228,0.2);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cream);
  transition: background 0.15s;
}

.me-tooltip-linkedin svg { color: #0A66C2; flex-shrink: 0; }
.me-tooltip-linkedin:hover { background: rgba(245,241,228,0.18); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.site-footer .container {
  display: flex;
  justify-content: center;
}

.site-footer span {
  font-size: 13px;
  color: rgba(245,241,228,0.4);
  letter-spacing: 0.04em;
}

/* ============================================================
   SCROLL ANIMATIONS — カードが下から上がってくる
   ============================================================ */
.scroll-section {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
}

.scroll-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-img img {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1) 0.18s,
              transform 0.65s cubic-bezier(0.22,1,0.36,1) 0.18s;
}

.scroll-section.visible .scroll-img img {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   EVOLUTION PATH (くねくね線)
   ============================================================ */
.evolution-track {
  position: relative;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    #1a1b26 0%,
    #252232 20%,
    #352a2a 42%,
    #453828 65%,
    #4a4230 82%,
    #4e4a38 100%
  );
  border-radius: 32px 32px 0 0;
  overflow: hidden;
  margin-top: -110px;
  padding-top: 140px;
}

/* sections inside the track are transparent so the SVG line shows through */
.evolution-track .dark-section {
  background: transparent;
}

.evo-path-svg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* セクション内のコンテンツをパスより前面に */
.evolution-track .scroll-section {
  position: relative;
  z-index: 1;
}

/* ============================================================
   MAGAZINE PAGE
   ============================================================ */
.mag-main {
  background: linear-gradient(
    to bottom,
    #1a1b26 0%,
    #252232 20%,
    #352a2a 42%,
    #453828 65%,
    #4a4230 82%,
    #4e4a38 100%
  );
  min-height: calc(100vh - 64px - 56px);
  padding: 72px 0 96px;
}

.mag-header {
  margin-bottom: 56px;
}

.mag-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 12px;
}

.mag-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
}

.mag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.mag-card {
  background: var(--white);
  border: none;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 24px rgba(44,46,42,0.09);
  transition: transform 0.2s, box-shadow 0.2s;
}

.mag-card:hover {
  box-shadow: 0 12px 40px rgba(44,46,42,0.14);
  transform: translateY(-4px);
}

.mag-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mag-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(142,212,98,0.12);
  padding: 3px 8px;
  border-radius: 50px;
}

.mag-date {
  font-size: 12px;
  color: rgba(44,46,42,0.4);
}

.mag-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.mag-card-excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(44,46,42,0.55);
  flex: 1;
}

.mag-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 20px;
  background: var(--green);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  align-self: flex-start;
  transition: opacity 0.15s, transform 0.15s;
  margin-top: 4px;
}

.mag-card-link::after {
  content: '›';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--white);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.mag-card-link:hover { opacity: 0.85; transform: translateX(2px); }

/* ============================================================
   EVENT PAGE
   ============================================================ */
.event-main {
  background: var(--dark);
  min-height: calc(100vh - 64px - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-coming {
  text-align: center;
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.event-img {
  height: 200px;
  width: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── 流れ星 ── */
.scroll-section--stars {
  position: relative;
  overflow: hidden;
}
.shooting-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.shooting-star {
  position: absolute;
  width: 1.5px;
  height: 64px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 100%);
  border-radius: 1px;
  opacity: 0;
  transform: rotate(-40deg);
  transform-origin: top center;
  animation: shoot linear infinite;
}
.shooting-star:nth-child(1) { top:  8%; left: 72%; animation-duration: 4s;   animation-delay: 0s; }
.shooting-star:nth-child(2) { top: 14%; left: 54%; animation-duration: 5.5s; animation-delay: 1.6s; }
.shooting-star:nth-child(3) { top:  4%; left: 85%; animation-duration: 3.8s; animation-delay: 3.1s; }
.shooting-star:nth-child(4) { top: 20%; left: 42%; animation-duration: 6s;   animation-delay: 0.9s; }
.shooting-star:nth-child(5) { top:  2%; left: 63%; animation-duration: 4.8s; animation-delay: 2.4s; }

@keyframes shoot {
  0%   { transform: rotate(-40deg) translateY(0);    opacity: 0; }
  5%   { opacity: 1; }
  65%  { opacity: 0.7; }
  100% { transform: rotate(-40deg) translateY(700px); opacity: 0; }
}

/* ── Image flip ── */
.img-flip { transform: scaleX(-1); }

/* ── 炎エフェクト ── */
.fire-img-wrap {
  position: relative;
  display: inline-block;
}
.fire-img-wrap img {
  position: relative;
  z-index: 1;
}
.flame-group {
  position: absolute;
  top: 8%;
  left: 22%;
  width: 80px;
  height: 130px;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 0 22px rgba(160,130,255,1)) drop-shadow(0 0 40px rgba(130,100,255,0.7));
}
.flame {
  position: absolute;
  bottom: 0;
  left: 50%;
  border-radius: 50% 50% 20% 20%;
  transform-origin: bottom center;
  animation: flicker ease-in-out infinite alternate;
}
.flame--outer {
  width: 80px; height: 120px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 85%, rgba(130,100,255,0.75) 0%, rgba(80,60,200,0.45) 55%, transparent 100%);
  animation-duration: 0.38s;
  opacity: 0.9;
}
.flame--mid {
  width: 52px; height: 88px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 85%, rgba(210,190,255,0.98) 0%, rgba(160,130,255,0.85) 65%, transparent 100%);
  animation-duration: 0.28s;
  animation-delay: 0.04s;
  opacity: 0.98;
}
.flame--core {
  width: 24px; height: 48px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 85%, #ffffff 0%, rgba(225,215,255,0.98) 70%, transparent 100%);
  animation-duration: 0.21s;
  animation-delay: 0.02s;
}

@keyframes flicker {
  0%   { transform: translateX(-50%) scaleX(0.82) scaleY(0.93); }
  100% { transform: translateX(-50%) scaleX(1.18) scaleY(1.1); }
}

/* ── 石板アニメ ── */
.tablet-img-wrap {
  position: relative;
  display: inline-block;
}
.tablet-overlay {
  position: absolute;
  top: 30%; left: 20%;
  width: 55%; height: 40%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  pointer-events: none;
  z-index: 2;
  font-size: 13px;
  color: rgba(220,190,110,0.9);
  text-shadow: 0 0 5px rgba(255,200,80,0.45);
}
.tablet-char {
  opacity: 0;
  animation: char-appear 5.5s ease-in-out infinite;
}
.tablet-char:nth-child(1)  { animation-delay: 0s; }
.tablet-char:nth-child(2)  { animation-delay: 0.45s; }
.tablet-char:nth-child(3)  { animation-delay: 0.9s; }
.tablet-char:nth-child(4)  { animation-delay: 1.35s; }
.tablet-char:nth-child(5)  { animation-delay: 1.8s; }
.tablet-char:nth-child(6)  { animation-delay: 2.25s; }
.tablet-char:nth-child(7)  { animation-delay: 2.7s; }
.tablet-char:nth-child(8)  { animation-delay: 3.15s; }
.tablet-char:nth-child(9)  { animation-delay: 3.6s; }
.tablet-char:nth-child(10) { animation-delay: 4.05s; }
.tablet-char:nth-child(11) { animation-delay: 4.5s; }
.tablet-char:nth-child(12) { animation-delay: 4.95s; }

@keyframes char-appear {
  0%        { opacity: 0; transform: scale(0.7); }
  12%, 58%  { opacity: 1; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(0.85); }
}

/* ── Typewriter background (book section) ── */
.book-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
.typewriter-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}
.tw-line {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: rgba(142,212,98,0.35);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: tw-expand 14s linear infinite;
}
.tw-line:nth-child(1) { animation-delay: 0s; }
.tw-line:nth-child(2) { animation-delay: 2.8s; }
.tw-line:nth-child(3) { animation-delay: 5.6s; }
.tw-line:nth-child(4) { animation-delay: 8.4s; }
.tw-line:nth-child(5) { animation-delay: 11.2s; }
@keyframes tw-expand {
  0%        { width: 0; opacity: 1; }
  30%       { width: 100%; opacity: 1; }
  70%       { width: 100%; opacity: 0.5; }
  88%, 100% { width: 0; opacity: 0; }
}

/* ── WiFi / internet animation ── */
.wifi-img-wrap { position: relative; display: inline-block; }
.wifi-overlay {
  position: absolute;
  top: 38%; left: 60%;
  width: 72px; height: 72px;
  pointer-events: none;
  z-index: 2;
}
.wifi-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--green);
  opacity: 0;
  animation: ring-expand 2.4s ease-out infinite;
}
.wifi-ring:nth-child(1) { animation-delay: 0s; }
.wifi-ring:nth-child(2) { animation-delay: 0.8s; }
.wifi-ring:nth-child(3) { animation-delay: 1.6s; }
.wifi-dot {
  position: absolute;
  width: 9px; height: 9px;
  background: var(--green);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(142,212,98,0.9);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
@keyframes ring-expand {
  0%   { width: 9px; height: 9px; top: 31.5px; left: 31.5px; opacity: 0.9; }
  100% { width: 72px; height: 72px; top: 0; left: 0; opacity: 0; }
}
@keyframes dot-pulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  50%       { transform: translate(-50%,-50%) scale(1.6); opacity: 0.5; }
}

/* ── PC2 thought bubbles ── */
.pc2-img-wrap {
  position: relative;
  display: inline-block;
}
.pc2-img-wrap > img {
  position: relative;
  z-index: 1;
}
.thought-wrap {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: thought-bob 3.6s ease-in-out infinite;
}
.thought-wrap--human {
  left: 18%;
  top: -8%;
  animation-delay: 0s;
}
.thought-wrap--robot {
  left: 60%;
  top: -8%;
  animation-delay: 1.4s;
}
.thought-bubble {
  background: rgba(255,255,255,0.92);
  border-radius: 28px;
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(44,46,42,0.13);
}
.thought-bubble--robot {
  background: rgba(220,230,255,0.92);
}
.thinking-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.2;
  animation: dot-think 1.6s ease-in-out infinite;
}
.thought-bubble--robot .thinking-dot {
  background: #5566cc;
}
.thinking-dot:nth-child(1) { animation-delay: 0s; }
.thinking-dot:nth-child(2) { animation-delay: 0.28s; }
.thinking-dot:nth-child(3) { animation-delay: 0.56s; }
.thought-stem--3 { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.92); }
.thought-stem--2 { width: 9px;  height: 9px;  border-radius: 50%; background: rgba(255,255,255,0.82); }
.thought-stem--1 { width: 5px;  height: 5px;  border-radius: 50%; background: rgba(255,255,255,0.68); }
.thought-wrap--robot .thought-stem--3 { background: rgba(220,230,255,0.92); }
.thought-wrap--robot .thought-stem--2 { background: rgba(220,230,255,0.82); }
.thought-wrap--robot .thought-stem--1 { background: rgba(220,230,255,0.68); }

@keyframes thought-bob {
  0%, 100% { transform: translateY(0px);   opacity: 0.95; }
  50%       { transform: translateY(-10px); opacity: 1; }
}
@keyframes dot-think {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(-3px); }
}

/* ── Research page ── */
.research-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 8px;
}
.research-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.research-group-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(142,212,98,0.2);
}
.research-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px 28px;
}
.research-item-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.research-item-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.55;
}
.research-item-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}
.research-item-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  white-space: nowrap;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid rgba(142,212,98,0.35);
  border-radius: 50px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  align-self: flex-start;
}
.research-item-link:hover {
  background: rgba(142,212,98,0.1);
  border-color: var(--green);
}
.research-item--col {
  flex-direction: column;
}
.research-embed {
  width: 100%;
  max-width: 504px;
  border-radius: 12px;
  overflow: hidden;
}
.research-embed iframe {
  display: block;
  width: 100%;
  max-width: 504px;
  border-radius: 12px;
}
.research-embed--video {
  max-width: 640px;
  aspect-ratio: 16 / 9;
  height: auto;
}
.research-embed--video iframe {
  max-width: 100%;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}
.research-item-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-top: 4px;
}

.event-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

.event-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--cream);
}

.event-sub {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245,241,228,0.5);
  max-width: 360px;
}

.btn-pill--green {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
  margin-top: 8px;
}

.btn-pill--green:hover { opacity: 0.85; }

/* ============================================================
   ME? SECTION
   ============================================================ */
.me-section {
  background: var(--ink);
  padding: 96px 0;
}

.me-inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.me-tag {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  padding-top: 4px;
  min-width: 80px;
}

.me-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.me-bio {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(245,241,228,0.08);
  border: 1.5px solid rgba(245,241,228,0.18);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  transition: background 0.15s, border-color 0.15s;
  width: fit-content;
}

.linkedin-link:hover {
  background: rgba(245,241,228,0.14);
  border-color: rgba(245,241,228,0.35);
}

.linkedin-icon {
  flex-shrink: 0;
  color: #0A66C2;
}

/* ============================================================
   HERO PAGE BODY BACKGROUND (index.html)
   ============================================================ */
.page-home     { background: var(--green); }
.page-dark     { background: var(--dark); }
.page-cream    { background: var(--cream); }
.page-story    { background: #1a1b26; }

/* ============================================================
   MOBILE MENU BUTTON
   ============================================================ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
body.menu-open .mobile-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .mobile-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(44,46,42,0.07);
  border: 1.5px solid rgba(44,46,42,0.14);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}

.lang-toggle-jp,
.lang-toggle-en {
  padding: 4px 11px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
}

/* デフォルト: JP がアクティブ */
.lang-toggle-jp {
  background: var(--ink);
  color: var(--white);
}
.lang-toggle-en {
  background: transparent;
  color: rgba(44,46,42,0.4);
}

/* EN モード: EN がアクティブ */
body.lang-en .lang-toggle-jp {
  background: transparent;
  color: rgba(44,46,42,0.4);
}
body.lang-en .lang-toggle-en {
  background: var(--ink);
  color: var(--white);
}

/* Bilingual content switching */
.en-text { display: none; }
body.lang-en .ja-text { display: none; }
body.lang-en .en-text { display: revert; }

/* ============================================================
   SCROLL IMAGE FLOATING ANIMATION
   ============================================================ */
.scroll-section.visible .scroll-img {
  animation: float 4s ease-in-out infinite 0.85s;
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-main {
  background: var(--cream);
  min-height: calc(100vh - 64px - 56px);
  padding: 64px 0 96px;
}

.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 48px;
}

.article-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: rgba(44,46,42,0.5);
  margin-bottom: 40px;
  transition: color 0.15s;
}
.article-back:hover { color: var(--ink); }

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.article-main .mag-tag {
  color: var(--ink);
  background: rgba(44,46,42,0.1);
}

.article-main .mag-date { color: rgba(44,46,42,0.45); }

.article-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 20px;
}

.article-lead {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(44,46,42,0.65);
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(44,46,42,0.1);
  padding-bottom: 48px;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 44px 0 14px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(44,46,42,0.82);
  margin-bottom: 20px;
}

.article-body ul {
  margin: 0 0 20px 20px;
}

.article-body li {
  font-size: 16px;
  line-height: 1.9;
  color: rgba(44,46,42,0.82);
  margin-bottom: 10px;
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Header */
  .header { margin: 6px 10px 0; top: 6px; border-radius: 14px; }
  .header-inner { padding: 0 14px; height: 54px; gap: 10px; }
  .logo-name { font-size: 15px; }
  .mobile-menu-btn { display: flex; }

  /* Mobile nav — hidden by default, dropdown on open */
  .nav {
    display: none;
    position: fixed;
    top: 74px;
    left: 10px;
    right: 10px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    padding: 12px;
    flex-direction: column;
    gap: 2px;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  }
  body.menu-open .nav { display: flex; }
  .nav-link { padding: 12px 16px; font-size: 15px; border-radius: 10px; }

  /* Container */
  .container { padding: 0 20px; }

  /* Hero */
  .hero-text-wrap { padding: 56px 24px 24px; }
  .hero-sub { font-size: 15px; }
  .hero-img { width: 100%; }

  /* Scroll sections */
  .scroll-section { padding: 56px 0; }
  .scroll-inner { flex-direction: column !important; gap: 28px; }
  .scroll-img { flex: 0 0 auto; width: 100%; justify-content: center; }
  .scroll-img img { max-height: 200px; }
  .scroll-img--large { flex: 0 0 auto; width: 100%; }
  .scroll-img--large img { max-height: 240px; }
  .scroll-text h2 { font-size: clamp(22px, 5vw, 30px); }
  .scroll-text p { font-size: 15px; max-width: 100%; }

  /* Magazine */
  .mag-main { padding: 48px 0 64px; }
  .mag-header { margin-bottom: 32px; }
  .mag-grid { grid-template-columns: 1fr; }
  .mag-title { font-size: clamp(28px, 7vw, 48px); }

  /* Event */
  .event-coming { padding: 60px 24px; }
  .event-title { font-size: clamp(26px, 6vw, 40px); }

  /* Article */
  .article-container { padding: 0 20px; }
  .article-title { font-size: clamp(22px, 5vw, 36px); }
  .article-lead { font-size: 16px; }
  .article-body h2 { font-size: 19px; }

  /* Me tooltip */
  .me-tooltip { right: -8px; width: 240px; }
  .me-tooltip-bio { font-size: 12px; }

  /* Lang toggle */
  .lang-toggle-jp, .lang-toggle-en { padding: 4px 9px; font-size: 11px; }

  /* Btn Me */
  .btn-me { font-size: 13px; padding: 6px 6px 6px 12px; }
  .btn-me-avatar { width: 26px; height: 26px; }
}
