/* =========================================================
   Masayuki Nakayama Portfolio
   色・文字はこの :root の値を変えるとサイト全体に反映されます
   ========================================================= */
:root {
  --paper: #F5EFE3;
  --paper-2: #ECE3D1;
  --ink: #1F1A17;
  --ink-soft: #5B524A;
  --line: rgba(31, 26, 23, .16);
  --tomato: #E4572E;
  --tomato-deep: #C9431E;
  --mustard: #F2B134;
  --teal: #1F6F6B;
  --sky: #A9D3DE;
  --white: #FFFDF8;

  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-display: "Dela Gothic One", "Zen Kaku Gothic New", sans-serif;
  --font-en: "Space Grotesk", "Zen Kaku Gothic New", sans-serif;

  --radius: 22px;
  --radius-lg: 36px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.pc { display: inline; }
.sp { display: none; }
@media (max-width: 760px) { .pc { display: none; } .sp { display: inline; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px;
  font-weight: 700; text-decoration: none; letter-spacing: .06em;
  border: 2px solid var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--line { background: transparent; }
.btn--accent { background: var(--tomato); color: var(--white); border-color: var(--tomato); }
.btn--accent:hover { box-shadow: 0 4px 0 var(--tomato-deep); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--lg { font-size: 1.1rem; padding: 1em 2.2em; }
.is-placeholder { position: relative; }
.is-placeholder::after {
  content: "URL準備中"; position: absolute; top: -10px; right: -6px;
  font-size: 10px; line-height: 1; padding: 4px 6px; border-radius: 6px;
  background: var(--mustard); color: var(--ink); font-weight: 700;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { background: rgba(245, 239, 227, .92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__disc {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle, var(--paper) 0 9%, var(--tomato) 10% 32%, var(--ink) 33%);
  animation: spin 6s linear infinite;
}
.logo__text { font-family: var(--font-en); font-weight: 700; font-size: 12px; line-height: 1.15; letter-spacing: .12em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__title { display: none; }
.nav ol { display: flex; gap: 22px; }
.nav ol a { text-decoration: none; font-weight: 700; font-size: 14px; display: inline-flex; align-items: baseline; gap: 6px; }
.nav ol a span { font-family: var(--font-en); font-size: 11px; color: var(--tomato); }
.nav ol a:hover { color: var(--tomato); }
.nav__cta { padding: .55em 1.3em; font-size: 14px; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; z-index: 60;
    background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
    padding: 10px 16px; cursor: pointer; font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .1em;
  }
  .nav-toggle__bars { display: grid; gap: 5px; }
  .nav-toggle__bars i { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .3s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px;
    padding: 80px calc(var(--gutter) + 8px);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__title { display: block; font-family: var(--font-en); color: var(--mustard); letter-spacing: .2em; font-size: 13px; }
  .nav ol { flex-direction: column; gap: 8px; }
  .nav ol a { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 7vw, 40px); }
  .nav ol a span { font-size: 14px; color: var(--mustard); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--header-h) + 32px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  right: -12vw; top: -14vw; border-radius: 50%; background: var(--sky); opacity: .45; z-index: -1;
}
.hero__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 56px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center;
}
.hero__label { font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; display: flex; gap: 12px; align-items: center; }
.hero__label span { background: var(--ink); color: var(--paper); padding: 4px 10px; border-radius: 6px; }
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 9vw, 112px); line-height: 1.12; letter-spacing: .02em;
  margin: 20px 0 8px;
}
.hero__title span { display: block; }
.hero__title-accent { color: var(--tomato); }
.hero__en { font-family: var(--font-en); font-weight: 700; font-size: clamp(16px, 2vw, 22px); color: var(--teal); letter-spacing: .04em; }
.hero__lead { margin-top: 20px; color: var(--ink-soft); font-size: clamp(14px, 1.6vw, 16px); }
.hero__name { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.hero__name-jp { font-weight: 900; font-size: 26px; letter-spacing: .12em; }
.hero__name-jp rt { font-size: 10px; letter-spacing: .1em; font-weight: 500; }
.hero__name-role { font-family: var(--font-en); font-size: 13px; color: var(--ink-soft); letter-spacing: .08em; }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; justify-self: center; }
.record {
  position: absolute; inset: 6%; border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 24px 50px rgba(31, 26, 23, .25);
  animation: spin 18s linear infinite;
}
.record__grooves {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255,255,255,.07) 0 1px, transparent 1px 6px);
}
.record__label {
  position: absolute; inset: 30%; border-radius: 50%; overflow: hidden;
  background: var(--tomato); display: grid; place-items: center;
  border: 6px solid var(--mustard);
}
.record__label img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.record__label-fallback { font-family: var(--font-display); color: var(--paper); font-size: clamp(22px, 4vw, 36px); }
.record__label::after { content: ""; position: absolute; width: 10%; height: 10%; border-radius: 50%; background: var(--paper); z-index: 2; }

.sticker {
  position: absolute; display: grid; place-items: center; text-align: center;
  font-family: var(--font-display); line-height: 1.1; border-radius: 50%;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  animation: float 5s ease-in-out infinite;
}
.sticker--ai { width: 26%; aspect-ratio: 1; top: 0; left: 2%; background: var(--mustard); font-size: clamp(22px, 3.4vw, 34px); }
.sticker--reels { width: 30%; aspect-ratio: 1; bottom: 4%; left: -2%; background: var(--paper); font-family: var(--font-en); font-weight: 700; font-size: clamp(11px, 1.4vw, 15px); animation-delay: -1.5s; }
.sticker--loop { width: 25%; aspect-ratio: 1; top: 8%; right: 0; background: var(--teal); color: var(--paper); font-size: clamp(15px, 2.2vw, 22px); animation-delay: -3s; transform: rotate(8deg); }
.hero__wave { position: absolute; right: 4%; bottom: 8%; display: flex; gap: 5px; align-items: flex-end; height: 50px; }
.hero__wave i { width: 6px; background: var(--tomato); border-radius: 3px; animation: eq 1.1s ease-in-out infinite; }
.hero__wave i:nth-child(2) { animation-delay: -.2s; } .hero__wave i:nth-child(3) { animation-delay: -.5s; }
.hero__wave i:nth-child(4) { animation-delay: -.8s; } .hero__wave i:nth-child(5) { animation-delay: -.3s; }
.hero__wave i:nth-child(6) { animation-delay: -.6s; } .hero__wave i:nth-child(7) { animation-delay: -.9s; }

.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg); margin: 0 -2vw; }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; font-family: var(--font-en); font-weight: 700; font-size: clamp(18px, 2.4vw, 28px); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.marquee__track b { color: var(--mustard); font-weight: 400; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 340px; order: -1; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--accent { background: var(--tomato); color: var(--white); }

.sec-head { margin-bottom: clamp(40px, 6vw, 64px); display: grid; gap: 4px; }
.sec-head__track {
  justify-self: start; font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 12px; border: 1.5px solid currentColor; border-radius: 999px; margin-bottom: 10px;
}
.sec-head__en { font-family: var(--font-en); font-weight: 700; font-size: clamp(40px, 7vw, 84px); line-height: 1; letter-spacing: -.01em; color: var(--tomato); }
.sec-head__jp { font-weight: 900; font-size: clamp(18px, 2.4vw, 24px); letter-spacing: .1em; }
.sec-head--light .sec-head__en { color: var(--mustard); }
.section--accent .sec-head--light .sec-head__en { color: var(--paper); }

.sub-title { display: flex; align-items: baseline; gap: 14px; font-size: 20px; font-weight: 900; margin-bottom: 24px; }
.sub-title span { font-family: var(--font-en); font-size: 13px; color: var(--tomato); letter-spacing: .16em; text-transform: uppercase; }
.sub-title--light span { color: var(--mustard); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.tags li { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; border: 1.5px solid currentColor; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 28px 30px; border-radius: var(--radius-lg);
  border: 2px solid var(--ink); background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
}
.pillar__no { font-family: var(--font-display); font-size: 64px; line-height: 1; }
.pillar__en { font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 14px; }
.pillar__title { font-size: 21px; font-weight: 900; line-height: 1.5; margin: 6px 0 16px; }
.pillar__body { font-size: 14.5px; color: var(--ink-soft); }
.pillar--ai .pillar__no, .pillar--ai .pillar__en { color: var(--mustard); }
.pillar--ai .pillar__no { -webkit-text-stroke: 2px var(--ink); }
.pillar--reach .pillar__no, .pillar--reach .pillar__en { color: var(--teal); }
.pillar--improve { background: var(--tomato); color: var(--white); }
.pillar--improve .pillar__body { color: rgba(255, 253, 248, .92); }
.pillar--improve .pillar__en { color: var(--mustard); }

.mini-loop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: auto; padding-top: 22px; }
.mini-loop li { position: relative; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.mini-loop li:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 50%; translate: 0 -50%; color: var(--paper); }
.mini-loop li:last-child { background: var(--mustard); }
.mini-loop li:last-child::after { content: " ↻"; }

@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.about__photos { position: relative; aspect-ratio: 1 / 1.05; }
.photo { position: absolute; margin: 0; overflow: hidden; border: 2px solid var(--ink); display: grid; place-items: center; background: var(--sky); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo--main { inset: 0 18% 14% 0; border-radius: 48% 52% 40% 60% / 50% 40% 60% 50%; }
.photo--sub { width: 46%; aspect-ratio: 1; right: 0; bottom: 0; border-radius: 50%; background: var(--mustard); box-shadow: 5px 5px 0 var(--ink); }
.photo__fallback { font-family: var(--font-en); font-weight: 700; text-align: center; line-height: 1.3; font-size: 22px; }
.photo__fallback small { font-size: 11px; font-weight: 500; opacity: .7; }
.photo.has-img .photo__fallback { display: none; }

.about__text p + p { margin-top: 1em; }
.about__text > p:not(.about__name) { color: var(--ink-soft); }
.about__name { font-size: clamp(30px, 4vw, 40px); font-weight: 900; letter-spacing: .14em; margin-bottom: 18px !important; color: var(--ink) !important; line-height: 1.7; }
.about__name rt { font-size: 11px; font-weight: 500; letter-spacing: .14em; }
.about__name span { display: block; font-family: var(--font-en); font-size: 14px; letter-spacing: .14em; color: var(--tomato); line-height: 1.2; }

.trio { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.trio li {
  width: 96px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center;
  border: 2px solid var(--ink); background: var(--white); line-height: 1.2;
}
.trio li:nth-child(2) { background: var(--mustard); margin-left: -22px; }
.trio li:nth-child(3) { background: var(--teal); color: var(--paper); margin-left: -22px; }
.trio span { font-size: 11px; font-weight: 700; }
.trio b { font-family: var(--font-display); font-weight: 400; font-size: 22px; }

.skills, .strengths, .bonus { margin-top: clamp(56px, 8vw, 88px); }
.skills__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skills__grid > div { background: var(--white); border-radius: var(--radius); padding: 20px 22px; border: 1.5px solid var(--line); }
.skills__grid dt { font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .14em; color: var(--tomato); margin-bottom: 6px; }
.skills__grid dd { font-weight: 700; font-size: 15px; line-height: 1.8; }
.skills__grid .skills__now { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.skills__grid .skills__now dt { color: var(--mustard); }

.strengths__list { counter-reset: s; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.strengths__list li { counter-increment: s; display: flex; gap: 18px; padding: 18px 4px; border-bottom: 1.5px solid var(--line); font-weight: 700; }
.strengths__list li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-en); color: var(--tomato); min-width: 2em; }

.bonus {
  position: relative; border-radius: var(--radius-lg); background: var(--ink); color: var(--paper);
  padding: clamp(32px, 5vw, 56px); overflow: hidden;
}
.bonus::after {
  content: ""; position: absolute; right: -80px; top: 50%; translate: 0 -50%; width: 260px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--mustard) 0 14%, var(--ink) 15% 17%, transparent 18%), repeating-radial-gradient(circle, #2c2622 0 2px, #191512 2px 6px);
  animation: spin 14s linear infinite; opacity: .9;
}
.bonus > * { position: relative; z-index: 1; max-width: 620px; }
.bonus__track { font-family: var(--font-en); font-weight: 700; color: var(--mustard); letter-spacing: .18em; font-size: 12px; text-transform: uppercase; }
.bonus__title { font-family: var(--font-en); font-size: clamp(30px, 4vw, 44px); line-height: 1.2; margin: 6px 0 14px; }
.bonus__body { color: rgba(245, 239, 227, .85); font-size: 15px; }
.genres { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.genres li { font-family: var(--font-en); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.genres li:nth-child(2n) { background: var(--tomato); color: var(--white); }
.genres li:nth-child(3n) { background: var(--teal); color: var(--paper); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__photos { max-width: 420px; width: 100%; margin: 0 auto; }
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
  .bonus::after { width: 180px; right: -90px; opacity: .35; }
}
@media (max-width: 520px) { .skills__grid { grid-template-columns: 1fr; } }

/* ---------- Works ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.filter {
  cursor: pointer; border: 2px solid var(--ink); background: transparent; border-radius: 999px;
  padding: 8px 18px; font-weight: 700; font-size: 14px; transition: background .2s, color .2s;
}
.filter small { font-family: var(--font-en); margin-left: 6px; opacity: .7; }
.filter:hover { background: var(--paper-2); }
.filter[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.works__count { font-family: var(--font-en); font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 20px; align-items: start; }

.work-card { cursor: pointer; text-align: left; background: none; border: 0; padding: 0; display: block; width: 100%; }
.work-card:focus-visible { outline: 3px solid var(--tomato); outline-offset: 4px; border-radius: var(--radius); }
.work-card__media {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover .work-card__media { transform: translateY(-4px) rotate(-.6deg); box-shadow: 6px 8px 0 var(--ink); }
.work-card__meta { margin-top: 12px; }
.work-card__cat { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.work-card__cat i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.work-card__title { font-weight: 900; font-size: 16px; line-height: 1.5; margin-top: 2px; }
.work-card__series { font-size: 12px; color: var(--ink-soft); }

.media-box { position: relative; width: 100%; background: var(--paper-2); }
.media-box img, .media-box video, .media-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.ratio-9x16 { aspect-ratio: 9 / 16; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.works .ratio-9x16 { aspect-ratio: 4 / 5.6; } /* 一覧では縦長すぎないように少しだけ詰める */

.placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px; color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.22) 0 18%, transparent 19%),
    radial-gradient(circle at 10% 95%, rgba(0,0,0,.18) 0 26%, transparent 27%),
    var(--ph, var(--teal));
}
.placeholder__type { font-family: var(--font-en); font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.placeholder__title { font-weight: 900; font-size: 15px; line-height: 1.45; }
.placeholder__note { font-size: 10px; opacity: .85; }

.badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); }
.badge--wip { background: var(--mustard); }
.media-box:has(.badge) .placeholder { padding-top: 44px; }
.play-icon { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 12px; }

.works__empty { grid-column: 1 / -1; padding: 40px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }

/* ---------- Modal ---------- */
.work-dialog {
  width: min(920px, calc(100% - 32px)); max-height: calc(100% - 48px);
  padding: 0; border: 2px solid var(--ink); border-radius: var(--radius-lg);
  background: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 var(--ink);
}
.work-dialog::backdrop { background: rgba(31, 26, 23, .6); backdrop-filter: blur(3px); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; font-size: 22px; line-height: 1; }
.modal__body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; padding: 28px; }
.modal__media { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); align-self: start; max-height: 70vh; }
.modal__media .ratio-9x16 { max-height: 70vh; aspect-ratio: 9 / 16; margin: 0 auto; }
.modal__info h3 { font-size: 24px; font-weight: 900; line-height: 1.45; margin: 6px 0 14px; padding-right: 40px; }
.modal__info p { color: var(--ink-soft); }
.modal__points { margin-top: 18px; display: grid; gap: 8px; }
.modal__points li { padding-left: 1.4em; position: relative; font-weight: 700; font-size: 14px; }
.modal__points li::before { content: "✦"; position: absolute; left: 0; color: var(--tomato); }
.modal__facts { margin-top: 20px; display: grid; gap: 6px; font-size: 14px; }
.modal__facts div { display: flex; gap: 12px; }
.modal__facts dt { font-family: var(--font-en); font-weight: 700; min-width: 5.5em; color: var(--tomato); }
.modal__links { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) {
  .modal__body { grid-template-columns: 1fr; padding: 20px; }
  .modal__media .ratio-9x16 { max-height: 60vh; }
}

/* ---------- Work style ---------- */
.style__catch { font-family: var(--font-display); font-size: clamp(30px, 5vw, 56px); line-height: 1.3; }
.style__sub { margin-top: 10px; color: rgba(245, 239, 227, .8); }
.style__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.style__card { border: 1.5px solid rgba(245, 239, 227, .25); border-radius: var(--radius); padding: 28px; background: rgba(245, 239, 227, .04); }
.style__card h3 { font-size: 19px; font-weight: 900; margin-bottom: 12px; color: var(--mustard); }
.style__card p { color: rgba(245, 239, 227, .85); font-size: 15px; }
.style__dl { display: grid; gap: 12px; font-size: 14.5px; }
.style__dl dt { font-weight: 700; color: var(--paper); font-size: 13px; }
.style__dl dd { color: rgba(245, 239, 227, .8); }
.text-link { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--mustard); text-underline-offset: 4px; }

.flow, .values { margin-top: clamp(56px, 8vw, 80px); }
.flow__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: f; }
.flow__steps li {
  position: relative; border-radius: 999px; border: 1.5px solid rgba(245, 239, 227, .4);
  padding: 16px 10px; text-align: center; font-weight: 900; font-size: 16px;
  display: flex; flex-direction: column; align-items: center; line-height: 1.3;
}
.flow__steps li b { font-family: var(--font-en); font-size: 11px; color: var(--mustard); letter-spacing: .12em; }
.flow__steps li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; translate: 0 -50%; color: var(--mustard); font-weight: 700; }
.flow__steps .flow__last { background: var(--tomato); border-color: var(--tomato); }
.flow__steps .flow__last b { color: var(--paper); }
.flow__note { margin-top: 16px; color: var(--mustard); font-weight: 700; font-size: 14px; }

.values__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.values__list li {
  aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--ink);
  display: grid; place-items: center; text-align: center; padding: 14px; font-weight: 900; font-size: 14px; line-height: 1.5;
}
.values__list li:nth-child(2) { background: var(--mustard); }
.values__list li:nth-child(4) { background: var(--sky); }
.values__list li:nth-child(5) { background: var(--tomato); color: var(--white); }

@media (max-width: 860px) {
  .style__grid { grid-template-columns: 1fr; }
  .flow__steps { grid-template-columns: 1fr; gap: 14px; max-width: 360px; }
  .flow__steps li { flex-direction: row; justify-content: center; gap: 12px; }
  .flow__steps li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -15px; translate: -50% 0; }
  .values__list { grid-template-columns: repeat(2, 1fr); max-width: 420px; }
  .values__list li:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
}

/* ---------- Service ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); margin-bottom: 56px; }
.services li { padding: 22px 18px 22px 0; border-bottom: 1.5px solid var(--line); display: grid; gap: 4px; position: relative; padding-left: 40px; }
.services li::before { content: "♪"; position: absolute; left: 8px; top: 22px; color: var(--tomato); font-size: 18px; }
.services b { font-size: 17px; font-weight: 900; }
.services span { font-size: 13px; color: var(--ink-soft); }

.service__info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 28px; background: var(--white); }
.info-card__en { font-family: var(--font-en); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--tomato); }
.info-card h3 { font-size: 19px; font-weight: 900; margin: 2px 0 14px; }
.info-card__list { display: grid; gap: 6px; }
.info-card__list li { font-weight: 700; font-size: 15px; padding-left: 1.1em; position: relative; }
.info-card__list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.info-card__list small { font-weight: 500; color: var(--ink-soft); }
.info-card__note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }
.info-card--hours { background: var(--mustard); }
.info-card--hours .info-card__en { color: var(--ink); }
.hours__big { font-weight: 900; font-size: 18px; line-height: 1.2; }
.hours__big b { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 5vw, 56px); margin: 0 4px; }
.hours__big small { font-size: 14px; }
.hours__dl { margin-top: 16px; display: grid; gap: 6px; border-top: 1.5px solid rgba(31,26,23,.25); padding-top: 14px; }
.hours__dl div { display: flex; justify-content: space-between; font-weight: 700; }

@media (max-width: 960px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service__info { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { text-align: left; }
.contact__thanks { font-family: var(--font-en); font-weight: 700; font-size: clamp(36px, 7vw, 88px); line-height: 1.05; letter-spacing: -.01em; }
.contact__lead { margin-top: 18px; font-size: 16px; }
.contact__box {
  margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 24px; align-items: center;
  border: 2px solid var(--white); border-radius: var(--radius-lg); padding: 28px 32px;
}
.contact__label { font-size: 12px; font-weight: 700; opacity: .85; }
.contact__value { font-family: var(--font-en); font-weight: 700; font-size: 20px; line-height: 1.4; }
.contact__value small { display: block; font-family: var(--font-jp); font-size: 13px; font-weight: 500; }
.section--accent .is-placeholder::after { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) { .contact__box { grid-template-columns: 1fr; } .contact__box .btn { width: 100%; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); text-align: center; padding: 56px var(--gutter) 40px; }
.footer__tagline { font-family: var(--font-display); font-size: clamp(24px, 5vw, 52px); line-height: 1.2; color: var(--mustard); }
.footer__copy { margin-top: 16px; font-family: var(--font-en); font-size: 13px; opacity: .7; }
.footer__top { display: inline-block; margin-top: 12px; font-family: var(--font-en); font-weight: 700; font-size: 13px; text-decoration: none; color: var(--paper); }

/* ---------- 日本語の改行（BudouXが読めないときの予備も兼ねる） ---------- */
body { word-break: auto-phrase; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- AIを一番の強みとして目立たせる ---------- */
.pillar__main {
  position: absolute; top: -14px; right: 22px;
  background: var(--ink); color: var(--mustard);
  font-size: 12px; font-weight: 900; letter-spacing: .12em;
  padding: 5px 14px; border-radius: 999px;
}
.pillar--ai { box-shadow: 8px 8px 0 var(--mustard), 8px 8px 0 2px var(--ink); }
.skills__grid .skills__ai { background: var(--mustard); border-color: var(--ink); }
.skills__grid .skills__ai dt { color: var(--ink); }
.services .services__main { grid-column: 1 / -1; background: var(--mustard); border-radius: var(--radius); border-bottom: 0; margin: 16px 0 6px; padding-top: 18px; padding-bottom: 18px; }
.services .services__main::before { content: "★"; color: var(--ink); top: 18px; }
.services .services__main span { color: var(--ink); }
.hero__lead + .hero__lead { margin-top: 10px; }

/* ---------- レコード盤の音楽ボタン ---------- */
.record-player {
  position: absolute; left: 50%; bottom: -4%; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.record-player[hidden] { display: none; }
.record-next {
  border: 2px solid var(--ink); background: var(--mustard); color: var(--ink); border-radius: 999px;
  padding: 10px 14px; font-weight: 700; font-size: 12px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink);
}
.record-next:hover { background: var(--ink); color: var(--paper); }
.record-next[hidden] { display: none; }
.record-play {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 18px 8px 8px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.record-play:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 var(--ink); }
.record-play__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--tomato); color: var(--white); font-size: 13px; }
.record-play__text { display: grid; text-align: left; line-height: 1.3; }
.record-play__text b { font-size: 13px; }
.record-play__text small { font-size: 11px; color: var(--ink-soft); }
.record-play__text small:empty { display: none; }
.hero__visual.is-playing .record { animation-duration: 5s; }
.hero__visual:not(.is-playing) .hero__wave i { animation-play-state: paused; }
.hero__visual:has(.record-player[hidden]) .hero__wave i { animation-play-state: running; }
@media (max-width: 520px) {
  .record-player { bottom: -10%; }
  .record-play { padding-right: 12px; }
  .record-play__text small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- 動画カード（カーソルを乗せると再生） ---------- */
.card-preview { opacity: 0; transition: opacity .3s ease; z-index: 1; }
.card-preview.is-playing { opacity: 1; }

/* ---------- 画像セット（3枚1セット） ---------- */
.media-box--stack { background: var(--paper-2); }
.media-box--stack .placeholder__type, .media-box--stack .placeholder > span:last-child { visibility: hidden; }
.stack { position: absolute; inset: 0; z-index: 1; }
.media-box .stack__img {
  position: absolute; width: 72%; height: 72%; right: auto; bottom: auto;
  object-fit: cover; border-radius: 12px; border: 2px solid var(--ink); background: var(--white);
  box-shadow: 0 6px 14px rgba(31, 26, 23, .18); transition: transform .3s ease;
}
.media-box .stack__img--1 { left: 7%; top: 19%; transform: rotate(-5deg); z-index: 3; }
.media-box .stack__img--2 { left: 15%; top: 12%; transform: rotate(1deg); z-index: 2; }
.media-box .stack__img--3 { left: 22%; top: 6%; transform: rotate(7deg); z-index: 1; }
.work-card:hover .media-box .stack__img--1 { transform: rotate(-8deg) translateX(-6%); }
.work-card:hover .media-box .stack__img--3 { transform: rotate(10deg) translateX(6%); }
.set-badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 4;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
}

/* 詳細表示のめくり */
.modal__media--gallery { border: 0; overflow: visible; max-height: none; }
.carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius); border: 2px solid var(--ink); outline-offset: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.carousel__slide .media-box { max-height: 62vh; aspect-ratio: 4 / 5; margin: 0 auto; }
.carousel__slide img { object-fit: contain; background: var(--paper-2); }
.carousel__bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.carousel__btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; font-weight: 700; }
.carousel__btn:hover { background: var(--ink); color: var(--paper); }
.carousel__count { font-family: var(--font-en); font-weight: 700; font-size: 14px; }
.carousel__dots { display: flex; gap: 6px; margin-left: auto; margin-right: auto; }
.carousel__dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; padding: 0; cursor: pointer; }
.carousel__dot[aria-current="true"] { background: var(--tomato); border-color: var(--tomato); }
.carousel__caption { margin-top: 10px; font-size: 14px; color: var(--ink-soft); min-height: 3.6em; }

/* 縦型の動画・画像は、画面の高さいっぱい近くまで大きく（縦横比はそのまま） */
.work-dialog { overflow: auto; }
/* 開いているときの表示方法と高さを、サイト側ではっきり決めておく
   （拡張機能などが一般的な名前の部品にスタイルを当てても、中身が潰れないように） */
dialog.work-dialog[open] {
  display: block; position: fixed; inset: 0; margin: auto;
  height: fit-content; min-height: 0; flex: none;
}
.work-dialog:has(.modal__media--tall) { width: min(1080px, calc(100% - 32px)); max-height: calc(100% - 24px); }
.modal__media--tall { max-height: none; justify-self: center; border: 0; overflow: visible; }
.modal__media--tall .media-box {
  aspect-ratio: 9 / 16; width: auto; max-width: 100%;
  height: min(calc(100vh - 80px), 960px); max-height: none;
  border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden;
}
.modal__media--tall video { object-fit: contain; background: #000; }
@media (min-width: 761px) {
  .modal__body:has(.modal__media--tall) { grid-template-columns: auto minmax(280px, 1fr); padding: 20px; gap: 32px; align-items: center; }
}
@media (max-width: 760px) {
  .modal__media--tall .media-box { height: min(78vh, calc((100vw - 76px) * 16 / 9)); margin: 0 auto; }
}

/* Instagramの埋め込みは縦に長いので、高さを決めて中でスクロール */
.media-box--ig { aspect-ratio: auto; height: min(78vh, 720px); background: var(--white); }

/* =========================================================
   作品の一覧：ジャンルごとの段（パソコンは3列、スマホは横にスワイプ）
   ========================================================= */
.works-groups { display: grid; gap: clamp(40px, 6vw, 64px); }
.works-group__title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  font-size: 20px; font-weight: 900; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
}
.works-group__title i { width: 12px; height: 12px; border-radius: 50%; align-self: center; flex-shrink: 0; }
.works-group__en { font-family: var(--font-en); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.works-group__title small { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.works-groups .works { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
@media (max-width: 860px) { .works-groups .works { gap: 22px 16px; } }
@media (max-width: 640px) {
  /* スマホ：3つを横に並べ、指でスワイプして見る */
  .works-groups .works {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-left: var(--gutter);
  }
  .works-groups .works > * { scroll-snap-align: start; }
}

/* ---------- YouTube台本：一覧のカード（紙のような見た目） ---------- */
.media-box--script { background: #EFE7F5; }
.script-paper {
  position: absolute; inset: 10% 9% 12%; background: var(--white); border: 1.5px solid var(--ink);
  border-radius: 6px; padding: 14px 14px 10px; overflow: hidden; box-shadow: 6px 6px 0 #7A4E9C;
  transform: rotate(-1.5deg); transition: transform .3s ease;
}
.work-card:hover .script-paper { transform: rotate(0) translateY(-4px); }
.script-paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, var(--white)); }
.script-paper__label { font-size: 10px; font-weight: 700; color: #7A4E9C; letter-spacing: .04em; }
.script-paper__title { font-size: 13px; font-weight: 900; line-height: 1.5; margin: 6px 0 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.script-paper__lines p { font-size: 11px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 4px; display: flex; gap: 6px; }
.script-paper__lines b { flex: 0 0 4.2em; color: var(--ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- YouTube台本：詳細（縦にスクロールして読む） ---------- */
.modal__media--script { border: 0; overflow: visible; max-height: none; align-self: stretch; }
.script-view {
  height: min(72vh, 680px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 22px 20px 28px; outline-offset: 3px;
}
.script-view__label { font-size: 12px; font-weight: 700; color: #7A4E9C; }
.script-view__title { font-size: 17px; font-weight: 900; line-height: 1.6; margin: 6px 0 10px; }
.script-view__summary { font-size: 13px; color: var(--ink-soft); background: #F4EEF8; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.script-view__h { margin: 24px 0 10px; padding: 6px 10px; font-size: 13px; font-weight: 900; color: var(--white); background: #7A4E9C; border-radius: 6px; }
.script-view__note { font-size: 12.5px; color: var(--ink-soft); border-left: 3px solid #7A4E9C; padding: 4px 10px; margin: 6px 0 14px; }
.script-view__line { display: grid; grid-template-columns: 5em 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.script-view__who { font-size: 12px; font-weight: 900; color: #7A4E9C; padding-top: 2px; }
.script-view__line p { font-size: 14px; line-height: 1.75; }
.script-view__line.is-narration .script-view__who { color: var(--ink-soft); font-weight: 700; }
.script-view__line.is-narration p { color: var(--ink-soft); }
.script-view__end { text-align: center; margin-top: 24px; font-size: 12px; color: var(--ink-soft); letter-spacing: .3em; }
.script-view__hint { margin-top: 8px; font-size: 12px; color: var(--ink-soft); text-align: center; }

/* ---------- 「使用法を見る」：その場で開くページ ---------- */
.modal__media--guide { border: 2px solid var(--ink); max-height: none; align-self: stretch; }
.modal__media--guide iframe { display: block; width: 100%; height: min(72vh, 680px); border: 0; background: #0b1118; }
.work-dialog:has(.modal__media--guide) { width: min(1100px, calc(100% - 32px)); }
@media (min-width: 761px) {
  .modal__body:has(.modal__media--guide) { grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); }
}

/* =========================================================
   作品欄：「一覧で見る／球で見る」（assets/js/orbit.js）
   B案の見せ方をもとに、A案の色に合わせたもの
   ========================================================= */
.works-toolbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.works-toolbar .filters { margin-bottom: 0; }
.view-switch { display: inline-flex; gap: 4px; padding: 4px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); flex-shrink: 0; }
.view-btn { border: 0; background: transparent; border-radius: 999px; padding: .45em 1.2em; font-weight: 700; font-size: 14px; cursor: pointer; }
.view-btn[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.view-btn[data-view="orbit"]::before { content: "◐ "; color: var(--mustard); }

.orbit-view { position: relative; }
.orbit-stage {
  --open: 0;
  position: relative; overflow: hidden;
  height: clamp(520px, 82svh, 800px);
  touch-action: pan-y;
  border-radius: var(--radius-lg); background: var(--paper-2);
}
.orbit-stage.is-empty::after { content: "このジャンルの作品は準備中です"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-soft); }
.orbit-word {
  position: absolute; top: 50%; z-index: 0; margin: 0;
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em; line-height: 1;
  font-size: clamp(3rem, 10vw, 9rem); white-space: nowrap; pointer-events: none; color: var(--ink);
  transition: transform .2s linear;
}
.orbit-word-l { right: 50%; transform: translate(calc((1 - var(--open)) * 50% + var(--open) * -18vw), -50%); }
.orbit-word-r { left: 50%;  transform: translate(calc((1 - var(--open)) * -50% + var(--open) * 18vw), -50%); color: var(--tomato); }

.orbit-scene {
  position: absolute; inset: 0; z-index: 1;
  perspective: 1100px; cursor: grab;
  display: grid; place-items: center;
  opacity: calc(.2 + var(--open) * .8);
}
.orbit-scene:active { cursor: grabbing; }
.orbit-sphere { --card-w: 110px; position: relative; width: 0; height: 0; transform-style: preserve-3d; }
.orbit-card {
  position: absolute; left: 0; top: 0;
  width: var(--card-w); aspect-ratio: var(--r, .8);
  margin-left: calc(var(--card-w) / -2); margin-top: calc(var(--card-w) / var(--r, .8) / -2);
  padding: 0; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--white);
  box-shadow: 0 10px 30px rgba(31, 26, 23, .2);
  cursor: pointer; will-change: transform, opacity;
  -webkit-user-select: none; user-select: none; touch-action: none;
}
.orbit-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; display: block; }
.orbit-card__ph { display: grid; place-items: center; height: 100%; padding: 6px; font-size: 11px; font-weight: 700; background: var(--teal); color: var(--white); }
.orbit-card:hover, .orbit-card:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; }
.orbit-card.is-picked { visibility: hidden; }
.orbit-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; margin: 0;
  font-size: 12px; font-weight: 700; color: var(--ink-soft); white-space: nowrap;
  background: var(--paper); padding: .3em 1em; border-radius: 999px; border: 1.5px solid var(--line);
}
.orbit-stage.is-focus .orbit-hint { opacity: 0; }

/* 手前に出た作品 */
.orbit-focus { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.orbit-focus[hidden] { display: none; }
.of-bg { position: absolute; inset: 0; background: rgba(245, 239, 227, .82); backdrop-filter: blur(6px); animation: of-fade .35s both; }
.of-box { position: relative; display: grid; gap: 20px; align-items: center; width: min(940px, 100%); max-height: 100%; }
.of-media { --r: .8; margin: 0; justify-self: center; height: min(34svh, 300px); aspect-ratio: var(--r); max-width: 100%; cursor: pointer; }
.of-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.of-info { animation: of-rise .5s .15s both; text-align: left; }
.of-count { font-family: var(--font-en); font-weight: 700; color: var(--ink-soft); }
.of-count b { font-size: 1.6rem; color: var(--ink); }
.of-series { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--tomato); }
.of-info h3 { margin: 2px 0 8px; font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 900; line-height: 1.45; }
.of-text { color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 760px) { .of-text { -webkit-line-clamp: unset; display: block; } }
.of-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.of-nav {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper);
  font-family: var(--font-en); font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s;
}
.of-nav:hover { background: var(--ink); color: var(--paper); }
.of-more { padding: .8em 1.4em; }
.of-close { position: absolute; top: -4px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font-size: 1.3rem; cursor: pointer; }
@media (min-width: 760px) {
  .of-box { grid-template-columns: auto minmax(0, 360px); justify-content: center; gap: 40px; }
  .of-media { height: min(64svh, 580px); }
}
@keyframes of-fade { from { opacity: 0; } }
@keyframes of-rise { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 599px) {
  .orbit-stage { height: clamp(460px, 72svh, 620px); }
  .orbit-word { font-size: 3rem; top: auto; }
  .orbit-word-l { right: auto; left: 16px; top: 4%; transform: translateX(calc((1 - var(--open)) * -30px)); }
  .orbit-word-r { left: auto; right: 16px; bottom: 64px; transform: translateX(calc((1 - var(--open)) * 30px)); }
}

/* ---------- Reveal / Animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.hero__title .reveal:nth-child(2) { transition-delay: .12s; }
.hero__title .reveal:nth-child(3) { transition-delay: .24s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes eq { 0%, 100% { height: 12px; } 50% { height: 46px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
