/*
Theme Name: Misora SEO Theme
Theme URI: http://example.com
Author: あなたの名前
Description: 学習用に作成したオリジナルテーマ
Version: 1.0
*/


/* ===== 基本設定 ===== */
:root {
    --ink: #1f2937;
    /* 文字色 */
    --muted: #6b7280;
    /* 補助文字 */
    --brand: #0b7db3;
    /* アクセント */
    --bg: #ffffff;
    /* 背景 */
    --line: #e5e7eb;
    /* 罫線 */
    --container: 1080px;
    /* 横幅 */
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.8;
}

a {
    color: var(--brand);
}

/* 共通レイアウト */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 48px 0;
}

.section-ttl {
    font-size: clamp(20px, 3.4vw, 28px);
    margin: 0 0 16px;
}

/* ===== ヘッダー ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
}

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.brand-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}

.brand-sub {
    font-size: 12px;
    color: var(--muted);
}

/* ナビ */
.site-nav .nav-list {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    text-decoration: none;
    color: var(--ink);
    padding: 10px 6px;
    border-radius: 8px;
}

.site-nav a:hover {
    background: var(--line);
}

/* ===== ヒーロー ===== */
.hero {
    padding: 56px 0;
    background: linear-gradient(180deg, #f4fafe, #ffffff);
}

.hero-sub {
    margin: 0;
    color: var(--muted);
}

.hero-ttl {
    margin: 6px 0 18px;
    font-size: clamp(28px, 5vw, 40px);
    color: var(--brand);
}

.btn {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid var(--brand);
    color: var(--brand);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
}

.btn:hover {
    background: var(--brand);
    color: #fff;
}

/* ===== カード一覧 ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width:900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width:600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-thumb {
    aspect-ratio: 16/9;
    background: #f3f4f6;
    display: grid;
    place-items: center;
    font-size: 12px;
    color: var(--muted);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 14px;
}

.card-title {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.4;
}

.card-date {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.card-excerpt {
    margin: 0;
    color: #374151;
}

/* ===== フッター ===== */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 0;
    margin-top: 40px;
    text-align: center;
}

.copy {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}