/* =========
  Base
========= */
:root {
  --bg: #0b0b0c;
  --fg: #f2f2f2;
  --muted: rgba(242, 242, 242, 0.72);
  --line: rgba(242, 242, 242, 0.18);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);

  --serif: "Shippori Mincho", "Noto Serif JP", "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Noto Sans JP",
    sans-serif;

  --container: 1120px;
  --pad: clamp(16px, 3vw, 28px);

  /* About – Differentiation Pack */
  --glass: rgba(255, 255, 255, 0.06);
  --glass2: rgba(255, 255, 255, 0.04);
  --edge: rgba(255, 255, 255, 0.14);
  --edge2: rgba(255, 255, 255, 0.1);
  --glow: rgba(255, 255, 255, 0.12);
  --accent: rgba(109, 76, 255, 0.85);
  --accent2: rgba(0, 255, 200, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* 固定ヘッダー分のずれ対策 */
}

body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  overflow-x: hidden; /* 横スクロール防止 */
  padding-top: 84px;
}

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

.container {
  width: min(var(--container), 100% - (var(--pad) * 2));
  margin-inline: auto;
}

/* =========
  Hero
========= */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: #000;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
}

/* 文字を読みやすくする薄いベール */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  padding: var(--pad) 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.22em;
  font-size: 12px;
  opacity: 0.9;
}

/* ===== 上部ナビ（fixed） ===== */
.nav {
  position: fixed;
  top: 16px;
  right: 100px;
  z-index: 9999;

  display: flex;
  gap: 32px;
  align-items: center;

  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav a {
  display: inline-flex;
  align-items: center;

  padding: 10px 12px;
  border-radius: 12px;

  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav__cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px !important;

  background: rgba(109, 76, 255, 0.85);
  color: #fff;
}

.nav__cta:hover {
  background: rgba(109, 76, 255, 0.95);
}

/* hero text */
.hero__copy {
  align-self: center;
  max-width: 680px;
  padding: 8svh 0;
}

.hero__name {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  opacity: 0.85;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.kicker {
  margin: 0 0 15px;
  color: var(--muted);
  letter-spacing: 0.12em;
  font-size: 12px;
}

.title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: clamp(36px, 6vw, 55px);
  line-height: 1.05;

  /* やわらかい白グロー */
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.3),
    0 0 16px rgba(255, 255, 255, 0.62),
    0 0 34px rgba(255, 255, 255, 0.18),
    0 0 70px rgba(255, 255, 255, 0.14),
    0 18px 60px rgba(0, 0, 0, 0.6);
}

.title__en {
  display: block;
  margin-top: 10px;
  font-size: 0.55em;
  font-weight: 700;
  opacity: 0.55;
  letter-spacing: 0.04em;
}

.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.9;
}

.hero__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 右下ロゴ（固定しない） */
.hero__logo {
  position: absolute;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  width: clamp(92px, 12vw, 160px);
  opacity: 0.9;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

/* ロゴリンクを左上に固定（別案） */
.header__logoLink {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
}

.header__logo {
  width: 140px;
  height: auto;
  display: block;
}

/* =========
  Buttons
========= */
.btn {
  color: var(--fg);
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);

  background: rgba(109, 76, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn:hover {
  background: rgba(0, 0, 0, 0.4);
}

.btn--ghost {
  background: transparent;
}

/* =========
  Sections
========= */
.section {
  padding: clamp(56px, 8vw, 110px) 0;
  border-top: 1px solid var(--line);
}

.section__head {
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  letter-spacing: 0.22em;
  font-size: 12px;
  text-align: center; /* 旧定義の効果を保持 */
}

.heading {
  margin: 0 0 86px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: clamp(26px, 3.4vw, 40px);
  text-align: center; /* 旧定義の効果を保持 */
  line-height: 1.05;  /* 旧定義の効果を保持 */
}

.muted {
  color: var(--muted);
}

/* =========
  About
========= */
.about {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
  }
}

.about--text {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

/* 左：本文（Differentiation Pack） */
.about__main {
  position: relative;
  padding: clamp(22px, 2.6vw, 28px);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--glass), transparent 80%);
  border: 1px solid var(--edge2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.about__main::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 45%),
    linear-gradient(315deg, rgba(109, 76, 255, 0.22), rgba(0, 255, 200, 0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.65;
  pointer-events: none;
}

.about__main::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 18px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.18),
    rgba(109, 76, 255, 0.35),
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.75;
  filter: blur(0.2px);
  pointer-events: none;
}

/* 名前（最終定義を採用） */
.about__name {
  margin: 0 0 10px;
  line-height: 1.1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: baseline;
}

.about__nameEn {
  letter-spacing: 0.08em;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 22px);
  opacity: 0.92;
}

.about__nameJa {
  font-weight: 500;
  font-size: clamp(14px, 1.6vw, 16px);
  opacity: 0.78;
}

/* リード文（最終定義 + 旧効果を保持） */
.about__lead {
  margin: 0 0 16px;
  line-height: 1.85;
  font-size: 15px;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.74); /* 旧定義の効果 */
  text-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); /* 旧定義の効果 */
}

/* Focus/Strength（最終定義を採用） */
.about__points {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}

.about__point {
  margin: 0;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: start;
}

.about__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.7;
  font-weight: 700;
  text-transform: uppercase; /* 旧定義の効果 */
  min-width: 86px;           /* 旧定義の効果 */
}

.about__value {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.82); /* 旧定義の効果 */
}

/* About more link（任意） */
.about__moreLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
  opacity: 0.85;
  padding: 6px 2px;
}

.about__moreLink::after {
  content: "→";
  opacity: 0.8;
  transform: translateY(-1px);
}

.about__moreLink:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.about__moreLink:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 6px;
}

/* 飛び先の本文ブロック */
.about__moreBody {
  margin-top: 14px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
}

#about-more {
  scroll-margin-top: 110px;
}

.about__moreText {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  opacity: 0.92;
}

.about__moreText + .about__moreText {
  margin-top: 10px;
}

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

.about__moreList li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.9;
}

.about__moreList li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  opacity: 0.7;
}

.about__backLink {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  opacity: 0.75;
}

.about__backLink:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 右側パネル（最終定義 + 旧効果を保持） */
.about__panel {
  position: relative; /* 旧定義の効果 */
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55); /* 旧定義の効果 */
  overflow: hidden; /* 旧定義の効果 */
}

.about__panel::before {
  content: "";
  position: absolute;
  inset: -40% -30%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 55%);
  transform: rotate(8deg);
  opacity: 0.45;
  pointer-events: none;
}

.about__panelTitle {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.75;
  color: rgba(255, 255, 255, 0.7); /* 旧定義の効果 */
}

.about__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  line-height: 1.9; /* 旧定義の効果 */
  color: rgba(255, 255, 255, 0.7); /* 旧定義の効果 */
}

.about__list li {
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.92;
  margin: 6px 0; /* 旧定義の効果 */
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;

  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.9;
  white-space: nowrap;

  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(109, 76, 255, 0.55);
  background: rgba(109, 76, 255, 0.12);
}

/* hover lift */
.about__main,
.about__panel {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.about__main:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.62);
}

.about__panel:hover {
  transform: translateY(-2px);
  border-color: rgba(109, 76, 255, 0.35);
}

/* =========
  Works
========= */
.section--works .works {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.works {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

/* Works sub heading */
.works__subhead {
  margin-top: 22px;
  margin-bottom: 14px;
}

.works__kicker {
  margin: 0 0 6px;
  color: rgba(242, 242, 242, 0.62);
  letter-spacing: 0.22em;
  font-size: 12px;
  text-align: center;
}

.works__title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: clamp(18px, 2.4vw, 28px);
  text-align: center;
}

/* アコーディオンカード本体 - Noir Ice */
.work {
  border-radius: 18px;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(1000px 420px at 10% -15%, rgba(210, 225, 255, 0.18), transparent 60%),
    radial-gradient(900px 360px at 100% 0%, rgba(255, 255, 255, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.work::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, rgba(235, 242, 255, 0.92), rgba(180, 205, 255, 0.55), rgba(255, 255, 255, 0.14));
}

/* summary三角消す */
.work > summary::-webkit-details-marker {
  display: none;
}
.work > summary {
  list-style: none;
}

/* summary */
.work__summary {
  cursor: pointer;
  user-select: none;

  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;

  background: rgba(0, 0, 0, 0.12);
  transition: background 0.18s ease, transform 0.18s ease;
}

.work__summary:hover {
  background: rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.work__summary:focus-visible {
  outline: 2px solid rgba(210, 225, 255, 0.55);
  outline-offset: 4px;
  border-radius: 14px;
}

/* 01バッジ */
.work__no {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.9;
}

.work__main {
  display: grid;
  gap: 4px;
}

.work__title {
  display: block;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-family: var(--serif);
  font-size: 18px; /* 旧定義の効果 */
}

.work__meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.78;
  letter-spacing: 0.06em; /* 旧定義の効果 */
}

.work__year {
  font-size: 12px;
  opacity: 0.7;
  white-space: nowrap;
}

/* ＋ボタン */
.work__toggle {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.work__toggle::before,
.work__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: rgba(245, 248, 255, 0.9);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.work__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* open状態 */
.work[open] .work__summary {
  background: rgba(0, 0, 0, 0.22);
}

.work[open] .work__toggle::after {
  opacity: 0; /* ＋→ー */
}

/* パネル（中身） */
.work__panel {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px 16px;
  animation: workFade 0.22s ease both;
}

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

/* 中身レイアウト */
.work__grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 14px;
  align-items: start;
}

.work__thumb {
  margin: 0;
  width: 100%;
  border-radius: 22px;
  padding: 12px;
  background: radial-gradient(900px 320px at 30% -20%, rgba(210, 225, 255, 0.14), transparent 60%),
    rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.work__thumb::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 44%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.work__thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.work__img {
  display: block;
  width: min(360px, 100%);
  margin-inline: auto;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.38);
}

.work__desc {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.7;
  opacity: 0.92;
}

.work__dl {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 8px 12px;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.14);
}

.work__dl dt {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
  padding-top: 2px;
}

.work__dl dd {
  margin: 0;
  opacity: 0.92;
  line-height: 1.6;
}

.work__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* =========
  Contact / Footer
========= */
.contact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* =========================
  Floating Decor (Hero)
========================= */
header.hero {
  position: relative;
  overflow: hidden;
}

.hero__bg,
.hero__overlay,
.floaters {
  position: absolute;
  inset: 0;
}

.floaters {
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}

/* hero内のコンテンツは浮遊装飾より上 */
.hero__inner {
  position: relative;
  z-index: 3;
}

.floater {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  filter: blur(22px);
  transform: translate3d(0, 0, 0);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 55%),
    radial-gradient(circle at 60% 60%, rgba(109, 76, 255, 0.24), transparent 62%),
    radial-gradient(circle at 50% 50%, rgba(0, 255, 200, 0.1), transparent 70%);
  animation: floaty 16s ease-in-out infinite;
}

/* 個体差 */
.f1 {
  top: -40px;
  left: -60px;
  width: 320px;
  height: 320px;
  opacity: 0.55;
  animation-duration: 22s;
}
.f2 {
  top: 14%;
  right: -120px;
  width: 360px;
  height: 360px;
  opacity: 0.45;
  animation-duration: 26s;
  animation-delay: -4s;
}
.f3 {
  bottom: -120px;
  left: 10%;
  width: 420px;
  height: 420px;
  opacity: 0.35;
  animation-duration: 30s;
  animation-delay: -10s;
}
.f4 {
  bottom: 8%;
  right: 18%;
  width: 240px;
  height: 240px;
  opacity: 0.4;
  animation-duration: 18s;
  animation-delay: -6s;
}
.f5 {
  top: 46%;
  left: 42%;
  width: 180px;
  height: 180px;
  opacity: 0.28;
  animation-duration: 14s;
  animation-delay: -2s;
}
.f6 {
  top: 8%;
  left: 55%;
  width: 220px;
  height: 220px;
  opacity: 0.22;
  animation-duration: 20s;
  animation-delay: -8s;
}
.f7 {
  bottom: 18%;
  left: -80px;
  width: 260px;
  height: 260px;
  opacity: 0.3;
  animation-duration: 24s;
  animation-delay: -12s;
}
.f8 {
  top: -90px;
  right: 22%;
  width: 280px;
  height: 280px;
  opacity: 0.24;
  animation-duration: 28s;
  animation-delay: -14s;
}

@keyframes floaty {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(26px, -18px, 0) scale(1.05);
  }
  50% {
    transform: translate3d(-18px, 22px, 0) scale(0.98);
  }
  75% {
    transform: translate3d(14px, 12px, 0) scale(1.03);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* firefly layer */
#firefly-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* 蛍 */
.firefly {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 45%, rgba(255, 255, 255, 0) 75%);
  opacity: 0;
  will-change: transform, opacity, filter;
  mix-blend-mode: screen;
}

/* ===== Scroll Hint ===== */
.scrollHint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  width: fit-content;

  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  letter-spacing: 0.18em;

  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.scrollHint:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.scrollHint__line {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
  position: relative;
  overflow: hidden;
}

.scrollHint__line::after {
  content: "";
  position: absolute;
  left: -40%;
  top: 0;
  width: 40%;
  height: 1px;
  background: rgba(109, 76, 255, 0.9);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(220%);
    opacity: 0;
  }
}

/* =========
  Responsive
========= */
@media (max-width: 900px) {
  .hero__video {
    object-fit: contain;
    background: #000;
  }

  .about--text {
    grid-template-columns: 1fr;
  }

  .about__side {
    margin-top: 14px;
  }

  .scrollHint {
    margin-top: 14px;
  }

  .nav {
    top: 12px;
    right: 12px;
    gap: 8px;
    padding: 8px 10px;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 12px;
  }

  body {
    padding-top: 84px;
  }

  .header__logoLink {
    top: 12px;
    left: 12px;
  }

  .header__logo {
    width: 110px;
  }

  .about__main::after {
    left: 14px;
  }
}

@media (max-width: 640px) {
  .work__grid {
    grid-template-columns: 1fr;
  }
  .work__summary {
    grid-template-columns: auto 1fr auto;
  }
  .work__year {
    display: none;
  }
}

/* 動きが苦手な人用 */
@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }

  .hero__bg {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent 55%),
      #000;
  }

  .floater {
    animation: none;
  }
}

/* ===== Hero image (PC/SP切替) ===== */
.hero__picture {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* 画面いっぱいに */
  object-position: 70% 50%;   /* 右寄りに見せる（シルエット残す想定） */
  transform: translateZ(0);
}

/* スマホ：見せたい位置に合わせて微調整 */
@media (max-width: 640px) {
  .hero__image {
    object-position: 72% 20%;
  }

  /* ナビ固定で被りやすいので、テキストの上余白も少し調整（必要なら） */
  .hero__copy {
    padding-top: calc(210px + env(safe-area-inset-top));
    max-width: 34ch;
  }
}

/* =========================
   Code Section
========================= */
.section--code .section__head {
  margin-bottom: 10px;
}

.section--code > .container > .muted {
  margin: 0 0 20px;
  line-height: 1.8;
}

.codeGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.codeCard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(255, 255, 255, 0.01) 100%
    ),
    var(--panel, rgba(255, 255, 255, 0.02));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  min-height: 100%;
}

.codeCard__title {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.codeCard__desc {
  margin: 0;
  line-height: 1.75;
}

.codeCard p {
  margin: 0;
  line-height: 1.75;
  font-size: 14px;
}

.codeCard p strong {
  color: var(--text, #fff);
  font-weight: 700;
}

.codeCard code {
  display: inline-block;
  padding: 0.12em 0.45em;
  margin: 0 0.1em;
  border-radius: 6px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  background: rgba(255, 255, 255, 0.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  color: var(--text, #fff);
}

.codeCard .btn {
  margin-top: auto; /* 下に揃える */
  align-self: flex-start;
}

/* =========================
   Resume Section
========================= */
.section--resume .section__head {
  margin-bottom: 12px;
}

.resumeCard {
  margin-top: 8px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  background:
    radial-gradient(1200px 300px at 0% -10%, rgba(255, 255, 255, 0.05), transparent 45%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.03) 0%,
      rgba(255, 255, 255, 0.01) 100%
    ),
    var(--panel, rgba(255, 255, 255, 0.02));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.resumeLead {
  margin: 0 0 14px;
  line-height: 1.85;
  font-size: 14px;
  color: var(--text, #fff);
}

.resumeActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.resumeDL {
  margin: 0;
  padding: 0;
}

.resumeDL dt {
  margin: 14px 0 4px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text, #fff);
  letter-spacing: 0.01em;
}

.resumeDL dt:first-child {
  margin-top: 0;
}

.resumeDL dd {
  margin: 0;
  padding-left: 0;
  line-height: 1.8;
  font-size: 14px;
  color: var(--muted, rgba(255, 255, 255, 0.78));
}

.resumeList {
  margin: 16px 0 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.resumeList li {
  line-height: 1.75;
  font-size: 14px;
  color: var(--text, #fff);
}

.resumeList li::marker {
  color: var(--accent, #8ea8ff);
}

/* =========================
   Small polish (共通)
========================= */
.section--code .btn,
.section--resume .btn {
  white-space: nowrap;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px) {
  .codeGrid {
    grid-template-columns: 1fr;
  }

  .codeCard {
    padding: 16px;
    border-radius: 16px;
  }

  .resumeCard {
    padding: 18px;
    border-radius: 16px;
  }
}

@media (max-width: 640px) {
  .section--code > .container > .muted,
  .resumeLead,
  .resumeDL dd,
  .resumeList li,
  .codeCard p,
  .codeCard__desc {
    font-size: 13px;
    line-height: 1.75;
  }

  .codeCard__title {
    font-size: 15px;
  }

  .resumeActions {
    flex-direction: column;
    align-items: stretch;
  }

  .resumeActions .btn,
  .codeCard .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* =========================
   Contact Form
========================= */
.contactForm {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}

.formGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.formField {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.formField--full {
  grid-column: 1 / -1;
}

.formField label {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.req,
.optional {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
}

.req {
  color: #ffd7d7;
}

.optional {
  color: rgba(255, 255, 255, 0.7);
}

.formField input,
.formField select,
.formField textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 12px 14px;
  font: inherit;
  line-height: 1.5;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.formField textarea {
  resize: vertical;
  min-height: 160px;
}

.formField input::placeholder,
.formField textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.formField select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.formField input:focus,
.formField select:focus,
.formField textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.formNote {
  margin-top: 12px;
  font-size: 12px;
}

.formActions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.formHoney {
  display: none !important;
}

/* スマホ */
@media (max-width: 768px) {
  .contactForm {
    padding: 16px;
    border-radius: 14px;
  }

  .formGrid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .formField--full {
    grid-column: auto;
  }

  .formActions {
    flex-direction: column;
  }

  .formActions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* =========================================
   Sub Featured Work : DHW MALL
========================================= */

.work--featuredSub .work__summary {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 62px 42px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    radial-gradient(circle at 50% 0%, rgba(124,58,237,0.12), transparent 58%),
    rgba(10,10,14,0.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 14px 34px rgba(0,0,0,0.28);
}

.work--featuredSub .work__summary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    90deg,
    rgba(124,58,237,0.08),
    rgba(167,139,250,0.3),
    rgba(124,58,237,0.08)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.work--featuredSub[open] .work__summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.work--featuredSub2 .work__summary2 {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 62px 42px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)),
    radial-gradient(circle at 50% 0%, rgba(124,58,237,0.12), transparent 58%),
    rgba(10,10,14,0.92);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 14px 34px rgba(0,0,0,0.28);
}

.work--featuredSub .work__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  font-weight: 700;
  font-size: 14px;
}

.work--featuredSub .work__toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
}

.work--featuredSub .work__toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 11px;
  height: 11px;
  border-right: 2px solid rgba(255,255,255,0.82);
  border-bottom: 2px solid rgba(255,255,255,0.82);
  transform: rotate(-45deg);
  transition: transform 0.22s ease;
}

.work--featuredSub[open] .work__toggle::before {
  transform: rotate(45deg);
}

.work__panel--featuredSub {
  padding: 16px;
  border-top: 1px solid rgba(124,58,237,0.26);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  background:
    radial-gradient(circle at 20% 100%, rgba(124,58,237,0.08), transparent 28%),
    rgba(8,8,12,0.96);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 16px 34px rgba(0,0,0,0.28);
}

/* 左カード */
.work__mediaCard--sub {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.012)),
    rgba(14,14,20,0.94);
}

.work__thumb--sub {
  margin: 0;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}

.work__links--sub {
  margin-top: 12px;
}

.work__links--sub .btn {
  width: 100%;
  justify-content: center;
}

/* 右カード */
.work__body--sub {
  display: grid;
  gap: 14px;
}

.work__leadCard--sub,
.work__infoCard--sub {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.012)),
    rgba(14,14,20,0.94);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.work__leadCard--sub {
  padding: 14px 16px;
}

.work__infoCard--sub {
  padding: 14px 16px;
}

.work__infoCard--sub .work__dl--featured dd {
  border-bottom-color: rgba(255,255,255,0.05);
}

/* ホバー */
.work--featuredSub:hover .work__summary {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 40px rgba(0,0,0,0.34);
}

/* スマホ */
@media (max-width: 640px) {
  .work--featuredSub .work__summary {
    grid-template-columns: 48px 1fr 48px 36px;
    gap: 12px;
    padding: 15px 14px;
    border-radius: 16px;
  }

  .work__panel--featuredSub {
    padding: 12px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
  }

  .work__mediaCard--sub,
  .work__leadCard--sub,
  .work__infoCard--sub {
    border-radius: 14px;
  }
}

/*ここから追加した/*

/* =========================
   Profile: View more (details/summary)
========================= */
.aboutMore{
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  overflow: hidden;

  /* 見た目を「本文→ボタン（下）」にする */
  display: flex;
  flex-direction: column;
}

.aboutMore__summary{
  order: 2; /* 見た目で下に */
  list-style: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);

  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
}

.aboutMore__summary::-webkit-details-marker{
  display: none;
}

/* ラベル切替 */
.aboutMore__label--close{ display:none; }
.aboutMore[open] .aboutMore__label--open{ display:none; }
.aboutMore[open] .aboutMore__label--close{ display:inline; }

/* 矢印（chevron） */
.aboutMore__icon{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  position: relative;
  flex: 0 0 auto;
}

.aboutMore__icon::before{
  content:"";
  position:absolute;
  inset:0;
  margin:auto;
  width:10px;
  height:10px;
  border-right: 2px solid rgba(255,255,255,.75);
  border-bottom: 2px solid rgba(255,255,255,.75);
  transform: rotate(-45deg); /* › */
  transition: transform .18s ease;
}

.aboutMore[open] .aboutMore__icon::before{
  transform: rotate(45deg); /* ▼っぽく */
}

/* 本文 */
.aboutMore__body{
  order: 1;
  padding: 14px 14px 12px;
}

.aboutMore__body .about__moreText{
  margin: 0 0 12px;
  line-height: 1.85;
}

.aboutMore__body .about__moreList{
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.aboutMore__summary:focus-visible{
  outline: 3px solid rgba(124,58,237,.45);
  outline-offset: 3px;
}

#contact #firefly-layer { display: none; }