@import url('../../tokens.css');

/* --- 基本レイアウト --- */
/* html{scroll-behavior}・.banner・.breadcrumb・.back-button・#scrollToTopBtnは
   common.cssが提供するため、ここでは重複定義しない。 */
body {
    font-family: 'M PLUS 1p', 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #f0f0f0;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}
@media (max-width: 768px) {
    body {
        min-width: 100vw;
    padding: 0;
    margin: 0;
    background: #f8f8f8;
    }
}

/* --- コンテナ --- */
.container {
    margin: 20px auto 0 auto;
    width: fit-content;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
@media (max-width: 768px) {
    .container {
        padding: 6px var(--space-page-x-mobile) 10px;
    margin: 12px 0 0 0;
    width: 100vw;
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    }
}

/* --- 目次 --- */
.toc {
    margin: 10px 0 20px 0;
    padding: 0;
    text-align: center;
}
.toc-buttons {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 12px 10px;
    justify-items: center;
    margin: 0 auto;
    max-width: 900px;
    padding: 0;
}
@media (max-width: 900px) {
    .toc-buttons {
        grid-template-columns: repeat(5, 1fr);
    max-width: 450px;
    }
}
@media (max-width: 768px) {
    .toc-buttons {
        grid-template-columns: repeat(5, 1fr);
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
    }
    .toc-btn-wrap { width: 100%; max-width: 60px; }
    .toc-btn-wrap img.toc-icon, .toc-other-btn { width: 44px; height: 44px; }
    .toc-label { font-size: 11px; }
}
.toc-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: transform 0.15s;
}
.toc-btn-wrap:hover { transform: translateY(-4px) scale(1.07); }
.toc-btn-wrap img.toc-icon,
.toc-other-btn {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-full);
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(50,0,255,0.10);
    border: 2px solid #3200FF;
    background: #fff;
    transition: box-shadow 0.2s, border 0.2s;
}
.toc-btn-wrap:hover img.toc-icon,
.toc-other-btn:hover {
    box-shadow: 0 4px 12px rgba(50,0,255,0.18);
    border: 2.5px solid #0000FF;
    background: #0000FF;
    color: #fff;
}
.toc-label {
    font-size: 13px;
    margin-top: 4px;
    color: #3200FF;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    letter-spacing: 0.02em;
}
.toc-btn-wrap .toc-label { margin-bottom: 2px; }

/* --- サークル紹介テーブル --- */
.circle-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(50,0,255,0.06);
}
.circle-table th, .circle-table td {
    border: 1px solid #ddd;
    padding: 10px 8px;
    text-align: center;
    font-size: 15px;
}
.circle-table th {
    background: #3200FF;
    color: #fff;
    font-weight: bold;
}
@media (max-width: 900px) {
    .circle-table { min-width: 700px; }
    .circle-table-scroll { overflow-x: auto; width: 100%; }
    .circle-table th, .circle-table td { white-space: nowrap; }
}
@media (max-width: 768px) {
    .circle-table th, .circle-table td { font-size: 12px; }
}

/* --- コピー・評価・リンクボタン --- */
.copy-info-btn, .eval-btn, .circle-link-btn {
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.copy-info-btn {
    background: #fff;
    color: #3200FF;
    border: 1px solid #3200FF;
    padding: 2px 8px;
    margin: 0 2px;
}
.copy-info-btn:hover {
    background: #3200FF;
    color: #fff;
}
.eval-btn {
    background: #eee;
    color: #3200FF;
    border: 1px solid #bbb;
    padding: 2px 8px;
    margin-left: 4px;
}
.eval-btn[data-state="予"] {
    background: #fffbe6;
    color: #e6a700;
    border: 1px solid #e6a700;
}
.eval-btn[data-state="済"] {
    background: #e6ffe6;
    color: #009900;
    border: 1px solid #009900;
}
.circle-link-btn {
    display: inline-block;
    background: #3200FF;
    color: #fff;
    padding: 4px 10px;
    border: none;
    margin: 0 2px;
    text-decoration: none;
    font-size: 13px;
}
.circle-link-btn:hover {
    background: #0000FF;
}
.circle-content-note {
    display: inline-block;
    font-size: 11px;
    color: #777;
    margin-top: 2px;
}
@media (max-width: 768px) {
    .circle-content-note {
        font-size: 10px;
    }
}
.gohdo-badge-link {
    display: inline-block;
    font-size: 11px;
    padding: 1px 6px;
    margin: 4px 0 0 0;
    background: #ff6600;
}
.gohdo-badge-link:hover {
    background: #cc5200;
}

/* --- 情報テキスト --- */
.info-text {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .info-text {
        font-size: 13px;
    margin-top: 8px;
    }
}

/* --- おしながき・告知ツイート一覧 --- */
.tweet-embed-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 10px;
}
.tweet-embed-item {
    width: 19.2%;
    min-width: 200px;
    max-width: 100%;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(50,0,255,0.06);
    padding: 6px 6px 2px 6px;
    margin-bottom: 6px;
    box-sizing: border-box;
}
.tweet-embed-caption {
    font-size: 14px;
    font-weight: bold;
    color: #3200FF;
    margin-bottom: 4px;
    word-break: break-all;
}
@media (max-width: 1200px) {
    .tweet-embed-item { width: 24.5%; }
}
@media (max-width: 900px) {
    .tweet-embed-list { flex-direction: column; gap: 14px 0; }
    .tweet-embed-item { width: 98vw; min-width: 0; }
}
@media (max-width: 768px) {
    .tweet-embed-list {
        gap: 8px 0;
    padding: 0;
    }
    .tweet-embed-item {
        width: 99vw;
    min-width: 0;
    max-width: 100vw;
    margin-bottom: 6px;
    padding: 4px 1vw 1px 1vw;
    border-radius: 0;
    box-shadow: none;
    }
    .tweet-embed-caption {
        font-size: 12px;
    margin-bottom: 2px;
    padding-left: 2px;
    padding-right: 2px;
    }
    .tweet-embed-group-title {
        font-size: 16px;
    margin: 22px 0 5px 0;
    scroll-margin-top: 65px;
    }
    h2 {
        font-size: 16px;
    margin-top: 8px;
    }
}

/* --- グループタイトル --- */
.tweet-embed-group-title {
    font-size: 18px;
    color: #3200FF;
    font-weight: bold;
    margin: 30px 0 8px 0;
    scroll-margin-top: 90px;
}

/* --- サークルリストリンクグループ --- */
.circlelist-link-group {
    margin-bottom: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .circlelist-link-group {
        flex-direction: column;
    gap: 6px;
    align-items: stretch;
    }
    .circlelist-link-group .circle-link-btn {
        width: 100%;
    box-sizing: border-box;
    text-align: center;
    font-size: 15px !important;
    }
}

/* --- アンカー位置調整 --- */
.circlelist-section-anchor,
.circlelist-row-anchor {
    scroll-margin-top: 90px;
}

/* --- サークル名リンクの色・下線 --- */
.tweet-embed-caption a {
    color: #3200FF;
    text-decoration: underline;
}

/* --- info-warningクラス --- */
.info-warning {
    background: #fffbe6;
    color: #b36b00;
    border: 1.5px solid #ffe066;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: bold;
    text-align: left;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.08);
    letter-spacing: 0.01em;
}
@media (max-width: 768px) {
    .info-warning {
        font-size: 12.5px;
    padding: 6px 2vw;
    margin-bottom: 8px;
    background: #fffbe6;
    color: #b36b00;
    border-radius: 0;
    border-width: 1px;
    box-shadow: none;
    text-align: left;
    }
}