コンテンツにスキップ

MediaWiki:Common.css

提供: owarai.wiki
2026年5月5日 (火) 10:00時点におけるOwaraiBulkBot (トーク | 投稿記録)による版 (メインページ用 リッチデザイン CSS(hero v2 / portal grid / award cards / feat cards / cta / stats))

注意: 保存後、変更を確認するにはブラウザーのキャッシュを消去する必要がある場合があります。

  • Firefox / Safari: Shift を押しながら 再読み込み をクリックするか、Ctrl-F5 または Ctrl-R を押してください (Mac では ⌘-R)
  • Google Chrome: Ctrl-Shift-R を押してください (Mac では ⌘-Shift-R)
  • Microsoft Edge: Ctrl を押しながら 最新の情報に更新 をクリックするか、Ctrl-F5 を押してください。
.mw-parser-output {
    line-height: 1.75;
    font-size: 15px;
    color: #2c2c2c;
}

.mw-parser-output p {
    margin: 0.7em 0 1em 0;
}

.mw-parser-output h2 {
    border-bottom: 2px solid #f0c000;
    padding-bottom: 0.35em;
    margin-top: 1.7em;
    margin-bottom: 0.8em;
    font-size: 1.55em;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.mw-parser-output h3 {
    border-bottom: 1px solid #ecdfb0;
    padding-bottom: 0.25em;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
    font-size: 1.18em;
    font-weight: 600;
    color: #3a3000;
}

.mw-parser-output h4 {
    margin-top: 1em;
    margin-bottom: 0.4em;
    font-size: 1.05em;
    font-weight: 600;
    color: #444;
}

table.wikitable,
table.infobox,
table.navbox {
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 4px;
    overflow: hidden;
    margin: 1.4em 0;
    font-size: 0.95em;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

table.wikitable {
    width: auto;
}

table.wikitable th,
table.wikitable > caption {
    background: #fbfbfb;
    color: #444;
    font-weight: 600;
    border-bottom: 2px solid #f0c000;
    padding: 11px 16px;
    text-align: left;
    letter-spacing: 0.02em;
}

table.wikitable td {
    padding: 11px 16px;
    border-top: 1px solid #f3f3f3;
    color: #333;
    vertical-align: top;
}

table.wikitable tbody tr:first-child td {
    border-top: none;
}

table.wikitable tbody tr:nth-child(even) td {
    background: #fcfcfa;
}

table.wikitable tbody tr:hover td {
    background: #fff8e1;
    transition: background 0.15s ease;
}

table.infobox {
    width: 280px;
    float: right;
    margin: 0 0 1.2em 1.4em;
    border: 1px solid #ececec;
}

table.infobox caption {
    background: #f0c000;
    color: #1a1500;
    font-size: 1.08em;
    font-weight: 700;
    padding: 14px 14px;
    text-align: center;
    border-bottom: none;
    letter-spacing: 0.01em;
}

table.infobox th {
    background: #fbfaf3;
    color: #555;
    font-weight: 500;
    font-size: 0.88em;
    border-top: 1px solid #f1ebd5;
    padding: 9px 12px;
    text-align: left;
    width: 38%;
    vertical-align: top;
    letter-spacing: 0.02em;
}

table.infobox td {
    padding: 9px 12px;
    border-top: 1px solid #f1ebd5;
    color: #2c2c2c;
    vertical-align: top;
    word-break: break-word;
    line-height: 1.6;
}

table.infobox tr:nth-child(2) th,
table.infobox tr:nth-child(2) td {
    border-top: none;
}

table.navbox {
    font-size: 0.86em;
    background: #ffffff;
    border-radius: 4px;
    margin: 1.5em 0 0.5em 0;
}

table.navbox th {
    background: #fff8de;
    color: #5a4500;
    border-bottom: 1px solid #f0c000;
    padding: 10px 14px;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
}

table.navbox td {
    padding: 9px 13px;
    border-top: 1px solid #f0f0f0;
    color: #333;
    vertical-align: top;
}

table.navbox tr td:first-child {
    background: #fcfcfc;
    font-weight: 600;
    color: #555;
    width: 16%;
    border-right: 1px solid #f0f0f0;
    font-size: 0.92em;
}

.mw-parser-output ul,
.mw-parser-output ol {
    margin: 0.6em 0 0.9em 1.4em;
    line-height: 1.75;
}

.mw-parser-output li {
    margin: 0.25em 0;
}

.mw-parser-output ol.references,
.mw-parser-output .references {
    font-size: 0.88em;
    line-height: 1.65;
    color: #555;
}

.mw-parser-output a.external {
    color: #2754a8;
}

.mw-parser-output dl, .mw-parser-output dd {
    line-height: 1.65;
}

#mw-content-text > .mw-parser-output {
    padding: 0.4em 0;
}

@media screen and (max-width: 720px) {
    table.wikitable,
    table.infobox,
    table.navbox {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        font-size: 0.93em;
        margin: 1em 0;
    }
    table.infobox {
        float: none !important;
        margin: 0.4em 0 1.2em 0 !important;
    }
    table.wikitable th,
    table.wikitable td,
    table.infobox th,
    table.infobox td,
    table.navbox th,
    table.navbox td {
        padding: 8px 10px;
        word-break: break-word;
    }
    table.infobox th {
        width: 40%;
    }
    .mw-parser-output {
        font-size: 15px;
        line-height: 1.7;
    }
    .mw-parser-output h2 {
        font-size: 1.35em;
        margin-top: 1.4em;
    }
    .mw-parser-output h3 {
        font-size: 1.1em;
    }
}

/* === owarai-mp (Main Page rich design) =================================== */
/* Hero banner */
.owarai-hero {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.4em;
    align-items: center;
    background: linear-gradient(135deg, #fffaf0 0%, #fff4d6 100%);
    border: 1px solid #f0c000;
    border-radius: 10px;
    padding: 1.8em 1.6em;
    margin: 0 0 1.6em 0;
    box-sizing: border-box;
    width: 100%;
    box-shadow: 0 2px 0 rgba(240, 192, 0, 0.12);
}
.owarai-hero-text { flex: 1 1 auto; min-width: 0; text-align: center; }
.owarai-hero-text .mw-heading,
.owarai-hero-text h1 {
    margin: 0 0 0.4em 0 !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    font-size: 2em;
    letter-spacing: 0.02em;
}
.owarai-hero-tagline {
    font-size: 1.1em;
    font-weight: 700;
    color: #4a3800;
    margin: 0 0 0.6em 0;
}
.owarai-hero-text p { margin: 0.5em 0; line-height: 1.7; }
.owarai-hero-image { flex: 0 0 auto; text-align: center; margin: 0; }
.owarai-hero-image p { margin: 0; }
.owarai-hero-image img {
    max-width: 100%; height: auto; width: 200px; display: block; margin: 0 auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.06));
}
@media (min-width: 600px) {
    .owarai-hero { flex-direction: row !important; gap: 2.2em; padding: 2.2em; }
    .owarai-hero-text { text-align: left; flex: 1 1 60%; }
    .owarai-hero-text h1 { font-size: 2.4em; }
    .owarai-hero-image { order: 2; flex: 0 0 auto; }
    .owarai-hero-image img { width: 240px; }
}
@media (min-width: 900px) {
    .owarai-hero-text h1 { font-size: 2.8em; }
    .owarai-hero-image img { width: 280px; }
}

/* Quick stats bar */
.owarai-stats {
    display: flex; flex-wrap: wrap; gap: 0.8em; justify-content: center;
    background: #ffffff; border: 1px solid #ecebe6; border-radius: 8px;
    padding: 1em; margin: 0 0 1.4em 0;
}
.owarai-stat {
    text-align: center; padding: 0.4em 1.2em; min-width: 110px;
}
.owarai-stat-num {
    display: block; font-size: 1.5em; font-weight: 700; color: #b88800;
    line-height: 1.1;
}
.owarai-stat-label {
    display: block; font-size: 0.82em; color: #777; margin-top: 0.25em;
}

/* Section heading – flat ribbon */
.owarai-mp-section { margin: 1.6em 0 0.8em 0; }
.owarai-mp-section > h2 {
    border: none !important;
    background: linear-gradient(90deg, #f0c000 0%, #ffd84d 100%);
    color: #1a1500;
    padding: 0.55em 1em;
    border-radius: 6px 6px 0 0;
    margin: 0;
    font-size: 1.18em !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 0 rgba(0,0,0,0.04);
}
.owarai-mp-section > .owarai-mp-section-body {
    background: #ffffff;
    border: 1px solid #f0e4ad;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 1.1em 1.2em;
}

/* Portal grid – colorful theme cards */
.owarai-portals {
    display: grid; gap: 0.8em;
    grid-template-columns: 1fr 1fr;
}
@media (min-width: 600px) {
    .owarai-portals { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
    .owarai-portals { grid-template-columns: repeat(4, 1fr); }
}
.owarai-portal {
    display: flex; flex-direction: column; gap: 0.3em;
    padding: 1em 0.9em; border-radius: 8px;
    background: #fffaf0;
    border: 1px solid #f0e4ad;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.owarai-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(240, 192, 0, 0.15);
}
.owarai-portal-icon {
    font-size: 1.7em; line-height: 1;
}
.owarai-portal-title {
    font-weight: 700; color: #3a2a00; font-size: 1em;
}
.owarai-portal-title a { color: #3a2a00; text-decoration: none; }
.owarai-portal-title a:hover { text-decoration: underline; }
.owarai-portal-sub {
    font-size: 0.82em; color: #777; line-height: 1.55;
}
.owarai-portal-sub a { color: #555; }
/* Portal color variants */
.owarai-portal-jinbutsu { background: #fff3e6; border-color: #f0c899; }
.owarai-portal-konbi    { background: #fdeef0; border-color: #f0a8b3; }
.owarai-portal-jimusho  { background: #f0f8ff; border-color: #aed3ee; }
.owarai-portal-gekijo   { background: #f5edff; border-color: #c8b3eb; }
.owarai-portal-shorace  { background: #fff8d6; border-color: #f0d96b; }
.owarai-portal-haishin  { background: #e9f7e9; border-color: #b1ddb1; }
.owarai-portal-podcast  { background: #fff0f5; border-color: #e8b8d0; }
.owarai-portal-daigaku  { background: #fff7e0; border-color: #e8c98c; }

/* Award winners showcase */
.owarai-award-grid {
    display: grid; gap: 0.7em;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) { .owarai-award-grid { grid-template-columns: repeat(3, 1fr); } }
.owarai-award-card {
    background: #fffaf0; border: 1px solid #f0d96b; border-radius: 8px;
    padding: 0.9em 1em;
}
.owarai-award-title {
    font-weight: 700; color: #b88800; font-size: 1em;
    border-bottom: 2px solid #f0c000; padding-bottom: 0.3em; margin-bottom: 0.5em;
}
.owarai-award-title a { color: #b88800; text-decoration: none; }
.owarai-award-row {
    font-size: 0.92em; line-height: 1.7; color: #2c2c2c;
}
.owarai-award-row .yr {
    display: inline-block; min-width: 3em; color: #888; font-variant-numeric: tabular-nums;
}

/* Featured cards – 注目の記事 */
.owarai-feat-grid {
    display: grid; gap: 0.8em;
    grid-template-columns: 1fr;
}
@media (min-width: 600px) { .owarai-feat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .owarai-feat-grid { grid-template-columns: 1fr 1fr 1fr; } }
.owarai-feat {
    background: #fff; border: 1px solid #ececec; border-radius: 8px;
    padding: 0.9em 1em;
    transition: box-shadow 0.12s ease;
}
.owarai-feat:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.06); }
.owarai-feat-tag {
    display: inline-block; font-size: 0.72em; font-weight: 700;
    background: #f0c000; color: #1a1500; padding: 0.15em 0.55em;
    border-radius: 3px; letter-spacing: 0.05em; margin-bottom: 0.45em;
}
.owarai-feat-title {
    font-weight: 700; font-size: 1.02em; margin: 0 0 0.35em 0; color: #2a2a2a;
}
.owarai-feat-title a { color: #2a2a2a; text-decoration: none; }
.owarai-feat-title a:hover { text-decoration: underline; color: #b88800; }
.owarai-feat-desc { font-size: 0.88em; color: #555; line-height: 1.6; margin: 0; }

/* Two-column layout for category lists */
.owarai-twocol {
    display: grid; gap: 1em;
    grid-template-columns: 1fr;
}
@media (min-width: 760px) { .owarai-twocol { grid-template-columns: 1fr 1fr; } }
.owarai-twocol > div { min-width: 0; }

/* Tag list inline (for theater/office name lists) */
.owarai-tags { line-height: 2.1; }
.owarai-tags a {
    display: inline-block; padding: 0.15em 0.7em; margin: 0.1em 0.15em;
    background: #fffaf0; border: 1px solid #f0e4ad; border-radius: 999px;
    font-size: 0.9em; color: #3a2a00; text-decoration: none;
    transition: background 0.1s ease, border-color 0.1s ease;
}
.owarai-tags a:hover { background: #fff4d6; border-color: #f0c000; }

/* CTA panel – join editing */
.owarai-cta {
    background: linear-gradient(135deg, #fff8de 0%, #fff0a8 100%);
    border: 1px solid #f0c000; border-radius: 8px;
    padding: 1.4em; margin: 1.6em 0;
    text-align: center;
}
.owarai-cta h3 {
    margin: 0 0 0.4em 0; border: none; padding: 0;
    color: #3a2a00; font-size: 1.2em;
}
.owarai-cta p { margin: 0.4em 0; color: #4a3800; }
.owarai-cta-buttons {
    display: flex; flex-wrap: wrap; gap: 0.6em; justify-content: center;
    margin-top: 0.9em;
}
.owarai-cta-buttons a {
    display: inline-block; padding: 0.55em 1.4em;
    background: #f0c000; color: #1a1500; border-radius: 999px;
    font-weight: 700; text-decoration: none; font-size: 0.95em;
    border: 1px solid #d6ab00;
    transition: background 0.12s ease;
}
.owarai-cta-buttons a:hover { background: #ffd84d; }
.owarai-cta-buttons a.outline {
    background: transparent; color: #4a3800;
}
.owarai-cta-buttons a.outline:hover { background: #fff8de; }

/* Footer info note */
.owarai-mp-note {
    background: #fff8e1; border-left: 4px solid #f0c000;
    padding: 0.9em 1.1em; margin: 1.4em 0;
    font-size: 0.92em; color: #4a3800; border-radius: 0 6px 6px 0;
}
.owarai-mp-note ul { margin: 0.4em 0 0 1.2em; padding: 0; }
.owarai-mp-note li { margin: 0.2em 0; }
/* === /owarai-mp ========================================================== */