/* HACHIMOYOU トップページ */
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
input, select, textarea, button { box-sizing: border-box; }
/* Layout: 1画面のステージ。中央を横切る音の帯（ビジュアライザー）が主役、文字は四隅に小さく置く */
:root {
  --bg: #fafaf8;        /* わずかに温度を落とした白 */
  --bg-2: #f0f0ec;
  --fg: #121418;        /* 墨に近い黒 */
  --muted: #6a6f78;     /* 青寄りのグレー */
  --line: #e0e0da;
  --accent: #f05a2a;    /* ロゴのオレンジに統一 */
  --accent-soft: rgba(240, 90, 42, .14);
  --logo: #f05a2a;      /* ロゴのオレンジ */
  --f-display: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-mono: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif;
  color-scheme: light;
}
html, body { height: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
  line-break: strict;
}
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-block: 24px;
  overflow: hidden;
  isolation: isolate;
}
#viz {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  display: block;
}
.top, .bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.name {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.name .logo { height: 1.35em; width: auto; fill: var(--logo); flex: none; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav a:hover, .nav a:focus-visible { color: var(--fg); }

.center {
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.play {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: blur(6px);
  color: var(--fg);
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color .25s, transform .25s;
}
.play:hover { border-color: var(--accent); transform: scale(1.04); }
.play:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.play svg { width: 22px; height: 22px; fill: currentColor; }
.play .i-stop { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-stop { display: block; }
.play-label {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--fg);
  text-shadow: 0 1px 8px var(--bg), 0 0 2px var(--bg);
}

.services {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--fg);
  display: flex; flex-wrap: wrap; align-items: baseline;
}
.svc-pick { display: grid; gap: 8px; justify-items: center; margin-top: 6px; }
.services { justify-content: center; }
.bottom { justify-content: flex-end; }
.pick-label { font-size: 13px; font-weight: 300; letter-spacing: .08em; color: var(--fg); }
.services { gap: 8px; }
.services button {
  appearance: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 300; letter-spacing: .06em; color: var(--fg);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--fg) 55%, transparent);
  border-radius: 999px; padding: 6px 14px 6px 12px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s, border-color .2s, background-color .2s;
}
.services button::before {
  content: ""; width: 0; height: 0;
  border-left: 7px solid currentColor; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
}
.services button:hover { border-color: var(--accent); }
.services button[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.services button:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }

/* 聴き比べの切り替え */
.ab {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}
.ab button {
  appearance: none; border: 0; background: none; cursor: pointer;
  font-family: var(--f-body); font-size: 12px; letter-spacing: .08em;
  color: var(--muted); padding: 6px 14px;
  transition: background-color .2s, color .2s;
}
.ab button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.ab button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.meta b { color: var(--accent); font-weight: 300; }

/* ---------- 共通セクション ---------- */
.sec {
  border-top: 1px solid var(--line);
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-block: 88px;
}
.sec.alt { background: var(--bg-2); }
.wrap { max-width: 1040px; margin: 0 auto; display: grid; gap: 40px; }
.sec-head { display: grid; gap: 6px; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.sec-head h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.lead { margin: 0; color: var(--muted); max-width: 60ch; text-wrap: pretty; }
.draft {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--bg);
  background: var(--muted);
  padding: 1px 6px;
  border-radius: 2px;
  vertical-align: middle;
}

/* Service */
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 32px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.svc h3 { margin: 0; font-size: 17px; font-weight: 300; letter-spacing: .04em; }
.svc h3 small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; font-weight: 300; }
.svc p { margin: 0; color: var(--muted); min-width: 0; }
.svc p strong { color: var(--fg); font-weight: 300; }
.note-box {
  border: 1px solid var(--line);
  padding: 18px 20px;
  display: grid; gap: 4px;
}
.note-box b { font-weight: 300; color: var(--accent); font-size: 13px; letter-spacing: .06em; }
.note-box p { margin: 0; color: var(--muted); font-size: 14px; text-wrap: pretty; }

/* Works */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work { display: grid; gap: 10px; }
.cover {
  aspect-ratio: 1; max-width: 100%;
  border: 1px dashed color-mix(in srgb, var(--muted) 50%, transparent);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted);
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, color-mix(in srgb, var(--fg) 4%, transparent) 9px 10px);
}
a.work { color: inherit; text-decoration: none; }
.work.yt .cover {
  position: relative; border-style: solid; border-color: var(--line);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, var(--bg-2)), var(--bg));
  place-items: center; align-content: center; gap: 10px;
}
.yt-play {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--fg) 40%, transparent);
  display: grid; place-items: center; color: var(--fg);
  transition: border-color .2s, color .2s, transform .2s;
}
.yt-play svg { width: 18px; height: 18px; fill: currentColor; }
.yt-note { font-size: 10px; }
a.work:hover .yt-play, a.work:focus-visible .yt-play { border-color: var(--accent); color: var(--accent); transform: scale(1.05); }
a.work:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.work .t { font-size: 14px; }
.live { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--accent); border: 1px solid var(--accent); padding: 0 5px; margin-left: 6px; vertical-align: 2px; }
.work .m { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }

/* Price */
.price-list { display: grid; gap: 16px; }
.plan {
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  align-items: baseline;
}
.plan h3 { margin: 0; font-size: 17px; font-weight: 300; }
.plan .yen {
  font-family: var(--f-display); font-weight: 300; font-size: 26px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.plan .yen small { font-family: var(--f-body); font-size: 12px; font-weight: 300; color: var(--muted); margin-left: 4px; }
.plan .desc { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }
.plan details { grid-column: 1 / -1; margin-top: 6px; }
.plan .eta { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--fg); }
.plan .eta::before { content: "— "; color: var(--accent); }
.plan summary {
  cursor: pointer; list-style: none;
  font-size: 12px; letter-spacing: .1em; color: var(--accent);
}
.plan summary::-webkit-details-marker { display: none; }
.plan summary::before { content: "+ "; }
.plan details[open] summary::before { content: "− "; }
.opts { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.opts li {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 8px; border-top: 1px solid var(--line); font-size: 14px;
}
.opts li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.common {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 13px; color: var(--muted);
}
.common span::before { content: "— "; color: var(--accent); }

/* Flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: f; }
.flow li {
  counter-increment: f;
  border-top: 1px solid var(--fg);
  padding: 16px 16px 0 0;
  display: grid; gap: 6px; align-content: start;
  min-width: 0;
}
.flow li::before {
  content: "STEP " counter(f);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; color: var(--accent);
}
.flow b { font-weight: 300; font-size: 15px; }
.flow p { margin: 0; color: var(--muted); font-size: 13px; }

/* About */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.avatar {
  aspect-ratio: 1; max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.avatar img { width: 82%; height: auto; display: block; }
.about-body { display: grid; gap: 14px; min-width: 0; }
.about-body p { margin: 0; max-width: 60ch; }
.about-body .motto { font-size: clamp(20px, 3vw, 26px); font-weight: 300; letter-spacing: .04em; line-height: 1.5; color: var(--fg); text-wrap: balance; }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq summary { cursor: pointer; list-style: none; display: flex; gap: 14px; font-weight: 300; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: var(--f-mono); color: var(--accent); }
.faq p { margin: 10px 0 0 26px; color: var(--muted); max-width: 64ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-side p { margin: 0; color: var(--muted); }
.x-link {
  display: inline-flex; gap: 10px; align-items: center; width: fit-content;
  border: 1px solid var(--line); padding: 10px 16px;
  color: var(--fg); text-decoration: none; font-size: 14px;
}
.x-link:hover, .x-link:focus-visible { border-color: var(--accent); }
.sns { display: flex; flex-wrap: wrap; gap: 10px; }
button.x-link { appearance: none; background: none; font: inherit; cursor: pointer; }
.dc-id { font-family: var(--f-mono); font-size: 13px; user-select: all; }
.dc-msg { font-size: 11px; color: var(--muted); margin-left: 4px; }
form { display: grid; gap: 16px; min-width: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field label em { font-style: normal; color: var(--accent); font-size: 11px; margin-left: 6px; }
input, select, textarea {
  font: inherit; color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 0;
  width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); }
.submit {
  appearance: none; cursor: pointer;
  border: 1px solid var(--fg); background: var(--fg); color: var(--bg);
  padding: 14px 20px; font: inherit; font-weight: 300; letter-spacing: .08em;
  justify-self: start;
}
.submit:hover, .submit:focus-visible { background: var(--accent); border-color: var(--accent); }
.form-msg { font-size: 13px; color: var(--accent); margin: 0; min-height: 1em; }

.foot {
  border-top: 1px solid var(--line);
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-block: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted);
}
.foot-link { font-family: var(--f-body); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.foot-link:hover, .foot-link:focus-visible { color: var(--fg); }

@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .contact, .about { grid-template-columns: 1fr; }
  .avatar { width: 140px; }
}
@media (max-width: 640px) {
  .svc { grid-template-columns: 1fr; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .sec { padding-block: 64px; }
}

/* 追従ヘッダー */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  align-items: center;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  padding-bottom: 18px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, padding .3s;
}
.site-head.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-bottom: 12px;
}
.hero { padding-top: 96px; padding-bottom: 40px; }
.hero .bottom { position: absolute; right: max(24px, env(safe-area-inset-right, 0px)); bottom: 14px; }
.sec { scroll-margin-top: 56px; }

/* ハンバーガーメニュー */
.menu-btn {
  display: none;
  appearance: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; margin: -8px -8px -8px 0;
  place-items: center; color: var(--fg);
}
.menu-btn span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform .25s, opacity .2s; }
.menu-btn span + span { margin-top: 6px; }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-btn .bars { display: grid; }
.menu-panel {
  position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: min(380px, 86vw); z-index: 95;
  box-shadow: 0 0 0 100vmax rgba(18, 20, 24, .35), -20px 0 40px -20px rgba(18, 20, 24, .35);
  animation: drawer .38s cubic-bezier(.2,.8,.2,1);
  background: var(--bg);
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  display: grid; grid-template-rows: auto 1fr auto;
}
.menu-panel .top { align-items: center; }
@keyframes drawer { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .menu-panel { animation: none; } }
.menu-panel .menu-links a { font-size: clamp(26px, 7vw, 34px); }
.menu-close .bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-close .bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu-close { display: grid; }
.menu-links { align-self: center; display: grid; gap: 4px; }
.menu-links a {
  color: var(--fg); text-decoration: none;
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(28px, 9vw, 40px); letter-spacing: .02em; line-height: 1.35;
  display: flex; align-items: baseline; gap: 14px;
}
.menu-links a small { font-family: var(--f-body); font-weight: 300; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.menu-links a:hover, .menu-links a:focus-visible { color: var(--accent); outline: none; }
.menu-foot { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }

@media (max-width: 560px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .services { font-size: 12px; letter-spacing: .06em; }
}

/* ===== 凝りすぎ版の上書き ===== */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: var(--bg); }

/* ヒーロー：背景の大きな文字と流れる帯 */
.hero { padding-bottom: 92px; }
.wordmark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%); z-index: -2;
  font-family: var(--f-display); font-weight: 300; font-size: clamp(64px, 17vw, 260px); letter-spacing: -.03em;
  line-height: 1; white-space: nowrap; color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--fg) 9%, transparent);
  pointer-events: none; user-select: none;
}
.hero .bottom { bottom: 58px; }
.marquee {
  position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden;
  border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent);
  padding-block: 12px;
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span {
  font-family: var(--f-display); font-weight: 300; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); padding-inline: 22px; white-space: nowrap; display: inline-flex; align-items: center; gap: 44px;
}
.marquee span::after { content: ""; width: 7px; height: 8px; background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 六角形の再生ボタンと進行リング */
.play {
  width: 104px; height: 104px; border: 0; border-radius: 0; background: none; backdrop-filter: none;
  position: relative; color: var(--fg);
}
.play:hover { transform: scale(1.05); }
.play .hexring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hexring .hex-bg { fill: color-mix(in srgb, var(--bg) 70%, transparent); stroke: color-mix(in srgb, var(--fg) 30%, transparent); stroke-width: 1.2; }
.hexring .hex-prog { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.play:hover .hex-bg { stroke: var(--accent); }
.play[aria-pressed="true"] .hex-bg { fill: var(--accent-soft); }
.play svg.i-play, .play svg.i-stop { position: relative; width: 24px; height: 24px; }
.play[aria-pressed="true"] { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { filter: drop-shadow(0 0 14px rgba(240, 90, 42, .45)); } }

/* セクション：上の線にオレンジの差し色、巨大な英字見出し */
.sec { position: relative; border-top: 0; padding-block: 120px; }
.sec::before {
  content: ""; position: absolute; top: 0;
  left: max(24px, env(safe-area-inset-left, 0px)); right: max(24px, env(safe-area-inset-right, 0px));
  height: 1px; background: linear-gradient(90deg, var(--accent) 0 72px, var(--line) 72px);
}
.sec-head { gap: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .2em; }
.eyebrow::before { content: ""; width: 10px; height: 11px; background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.sec-head h2 {
  font-weight: 300; font-size: clamp(36px, 6vw, 72px); line-height: .95; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.2px var(--fg);
  transition: color .6s ease;
}
.sec-head:hover h2, .sec.in .sec-head h2 { color: var(--fg); }
.sec-head h2::after { content: "."; color: var(--accent); -webkit-text-stroke: 0; }

/* サービス */
.svc { transition: background-color .3s, padding .3s; padding-inline: 0; }
.svc:hover { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); padding-inline: 14px; }
.svc h3 small { color: var(--accent); }
.note-box { border: 0; border-left: 2px solid var(--accent); background: var(--bg-2); }

/* 実績 */
.works { gap: 28px; }
.work .cover, .work.yt .cover {
  border: 0; position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(240, 90, 42, .22), transparent 55%),
    radial-gradient(90% 80% at 90% 100%, rgba(18, 20, 24, .05), transparent 60%),
    var(--bg-2);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s;
}
.work .cover::after {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='32' viewBox='0 0 28 32'%3E%3Cpath d='M14 1L27 8.5V23.5L14 31L1 23.5V8.5Z' fill='none' stroke='%23121418' stroke-opacity='.07'/%3E%3C/svg%3E");
}
a.work:hover .cover, a.work:focus-visible .cover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 24px 50px -20px rgba(240, 90, 42, .55); }
.yt-play {
  position: relative; z-index: 1; width: 62px; height: 70px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--bg);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
a.work:hover .yt-play, a.work:focus-visible .yt-play { color: var(--bg); transform: scale(1.1); }
.yt-note { position: relative; z-index: 1; }
.work .t { font-size: 15px; font-weight: 300; transition: color .3s; }
a.work:hover .t { color: var(--accent); }

/* 料金 */
.plan { transition: border-color .3s, transform .3s, background-color .3s; }
.plan:hover { border-color: var(--accent); transform: translateX(6px); background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
.plan .yen { font-family: var(--f-body); font-weight: 300; font-size: clamp(26px, 3.4vw, 34px); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.plan .yen small { font-size: 14px; margin-left: 2px; }
.plan:first-child { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }

/* 制作の流れ：大きな番号 */
.flow li { border-top: 1px solid var(--line); padding-top: 18px; position: relative; }
.flow li::before {
  content: "0" counter(f); font-family: var(--f-display); font-weight: 300; font-size: 54px; line-height: 1;
  letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px var(--accent);
}
.flow li:hover::before { color: var(--accent); }

/* 自己紹介：六角形の枠 */
.avatar {
  border: 0; border-radius: 0; background: var(--bg-2);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: none; position: relative;
}
.about-body .motto { font-family: var(--f-body); font-size: clamp(24px, 3.6vw, 34px); font-weight: 300; }
.about-body .motto::before { content: "“"; color: var(--accent); font-family: var(--f-display); margin-right: .1em; }

/* フォーム */
input, select, textarea { background: var(--bg-2); border-color: transparent; border-bottom: 1px solid var(--line); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-bottom-color: var(--accent); }
.submit { background: var(--accent); border-color: var(--accent); color: var(--bg); padding: 16px 32px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.submit:hover, .submit:focus-visible { background: var(--fg); border-color: var(--fg); }

/* スクロールで出てくる動き（JSが付けたときだけ） */
.rv.pre { opacity: .001; transform: translateY(28px); }
.rv { transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .play[aria-pressed="true"] { animation: none; }
  .rv, .rv.pre { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 640px) {
  .sec { padding-block: 84px; }
  .flow li::before { font-size: 40px; }
}

/* ===== 遊びすぎ版 ===== */
:root { --beat: 0; --bass: 0; }
/* ページ上端の進み具合 */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); z-index: 60; }
/* 音に合わせて揺れる見出しと背景 */
.sec-head h2 { transform: scale(calc(1 + var(--beat) * .06)); transform-origin: 0 80%; }
.hero::before {
  content: ""; position: absolute; inset: -20%; z-index: -3; pointer-events: none;
  background: radial-gradient(40% 50% at 50% 45%, rgba(240, 90, 42, calc(var(--bass) * .55)), transparent 70%);
}
.wordmark { -webkit-text-stroke-color: color-mix(in srgb, var(--accent) calc(8% + var(--bass) * 60%), transparent); transform: translate(-50%, -46%) scale(calc(1 + var(--bass) * .05)); }
/* クリックで広がる六角形 */
.ripple {
  position: fixed; z-index: 80; pointer-events: none; width: 16px; height: 18px; margin: -9px 0 0 -8px;
  border: 0; background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  animation: ripple .9s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes ripple { from { transform: scale(1) rotate(0); opacity: .9; } to { transform: scale(9) rotate(60deg); opacity: 0; } }
.note-float {
  position: fixed; z-index: 81; pointer-events: none; font-family: var(--f-display); font-weight: 300; font-size: 20px; color: var(--fg);
  animation: floatup 1.1s ease-out forwards;
}
@keyframes floatup { to { transform: translate(var(--dx, 0), -70px) rotate(var(--rot, 0deg)); opacity: 0; } }
/* ついてくる六角形 */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 34px; height: 38px; margin: -19px 0 0 -17px;
  border: 0; opacity: 0; transition: width .25s, height .25s, margin .25s, opacity .3s;
}
.cursor svg { width: 100%; height: 100%; overflow: visible; }
.cursor polygon { fill: none; stroke: var(--accent); stroke-width: 3; transition: fill .25s; }
.cursor.big { width: 64px; height: 72px; margin: -36px 0 0 -32px; }
.cursor.big polygon { fill: rgba(240, 90, 42, .12); }
/* 3Dで傾くカード */
.works, .price-list { perspective: 900px; }
.work .cover, .plan { transform-style: preserve-3d; will-change: transform; }
/* キャラクター */
.buddy {
  position: fixed; z-index: 70; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 86px; height: 86px; border: 0; padding: 0; cursor: pointer; background: none;
  transform: translateY(calc(var(--beat) * -14px)) rotate(calc(var(--beat) * 8deg));
  animation: bob 3.2s ease-in-out infinite;
}
.buddy img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 10px rgba(18,20,24,.18)); }
.buddy:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@keyframes bob { 50% { translate: 0 -6px; } }
.bubble {
  position: fixed; z-index: 71; right: calc(max(16px, env(safe-area-inset-right, 0px)) + 70px); bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  max-width: 230px; background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 300; line-height: 1.6;
  padding: 10px 14px; border-radius: 14px 14px 2px 14px;
  transform-origin: 100% 100%; animation: pop .35s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
/* ヒント */
.hint { font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-top: 4px; }
.hint kbd { font-family: var(--f-mono); font-size: 11px; border: 1px solid var(--line); padding: 0 5px; color: var(--fg); }
@media (prefers-reduced-motion: reduce) {
  .buddy { animation: none; transform: none; }
  .ripple, .note-float { animation-duration: .01s; }
  .sec-head h2, .wordmark { transform: none; }
}
@media (pointer: coarse) { .cursor { display: none; } .hint .kb { display: none; } }

/* ===== 右側の縦メニュー（PC） ===== */
:root { --rail: 0px; }
.rail { display: none; }
@media (min-width: 861px) {
  :root { --rail: 84px; }
  body { padding-right: var(--rail); }
  .rail {
    position: fixed; top: 0; bottom: 0; right: 0; width: var(--rail); z-index: 65;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    padding-block: calc(26px + env(safe-area-inset-top, 0px)) calc(28px + env(safe-area-inset-bottom, 0px));
    padding-right: env(safe-area-inset-right, 0px);
    background: var(--bg); border-left: 1px solid var(--line);
  }
  .rail-logo { display: grid; place-items: center; width: 48px; height: 48px; }
  .rail-mark { width: 34px; height: auto; fill: var(--logo); transition: transform .4s; }
  .rail-logo:hover .rail-mark { transform: rotate(60deg); }
  .rail-nav { display: flex; flex-direction: column; align-items: center; gap: 26px; }
  .rail-nav a, .rail-cta {
    writing-mode: vertical-rl; text-decoration: none; color: var(--fg);
    font-family: var(--f-display); font-weight: 300; font-size: 13px; letter-spacing: .28em; text-transform: uppercase;
    transition: color .3s;
  }
  .rail-nav a { position: relative; }
  .rail-nav a::before {
    content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 7px; margin-top: -3px;
    background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    opacity: 0; transition: opacity .3s;
  }
  .rail-nav a:hover, .rail-nav a.on { color: var(--accent); }
  .rail-nav a.on::before { opacity: 1; }
  .rail-cta { font-family: var(--f-body); font-weight: 300; letter-spacing: .3em; text-transform: none; background: var(--fg); color: var(--bg); padding: 20px 12px; }
  .rail-cta:hover { background: var(--accent); color: var(--bg); }
  .rail-logo:focus-visible, .rail-nav a:focus-visible, .rail-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
  /* 上のメニューはPCでは隠し、ロゴと名前だけ残す */
  .site-head .nav { display: none; }
  .site-head { right: var(--rail); }
  .progress { right: var(--rail); width: auto; }
  .buddy { right: calc(var(--rail) + 16px); }
  .bubble { right: calc(var(--rail) + 86px); }
}

@media (min-width: 861px) {
  .rail-buddy { display: grid; place-items: center; }
  .rail .buddy { position: static; width: 60px; height: 60px; }
  .bubble.in-rail { bottom: auto; right: calc(var(--rail) + 14px); border-radius: 14px 2px 14px 14px; transform-origin: 100% 0; }
}

@media (min-width: 861px) {
  .rail { overflow-y: auto; scrollbar-width: none; gap: 14px; }
  .rail-nav { gap: 18px; }
  .rail-nav a { font-size: 12px; letter-spacing: .22em; }
  .rail-cta { font-size: 12px; padding: 16px 11px; }
}
@media (min-width: 861px) and (max-height: 760px) {
  .rail .buddy { width: 44px; height: 44px; }
  .rail-nav { gap: 12px; }
}

/* 縦メニューのお問い合わせボタンだけオレンジ */
@media (min-width: 861px) {
  .rail-cta { background: #f05a2a; color: #fafaf8; }
  .rail-cta:hover { background: #121418; color: #fafaf8; }
}

/* ===== サブスクを入口にする ===== */
.tagline { margin: 0 0 6px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 14px; font-size: 14px; color: var(--fg); text-shadow: 0 1px 8px var(--bg), 0 0 2px var(--bg); }
.tagline b { font-family: var(--f-body); font-weight: 300; font-size: clamp(22px, 3.4vw, 30px); color: var(--accent); letter-spacing: .02em; }
.fine { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.plan:first-child { border: 2px solid var(--accent); box-shadow: 0 18px 40px -24px rgba(240, 90, 42, .6); }
.badge { display: inline-block; vertical-align: 3px; margin-right: 10px; font-size: 11px; font-weight: 300; letter-spacing: .1em; color: #fafaf8; background: var(--accent); padding: 2px 10px; }
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    position: fixed; z-index: 69; left: max(16px, env(safe-area-inset-left, 0px)); right: calc(max(16px, env(safe-area-inset-right, 0px)) + 98px);
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 15px 18px; background: var(--accent); color: #fafaf8; text-decoration: none; font-weight: 300; font-size: 14px;
    box-shadow: 0 12px 28px -12px rgba(240, 90, 42, .7);
    transform: translateY(160%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
  .sticky-cta.show { transform: none; }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== 本番用の追加 ===== */
/* 実績：YouTubeのサムネイル */
.work.yt .cover { aspect-ratio: 16 / 9; }
.work.yt .cover .thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s; }
.work.yt .cover::after { background: linear-gradient(0deg, rgba(18, 20, 24, .45), rgba(18, 20, 24, .05) 60%); opacity: 1; z-index: 0; }
.work.yt .yt-note { color: #fafaf8; }
a.work:hover .cover .thumb { transform: scale(1.05); }
.work.yt .cover iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
a.work.playing-yt .cover { transform: none !important; }

/* お問い合わせフォーム */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 12px; color: var(--muted); }
.form-note a { color: inherit; }
.form-msg.err { color: #c0392b; }
.submit[disabled] { opacity: .6; cursor: wait; }

/* フッターのリンク */
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ===== 文字はすべて細く ===== */
body { font-weight: 200; }
strong, b, h1, h2, h3, h4, th, summary, em { font-weight: 300; }

/* ===== 極細ゴシックで統一 ===== */
body { font-weight: 200; }
strong, b, h1, h2, h3, h4, th, summary, em { font-weight: 300; }
.sec-head h2 { font-weight: 100; color: var(--fg) !important; -webkit-text-stroke: 0 !important; letter-spacing: 0; }
.name, .rail-nav a, .marquee span, .flow li::before, .tagline b, .plan .yen, .menu-links a { font-weight: 100; }
.flow li::before { color: var(--accent); -webkit-text-stroke: 0; }
.wordmark { font-weight: 100; }

/* ===== ロゴの「HACHIMOYOU」に合わせて字間を広げる ===== */
body { letter-spacing: .06em; }
.name { letter-spacing: .32em; }
.sec-head h2 { letter-spacing: .22em !important; text-transform: uppercase; font-size: clamp(30px, 5vw, 58px) !important; line-height: 1.1; }
.sec-head h2::after { margin-left: -.15em; }
.eyebrow { letter-spacing: .3em; }
.rail-nav a { letter-spacing: .34em; }
.marquee span { letter-spacing: .34em; }
.menu-links a { letter-spacing: .24em; text-transform: uppercase; }
.wordmark { letter-spacing: .12em; }
.tagline, .tagline span { letter-spacing: .14em; }
.tagline b { letter-spacing: .08em; }
.svc h3, .plan h3, .about-body .motto { letter-spacing: .12em; }
.svc h3 small { letter-spacing: .28em; }
.services button, .submit, .sticky-cta, .rail-cta { letter-spacing: .16em; }
.foot, .foot-link { letter-spacing: .2em; }
