/*
Theme Name: Shiroito Column
Theme URI: https://shiroito-inc.com/column/
Author: Shiroito Inc.
Description: 株式会社Shiroito オウンドメディア「コラム」専用テーマ。shiroito-inc.com のTOPページと同じデザイントーンを踏襲。
Version: 1.0
Text Domain: shiroito-column
*/

/* --- 基本設定（TOPページと共通） --- */
:root {
    --primary: #1c2c5b;
    --primary-soft: #4a5a8a;
    --white: #FFFFFF;
    --bg-light: #f7f8fb;
    --line: #e2e6ee;
    --ink-muted: #6b7290;
    --good: #0c8a3e;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Yu Gothic Medium", "Yu Gothic", YuGothic, "游ゴシック体", "游ゴシック", sans-serif; background-color: var(--white); color: var(--primary); line-height: 1.8; overflow-x: hidden; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; }
a { color: inherit; }

/* --- ヘッダー --- */
header { position: fixed; width: 100%; top: 0; z-index: 1000; background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(6px); border-bottom: 1px solid var(--line); }
.header-content { padding: 0 5%; display: flex; justify-content: space-between; align-items: center; height: 76px; max-width: 1200px; margin: 0 auto; }
.logo-group { display: flex; align-items: center; gap: 12px; }
.logo-group .logo img { height: 36px; display: block; }

nav { display: flex; align-items: center; }
nav a { text-decoration: none; color: var(--primary); font-weight: 500; font-size: 0.85rem; margin-left: 28px; transition: opacity 0.2s; }
nav a:hover { opacity: 0.6; }

.nav-btn-contact {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
}
.nav-btn-contact:hover { opacity: 0.85; }

@media (max-width: 768px) {
    nav a:not(.nav-btn-contact) { display: none; }
    .header-content { justify-content: space-between; height: 64px; }
    .logo-group .logo img { height: 30px; }
    .nav-btn-contact { padding: 8px 16px; font-size: 0.78rem; }
}

/* --- セクション基本 --- */
section { padding: 150px 5% 110px; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 150px 5% 110px; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.eyebrow { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; color: var(--primary); opacity: 0.45; margin-bottom: 14px; text-transform: uppercase; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.15rem); font-weight: 700; }
.section-desc { margin-top: 14px; font-size: 0.95rem; color: var(--ink-muted); max-width: 480px; }

footer { background: var(--primary); color: #aab3d6; text-align: center; padding: 50px 0; font-size: 0.78rem; }
footer a { color: #aab3d6; margin: 0 10px 14px; display: inline-block; }

/* --- 記事一覧（カードグリッド） --- */
#column-list { background: var(--bg-light); min-height: 60vh; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.post-card { padding: 34px 30px; background: var(--white); text-decoration: none; color: inherit; display: block; }
.post-card:hover { background: var(--bg-light); }
.post-card-thumb { margin-bottom: 20px; border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-eyebrow { display: block; font-size: 0.72rem; font-weight: 700; color: var(--primary); opacity: 0.5; letter-spacing: 0.08em; margin-bottom: 14px; text-transform: uppercase; }
.post-card h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.6; margin-bottom: 12px; }
.post-card .excerpt { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 18px; }
.post-card .post-date { font-size: 0.75rem; color: var(--ink-muted); }
.empty-notice { font-size: 0.95rem; color: var(--ink-muted); padding: 40px 0; }

.pagination { margin-top: 50px; display: flex; justify-content: center; gap: 10px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-size: 0.85rem; font-weight: 700; color: var(--primary); background: var(--white); }
.pagination .page-numbers.current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* --- 記事詳細 --- */
#column-single { padding-top: 0; }
.post-title { font-size: clamp(1.5rem, 4.4vw, 2.1rem); font-weight: 700; line-height: 1.6; margin-bottom: 14px; }
.post-meta { font-size: 0.82rem; color: var(--ink-muted); }
.post-thumb { margin: 40px 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.entry-content { font-size: 1rem; }
.entry-content p { margin-bottom: 1.6em; }
.entry-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2.4em 0 1em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.entry-content h2:first-child { padding-top: 0; border-top: none; }
.entry-content h3 { font-size: 1.15rem; font-weight: 700; margin: 2em 0 0.8em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.6em 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content img { border-radius: 8px; margin: 1.6em 0; display: block; }
.entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { border-left: 3px solid var(--primary); padding-left: 20px; color: var(--ink-muted); margin: 1.6em 0; }
.entry-content strong { font-weight: 700; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.6em; font-size: 0.9rem; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }

.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 30px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.post-nav-link { text-decoration: none; font-size: 0.85rem; font-weight: 700; color: var(--primary); max-width: 45%; }
.post-nav-link:hover { opacity: 0.7; }
.post-nav-link.next { margin-left: auto; text-align: right; }

/* --- 診断LP導線CTA --- */
#diagnosis-cta { background: var(--primary); color: var(--white); text-align: center; padding: 90px 5%; }
#diagnosis-cta .eyebrow { color: #aab3d6; opacity: 1; }
#diagnosis-cta h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); font-weight: 700; margin-bottom: 16px; }
#diagnosis-cta p { color: #cbd2eb; font-size: 0.92rem; max-width: 520px; margin: 0 auto 34px; }
.btn { display: inline-block; padding: 15px 34px; border-radius: 6px; font-weight: 700; text-decoration: none; background: var(--white); color: var(--primary); font-size: 1rem; }
.btn:hover { opacity: 0.9; }

@media (max-width: 600px) {
    section { padding: 130px 5% 90px; }
    .container-narrow { padding: 130px 5% 90px; }
}
