/* フェロー/アイテム閲覧ページ用(既存の sub.css の上に重ねる) */
.mbox { color: #333; }
.mtabs { margin: 0 0 12px; border-bottom: 2px solid #5a7fb5; }
.mtabs a { display: inline-block; padding: 6px 22px; margin-right: 4px; background: #e6edf7; color: #335; text-decoration: none; border-radius: 6px 6px 0 0; font-weight: bold; }
.mtabs a.on { background: #5a7fb5; color: #fff; }
.mform { background: #f3f6fb; border: 1px solid #cfd8e6; padding: 8px 10px; margin-bottom: 10px; line-height: 2; }
.mform input, .mform select, .mform button { display: inline-block; width: auto; height: auto; margin: 0 4px 0 0; vertical-align: middle; }
.mform input[type=text] { width: 220px; padding: 3px 5px; border: 1px solid #aab7cc; background: #fff; }
.mform input[type=checkbox] { margin-right: 2px; }
.mform select { padding: 3px; border: 1px solid #aab7cc; background: #fff; }
.mform button { padding: 3px 16px; cursor: pointer; }
.mcount { margin: 0 0 6px; color: #555; }
.mtbl { width: 100%; border-collapse: collapse; }
.mtbl th { background: #e6edf7; border: 1px solid #cfd8e6; padding: 5px; font-weight: bold; }
.mtbl td { border: 1px solid #dde4ef; padding: 5px 6px; vertical-align: middle; text-align: left; }
.mtbl td.num { text-align: right; white-space: nowrap; }
.mtbl a { color: #1a4f9c; text-decoration: none; }
.mtbl a:hover { text-decoration: underline; }
.mp { width: 56px; height: 56px; object-fit: contain; background: #eef2f8; border-radius: 6px; vertical-align: middle; }
.mi { width: 32px; height: 32px; object-fit: cover; vertical-align: middle; background: none; border-radius: 4px; }
.mi_none { display: inline-block; }
.mi_s { width: 24px; height: 24px; }
.mi_l { width: 48px; height: 48px; }
.mp_l { width: 120px; height: 120px; }
.mg { display: inline-block; padding: 0 7px; margin-left: 4px; border: 1px solid #666; border-radius: 9px; font-size: 11px; font-weight: bold; background: #fff; }
.msub { color: #777; font-size: 12px; }
.msk { display: flex; flex-wrap: wrap; gap: 2px; }
.mseal { font-size: 12px; color: #444; }
.mhead { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.mhead h3 { font-size: 20px; margin: 0 0 4px; }
.msec { margin: 16px 0 6px; padding-bottom: 2px; border-bottom: 1px solid #b9c6dc; font-size: 15px; font-weight: bold; color: #234; }
.mkv { display: inline-block; margin: 2px 14px 2px 0; }
.mkv b { color: #777; font-weight: normal; margin-right: 4px; }
.mcard { display: flex; gap: 10px; border: 1px solid #cfd8e6; border-radius: 6px; padding: 8px; margin: 6px 0; background: #fbfcfe; }
.mcard .tt { font-weight: bold; }
.mcard .ef { font-size: 13px; line-height: 1.5; }
.mcard .lvl { font-size: 12px; color: #2e8b3e; margin-top: 2px; }
.mgrow { border-collapse: collapse; margin: 4px 0; }
.mgrow th, .mgrow td { border: 1px solid #cfd8e6; padding: 3px 12px; text-align: right; }
.mgrow td:first-child, .mgrow th:first-child { text-align: left; }
.mnote { font-size: 12px; color: #777; }
.mvar a { margin-right: 10px; }
.mdesc { background: #fbfcfe; border: 1px solid #dde4ef; padding: 8px 10px; line-height: 1.6; }
.mback { margin: 16px 0 0; }
.mback a { display: inline-block; padding: 4px 18px; border: 1px solid #5a7fb5; border-radius: 4px; color: #1a4f9c; text-decoration: none; }
@media (max-width: 700px) { .mp { width: 40px; height: 40px; }  }
.mform label { white-space: nowrap; margin-right: 8px; }
.mform .fgrid { display: grid; width: 100%; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 10px; align-items: center; justify-items: start; background: none; border: none; padding: 0; margin: 0; }
.mform .fwide { grid-column: 1; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; background: none; border: none; padding: 0; margin: 0; }
.mform .flbl { white-space: nowrap; color: #333; }
.mform .fgrid select { max-width: 300px; }
.mform .fbtnrow { grid-column: 2; justify-self: end; }


.lang-sub { display: none; }
.show-lang .lang-sub { display: block; }

.mtbl td:nth-child(2), .mtbl td:nth-child(3), .mtbl td.mseal { white-space: nowrap; }

.mcard > div { flex: 1; min-width: 0; }

/* 能力値表(参考画像に合わせた比率) */
.mgrow { width: 100%; border-collapse: collapse; margin: 4px 0; }
.mgrow th, .mgrow td { border: 1px solid #dde4ef; padding: 6px 10px; text-align: center; }
.mgrow th { background: #f0f0f0; font-weight: bold; }
.mgrow td:first-child { background: #f7f7f7; font-weight: bold; width: 30%; }
.mgrow th:last-child, .mgrow td:last-child { color: #3f6fd9; }

/* 能力値表: 文字は中央・比率は 4:3:3 */
.mgrow td:first-child, .mgrow th:first-child { text-align: center; width: 40%; }
.mgrow th:nth-child(2), .mgrow th:nth-child(3), .mgrow td:nth-child(2), .mgrow td:nth-child(3) { width: 30%; text-align: center; }

/* 封印石表: 文字は中央・比率は 4:3:3 */
.msealtbl th, .msealtbl td { text-align: center; }
.msealtbl th:first-child, .msealtbl td:first-child { width: 40%; }
.msealtbl th:nth-child(2), .msealtbl th:nth-child(3), .msealtbl td:nth-child(2), .msealtbl td:nth-child(3) { width: 30%; }

/* 金・銀・銅のアイコン付きの金額 */
.coin { white-space: nowrap; display: inline-flex; align-items: center; }
.coin b { font-weight: normal; }
.coin-i { width: 14px; height: 14px; margin: 0 3px 0 1px; }

/* アイテムの等級の色枠 */
.gbox { display: inline-block; border: 2px solid transparent; border-radius: 4px; line-height: 0; padding: 0; vertical-align: middle; }
.gbox img { margin: 0 !important; display: block; background: none !important; object-fit: cover !important; border-radius: 0 !important; }
