:root {
  --bg: #06090f;
  --surface: rgba(8, 14, 22, 0.78);
  --border: rgba(255, 255, 255, 0.14);
  --text: #edf4ff;
  --muted: rgba(237, 244, 255, 0.72);
  --accent: #39d7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", "Segoe UI", "Noto Sans JP", sans-serif;
}

body.is-signage-mode .bottom-bar,
body.is-signage-mode .swipe-toolbar {
  display: none !important;
}

body.is-signage-mode .page {
  padding-top: 18px;
  padding-bottom: 18px;
}

#background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#dark-filter {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(57, 215, 255, 0.2), transparent 45%),
    linear-gradient(180deg, rgba(2, 4, 8, 0.52), rgba(2, 4, 8, 0.9));
  z-index: 1;
  pointer-events: none;
}

#pages-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 10;
}

#pages-container.is-looping-back {
  animation: loopBackToStart 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

#swipe-container {
  --page-count: 7;
  display: flex;
  width: calc(var(--page-count) * 100vw);
  height: 100dvh;
  transform: translateX(0);
  transition: transform 0.35s ease;
}

.page {
  width: 100vw;
  height: 100dvh;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 112px 18px 96px;
}

.page::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.swipe-toolbar {
  position: fixed;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(4, 8, 15, 0.78);
  backdrop-filter: blur(10px);
}

.toolbar-brand {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

#swipe-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.nav-pill {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 7px 12px;
  min-width: max-content;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-pill:hover,
.nav-pill:focus-visible,
.nav-pill.is-active {
  border-color: rgba(57, 215, 255, 0.62);
  color: #f5fcff;
  background: rgba(57, 215, 255, 0.16);
}

.toolbar-index {
  margin: 0;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  min-width: 2.6em;
  text-align: right;
}

.hero {
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(57, 215, 255, 0.22), transparent 55%),
    var(--surface);
  padding: 30px 22px;
  animation: fadeInUp 0.72s ease both;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  margin: 0;
  color: rgba(57, 215, 255, 0.96);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  font-weight: 700;
}

.hero h1,
.section-panel h2 {
  margin: 16px 0 0;
  font-size: clamp(1.8rem, 6vw, 3.7rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.lead,
.section-lead {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.95rem;
}

.section-lead code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  color: #e5f9ff;
  background: rgba(57, 215, 255, 0.12);
  border: 1px solid rgba(57, 215, 255, 0.35);
  border-radius: 6px;
  padding: 1px 6px;
}

.hero-ctas {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.cta {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, filter 0.22s ease, border-color 0.22s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-1px);
}

.cta-primary {
  background: var(--accent);
  color: #031219;
}

.cta-secondary {
  background: transparent;
  color: #f0f8ff;
  border-color: rgba(255, 255, 255, 0.32);
}

.hero-points {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}

.hero-points article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
  padding: 12px 14px;
}

.hero-points p {
  margin: 0;
  line-height: 1.5;
  color: var(--muted);
  font-size: 0.84rem;
}

.point-title {
  color: #ffffff;
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 20px;
  background: var(--surface);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  animation: fadeInUp 0.72s ease both;
}

.section-panel h2 {
  font-size: clamp(1.45rem, 5vw, 2.65rem);
}

.team-panel {
  padding-bottom: 30px;
}

.team-layout {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.team-stage-wrap {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  position: relative;
}

.team-scene {
  position: relative;
  width: min(100%, 680px);
  margin: 0 auto;
  aspect-ratio: 1.666 / 1;
  perspective: 1200px;
  cursor: pointer;
}

.team-card-wrapper {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s ease;
}

.team-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s ease;
  border-radius: 14px;
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.5);
}

.team-card.is-flipped {
  transform: rotateY(180deg);
}

.team-card-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  background-size: cover;
  background-position: center;
  background-color: rgba(3, 8, 14, 0.9);
}

.team-back {
  transform: rotateY(180deg);
}

.team-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.76rem;
  color: rgba(237, 244, 255, 0.75);
  letter-spacing: 0.06em;
}

.team-controls {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
}

.team-current-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(57, 215, 255, 0.92);
  font-weight: 700;
}

.team-current-name {
  margin: 8px 0 0;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.team-current-role {
  margin: 6px 0 0;
  font-size: 0.79rem;
  color: rgba(57, 215, 255, 0.92);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.team-count {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.team-btn {
  margin-top: 12px;
  width: 100%;
  appearance: none;
  border-radius: 10px;
  min-height: 42px;
  border: 1px solid rgba(57, 215, 255, 0.68);
  background: linear-gradient(135deg, #18b6db, #5ce8ff);
  color: #07141c;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.team-btn:hover,
.team-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.team-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
}

.team-note.is-error {
  color: #ffcbcb;
}

.stage-close {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(7, 10, 16, 0.42);
  color: transparent;
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.01px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.stage-close::before,
.stage-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.8px;
  border-radius: 2px;
  background: rgba(244, 251, 255, 0.82);
}

.stage-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.stage-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.stage-close:hover,
.stage-close:focus-visible {
  background: rgba(7, 10, 16, 0.56);
  border-color: rgba(255, 255, 255, 0.28);
}

.stage-close:hover::before,
.stage-close:hover::after,
.stage-close:focus-visible::before,
.stage-close:focus-visible::after {
  background: rgba(244, 251, 255, 0.95);
}

.team-stage-wrap.is-expanded .team-stage-close,
.member-stage-wrap.is-expanded .member-stage-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: 10px;
  margin: 0;
  z-index: 4;
}

.team-stage-wrap.is-expanded,
.member-stage-wrap.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 1200;
  margin: 0;
  border-radius: 0;
  padding: 0;
  background: rgba(4, 8, 14, 0.94);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  overflow: visible;
}

.team-stage-wrap.is-expanded .team-scene {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  /* mobile: meishi is rotated 90deg, so fit by both height and width */
  width: min(calc((100% - 24px) * 1.666), calc(100dvh - 190px), 1120px);
}

.member-stage-wrap.is-expanded .member-scene {
  /* member card rotates up to 30deg, so use conservative fit to avoid clipping */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: min(calc(100% - 24px), calc((100dvh - 250px) * 0.585), 868px);
}

.team-stage-wrap.is-expanded .team-hint,
.member-stage-wrap.is-expanded .member-hint {
  position: absolute;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  width: calc(100% - 24px);
  z-index: 3;
  pointer-events: none;
}

.team-list-wrap {
  margin-top: 14px;
}

.team-list-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(57, 215, 255, 0.94);
}

.team-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.team-list-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #f5fcff;
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
}

.team-list-btn.is-active {
  border-color: rgba(57, 215, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(57, 215, 255, 0.3) inset;
}

.team-list-btn .team-list-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
  word-break: break-word;
}

.team-list-btn .team-list-role {
  display: block;
  margin-top: 4px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(57, 215, 255, 0.92);
}

.member-panel {
  padding-bottom: 30px;
}

.member-layout {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.member-stage-wrap {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  position: relative;
}

.member-scene {
  position: relative;
  width: min(100%, 868px);
  margin: 0 auto;
  aspect-ratio: 868 / 1213;
  perspective: 1200px;
  cursor: pointer;
}

.member-card-wrapper {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s ease;
}

.member-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s ease;
  border-radius: 14px;
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.5);
}

.member-card.is-flipped {
  transform: rotateY(180deg);
}

.member-card-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  backface-visibility: hidden;
  background-size: cover;
  background-position: center;
  background-color: rgba(3, 8, 14, 0.9);
}

.member-back {
  transform: rotateY(180deg);
}

.member-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.76rem;
  color: rgba(237, 244, 255, 0.75);
  letter-spacing: 0.06em;
}

.member-controls {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
}

.member-current-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(57, 215, 255, 0.92);
  font-weight: 700;
}

.member-current-name {
  margin: 8px 0 0;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.member-count {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.member-buttons {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.member-btn {
  appearance: none;
  border-radius: 10px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #f5fcff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.member-btn:hover,
.member-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(57, 215, 255, 0.55);
}

.member-btn-primary {
  background: linear-gradient(135deg, #18b6db, #5ce8ff);
  color: #07141c;
  border-color: rgba(57, 215, 255, 0.68);
}

.member-btn-secondary {
  background: rgba(255, 255, 255, 0.02);
}

.member-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
}

.member-note.is-error {
  color: #ffcbcb;
}

.member-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

.member-modal[hidden] {
  display: none;
}

.member-modal-panel {
  width: min(920px, 100%);
  max-height: min(80dvh, 720px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(8, 12, 20, 0.96);
  padding: 14px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.member-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.member-modal-head h3 {
  margin: 0;
  font-size: 1rem;
}

.member-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: #f5fcff;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 14px;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  cursor: pointer;
}

.member-gallery {
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-right: 4px;
}

.member-gallery-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
  text-align: left;
  color: #f6fcff;
  cursor: pointer;
}

.member-gallery-item.is-active {
  border-color: rgba(57, 215, 255, 0.66);
  box-shadow: 0 0 0 1px rgba(57, 215, 255, 0.33) inset;
}

.member-gallery-item img {
  width: 100%;
  aspect-ratio: 868 / 1213;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: block;
}

.member-gallery-item p {
  margin: 7px 2px 1px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(237, 244, 255, 0.9);
  word-break: break-word;
}

.work-grid,
.service-grid,
.company-grid {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.work-card,
.service-card,
.company-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.23);
  padding: 12px;
}

.work-image {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
  display: block;
  background: rgba(3, 8, 14, 0.75);
}

.work-card h3,
.service-card h3,
.company-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.work-card p,
.service-card p,
.company-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.service-card h3 {
  color: rgba(57, 215, 255, 0.95);
  font-size: 0.78rem;
  letter-spacing: 0.11em;
}

.company-label {
  margin-top: 16px;
  color: rgba(57, 215, 255, 0.93) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.13em;
  font-weight: 700;
}

.company-label:first-child {
  margin-top: 0;
}

.signage-controls {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.signage-btn {
  appearance: none;
  border-radius: 10px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #f5fcff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.signage-btn:hover,
.signage-btn:focus-visible {
  transform: translateY(-1px);
}

.signage-btn-primary {
  background: linear-gradient(135deg, #18b6db, #5ce8ff);
  color: #07141c;
  border-color: rgba(57, 215, 255, 0.68);
}

.signage-btn-secondary {
  background: rgba(255, 255, 255, 0.02);
}

.contact-form {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.26);
  padding: 14px;
}

.contact-grid {
  display: grid;
  gap: 10px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.contact-field span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(2, 6, 12, 0.72);
  color: #f4faff;
  font: inherit;
  padding: 11px 12px;
}

.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 1px solid rgba(57, 215, 255, 0.78);
  border-color: rgba(57, 215, 255, 0.78);
}

.contact-submit {
  appearance: none;
  border: 1px solid rgba(57, 215, 255, 0.65);
  border-radius: 10px;
  min-height: 46px;
  width: 100%;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #06121a;
  background: linear-gradient(135deg, #1ab8dc, #56e7ff);
  cursor: pointer;
  transition: filter 0.2s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  filter: brightness(1.07);
}

.contact-status {
  margin: 10px 0 0;
  min-height: 1.2em;
  color: #d7f6ff;
  font-size: 0.83rem;
}

.contact-status.is-error {
  color: #ffc7c7;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loopBackToStart {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  45% {
    transform: scale(0.988);
    filter: brightness(1.14);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@media (min-width: 700px) {
  .swipe-toolbar {
    top: 18px;
    left: 24px;
    right: 24px;
  }

  .page {
    padding: 128px 34px 42px 220px;
  }

  .hero,
  .section-panel {
    padding: 40px;
  }

  .hero-ctas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 470px;
  }

  .hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .team-scene {
    width: min(100%, 760px);
  }

  .team-stage-wrap.is-expanded,
  .member-stage-wrap.is-expanded {
    inset: 10px;
    border-radius: 22px;
    padding: 0;
  }

  .team-stage-wrap.is-expanded .team-scene {
    /* desktop: meishi is horizontal */
    width: calc(100% - 36px);
  }

  .member-stage-wrap.is-expanded .member-scene {
    width: min(calc(100% - 36px), calc((100dvh - 260px) * 0.585), 868px);
  }

  .team-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 260px;
  }

  .member-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .member-scene {
    width: min(100%, 868px);
  }

  .member-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
