/* レイアウト: 細い線と円だけの構成。書体は Futura 系（Jost）に統一。色は白と黒の2値、背景は単色。 */
:root {
  --bg: #fafaf8;
  --fg: #0c0c0c;
  --mute: #74746f;
  --line: #cdcdc8;
  --font: "Jost", "Futura", "Futura PT", "Century Gothic", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 180px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.8 var(--font); }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.3; text-wrap: balance; }
button { font: inherit; color: inherit; }
.meta { font-size: .78rem; letter-spacing: .14em; color: var(--mute); line-height: 1.5; font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--fg); color: var(--bg); padding: 8px 12px; z-index: 99; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); padding-block: 0 40px; }

/* ヘッダー */
/* スクロールしても名前とメニューが上に残る */
.site-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 22px 12px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.brand { font-weight: 400; line-height: 1.2; display: inline-grid; grid-template-columns: auto auto; justify-content: space-between; align-items: center; gap: 10px 18px; }
.brand > a { display: contents; }
.brand-en { grid-column: 1 / -1; }
.brand-en { font-size: clamp(1.3rem, 4.4vw, 1.9rem); letter-spacing: .3em; text-transform: uppercase; }
.brand-ja { font-size: .85rem; font-weight: 500; letter-spacing: .5em; }
.icons { display: flex; gap: 14px; justify-self: end; margin-right: calc(clamp(1.3rem, 4.4vw, 1.9rem) * .3); } /* 右端を MINEZAWA の最後の A に揃える（字間ぶんを引く） */
.icons a { display: block; transition: opacity .2s; }
.icons a:hover { opacity: .5; }
.icons svg { display: block; width: 20px; height: 20px; fill: none; stroke: var(--fg); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icons .dot { fill: var(--fg); }
.site-head nav { margin-top: 8px; }
.site-head ul.nav, .site-head nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.site-head nav a { display: block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; padding-block: 4px; border-bottom: 1px solid transparent; }
.site-head nav a[aria-current], .site-head nav a:hover { border-bottom-color: var(--fg); }

/* メニュー: ふだんは隠し、右上の三本線を押すと右から出てくる */
.site-head { flex-direction: row; justify-content: space-between; }
.menu-btn { display: none; }
.js .menu-btn { position: relative; z-index: 32; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 7px; width: 44px; height: 44px; margin: -6px -6px 0 0; padding: 6px; border: 0; background: none; cursor: pointer; }
.menu-btn span { display: block; width: 28px; height: 1px; background: var(--fg); transition: transform .25s, opacity .2s, width .25s; }
.menu-btn:hover span:nth-child(2) { width: 18px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.js .site-head nav { position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; width: min(340px, 84vw); margin: 0; padding: 104px 36px 40px; background: var(--bg); border-left: 1px solid var(--line); transform: translateX(100%); visibility: hidden; transition: transform .32s cubic-bezier(.2, .7, .2, 1), visibility 0s .32s; overflow-y: auto; }
.js .site-head nav.is-open { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.js .site-head nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
.js .site-head nav a { font-size: 1.05rem; letter-spacing: .28em; }
.site-head nav .icons { margin: 0 0 30px; gap: 18px; justify-self: start; justify-content: flex-start; }
.site-head nav .icons a { padding: 0; border: 0; }
.site-head nav .icons svg { width: 24px; height: 24px; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(12, 12, 12, .14); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.is-open { opacity: 1; pointer-events: auto; }

/* ボタン */
.btn { display: inline-block; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1; padding: 13px 22px; border: 1px solid var(--fg); border-radius: 999px; background: transparent; color: var(--fg); cursor: pointer; transition: background-color .2s, color .2s; }
.btn:hover, .btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* セクション */
.block { padding-block: clamp(28px, 5vw, 56px); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.sec-head h2, .sec-head > a { font-size: .78rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; }
.sec-head h2 small { margin-left: .4em; font-size: .78rem; font-weight: 400; letter-spacing: .12em; color: var(--mute); text-transform: none; }
.sec-head > a { color: var(--mute); border-bottom: 1px solid var(--line); }
.sec-head > a:hover { color: var(--fg); border-color: var(--fg); }
.page-head { padding-block: clamp(32px, 7vw, 88px) clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: clamp(2.2rem, 7vw, 4.6rem); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; line-height: 1; }

/* リリース */
.releases { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 28px; }
.releases.wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 48px 28px; padding-bottom: 40px; }
.release { display: flex; flex-direction: column; gap: 10px; min-width: 0; perspective: 900px; scroll-margin-top: 24px; }
.release h2, .release h3 { font-size: 1rem; letter-spacing: .12em; margin-top: 6px; }
.art { position: relative; display: block; width: 100%; aspect-ratio: 1; border: 1px solid var(--fg); overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out; }
.art::before { content: ""; position: absolute; inset: 0; }
.art-1::before { background: radial-gradient(circle at 50% 50%, var(--fg) 0 26%, transparent 26.4%); }
.art-2::before { background: radial-gradient(circle at 50% 100%, var(--fg) 0 44%, transparent 44.4%); }
.art-3::before { background: repeating-radial-gradient(circle at 50% 50%, var(--fg) 0 1px, transparent 1px 14px); }
.art-4::before { background: radial-gradient(circle at 50% 40%, var(--fg) 0 20%, transparent 20.4%), linear-gradient(to top, transparent 0 30%, var(--fg) 30% 30.5%, transparent 30.5%); }
.art.has-cover::before { display: none; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art.has-cover { border-color: var(--line); }
.embed { width: 100%; border: 0; border-radius: 12px; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips a { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; line-height: 1; padding: 9px 14px; border: 1px solid var(--fg); border-radius: 999px; transition: background-color .2s, color .2s; }
.chips a:hover { background: var(--fg); color: var(--bg); }

/* ニュース */
.news-list { border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 4px 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s; }
.news-list a:hover { padding-left: 14px; }
.news-title { line-height: 1.6; }
.news-title small { display: block; margin-top: 2px; font-size: .82rem; color: var(--mute); letter-spacing: .02em; }
.post-en { color: var(--mute); margin-top: -10px; }

/* 記事・本文 */
.post { padding-block: clamp(32px, 7vw, 88px) 40px; display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.post h1 { font-size: clamp(1.4rem, 4vw, 2.2rem); letter-spacing: .04em; }
.prose { max-width: 40em; display: flex; flex-direction: column; gap: 1.1em; padding-bottom: 24px; }
.prose a { border-bottom: 1px solid var(--fg); }
.prose h2 { font-size: 1.15rem; margin-top: .8em; }
.prose ul { list-style: disc; padding-left: 1.4em; }
.portrait { display: block; width: min(100%, 420px); margin-bottom: 32px; }
.mail { font-size: clamp(1rem, 3.4vw, 1.5rem); letter-spacing: .06em; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; overflow-wrap: anywhere; }

/* お問い合わせフォーム */
.form { display: flex; flex-direction: column; gap: 8px; max-width: 34em; }
.form label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-top: 14px; }
.form input, .form textarea { width: 100%; font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--fg); border-radius: 0; padding: 8px 0; }
.form textarea { border: 1px solid var(--fg); padding: 12px; resize: vertical; margin-top: 4px; }
.form input:focus-visible, .form textarea:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
.form .btn { align-self: flex-start; margin-top: 18px; }
.form .honey { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Works / FAQ */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 0 40px; }
.works li { padding-block: 14px; border-top: 1px solid var(--line); min-width: 0; }
.works h3 { font-size: 1rem; font-weight: 400; line-height: 1.6; }
/* Tape */
.tape { display: flex; flex-direction: column; gap: 22px; min-width: 0; max-width: 400px; margin-inline: auto; padding-block: 8px 48px; gap: 18px; }
.tape svg { display: block; width: min(100%, 52vh); min-width: min(100%, 240px); height: auto; margin-inline: auto; }
.tape svg { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tape svg.is-held { cursor: grabbing; }
.c-line { fill: none; stroke: var(--fg); stroke-width: 1; vector-effect: non-scaling-stroke; }
.c-text { fill: var(--fg); font-family: var(--font); font-size: 11px; letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.c-name { letter-spacing: 4px; }
/* リールの間の「左右に動かせます」の目印。一度使うと消える */
.c-hint { transition: opacity .6s; pointer-events: none; }
.c-hint path { fill: none; stroke: var(--mute); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.c-hint text { fill: var(--mute); font-family: var(--font); font-size: 5.5px; letter-spacing: 1.6px; }
.c-hint.is-used { opacity: 0; }
.c-sub { font-size: 6.5px; letter-spacing: 2.5px; fill: var(--mute); }
.c-title { font-size: 10px; letter-spacing: 1.5px; }
.c-artist { font-size: 7.5px; letter-spacing: 1.5px; fill: var(--mute); }
/* 実験: 外枠なし。回る2つの穴と、巻き取られて増えていくテープだけで見せる（settings.md の tape_style: reels） */
.tape--reels svg > rect, .tape--reels svg > line, .tape--reels svg > text:first-of-type { display: none; }
.tape--reels [data-pack] { fill: var(--line); stroke: none; }
.tape--reels .reel circle { fill: var(--bg); }
.tape--reels [data-time] { transform: translate(-160px, 158px); text-anchor: middle; font-size: 8px; fill: var(--mute); }
.tape-ctl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.tape-ctl .btn { letter-spacing: .05em; padding: 13px 0; text-align: center; }
.tape-fx { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 18px; align-items: center; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.tape-top { position: relative; }
/* 触った場所に出る指紋 */
.print { position: absolute; left: 0; top: 0; width: 36px; height: 44px; pointer-events: none; opacity: 0; transition: opacity .9s ease-out; will-change: transform, opacity; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.print.is-on { opacity: .38; transition: opacity .12s; }
@media (pointer: coarse) { .print { width: 66px; height: 80px; } }
.print svg { display: block; width: 100%; height: 100%; cursor: default; }
.print ellipse { fill: none; stroke: var(--fg); stroke-width: 1.1; stroke-linecap: round; }
.broken { position: absolute; right: 0; bottom: 2px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1.25; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); cursor: pointer; }
.broken.is-left { right: auto; left: 0; align-items: flex-start; }
.broken small { font-size: .58rem; letter-spacing: .12em; margin-bottom: 3px; }
.switch { width: 32px; height: 16px; padding: 2px; border: 1px solid var(--fg); border-radius: 999px; background: transparent; cursor: pointer; transition: background-color .15s; }
.switch span { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--fg); transition: transform .15s, background-color .15s; }
.switch[aria-checked="true"] { background: var(--fg); }
.switch[aria-checked="true"] span { transform: translateX(16px) translateY(1px); background: var(--bg); }
.tape-fx input { -webkit-appearance: none; appearance: none; width: 100%; min-width: 0; height: 24px; margin: 0; padding: 0; background: transparent; border: 0; border-radius: 0; cursor: pointer; --p: 0%; }
.tape-fx input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; border: 1px solid var(--line); background: linear-gradient(var(--fg), var(--fg)) 0 / var(--p) 100% no-repeat, #ececea; box-shadow: none; }
.tape-fx input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--fg); border: 0; box-shadow: none; }
.tape-fx input::-moz-range-track { height: 4px; border-radius: 3px; border: 1px solid var(--line); background: #ececea; }
.tape-fx input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--fg); }
.tape-fx input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--fg); border: 0; }
.tape-fx input:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
.tape-list { border-top: 1px solid var(--line); counter-reset: t; }
.tape-list button { display: flex; gap: 18px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; letter-spacing: .08em; cursor: pointer; }
.tape-list button::before { counter-increment: t; content: counter(t, decimal-leading-zero); color: var(--mute); font-variant-numeric: tabular-nums; }
.tape-list .artist { color: var(--mute); font-size: .8rem; font-weight: 400; align-self: center; }
.tape-list button[aria-current="true"] { font-weight: 500; }
.tape-list button[aria-current="true"]::after { content: "●"; margin-left: auto; font-size: .6rem; align-self: center; }

.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-foot a:hover { color: var(--fg); }

@media (max-width: 760px) {
  .news-list a { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
