/* ════════════════════════════════════════════
   Ichigu Terrace — Portal Shared Styles
   ════════════════════════════════════════════ */

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

:root {
  --navy:       #0a0e1a;
  --navy-mid:   #111827;
  --navy-card:  rgba(15, 23, 42, 0.85);
  --accent:     #4f8ef7;
  --accent2:    #7c3aed;
  --gold:       #f59e0b;
  --green:      #10b981;
  --teal:       #06b6d4;
  --red:        #ef4444;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim:   #64748b;
  --border:     rgba(255,255,255,0.08);
  --border-acc: rgba(79,142,247,0.25);
  --card-bg:    rgba(17, 24, 39, 0.8);
  --radius:     20px;
  --radius-sm:  12px;
  --shadow:     0 32px 64px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Background ── */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 15% 40%, rgba(79,142,247,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(124,58,237,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 80%, rgba(16,185,129,0.04) 0%, transparent 50%),
    linear-gradient(160deg, #0a0e1a 0%, #0d1224 50%, #0a0e1a 100%);
}

.grid-lines {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(79,142,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridScroll 30s linear infinite;
}

@keyframes gridScroll {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

.orb {
  position: fixed; border-radius: 50%;
  filter: blur(100px); opacity: 0.12;
  animation: floatOrb 10s ease-in-out infinite;
  z-index: 0; pointer-events: none;
}
.orb-1 { width: 600px; height: 600px; background: #4f8ef7; top: -150px; left: -150px; }
.orb-2 { width: 400px; height: 400px; background: #7c3aed; bottom: -100px; right: 10%; animation-delay: -5s; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(40px,-40px) scale(1.1); }
}

.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.particle {
  position: absolute; width: 2px; height: 2px;
  background: var(--accent); border-radius: 50%;
  animation: pFloat linear infinite; opacity: 0;
}
@keyframes pFloat {
  0%   { transform: translateY(100vh); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-20px) translateX(var(--drift,0px)); opacity: 0; }
}

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(10,14,26,0.96);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.header-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; gap: 24px;
}

.header-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
  flex-shrink: 0;
}
.brand-icon { font-size: 28px; }
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 700;
  background: linear-gradient(135deg, #4f8ef7, #7c3aed);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-sub { font-size: 10px; color: var(--text-dim); letter-spacing: 0.5px; }

.header-nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}

.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  color: var(--text-muted); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: all 0.25s;
}
.nav-link:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.nav-link.active { background: rgba(79,142,247,0.12); color: var(--accent); }

.header-actions {
  display: flex; align-items: center; gap: 12px;
}

/* ── Role Badge (ヘッダー区分バッジ) ── */
.role-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px 5px 8px;
  border-radius: 20px;
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  animation: badgePop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.role-badge-header .rb-emoji { font-size: 18px; line-height: 1; }
.role-badge-header .rb-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; white-space: nowrap;
}
.role-badge-header:hover {
  transform: translateY(-2px);
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.7) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* モバイルでは区分バッジを縮小 */
@media (max-width: 768px) {
  .role-badge-header .rb-label { display: none; }
  .role-badge-header { padding: 5px 8px; }
}

.status-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 20px; padding: 5px 12px;
  font-size: 11px; font-weight: 600;
  color: var(--green); letter-spacing: 1px;
}
.status-dot {
  width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.btn-logout {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 10px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #f87171; font-size: 12px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all 0.25s;
}
.btn-logout:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.4); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-nav {
  display: none; flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; color: var(--text-muted);
  text-decoration: none; font-size: 14px;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--text); }
.mobile-nav-link i { width: 18px; color: var(--accent); }
.mobile-logout {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 12px; border-radius: 10px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #f87171; font-size: 14px; cursor: pointer;
  font-family: inherit;
}

/* ── HERO ── */
.hero {
  position: relative; z-index: 10;
  max-width: 1300px; margin: 0 auto;
  padding: 80px 32px 60px;
  display: grid; grid-template-columns: 1fr 420px;
  align-items: center; gap: 60px;
}

.hero-content { animation: slideUp 0.8s ease forwards; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.eyebrow-tag {
  background: rgba(79,142,247,0.12);
  border: 1px solid rgba(79,142,247,0.25);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 600;
  color: var(--accent); letter-spacing: 0.5px;
}
.eyebrow-divider { color: var(--text-dim); }
.eyebrow-date { font-size: 12px; color: var(--text-dim); }

.hero-title {
  display: flex; flex-direction: column;
  margin-bottom: 20px;
  line-height: 1.1;
}
.title-line-1 {
  font-size: 22px; font-weight: 400;
  color: var(--text-muted); letter-spacing: 1px;
}
.title-line-2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 800; letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 0%, #4f8ef7 50%, #7c3aed 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.title-line-2 em { font-style: italic; }

.hero-desc {
  font-size: 16px; color: var(--text-muted);
  margin-bottom: 36px; line-height: 1.8;
}

.hero-stats {
  display: flex; align-items: center; gap: 32px;
  margin-bottom: 36px;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px; font-weight: 700;
  color: var(--text);
}
.stat-label { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; text-transform: uppercase; }
.stat-sep { width: 1px; height: 40px; background: var(--border); }

.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #4f8ef7, #7c3aed);
  border-radius: 14px; color: #fff;
  font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(79,142,247,0.3);
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(79,142,247,0.4); }

.cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px; color: var(--text);
  font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all 0.3s;
}
.cta-secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); transform: translateY(-2px); }

/* Globe visual */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  animation: slideUp 0.8s ease 0.2s both;
}

.portal-globe {
  position: relative;
  width: 360px; height: 360px;
  display: flex; align-items: center; justify-content: center;
}

.globe-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(79,142,247,0.25);
  animation: globeSpin linear infinite;
}
.r1 { width: 360px; height: 360px; animation-duration: 20s; }
.r2 { width: 280px; height: 280px; animation-duration: 14s; animation-direction: reverse;
      border-color: rgba(124,58,237,0.25); }
.r3 { width: 200px; height: 200px; animation-duration: 8s;
      border-color: rgba(16,185,129,0.25); }

@keyframes globeSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.globe-core {
  position: relative; z-index: 5;
  width: 100px; height: 100px;
  background: linear-gradient(135deg, rgba(79,142,247,0.2), rgba(124,58,237,0.2));
  border: 1px solid rgba(79,142,247,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  box-shadow: 0 0 40px rgba(79,142,247,0.15), 0 0 80px rgba(124,58,237,0.1);
  animation: coreGlow 4s ease-in-out infinite;
}

@keyframes coreGlow {
  0%,100% { box-shadow: 0 0 40px rgba(79,142,247,0.15), 0 0 80px rgba(124,58,237,0.1); }
  50% { box-shadow: 0 0 60px rgba(79,142,247,0.3), 0 0 100px rgba(124,58,237,0.2); }
}

.globe-dot {
  position: absolute; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: dotOrbit linear infinite;
}
.d1 { animation-duration: 20s; top: 0; left: 50%; transform: translateX(-50%); }
.d2 { animation-duration: 14s; top: 50%; right: 0; transform: translateY(-50%); background: #7c3aed; box-shadow: 0 0 10px #7c3aed; animation-direction: reverse; }
.d3 { animation-duration: 8s; bottom: 0; left: 50%; transform: translateX(-50%); background: var(--green); box-shadow: 0 0 10px var(--green); }
.d4 { animation-duration: 12s; top: 50%; left: 0; transform: translateY(-50%); background: var(--gold); box-shadow: 0 0 10px var(--gold); animation-direction: reverse; }

@keyframes dotOrbit {
  from { transform: rotate(0deg) translateX(180px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
}

/* ── TICKER ── */
.ticker-wrap {
  position: relative; z-index: 10;
  background: rgba(79,142,247,0.08);
  border-top: 1px solid rgba(79,142,247,0.15);
  border-bottom: 1px solid rgba(79,142,247,0.15);
  display: flex; align-items: center;
  overflow: hidden; height: 44px;
}

.ticker-label {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 1px;
  padding: 0 16px; height: 100%;
  display: flex; align-items: center; gap: 6px;
}

.ticker-track { flex: 1; overflow: hidden; }

.ticker-inner {
  display: flex; gap: 80px;
  white-space: nowrap;
  font-size: 13px; color: var(--text-muted);
  animation: tickerScroll 40s linear infinite;
  padding-left: 40px;
}
.ticker-inner span { flex-shrink: 0; }

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECTION CARDS ── */
.section-cards {
  position: relative; z-index: 10;
  max-width: 1300px; margin: 0 auto;
  padding: 80px 32px;
}

.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}

.cards-header { margin-bottom: 48px; }
.cards-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700; color: var(--text);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Card base */
.portal-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s, box-shadow 0.3s;
  animation: cardReveal 0.7s ease both;
}

.portal-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.portal-card:nth-child(1) { animation-delay: 0.1s; }
.portal-card:nth-child(2) { animation-delay: 0.2s; }
.portal-card:nth-child(3) { animation-delay: 0.3s; }
.portal-card:nth-child(4) { animation-delay: 0.4s; }

/* Card glow overlay */
.card-glow {
  position: absolute; inset: 0; border-radius: inherit;
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.card-news .card-glow    { background: radial-gradient(ellipse at top left, rgba(79,142,247,0.12), transparent 70%); }
.card-gsi .card-glow     { background: radial-gradient(ellipse at top left, rgba(124,58,237,0.12), transparent 70%); }
.card-admin .card-glow   { background: radial-gradient(ellipse at top left, rgba(245,158,11,0.10), transparent 70%); }
.card-alumni .card-glow  { background: radial-gradient(ellipse at top left, rgba(6,182,212,0.10), transparent 70%); }
.portal-card:hover .card-glow { opacity: 1; }

/* Card hover border colors */
.card-news:hover   { border-color: rgba(79,142,247,0.4); }
.card-gsi:hover    { border-color: rgba(124,58,237,0.4); }
.card-admin:hover  { border-color: rgba(245,158,11,0.4); }
.card-alumni:hover { border-color: rgba(6,182,212,0.4); }

.card-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 20px;
}

.card-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.news-color  { background: rgba(79,142,247,0.15); color: #4f8ef7; border: 1px solid rgba(79,142,247,0.2); }
.gsi-color   { background: rgba(124,58,237,0.15); color: #a78bfa; border: 1px solid rgba(124,58,237,0.2); }
.admin-color { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.alumni-color{ background: rgba(6,182,212,0.12);  color: #22d3ee; border: 1px solid rgba(6,182,212,0.2); }

.card-badge {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(79,142,247,0.12);
  border: 1px solid rgba(79,142,247,0.2);
  color: var(--accent);
}
.badge-purple { background: rgba(124,58,237,0.12); border-color: rgba(124,58,237,0.2); color: #a78bfa; }
.badge-gold   { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.2); color: #fbbf24; }
.badge-teal   { background: rgba(6,182,212,0.10);  border-color: rgba(6,182,212,0.2);  color: #22d3ee; }

.card-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 10px;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--text); margin-bottom: 14px;
  line-height: 1.3;
}
.card-title span { color: var(--accent); }
.card-gsi .card-title span  { color: #a78bfa; }
.card-admin .card-title span { color: #fbbf24; }
.card-alumni .card-title span { color: #22d3ee; }

.card-desc {
  font-size: 13.5px; color: var(--text-muted);
  line-height: 1.7; margin-bottom: 20px;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tag {
  font-size: 11px; padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 20px; color: var(--text-dim);
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.card-action {
  font-size: 13px; font-weight: 600;
  color: var(--accent); display: flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.portal-card:hover .card-action { gap: 10px; }
.card-gsi   .card-action { color: #a78bfa; }
.card-admin .card-action { color: #fbbf24; }
.card-alumni .card-action { color: #22d3ee; }

.card-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-green  { background: var(--green);  box-shadow: 0 0 8px var(--green); animation: blink 2s infinite; }
.dot-purple { background: #a78bfa; box-shadow: 0 0 8px #a78bfa; animation: blink 2s 0.5s infinite; }
.dot-gold   { background: var(--gold);   box-shadow: 0 0 8px var(--gold); animation: blink 2s 1s infinite; }
.dot-teal   { background: var(--teal);   box-shadow: 0 0 8px var(--teal); animation: blink 2s 1.5s infinite; }

/* ── QUICK ACCESS ── */
.quick-access {
  position: relative; z-index: 10;
  max-width: 1300px; margin: 0 auto;
  padding: 0 32px 80px;
}

.qa-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px; font-weight: 700;
  margin-bottom: 32px;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.qa-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  padding: 24px 16px;
  background: rgba(17,24,39,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none; font-size: 12px; font-weight: 500;
  transition: all 0.3s;
  text-align: center;
}
.qa-item:hover {
  background: rgba(79,142,247,0.08);
  border-color: rgba(79,142,247,0.3);
  color: var(--text);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.qa-icon { font-size: 28px; }
.qa-label { font-size: 12px; line-height: 1.4; }

/* ── FOOTER ── */
.site-footer {
  position: relative; z-index: 10;
  border-top: 1px solid var(--border);
  background: rgba(10,14,26,0.8);
  padding: 32px;
}
.footer-inner {
  max-width: 1300px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text);
}
.footer-copy { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.footer-meta { display: flex; align-items: center; gap: 24px; }
.footer-secure, .footer-notion {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-dim);
}
.footer-secure i { color: var(--green); }
.footer-notion i { color: var(--accent); }

/* ── INNER PAGE COMMON ── */
.inner-hero {
  position: relative; z-index: 10;
  max-width: 1300px; margin: 0 auto;
  padding: 60px 32px 40px;
}
.inner-hero-eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.inner-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.1; margin-bottom: 16px;
}
.inner-hero p {
  font-size: 16px; color: var(--text-muted);
  max-width: 640px; line-height: 1.8;
}

.page-content {
  position: relative; z-index: 10;
  max-width: 1300px; margin: 0 auto;
  padding: 0 32px 80px;
}

/* Section heading */
.sec-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 700;
  margin-bottom: 8px;
}
.sec-sub {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 28px;
}
.sec-block { margin-bottom: 60px; }

/* Content cards */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  transition: border-color 0.3s;
}
.content-card:hover { border-color: var(--border-acc); }

/* Notion embed frame */
.notion-frame {
  width: 100%; min-height: 500px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17,24,39,0.5);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
  color: var(--text-muted); font-size: 14px;
  padding: 40px;
}

.notion-icon { font-size: 48px; margin-bottom: 8px; }

.coming-soon-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 20px; padding: 5px 14px;
  font-size: 11px; font-weight: 600;
  color: var(--gold); letter-spacing: 1px;
}

/* Utility */
.pc-only { display: inline; }
.sp-only { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .qa-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .header-nav { display: none; }
  .status-badge { display: none; }
  .btn-logout { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 48px 20px 40px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 28px; }

  .section-cards { padding: 48px 20px; }
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }

  .quick-access { padding: 0 20px 60px; }
  .qa-grid { grid-template-columns: repeat(2, 1fr); }

  .pc-only { display: none; }
  .sp-only { display: inline; }
  .header-inner { padding: 14px 20px; }
}

@media (max-width: 480px) {
  .title-line-2 { font-size: 42px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .portal-card { padding: 24px; }
  .qa-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .qa-item { padding: 20px 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
