:root {
  --bg: #fdf7fb;
  --surface: #ffffff;
  --surface-2: #faf1f8;
  --surface-3: #f4e6f2;
  --border: #ecdcea;
  --border-soft: #f3e5f1;
  --text: #382a35;
  --text-muted: #7d6c79;
  --text-faint: #a4919f;
  --accent: #e2879b;
  --accent-2: #7a6ff0;
  --accent-soft: rgba(214, 85, 143, 0.10);
  --accent-ink: #ffffff;
  --shadow: 0 12px 28px rgba(120, 60, 100, 0.12);
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;
  --font-sans: "Noto Sans JP", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1620;
    --surface: #251d2a;
    --surface-2: #2c2231;
    --surface-3: #362a3d;
    --border: #40323f;
    --border-soft: #332933;
    --text: #f5edf3;
    --text-muted: #c3aec0;
    --text-faint: #93818f;
    --accent: #ef7fb3;
    --accent-2: #9c93ff;
    --accent-soft: rgba(239, 127, 179, 0.14);
    --accent-ink: #2a1120;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

:root[data-theme="dark"] {
  --bg: #1c1620; --surface: #251d2a; --surface-2: #2c2231; --surface-3: #362a3d;
  --border: #40323f; --border-soft: #332933; --text: #f5edf3; --text-muted: #c3aec0; --text-faint: #93818f;
  --accent: #ef7fb3; --accent-2: #9c93ff; --accent-soft: rgba(239, 127, 179, 0.14); --accent-ink: #2a1120;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
:root[data-theme="light"] {
  --bg: #fdf7fb; --surface: #ffffff; --surface-2: #faf1f8; --surface-3: #f4e6f2;
  --border: #ecdcea; --border-soft: #f3e5f1; --text: #382a35; --text-muted: #7d6c79; --text-faint: #a4919f;
  --accent: #d6558f; --accent-2: #7a6ff0; --accent-soft: rgba(214, 85, 143, 0.10); --accent-ink: #ffffff;
  --shadow: 0 12px 28px rgba(120, 60, 100, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ---------- top actions (シェア／表示テーマ) ---------- */
.top-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { display: block; }

/* ---------- share widget ---------- */
.share-widget {
  position: relative;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.share-btn:hover { color: var(--text); border-color: var(--accent); }
.share-btn svg { display: block; }

.share-menu[hidden] {
  display: none;
}
.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  padding: 6px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.share-menu-item {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: none;
  border-radius: var(--radius-s);
  background: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.share-menu-item:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- top band ---------- */
.top-band {
  position: relative;
  width: 100%;
  height: clamp(36px, 14vw, 80px);
  overflow: hidden;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.top-band::before,
.top-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.top-band::before {
  width: 260px;
  height: 260px;
  top: -140px;
  right: -60px;
}
.top-band::after {
  width: 160px;
  height: 160px;
  bottom: -100px;
  left: 8%;
  background: rgba(255, 255, 255, 0.10);
}


/* ---------- hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 65px;
}

.hero-main {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.hero-avatar {
  width: 200px;
  height: 200px;
  flex: none;
  border-radius: var(--radius-l);
  object-fit: cover;
  background: var(--surface-2);
  border: 4px solid var(--surface);
  box-shadow: var(--shadow);
}

/* 画像を用意するまでのプレースホルダー表示 */
.hero-avatar[src=""],
.hero-avatar:not([src]) {
  visibility: hidden;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.hero-name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
}
.hero-handle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin: 0;
}
.hero-bio {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
  white-space: pre-line;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.hero-skills li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .hero-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-skills {
    justify-content: center;
  }
}

/* ---------- hero meta (誕生日・デビュー・FAタグ等) ---------- */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.hero-meta li {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
}
.hero-meta li + li {
  padding-left: 18px;
  border-left: 1px solid var(--border-soft);
}
.hero-meta .meta-label {
  color: var(--text-faint);
  font-weight: 600;
}
.hero-meta .meta-value {
  color: var(--text);
  font-weight: 700;
}
.hero-meta .meta-link {
  text-decoration: none;
  color: var(--accent);
}
.hero-meta .meta-link:hover {
  text-decoration: underline;
}

/* スクリーンリーダー用のみ表示（視覚的には非表示） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- social links ---------- */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 13px 0 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 120ms ease, transform 120ms ease, background 120ms ease;
}
.social-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.social-link .icon {
  width: 22px;
  height: 22px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-link .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* アイコン画像が未配置の間、代わりに頭文字を表示 */
.social-link .icon .icon-fallback {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}
.social-link .icon img.is-broken { display: none; }
.social-link .icon img.is-broken + .icon-fallback { display: flex; }

/* ---------- section heading ---------- */
.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}

/* ---------- link list ---------- */
.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}
.link-list-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.link-list-title {
  font-size: 14px;
  font-weight: 600;
}
.link-list-arrow {
  flex: none;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- tool cards ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 120ms ease, border-color 120ms ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.tool-card-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.tool-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-card-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
}
.tool-card-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tool-card-title {
  font-size: 17px;
  font-weight: 700;
}
.tool-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}
.tool-card-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  align-self: flex-end;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.tool-card-cta,
.tool-card-booth {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.tool-card-cta:hover,
.tool-card-booth:hover {
  text-decoration: underline;
}
.tool-card-booth.is-disabled {
  color: var(--text-faint);
  pointer-events: none;
}

/* ---------- price cards (ご依頼価格イメージ) ---------- */
.price-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}
.price-intro p {
  margin: 0;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.price-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 120ms ease, border-color 120ms ease;
}
.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.price-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}
.price-card-image.is-broken {
  visibility: hidden;
}
.price-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
}
.price-card-title {
  font-size: 14.5px;
  font-weight: 700;
  margin: 0;
}
.price-card-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}
.price-card-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.price-notes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
}
.price-notes p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------- info list (FA/コラボ/シナリオ等の箇条書き) ---------- */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text);
}
.info-list ul {
  list-style: circle;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- accordion (その他の補足情報) ---------- */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordion {
  border-radius: var(--radius-m);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}
.accordion[open] summary::after {
  content: "\2212";
}
.accordion[open] summary {
  border-bottom: 1px solid var(--border-soft);
}
.accordion summary:hover {
  color: var(--accent);
}
.accordion-body {
  padding: 16px 18px 18px;
}
.accordion-body .info-list {
  color: var(--text);
}

/* ---------- footer ---------- */
.page-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--text-faint);
  font-size: 12.5px;
}

/* ---------- bottom band ---------- */
.bottom-band {
  position: relative;
  width: 100%;
  height: 80px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.bottom-band::before,
.bottom-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.bottom-band::before {
  width: 260px;
  height: 260px;
  bottom: -140px;
  left: -60px;
}
.bottom-band::after {
  width: 160px;
  height: 160px;
  top: -100px;
  right: 8%;
  background: rgba(255, 255, 255, 0.10);
}
