@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600&family=Noto+Serif+JP:wght@300;400;500&family=Space+Mono:ital@0;1&display=swap');

:root {
  --bg: #0d0d0f;
  --bg2: #131316;
  --bg3: #1a1a1f;
  --accent: #7c6fa0;
  --accent2: #a89cc8;
  --text: #d4cfe8;
  --text2: #8a8499;
  --text3: #5a5468;
  --border: rgba(124,111,160,0.18);
  --border2: rgba(124,111,160,0.08);
  --gold: #c9a96e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  line-height: 1.9;
  overflow-x: hidden;
}

::selection { background: rgba(124,111,160,0.35); }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(13,13,15,0.95), transparent);
  backdrop-filter: blur(2px);
}

.nav-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent2);
  letter-spacing: 0.15em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  font-family: 'Space Mono', monospace;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent2); }

/* SECTIONS */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 7rem 3rem;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #ece9f5;
  line-height: 1.3;
  margin-bottom: 3rem;
}

.divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text2);
  font-size: 0.95rem;
  margin-bottom: 1.2em;
  line-height: 2;
}

.about-text p strong { color: var(--accent2); font-weight: 500; }

.about-detail { display: flex; flex-direction: column; gap: 1.5rem; }

.detail-item {
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border2);
  background: var(--bg2);
  border-radius: 2px;
}

.detail-item-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.detail-item-content { font-size: 0.85rem; color: var(--text2); line-height: 1.8; }

/* WORKS */
.works-category { margin-bottom: 4rem; }

.works-category-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--text3);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border2);
  margin-bottom: 1.5rem;
}

.work-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border2);
}

.work-item:last-child { border-bottom: none; }

.work-number {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--text3);
  letter-spacing: 0.1em;
  padding-top: 0.3rem;
  min-width: 2rem;
}

.work-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #ece9f5;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.work-desc { font-size: 0.8rem; color: var(--text3); line-height: 1.7; margin-bottom: 0.5rem; }

.work-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 1px;
}

.badge-gold { border-color: rgba(201,169,110,0.35); color: var(--gold); }

.work-links { display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-end; }

.work-link {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text3);
  text-decoration: none;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border2);
  border-radius: 1px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.work-link:hover { color: var(--accent2); border-color: var(--border); }

.other-works-note {
  font-size: 0.78rem;
  color: var(--text3);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* PROFILE */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

.profile-block-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.author-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

.author-tag {
  font-size: 0.78rem;
  color: var(--text2);
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border2);
  background: var(--bg2);
  border-radius: 1px;
  letter-spacing: 0.05em;
}

.taste-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.taste-list li {
  font-size: 0.85rem;
  color: var(--text2);
  display: flex;
  gap: 0.8rem;
  line-height: 1.6;
}

.taste-list li::before { content: '—'; color: var(--text3); flex-shrink: 0; }

/* CONTACT */
.contact-link-area { background: transparent; border-radius: 4px; padding: 0; }

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border2);
  background: var(--bg);
  border-radius: 2px;
  text-decoration: none;
  color: var(--text2);
  font-size: 0.8rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.08em;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.contact-link:hover { border-color: var(--border); color: var(--accent2); background: var(--bg3); }

.contact-link-icon { font-size: 0.9rem; color: var(--accent); flex-shrink: 0; }

/* FOOTER */
footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}

footer p {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text3);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* PAGE HEADER (各ページのトップ) */
.page-header {
  padding: 10rem 3rem 4rem;
  position: relative;
  z-index: 1;
}

.page-header-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.page-header-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  color: #ece9f5;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.page-header-bg {
  position: absolute;
  bottom: -0.05em;
  right: -0.02em;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(6rem, 15vw, 16rem);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px rgba(124,111,160,0.06);
  pointer-events: none;
  line-height: 1;
  user-select: none;
  z-index: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { display: none; }
  .section-inner { padding: 5rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .profile-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .work-item { grid-template-columns: auto 1fr; }
  .work-links { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  .page-header { padding: 8rem 1.5rem 3rem; }
}

/* ── SHARE BUTTON ── */
.share-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.share-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #ece9f5;
  transition: background 0.25s, transform 0.25s;
  box-shadow: 0 2px 16px rgba(124,111,160,0.35);
}

.share-toggle:hover { background: var(--accent2); transform: scale(1.08); }

.share-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.share-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text2);
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.share-btn:hover { color: var(--accent2); border-color: var(--border); background: var(--bg3); }

.share-copied {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent2);
  opacity: 0;
  transition: opacity 0.3s;
  padding-right: 0.2rem;
}

.share-copied.show { opacity: 1; }

@media (max-width: 768px) {
  .share-fab { bottom: 1.2rem; right: 1.2rem; }
}
