/*
Theme Name: CrossLink Theme
Theme URI: https://example.com/crosslink-theme
Author: Your Name
Description: 医療系国家試験 過去問DBサイト用の最小テーマ
Version: 1.0.0
Text Domain: crosslink-theme
*/

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: #f5f7fa;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* === Layout === */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
}

.site-header .site-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
}

.site-title a {
    color: #333;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.site-nav a {
    color: #333;
    font-weight: 500;
}

.site-main {
    padding: 30px 0;
}

.site-footer {
    background: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer a {
    color: #fff;
}

/* === Content === */
.content-wrapper {
    display: flex;
    gap: 30px;
}

.content-main {
    flex: 1;
    min-width: 0;
}

.content-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* === Cards === */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

/* === Ad Slots === */
.ad-slot {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    color: #999;
    margin: 20px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-slot-sidebar {
    margin-bottom: 20px;
}

/* === Responsive === */
@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }

    .content-sidebar {
        width: 100%;
    }
}
