/* PLUGINS ページ(下書き)専用CSS。
   css/site.css の変数(--font-en 等)と見出し様式(.page-title)に乗る。site.css は触らない。
   公開する時は、この中身を css/site.css へ移す(手順は DRAFTS_README.md)。
   命名: すべて .plugin / .plugins- で始める(既存クラスと衝突させない)。 */

/* ---------- 下書きプレビュー用の帯(公開版では出さない) ---------- */
.plugins-draft-banner {
  margin: 0 0 24px;
  padding: 10px 14px;
  border: 1px dashed #c0392b;
  background: #fff6f5;
  color: #c0392b;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- 日本語組版(本文に必ず入れる決まり) ---------- */
.plugins-lede,
.plugin__lead,
.plugin__price-note,
.plugin-feature__text,
.plugin-about__text,
.plugin-faq__a,
.plugin-maker p,
.plugin-req li {
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.plugins-lede {
  margin: 0 0 8px;
  color: var(--color-text-sub);
}

/* ---------- 複数プラグイン時の目次(1本だけの間は出さない) ---------- */
.plugin-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 0;
}

.plugin-index a {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--color-accent-dark);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 2px;
}

/* ---------- 1プラグイン ---------- */
.plugin {
  margin-top: 48px;
}

.plugin + .plugin {
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--color-border);
}

.plugin__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.plugin__hero-img {
  margin: 0;
  background: #14100c; /* 画像の縁と同じ暗色。読み込み前に白く抜けない */
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 1720 / 1588;
}

.plugin__hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plugin__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--color-accent-dark);
}

.plugin__name {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.plugin__by {
  margin: 10px 0 0;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--color-text-sub);
}

.plugin__catch {
  margin: 28px 0 8px;
  font-family: var(--font-jp-heading);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.4;
}

.plugin__lead {
  margin: 0;
}

.plugin__price {
  margin: 24px 0 0;
  font-family: var(--font-jp-heading);
  font-weight: 700;
  font-size: 20px;
}

.plugin__price-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-text-sub);
}

/* 購入ボタン(ストア開設前の仮表示)。押しても何も起きない */
.plugin-buy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 14px 28px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: #f4f4f4;
  color: var(--color-muted);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: not-allowed;
}

.plugin-buy__tag {
  font-family: var(--font-jp-heading);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- 章(作った人・できること・デモ…) ---------- */
.plugin__sec {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.plugin__sec-title {
  margin: 0 0 20px;
  font-family: var(--font-jp-heading);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
}

.plugin-maker p {
  margin: 0 0 12px;
  max-width: 40em;
}

/* できること */
.plugin-features {
  margin: 0;
  padding: 0;
}

.plugin-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px 40px;
  padding: 28px 0;
  border-bottom: 1px solid #ececec;
}

.plugin-feature:first-child {
  padding-top: 0;
}

.plugin-feature:last-child {
  border-bottom: 0;
}

.plugin-feature__title {
  margin: 0 0 6px;
  font-family: var(--font-jp-heading);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.5;
}

.plugin-feature__text {
  margin: 0;
  max-width: 40em;
}

.plugin-feature__img {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #14100c;
}

.plugin-feature__img img {
  width: 100%;
  display: block;
}

@media (min-width: 769px) {
  /* 小さめ画像は文章の右に並べる。横長の帯画像(--wide)は文章の下に全幅で置く */
  .plugin-feature--img:not(.plugin-feature--wide) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
    align-items: center;
  }
}

/* デモ(未公開の間は枠だけ) */
.plugin-demo {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 720px;
  border: 1px dashed var(--color-border);
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-muted);
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.plugin-demo iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.plugin-demo__tag {
  font-family: var(--font-jp-heading);
  font-weight: 400;
  letter-spacing: 0.04em;
  font-size: 14px;
}

.plugin-manual {
  margin: 24px 0 0;
}

/* 動作環境 */
.plugin-req li {
  position: relative;
  padding-left: 1.2em;
  margin: 0 0 6px;
}

.plugin-req li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.85em;
  width: 6px;
  height: 1px;
  background: var(--color-text-sub);
}

/* よくある質問 */
.plugin-faq {
  max-width: 44em;
}

.plugin-faq details {
  border-bottom: 1px solid #ececec;
}

.plugin-faq details:first-child {
  border-top: 1px solid #ececec;
}

.plugin-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 28px 16px 0;
  position: relative;
  font-family: var(--font-jp-heading);
  font-weight: 700;
  line-height: 1.5;
}

.plugin-faq summary::-webkit-details-marker {
  display: none;
}

.plugin-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-accent-dark);
}

.plugin-faq details[open] summary::after {
  content: "\2212"; /* マイナス */
}

.plugin-faq__a {
  margin: 0;
  padding: 0 0 18px;
  color: var(--color-text-sub);
}

/* 作った人 */
.plugin-about__name {
  margin: 0 0 6px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
}

.plugin-about__text {
  margin: 0 0 16px;
  max-width: 44em;
}

.plugin__bottom-buy {
  margin-top: 48px;
}

/* ---------- スマホ ---------- */
@media (max-width: 768px) {
  .plugin__hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .plugin__sec {
    margin-top: 56px;
  }

  .plugin-buy {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
}

/* ============================================================================
   ここから「説明書風」(2026-10-28 会長が確定)。上は構造と白い版の色(退避版は
   another file)。下で色・書体・カードを上書きして最終形にしている。
   ============================================================================ */
/* PLUGINS ページ(下書き) 説明書風の版。plugins.css の「後」に読み込み、見た目だけを上書きする。
   配色と様式の出典: SwingTexture\update_site\manual\index.html のCSS
   (--bg #1b120c / --panel #27180f / --panel2 #33221a / --line #5b4429 / --brass #c9a35c /
    --text #efe2c8 / --muted #b3a189 / --amber #e8a33d、カードは上辺4px色帯・角丸8px)。
   書体: 説明書と同じ Limelight(見出し・飾り) / Poiret One(Limelightに無い字) /
   Zen Kaku Gothic New(本文 400・700)。3つとも SIL OFL 1.1。自前配信(fonts/)で、
   Google Fonts は読み込まない。説明書の当て方: --f-disp は Limelight→Poiret One→Georgia、
   --f-body は Zen Kaku Gothic New→ヒラギノ/游ゴシック/メイリオ。
   ヘッダー・フッターは触らない。中身(.pb-main)だけを端まで届く暗い帯にする。 */

.pb-main {
  --pb-bg: #1b120c;
  --pb-panel: #27180f;
  --pb-panel2: #33221a;
  --pb-line: #5b4429;
  --pb-brass: #c9a35c;
  --pb-text: #efe2c8;
  --pb-muted: #b3a189;
  --pb-amber: #e8a33d;
  --pb-disp: 'Limelight', 'Poiret One', Georgia, 'Times New Roman', serif;
  --pb-body: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;

  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  background: var(--pb-bg);
  color: var(--pb-text);
  font-family: var(--pb-body);
  /* ヘッダー(白)との境目: 真鍮の線 + 上から滲む金色。急に暗くならないようにつなぐ */
  border-top: 1px solid var(--pb-brass);
  border-bottom: 1px solid var(--pb-brass);
  background-image: linear-gradient(to bottom, rgba(201, 163, 92, 0.22), rgba(201, 163, 92, 0) 160px);
  background-repeat: no-repeat;
}

.pb-wrap {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 36px 20px 72px;
}

@media (max-width: 768px) {
  /* site.css の .site-main(モバイル)の padding 指定に負けないよう .site-main を併記 */
  .site-main.pb-main {
    padding: 0;
  }

  .pb-wrap {
    padding: 24px 16px 56px;
  }
}

/* ---------- 下書きの帯(公開版では出さない) ---------- */
.pb .plugins-draft-banner {
  background: #2e1a12;
  border-color: #e68f62;
  color: #f0a58a;
}

/* ---------- 見出し(説明書の .top: 真鍮色の大見出し + 2px の真鍮罫) ---------- */
.pb .page-title {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--pb-brass);
  color: var(--pb-brass);
  font-family: var(--pb-disp);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.pb .plugins-lede {
  color: var(--pb-muted);
}

.pb a {
  color: inherit;
}

/* ---------- ヒーロー ---------- */
.pb .plugin__hero-img {
  background: #0f0905;
  border: 1px solid var(--pb-line);
  border-radius: 6px;
}

.pb .plugin__eyebrow {
  color: var(--pb-brass);
  letter-spacing: 0.18em;
}

.pb .plugin__name {
  color: var(--pb-brass);
  font-family: var(--pb-disp);
  letter-spacing: 0.06em;
}

.pb .plugin__by {
  color: var(--pb-muted);
}

.pb .plugin__catch {
  color: var(--pb-text);
  font-family: var(--pb-body);
}

.pb .plugin__lead {
  color: var(--pb-text);
}

.pb .plugin__price {
  color: var(--pb-amber);
  font-family: var(--pb-body);
}

.pb .plugin__price-note {
  color: var(--pb-muted);
}

.pb .plugin-buy {
  background: var(--pb-panel2);
  border: 1px solid var(--pb-brass);
  color: var(--pb-brass);
  opacity: 0.8;
}

.pb .plugin-buy__tag {
  font-family: var(--pb-body);
  color: var(--pb-muted);
}

/* ---------- 章(説明書の .sh: 見出し + 下罫線) ---------- */
.pb .plugin__sec {
  border-top: 0;
  padding-top: 0;
  margin-top: 64px;
}

.pb .plugin__sec-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pb-line);
  color: var(--pb-text);
  font-family: var(--pb-body);
  font-size: clamp(22px, 4.6vw, 28px);
  text-wrap: balance;
}

.pb .plugin__sec-title::before {
  content: "\25C6"; /* ◆ 真鍮色の飾り */
  color: var(--pb-brass);
  font-size: 0.55em;
  transform: translateY(-0.2em);
}

.pb .plugin-maker p {
  color: var(--pb-text);
}

/* ---------- できること: 説明書のカード(上辺4pxの色帯) ---------- */
.pb .plugin-features {
  counter-reset: pbf;
}

.pb .plugin-feature {
  --cc: var(--pb-brass);
  background: var(--pb-panel);
  border: 1px solid var(--pb-line);
  border-top: 4px solid var(--cc);
  border-radius: 8px;
  padding: 16px;
  margin: 0 0 16px;
}

.pb .plugin-feature:first-child {
  padding-top: 16px;
}

.pb .plugin-feature:last-child {
  border-bottom: 1px solid var(--pb-line);
  margin-bottom: 0;
}

/* 説明書の章色(--c-era / --c-up / --c-noise / --c-low / --c-tape / --c-head)を順に当てる */
.pb .plugin-feature:nth-child(1) { --cc: #e68f62; }
.pb .plugin-feature:nth-child(2) { --cc: #f0b14a; }
.pb .plugin-feature:nth-child(3) { --cc: #7fb8c8; }
.pb .plugin-feature:nth-child(4) { --cc: #a9cb92; }
.pb .plugin-feature:nth-child(5) { --cc: #ea7466; }
.pb .plugin-feature:nth-child(6) { --cc: #c9a35c; }

.pb .plugin-feature__title {
  color: var(--pb-text);
  font-family: var(--pb-body);
}

.pb .plugin-feature__title::before {
  counter-increment: pbf;
  content: "0" counter(pbf);
  margin-right: 10px;
  color: var(--cc);
  font-family: var(--pb-disp);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.pb .plugin-feature__text {
  color: var(--pb-text);
}

.pb .plugin-feature__img {
  background: #0f0905;
  border: 1px solid var(--pb-line);
  border-radius: 4px;
}

/* ---------- デモ・説明書リンク ---------- */
.pb .plugin-demo {
  background: var(--pb-panel);
  border: 1px dashed var(--pb-line);
  border-radius: 8px;
  color: var(--pb-muted);
}

.pb .ed-chapter__link {
  color: var(--pb-brass);
  border-bottom-color: var(--pb-brass);
}

.pb .ed-chapter__link:hover {
  color: var(--pb-text);
  border-bottom-color: var(--pb-text);
}

/* ---------- 動作環境: 説明書の .zero / .kv のような枠 ---------- */
.pb .plugin-req {
  background: var(--pb-panel2);
  border: 1px solid var(--pb-line);
  border-radius: 6px;
  padding: 10px 14px;
  max-width: 44em;
}

.pb .plugin-req li {
  margin: 0;
  padding: 7px 0 7px 1.2em;
  border-bottom: 1px dashed rgba(91, 68, 41, 0.7);
}

.pb .plugin-req li:last-child {
  border-bottom: 0;
}

.pb .plugin-req li::before {
  top: 1.2em;
  background: var(--pb-brass);
}

/* ---------- よくある質問: カード ---------- */
.pb .plugin-faq details,
.pb .plugin-faq details:first-child {
  background: var(--pb-panel);
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  margin: 0 0 10px;
  padding: 0 16px;
}

.pb .plugin-faq summary {
  color: var(--pb-text);
  font-family: var(--pb-body);
  padding-right: 32px;
}

.pb .plugin-faq summary::after {
  right: 0;
  color: var(--pb-brass);
}

.pb .plugin-faq summary:focus-visible {
  outline: 2px solid var(--pb-brass);
  outline-offset: 2px;
}

.pb .plugin-faq__a {
  color: #d8c9ad;
  border-top: 1px dashed rgba(91, 68, 41, 0.7);
  padding-top: 12px;
}

/* ---------- 作った人 ---------- */
.pb .plugin-about__name {
  color: var(--pb-brass);
  font-family: var(--pb-disp);
  letter-spacing: 0.08em;
}

.pb .plugin-about__text {
  color: var(--pb-text);
}

/* ============================================================================
   確定版の追加分(2026-10-28)
   ============================================================================ */

/* ---------- 書体(自前配信。assets/plugins/fonts/ 。ライセンスは各フォルダの OFL.txt) ---------- */
@font-face {
  font-family: 'Limelight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/limelight/limelight-400.woff2) format('woff2');
}

@font-face {
  font-family: 'Poiret One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/poiret-one/poiret-one-400.woff2) format('woff2');
}

/* Zen Kaku Gothic New は このページの使用文字だけに絞った版(make_fonts.py) */
@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/zen-kaku-gothic-new/zen-kaku-gothic-new-400.woff2) format('woff2');
}

@font-face {
  font-family: 'Zen Kaku Gothic New';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/zen-kaku-gothic-new/zen-kaku-gothic-new-700.woff2) format('woff2');
}

/* Limelight は 400 のみ。太字指定で疑似太字を出さない */
.pb-main {
  font-synthesis: none;
}

/* 説明書の --f-disp を当てる所(見出し・番号・飾り)は Limelight の 400 */
.pb .page-title,
.pb .plugin__name,
.pb .plugin__eyebrow,
.pb .plugin-about__name,
.pb .plugin-demo,
.pb .plugin-buy > span:first-child,
.pb .plugin-feature__title::before,
.pb .ed-chapter__link {
  font-family: var(--pb-disp);
  font-weight: 400;
}

.pb .plugin-buy__tag,
.pb .plugin__by,
.pb .plugin-demo__tag {
  font-family: var(--pb-body);
}

/* 折れてほしくない語(LO-FI のハイフン、50／60Hz のスラッシュ、固有名) */
.nb {
  white-space: nowrap;
}

/* ---------- 一番上(RC-20 の100%表示の形): パソコンは左に文字(約4割)・右に画像(約6割)、縦の中央そろえ。
   スマホ(〜768px)は縦並び(文字が上、画像が下) ---------- */
.plugin__hero {
  display: block;
}

.plugin__hero-body {
  display: block;
  margin: 0;
}

.plugin__hero-img {
  aspect-ratio: 1720 / 1588;
  margin: 28px 0 0;
}

.plugin__hero-body .plugin__eyebrow {
  margin: 0 0 12px;
}

.pb .plugin__name {
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.08;
  letter-spacing: 0.05em;
}

.plugin__catch {
  margin: 20px 0 0;
  font-size: clamp(20px, 5vw, 24px);
}

.plugin__lead {
  margin: 14px 0 0;
}

.pb .plugin__by {
  margin: 14px 0 0;
}

.plugin__hero-buy {
  margin-top: 22px;
  padding: 18px 0 0;
  border-top: 1px solid var(--pb-line);
}

.plugin__hero-buy .plugin__price {
  margin-top: 0;
}

.plugin__price-note {
  margin: 4px 0 0;
}

.plugin__hero-buy .plugin-buy {
  margin-top: 14px;
}

@media (min-width: 769px) {
  .plugin__hero {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 48px;
    align-items: center;
  }

  .plugin__hero-img {
    margin: 0;
  }

  .pb .plugin__name {
    font-size: clamp(32px, 3.1vw, 42px);
  }

  .plugin__catch {
    font-size: clamp(20px, 1.8vw, 24px);
  }
}

/* ---------- 画像の拡大(サイト既存のライトボックスを使う。見た目だけ説明書風に) ---------- */
.plugin-zoom {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.plugin-zoom:focus-visible {
  outline: 2px solid var(--pb-brass);
  outline-offset: 3px;
}

.plugin-zoom::after {
  /* 拡大できることを示す小さな印(虫眼鏡の代わりに「＋」) */
  content: "+";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(27, 18, 12, 0.78);
  border: 1px solid var(--pb-brass);
  color: var(--pb-brass);
  font-family: var(--pb-body);
  font-size: 18px;
  line-height: 26px;
  text-align: center;
  pointer-events: none;
}

.plugin__hero-img .plugin-zoom img,
.plugin-feature__img .plugin-zoom img {
  width: 100%;
  display: block;
}

.plugin__hero-img .plugin-zoom img {
  height: 100%;
  object-fit: cover;
}

.page-plugins .lightbox-overlay {
  background: rgba(10, 6, 3, 0.9);
}

.page-plugins .lightbox-box {
  max-width: min(1280px, 100%);
  background: #1b120c;
  color: #efe2c8;
  border: 1px solid #5b4429;
  padding: 44px 20px 20px;
}

.page-plugins .lightbox-box__close {
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #33221a;
  border: 1px solid #5b4429;
  color: #efe2c8;
  font-size: 28px;
}

.page-plugins .lightbox-box__close:hover,
.page-plugins .lightbox-box__close:focus-visible {
  color: #c9a35c;
  border-color: #c9a35c;
}

.page-plugins .lightbox-box__media {
  overflow-x: auto;
}

.page-plugins .lightbox-box__media img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  margin: 0 auto;
  border-radius: 4px;
  border: 1px solid #5b4429;
}

@media (max-width: 768px) {
  .page-plugins .lightbox-overlay {
    padding: 10px;
  }

  .page-plugins .lightbox-box {
    padding: 48px 10px 14px;
  }

  /* 細部が読めるよう、画像を画面幅より大きく出して左右になぞって見られるようにする */
  .page-plugins .lightbox-box__media img {
    max-width: none;
    width: max(100%, 720px);
    max-height: none;
  }
}

/* ---------- 試聴音源(BYPASS / WET の聴き比べ)。再生は listen.js ---------- */
.pb .plugin-listen__lead {
  margin: 0 0 20px;
  color: var(--pb-muted);
  max-width: 44em;
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
}

.plugin-listens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* 枠の数が奇数の時、最後の枠は横いっぱいに置く。wide: true の枠(動きの実演・曲全体)も横いっぱい */
.plugin-listens > .plugin-listen:last-child:nth-child(odd),
.plugin-listens > .plugin-listen--wide {
  grid-column: 1 / -1;
}

.pb .plugin-listen {
  background: var(--pb-panel);
  border: 1px solid var(--pb-line);
  border-top: 4px solid var(--pb-brass);
  border-radius: 8px;
  padding: 16px;
}

.pb .plugin-listen__label {
  margin: 0 0 12px;
  color: var(--pb-text);
  font-family: var(--pb-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}

.pb .plugin-listen__pending {
  margin: 0;
  padding: 12px 0 4px;
  color: var(--pb-muted);
  font-family: var(--pb-disp);
  letter-spacing: 0.1em;
  text-align: center;
}

.pb .plugin-listen--pending {
  border-style: dashed;
  border-top-style: solid;
}

.plugin-listen__ctl {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

/* 再生ボタン: 押しやすい大きさ(高さ48px以上) */
.pb .plugin-listen__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 108px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--pb-brass);
  border-radius: 6px;
  background: var(--pb-panel2);
  color: var(--pb-brass);
  font-family: var(--pb-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

.pb .plugin-listen__play:hover,
.pb .plugin-listen__mode:hover {
  color: var(--pb-text);
  border-color: var(--pb-text);
}

.plugin-listen__icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor; /* 再生の三角 */
}

.plugin-listen.is-playing .plugin-listen__icon {
  width: 12px;
  height: 14px;
  border: 0;
  background: linear-gradient(to right, currentColor 0 38%, transparent 38% 62%, currentColor 62% 100%); /* 停止(一時停止の二本線) */
}

/* BYPASS / WET の切り替え */
.plugin-listen__ab {
  display: flex;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--pb-line);
  border-radius: 6px;
  overflow: hidden;
}

.pb .plugin-listen__mode {
  flex: 1;
  min-height: 48px;
  border: 0;
  background: var(--pb-panel2);
  color: var(--pb-muted);
  font-family: var(--pb-disp);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.pb .plugin-listen__mode + .plugin-listen__mode {
  border-left: 1px solid var(--pb-line);
}

.pb .plugin-listen__mode.is-on {
  background: var(--pb-brass);
  color: #1b120c;
}

.pb .plugin-listen__mode.is-on:hover {
  color: #1b120c;
}

.pb .plugin-listen__play:focus-visible,
.pb .plugin-listen__mode:focus-visible,
.pb .plugin-listen__seek:focus-visible {
  outline: 2px solid var(--pb-text);
  outline-offset: 2px;
}

/* 再生位置 */
.plugin-listen__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.pb .plugin-listen__seek {
  flex: 1;
  min-width: 0;
  height: 28px; /* 指で掴みやすい高さ */
  accent-color: var(--pb-brass);
  cursor: pointer;
}

/* 音量(全部の枠で共通・この端末に記憶)。再生位置のバーの右端 */
.plugin-listen__vol {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--pb-muted);
}

.plugin-listen__vol svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.pb .plugin-listen__volume {
  width: 84px;
  height: 28px;
  accent-color: var(--pb-brass);
  cursor: pointer;
}

.pb .plugin-listen__volume:focus-visible {
  outline: 2px solid var(--pb-text);
  outline-offset: 2px;
}

.pb .plugin-listen__time {
  flex: none;
  min-width: 5.6em;
  text-align: right;
  color: var(--pb-muted);
  font-family: var(--pb-body);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .plugin-listens {
    grid-template-columns: minmax(0, 1fr);
  }

  .plugin-listen__ctl {
    gap: 10px;
  }
}

/* 拡大表示の箱は、画像の幅に合わせて詰める(画像の左右に余白を作らない)。スマホは画面幅いっぱい */
.page-plugins .lightbox-box {
  width: fit-content;
}

@media (max-width: 768px) {
  .page-plugins .lightbox-box {
    width: 100%;
  }
}

/* ---------- 9言語の切り替え(lang.js)。全言語の文が HTML に入っていて、<html data-lang> で出し分ける。
   JS が無い時は data-lang が付かず、日本語だけが見える。
   言語: ja / en / de / es / fr / pt-BR / ko / zh-Hans / zh-Hant ---------- */
[data-l]:not([data-l="ja"]) {
  display: none;
}

html[data-lang="en"] [data-l="en"],
html[data-lang="de"] [data-l="de"],
html[data-lang="es"] [data-l="es"],
html[data-lang="fr"] [data-l="fr"],
html[data-lang="pt-BR"] [data-l="pt-BR"],
html[data-lang="ko"] [data-l="ko"],
html[data-lang="zh-Hans"] [data-l="zh-Hans"],
html[data-lang="zh-Hant"] [data-l="zh-Hant"] {
  display: inline;
}

html[data-lang="en"] [data-l="ja"],
html[data-lang="de"] [data-l="ja"],
html[data-lang="es"] [data-l="ja"],
html[data-lang="fr"] [data-l="ja"],
html[data-lang="pt-BR"] [data-l="ja"],
html[data-lang="ko"] [data-l="ja"],
html[data-lang="zh-Hans"] [data-l="ja"],
html[data-lang="zh-Hant"] [data-l="ja"] {
  display: none;
}

/* 韓国語・中国語は書体を同梱せず、OS の書体で出す(Zen Kaku Gothic New は日本語の字形のため使わない)。
   欧文(SWING TEXTURE や数字)は Limelight / Poiret One のまま、足りない字(ハングル・漢字)だけが OS の書体になる */
html[data-lang="ko"] .pb-main {
  --pb-body: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --pb-disp: 'Limelight', 'Poiret One', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', serif;
}

html[data-lang="zh-Hans"] .pb-main {
  --pb-body: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif;
  --pb-disp: 'Limelight', 'Poiret One', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', serif;
}

html[data-lang="zh-Hant"] .pb-main {
  --pb-body: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif;
  --pb-disp: 'Limelight', 'Poiret One', 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', serif;
}

/* 日本語向けの禁則・文節折りは、他言語では外す(欧文は単語単位、中韓は既定の折り返し) */
html[data-lang]:not([data-lang="ja"]):not([data-lang="ko"]) .pb-main,
html[data-lang]:not([data-lang="ja"]):not([data-lang="ko"]) .pb-main * {
  word-break: normal;
}

html[data-lang="ko"] .pb-main,
html[data-lang="ko"] .pb-main * {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 切り替えのプルダウン(JS がある時だけ出す)。説明書と同じ形: 英語固定の「Language」+ 各言語の自称名 */
.plugin-lang {
  display: none;
}

.js-lang .plugin-lang {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0;
  color: var(--pb-brass);
  font-family: var(--pb-disp);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pb .plugin-lang svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.pb .plugin-lang__name {
  font-family: var(--pb-disp);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pb-brass);
}

.pb .plugin-lang select {
  font-family: var(--pb-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  color: var(--pb-text);
  background-color: var(--pb-panel);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23c9a35c'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  border: 1px solid var(--pb-line);
  border-radius: 6px;
  padding: 4px 30px 4px 10px;
  min-height: 32px;
  min-width: 0;
  max-width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.pb .plugin-lang select:hover {
  border-color: var(--pb-brass);
}

.pb .plugin-lang select:focus-visible {
  border-color: var(--pb-brass);
  outline: 2px solid var(--pb-brass);
  outline-offset: 2px;
}

.pb .plugin-lang select option {
  background: var(--pb-panel);
  color: var(--pb-text);
}

/* 下書きの帯と切り替えボタンは同じ行に並べる(縦の場所を取らない)。狭い画面では折り返す */
.plugins-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 24px;
}

/* 見出し(PLUGINS)と言語の切り替えを同じ行に置く。真鍮の罫は行全体の下に引く(会長指示 2026-11-14)。
   狭い画面では切り替えが見出しの下へ折り返し、右に寄る */
.pb .plugins-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--pb-brass);
}

.pb .plugins-head .page-title {
  margin: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.plugins-head .plugin-lang {
  margin-left: auto;
}

/* 公開版で下書きの帯が無くなっても、言語の切り替えは右上に置く */
.plugins-bar .plugin-lang {
  margin-left: auto;
}

.pb .plugins-bar .plugins-draft-banner {
  flex: 1 1 300px;
  margin: 0;
}


/* 下書きの帯はページの一番下(プレビューの時だけ出る) */
.pb .plugins-draft-banner--bottom {
  margin: 48px 0 0;
}

/* 購入特典(価格の下の1行) */
.plugin__bonus {
  margin: 8px 0 0;
  font-weight: 700;
  line-height: 1.6;
}

.pb .plugin__bonus {
  color: var(--pb-brass);
}

/* 紹介ページの中身だけ幅を広げる（会長 2026-11-15「W で」。RC-20 の商品ページの形）。
   サイト全体の --site-width（980px）とメニューの幅は変えない */
.pb-wrap {
  max-width: 1240px;
}

@media (min-width: 769px) {
  .plugin__hero {
    gap: 56px;
  }
}

/* 製品名（SWING TEXTURE）を大きく（会長 2026-11-15「下の文字大きく、上は小さく」）。上の小見出しは元の 12px のまま。
   左の列に一行で収まるよう、窓の幅に合わせて縮める（広い画面で 50px） */
@media (min-width: 769px) {
  .pb .plugin__hero-body .plugin__name {
    font-size: clamp(30px, calc(4.2vw - 4px), 50px);
  }

  /* 上の小見出しは気持ちだけ大きく（12px → 14px。会長 2026-11-15）。狭い幅では一行に収まるよう縮める */
  .pb .plugin__hero-body .plugin__eyebrow {
    font-size: clamp(12px, calc(1.6vw - 1px), 14px);
  }
}


/* 試聴の波形(canvas。描画は listen.js)。選んでいる側が金色、もう片方は薄く重なる */
.pb .plugin-listen__wave {
  display: block;
  width: 100%;
  height: 72px;
  margin-top: 14px;
  background: var(--pb-panel2);
  border: 1px solid var(--pb-line);
  border-radius: 6px;
  cursor: pointer;
  touch-action: pan-y; /* 縦スクロールは通し、横のドラッグは位置の移動に使う */
}

.pb .plugin-listen.is-loading .plugin-listen__wave {
  opacity: 0.6;
  cursor: progress;
}

.pb .plugin-listen.is-loading .plugin-listen__play {
  cursor: progress;
}

@media (max-width: 768px) {
  .pb .plugin-listen__wave {
    height: 60px;
  }
}

/* ---------- アーティストコメント(引用。2列、スマホは1列。人が増えても2列のまま下へ並ぶ) ---------- */
.plugin-comments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pb .plugin-comment {
  margin: 0;
  background: var(--pb-panel);
  border: 1px solid var(--pb-line);
  border-top: 4px solid var(--pb-brass);
  border-radius: 8px;
  padding: 16px;
}

.plugin-comment__who {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pb .plugin-comment__icon {
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 50%; /* 丸く切り抜く */
  border: 2px solid var(--pb-brass);
  object-fit: cover;
  background: var(--pb-panel2);
}

.pb .plugin-comment__icon--px {
  image-rendering: pixelated; /* ドット絵は縮小してもぼかさない */
}

.plugin-comment__id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pb .plugin-comment__name {
  color: var(--pb-text);
  font-family: var(--pb-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}

.pb .plugin-comment__role {
  color: var(--pb-brass);
  font-family: var(--pb-body);
  font-size: 13px;
  line-height: 1.4;
}

.pb .plugin-comment__text {
  margin: 14px 0 0;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--pb-brass);
}

.pb .plugin-comment__text p {
  margin: 0;
  color: var(--pb-text);
  font-size: 15px;
  line-height: 1.85;
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: pretty;
}

@media (max-width: 768px) {
  .plugin-comments {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 試聴枠の演奏者クレジット(波形・再生位置バーの下に小さく1行) */
.pb .plugin-listen__preset,
.pb .plugin-listen__credit {
  margin: 10px 0 0;
  color: var(--pb-muted, var(--pb-text));
  opacity: .8;
  font-family: var(--pb-body);
  font-size: 12px;
  letter-spacing: .04em;
}

/* プリセット名とクレジットが両方ある枠は、2行目の上を詰める */
.pb .plugin-listen__preset + .plugin-listen__credit { margin-top: 2px; }

/* 購入ボタン(Gumroad へのリンク。2026-11-19) */
.plugin-buy--live {
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text);
  transition: opacity .2s ease, filter .2s ease;
}
.plugin-buy--live:hover,
.plugin-buy--live:focus-visible { filter: brightness(1.08); }
/* 2026-11-19 会長「いまいち」→ 押せない仮ボタンと同じ見た目だったので、真鍮色で塗りつぶす */
.pb .plugin-buy--live {
  opacity: 1;
  padding: 18px 40px;
  background: var(--pb-brass);
  border-color: var(--pb-brass);
  color: var(--pb-panel2);
  font-size: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.pb .plugin-buy--live .plugin-buy__tag {
  color: var(--pb-panel2);
  font-size: 16px;
  font-weight: 700;
}
.pb .plugin-buy--live .plugin-buy__tag::after { content: " ↗"; }
/* 会長「buy が見辛い」→ 飾り書体の BUY は「購入する」と重複するので消す(9言語とも隣の文言に「購入」がある) */
.pb .plugin-buy--live > span:first-child:not(.plugin-buy__tag) { display: none; }
.pb .plugin-buy--live:hover,
.pb .plugin-buy--live:focus-visible { background: #dcb873; border-color: #dcb873; filter: none; }

/* よくある質問の答えの中のリンク(2026-11-19。地の文と同じ色で見分けがつかなかった) */
.plugin-faq__a a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pb .plugin-faq__a a {
  color: var(--pb-amber);
  font-weight: 700;
  text-decoration-color: rgba(232, 163, 61, 0.6);
}
.pb .plugin-faq__a a:hover,
.pb .plugin-faq__a a:focus-visible {
  color: var(--pb-brass);
  text-decoration-color: currentColor;
}
.pb .plugin-faq__a a::after {
  content: " ↗";
  font-weight: 400;
}
