:root{
    --bg:#f5f7fb;
    --card:#ffffff;
    --line:#dbe2ea;
    --text:#111827;
    --muted:#6b7280;
    --primary:#2563eb;
    --primary-dark:#1d4ed8;
    --green:#16a34a;
    --green-dark:#15803d;
}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:system-ui,-apple-system,"Segoe UI","Noto Sans JP",sans-serif;
}

.wrap{
    max-width:900px;
    margin:0 auto;
    padding:24px 16px 40px;
}

.center-wrap{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.card{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:18px;
    padding:28px;
    box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.top-card{
    width:100%;
    max-width:480px;
    text-align:center;
}

h1{
    margin:0 0 24px;
    text-align:center;
    font-size:28px;
}

.info{
    text-align:center;
    color:var(--muted);
    line-height:1.8;
    margin-bottom:20px;
}

.btn{
    display:inline-block;
    border:none;
    border-radius:12px;
    padding:14px 24px;
    font-size:16px;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
}

.btn-large{
    display:block;
    margin:18px 0;
    padding:18px;
    color:#fff;
    font-size:18px;
}

.btn-answer{
    background:var(--primary);
    color:#fff;
}

.btn-answer:hover{
    background:var(--primary-dark);
}

.btn-result{
    background:var(--green);
    color:#fff;
}

.btn-result:hover{
    background:var(--green-dark);
}

.btn-gray{
    background:#e5e7eb;
    color:#111827;
}

.actions{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:28px;
}

.tabs{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.tab{
    padding:10px 16px;
    border-radius:999px;
    background:#e5e7eb;
    color:#111827;
    text-decoration:none;
    font-weight:700;
}

.tab.active-blue{
    background:var(--primary);
    color:#fff;
}

.tab.active-green{
    background:var(--green);
    color:#fff;
}

.q-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    padding:18px;
    margin-bottom:16px;
    overflow:hidden;
}

.q-title{
    font-weight:700;
    margin-bottom:12px;
}

.choices{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.choice{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.choice input{
    transform:scale(1.2);
    display:none;
}

.choice-circle{
    width:42px;
    height:42px;
    border-radius:50%;
    border:2px solid #cbd5e1;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:17px;
    font-weight:800;
    color:#374151;
    transition:.15s;
}

.choice input:checked + .choice-circle{
    background:#2563eb;
    border-color:#2563eb;
    color:#fff;
    transform:scale(1.06);
}

.result-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:22px;
    margin-bottom:18px;
}

.subject-title{
    font-size:22px;
    font-weight:700;
    margin-bottom:18px;
    padding-bottom:12px;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    gap:12px;
}

.required-note{
    margin-left:auto;
    color:#666;
    font-size:14px;
}

.q-block{
    margin-bottom:24px;
}

.choice-row{
    display:grid;
    grid-template-columns:70px 110px 1fr;
    align-items:center;
    gap:12px;
    padding:8px 0;
    border-bottom:1px solid #f0f2f5;
}

.choice-no{
    width:190px;
    flex-shrink:0;

    display:flex;
    align-items:center;
}

.choice-index{
    width:20px;
}

.choice-correct{
    width:38px;
    margin-left:4px;
}

.choice-answer{
    width:48px;
    margin-left:4px;
}

.choice-count{
    width:110px;
    flex-shrink:0;
    text-align:right;
    white-space:nowrap;
}

.bar-wrap{
    height:14px;
    background:#eef2f7;
    border-radius:999px;
    overflow:hidden;
    flex:1;
    min-width:0;
    margin-left:12px;
}

.percent{
    display:inline;
    margin-left:4px;
    white-space:nowrap;
}

.bar{
    height:100%;
    background:var(--primary);
    border-radius:999px;
}

.empty{
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:28px;
    text-align:center;
    color:var(--muted);
}

.tab-button{
    border:none;
    cursor:pointer;
    font-size:16px;
}

.subject-panel{
    display:none;
    scroll-margin-top: 110px;
}

.subject-panel.show{
    display:block;
}

/* ================================
   トップページ
================================ */

body.top-page{
    min-height:100vh;
    background:
        radial-gradient(circle at top center, #eef9ff 0%, #f8fdff 48%, #ffffff 100%);
}

.top-wrap{
    max-width:1100px;
    margin:0 auto;
    padding:42px 18px 48px;
}

.top-hero{
    text-align:center;
    padding-top:4px;
}

.top-badge{
    display:inline-block;
    padding:0;
    border-radius:0;
    background:none;
    box-shadow:none;
    color:#6b7280;
    font-size:18px;
    font-weight:700;
    letter-spacing:.04em;
}

.top-main-title{
    margin:34px 0 20px;
    font-size:66px;
    line-height:1.05;
    font-weight:900;
    color:#2563c7;
    letter-spacing:.03em;
}

.top-lead{
    font-size:25px;
    line-height:1.8;
    color:#2563c7;
    font-weight:500;
    margin-bottom:48px;
}

.top-count-box{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    min-width:260px;
    padding:26px 34px;
    border-radius:24px;
    background:rgba(219,238,255,.78);
    box-shadow:0 8px 24px rgba(37,99,199,.08);
    margin-bottom:48px;
}

.top-count-num{
    font-size:58px;
    line-height:1;
    font-weight:900;
    color:#ffc400;
}

.top-count-text{
    font-size:22px;
    font-weight:800;
    color:#2563c7;
}

.top-buttons{
    display:flex;
    justify-content:center;
    gap:26px;
    margin-bottom:72px;
}

.top-btn{
    min-width:260px;
    padding:24px 30px;
    border-radius:18px;
    font-size:24px;
    font-weight:900;
    text-decoration:none;
    box-sizing:border-box;
}

.top-btn-post{
    background:linear-gradient(180deg, #ffe08a, #ffc75a);
    color:#111827;
    box-shadow:0 10px 22px rgba(251,191,36,.18);
}

.top-btn-post span{
    margin-left:8px;
}

.top-btn-result{
    background:rgba(255,255,255,.72);
    color:#2563c7;
    border:2px solid #9ecdf6;
}

.present-box{
    max-width:920px;
    margin:0 auto;
    padding:38px 42px;
    border-radius:22px;
    background:linear-gradient(135deg, #fff7c7 0%, #ffe2aa 50%, #ffd0a0 100%);
    box-shadow:0 10px 28px rgba(251,191,36,.14);
}

.present-label{
    font-size:18px;
    font-weight:900;
    margin-bottom:18px;
}

.present-title{
    font-size:34px;
    line-height:1.4;
    font-weight:900;
    margin-bottom:16px;
}

.present-text{
    font-size:19px;
    line-height:1.8;
    font-weight:500;
}

.present-flow{
    margin-top:24px;
    font-size:20px;
    font-weight:900;
}

.clear-area{
    margin-top:12px;
    text-align:right;
}

.clear-btn{
    border:none;
    background:#f3f4f6;
    color:#4b5563;
    border-radius:999px;
    padding:7px 14px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
}

.clear-btn:hover{
    background:#e5e7eb;
}

.tab-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    text-align:center;
    min-width:88px;
    gap:4px;
}

.tab-progress{
    width:100%;
    text-align:center;
    font-size:11px;
    color:#9ca3af;
    line-height:1;
    font-weight:600;
}
.result-header{
    position:sticky;
    top:0;
    z-index:50;
    background:rgba(245,247,251,.94);
    backdrop-filter:blur(8px);
    border-bottom:1px solid var(--line);
    margin:-24px -16px 20px;
    padding:14px 16px;
}

.result-header-inner{
    max-width:900px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
}

.result-title-area{
    min-width:0;
}

.result-main-title{
    margin:0 0 6px;
    text-align:left;
    font-size:26px;
    font-weight:900;
    color:#2563eb;
}

.result-info{
    margin:0;
    text-align:left;
    font-size:13px;
    line-height:1.5;
}

.result-ad{
    flex:0 0 330px;
    background:#fffbea;
    border:1px solid #fde68a;
    border-radius:14px;
    padding:12px 14px;
    box-sizing:border-box;
}

.result-ad-title{
    font-size:15px;
    font-weight:900;
    color:#92400e;
    margin-bottom:4px;
}

.result-ad-text{
    font-size:12px;
    color:#4b5563;
    line-height:1.5;
    margin-bottom:8px;
}

.result-ad-btn{
    display:inline-block;
    padding:7px 18px;
    border-radius:999px;
    background:#f59e0b;
    color:#fff;
    font-size:13px;
    font-weight:800;
    text-decoration:none;
}

.modal-back{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f5f7fb;
    padding:20px;
}

.download-modal{
    width:100%;
    max-width:560px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:28px;
    text-align:center;
    box-shadow:0 12px 32px rgba(0,0,0,.12);
}

.download-modal h1{
    margin-bottom:18px;
}

.download-modal p{
    line-height:1.8;
    color:#374151;
}

.download-actions{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:24px;
}

/* ===================================
   result_menu.php
=================================== */

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:24px;
}

.page-header h1{
    margin:0;
    text-align:left;
}

.top-link{
    color:var(--primary);
    text-decoration:none;
    font-weight:700;
    white-space:nowrap;
}

.top-link:hover{
    text-decoration:underline;
}

/* 解答速報メニュー用タブ */

.result-menu-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.result-menu-tab{
    display:flex;
    align-items:center;
    justify-content:center;

    min-width:140px;
    height:56px;

    padding:0 24px;

    border-radius:16px;

    background:#e5e7eb;
    color:#111827;

    text-decoration:none;
    font-size:16px;
    font-weight:700;

    transition:.15s;
}

.result-menu-tab:hover{
    background:var(--primary);
    color:#fff;
}

/* ===================================
   生成結果ページ result_***.html
=================================== */

.result-header-right{
    display:flex;
    align-items:center;
    gap:14px;
}

.result-top-link{
    flex:0 0 auto;
}

.result-sticky-tabs{
    position:sticky;
    top:0;
    z-index:80;
    background:var(--bg);
    padding:12px 0;
    margin-bottom:20px;
    border-bottom:1px solid var(--line);
}

.result-menu-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:0;
}

.result-menu-tab{
    display:flex;
    align-items:center;
    justify-content:center;

    min-width:140px;
    height:56px;

    padding:0 24px;
    border-radius:16px;

    background:#e5e7eb;
    color:#111827;

    text-decoration:none;
    font-size:16px;
    font-weight:700;

    box-sizing:border-box;
}

.result-menu-tab.active-green{
    background:var(--green);
    color:#fff;
}

.result-menu-tab:hover{
    background:var(--green);
    color:#fff;
}

.ad-dialog{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:20px;
}

.ad-dialog[hidden]{
  display:none;
}

.ad-box{
  width:min(92vw, 460px);
  position:relative;
  overflow:hidden;
  border-radius:24px;
  padding:30px 26px 28px;
  background:
    radial-gradient(circle at top left, #dbeafe 0, transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #eef6ff 100%);
  box-shadow:0 24px 70px rgba(15,23,42,.35);
  border:1px solid rgba(255,255,255,.8);
  text-align:center;
}

.ad-box::before{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  right:-70px;
  top:-70px;
  background:rgba(37,99,235,.12);
  border-radius:50%;
}

.ad-box::after{
  content:"";
  position:absolute;
  width:120px;
  height:120px;
  left:-50px;
  bottom:-50px;
  background:rgba(245,158,11,.16);
  border-radius:50%;
}

.ad-close{
  position:absolute;
  top:12px;
  right:14px;
  z-index:2;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.85);
  color:#475569;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(15,23,42,.12);
}

.ad-badge{
  display:inline-block;
  position:relative;
  z-index:1;
  margin-bottom:12px;
  padding:6px 14px;
  border-radius:999px;
  background:#fff;
  color:#FF0000;
  font-size:16px;
  font-weight:800;
  letter-spacing:.08em;
}

.site-brand {
    position: fixed;
    top: 12px;
    left: 12px;

    background: #fff;
    color: #003366;

    font-size: 13px;
    font-weight: bold;

    padding: 6px 10px;

    text-decoration: none;

    z-index: 1000;
}

.site-brand:hover,
.site-brand:visited,
.site-brand:active {
    color: #003366;
    text-decoration: none;
}

.ad-box h2{
  position:relative;
  z-index:1;
  margin:0 0 12px;
  font-size:clamp(22px, 5vw, 30px);
  color:#1e3a8a;
  line-height:1.35;
}

.ad-box p{
  position:relative;
  z-index:1;
  margin:0;
  color:#334155;
  font-size:15px;
  line-height:1.8;
}

.ad-link{
  display:inline-block;
  position:relative;
  z-index:1;
  margin-top:20px;
  padding:12px 22px;
  border-radius:999px;
  background:linear-gradient(135deg, #2563eb, #1d4ed8);
  color:#fff;
  font-size:15px;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(37,99,235,.32);
}

.ad-link:hover{
  transform:translateY(-1px);
}

.clear-subject-btn{
    margin-left:0;
    padding:4px 10px;
    font-size:13px;
    border:1px solid #bbb;
    border-radius:4px;
    background:#fff;
    color:#333;
    cursor:pointer;
    white-space:nowrap;
}

.clear-subject-btn:hover{
    background:#f3f3f3;
}

@media(max-width:700px){

  .ad-box{
    padding:28px 20px 24px;
  }

  .ad-box p{
    font-size:14px;
  }
}

    .result-header-right{
        flex-direction:column;
        align-items:stretch;
    }

    .result-top-link{
        text-align:center;
    }

    .result-menu-tabs{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    .result-menu-tab{
        min-width:0;
        width:100%;
        height:50px;
        padding:0 10px;
        font-size:14px;
    }
}

@media(max-width:700px){

    .page-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .result-menu-tabs{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    .result-menu-tab{
        min-width:0;
        width:100%;
        height:50px;
        font-size:14px;
        padding:0 10px;
    }
}

.my-answer-ok{
    margin-left:12px;
    color:#2563eb;
    font-size:14px;
    font-weight:800;
}

.my-answer-ng{
    margin-left:12px;
    color:#dc2626;
    font-size:14px;
    font-weight:800;
}

.correct-label{
    margin-left:0px;
    color:#2563eb;
    font-size:13px;
    font-weight:900;
}

.my-answer-ok,
.my-answer-ng{
    margin-left:0;
    white-space:nowrap;
}

.total-row{
    font-weight:900;
    background:#fef3c7;
}

.total-row td{
    border-top:2px solid #f59e0b;
}

@media(max-width:700px){

    .result-header{
        margin:-24px -16px 18px;
        padding:12px 14px;
    }

    .result-header-inner{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }

    .result-main-title{
        text-align:center;
        font-size:22px;
    }

    .result-info{
        text-align:center;
    }

    .result-ad{
        flex:auto;
        width:100%;
        text-align:center;
    }
}

.receipt-label{
    margin-top:8px;
    font-size:16px;
    color:#374151;
}

.receipt-id{
    margin:18px auto;
    padding:18px 24px;
    border-radius:14px;
    background:#fff7ed;
    border:2px solid #fb923c;
    color:#c2410c;
    font-size:42px;
    font-weight:900;
    letter-spacing:.12em;
}

.receipt-note{
    line-height:1.8;
    color:#4b5563;
}

.receipt-mail-box{
    margin-top:24px;
    padding:18px;
    border-radius:14px;
    background:#f9fafb;
    border:1px solid #e5e7eb;
}

.receipt-mail-text{
    font-size:14px;
    line-height:1.8;
    color:#4b5563;
    margin:0 0 14px;
}

.receipt-mail-form{
    display:flex;
    gap:10px;
}

.receipt-mail-input{
    flex:1;
    padding:12px 14px;
    border:1px solid #d1d5db;
    border-radius:10px;
    font-size:16px;
    box-sizing:border-box;
}

.mail-message{
    margin:16px 0;
    padding:12px;
    border-radius:10px;
    background:#ecfdf5;
    color:#047857;
    font-weight:700;
}

/* ===== 自己採点 ===== */

.result-table{
    width:100%;
    max-width:500px;
    margin:30px auto;
    border-collapse:collapse;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.result-table th{
    background:#e8f0fe;
    padding:14px;
    text-align:center;
    font-weight:700;
    border-bottom:1px solid #dbe2ea;
}

.result-table td{
    padding:14px;
    border-bottom:1px solid #eceff3;
    text-align:center;
}

.result-table tr:last-child td{
    border-bottom:none;
}

.notice-link{
    margin-top:30px;
    text-align:center;
    line-height:1.8;
    font-size:14px;
}

.notice-link a{
    font-weight:bold;
    text-decoration:none;
}

.notice-box{
    margin-top:30px;
    padding:16px;
    border:1px solid #dbe2ea;
    border-radius:12px;
    background:#f8fafc;
    line-height:1.8;
    text-align:center;
}

.notice-box a{
    font-weight:bold;
    text-decoration:none;
}

.score-total{
    text-align:center;
    margin:20px 0;
    font-size:20px;
    font-weight:700;
}

.selfassessment-form{
    max-width:500px;
    margin:0 auto;
}

.selfassessment-form .form-group{
    margin-bottom:20px;
}

.selfassessment-form label{
    display:block;
    margin-bottom:8px;
    font-weight:700;
}

.selfassessment-form input{
    width:100%;
    box-sizing:border-box;
    padding:10px 12px;
    font-size:16px;
    border:1px solid #bbb;
    border-radius:6px;
}

.selfassessment-form .btn{
    width:100%;
}

.correct-rate{
    margin-left:12px;
    color:#2563eb;
    font-size:14px;
    font-weight:800;
}

.receipt-service-info{
    margin:18px 0 22px;
    padding:14px;
    background:#f7f9fc;
    border:1px solid #d7e3f4;
    border-radius:6px;
    text-align:center;
    line-height:1.7;
}

.receipt-service-info p{
    margin:0 0 8px;
}

.receipt-service-info p:last-child{
    margin-bottom:0;
}

.receipt-service-link{
    font-weight:bold;
    color:#0056b3;
    text-decoration:none;
}

.receipt-service-link:hover{
    text-decoration:underline;
}

.receipt-service-important{
    color:#d00000;
    font-weight:bold;
}

.receipt-service-button{
    display:inline-block;
    margin-top:8px;
    padding:12px 24px;

    background:#0056b3;
    color:#fff;
    font-weight:bold;
    font-size:16px;
    line-height:1.5;
    text-align:center;
    text-decoration:none;

    border-radius:8px;
    box-shadow:0 2px 6px rgba(0,0,0,.15);

    transition:background .2s;
}

.receipt-service-button:hover{
    background:#00408a;
    color:#fff;
    text-decoration:none;
}

/* ================================
   スマホ対応
================================ */
@media(max-width:700px){
    .receipt-mail-form{
        flex-direction:column;
    }

    h1{
        font-size:24px;
    }

    .card{
        padding:22px 16px;
    }

    .choice-row{
        grid-template-columns:54px 90px 1fr;
        gap:8px;
        font-size:14px;
    }

    .top-wrap{
        padding:28px 14px 36px;
    }

    .top-badge{
        font-size:13px;
        padding:0;
    }

    .top-main-title{
        font-size:42px;
        margin:26px 0 18px;
    }

    .top-lead{
        font-size:18px;
        margin-bottom:34px;
    }

    .top-count-box{
        padding:20px 28px;
        margin-bottom:34px;
    }

    .top-count-num{
        font-size:46px;
    }

    .top-count-text{
        font-size:18px;
    }

    .top-buttons{
        flex-direction:column;
        gap:16px;
        margin-bottom:42px;
    }

    .top-btn{
        width:100%;
        min-width:0;
        font-size:20px;
        padding:20px;
    }

    .present-box{
        padding:26px 20px;
    }

    .present-title{
        font-size:24px;
    }

    .present-text{
        font-size:16px;
    }

    .present-flow{
        font-size:17px;
        line-height:1.7;
    }

    .choices{
        display:grid;
        grid-template-columns:repeat(8, minmax(0, 1fr));
        gap:3px;
        width:100%;
        box-sizing:border-box;
    }

    .choice-circle{
        width:42px;
        height:36px;
        font-size:15px;
        width:100%;
        aspect-ratio:1 / 1;
        box-sizing:border-box;

    }

    .choice{
        width:100%;
        min-width:0;
    }

    .tabs{
        display:grid;
        grid-template-columns:repeat(5, minmax(0, 1fr));
        gap:4px;
        width:100%;
        box-sizing:border-box;
    }

    .tab-wrap{
        min-width:0;
        width:100%;
    }

    .tab{
        width:100%;
        box-sizing:border-box;
        padding:7px 1px;
        font-size:12px;
        text-align:center;
        white-space:nowrap;
    }

    .tab-progress{
        width:100%;
        text-align:center;
        font-size:10px;
        line-height:1;
    }

}

/* ================================
   解答入力画面：固定ヘッダー・タブ
================================ */
.answer-header{
    position:sticky;
    top:0;
    z-index:100;
    background:rgba(245,247,251,.96);
    backdrop-filter:blur(8px);
    border-bottom:1px solid var(--line);
    margin:0 -16px 24px;
    padding:12px 16px 10px;
}

.answer-header .tabs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:10px;
}

.answer-header .tab{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-width:124px;
    min-height:48px;
    padding:10px 18px;
    border-radius:16px;
    box-sizing:border-box;
    white-space:nowrap;
}

.answer-header .tab-subject,
.answer-header .tab-count{
    font-size:16px;
    line-height:1.2;
    font-weight:700;
}

.answer-top-link-area{
    text-align:right;
}

.answer-top-link{
    color:var(--primary);
    font-size:14px;
    font-weight:700;
    text-decoration:none;
}

.answer-top-link:hover{
    text-decoration:underline;
}

.answer-user-count{
    margin:24px auto 12px;
    text-align:center;
    font-size:16px;
    font-weight:800;
    color:#374151;
}

.btn-x-share{
    background:#000;
    color:#fff;
    text-decoration:none;
}

.btn-x-share:hover{
    opacity:.9;
}

@media(max-width:700px){
    .answer-header{
        margin:0 -16px 20px;
        padding:10px 12px 8px;
    }

    .answer-header .tabs{
        display:flex;
        flex-wrap:wrap;
        gap:6px;
        margin-bottom:8px;
    }

    .answer-header .tab{
        width:auto;
        min-width:96px;
        min-height:42px;
        padding:8px 10px;
        border-radius:14px;
    }

    .answer-header .tab-subject,
    .answer-header .tab-count{
        font-size:13px;
    }

    .answer-top-link{
        font-size:13px;
    }
}
