/* 西洋音楽のページ（詞章ライブラリーの style.css に足す分）。生成は 篠笛バッハ/make_seiyo.js */
body { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
.nw { white-space: nowrap; }

/* ---------- 入口 ---------- */
.seiyo-index .ways { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: clamp(20px, 4vh, 36px); }
@media (min-width: 760px) { .seiyo-index .ways { grid-template-columns: repeat(3, 1fr); } }
.seiyo-index .way { display: block; background: var(--washi-deep); padding: clamp(18px, 3vw, 26px); border-top: 2px solid var(--fuji); transition: background 0.3s; }
.seiyo-index .way:hover { background: #e9e2d3; }
.seiyo-index .way .en { font-family: var(--en); font-size: 0.72rem; letter-spacing: 0.36em; color: var(--kin); }
.seiyo-index .way h2 { font-size: 1.08rem; font-weight: 600; letter-spacing: 0.18em; color: var(--fuji); margin: 2px 0 6px; }
.seiyo-index .way p { font-size: 0.86rem; color: var(--sumi-soft); line-height: 1.9; }
.glead { font-size: 0.88rem; color: var(--sumi-soft); max-width: 720px; margin: -4px 0 20px; line-height: 2; }
.seiyo-index .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.seiyo-index .card .photo { aspect-ratio: 16 / 9; background: #2a241e; }
.seiyo-index .card .o { display: block; font-family: var(--en); font-size: 0.86rem; letter-spacing: 0.04em; color: var(--sumi-soft); line-height: 1.4; }
.seiyo-index .card .y { margin-top: 2px; }
.seiyo-index .card .ln { display: block; font-size: 0.78rem; color: var(--sumi-soft); line-height: 1.8; margin-top: 6px; }
section.block { margin-top: clamp(30px, 5vh, 50px); }

.chart { display: grid; grid-template-columns: 1fr; gap: clamp(18px, 3vw, 34px); align-items: start; }
@media (min-width: 760px) { .chart { grid-template-columns: minmax(240px, 340px) 1fr; } }
.chartimg img { width: 100%; background: #fff; box-shadow: 0 1px 6px rgba(31, 28, 26, 0.14); }
.chart p { font-size: 0.9rem; line-height: 2; margin-bottom: 12px; }
.chart .warn { color: #a3402c; font-weight: 600; }

.tablewrap { overflow-x: auto; }
table.flutes { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.86rem; line-height: 1.6; }
table.flutes th { font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; color: var(--sumi-soft); text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--sumi-soft); }
table.flutes th small { font-size: 0.9em; letter-spacing: 0; }
table.flutes td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.flutes td.mei { font-weight: 600; }
table.flutes td.mei small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--sumi-soft); }
table.flutes td.hi { white-space: nowrap; }
.bar { display: inline-block; position: relative; width: 90px; height: 10px; margin-right: 10px; vertical-align: middle; border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat; }
.bar .dot { position: absolute; top: 1px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--fuji); }
table.flutes td.hi .w { margin-right: 6px; }
table.flutes td.hi small { font-size: 0.72rem; color: var(--sumi-soft); }
.scorenote { font-size: 0.78rem; color: var(--sumi-soft); margin: 10px 0 0; line-height: 1.9; }

/* ---------- 1曲 ---------- */
main.seiyo-piece { max-width: 860px; margin: 0 auto; padding: clamp(40px, 7vh, 70px) clamp(18px, 4vw, 44px); }
.seiyo-piece .lib-head { margin-bottom: 20px; }
.seiyo-piece h1 .orig { display: block; font-family: var(--en); font-size: 0.62em; font-weight: 500; letter-spacing: 0.06em; color: var(--sumi-soft); margin-top: 2px; }
.seiyo-piece .lib-head .lead { line-height: 1.9; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; font-size: 0.86rem; line-height: 1.8; padding: 16px 20px; background: var(--washi-deep); }
dl.facts dt { color: var(--fuji); font-weight: 600; }
@media (max-width: 600px) { dl.facts { grid-template-columns: 1fr; gap: 0; } dl.facts dd { margin-bottom: 8px; } }
h2.kh { font-size: 1.12rem; font-weight: 600; letter-spacing: 0.2em; color: var(--fuji); margin: clamp(34px, 5vh, 48px) 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scorelead { font-size: 0.88rem; color: var(--sumi-soft); line-height: 2; margin-bottom: 18px; }
.score img { width: 100%; max-width: 760px; margin: 0 auto 14px; background: #fff; box-shadow: 0 1px 6px rgba(31, 28, 26, 0.12); }
.mvts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.mvts img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #fff; box-shadow: 0 1px 5px rgba(31, 28, 26, 0.12); }
.mvts span { display: block; font-family: var(--en); font-size: 0.88rem; margin-top: 6px; }
.dl { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.legend { margin: 26px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }
.legend summary { cursor: pointer; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.14em; color: var(--fuji); }
.legend dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin-top: 14px; font-size: 0.86rem; }
.legend dt { font-weight: 600; }
.legend dd { color: var(--sumi-soft); }
.legend a { color: var(--fuji); border-bottom: 1px solid currentColor; }
@media (max-width: 600px) { .legend dl { grid-template-columns: 1fr; gap: 0; } .legend dd { margin-bottom: 10px; } }
.kaisetsu p { font-size: 0.95rem; line-height: 2.1; text-indent: 1em; margin-bottom: 12px; }
.formnote { font-size: 0.8rem !important; color: var(--sumi-soft); text-indent: 0 !important; }
table.form { border-collapse: collapse; width: 100%; font-size: 0.9rem; line-height: 1.9; }
table.form th { font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; color: var(--sumi-soft); text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--sumi-soft); }
table.form td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.form td.ms { white-space: nowrap; font-weight: 600; color: var(--kin); width: 1%; }
.pn { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(36px, 6vh, 56px); padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.pn a { color: var(--fuji); }
@media (max-width: 600px) {
  table.form, table.form tbody, table.form tr, table.form td { display: block; width: auto; }
  table.form tr:first-child { display: none; }
  table.form tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.form td { border: 0; padding: 0; }
  table.form td.ms { width: auto; white-space: normal; }
}

/* 曲の絵（名画、または名画風の油絵・リトグラフ。16:9） */
figure.illust { margin: 6px 0 26px; }
figure.illust img { width: 100%; box-shadow: 0 1px 6px rgba(31, 28, 26, 0.18); }
figure.illust figcaption { font-size: 0.74rem; color: var(--sumi-soft); line-height: 1.7; margin-top: 8px; text-align: right; }

/* お稽古用の音源（player.js） */
.player { background: var(--washi-deep); padding: 16px 18px 14px; margin: 6px 0 10px; }
.player .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.player .row[hidden] { display: none; }
.player .rl { font-size: 0.78rem; color: var(--sumi-soft); min-width: 4.5em; letter-spacing: 0.08em; }
.player .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.player .chips button { font: inherit; font-size: 0.84rem; padding: 5px 13px; border: 1px solid var(--line); background: #fff; color: var(--sumi); cursor: pointer; border-radius: 999px; }
.player .chips button.on { background: var(--fuji); border-color: var(--fuji); color: #fff; }
.player .fit { font-size: 0.86rem; }
.player .fit b { color: var(--fuji); font-weight: 600; }
.player .fit small { margin-left: 0.8em; font-size: 0.76rem; color: var(--sumi-soft); }
.player audio { width: 100%; margin-top: 4px; }
.player .save { display: inline-block; font-size: 0.8rem; margin-top: 8px; color: var(--fuji); }
.audionote { font-size: 0.76rem; color: var(--sumi-soft); line-height: 1.8; margin-top: 6px; }
