/* =============================================
   ZIGMØ Lab — style.css
   Dark + Mint / System fonts / No external deps
============================================= */

/* =============================================
   1. Variables & Reset
============================================= */
:root {
  --bg:          #0a0a0c;
  --bg-1:        #111114;
  --bg-2:        #18181d;
  --bg-3:        #222228;

  --text:        rgba(255,255,255,0.88);
  --text-2:      rgba(255,255,255,0.52);
  --text-3:      rgba(255,255,255,0.28);

  --mint:        #4ecfb3;
  --mint-dim:    rgba(78,207,179,0.15);
  --mint-glow:   rgba(78,207,179,0.07);

  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.14);

  --font-en: Georgia, "Times New Roman", serif;
  --font-ja: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN",
             "Hiragino Sans", Meiryo, sans-serif;

  --r:    8px;
  --r-lg: 14px;
  --r-xl: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =============================================
   2. Shared: Site Header Nav
============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 52px;
  display: flex;
  align-items: center;
  background: rgba(10,10,12,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  font-family: var(--font-en);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--text);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  transition: color .18s;
}
.nav-logo:hover { color: var(--mint); text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 8px;
  gap: 0;
  overflow-x: auto;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 18px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--text-2);
  transition: color .18s;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 18px; right: 18px;
  height: 2px;
  background: var(--mint);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-links a:hover,
.nav-links a[aria-current] { color: var(--text); text-decoration: none; }
.nav-links a:hover::after,
.nav-links a[aria-current]::after { transform: scaleX(1); }

/* =============================================
   3. Shared: Page Layout
============================================= */
.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.page-head {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.kicker {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 8px;
}

.page-title {
  font-family: var(--font-en);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: normal;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--text);
}

.page-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
}

/* =============================================
   4. HOME
============================================= */
.home { height: 100vh; height: 100dvh; overflow: hidden; }

.home-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
}

/* 右グラデオーバーレイ */
.home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(10,10,12,.5) 55%,
    rgba(10,10,12,.92) 100%
  );
  pointer-events: none;
}

.home-nav {
  position: absolute;
  right: clamp(28px, 5vw, 88px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.home-logo {
  font-family: var(--font-en);
  font-weight: normal;
  text-align: right;
  margin-bottom: 32px;
  line-height: 1.1;
}
.home-logo-small {
  display: block;
  font-size: clamp(13px, 1.4vw, 18px);
  color: rgba(255,255,255,.4);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.home-logo-main {
  display: block;
  font-size: clamp(40px, 5.5vw, 76px);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.93);
  text-shadow: 0 4px 32px rgba(0,0,0,.5);
}

.home-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.home-menu a {
  font-family: var(--font-en);
  font-size: clamp(26px, 3.4vw, 50px);
  color: rgba(255,255,255,.7);
  letter-spacing: 0.03em;
  line-height: 1.4;
  display: inline-block;
  transition: color .2s, transform .2s;
}
.home-menu a:hover {
  color: var(--mint);
  transform: translateX(-8px);
  text-decoration: none;
}

@media (max-width: 600px) {
  .home::after { background: rgba(10,10,12,.6); }
  .home-nav {
    left: 50%; right: auto;
    transform: translate(-50%, -50%);
    align-items: center;
  }
  .home-logo { text-align: center; }
  .home-menu { align-items: center; }
  .home-menu a:hover { transform: none; }
}

/* =============================================
   5. ABOUT
============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 40px;
  align-items: start;
}

.about-img {
  grid-column: 1; grid-row: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
}
.about-img img { width: 100%; height: auto; }

.about-profile {
  grid-column: 1; grid-row: 2;
}

.about-history {
  grid-column: 2; grid-row: 1 / span 2;
}

.about-section {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 20px;
}

.about-lead {
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 16px;
}

.about-body {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-2);
  margin-bottom: 28px;
}
.about-body p + p { margin-top: 6px; }

.about-meta {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.about-meta dt {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.about-meta dd {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-2);
}

.about-block { margin-bottom: 28px; }

.about-block-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.about-list {
  list-style: none;
  font-size: 13px;
  color: var(--text-2);
}
.about-list li {
  display: flex;
  gap: 14px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.about-list li:last-child { border-bottom: none; }
.about-list .y {
  flex-shrink: 0;
  min-width: 84px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 28px;
  }
  .about-img     { grid-column: 1; grid-row: 1; }
  .about-profile { grid-column: 1; grid-row: 2; }
  .about-history { grid-column: 1; grid-row: 3; }
}

/* =============================================
   6. LIVE2D
============================================= */
.live2d-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.live2d-visual {
  position: sticky;
  top: 72px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--border);
  min-height: 460px;
}
.live2d-visual img {
  width: 100%; height: auto;
  display: block;
}

.live2d-name {
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: normal;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.live2d-desc {
  font-size: 13px;
  line-height: 1.95;
  color: var(--text-2);
  margin-bottom: 20px;
}

/* YouTube サムネ */
.yt-wrap { margin-bottom: 24px; }

.yt-thumb {
  display: block;
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: border-color .18s;
}
.yt-thumb:hover { border-color: var(--border-2); text-decoration: none; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }

.yt-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 40px; color: #fff;
  background: rgba(0,0,0,.22);
  opacity: 0; transition: opacity .15s;
}
.yt-thumb:hover .yt-play { opacity: 1; }

.yt-soon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-en);
  font-size: 18px; letter-spacing: 0.1em;
  color: var(--text-2);
  background: rgba(0,0,0,.25);
  opacity: 0;
}
.yt-thumb.is-soon .yt-soon { opacity: 1; }
.yt-thumb.is-soon .yt-play { display: none; }
.yt-thumb.is-soon img       { display: none; }

/* モデル切り替えドット */
.live2d-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.dot {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-2) center/cover no-repeat;
  cursor: pointer;
  padding: 0;
  opacity: 0.55;
  transition: transform .14s, border-color .14s, box-shadow .14s, opacity .14s;
}
.dot:hover { transform: scale(1.06); border-color: var(--border-2); opacity: 1; }
.dot.active {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-dim);
  opacity: 1;
}
.dot.is-soon { opacity: 0.55; }
.dot.is-soon:hover { opacity: 1; }
.dot.is-soon.active { opacity: 1; }

@media (max-width: 860px) {
  .live2d-layout { grid-template-columns: 1fr; gap: 24px; }
  .live2d-visual { position: static; min-height: 300px; }
}

/* =============================================
   7. ILLUSTRATION
============================================= */
.illust-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.ctrl-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.filter-row { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-family: var(--font-ja);
  cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active {
  color: var(--mint);
  border-color: var(--mint);
  background: var(--mint-glow);
}

.sort-row { display: inline-flex; align-items: center; gap: 8px; }

.sort-select {
  height: 34px; padding: 0 10px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--bg-1);
  color: var(--text-2);
  font-size: 12px;
  font-family: var(--font-ja);
  cursor: pointer;
}
.sort-select:hover { border-color: var(--border-2); }

.shuffle-btn {
  height: 34px; padding: 0 14px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-family: var(--font-ja);
  cursor: pointer;
  white-space: nowrap;
  transition: color .14s, border-color .14s;
}
.shuffle-btn:hover { color: var(--text); border-color: var(--border-2); }

/* Masonry grid */
.illust-grid {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.illust-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.work { margin: 0; }

.work-card {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-1);
  text-decoration: none;
}
/* 動画（aタグ）だけhover演出 */
a.work-card {
  cursor: pointer;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
a.work-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.work-card img { width: 100%; height: auto; display: block; }

.work-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .14s;
}
.work-card:hover .work-overlay { opacity: 1; }

.ov-title {
  font-size: 13px;
  color: rgba(255,255,255,.9);
  line-height: 1.3;
}
.ov-meta {
  font-size: 11px;
  color: rgba(255,255,255,.48);
  margin-top: 3px;
}

.video-badge {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.52);
  display: grid; place-items: center;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  pointer-events: none;
}

.video-ph {
  width: 100%; aspect-ratio: 16/9;
  display: grid; place-items: center;
  background: var(--bg-2);
  color: var(--text-3);
  font-size: 13px;
}

@media (max-width: 680px) {
  .illust-bar { flex-direction: column; align-items: flex-start; }
  .sort-row { width: 100%; }
  .sort-select { flex: 1; }
}


/* =============================================
   9. REQUEST PAGE
============================================= */
.req-layout {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.req-heading {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ---- Menu cards ---- */
.req-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.req-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

.req-card-label {
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.req-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.req-menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.req-menu-list li:last-child { border-bottom: none; }
.req-item  { color: var(--text-2); }
.req-price {
  color: var(--mint);
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.req-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
}

/* ---- How to Order ---- */
.req-flow {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.req-flow-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.req-flow-item:last-child { border-bottom: none; }

.req-flow-num {
  font-family: var(--font-en);
  font-size: 22px;
  color: var(--mint);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  padding-top: 2px;
}
.req-flow-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 6px;
}
.req-flow-body {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.8;
}

/* ---- Notes ---- */
.req-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.req-note-block {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
}
.req-note-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.req-note-list {
  list-style: none;
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.6;
}
.req-note-list li::before {
  content: "— ";
  color: var(--text-3);
}

/* ---- Contact ---- */
.req-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.req-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color .18s, background .18s;
}
.req-contact-card:hover {
  border-color: var(--mint);
  background: var(--mint-glow);
  text-decoration: none;
}
.req-contact-icon {
  font-size: 24px;
  color: var(--mint);
  line-height: 1;
}
.req-contact-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.req-contact-handle {
  font-size: 13px;
  color: var(--text-2);
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .req-cards        { grid-template-columns: 1fr; }
  .req-notes-grid   { grid-template-columns: 1fr; }
  .req-contact-grid { grid-template-columns: 1fr; }
}

/* =============================================
   10. Live2D Video
============================================= */
.live2d-visual video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #1a1a20;
}

/* =============================================
   11. Hamburger Menu (mobile)
============================================= */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 52px;
  padding: 0 10px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-hamburger { display: flex; }
  .nav-logo { border-right: none; }

  .nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,10,12,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    z-index: 200;
  }
  .nav-links.open { display: flex; }

  .nav-links a {
    height: 48px;
    padding: 0 24px;
    font-size: 14px;
  }
  .nav-links a::after {
    left: 24px; right: 24px;
    bottom: 4px;
  }

  /* lang-toggle（request.html）もスマホで調整 */
  .lang-toggle { padding-right: 60px; }
}