@charset "utf-8";

/* 相場・ランキングと同じ色調を使い、このページだけに適用する。 */
.drop-page { max-width: 1120px; margin: 16px auto; padding: 0 16px; }
.drop-page * { box-sizing: border-box; }
.drop-page [hidden] { display: none !important; }
.drop-page .site-title a { color: black; font-size: 24pt; }
.drop-page nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 18px 0 24px; }
.drop-page nav [aria-current] { font-weight: bold; }
.drop-page p, .drop-page dd { line-height: 1.7; }
.drop-page h2:not(.section) { font-size: 18px; }
.drop-page .section { margin-top: 24px; padding: 5px 10px; }
.drop-page .section a { font-size: inherit; font-weight: inherit; }
.drop-page button, .drop-page select, .drop-page input { font-family: inherit; font-size: inherit; }
.drop-page button, .drop-page select { padding: 8px 10px; }
.drop-page button { cursor: pointer; border: 1px solid #8099ac; border-radius: 4px; }
.drop-page button:disabled { cursor: default; opacity: .6; }
.drop-page :focus-visible { outline: 3px solid #125fa6; outline-offset: 3px; }
.drop-page .primary-button { background: #174f80; color: white; border-color: #174f80; }
.drop-page .search-panel { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 16px; border: 1px solid #8099ac; border-radius: 4px; background: #f5ffff; }
.drop-page .keyword-field { flex: 1; min-width: 220px; display: grid; gap: 8px; }
.drop-page input[type="search"] { width: 100%; min-width: 0; padding: 9px; border: 1px solid #8099ac; border-radius: 4px; }
.drop-page .hint { color: #435665; }
.drop-page #searchHint, .drop-page #itemSearchHint { flex-basis: 100%; margin: 0; }
.drop-page .item-search-panel { margin-top: 12px; }
.drop-page .market-options { margin-top: 24px; }
.drop-page .monster-aliases { display: block; flex-basis: 100%; margin-top: 6px; color: #435665; }
.drop-page .error { color: #a02020; }
.drop-page .monster-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.drop-page .monster-list button { display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; text-align: left; padding: 12px; background: #f5ffff; overflow-wrap: anywhere; }
.drop-page .monster-list button[aria-pressed="true"] { border: 2px solid #174f80; background: #e1eeff; }
.drop-page .monster-list .monster-label { font-weight: bold; }
.drop-page .monster-list .monster-meta { color: #435665; }
.drop-page .result-toolbar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.drop-page .result-toolbar p { margin-right: auto; font-weight: bold; }
.drop-page .result-toolbar label { display: grid; gap: 6px; }
.drop-page .table-scroll { overflow-x: auto; }
.drop-page .drop-table { width: 100%; border-spacing: 1px; }
.drop-page .drop-table th, .drop-page .drop-table td { padding: 8px 10px; }
.drop-page .drop-table th { white-space: nowrap; }
.drop-page .item-cell { overflow-wrap: anywhere; }
.drop-page .metric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.drop-page .description-button { padding: 4px 8px; margin-left: 10px; background: #f2f7fb; color: #25485f; }
.drop-page .metric-guide { margin: 24px 0; }
.drop-page summary { padding: 10px 0; cursor: pointer; font-weight: bold; }
.drop-page dt { font-weight: bold; }
.drop-page dd { margin: 4px 0 14px 16px; }
.drop-page footer { margin: 32px 0 20px; line-height: 2; }
.drop-page dialog { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 18px; border: 1px solid #8196a6; border-radius: 10px; background: #f5ffff; }
.drop-page dialog::backdrop { background: rgb(0 0 0 / 45%); }
.drop-page .description-header { display: flex; gap: 16px; align-items: start; justify-content: space-between; }
.drop-page .description-header h2 { margin: 0; overflow-wrap: anywhere; }
.drop-page .description-header button { white-space: nowrap; }
.drop-page #descriptionContent { margin: 16px 0; white-space: pre-wrap; line-height: 1.7; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .drop-page { margin: 12px 0; padding: 0 12px; }
  .drop-page, .drop-page p, .drop-page span, .drop-page a, .drop-page label,
  .drop-page th, .drop-page td, .drop-page dt, .drop-page dd, .drop-page summary { font-size: 16px; }
  .drop-page .site-title { margin: 0; line-height: 1.4; }
  .drop-page .site-title a { font-size: 21px; }
  .drop-page .section { font-size: 19px; }
  .drop-page button, .drop-page select, .drop-page input { min-height: 44px; }
  .drop-page .search-panel { padding: 12px; }
  .drop-page .keyword-field { flex-basis: 100%; min-width: 0; }
  .drop-page #searchButton, .drop-page #itemSearchButton,
  .drop-page #moreMonsters, .drop-page #moreItemCandidates { width: 100%; }
  .drop-page .monster-list { grid-template-columns: 1fr; }
  .drop-page .result-toolbar { align-items: stretch; }
  .drop-page .result-toolbar p, .drop-page .result-toolbar label { width: 100%; margin: 0; }
  /* 携帯では数値を縦に並べ、横スクロールなしで比較できる。 */
  .drop-page .table-scroll { overflow: visible; }
  .drop-page .drop-table, .drop-page .drop-table tbody { display: block; background: transparent; }
  .drop-page .drop-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .drop-page .drop-table tr { display: block; border: 1px solid #a5b6c4; border-radius: 4px; margin: 10px 0; padding: 10px; background: #f5ffff; }
  .drop-page .drop-table td { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; padding: 5px 0; }
  .drop-page .drop-table .item-cell { flex-wrap: wrap; justify-content: start; margin-bottom: 8px; }
  .drop-page .description-button { margin-left: 0; }
  .drop-page .metric::before { content: attr(data-label); color: #435665; text-align: left; }
}
