/* ==========================================================================
   iTouch | 大阪経済法科大学 公認ITサークル 公式サイト
   Structural Reference: https://www.amiotsuka.com/
   Strict 4-Color System: White (#FFFFFF), Black (#0F172A), Gray (#F1F5F9 / #64748B), Navy (#1E3A8A)
   (ネイビーの色違い・グラデーション・絵文字・横スクロール一切不使用)
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --black: #0F172A;
  --gray-bg: #F1F5F9;
  --gray: #64748B;
  --navy: #1E3A8A;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--gray-bg);
  background-image:
    radial-gradient(1100px 540px at 12% -4%, rgba(30, 58, 138, 0.075), transparent 70%),
    radial-gradient(900px 500px at 90% 8%, rgba(30, 58, 138, 0.05), transparent 65%),
    linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    32px 32px,
    32px 32px;
  background-attachment: fixed;
  color: var(--black);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.75;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   1. Floating Pill Header (amiotsuka.com .siteHeader & .nav)
   ========================================================================== */
.siteHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px clamp(16px, 4vw, 48px);
}

.siteHeader::before {
  content: "";
  position: absolute;
  inset: 0 0 -18px 0;
  background: linear-gradient(180deg, var(--gray-bg) 65%, transparent);
  pointer-events: none;
  z-index: -1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--black);
  padding: 6px 16px 6px 8px;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.brand:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--black);
}

.brandBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.brandLogo {
  color: var(--black);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
}

.brandSub {
  font-size: 10px;
  font-weight: 800;
  color: var(--gray);
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--black);
  padding: 5px;
}

.nav a {
  border-radius: 999px;
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  min-width: 96px;
  padding: 9px 14px;
  text-align: center;
  white-space: nowrap;
  transition: background 0.14s ease, color 0.14s ease, transform 0.14s ease;
}

.nav a:hover {
  background: var(--gray-bg);
  transform: translateY(-1px);
}

.nav a.isActive {
  background: var(--navy);
  color: var(--white);
}

.nav a.navAdminSecret {
  display: none;
}

.nav a.navAdminSecret.isUnlocked {
  display: inline-block;
}

.navDrawerHead,
.navScrim,
.navToggle {
  display: none;
}

/* Mobile Drawer (amiotsuka.com @media max-width: 920px) */
@media (max-width: 960px) {
  .siteHeader {
    padding: 12px 14px;
  }

  .brandSub {
    display: none;
  }

  .navToggle {
    margin-left: auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 46px;
    height: 40px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 999px;
    box-shadow: 3px 3px 0 var(--black);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }

  .navToggleBar {
    display: block;
    width: 18px;
    height: 2.5px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.18s ease, opacity 0.12s ease;
  }

  .navOpen .navToggle .navToggleBar:first-child {
    transform: translateY(6.5px) rotate(45deg);
  }
  .navOpen .navToggle .navToggleBar:nth-child(2) {
    opacity: 0;
  }
  .navOpen .navToggle .navToggleBar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .navScrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 45;
  }

  .navOpen .navScrim {
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 310px);
    background: var(--white);
    border: none;
    border-left: 3px solid var(--black);
    border-radius: 0;
    box-shadow: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px 16px 28px;
    transform: translateX(105%);
    transition: transform 0.22s ease;
    z-index: 50;
    overflow-y: auto;
  }

  .navOpen .nav {
    transform: none;
  }

  .navDrawerHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px dashed var(--gray);
    padding: 2px 4px 12px;
    margin-bottom: 8px;
  }

  .navDrawerTitle {
    font-size: 20px;
    font-weight: 900;
    color: var(--black);
  }

  .navClose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--black);
    font-size: 18px;
    font-weight: 900;
    color: var(--black);
    cursor: pointer;
  }

  .nav a {
    border: 2px solid var(--black);
    border-radius: 14px;
    font-size: 14.5px;
    padding: 12px 16px;
    text-align: left;
    width: 100%;
  }
}

/* ==========================================================================
   2. View Container & Section Titles (amiotsuka.com .deckTitle)
   ========================================================================== */
.mainWrap {
  flex: 1 1 auto;
  padding-top: 96px;
}

@media (max-width: 820px) {
  .mainWrap {
    padding-top: 78px;
  }
}

.pageView {
  display: none;
  animation: fadeIn 0.22s ease-out;
}

.pageView.isActive {
  display: block;
}

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

.sectionWrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 28px);
}

.deckTitle {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--black);
  text-transform: uppercase;
}

.deckTitle span {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--black);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--black);
  padding: 3px 10px;
}

.pageHero {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 28px) 12px;
}

.pageKicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--navy);
  text-transform: uppercase;
}

.pageHero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.25;
  color: var(--black);
}

.pageLead {
  margin: 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--gray);
  font-weight: 600;
}

/* ==========================================================================
   3. HOME: PICK UP Showcase & 01-05 Thumbnail Switcher (amiotsuka.com .nwc)
   ========================================================================== */
.pickupCard {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--black);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 340px;
}

.pickupMedia {
  position: relative;
  background: var(--black);
  border-right: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
}

.pickupMedia img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  cursor: pointer;
}

.pickupBody {
  padding: clamp(20px, 3.2vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.pickupMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pickupTag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--black);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 11px;
}

.pickupDate {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gray);
}

.pickupTitle {
  margin: 8px 0 0;
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 900;
  line-height: 1.4;
  color: var(--black);
}

.pickupDesc {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
  font-weight: 600;
}

.pickupActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 820px) {
  .pickupCard {
    grid-template-columns: 1fr;
  }
  .pickupMedia {
    border-right: 0;
    border-bottom: 3px solid var(--black);
    aspect-ratio: 16 / 10;
  }
}

/* 01-05 Thumbnail Selector Grid (amiotsuka.com .nwcThumbs) */
.nwcThumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.nwcT {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.nwcTp {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--black);
  padding: 10px 12px;
  min-height: 44px;
  opacity: 0.75;
  transition: opacity 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.nwcT:hover .nwcTp {
  opacity: 1;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--black);
}

.nwcT.on .nwcTp {
  opacity: 1;
  border-width: 3px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--black);
}

.nwcTn {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--black);
}

.nwcT.on .nwcTn {
  color: var(--white);
}

@media (max-width: 720px) {
  .nwcThumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }
  .nwcTp {
    padding: 8px 6px;
    min-height: 40px;
  }
}

.homeIntro {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px clamp(16px, 4vw, 28px) 8px;
}

.homeIntro.homeIntroTop {
  padding-top: 22px;
  padding-bottom: 10px;
}

.homeIntro p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  color: var(--black);
}

/* ==========================================================================
   4. HOME: STORE / PRODUCTS Shelf (amiotsuka.com .storeShelf & .storeGrid)
   ========================================================================== */
.storeShelf {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 28px) 18px;
}

.storeTitle {
  margin: 0 0 4px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  line-height: 1.3;
  color: var(--black);
}

.storeLead {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--gray);
}

.storeGrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.storeCard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--black);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.storeCard:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--black);
}

.storePic {
  position: relative;
  aspect-ratio: 16 / 10;
  border-bottom: 2px solid var(--black);
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.storePic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.2s ease;
}

.storePic img[data-lightbox],
.pickupMedia img[data-lightbox] {
  cursor: zoom-in;
}

.storePic img[data-lightbox]:hover {
  transform: scale(1.03);
}

.storePicBanner {
  width: 100%;
  height: 100%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
}

.storePicBanner strong {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.storePicBanner small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-top: 4px;
}

.storeBody {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 16px 18px 18px;
}

.storeBody h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
}

.storeSub {
  margin: 0;
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
  color: var(--gray);
}

.storePrice {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 900;
  color: var(--navy);
}

.storeCtas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.storeCta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  box-shadow: 2px 2px 0 var(--black);
  font-size: 12px;
  font-weight: 900;
  padding: 8px 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.storeCta.isPrimary {
  background: var(--navy);
  color: var(--white);
}

.storeCta.isDisabled {
  background: var(--gray-bg);
  color: var(--gray);
  cursor: not-allowed;
  box-shadow: none;
}

.storeCta:not(.isDisabled):hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--black);
}

@media (max-width: 1000px) {
  .storeGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .storeGrid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   5. HOME: 館内案内 Directory Deck (amiotsuka.com .deck)
   ========================================================================== */
.deck {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 28px) 42px;
}

.deck ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.deck li {
  display: flex;
}

.deck a {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--black);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.deck a:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--black);
}

.deck .deckTopBar {
  height: 10px;
  background: var(--navy);
  border-bottom: 2px solid var(--black);
}

.deck .inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 14px 16px 16px;
}

.deck .plate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deck .nm {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--black);
}

.deck .nm small {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--navy);
}

.deck .go {
  font-size: 16px;
  font-weight: 900;
  color: var(--navy);
  transition: transform 0.16s ease;
}

.deck a:hover .go {
  transform: translateX(4px);
}

.deck .ds {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.75;
  color: var(--gray);
}

@media (max-width: 900px) {
  .deck ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .deck ul {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   6. HOME: FactoryPulse Dashboard Card (amiotsuka.com .FactoryPulse_card)
   ========================================================================== */
.pulseWrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px) 52px;
}

.pulseCard {
  display: flex;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--black);
  overflow: hidden;
}

.pulseStripe {
  flex: 0 0 14px;
  border-right: 2px solid var(--black);
  background: var(--navy);
}

.pulseInner {
  flex: 1 1 auto;
  min-width: 0;
  padding: 22px clamp(16px, 3vw, 28px);
}

.pulseTop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: end;
}

.pulseLabel {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gray);
  margin: 0 0 6px;
}

.pulseBig {
  margin: 0;
  font-weight: 900;
  line-height: 1;
  font-size: clamp(44px, 8vw, 72px);
  color: var(--black);
}

.pulseBig small {
  font-size: 16px;
  letter-spacing: 0.08em;
  margin-left: 6px;
}

.pulsePace {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--black);
}

.pulseDot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--black);
  flex-shrink: 0;
}

.pulseBreakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pulseStatRow {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pulseStatHead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
}

.pulseStatHead strong {
  font-weight: 900;
  color: var(--black);
  letter-spacing: 0.04em;
}

.pulseStatHead span {
  font-weight: 800;
  color: var(--gray);
  font-size: 11.5px;
}

.pulseBarTrack {
  display: flex;
  height: 24px;
  width: 100%;
  border: 2px solid var(--black);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--black);
  overflow: hidden;
  background: var(--gray-bg);
}

.pulseBarFill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 11px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.pulseBarFill + .pulseBarFill {
  border-left: 2px solid var(--black);
}

/* ACTIVITY PULSE 割合バー専用カラー（視認性向上のためのデータ可視化パレット） */
.isFacBiz {
  background: #2563EB;
}
.isFacEcon {
  background: #059669;
}
.isFacIntl {
  background: #D97706;
}
.isFacLaw {
  background: #7C3AED;
}

.isGrade1 {
  background: #0D9488;
}
.isGrade2 {
  background: #4F46E5;
}
.isGrade3 {
  background: #EA580C;
}
.isGrade4 {
  background: #DB2777;
}

.isMale {
  background: #0284C7;
}
.isFemale {
  background: #E11D48;
}

.pulseLegend {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.pulseLegend li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.pulseLegend li b {
  font-weight: 900;
}

.pulseLegend li small {
  font-size: 11px;
  font-weight: 800;
  color: var(--gray);
}

.pulseLegend li.isZero {
  color: var(--gray);
  opacity: 0.65;
}

.pulseSwatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1.5px solid var(--black);
  flex-shrink: 0;
}

.pulseFacts {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 2px dashed var(--gray);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pulseFacts li {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.5;
}

.pulseFacts b {
  display: block;
  font-size: 20px;
  color: var(--black);
  font-weight: 900;
  margin-bottom: 2px;
}

@media (max-width: 720px) {
  .pulseTop {
    grid-template-columns: 1fr;
  }
  .pulseFacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   7. Filter Pills & Card Grids (/achievements, /activities, /join, /business)
   ========================================================================== */
.filterRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filterChip {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--black);
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 16px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.filterChip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--black);
}

.filterChip.isActive {
  background: var(--navy);
  color: var(--white);
}

/* Profile / Status Panel (amiotsuka.com .profilePanel & .pressFacts) */
.pressFacts {
  border: 2px solid var(--black);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--black);
  background: var(--white);
  display: grid;
  margin: 0 0 28px;
  overflow: hidden;
}

.pressFacts div {
  border-bottom: 2px dashed var(--gray-bg);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 14px 20px;
  align-items: baseline;
}

.pressFacts div:last-child {
  border-bottom: 0;
}

.pressFacts dt {
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.pressFacts dd {
  color: var(--black);
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
}

@media (max-width: 640px) {
  .pressFacts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* RPG Item / Roadmap / Skill Cards (amiotsuka.com .rpgItem) */
.cardGrid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cardGrid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .cardGrid2,
  .cardGrid3 {
    grid-template-columns: 1fr;
  }
}

.neoCard {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--black);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.neoCardTag {
  display: inline-block;
  align-self: flex-start;
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--black);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 3px 11px;
  margin-bottom: 10px;
}

.neoCard h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.4;
}

.neoCardSub {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gray);
}

.neoCardBody {
  border-top: 2px dashed var(--gray-bg);
  padding-top: 12px;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--black);
}

.neoList {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.8;
}

/* Accordion Details (amiotsuka.com .storyCard) */
.storyList {
  display: grid;
  gap: 14px;
}

.storyCard {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--black);
  overflow: hidden;
}

.storyCard summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 20px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
  font-size: 15.5px;
  color: var(--black);
}

.storyCard summary::-webkit-details-marker {
  display: none;
}

.storyCard summary::after {
  content: "▼";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--navy);
  transition: transform 0.18s ease;
}

.storyCard[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.epNum {
  background: var(--navy);
  color: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 9px;
  flex-shrink: 0;
}

.storyBody {
  background: var(--gray-bg);
  border-top: 2px dashed var(--black);
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--black);
}

/* Advisor Profile Row inside Card */
.advisorRow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.advisorAvatar {
  width: 76px;
  height: 92px;
  border: 2px solid var(--black);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--black);
  object-fit: cover;
  flex-shrink: 0;
}

/* ==========================================================================
   8. Inquiry Form (amiotsuka.com .askSection & .askFormBox)
   ========================================================================== */
.askSection {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .askSection {
    grid-template-columns: 1fr;
  }
}

.askFormBox {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--black);
  padding: 28px clamp(18px, 3vw, 32px);
}

.askForm {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.askField {
  display: grid;
  gap: 8px;
}

.askField label,
.askField legend {
  color: var(--black);
  font-size: 14.5px;
  font-weight: 900;
}

.askChoices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.askChoice {
  position: relative;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--black);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 15px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.askChoice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.askChoice.isOn {
  background: var(--navy);
  color: var(--white);
}

.askForm input[type="text"],
.askForm input[type="email"],
.askForm input[type="password"],
.askForm input[type="url"],
.askForm input[type="date"],
.askForm input[type="number"],
.askForm select,
.askForm textarea {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 10px;
  color: var(--black);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
  padding: 11px 14px;
  width: 100%;
}

.askForm input:focus,
.askForm select:focus,
.askForm textarea:focus {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
}

.askForm input[readonly] {
  background: var(--gray-bg);
  color: var(--gray);
  cursor: default;
}

.guildBox {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--navy);
  padding: 26px;
}

.guildBox h3 {
  margin: 8px 0 10px;
  font-size: 20px;
  color: var(--white);
}

.guildBox p {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray-bg);
}

/* ==========================================================================
   9. Footer (amiotsuka.com .siteFooter)
   ========================================================================== */
.siteFooter {
  background: var(--white);
  border-top: 3px solid var(--black);
  color: var(--black);
  margin-top: 48px;
  padding: 42px 20px 36px;
  text-align: center;
}

.footerNav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.footerNav a {
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.footerNav a:hover {
  color: var(--navy);
}

.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}

.footerLinks a {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--black);
  color: var(--black);
  font-size: 12.5px;
  font-weight: 900;
  padding: 8px 16px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.footerLinks a:hover {
  background: var(--navy);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--black);
}

.footerTech {
  max-width: 780px;
  margin: 0 auto 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.7;
}

.footerCopy {
  color: var(--gray);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

/* ==========================================================================
   10. Image Lightbox Modal
   ========================================================================== */
.lightboxModal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightboxModal.isOpen {
  display: flex;
}

.lightboxBox {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--black);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lightboxHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 2px solid var(--black);
  background: var(--gray-bg);
}

.lightboxHead strong {
  font-size: 14px;
  font-weight: 900;
}

.lightboxBody {
  padding: 16px;
  background: var(--black);
  overflow: auto;
  display: flex;
  justify-content: center;
}

.lightboxBody img {
  max-height: 74vh;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   11. Achievement Status Badges (Strict 4-Color System)
   ========================================================================== */
.achvMetaRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.achvMetaRow .neoCardTag {
  margin-bottom: 0;
}

.achvStateBadge {
  display: inline-block;
  border: 2px solid var(--black);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  background: var(--gray-bg);
  color: var(--black);
}

.achvStateBadge.isUpcoming {
  background: var(--black);
  color: var(--white);
}

/* ==========================================================================
   12. Admin Dashboard Console (#view-admin - Strict 4-Color System)
   ========================================================================== */
.adminModeBanner {
  background: var(--gray-bg);
  border: 2px solid var(--black);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--black);
  padding: 16px 20px;
  margin-bottom: 22px;
}

.adminNotice {
  background: var(--gray-bg);
  border: 2px solid var(--black);
  border-left: 8px solid var(--navy);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.65;
}

#adminGlobalToast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 220;
  max-width: min(460px, calc(100vw - 32px));
  background: var(--white);
  border: 3px solid var(--black);
  border-left: 10px solid var(--navy);
  box-shadow: 6px 6px 0 var(--black);
  margin: 0 !important;
}

#adminGlobalToast.isError {
  background: var(--black);
  color: var(--white);
  border-left-color: var(--navy);
}

.adminModalError {
  margin-top: 12px;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  border-left: 8px solid var(--navy);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.adminLocalPreviewWrap {
  border-top: 2px dashed var(--gray);
  padding-top: 16px;
}

.adminLocalPreviewWrap code,
.askFormBox code {
  background: var(--gray-bg);
  border: 1px solid var(--black);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 800;
}

.adminTopBar {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 14px;
  box-shadow: 5px 5px 0 var(--black);
  padding: 14px 20px;
  margin-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.adminUserMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.adminStatCard {
  padding: 18px 20px;
}

.adminStatNum {
  margin: 4px 0 4px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--black);
}

.adminStatNum small {
  font-size: 14px;
  margin-left: 4px;
}

.adminStatText {
  margin: 6px 0 6px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--navy);
}

.adminTabPanel {
  display: none;
}

.adminTabPanel.isActive {
  display: block;
}

/* Admin Menu Dropdown Selector */
.adminTabSelectWrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 22px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--black);
  padding: 12px 16px;
}

.adminTabSelectLabel {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--navy);
  white-space: nowrap;
}

.adminTabSelect {
  flex: 1 1 260px;
  max-width: 420px;
  background: var(--gray-bg);
  border: 2px solid var(--black);
  border-radius: 10px;
  color: var(--black);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 900;
  padding: 10px 14px;
  cursor: pointer;
}

.adminTabSelect:focus {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
}

/* Toggle Switch (Strict 4-Color System) */
.adminToggleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--gray-bg);
  border: 2px solid var(--black);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.adminToggleText {
  min-width: 0;
  flex: 1 1 auto;
}

.adminToggleText strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--black);
}

.adminToggleText small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.5;
}

.toggleSwitch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.toggleSwitch.isCompact {
  width: 44px;
  height: 24px;
}

.toggleSwitch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.toggleSlider {
  position: absolute;
  inset: 0;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 999px;
  transition: background 0.18s ease;
}

.toggleSlider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray);
  border: 2px solid var(--black);
  transition: transform 0.18s ease, background 0.18s ease;
}

.toggleSwitch.isCompact .toggleSlider::before {
  width: 16px;
  height: 16px;
}

.toggleSwitch input:checked + .toggleSlider {
  background: var(--navy);
}

.toggleSwitch input:checked + .toggleSlider::before {
  transform: translateX(22px);
  background: var(--white);
}

.toggleSwitch.isCompact input:checked + .toggleSlider::before {
  transform: translateX(20px);
}

.toggleSwitch input:focus-visible + .toggleSlider {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.inlineToggleLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-bg);
  border: 2px solid var(--black);
  border-radius: 999px;
  padding: 4px 10px 4px 12px;
  cursor: pointer;
  user-select: none;
}

.inlineToggleText {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--black);
}

/* iOS-style Long-Press Drag & Drop Reordering for Achievements */
.adminSortHint {
  margin: -10px 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.6;
}

.adminRecordItem.isSortableAchv {
  cursor: grab;
  -webkit-touch-callout: none;
  user-select: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.adminRecordItem.isSortableAchv:active {
  cursor: grabbing;
}

.achvDragHandle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--gray);
  background: var(--gray-bg);
  border: 1.5px solid var(--black);
  border-radius: 999px;
  padding: 2px 8px;
}

@keyframes iosJiggle {
  0% {
    transform: rotate(-0.55deg);
  }
  50% {
    transform: rotate(0.55deg);
  }
  100% {
    transform: rotate(-0.55deg);
  }
}

.adminRecordList.isSortingList .adminRecordItem.isSortableAchv:not(.isDragFloating):not(.isDragPlaceholder) {
  animation: iosJiggle 0.24s ease-in-out infinite;
}

.adminRecordList.isSortingList .adminRecordItem.isSortableAchv:nth-child(even):not(.isDragFloating):not(.isDragPlaceholder) {
  animation-delay: -0.12s;
}

.adminRecordItem.isDragPlaceholder {
  background: var(--gray-bg);
  border: 2px dashed var(--navy);
  box-shadow: none;
  opacity: 0.65;
  pointer-events: none;
}

.adminRecordItem.isDragPlaceholder > * {
  visibility: hidden;
}

.adminRecordItem.isDragFloating {
  position: fixed;
  z-index: 200;
  margin: 0;
  pointer-events: none;
  transform: scale(1.02);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.24), 6px 6px 0 var(--navy);
  border-color: var(--navy);
  opacity: 0.96;
  animation: none !important;
}

.adminEditorLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .adminEditorLayout {
    grid-template-columns: 1fr;
  }
}

.adminPreviewPane {
  position: sticky;
  top: 96px;
}

.adminFormHead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.adminFormRow2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.adminFormRow3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.adminFormRow4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 780px) {
  .adminFormRow4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .adminFormRow2,
  .adminFormRow3 {
    grid-template-columns: 1fr;
  }
}

.adminCheckLabel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--gray-bg);
  border: 2px solid var(--black);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.adminCheckLabel input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--navy);
  flex-shrink: 0;
  cursor: pointer;
}

.adminCheckLabel strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  color: var(--black);
}

.adminCheckLabel small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.5;
}

.adminFieldHint {
  margin: -10px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.6;
}

.webpUploadBox {
  background: var(--gray-bg);
  border: 2px dashed var(--black);
  border-radius: 12px;
  padding: 14px;
}

.adminFileInput {
  width: 100%;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

.webpUploadMeta {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  line-height: 1.6;
}

.adminRecordList {
  display: grid;
  gap: 14px;
}

.adminRecordItem {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--black);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.adminRecordMain {
  flex: 1 1 380px;
  min-width: 0;
}

.adminRecordTags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.adminRecordTitle {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 900;
  color: var(--black);
  line-height: 1.45;
}

.adminRecordSub {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  line-height: 1.7;
}

.adminRecordActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.inqMessageBody {
  margin-top: 10px;
  background: var(--gray-bg);
  border: 2px solid var(--black);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  white-space: pre-wrap;
  line-height: 1.75;
}

.statusPill {
  display: inline-block;
  border: 2px solid var(--black);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  background: var(--white);
  color: var(--black);
}

.statusPill.isUnread {
  background: var(--navy);
  color: var(--white);
}

.statusPill.isProgress {
  background: var(--black);
  color: var(--white);
}

.statusPill.isResolved {
  background: var(--gray-bg);
  color: var(--gray);
}

/* Login Center Box, Controls Row, Accordions, and Edit Popup Modal */
.adminLoginWrap {
  max-width: 540px;
  margin: 0 auto;
}

.adminControlsRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 22px;
}

.adminUtilityActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adminAddAccordion {
  background: var(--white);
}

.adminAccordionBody {
  background: var(--white);
  border-top: 2px dashed var(--black);
  padding: 20px clamp(16px, 3vw, 26px) 24px;
}

/* Popup Modal for Editing & Deleting */
.adminModal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.adminModal.isOpen {
  display: flex;
}

.adminModalBox {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--black);
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.adminModalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--gray-bg);
  border-bottom: 2px solid var(--black);
}

.adminModalHead strong {
  font-size: 16px;
  font-weight: 900;
  color: var(--black);
}

.adminModalBody {
  padding: 20px clamp(16px, 3vw, 26px) 24px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.adminModalFooter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 2px dashed var(--gray);
}

.storeCta.isDanger {
  background: var(--black);
  color: var(--white);
}

.adminConfirmBox {
  max-width: 480px;
}

.adminInputWithBtn {
  display: flex;
  gap: 8px;
  align-items: center;
}

.adminInputWithBtn input {
  flex: 1 1 auto;
  min-width: 0;
}

.adminInputWithBtn .storeCta {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .nav a.navAdminSecret.isUnlocked {
    display: block;
  }
}

/* ==========================================================================
   13. Members Profile (#view-members - Strict 4-Color System)
   ========================================================================== */
.memberFilterToolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 820px) {
  .memberFilterToolbar {
    grid-template-columns: 1fr;
  }
}

.memberToolbarSelect,
.memberToolbarInput {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--black);
  color: var(--black);
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 14px;
}

.memberToolbarSelect:focus,
.memberToolbarInput:focus {
  outline: 3px solid var(--navy);
  outline-offset: 1px;
}

.memberCardHead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.memberCardHead .neoCardTag {
  margin-bottom: 0;
}

.memberStudentId {
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--black);
  background: var(--gray-bg);
  border: 2px solid var(--black);
  border-radius: 999px;
  padding: 2px 10px;
}

.memberAcademicLine {
  margin: 4px 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

.memberRoleLine {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
}

.memberCard.isClickable {
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.memberCard.isClickable:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--black);
}

.memberCard.isClickable:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.memberCardStats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 2px dashed var(--gray);
}

.memberStatChip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--gray-bg);
  border: 1.5px solid var(--black);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 800;
  color: var(--black);
}

.memberStatChip strong {
  color: var(--navy);
  font-weight: 900;
}

/* Member Detail Page (#view-member-detail) */
.memberDetailBackBar {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.memberDetailHero {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--black);
  padding: 26px clamp(18px, 3vw, 30px);
  margin-bottom: 28px;
}

.memberDetailHeroHead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.memberDetailHero h2 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 3.6vw, 32px);
  font-weight: 900;
  color: var(--black);
  line-height: 1.3;
}

.memberDetailMetaGrid {
  margin-top: 16px;
  margin-bottom: 0;
  box-shadow: none;
}

.memberDetailSection {
  margin-top: 30px;
}

.personalWorkMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.personalWorkMeta .neoCardTag {
  margin-bottom: 0;
}

.personalWorkBody {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Admin Personal Works Dynamic Editor */
.personalWorksEditorList {
  display: grid;
  gap: 12px;
}

.personalWorksEmptyHint {
  margin: 0;
  padding: 12px 14px;
  background: var(--gray-bg);
  border: 2px dashed var(--gray);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray);
}

.personalWorkEditorItem {
  background: var(--gray-bg);
  border: 2px solid var(--black);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.personalWorkEditorHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.personalWorkEditorHead strong {
  font-size: 13px;
  font-weight: 900;
  color: var(--navy);
}

.memberProjectsBox {
  border-top: 2px dashed var(--gray);
  padding-top: 12px;
  margin-top: 8px;
}

.memberProjectsTitle {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--black);
}

.memberProjList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.memberProjItem {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--gray-bg);
  border: 1.5px solid var(--black);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.5;
}

.involvementBadge {
  display: inline-block;
  flex-shrink: 0;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 8px;
  line-height: 1.3;
  white-space: nowrap;
}

.involvementBadge.isOrganizer {
  background: var(--navy);
  color: var(--white);
}

.involvementBadge.isParticipant {
  background: var(--white);
  color: var(--black);
}

.achvMembersLine {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1.5px dashed var(--gray);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--black);
}

.achvMembersLinkBtn {
  background: var(--gray-bg);
  border: 1.5px solid var(--black);
  border-radius: 999px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  cursor: pointer;
}

.achvMembersLinkBtn:hover {
  background: var(--navy);
  color: var(--white);
}

/* Admin Project Multi-Selector (関与なし / 運営・責任者 / 参加) */
.projPickerList {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 10px;
  background: var(--gray-bg);
  border: 2px solid var(--black);
  border-radius: 12px;
}

.projPickerRow {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.projPickerTitle {
  flex: 1 1 220px;
  font-size: 13px;
  font-weight: 800;
  color: var(--black);
  line-height: 1.45;
}

.projRoleGroup {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.projRoleOpt {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.3;
  padding: 5px 11px;
  cursor: pointer;
  user-select: none;
  appearance: none;
  -webkit-appearance: none;
}

.projRoleOpt:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.projRoleOpt.isSelectedNone {
  background: var(--gray-bg);
  color: var(--gray);
}

.projRoleOpt.isSelectedOrganizer {
  background: var(--navy);
  color: var(--white);
}

.projRoleOpt.isSelectedParticipant {
  background: var(--black);
  color: var(--white);
}
