:root{
  --bg:#d9e1e7;
  --card:#f8fbfd;
  --text:#1e293b;
  --muted:#64748b;
  --accent:#0b6cad;
  --accent-dark:#084b78;
  --accent-soft:#dbeaf5;
  --border:#c8d5df;
  --border-strong:#3f86bb;
  --radius:20px;
  --shadow:0 10px 24px rgba(11,108,173,.10);
  --sidebar-width:260px;
}

  * {
    box-sizing: border-box;
  }

  html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Noto Sans JP", "Hiragino Kaku Gothic ProN",
                 "Yu Gothic", "YuGothic", sans-serif;
  }

  .wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 16px 80px;
  }

.titlebar {
  font-weight: 800;
  font-size: 20px;
  padding: 8px 4px 0;
  color: var(--accent-dark);
}

.hint {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 14px;
}

  .card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 14px 4px;
  }

  .card details {
    display: block;
  }

  .card summary {
    list-style: none;
    cursor: pointer;
    outline: none;
    padding: 16px 16px 12px;
  }

  .card summary::-webkit-details-marker {
    display: none;
  }

  .card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

.card-header2 {
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.badge-no {
  background: linear-gradient(135deg, var(--accent), var(--border-strong));
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  box-shadow: 0 4px 10px rgba(11,108,173,.28);
}

.event-title {
  font-size: 19px;
  font-weight: 500;
  color: var(--accent-dark);
}

  .banner img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
  }

  .banner2 img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
  }

.content {
  border-top: 1px solid var(--border);
  padding: 16px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
}

  .grid {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 8px 12px;
    font-size: 15px;
  }

.label {
  color: var(--muted);
  padding-left: 8px;
  border-left: 3px solid #7dd3fc;
}

.label2 {
  color: var(--muted);
  padding-left: 8px;
}

.section-title {
  font-weight: 800;
  letter-spacing: .02em;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: var(--accent-dark);
  margin-top: 16px;
  display: inline-block;
}

  ul {
    margin: 8px 0 0 1.1em;
    padding: 0;
  }

ul li::marker {
  content: "• ";
  color: var(--accent);
}

  .voice img {
    margin-top: 8px;
    border-radius: 12px;
    max-width: 200px;
    display: block;
  }

.chip-limited {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e0f2fe;
  color: var(--accent-dark);
  border: 1px solid #93c5fd;
}

.copyright {
  margin-top: 40px;
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

#format-filters{
  position:sticky;
  top:0;
  z-index:5;
  background:var(--bg);
  padding:8px 0 6px;
}

#format-filters .chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: .2s;
}

#format-filters .chip:hover {
  background: #edf6fc;
}

#format-filters .chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 3px 8px rgba(11,108,173,.22);
}

  #format-filters #count {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
  }

  .red {
    color: red;
    font-weight: 700;
  }

.calc-box-play {
  max-width: 420px;
  margin: 20px;
  padding: 20px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.calc-box-play input {
  width: 100%;
  padding: 8px;
  margin: 6px 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.calc-box-play button {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
}

.menu a:hover{
  background: var(--accent-soft);
  border-color: #93c5fd;
}

.calc_result {
  margin-top: 15px;
  white-space: pre-line;
}


/* ===== レイアウト ===== */

.layout{
  display:grid;
  grid-template-columns:220px 1fr;
  min-height:100vh;
}

/* ===== サイドバー ===== */

.sidebar{
  background:var(--card);
  border-right:1px solid var(--border);
  padding:20px 14px;
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto;
  color:var(--text);
  transition:.2s;
}

.sidebar-title{
  font-weight:800;
  font-size:20px;
  margin-bottom:16px;
  color:var(--accent-dark);
}

.menu{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.menu a{
  text-decoration:none;
  padding:4px 6px;
  border-radius:14px;
  border:1px solid transparent;
  color:var(--text);
}

.menu a:hover{
  background:var(--accent-soft);
  border-color:#93c5fd;
}

.menu a.active{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}

/* ===== スマホ対応 ===== */
@media (max-width:768px){

  .layout{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:static;
    height:auto;
    border-right:none;
    border-bottom:1px solid var(--border);
  }

}

/* ===== メイン ===== */

.main{
  padding:0 20px;
}

/* ===== ボイスタ ===== */

.voice-img{
  max-width:90px;
  border-radius:12px;
}

/* ===== 編成 ===== */

.hensei-img{
  max-width:60px;
  border-radius:2px;
}

/* ===== ランク ===== */

.table-wrap{
  width:100%;
  overflow-x:auto;
}

.rank-table{
  width:auto;
  margin:auto;

  border-collapse:collapse;

  background:var(--card);

  border:1px solid var(--border);

  font-size:14px;

  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum";
}

.rank-table th{
  background:var(--accent-soft);

  color:var(--accent-dark);

  padding:5px 8px;

  border:1px solid var(--border);

  text-align:center;

  font-weight:700;

  white-space:nowrap;

  position:sticky;
  top:0;
}

.rank-table td{
  padding:2px 8px;

  border:1px solid var(--border);

  text-align:right;

  white-space:nowrap;
}

.rank-table tr:nth-child(even){
  background:#f4f8fb;
}

.rank-table tr:hover{
  background:var(--accent-soft);
}

.high-rank{
  color:var(--accent-dark);
}

.bold-cell{
  font-weight:700;
}

.estimate td{
  color:var(--accent);
  font-weight:700;
}

/* ===== 詳細ランク ===== */

.detail-table th{
  padding:4px 5px;
}

.detail-table td{
  padding:1px 5px;
  font-size:12px;
}

.section-head td{
  font-weight:700;

  text-align:center !important;

  background:var(--accent-soft);

  color:var(--accent-dark);
}

/* ===== フッター ===== */

.footer-links a{
  color:var(--accent);

  text-decoration:none;

  padding:0 10px;

  border-right:1px solid var(--border);
}

.footer-links a:last-child{
  border-right:none;
}


/* ===== 編成 ===== */

.voice-table{
  border-collapse:collapse;
}

.voice-table td{
  border:none;
  padding:0;
  text-align:center;
  vertical-align:top;
  font-size:11px;
}

.hensei-img{
  width:100%;
  max-width:70px;

  height:auto;

  object-fit:cover;

  border-radius:4px;
}

/* ===== リンク ===== */

a{
  color:var(--accent);

  text-decoration:none;

  transition:.2s;
}

a:hover{
  color:var(--accent-dark);
}

/* ===== プロフィール ===== */
.profile-text{
  font-size:13px;
}

.profile-box{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.profile-row{
  display:grid;
  grid-template-columns:7em 1fr;
  gap:8px;
  align-items:start;
}

.profile-label{
  color:var(--accent-dark);
  font-weight:700;
  font-size:13px;   /* ←小さく */
}

.profile-value{
  color:#333;
  font-size:13px;   /* ←小さく */
}



.character-img{
  border-radius:0;
}


/* ===== 身長一覧表 ===== */
.height-table{
  width:auto;
  border-collapse:collapse;
  font-size:13px;
}

.height-table th,
.height-table td{
  border:1px solid #f3d5df;
  padding:1px 4px;
  line-height:1.2;
}

.height-table th{
  background:#edf6fc;
  color:var(--accent-dark);
  font-weight:700;
  text-align:left;
}

/* 順位 */
.height-table th:nth-child(1),
.height-table td:nth-child(1){
  width:35px;
  padding:1px 2px;
}

/* キャラ */
.height-table th:nth-child(2),
.height-table td:nth-child(2){
  width:100px;
}

.height-table th:last-child,
.height-table td:last-child{
  width:50px;
  text-align:left;
  white-space:nowrap;
}

.height-table tr:nth-child(even){
  background:#fffafb;
}


/* ===== 曲リスト ===== */

.band-block{
    width:100%;
    max-width:720px;
    margin:30px auto;
}

.song-table{
    width:100%;
    table-layout:fixed;
    border-collapse:collapse;
}

.col-title{
    width:60%;
}

.col-type{
    width:25%;
}

.col-level{
    width:15%;
}

.song-table th,
.song-table td{
    padding:8px 10px;
    border:1px solid #ddd;
}

.song-table th:nth-child(3),
.song-table td:nth-child(3){
    text-align:center;
}


/* ===== タイプ色（全ページ共通） ===== */

.type{
    display:inline-block;
    width:12px;
    height:12px;
    border-radius:50%;
    margin-right:6px;
    vertical-align:-1px;
}

.type.yellow{
    background:#f5b400;
}

.type.purple{
    background:#8a56d8;
}

.type.green{
    background:#31b65c;
}

.type.blue{
    background:#2e7de1;
}

.type.red{
    background:#e53935;
}


/* ===== ガチャカード一覧 ===== */

.gacha-table{
    width:100%;
    border-collapse:collapse;
    margin:10px 0 20px;
    font-size:15px;
}

.gacha-table th,
.gacha-table td{
    border:1px solid #d8d8d8;
    padding:5px 8px;
    text-align:center;
    vertical-align:middle;
    line-height:1.3;
}

.gacha-table th{
    background:#f5f6f8;
    font-weight:bold;
}

.gacha-table tbody tr:nth-child(even){
    background:#fafafa;
}


/* ===== ガチャ表 スマホ対応 ===== */

@media(max-width:600px){

    .gacha-table{
        font-size:13px;
    }

    .gacha-table th,
    .gacha-table td{
        padding:4px 3px;
    }

    /* レア */
    .gacha-table th:nth-child(1),
    .gacha-table td:nth-child(1){
        white-space:nowrap;
    }

    /* タイプ */
    .gacha-table th:nth-child(4),
    .gacha-table td:nth-child(4){
        white-space:nowrap;
    }

    /* 種別 */
    .gacha-table th:nth-child(5),
    .gacha-table td:nth-child(5){
        white-space:nowrap;
    }

}

/* ===== 通常表 ===== */

.normal-table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.normal-table th,
.normal-table td{
    border:1px solid #bbb;
    padding:7px 10px;
    text-align:center;
}

.normal-table th{
    background:#f5f6f8;
    font-weight:bold;
}

.normal-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
    background:#fff;
}

.normal-table th,
.normal-table td{
    border:1px solid #bbb;
    padding:7px 10px;
    text-align:center;
}

.normal-table th{
    background:#f5f6f8;
    font-weight:bold;
}

.exchange-calc {
  max-width: 700px;
  margin: 20px auto;
}

.exchange-calc label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-bottom: 1px solid #ddd;
}

.exchange-calc label span {
  margin-left: auto;
  white-space: nowrap;
}

.exchange-calc input[type="checkbox"] {
  transform: scale(1.3);
}

.exchange-total {
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  padding: 14px;
  background: #fff;
  border: 2px solid #666;
  font-size: 18px;
  text-align: center;
}

.exchange-total strong {
  font-size: 24px;
}

@media (max-width: 600px) {
  .exchange-calc label {
    font-size: 14px;
  }

  .exchange-calc label span {
    font-size: 13px;
  }
}


/* 編成ページ：スナップ専用カードレイアウト */
.snap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 14px 8px;
  max-width: 760px;
  margin: 6px 0 16px;
}
.snap-item { min-width: 0; text-align: center; font-size: 14px; line-height: 1.4; }
.snap-item img.hensei-img { display:block; width:100%; max-width:none; height:auto; border-radius:4px; }
.snap-detail { overflow-wrap:anywhere; }
@media(max-width:600px) {
  .snap-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 8px; }
  .snap-item { font-size:13px; }
}



/* ===== イベント報酬表専用 ===== */
.event-point-tables {
    width: 100%;
    max-width: 500px;
    margin: 15px auto;
    min-width: 0;
}

.event-point-tables .event-point-table {
    display: table;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0;
    background: #fff;
}

.event-point-tables .event-point-table th,
.event-point-tables .event-point-table td {
    display: table-cell;
    width: auto;
    min-width: 0;
    border: 1px solid #ddd;
    padding: 6px 2px;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.event-point-tables .event-point-table thead tr:first-child th {
    background: #eaf0f5;
    font-weight: 700;
    font-size: 14px;
    padding: 8px 2px;
}

.event-point-tables .event-point-table thead tr:nth-child(2) th {
    background: #f7f7f7;
    font-weight: 700;
}

@media (max-width: 600px) {
    .event-point-tables .event-point-table th,
    .event-point-tables .event-point-table td {
        font-size: 10px;
        padding: 5px 1px;
    }
    .event-point-tables .event-point-table thead tr:first-child th {
        font-size: 12px;
    }
}


/* ===== イベント攻略：共通コンパクト表 ===== */
/* イベント攻略：共通のコンパクト表（7列・6列対応） */
.event-point-tables {
    width: 100%;
    max-width: 400px;
    margin: 15px auto;
    min-width: 0;
}
.event-point-tables .guide-data-table {
    display: table;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 0 0 12px;
    background: #fff;
}
.event-point-tables .guide-data-table th,
.event-point-tables .guide-data-table td {
    display: table-cell;
    border: 1px solid #ddd;
    padding: 6px 2px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 12px;
    box-sizing: border-box;
}
.event-point-tables .guide-data-table th {
    background: #f5f6f8;
    font-weight: 700;
}
.event-point-tables .guide-data-table th:first-child,
.event-point-tables .guide-data-table td:first-child {
    width: 24%;
}
@media (max-width: 600px) {
    .event-point-tables .guide-data-table th,
    .event-point-tables .guide-data-table td {
        font-size: clamp(9px, 2.5vw, 11px);
        padding: 5px 1px;
    }
}
