/* ==========================================================
   44 STUDIO — style.css
   黒ベース・シネマティック。色やフォントは :root の変数で変更できます。
   ========================================================== */

:root {
  --bg: #0B0B0C;
  --bg2: #141415;
  --line: #26262A;
  --text: #EDEAE4;
  --muted: #A3A19B;
  --faint: #8F8D88;
  --accent: #E23B2E;
  --font-d: 'Barlow Condensed', 'Noto Sans JP', sans-serif;
  --font-m: 'IBM Plex Mono', 'Noto Sans JP', ui-monospace, monospace;
  --font-b: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, system-ui, sans-serif;
  --gutter: clamp(20px, 4vw, 32px);
  --maxw: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
ul, ol { padding: 0; }
.plain { list-style: none; margin: 0; padding: 0; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; color: #000; padding: 10px 16px; }

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

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
  font-family: var(--font-d); font-weight: 500; font-size: 26px; letter-spacing: .16em;
}
.brand img { width: 48px; height: 48px; }
.nav { display: flex; align-items: center; gap: 0 28px; font-family: var(--font-m); font-size: 13px; letter-spacing: .12em; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; }
.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.nav-toggle { display: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid var(--text); background: transparent; color: var(--text);
  font-family: var(--font-b); font-size: 14px; font-weight: 700; letter-spacing: .04em;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: #fff; border-color: #fff; color: var(--bg); }
.btn--dark { background: var(--bg); border-color: var(--bg); color: #fff; }
.btn--dark:hover { background: #fff; border-color: #fff; color: var(--bg); }
.btn--sm { min-height: 44px; padding: 0 20px; }

/* ---------- 見出し・共通 ---------- */
.section { padding-top: clamp(72px, 10vw, 112px); }
.eyebrow { font-family: var(--font-m); font-size: 13px; letter-spacing: .16em; color: var(--muted); margin: 0 0 12px; }
.h2 { margin: 0; font-family: var(--font-d); font-weight: 700; font-size: clamp(48px, 7vw, 88px); line-height: 1; letter-spacing: .01em; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-m); font-size: 13px; letter-spacing: .12em; border-bottom: 1px solid var(--text); }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 44em; margin: 24px 0 0; }
.note { font-family: var(--font-m); font-size: 13px; color: var(--muted); }
.todo { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 画像・映像の枠(プレースホルダー兼用) ---------- */
.thumb {
  position: relative; display: block; overflow: hidden;
  background: var(--bg2); color: var(--faint);
  font-family: var(--font-m); font-size: 12px; letter-spacing: .1em;
}
.thumb > img, .thumb > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb > .label { position: absolute; left: 16px; right: 16px; bottom: 14px; }
.r1x1 { aspect-ratio: 1 / 1; }
.r4x5 { aspect-ratio: 4 / 5; }
.r16x9 { aspect-ratio: 16 / 9; }
.r21x9 { aspect-ratio: 21 / 9; }

/* ---------- ヒーロー ---------- */
.hero { padding-top: clamp(40px, 6vw, 64px); }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; margin-bottom: 48px; }
.hero-logo { flex: 1 1 300px; max-width: min(360px, 78vw); height: auto; margin: 0 auto; }
.hero-text { flex: 1 1 420px; min-width: 0; }
.hero-title { margin: 0; font-family: var(--font-d); font-weight: 700; font-size: clamp(64px, 11vw, 150px); line-height: .88; letter-spacing: -.005em; }
.hero-title span { display: block; }
.hero-title i { font-style: normal; color: var(--accent); }
.hero-sub { margin: 24px 0 0; font-size: clamp(22px, 3vw, 36px); font-weight: 500; line-height: 1.4; }
.reel { width: 100%; min-height: 220px; border: 1px solid var(--line); }
.reel-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; text-align: center; }

/* ---------- 2つの入口 ---------- */
.entrances { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.entrance { border: 1px solid var(--line); padding: clamp(24px, 3vw, 32px); }
.entrance h2 { margin: 8px 0; font-size: 28px; line-height: 1.3; }
.entrance p { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.row-link {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  border-top: 1px solid var(--line);
  font-family: var(--font-d); font-size: 26px; font-weight: 600; letter-spacing: .06em;
}
.row-link:last-child { border-bottom: 1px solid var(--line); }

/* ---------- グリッドとカード ---------- */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: block; border: 1px solid var(--line); }
.card-body { padding: 20px 20px 24px; }
.biz { display: block; border: 1px solid var(--line); transition: border-color .2s; }
.biz:hover { border-color: var(--text); }
.biz .num { font-family: var(--font-d); font-weight: 700; font-size: 28px; line-height: 1; color: var(--accent); }
.biz .name { font-family: var(--font-d); font-weight: 700; font-size: 40px; line-height: 1.1; letter-spacing: .04em; }
.biz .desc { margin-top: 4px; font-size: 14px; color: var(--muted); }
.name-sm { font-size: 18px; font-weight: 700; line-height: 1.5; }
.desc-sm { font-size: 14px; color: var(--muted); }
.svc-text { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.bordered { border: 1px solid var(--line); }
.row-sub { margin-left: 16px; font-family: var(--font-b); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }

/* ---------- 作品(動画) ---------- */
.work { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: pointer; }
.work.is-pending { cursor: default; }
.work-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--bg2); border: 1px solid var(--line); overflow: hidden; }
.work-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work:hover .work-thumb img { transform: scale(1.03); }
.work-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.work-badge { position: absolute; left: 14px; bottom: 10px; font-family: var(--font-m); font-size: 11px; letter-spacing: .14em; color: var(--faint); }
.work-title { display: block; margin-top: 12px; font-size: 16px; font-weight: 500; }
.work-meta { display: block; font-family: var(--font-m); font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: transparent; color: var(--text);
  font-family: var(--font-m); font-size: 13px; letter-spacing: .1em; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- 商品・リリース ---------- */
.product { border: 1px solid var(--line); display: flex; flex-direction: column; }
.product .body { padding: 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product .cat { font-family: var(--font-m); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.product .ttl { font-size: 18px; font-weight: 700; line-height: 1.5; }
.product .sub { font-size: 14px; color: var(--muted); }
.product .actions { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.listen { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.listen .label-m { font-family: var(--font-m); font-size: 13px; letter-spacing: .16em; color: var(--muted); }
.listen .btn { border-color: var(--line); font-weight: 500; }
.listen .btn:hover { border-color: var(--text); }

/* ---------- 依頼バンド ---------- */
.band { margin-top: clamp(72px, 10vw, 112px); background: var(--accent); color: #fff; }
.band .wrap { padding-block: clamp(56px, 8vw, 80px); }
.band .eyebrow { color: #fff; }
.band-lead { margin: 16px 0 40px; font-size: 18px; font-weight: 500; }
.band .cta-row { display: flex; flex-wrap: wrap; gap: 16px; }
.band .grid { margin-top: 0; }
.band .box { border: 1px solid #fff; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.band .box h3 { margin: 0; font-size: 24px; line-height: 1.4; }
.band .box p { margin: 0; font-size: 14px; }
.band .box .btn { margin-top: auto; }

/* ---------- お知らせ ---------- */
.news { border-bottom: 1px solid var(--line); }
.news-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; min-height: 44px; padding: 20px 0; border-top: 1px solid var(--line); }
a.news-item:hover { background: var(--bg2); }
.news-date { min-width: 104px; font-family: var(--font-m); font-size: 13px; color: var(--muted); }
.news-tag { font-family: var(--font-m); font-size: 12px; letter-spacing: .08em; border: 1px solid var(--line); padding: 2px 10px; }
.news-title { flex: 1 1 280px; }

/* ---------- 下層ページ ---------- */
.page-hero { padding-top: clamp(48px, 7vw, 88px); }
.crumb { font-family: var(--font-m); font-size: 13px; letter-spacing: .12em; color: var(--muted); margin: 0 0 16px; }
.crumb a { border-bottom: 1px solid var(--line); }
.page-title { margin: 0; font-family: var(--font-d); font-weight: 700; font-size: clamp(64px, 14vw, 200px); line-height: .88; letter-spacing: -.005em; }
.page-title i { font-style: normal; color: var(--accent); }
.page-sub { margin: 16px 0 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; }

.steps { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { border-top: 1px solid var(--text); padding-top: 16px; counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-d); font-weight: 700; font-size: 32px; line-height: 1; color: var(--accent); }
.steps h3 { margin: 8px 0 4px; font-size: 18px; }
.steps p { margin: 0; font-size: 14px; color: var(--muted); }

.spec { margin: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: minmax(120px, 240px) minmax(0, 1fr); gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--font-m); font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.spec dd { margin: 0; }

.prose { max-width: 46em; }
.prose h2 { font-size: 22px; line-height: 1.5; margin: 48px 0 8px; }
.prose p, .prose li { margin: 0 0 12px; }
.prose ul { padding-left: 1.4em; }

.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.side-box { border: 1px solid var(--line); padding: 28px; display: grid; gap: 16px; }
.side-box h2 { margin: 0; font-size: 22px; line-height: 1.4; }
.side-box p { margin: 0; color: var(--muted); font-size: 15px; }
.mail-list { list-style: none; margin: 0; padding: 0; }
.mail-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mail-list span:first-child { font-family: var(--font-m); font-size: 12px; letter-spacing: .1em; color: var(--muted); }
.mail-list a { border-bottom: 1px solid var(--line); word-break: break-all; }

/* ---------- フォーム ---------- */
.form { display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .legend { font-family: var(--font-m); font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.req, .opt { display: inline-block; font-family: var(--font-b); font-size: 11px; letter-spacing: 0; padding: 0 8px; margin-left: 8px; line-height: 1.7; }
.req { background: var(--accent); color: #fff; }
.opt { border: 1px solid var(--line); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--bg2); border: 1px solid #3A3A3F; border-radius: 0;
  color: var(--text); font: inherit; font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--text); }
.select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%23EDEAE4' stroke-width='1.5'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #FF8A80; }
.err { color: #FF8A80; font-size: 13px; margin: 0; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.check a { border-bottom: 1px solid var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.8em; font-size: 15px; }
.form-status.ok { color: #9BE3A8; }
.form-status.ng { color: #FF8A80; }

/* ---------- 動画プレーヤー(ライトボックス) ---------- */
.lightbox { width: min(1100px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line); background: #000; color: var(--text); overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox-frame { aspect-ratio: 16 / 9; background: #000; }
.lightbox-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.lightbox-cap { font-size: 14px; }
.lightbox-close { min-width: 44px; min-height: 44px; padding: 0 16px; background: transparent; border: 1px solid var(--line); color: var(--text); cursor: pointer; font-family: var(--font-m); font-size: 13px; letter-spacing: .1em; }
.lightbox-close:hover { border-color: var(--text); }

/* ---------- フッター ---------- */
.site-footer { margin-top: clamp(72px, 10vw, 112px); border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 56px; }
.foot-brand { flex: 1 1 280px; }
.foot-brand img { width: 96px; height: 96px; }
.foot-name { margin-top: 12px; font-family: var(--font-d); font-weight: 500; font-size: 22px; letter-spacing: .16em; }
.foot-tag { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.foot-mail { margin: 16px 0 0; font-family: var(--font-m); font-size: 13px; color: var(--muted); }
.foot-col { flex: 1 1 200px; display: flex; flex-direction: column; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-m); font-size: 13px; letter-spacing: .12em; }
.foot-bottom { margin-top: 48px; padding: 24px 0 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); }
.foot-bottom .legal { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-bottom a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- スクロール表示 ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .work-thumb img, .btn, .biz { transition: none; }
}

/* ---------- タブレット ---------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- スマホ・ナビ ---------- */
@media (max-width: 900px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 48px; min-height: 48px; padding: 0;
    background: none; border: 1px solid var(--line); color: var(--text); cursor: pointer;
  }
  .js .nav-toggle .i-close { display: none; }
  .js .nav-toggle[aria-expanded="true"] .i-open { display: none; }
  .js .nav-toggle[aria-expanded="true"] .i-close { display: block; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .js .site-header.nav-open .nav { display: flex; }
  .js .nav a { min-height: 56px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .js .nav a[aria-current="page"] { box-shadow: none; font-weight: 500; }
  .js .nav .btn { margin-top: 20px; border-bottom: 1px solid var(--accent); justify-content: center; }
  .no-js-fallback { display: none; }
}

@media (max-width: 760px) {
  .entrances { grid-template-columns: minmax(0, 1fr); }
  .spec > div { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .biz .name { font-size: 36px; }
}
