:root {
    /* 色 */
    --color-primary: #5dd5e8; /* メインカラー */
    --color-bg: #f5f7fa; /* 背景色 */
    --color-panel: white; /* パネルカラー */
    --color-footer: #1b3a4b; /* フッターカラー */

    --color-board: #f3d9a4; /* 将棋盤の背景色 */
    --color-board-frame: #a66a3f; /* 将棋盤の外枠色 */
    --color-board-outside-line: #5c3b1e; /* 将棋盤の外枠境界線色 */

    --color-hover: color-mix(in srgb, var(--color-primary) 30%, white); /* ホバー用カラー */

    --color-text-dark: #333; /* 文字色（濃色） */
    --color-text-little-dark: color-mix(in srgb, var(--color-text-dark) 70%, white);
    --color-text-pale: white; /* 文字色（淡色） */

    /* その他の色 */
    --red: #E85D6D;
    --orange: #E89A5D;
    --yellow: #E8D35D;
    --green: #5DE88B;
    --purple: #9A5DE8;
    --pink: #E85DAF;
    --gray: #ddd;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-dark);
}

header h1 {

    margin: 0;
}

/* ================= 汎用素材 ================= */
/* ボタン */
button {
    padding: 6px 12px;
    background: white;
    border: 2px solid var(--color-primary);
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    opacity: 0.85;
}

/* リンクカード */
.link-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text-dark);
    background: white;
    transition: background 0.2s;
}

.link-card-thumb {
    height: 120px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.link-card:hover {
    background: var(--color-hover);
}

.link-card-text {
    flex: 1;
    min-width: 0;
}

.link-card-name {
    margin-bottom: 6px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.link-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;

    margin-bottom: 8px;
}

.link-card-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-little-dark);

    margin-bottom: 12px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}
