/* assets/css/pseo-front.css */

/* ===== 基本レイアウト ===== */
.pseo-page {
    max-width: 100%;
    line-height: 1.8;
}

.pseo-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 1em;
    font-size: 0.85em;
    color: #666;
}

.pseo-breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 0.5em;
}

.pseo-breadcrumb a {
    color: #1a73e8;
    text-decoration: none;
}

.pseo-update-date {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 1.5em;
}

/* ===== リード文 ===== */
.pseo-lead {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5em;
    margin-bottom: 2em;
}

.pseo-language-stats {
    display: flex;
    gap: 1.5em;
    flex-wrap: wrap;
    margin-top: 1em;
}

.pseo-language-stats .stat-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.8em 1.2em;
    text-align: center;
    min-width: 120px;
}

.pseo-language-stats .stat-label {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 0.3em;
}

.pseo-language-stats .stat-value {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

/* ===== 目次 ===== */
.pseo-toc {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5em;
    margin-bottom: 2em;
}

.pseo-toc .toc-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #eee;
}

.pseo-toc ol {
    padding-left: 1.5em;
}

.pseo-toc li {
    margin-bottom: 0.4em;
}

.pseo-toc a {
    color: #1a73e8;
    text-decoration: none;
}

/* ===== スクールカード ===== */
.pseo-school-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5em;
    margin-bottom: 1.5em;
    background: #fff;
    position: relative;
    transition: box-shadow 0.2s;
}

.pseo-school-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pseo-rank {
    position: absolute;
    top: -10px;
    left: 15px;
    background: #1a73e8;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
}

.pseo-rank.top-rank {
    background: #f4b400;
    color: #333;
}

.pseo-school-logo img {
    max-width: 150px;
    height: auto;
    margin-bottom: 0.8em;
}

.pseo-school-name {
    font-size: 1.3em;
    margin: 0 0 0.5em;
}

.pseo-school-name a {
    color: #333;
    text-decoration: none;
}

.pseo-school-name a:hover {
    color: #1a73e8;
}

/* ===== 評価 ===== */
.pseo-rating {
    margin-bottom: 0.5em;
}

.pseo-stars {
    color: #f4b400;
    font-size: 1.1em;
    letter-spacing: 2px;
}

.rating-value {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.review-count {
    color: #888;
    font-size: 0.9em;
}

/* ===== タグ ===== */
.pseo-school-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 0.8em;
}

.pseo-school-tags span {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.tag-type {
    background: #e8f0fe;
    color: #1a73e8;
}

.tag-price {
    background: #fce8e6;
    color: #d93025;
}

.tag-free {
    background: #e6f4ea;
    color: #137333;
}

.tag-job {
    background: #fef7e0;
    color: #b06000;
}

/* ===== アフィリエイトCTA ===== */
.pseo-affiliate-cta {
    text-align: center;
    margin: 1.5em 0;
}

.pseo-affiliate-cta .btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.pseo-affiliate-cta .btn-red {
    background: #d93025;
    color: #fff;
}

.pseo-affiliate-cta .btn-red:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217, 48, 37, 0.3);
}

.pseo-affiliate-cta .btn-caption {
    display: block;
    font-size: 0.75em;
    font-weight: normal;
    margin-top: 4px;
    opacity: 0.9;
}

/* ===== メリット・デメリット ===== */
.pseo-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    margin: 1em 0;
}

.pseo-pros {
    background: #e6f4ea;
    border-radius: 8px;
    padding: 1em;
}

.pseo-cons {
    background: #fce8e6;
    border-radius: 8px;
    padding: 1em;
}

.pseo-pros h4,
.pseo-cons h4 {
    margin: 0 0 0.5em;
    font-size: 1em;
}

.pseo-pros ul,
.pseo-cons ul {
    margin: 0;
    padding-left: 1.2em;
}

.pseo-pros li,
.pseo-cons li {
    margin-bottom: 0.3em;
}

/* ===== 比較テーブル ===== */
.pseo-table-responsive {
    overflow-x: auto;
    margin: 1em 0;
}

.pseo-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.pseo-comparison-table th,
.pseo-comparison-table td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.pseo-comparison-table th {
    background: #f8f9fa;
    font-weight: bold;
    white-space: nowrap;
}

.pseo-comparison-table td:first-child {
    text-align: left;
    font-weight: bold;
}

/* ===== 内部リンクグリッド ===== */
.pseo-internal-links {
    margin: 2em 0;
    padding: 1.5em;
    background: #f8f9fa;
    border-radius: 8px;
}

.pseo-internal-links h3 {
    margin: 0 0 1em;
    font-size: 1.1em;
}

.pseo-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.pseo-link-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s;
}

.pseo-link-item:hover {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.pseo-link-icon {
    width: 20px;
    height: 20px;
}

/* ===== クロスリンクマトリクス ===== */
.pseo-cross-matrix {
    margin: 2em 0;
}

.pseo-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

.pseo-matrix-table th,
.pseo-matrix-table td {
    padding: 6px 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.pseo-matrix-table th {
    background: #f0f0f0;
    font-size: 0.85em;
}

/* ===== FAQ ===== */
.pseo-faq .faq-item {
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid #eee;
}

.pseo-faq .faq-item:last-child {
    border-bottom: none;
}

.pseo-faq h3 {
    color: #1a73e8;
    font-size: 1em;
    margin-bottom: 0.5em;
}

/* ===== コース情報テーブル ===== */
.pseo-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.pseo-info-table th {
    background: #f8f9fa;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
    width: 25%;
    font-weight: bold;
}

.pseo-info-table td {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .pseo-pros-cons {
        grid-template-columns: 1fr;
    }

    .pseo-language-stats {
        flex-direction: column;
    }

    .pseo-school-card {
        padding: 1em;
    }

    .pseo-affiliate-cta .btn {
        display: block;
        padding: 12px 20px;
    }
}

/* assets/css/pseo-admin.css — 追加部分 */

/* ===== サイトマップ関連 ===== */
.pseo-sitemap-urls {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px;
    margin: 12px 0;
}

.pseo-sitemap-url {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.pseo-sitemap-url code {
    background: #fff;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    flex: 1;
    word-break: break-all;
}

.pseo-sitemap-list {
    margin: 8px 0;
    padding-left: 20px;
}

.pseo-sitemap-list li {
    margin-bottom: 4px;
}

.pseo-sitemap-list a {
    text-decoration: none;
    color: #2271b1;
}

.pseo-sitemap-list a:hover {
    text-decoration: underline;
}

/* ===== CSVフォーマット表示 ===== */
.pseo-csv-format {
    margin: 16px 0;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pseo-csv-format summary {
    cursor: pointer;
    padding: 4px 0;
    font-weight: 600;
}

.pseo-csv-format summary:hover {
    color: #2271b1;
}

.pseo-format-list {
    margin-top: 12px;
}

.pseo-format-item {
    margin: 12px 0;
}

.pseo-format-item h4 {
    margin: 0 0 4px;
    font-size: 13px;
    color: #1d2327;
}

.pseo-format-item code {
    display: block;
    overflow-x: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    line-height: 1.4;
}

/* ===== エラーハンドリング表示 ===== */
.pseo-error-notice {
    background: #fcf2f2;
    border-left: 4px solid #d63638;
    padding: 12px;
    margin: 12px 0;
}

.pseo-success-notice {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 12px;
    margin: 12px 0;
}

/* ===== モーダルのレスポンシブ改善 ===== */
@media (max-width: 782px) {
    .pseo-modal-content {
        width: 95vw;
        max-height: 90vh;
        margin: 20px auto;
    }
    
    .pseo-modal-large {
        width: 95vw;
    }
    
    .pseo-tabs {
        padding: 0 12px;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .pseo-tab {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .pseo-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .pseo-sitemap-url {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===== デバッグ用スタイル ===== */
.pseo-debug {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin: 8px 0;
}
