/* 月と空の用語集（/moon/terms/）— scripts/pages/moonterms.mjs */
.mt-hero h1 { overflow-wrap: anywhere; }
.mt-yomi { color: var(--mut); font-size: 15px; margin: 4px 0 14px; }
.mt-ans { padding: 18px 20px; margin-top: 6px; max-width: 760px; }
.mt-ans p { margin: 0; }
.mt-ans-h { font-size: 13.5px; font-weight: 900; color: var(--gold); letter-spacing: 0.06em; margin-bottom: 6px !important; }
.mt-ans p + p { font-size: clamp(16.5px, 1.7vw, 18.5px); line-height: 1.9; }
.mt-next { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 16px 0 0; padding: 12px 16px; border-radius: 16px; background: linear-gradient(90deg, rgba(255, 210, 122, 0.16), rgba(255, 210, 122, 0.04)); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, 0.35); max-width: 760px; }
.mt-next span { font-size: 14px; color: var(--gold); font-weight: 700; }
.mt-next b { font-size: clamp(17px, 2vw, 21px); }
.mt-next small { flex-basis: 100%; color: var(--tx2); font-size: 14px; line-height: 1.7; }
.mt-next a { font-size: 14px; margin-left: auto; }

/* 写真と図 */
.mt-vis { display: grid; gap: 18px; }
.mt-vis.two { grid-template-columns: 1fr 1fr; }
.mt-vis .ph img { width: 100%; height: 100%; object-fit: cover; }
.mt-fig { margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 18px; }
.mt-fig svg:not(.mt-mn) { width: 100%; height: auto; display: block; }
.mt-fig text { fill: #dfe6ff; font-size: 16px; font-family: var(--ff); }
.mt-fig text.c { text-anchor: middle; }
.mt-fig text.s { font-size: 14.5px; fill: #c3cdef; }
.mt-fig text.e { text-anchor: end; }
.mt-fig text.b { font-weight: 900; fill: #fff; }
.mt-fig text.g { fill: var(--gold); }
.mt-fig text.w { fill: #fff; }
.mt-fig figcaption { font-size: 14px; color: var(--tx2); line-height: 1.7; }
.mt-mn { display: inline-block; vertical-align: middle; flex: none; }
.mt-size { display: flex; justify-content: center; align-items: flex-end; gap: 8%; flex-wrap: wrap; }
.mt-size figure { margin: 0; text-align: center; }
.mt-size .mt-mn { filter: drop-shadow(0 0 12px rgba(255, 231, 163, 0.35)); max-width: 30vw; height: auto; }
.mt-size figcaption { font-size: 13.5px; color: var(--tx2); line-height: 1.5; margin-top: 6px; }
.mt-size figcaption b { display: block; color: var(--tx); }
.mt-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 6px; text-align: center; }
.mt-phases div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border-radius: 14px; }
.mt-phases div.on { background: rgba(255, 210, 122, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, 0.5); }
.mt-phases b { font-size: 14px; line-height: 1.4; }
.mt-phases small { font-size: 12px; color: var(--mut); line-height: 1.3; }

/* 本文 */
.mt-art { max-width: 860px; margin-inline: auto; }
.mt-art p, .mt-art li { overflow-wrap: anywhere; }
.mt-toc { padding: 18px 22px; margin-bottom: 26px; }
.mt-toc-h { font-weight: 900; color: var(--gold); margin: 0 0 4px; font-size: 15px; }
.mt-toc ol { margin: 0; padding-left: 1.4em; columns: 2; column-gap: 28px; font-size: 15px; line-height: 1.9; }
.mt-toc a { color: var(--tx2); }
.mt-sec { margin: 0 0 34px; scroll-margin-top: 80px; }
.mt-sec h2 { padding-left: 14px; border-left: 4px solid var(--gold); margin-bottom: 12px; line-height: 1.45; }
.mt-h3 { font-size: 17px; margin: 18px 0 4px; color: var(--cyan); }
.mt-ul, .mt-steps, .mt-tips { padding-left: 1.3em; margin: 10px 0; }
.mt-ul li, .mt-steps li, .mt-tips li { margin: 6px 0; line-height: 1.85; }
.mt-steps li::marker { color: var(--gold); font-weight: 900; }
.mt-note { padding: 16px 20px; margin: 0 0 34px; font-size: 15.5px; }
.mt-note p { margin: 0; color: var(--tx2); }
.mt-note b { color: var(--gold); }

/* 英語 */
.mt-words { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.mt-words li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 14px; border-radius: 14px; background: rgba(99, 140, 255, 0.1); }
.mt-words b { font-family: var(--ff); color: var(--cyan); font-size: 17px; }
.mt-words span { color: var(--tx2); font-size: 15px; }
.mt-ex p { margin: 0 0 10px; padding: 12px 16px; border-left: 3px solid var(--vio); background: rgba(167, 123, 255, 0.08); border-radius: 0 14px 14px 0; }
.mt-ex span { display: block; font-size: 17px; font-weight: 700; line-height: 1.6; }
.mt-ex small { display: block; color: var(--mut); font-size: 14.5px; }

/* 表 */
.mt-tw { overflow-x: auto; margin-top: 8px; -webkit-overflow-scrolling: touch; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.mt-tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.mt-tbl th, .mt-tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.mt-tbl thead th { color: var(--gold); font-size: 13.5px; background: rgba(255, 210, 122, 0.06); white-space: nowrap; }
.mt-tbl tbody tr:last-child td { border-bottom: 0; }
.mt-tbl tr.on td { background: rgba(255, 210, 122, 0.1); }
.mt-tbl td:first-child { white-space: nowrap; }
.mt-tbl small { color: var(--mut); font-size: 12.5px; }
.mt-tbl-y td:last-child { line-height: 1.9; }
.mt-tbl .ok { color: var(--green); }
.mt-tbl .ok2 { color: var(--cyan); }
.mt-tbl .ng { color: var(--mut); }
.mt-tag { display: inline-block; font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; margin: 2px 0 2px 6px; border-radius: 999px; background: rgba(99, 140, 255, 0.18); color: #cfe0ff; white-space: nowrap; }
.mt-tag.t-super, .mt-tag.t-super2 { background: rgba(255, 210, 122, 0.2); color: var(--gold); }
.mt-tag.t-micro { background: rgba(166, 177, 216, 0.18); color: var(--tx2); }
.mt-tag.t-blue { background: rgba(79, 141, 255, 0.25); color: #bcd3ff; }
.mt-tag.t-ecl { background: rgba(255, 107, 107, 0.2); color: #ffb3b3; }
.mt-tag.t-harvest { background: rgba(255, 168, 107, 0.2); color: #ffc79a; }
.mt-calc { font-size: 13.5px; line-height: 1.8; margin-top: 10px; }

/* よくある質問 */
.mt-faq details { border-radius: 14px; background: var(--panel); box-shadow: var(--glow); margin: 0 0 10px; }
.mt-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 900; list-style: none; position: relative; padding-right: 44px; }
.mt-faq summary::-webkit-details-marker { display: none; }
.mt-faq summary::before { content: 'Q'; font-family: var(--ff-x); color: var(--gold); margin-right: 10px; }
.mt-faq summary::after { content: '+'; position: absolute; right: 18px; top: 12px; font-size: 22px; color: var(--mut); }
.mt-faq details[open] summary::after { content: '−'; }
.mt-faq details p { margin: 0; padding: 0 18px 16px; color: var(--tx2); }

/* 関連・ナビ */
.mt-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.mt-rel a { padding: 14px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; transition: transform 0.2s; }
.mt-rel a:hover { transform: translateY(-2px); }
.mt-rel b { color: var(--tx); line-height: 1.5; }
.mt-rel small { color: var(--mut); font-size: 13px; }
.mt-fmnav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 18px; }
.mt-fmnav a { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 12px; background: rgba(99, 140, 255, 0.08); font-size: 12.5px; line-height: 1.4; text-align: center; color: var(--tx2); text-decoration: none; }
.mt-fmnav a small { color: var(--gold); font-size: 12px; }
.mt-fmnav a[aria-current] { background: rgba(255, 210, 122, 0.18); color: var(--tx); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, 0.5); }
.mt-more { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.mt-refs ul { padding-left: 1.2em; font-size: 15px; }
.mt-refs li { margin: 4px 0; }

/* 入口 */
.mt-tonight { display: inline-flex; align-items: center; gap: 16px; padding: 14px 20px; margin-top: 14px; max-width: 100%; }
.mt-tonight .mt-mn { filter: drop-shadow(0 0 10px rgba(255, 231, 163, 0.4)); }
.mt-tonight div { display: flex; flex-direction: column; line-height: 1.5; }
.mt-tonight span { font-size: 13px; color: var(--gold); }
.mt-tonight b { font-size: 22px; }
.mt-tonight small { color: var(--tx2); font-size: 14px; }
.mt-up { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mt-up a { display: flex; flex-direction: column; padding: 16px 18px; text-decoration: none; height: 100%; }
.mt-up b { color: var(--gold); font-size: 15px; }
.mt-up span { color: var(--tx); font-weight: 700; line-height: 1.6; }
.mt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mt-card { display: flex; flex-direction: column; gap: 2px; padding: 18px; text-decoration: none; color: var(--tx); transition: transform 0.2s; }
.mt-card:hover { transform: translateY(-3px); }
.mt-card em { font-style: normal; font-family: var(--ff-x); font-size: 12px; color: var(--cyan); letter-spacing: 0.1em; }
.mt-card b { font-size: 19px; line-height: 1.45; }
.mt-card small { color: var(--mut); font-size: 13px; }
.mt-card span { font-size: 14.5px; color: var(--tx2); line-height: 1.75; margin-top: 6px; }
.mt-card i { font-style: normal; font-size: 13px; color: var(--gold); margin-top: 8px; }

@media (max-width: 760px) {
  .mt-vis.two { grid-template-columns: 1fr; }
  .mt-toc ol { columns: 1; }
  .mt-fmnav { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .mt-ans { padding: 14px 16px; }
  .mt-tbl { font-size: 14px; }
  .mt-tbl th, .mt-tbl td { padding: 8px 8px; }
  .mt-fig { padding: 12px; }
  .mt-phases { gap: 8px 2px; }
  .mt-phases .mt-mn { width: 38px; height: 38px; }
  .mt-next a { margin-left: 0; }
}
