:root {
  --bg: #f7f9f6;
  --bg-2: #ffffff;
  --fg: #16201a;
  --muted: #5f6b64;
  --line: rgba(22, 32, 26, 0.09);
  --accent: #2f9e5b;   /* ずんだ色 */
  --accent-2: #7c5cd6;
  --shadow: 0 10px 30px rgba(30, 60, 40, 0.08);
  --radius: 18px;
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* 背景のグロー */
body::before {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 80vh;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(126, 224, 161, 0.22), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(150, 200, 255, 0.22), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

/* HTMLに書いた width/height は縦横比のためだけに使い、表示サイズはCSSで決める */
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 6px; }
.nav a {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--fg); background: rgba(22, 32, 26, 0.05); }
.nav a[aria-current="page"] { color: #fff; background: var(--accent); }

/* ===== Hero ===== */
.hero { padding: 120px 0 90px; }
.hero-visual { padding: 28px 0 70px; }
.hero-visual .kv {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(30, 80, 60, 0.18);
}
.hero-visual .roles { margin-top: 36px; }
.hero-visual .lead { margin-top: 20px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-weight: 900;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
}
.hero h1 .en {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 200;
  font-size: clamp(1rem, 2.6vw, 1.6rem);
  letter-spacing: 0.5em;
  color: var(--muted);
  margin-top: 18px;
}
.roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.roles li {
  list-style: none;
  font-size: 0.85rem;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--bg-2);
}
.lead { margin-top: 32px; max-width: 640px; color: var(--muted); }
.lead strong { color: var(--fg); font-weight: 600; }

/* ===== Section ===== */
.section { padding: 60px 0 100px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  font-weight: 500;
}
.section-head .num { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.2em; }

/* ===== Profile ===== */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}
.profile-intro { position: sticky; top: 100px; }
.profile-name {
  font-family: "Noto Serif JP", serif;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.profile-name span {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.profile-intro > p { color: var(--muted); }
.works { margin: 24px 0; display: grid; gap: 8px; }
.works li {
  list-style: none;
  font-size: 0.9rem;
  padding-left: 18px;
  position: relative;
}
.works li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 8px; height: 1px;
  background: var(--accent);
}
.text-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-2);
  border-bottom: 1px solid rgba(201, 167, 255, 0.35);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.text-link:hover { border-color: var(--accent-2); }

.timeline { list-style: none; border-left: 1px solid var(--line); }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 16px;
  padding: 0 0 26px 24px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
}
.timeline li:last-child::before { background: var(--accent); }
.timeline .year {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--fg);
}
.timeline p { font-size: 0.9rem; color: var(--muted); }

/* ===== Videos ===== */
.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.video-main { grid-column: 1 / -1; }
.video-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
}
.video-frame img, .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  transition: transform .5s, opacity .3s;
}
.video-frame img { opacity: 0.85; }
button.video-frame:hover img { transform: scale(1.04); opacity: 1; }
.video-frame .play {
  position: absolute;
  left: 50%; top: 50%;
  width: 72px; height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(11, 11, 16, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background .25s, transform .25s;
}
.video-frame .play::after {
  content: "";
  position: absolute;
  left: 52%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
button.video-frame:hover .play {
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.08);
}

.video figcaption { margin-top: 14px; font-weight: 600; font-size: 0.95rem; }
.video figcaption .tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 4px;
}

/* ===== Game / Manga / Tool ===== */
.work-feature, .work-card {
  display: grid;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.work-feature:hover, .work-card:hover { transform: translateY(-4px); border-color: rgba(126, 224, 161, 0.4); }
.work-feature {
  margin-top: 48px;
  grid-template-columns: 240px 1fr;
  align-items: center;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(201, 167, 255, 0.14), transparent 70%),
    radial-gradient(60% 80% at 30% 100%, rgba(126, 224, 161, 0.12), transparent 70%),
    var(--bg-2);
}
.work-feature img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; object-position: top; }
.work-feature .work-body { padding: 32px 40px; }
.work-feature h3 { font-size: 1.8rem; }
.work-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.work-card { align-content: start; }
.work-card img { width: 100%; aspect-ratio: 1280 / 670; object-fit: cover; transition: transform .5s; }
.work-card:hover img { transform: scale(1.03); }
.work-card .work-body { padding: 20px 24px 26px; }
.work-body .tag { font-size: 0.7rem; letter-spacing: 0.3em; color: var(--accent); }
.work-body h3 { font-size: 1.1rem; line-height: 1.5; margin: 6px 0 10px; }
.work-body .desc { font-size: 0.88rem; color: var(--muted); }
.btn {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: filter .2s;
}
.work-feature:hover .btn { filter: brightness(1.1); }

/* ===== Books ===== */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.book {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s, border-color .3s;
}
.book:hover { transform: translateY(-4px); border-color: rgba(126, 224, 161, 0.4); }
.book img {
  width: 100%;
  aspect-ratio: 697 / 1024;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(30, 60, 40, 0.18);
}
.book .tag { font-size: 0.7rem; letter-spacing: 0.3em; color: var(--accent); }
.book h3 { font-size: 1.05rem; line-height: 1.5; margin: 8px 0 14px; }
.book .more { font-size: 0.8rem; color: var(--muted); }
.book:hover .more { color: var(--fg); }

/* ===== Links ===== */
.link-list { display: grid; gap: 14px; }
.link-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s, border-color .25s, background .25s;
}
.link-card:hover {
  transform: translateX(6px);
  border-color: rgba(124, 92, 214, 0.35);
  background: #fbfdfb;
}
.link-card .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(47, 158, 91, 0.1);
}
.link-card .icon svg { width: 24px; height: 24px; fill: var(--accent); }
.link-card .name { font-weight: 600; }
.link-card .desc { font-size: 0.82rem; color: var(--muted); }
.link-card .arrow { color: var(--muted); font-size: 1.2rem; transition: transform .25s, color .25s; }
.link-card:hover .arrow { color: var(--accent-2); transform: translate(3px, -3px); }

.book, .link-card, .work-feature, .work-card, .video-frame { box-shadow: var(--shadow); }

/* ===== Footer ===== */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ===== Fade-in ===== */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .1s; }
.reveal.d2 { animation-delay: .25s; }
.reveal.d3 { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } }

@media (max-width: 800px) {
  .profile { grid-template-columns: 1fr; gap: 40px; }
  .profile-intro { position: static; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .videos { grid-template-columns: 1fr; gap: 24px; }
  .work-feature { grid-template-columns: 120px 1fr; }
  .work-feature img { max-height: 260px; }
  .work-feature .work-body { padding: 20px; }
  .work-feature h3 { font-size: 1.2rem; }
  .btn { margin-top: 14px; padding: 10px 18px; }
  .work-cards { grid-template-columns: 1fr; gap: 24px; }
  .video-frame .play { width: 56px; height: 56px; }
  .hero { padding: 80px 0 60px; }
  .book { grid-template-columns: 100px 1fr; gap: 16px; padding: 18px; }
  .link-card { grid-template-columns: 44px 1fr auto; gap: 14px; padding: 18px; }
  .link-card .icon { width: 44px; height: 44px; }
  .nav a { padding: 8px 12px; letter-spacing: 0.08em; }
}

.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner .version { font-family: "Inter", monospace; opacity: 0.7; }

/* ===== Sub page heading（リンク・404） ===== */
.hero-sm { padding: 64px 0 28px; }
.hero-sm .eyebrow { margin-bottom: 10px; }
.hero-sm h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.hero-sm h1 .en { font-size: 0.85rem; letter-spacing: 0.4em; margin-top: 10px; }

/* ===== メニュー（HOME / PROFILE / WORKS / BOOKS / LINKS） ===== */
.section[id] { scroll-margin-top: 72px; }

@media (max-width: 600px) {
  .site-header .wrap { gap: 8px; }
  .logo { flex-shrink: 0; font-size: 0.95rem; letter-spacing: 0.02em; }
  .nav { gap: 0; }
  .nav a { flex-shrink: 0; font-size: 0.64rem; padding: 6px 7px; letter-spacing: 0.02em; }
}
@media (max-width: 340px) {
  .logo { display: none; }
  .site-header .wrap { justify-content: center; }
}

/* ===== セクション見出しの日本語ラベル ===== */
.section-head h2 .ja {
  margin-left: 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--muted);
}

/* ===== ページ分割後の共通部品 ===== */
.section-tight { padding-top: 20px; }
.link-card .en-label {
  margin-left: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--accent);
}

/* ===== 20261021_09：仕上げ ===== */

/* セクション見出し右の「一覧へ」リンク */
.more-link { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--accent); white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

/* 下層ページの冒頭 */
.breadcrumb { display: flex; gap: 10px; font-size: 0.72rem; letter-spacing: 0.25em; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--accent); }
.page-lead { margin-top: 18px; max-width: 640px; color: var(--muted); font-size: 0.95rem; }

/* ホーム：PICK UP */
.pickup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pickup .work-card img.pos-top { object-position: center 18%; }

/* ホーム：プロフィール概要 */
.home-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 36px 40px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.home-profile-text { color: var(--muted); }
.home-profile .works { margin: 0; }

/* ホーム：SNS */
.sns-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sns-list .link-card { padding: 20px; gap: 14px; }

/* 著書ページ */
.book-list { display: grid; gap: 32px; }
.book-detail {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 36px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.book-detail .cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(30, 60, 40, 0.22);
  transition: transform .3s;
}
.book-detail .cover:hover img { transform: translateY(-4px) rotate(-1deg); }
.book-body .tag { font-size: 0.7rem; letter-spacing: 0.3em; color: var(--accent); }
.book-body h2 { font-size: 1.5rem; line-height: 1.5; margin: 8px 0 6px; }
.book-body .publisher { font-size: 0.85rem; color: var(--muted); }
.book-body .desc { margin-top: 14px; color: var(--muted); }
.book-body .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-ghost { color: var(--accent); background: transparent; border: 1px solid rgba(47, 158, 91, 0.45); }
.btn-ghost:hover { background: rgba(47, 158, 91, 0.08); }

/* フッター */
.site-footer { padding: 44px 0 28px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-bottom: 24px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.05em; }
.footer-nav a:hover { color: var(--accent); }
.footer-sns { display: flex; gap: 10px; }
.footer-sns a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(47, 158, 91, 0.1);
  transition: background .2s;
}
.footer-sns a:hover { background: rgba(47, 158, 91, 0.2); }
.footer-sns svg { width: 18px; height: 18px; fill: var(--accent); }

@media (max-width: 900px) {
  .sns-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pickup { grid-template-columns: 1fr; }
  .home-profile { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}
@media (max-width: 600px) {
  .pickup { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; }
  .book-detail { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 20px; align-items: start; }
  .book-body h2 { font-size: 1.05rem; }
  .book-body .desc { font-size: 0.88rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
