:root {
  --bg: #070a12;
  --surface: #111727;
  --text: #eef3ff;
  --muted: #9ca6bf;
  --line: #2a3348;
  --primary: #7f5bff;
  --primary-strong: #3fe1ff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(63, 225, 255, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 80% -20%, #1e284d 0%, transparent 42%),
    radial-gradient(circle at -10% 10%, #111936 0%, transparent 36%),
    var(--bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
}

body.is-loading {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader::before,
.loader::after {
  content: "";
  position: absolute;
  width: clamp(180px, 24vw, 320px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(220, 250, 255, 1));
  box-shadow: 0 0 18px rgba(120, 228, 255, 0.75);
  pointer-events: none;
  opacity: 0.2;
}

.loader::before {
  top: -8%;
  right: -26%;
  transform: rotate(147deg);
  animation: shootingStar 1.3s linear infinite;
}

.loader::after {
  top: 6%;
  right: -30%;
  transform: rotate(147deg);
  animation: shootingStar 1.3s linear 0.45s infinite;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}

.loader-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  z-index: 2;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #2a3348;
  border-top-color: var(--primary-strong);
  animation: spin 0.9s linear infinite;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.5;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: #3d4ea8;
  top: -100px;
  right: -120px;
  animation: float 8s ease-in-out infinite;
}

.orb-2 {
  width: 340px;
  height: 340px;
  background: #2b3278;
  bottom: -120px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-box,
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3b4663;
  background: #0f1423;
  font-size: 0.8rem;
  font-weight: 700;
  overflow: hidden;
}

.logo-box {
  width: 48px;
  height: 48px;
  border-radius: 9px;
}

.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  color: #c8d2e8;
  font-weight: 600;
}

.nav a:hover {
  color: var(--primary-strong);
}

.menu-btn {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #10192d;
  color: var(--text);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: #0d1322;
  border-top: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 12px 4%;
  border-bottom: 1px solid var(--line);
}

.mobile-nav.open {
  display: block;
}

.hero {
  min-height: clamp(340px, 62vh, 580px);
  display: grid;
  align-items: end;
  padding: 20px 0 28px;
  position: relative;
  overflow: hidden;
  background-color: #0b0a12;
  background-image: url("asset/header.jpg");
  background-size: min(1280px, 96vw) auto;
  background-position: center 34%;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 8, 13, 0.28) 0%, rgba(9, 8, 13, 0.55) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(7, 10, 18, 0) 0%, rgba(7, 10, 18, 1) 100%);
}

.hero-wrap {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-content {
  max-width: 760px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--primary-strong);
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  color: #07101f;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: #131a2b;
}

.scroll {
  width: fit-content;
  margin-top: 6px;
  color: #ffffff;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  position: relative;
  padding-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 1px;
  height: 10px;
  background: #ffffff;
  animation: scrollLine 1.4s ease-in-out infinite;
}

.section {
  padding: 70px 0;
}

.section-head {
  margin-bottom: 18px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card,
.member-card,
.contact-box {
  background: rgba(16, 23, 39, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card {
  padding: 14px;
}

.thumb {
  height: 130px;
  border: 1px solid #3e4a66;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #111727;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

time {
  display: inline-block;
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.member-more-wrap {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.member-card {
  padding: 14px;
  text-align: center;
}

.member-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #3d4863;
  background: #111727;
  color: var(--primary-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-link:hover {
  background: #182036;
  color: #a0ecff;
  transform: translateY(-1px);
}

.avatar {
  height: 180px;
  border: 1px solid #3e4a66;
  border-radius: 12px;
  overflow: hidden;
  background: #111727;
  margin-bottom: 10px;
}

.member-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-box {
  padding: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: linear-gradient(110deg, #111727 0%, #172039 100%);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(9, 13, 24, 0.78);
}

.footer-wrap {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.footer-text-logo {
  padding: 10px;
  width: min(220px, 78vw);
  height: auto;
  display: block;
  opacity: 0.95;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.member-page .hero {
  min-height: auto;
}

.member-hero {
  position: relative;
  overflow: hidden;
  padding-top: 56px;
  padding-bottom: 30px;
}

.member-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(127, 91, 255, 0.1) 0%, rgba(63, 225, 255, 0.06) 56%, rgba(7, 10, 18, 0) 100%);
  pointer-events: none;
}

.member-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 225, 255, 0.24) 0%, rgba(63, 225, 255, 0) 72%);
  pointer-events: none;
}

.member-hero .container {
  position: relative;
  z-index: 1;
}

.member-hero-lead {
  max-width: 760px;
}

.member-tools {
  background: linear-gradient(145deg, rgba(18, 27, 45, 0.88) 0%, rgba(11, 16, 30, 0.92) 100%);
  border: 1px solid #2e3c5b;
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}

.tool-block {
  display: grid;
  gap: 8px;
  min-width: 240px;
  flex: 1;
}

.tool-title {
  margin: 0;
  color: #d3dcf0;
  font-size: 0.86rem;
  font-weight: 700;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border: 1px solid #36415c;
  background: rgba(19, 27, 47, 0.88);
  color: #d6deef;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.filter-chip:hover {
  transform: translateY(-2px);
  border-color: #6e85b3;
}

.filter-chip.is-active {
  background: linear-gradient(90deg, rgba(76, 221, 255, 0.95), rgba(127, 91, 255, 0.9));
  border-color: transparent;
  color: #08111f;
}

.member-summary p {
  margin: 0 0 12px;
  font-size: 0.9rem;
}

.member-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.member-hub-card {
  border: 1px solid #2b3854;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(18, 26, 45, 0.95) 0%, rgba(14, 21, 36, 0.95) 100%);
  text-align: left;
  color: inherit;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  animation: cardPop 0.45s ease forwards;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.member-hub-card:hover {
  transform: translateY(-4px);
  border-color: #6581b5;
  box-shadow: 0 12px 28px rgba(2, 6, 15, 0.45);
}

.member-hub-image-wrap {
  height: 190px;
  border-bottom: 1px solid #2a3348;
  overflow: hidden;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

.member-hub-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

.member-hub-card:hover .member-hub-image {
  transform: scale(1.04);
}

.member-hub-body {
  padding: 12px;
}

.member-hub-department {
  margin: 0;
  color: var(--primary-strong);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.member-hub-body h3 {
  margin: 6px 0 4px;
  font-size: 1.06rem;
}

.member-hub-handle {
  margin: 0;
  font-size: 0.86rem;
  color: #b5c0da;
}

.empty-state {
  margin-top: 12px;
  padding: 16px;
  border: 1px dashed #3a4460;
  border-radius: 12px;
  text-align: center;
}

.member-summary {
  display: flex;
  justify-content: flex-end;
}

.member-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
}

.member-modal[hidden] {
  display: none;
}

.member-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(2px);
}

.member-modal-card {
  position: relative;
  width: min(740px, 100%);
  border: 1px solid #32405f;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(17, 24, 41, 0.98) 0%, rgba(11, 16, 29, 0.98) 100%);
  padding: 20px;
  z-index: 1;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #3b4765;
  background: #172036;
  color: #dce4f6;
  font-size: 1.2rem;
  cursor: pointer;
}

.member-modal-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-right: 38px;
}

.member-modal-image {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  border: 1px solid #3a4664;
  object-fit: cover;
}

.badge-department {
  width: fit-content;
  margin: 0 0 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(63, 225, 255, 0.15);
  color: #9bedff;
  font-size: 0.76rem;
  font-weight: 800;
}

.modal-bio {
  margin: 14px 0;
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.modal-open {
  overflow: hidden;
}

@keyframes cardPop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(63, 225, 255, 0);
  }
  50% {
    box-shadow: 0 0 44px rgba(63, 225, 255, 0.45);
  }
}

@keyframes scrollLine {
  0% {
    transform: translate(-50%, 0);
    opacity: 0.2;
  }
  50% {
    transform: translate(-50%, 4px);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 8px);
    opacity: 0.2;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shootingStar {
  0% {
    opacity: 0.25;
    transform: translate(0, 0) rotate(147deg) scaleX(0.55);
  }
  8% {
    opacity: 1;
  }
  65% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(-130vw, 78vh) rotate(147deg) scaleX(1);
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .news-grid,
  .member-grid {
    grid-template-columns: 1fr;
  }

  .member-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-tools {
    display: grid;
  }

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: clamp(260px, 46vh, 420px);
    background-size: cover;
    background-position: center;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: center;
  }

  .member-modal-head {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .member-hub-grid {
    grid-template-columns: 1fr;
  }

  .member-modal {
    padding: 10px;
  }

  .member-modal-card {
    padding: 16px;
  }

  .member-modal-head {
    flex-direction: column;
    padding-right: 0;
  }
}