/* meri-1024：メリハリの層（2026-10-24 春名さん「操作上しっかり見てもらいたいところは大きく。何度も出てくるコピーのボタンなどは普段のPCの操作基準の大きさでよい」）
   ・大きく：文例の文 17px／欄の名前 20px・太字・左に色の線
   ・ふつう：コピーのボタン（マウスの画面 高さ32px・文字13px／指の画面 38px・14px）、☆（マウス 28px／指 34px）
   ・控えめ：件数・札・灰色の列（説明だけの列）はそのまま
   ページごとの決まり（.art .sv2 .card p など）より強くするため、大きさだけ !important にしている。
   AIの画面（/ai/）には入れない。外せば元どおり（各ページの </head> の前の1行だけ）。 */

/* ---------- 大きく：文例の文 ---------- */
html body .card:has(> .copy) > p,
html body .phrase-card > p,
html body .phrase-card .phrase-text {
  font-size: 17px !important;
  line-height: 1.75 !important;
  color: #2a2420;
}

/* ---------- 大きく：欄の名前 ---------- */
html body .fcol:not(.fcol--grey) > .fcol-h h2,
html body .fcol:not(.fcol--grey) > .fcol-h h3 {
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.4;
  padding-left: 10px;
  border-left: 5px solid #3f6f8f;
}
html body .phrase-col-head .field-badge {
  font-size: 17px !important;
  padding: 5px 14px;
}
html body .fv-h { font-size: 17px !important; }

/* ---------- ふつう：コピーのボタン・☆（マウスで使う画面） ---------- */
@media (hover: hover) and (pointer: fine) {
  html body button.copy:not(.copy-chip),
  html body button.copy-btn:not(.copy-chip) {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  html body button.copy-btn:not(.copy-chip) svg { width: 14px; height: 14px; }
  html body .fav-star {
    width: 28px !important;
    height: 28px !important;
    font-size: 15px !important;
  }
}

/* ---------- ふつう：コピーのボタン・☆（指で使う画面） ---------- */
@media not all and (hover: hover) and (pointer: fine) {
  html body button.copy:not(.copy-chip),
  html body button.copy-btn:not(.copy-chip) {
    min-height: 38px !important;
    height: 38px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  html body .fav-star {
    width: 34px !important;
    height: 34px !important;
    font-size: 17px !important;
  }
}

/* ---------- ☆とコピーのボタンを重ねない（横に並ぶカード・画面が広いとき） ----------
   文の右にコピーが並ぶカード（解説ページなど）では、☆が右下にあると、文が1行のときにコピーに重なっていた（10/24 以前から）。
   右に☆の場所をあけ、コピーと同じ高さ（上）にそろえる。☆を左下に置くカード（fav-left）はそのまま。 */
@media (min-width: 761px) {
  html body .card.fav-host:has(> .copy):not(:has(> .fav-star.fav-left)) { padding-right: 50px !important; }
  html body .card.fav-host:has(> .copy):not(:has(> .fav-star.fav-left)) > .fav-star { top: 14px !important; bottom: auto !important; right: 12px !important; }
}

/* ---------- tablet-1128：タブレット（幅761〜1100px）----------
   2026-11-28 春名さん「タブレットの表示がおかしい。直して」。様式と同じ並び（4列・5列）のまま、文の欄が3〜4字で折れていた
   （☆の場所を右にとっていた・字が17px）。この幅だけ：☆はスマホと同じくボタンの行の右へ／文例の字は15px／ボタンの字は折らない／列のすき間を少しつめる。
   列の数・並び・パソコン・スマホは変えない。 */
@media (min-width: 761px) and (max-width: 1100px) {
  html body :is(.fcols-3, .fcols-4, .fcols-5, .sv2) .card.fav-host:has(> .copy):not(:has(> .fav-star.fav-left)) { padding-right: 12px !important; }
  html body .sv2 .card.fav-host:has(> .copy):not(:has(> .fav-star.fav-left)) { padding-right: 0 !important; }
  html body :is(.fcols-3, .fcols-4, .fcols-5) .card.fav-host:has(> .copy):not(:has(> .fav-star.fav-left)) > .fav-star { top: auto !important; bottom: 9px !important; right: 8px !important; }
  html body .sv2 .card.fav-host:has(> .copy):not(:has(> .fav-star.fav-left)) > .fav-star { top: auto !important; bottom: 0 !important; right: 0 !important; }
  html body :is(.fcols-3, .fcols-4, .fcols-5, .sv2) :is(.card:has(> .copy), .phrase-card) > p { font-size: 15px !important; line-height: 1.7 !important; }
  html body :is(.fcols-3, .fcols-4, .fcols-5, .sv2) :is(button.copy, button.copy-btn):not(.copy-chip) { white-space: nowrap; flex: none; }
  html body .fcols-4 { gap: 8px; padding: 10px; }
  html body .fcols-4 > .fcol { padding: 9px 8px; }
  html body .fcols-4 > .fcol :is(.card, .phrase-card) { padding: 10px 9px; }
  html body .fhead, html body .fhead-row2 { gap: 8px; padding-left: 10px; padding-right: 10px; }
  html body .sv2-c { padding: 9px 7px 11px; }
}

/* ---------- tabscroll-1128：タブレットのスクロール ----------
   2026-11-28 春名さん「タブレットのスクロールをスムーズにして」。指で押す端末で幅700px〜（タブレット）だけ：
   ヘッダーの帯の「うしろをぼかす」をやめる（帯は、いまの色のまま。貼り付いた帯のうしろを毎こまぼかし直すのが重い）。
   あわせて polish.js が、タブレットでは「下のまとまりがそっと現れる」をやめる。パソコン・スマホの見た目は変えない。 */
@media (pointer: coarse) and (min-width: 700px) {
  html body .site-header { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
