/* メルク紹介サイト（2026-11-26 作り直し）
   骨格は配信で毎回映る枠：黄の太枠・斜めの縞・斜めに切った名札「@MERC_02」。
   黄は面と線だけに使い、黄の上には墨の文字だけを置く。 */
:root {
  --paper: #f5f3ee;
  --white: #ffffff;
  --ink: #18191b;
  --sub: #5a5b5f;
  --line: #d8d4ca;
  --yellow: #eeba2b;          /* 配信枠の画像から採った黄 */
  --frame: 10px;
  --max: 1160px;
  --tech: "Oxanium", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.8;
  font-feature-settings: "palt" 0;
}
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.4; }
p, ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.num, .en { font-family: var(--tech); font-variant-numeric: tabular-nums; }
.note { color: var(--sub); font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* 斜めの縞と名札：配信枠の下帯から */
.hatch {
  display: block;
  background: repeating-linear-gradient(-65deg, transparent 0 20px, var(--yellow) 20px 30px);
  border-bottom: 2px solid var(--yellow);
}
.nameplate {
  display: inline-flex; align-items: center;
  background: var(--yellow); color: var(--ink);
  font: 600 22px/1 var(--tech); letter-spacing: .02em; text-decoration: none;
  height: 52px; padding: 0 28px 0 48px;
  clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%);
}

/* ボタン：角は立てたまま。押せるものは墨の面か墨の線 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 2px solid var(--ink);
}
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #2c2d30; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--yellow); }
.more { font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* ヘッダー */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo-en { font: 700 24px/1 var(--tech); letter-spacing: .04em; }
.logo-ja { font-size: 13px; font-weight: 700; color: var(--sub); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { position: relative; display: flex; flex-direction: column; padding: 8px 12px; font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1.3; }
.nav .en { font-size: 10px; letter-spacing: .14em; color: var(--sub); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 6px;
  background: repeating-linear-gradient(-65deg, transparent 0 4px, var(--yellow) 4px 7px);
}
.btn-head { min-height: 40px; padding: 0 16px; font-size: 14px; }

main > .wrap > section, main > section.wrap { margin-top: 80px; }

/* 見出し：英字の小札＋和文 */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.sec-head h2 { display: flex; align-items: baseline; gap: 14px; font-size: 22px; }
.sec-head .en, .kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--ink);
}
.sec-head .en { background: var(--yellow); padding: 3px 8px 2px 14px; clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%); }

/* ---------- トップ：配信枠 ---------- */
.frame { position: relative; margin-top: 28px; border: var(--frame) solid var(--yellow); background: var(--white); }
.frame-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.screen { display: flex; flex-direction: column; background: var(--ink); color: var(--white); text-decoration: none; }
.screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.screen-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 18px 14px; font-size: 14px; }
.screen-cap .label { font: 600 12px/1 var(--tech); letter-spacing: .16em; color: var(--yellow); }
.screen-cap time i, .card-meta time i, .slots time i { font-style: normal; font-family: var(--jp); font-size: .9em; margin-left: .35em; }
.screen-title { flex-basis: 100%; font-weight: 700; font-size: 15px; line-height: 1.55; }
.screen:hover .screen-title { text-decoration: underline; }
.screen-empty { align-items: center; justify-content: center; aspect-ratio: 16 / 9; }
.intro { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.intro h1 { font-size: clamp(26px, 2.7vw, 36px); font-weight: 800; letter-spacing: .01em; line-height: 1.4; }
.lead { display: grid; gap: 8px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.frame-strip { display: flex; align-items: flex-end; padding-top: 14px; background: var(--white); }
.frame-strip .hatch { flex: 1; height: 36px; margin-bottom: 12px; }

/* 配信時刻 */
.onair { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 48px; align-items: end; }
.clock { font: 700 clamp(84px, 13vw, 168px)/.82 var(--tech); letter-spacing: -.03em; }
.clock span { font-family: var(--jp); font-size: .34em; font-weight: 700; letter-spacing: 0; margin-left: .1em; }
.onair-text { display: grid; gap: 10px; padding-bottom: 6px; }
.onair-text h2 { display: flex; align-items: baseline; gap: 14px; font-size: 24px; }
.onair-text h2 .en { white-space: nowrap; font-size: 12px; letter-spacing: .16em; background: var(--ink); color: var(--yellow); padding: 4px 8px 3px; }
.onair-text ul { list-style: none; padding: 0; color: var(--sub); font-size: 15px; }
.next { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.next .label, .label { font: 600 12px/1 var(--tech); letter-spacing: .16em; }
/* 立ち絵：全身が縦長なので、配信時刻の段の右端で下の線に立たせる */
.onair.has-character { grid-template-columns: auto minmax(0, 1fr) auto; border-bottom: 2px solid var(--ink); }
.onair .character { align-self: end; width: auto; height: clamp(300px, 31vw, 440px); margin: 0 8px -2px 0; }

/* 動画カード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 22px; }
.card { display: flex; flex-direction: column; gap: 10px; }
.card[hidden] { display: none; }
.card-thumb { display: block; position: relative; background: var(--ink); }
.card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .15s; }
.card:hover .card-thumb img { opacity: .86; }
.card-thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.card:hover .card-thumb::after, .card:focus-within .card-thumb::after { transform: scaleX(1); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--sub); }
.card h3 { font-size: 15px; line-height: 1.6; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.tag { display: inline-block; font-family: var(--jp); font-size: 12px; font-weight: 700; color: var(--ink); border: 1px solid var(--ink); padding: 0 6px; line-height: 1.6; }
.chapters { font-size: 14px; border-top: 1px solid var(--line); padding-top: 8px; }
.chapters summary { cursor: pointer; font-weight: 700; }
.chapters ol { list-style: none; padding: 0 8px 0 0; margin-top: 6px; max-height: 18em; overflow-y: auto; }
.chapters a { display: flex; gap: 12px; padding: 3px 0; text-decoration: none; }
.chapters a:hover { text-decoration: underline; }
.chapters .num { color: var(--sub); min-width: 4.4em; }

/* ゲーム */
.games { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--ink); }
.games li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; padding: 18px 16px 16px 0; border-bottom: 1px solid var(--line); }
.game-ja { font-size: 20px; font-weight: 800; }
.game-en { grid-row: 2; font: 500 12px/1.4 var(--tech); letter-spacing: .1em; color: var(--sub); text-transform: uppercase; }
.game-n { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 34px; font-weight: 700; }
.games + .note { margin-top: 10px; }

/* 発言の帯：色を広く取って一言を読ませる */
.quote-band { margin-top: 96px; background: var(--yellow); }
.quote-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 40px; align-items: start; padding-top: 56px; padding-bottom: 56px; }
.quote-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; background: var(--ink); color: var(--yellow); padding: 4px 8px 3px; margin-top: 10px; }
.quote-band figure { margin: 0; }
.quote-band blockquote { margin: 0 0 14px; font-size: clamp(24px, 3.2vw, 40px); font-weight: 800; line-height: 1.45; text-indent: -.5em; }
.quote-band figcaption { font-size: 14px; }
.quote-band .more { align-self: end; }

/* 実績・歩み */
.records { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 40px; }
.record h3 { font-size: 18px; margin-bottom: 8px; }
.record ul { list-style: none; padding: 0; }
.record li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--line); }
.record li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 10px; height: 10px; background: var(--yellow); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.history { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 6px solid var(--yellow); }
.history li { display: grid; gap: 4px; padding: 16px 20px 0 0; position: relative; }
.history li::before { content: ""; position: absolute; top: -12px; left: 0; width: 6px; height: 18px; background: var(--ink); }
.history time { font-size: 15px; font-weight: 600; color: var(--sub); }

/* ---------- 下層ページ ---------- */
.page-head { margin-top: 56px; display: grid; gap: 6px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.page-head .kicker { display: inline-block; justify-self: start; background: var(--yellow); padding: 3px 10px 2px 16px; clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%); }
main > .page-head + .wrap > section:first-child { margin-top: 40px; }
.onair-page .clock { font-size: clamp(72px, 11vw, 140px); }

.slots { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.slots li { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.slots time { font-weight: 600; }
.empty { padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.schedule-img { border: var(--frame) solid var(--yellow); }
.rules { counter-reset: rule; list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.rules li { counter-increment: rule; display: grid; grid-template-columns: 3em minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line); }
.rules li::before { content: counter(rule, decimal-leading-zero); font: 700 18px/1.6 var(--tech); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 6px; }
.filters button {
  font: 700 14px/1 var(--jp); color: var(--ink); background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 2px solid var(--ink);
}
.filters button .num { font-size: 13px; font-weight: 600; color: var(--sub); }
.filters button:hover { background: var(--white); }
.filters button[aria-pressed="true"] { background: var(--yellow); }
.filters button[aria-pressed="true"] .num { color: var(--ink); }
.filter-status { min-height: 1.8em; margin-bottom: 14px; }

.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 40px; margin-top: 40px; border-top: 1px solid var(--ink); }
.quote { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.quote blockquote { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.6; text-indent: -.5em; }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--sub); }

/* フッター：配信枠の下帯で閉じる */
.site-footer { margin-top: 112px; background: var(--ink); color: var(--white); padding-bottom: 32px; }
.footer-inner { display: grid; gap: 22px; }
.footer-tag { display: flex; align-items: flex-end; margin: 0 -20px; }
.footer-tag .hatch { flex: 1; height: 30px; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 700; font-size: 15px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--yellow); }
.footer-meta { font-size: 13px; color: #b9b8b4; }
.site-footer :focus-visible { outline-color: var(--yellow); }

/* ---------- 狭い画面 ---------- */
@media (max-width: 900px) {
  .frame-grid { grid-template-columns: 1fr; }
  .quote-inner { grid-template-columns: 1fr; }
  .quote-label { justify-self: start; margin-top: 0; }
}
@media (max-width: 640px) {
  :root { --frame: 6px; }
  .header-inner { flex-wrap: wrap; gap: 0 12px; min-height: 0; padding-top: 10px; }
  .nav { order: 3; flex-basis: 100%; margin: 0 -12px; overflow-x: auto; }
  .nav a { padding: 6px 12px 10px; }
  .btn-head { margin-left: auto; }
  .hide-s { display: none; }
  main > .wrap > section, main > section.wrap { margin-top: 60px; }
  .frame { margin-top: 16px; }
  .intro { padding: 22px 18px 26px; }
  .actions .btn { flex: 1 1 100%; }
  .nameplate { font-size: 18px; height: 44px; padding: 0 18px 0 36px; }
  .frame-strip .hatch { height: 28px; margin-bottom: 10px; }
  .onair { grid-template-columns: 1fr; gap: 16px; }
  .onair.has-character { grid-template-columns: minmax(0, 1fr) auto; gap: 16px 12px; }
  .onair.has-character .clock { grid-column: 1 / -1; }
  .onair .character { height: 240px; margin-right: 0; }
  .sec-head { flex-wrap: wrap; }
  .sec-head h2 { font-size: 20px; }
  .slots li { grid-template-columns: 1fr; gap: 2px; }
  .quote-band { margin-top: 72px; }
  .quote-inner { padding-top: 40px; padding-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .card-thumb img, .card-thumb::after { transition: none; }
}

/* 日本語の改行を文節で揃える（対応ブラウザーのみ。未対応でも読める） */
.intro h1, .quote-band blockquote, .page-head h1 { word-break: auto-phrase; text-wrap: balance; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- プロダクト（2026-11-28） ---------- */
.page-head .lead { margin-top: 6px; }
.jumps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.jump {
  display: grid; gap: 4px; padding: 18px 20px 18px 22px; text-decoration: none;
  background: var(--white); border: 2px solid var(--ink); border-left: 10px solid var(--yellow);
}
.jump:hover { background: var(--yellow); border-left-color: var(--ink); }
.jump .en { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: var(--sub); }
.jump:hover .en { color: var(--ink); }
.jump-name { font-size: 20px; font-weight: 800; line-height: 1.4; }
.jump-sum { font-size: 14px; color: var(--sub); }
.jump:hover .jump-sum { color: var(--ink); }
main > section.product { scroll-margin-top: 80px; }

.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px 40px; align-items: start; }
.product-text { display: grid; gap: 10px; font-size: 16px; }
.product-text .actions { margin-top: 10px; }
.shots { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, .9fr); gap: 14px; align-items: end; }
.shot { margin: 0; display: grid; gap: 8px; }
.shot img { border: var(--frame) solid var(--yellow); background: var(--ink); }
.shot figcaption { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--sub); }

.sub-head { margin: 48px 0 10px; font-size: 18px; padding-left: 14px; border-left: 6px solid var(--ink); }
.table-scroll { overflow-x: auto; margin: 16px 0 10px; }
.plans { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; background: var(--white); }
.plans th, .plans td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.plans thead th { background: var(--ink); color: var(--white); font-size: 15px; }
.plans thead th:last-child { background: var(--yellow); color: var(--ink); }
.plans thead td { background: var(--paper); border-bottom: 0; }
.plans tbody th { width: 30%; font-weight: 700; background: var(--paper); }
.product > .actions { margin-top: 18px; }

.work-card { position: relative; display: grid; gap: 14px; padding: 28px 32px 30px; background: var(--white); border: var(--frame) solid var(--yellow); }
.work-brand { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.btn-off { gap: 10px; color: var(--sub); border-style: dashed; border-color: var(--sub); cursor: not-allowed; }
.btn-off .soon { font-size: 12px; padding: 1px 6px; background: var(--sub); color: var(--white); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* 項目が5つになり縮むと文字が折り返すため、縮めずに横へ送る */
  .nav a { flex-shrink: 0; white-space: nowrap; }
  main > section.product { scroll-margin-top: 130px; }
  .jumps { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .work-card { padding: 22px 18px 24px; }
  .product .actions .btn { flex: 1 1 100%; }
}
