/* 四字熟語じてん（/四字熟語/ と 1語の ページ）だけの 見た目。inc/yoji.php が この ページたちの ときだけ 読みこむ。2026-11-03
   色は かきかた書道の 緑（--shodo）＋ アプリ「四字熟語どうじょう」の 金。箱の 片がわに 色の 線は 使わない（ふちは ぐるっと 1周）。 */

.page-hero .yj-h1y { display: block; margin-top: 6px; font-size: .42em; letter-spacing: .08em; color: var(--ink2); }

/* 語の カード（いちばん上） */
.yj-card { max-width: 720px; margin: 0 auto; padding: 26px 26px 22px; border: 3px solid transparent; border-radius: 28px; text-align: center;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #2F9C6A, #8CC66B 55%, #E0A800) border-box; box-shadow: var(--shadow-s); }
.yj-big { margin: 4px 0 6px; font-family: var(--maru); font-weight: 700; font-size: 64px; line-height: 1.25; letter-spacing: .06em; color: var(--ink); word-break: keep-all; }
.yj-big ruby { ruby-position: over; margin: 0 .02em; }
.yj-big rt { font-size: 15px; font-weight: 700; letter-spacing: 0; color: var(--shodo-d); }
.yj-big .yj-nr { display: block; }
.yj-big .yj-ry { display: block; font-size: 17px; letter-spacing: .1em; color: var(--shodo-d); }
.yj-yomi { margin: 0 0 14px; font-size: 15px; color: var(--ink2); }
.yj-yomi b { font-family: var(--maru); font-size: 18px; color: var(--ink); letter-spacing: .04em; }
.yj-mean { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--cream); border-radius: 18px; padding: 16px 18px; }
.yj-mean p { margin: 0; font-family: var(--maru); font-weight: 700; font-size: 21px; line-height: 1.7; color: var(--ink); }
.yj-lab { flex: none; display: inline-block; margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: var(--shodo); color: #fff; font-family: var(--maru); font-weight: 700; font-size: 14px; }
.yj-tags { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 0; padding: 0; }
.yj-tags li { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; font-family: var(--maru); font-weight: 700; font-size: 13.5px; background: var(--cream2); color: var(--ink2); }
.yj-tags .lv-A { background: #E3F4EA; color: #1D7049; }
.yj-tags .lv-B, .yj-tags .ex-cj { background: #FFF1C9; color: #8A5A00; }
.yj-tags .lv-C, .yj-tags .ex-hs { background: #E3EEFB; color: #2759A8; }
.yj-tags .kz { background: #FDE7E2; color: #B23A26; }
.yj-tags .gr { padding: 0; background: #fff; border: 2px solid var(--line); }
.yj-tags .gr a { display: flex; align-items: center; min-height: 44px; padding: 4px 14px; color: inherit; text-decoration: none; }

/* 例文・注意・由来 */
.yj-ex { list-style: none; counter-reset: yx; max-width: 720px; margin: 0 auto; padding: 0; display: grid; gap: 12px; }
.yj-ex li { counter-increment: yx; position: relative; background: #fff; border-radius: var(--r-s); box-shadow: var(--shadow-s); padding: 16px 18px 16px 54px; font-size: 18px; line-height: 1.85; }
.yj-ex li::before { content: counter(yx); position: absolute; left: 16px; top: 17px; width: 26px; height: 26px; border-radius: 50%; background: var(--shodo-l); color: var(--shodo-d); font: 700 14px/26px var(--maru); text-align: center; }
.yj-ex mark { background: linear-gradient(transparent 58%, #FFE36B 58%); color: inherit; font-weight: 700; padding: 0 1px; }
.yj-care { max-width: 720px; margin: 16px auto 0; padding: 14px 18px; border: 2px solid #F3D27A; border-radius: var(--r-s); background: #FFF8DC; }
.yj-care p { margin: 4px 0; line-height: 1.8; }
.yj-care-h { display: flex; align-items: center; gap: 6px; font-family: var(--maru); font-weight: 700; color: #8A5A00; }
.yj-care-h svg { width: 20px; height: 20px; }
.yj-mis s { margin: 0 6px; color: var(--ink3); text-decoration-color: #C0392B; text-decoration-thickness: 2px; }
.yj-mis b { font-family: var(--maru); }
.yj-yu { max-width: 720px; margin: 16px auto 0; padding: 14px 18px; border-radius: var(--r-s); background: #fff; box-shadow: var(--shadow-s); }
.yj-yu p { margin: 0; line-height: 1.85; }
.yj-yu-h { margin-bottom: 6px !important; font-family: var(--maru); font-weight: 700; color: var(--shodo-d); }

/* 似た・反対 */
.yj-rel { max-width: 720px; margin: 0 auto 16px; display: grid; gap: 10px; }
.yj-rel-h { margin: 0; font-family: var(--maru); font-weight: 700; }
.yj-rel-h.ru { color: var(--shodo-d); }
.yj-rel-h.han { color: #B23A26; }
.yj-relw { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; padding: 14px 18px; background: #fff; border: 2px solid var(--line); border-radius: var(--r-s); color: var(--ink); text-decoration: none; }
.yj-relw:hover { border-color: var(--shodo); }
.yj-relw b { font-family: var(--maru); font-size: 24px; }
.yj-relw small { color: var(--ink3); font-size: 13px; }
.yj-relw span { grid-column: 1 / -1; font-size: 15px; line-height: 1.7; color: var(--ink2); }

/* ミニけいこ */
.yj-quiz { max-width: 640px; margin: 0 auto; padding: 20px 20px 22px; border-radius: 26px; background: #FFFDF6; border: 2px solid #EADFC9; box-shadow: var(--shadow-s); min-height: 260px; }
.yj-q-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.yj-q-tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #FFF1C9; color: #8A5A00; font: 700 13px/1.6 var(--maru); }
.yj-q-dots { display: flex; gap: 6px; }
.yj-q-dots i { width: 12px; height: 12px; border-radius: 50%; background: #EADFC9; }
.yj-q-dots i.ok { background: var(--shodo); }
.yj-q-dots i.ng { background: #E0452B; }
.yj-q-dots i.now { background: #F2B61B; }
.yj-q-q { margin: 0 0 12px; font-family: var(--maru); font-weight: 700; font-size: 19px; }
.yj-q-big { margin: 0 0 14px; text-align: center; font-family: var(--maru); font-weight: 700; font-size: 46px; letter-spacing: .1em; }
.yj-q-big .hole { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; border: 3px dashed #E0A800; border-radius: 10px; background: #FFF6D6; }
.yj-q-sent { margin: 0 0 14px; padding: 12px 14px; background: #fff; border-radius: 14px; font-size: 17px; line-height: 1.85; }
.yj-q-sent .hole { display: inline-block; min-width: 4.2em; border-bottom: 3px solid #E0A800; text-align: center; color: #A07000; }
.yj-q-o { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.yj-q-o button { min-height: 60px; padding: 8px 10px; border: 2px solid #EADFC9; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 #EADFC9; font-family: var(--maru); font-weight: 700; font-size: 20px; color: var(--ink); cursor: pointer; }
.yj-q-o.is-kanji button { font-size: 30px; }
.yj-q-o button:hover { border-color: var(--shodo); }
.yj-q-o button:disabled { cursor: default; }
.yj-q-o button.ok { border-color: var(--shodo); background: #E3F4EA; box-shadow: 0 4px 0 var(--shodo); }
.yj-q-o button.ng { border-color: #E0452B; background: #FDE7E2; box-shadow: 0 4px 0 #E0452B; }
.yj-q-fb { margin: 14px 0 0; min-height: 1.6em; font-family: var(--maru); font-weight: 700; text-align: center; }
.yj-q-fb.ok { color: var(--shodo-d); }
.yj-q-fb.ng { color: #C0392B; }
.yj-q-next { display: flex; justify-content: center; margin-top: 12px; }
.yj-q-next .btn { min-width: 200px; min-height: 52px; }
.yj-q-end { text-align: center; }
.yj-q-hanko { display: inline-flex; align-items: center; justify-content: center; width: 116px; height: 116px; margin: 4px auto 10px; border: 4px solid #D8302A; border-radius: 50%; color: #D8302A; font: 700 17px/1.3 var(--maru); white-space: nowrap; transform: rotate(-8deg); }
.yj-q-score { margin: 0; font-family: var(--maru); font-weight: 700; font-size: 22px; }
.yj-q-msg { margin: 6px 0 14px; color: var(--ink2); line-height: 1.8; }
.yj-q-end .btn { margin: 4px; min-height: 48px; }

/* 四字熟語どうじょう（アプリ）の 紹介 */
.yj-app { max-width: 760px; margin: 26px auto 0; border: 3px solid transparent; border-radius: 30px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #2F9C6A, #8CC66B 55%, #E0A800) border-box; box-shadow: var(--shadow-s); }
.yj-app-in { padding: 22px 22px 24px; background-image: radial-gradient(#F2E6CF 1.6px, transparent 1.7px); background-size: 22px 22px; border-radius: 27px; }
.yj-app-hd { display: flex; gap: 14px; align-items: center; }
.yj-app-wk { flex: none; width: 92px; height: auto; }
.yj-app-eb { margin: 0; font: 700 13px/1.4 var(--maru); color: var(--shodo-d); letter-spacing: .06em; }
.yj-app h2 { margin: 2px 0 6px; font-size: 26px; line-height: 1.3; }
.yj-app-tx { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink2); }
.yj-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 560px; margin: 18px auto 6px; }
.yj-shots .ph.ip { position: relative; display: block; aspect-ratio: 1350 / 2760; container-type: inline-size; overflow: visible; }
.yj-shots .ph.ip img { position: absolute; left: 0; top: 7.1%; width: 100%; height: 92.9%; object-fit: cover; object-position: top; display: block; background: #FFF8EA; }
.yj-feat { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; }
.yj-feat li { padding: 10px 12px; background: #fff; border: 2px solid #EFE4D0; border-radius: 14px; font-size: 13.5px; line-height: 1.6; color: var(--ink2); }
.yj-feat b { display: block; font-family: var(--maru); font-size: 16px; color: var(--ink); }
.yj-app-who { margin-top: 16px; padding: 16px; background: #fff; border-radius: 20px; text-align: center; }
.yj-app-free { margin: 0 0 12px; font-family: var(--maru); font-weight: 700; }
.yj-app-free span { display: block; font-size: 14px; color: var(--ink2); }
.yj-app-free b { font-size: 24px; color: var(--shodo-d); }
.yj-app-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.yj-app-act .btn { min-height: 52px; }
.yj-app-act .btn svg { width: 18px; height: 18px; }
.yj-app-soon { margin: 10px 0 0; font-size: 13px; color: #A07000; font-weight: 700; }
.yj-app-join { margin: 12px 0 0; font-size: 14px; color: var(--ink2); }

/* 書いてみよう */
.yj-th { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.yj-th-a { display: flex; flex-direction: column; align-items: center; width: 160px; padding: 10px; background: #fff; border-radius: var(--r-s); box-shadow: var(--shadow-s); color: var(--ink); text-decoration: none; }
.yj-th-a img { width: 120px; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.yj-th-a span { margin-top: 8px; text-align: center; }
.yj-th-a b { display: block; font-family: var(--maru); }
.yj-th-a small { color: var(--ink3); font-size: 12px; }
.yj-th-tx { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--ink2); }
.yj-kj-h { margin: 22px 0 8px; text-align: center; font-family: var(--maru); font-weight: 700; }
.yj-kj { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.yj-kj a { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; min-height: 64px; background: #fff; border: 2px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.yj-kj a:hover { border-color: var(--shodo); }
.yj-kj b { font-family: var(--maru); font-size: 26px; line-height: 1.1; }
.yj-kj small { font-size: 10.5px; color: var(--ink3); }

/* 語の チップ・前後 */
.yj-gh { margin: 22px 0 10px; text-align: center; font-family: var(--maru); font-weight: 700; }
.yj-gh small { margin-left: 6px; font-size: 12px; color: var(--ink3); font-weight: 500; }
.yj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; max-width: 860px; margin: 0 auto; }
.yj-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 62px; padding: 6px 4px; background: #fff; border: 2px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; text-align: center; }
.yj-chip b { font-family: var(--maru); font-size: 21px; line-height: 1.25; letter-spacing: .04em; }
.yj-chip small { font-size: 11px; color: var(--ink3); line-height: 1.3; }
.yj-chip:hover { border-color: var(--shodo); }
.yj-chip.is-cur { border-color: var(--shodo); background: var(--shodo-l); }
.yj-chip.is-th { border-style: dashed; }
.yj-pn { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; max-width: 720px; margin: 26px auto 0; }
.yj-pn a { text-decoration: none; color: var(--ink); }
.yj-pv, .yj-nx { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 8px 14px; background: #fff; border-radius: var(--r-s); box-shadow: var(--shadow-s); }
.yj-nx { align-items: flex-end; }
.yj-pv b, .yj-nx b { font-family: var(--maru); font-size: 20px; line-height: 1.25; }
.yj-pv small, .yj-nx small { font-size: 12px; color: var(--ink2); }
.yj-up { font: 700 13px/1.5 var(--maru); color: var(--shodo-d) !important; text-align: center; }

/* 入口：さがす・レベル・テーマ・50音 */
.yj-find { max-width: 600px; margin: 0 auto 22px; }
.yj-find .f-search input { font-size: 18px; }
.yj-find-msg { margin: 8px 0; min-height: 1.2em; text-align: center; font-size: 14px; color: var(--ink2); }
.yj-sh { margin: 34px 0 12px; text-align: center; font-size: 24px; }
.yj-tabs { display: flex; justify-content: center; gap: 8px; margin: 0 0 12px; }
.yj-tab { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; min-width: 104px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 16px; background: #fff; font-family: var(--maru); font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer; }
.yj-tab small { font-family: var(--sans); font-weight: 500; font-size: 11px; color: var(--ink3); }
.yj-tab.is-on { background: var(--shodo); border-color: var(--shodo); color: #fff; }
.yj-tab.is-on small { color: #E3F4EA; }
.yj-pane-tx { margin: 0 0 12px; text-align: center; font-size: 14px; color: var(--ink2); }
.yj-det { max-width: 860px; margin: 0 auto 8px; background: #fff; border-radius: var(--r-s); box-shadow: var(--shadow-s); }
.yj-det summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 8px 18px; font-family: var(--maru); font-weight: 700; cursor: pointer; list-style: none; }
.yj-det summary::-webkit-details-marker { display: none; }
.yj-det summary::after { content: "＋"; color: var(--shodo-d); }
.yj-det[open] summary::after { content: "－"; }
.yj-det summary small { margin-left: auto; margin-right: 10px; font-family: var(--sans); font-weight: 500; font-size: 12px; color: var(--ink3); }
.yj-det .yj-grid { padding: 0 12px 14px; }

/* スマホは サイト全体が zoom .75（site.css）→ 押すところは 60px（見た目 45px）・字は 少し 大きめ */
@media (max-width: 760px) {
  .yj-card { padding: 20px 14px 18px; border-radius: 24px; }
  .yj-big { font-size: 46px; letter-spacing: .03em; }
  .yj-big rt { font-size: 12px; }
  .yj-mean { flex-direction: column; gap: 6px; padding: 14px; }
  .yj-mean p { font-size: 21px; }
  .yj-ex li { font-size: 18.5px; padding: 14px 14px 14px 48px; }
  .yj-care p, .yj-yu p { font-size: 17px; }
  .yj-relw span { font-size: 16px; }
  .yj-ex li::before { left: 12px; top: 15px; }
  .yj-quiz { padding: 16px 14px 18px; }
  .yj-q-big { font-size: 40px; }
  .yj-q-o button { font-size: 20px; }
  .yj-q-o.is-kanji button { font-size: 28px; }
  .yj-app-in { padding: 18px 14px 18px; }
  .yj-app-wk { width: 72px; }
  .yj-app h2 { font-size: 21px; }
  .yj-shots { gap: 8px; }
  .yj-feat li { font-size: 12.5px; padding: 8px 10px; }
  .yj-feat b { font-size: 15px; }
  .yj-app-act .btn, .yj-q-next .btn, .yj-q-end .btn { flex: 1 1 100%; min-height: 60px; font-size: 18px; }
  .yj-app-tx { font-size: 16.5px; }
  .yj-q-q { font-size: 21px; }
  .yj-q-sent { font-size: 19px; }
  .yj-q-o button { min-height: 66px; }
  .yj-tab { min-height: 62px; }
  .yj-tags .gr a { min-height: 60px; }
  .yj-det summary { min-height: 60px; font-size: 18px; }
  .yj-chip { min-height: 68px; }
  .yj-chip b { font-size: 23px; }
  .yj-chip small { font-size: 13px; }
  .yj-pv, .yj-nx { min-height: 72px; }
  .yj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .yj-tab { min-width: 0; flex: 1; padding: 6px 6px; font-size: 14px; }
  .yj-pv b, .yj-nx b { font-size: 17px; }
}
@media (max-width: 380px) {
  .yj-big { font-size: 40px; }
  .yj-app-hd { align-items: flex-start; }
}
