/* ============================================================
   お受験ラボ - Article Stylesheet  v1.1.0
   WordPress に投稿された記事のスタイル定義
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@600;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ── ラッパー ─────────────────────────────── */
.ojl-article {
    font-family: 'Noto Sans JP', -apple-system, 'Helvetica Neue', sans-serif;
    font-size: 15px;
    line-height: 1.9;
    color: #1c1917;
    word-break: break-word;
    max-width: 860px;
}

/* ── メタバー ─────────────────────────────── */
.ojl-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #78716c;
    background: #f4f1eb;
    padding: 5px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 3px solid #c0392b;
}

/* ── 見出し H1 ────────────────────────────── */
.ojl-article h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.5;
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #1c1917;
    color: #1c1917;
    letter-spacing: 0.02em;
}

/* ── 見出し H2 ────────────────────────────── */
.ojl-article h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 17px;
    font-weight: 700;
    margin: 40px 0 16px;
    padding: 12px 16px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 5px;
    letter-spacing: 0.03em;
    position: relative;
}
.ojl-article h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #c0392b;
    border-radius: 5px 0 0 5px;
}

/* ── 見出し H3 ────────────────────────────── */
.ojl-article h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 22px 0 9px;
    padding: 8px 12px;
    border-left: 3px solid #c0392b;
    background: #faf9f7;
    border-radius: 0 4px 4px 0;
    color: #1c1917;
}

/* ── 段落 ────────────────────────────────── */
.ojl-article p {
    margin: 0 0 14px;
    color: #292524;
}

/* ── リード文 ─────────────────────────────── */
.ojl-lead {
    font-size: 15px;
    line-height: 1.95;
    color: #44403c !important;
    background: #faf9f7;
    border: 1px solid #e0d9cc;
    border-radius: 6px;
    padding: 16px 20px !important;
    margin-bottom: 8px !important;
}

/* ── キーテイクアウェイ ──────────────────────── */
.ojl-key-takeaway {
    background: linear-gradient(135deg, #fef6ee 0%, #fffbeb 100%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 18px 22px;
    margin-bottom: 16px;
}
.ojl-key-takeaway-hd {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 10px !important;
}
.ojl-key-takeaway ul {
    margin: 0 !important;
    padding-left: 20px !important;
}
.ojl-key-takeaway li {
    font-size: 14px;
    font-weight: 500;
    color: #78350f;
    margin-bottom: 4px;
    line-height: 1.7;
}
.ojl-key-takeaway li::marker {
    color: #f59e0b;
}

/* ── 目次 ────────────────────────────────── */
.ojl-toc {
    background: #f4f1eb;
    border: 1px solid #d4cfc5;
    border-top: 3px solid #1a1a2e;
    border-radius: 5px;
    padding: 18px 22px;
    margin: 28px 0 32px;
}
.ojl-toc-hd {
    font-weight: 700;
    font-size: 13px;
    color: #44403c;
    margin: 0 0 10px !important;
    letter-spacing: 0.06em;
}
.ojl-toc ol {
    margin: 0;
    padding-left: 20px;
    counter-reset: toc;
}
.ojl-toc li {
    font-size: 13px;
    color: #1d4ed8;
    margin-bottom: 5px;
    line-height: 1.6;
}
.ojl-toc a {
    color: inherit;
    text-decoration: none;
}
.ojl-toc a:hover {
    text-decoration: underline;
}

/* ── データハイライトボックス ──────────────── */
.ojl-data-highlight {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0 20px;
}
.ojl-data-item {
    flex: 1;
    min-width: 120px;
    background: #fff;
    border: 1px solid #e0d9cc;
    border-top: 3px solid #c0392b;
    border-radius: 6px;
    padding: 12px 14px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.ojl-data-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #78716c;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.ojl-data-val {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    font-weight: 900;
    color: #c0392b;
    line-height: 1.2;
}
.ojl-data-sub {
    display: block;
    font-size: 10px;
    color: #a8a29e;
    margin-top: 3px;
}

/* ── テーブル ─────────────────────────────── */
.ojl-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 20px;
    font-size: 13.5px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.ojl-article thead tr {
    background: #1a1a2e;
    color: #fff;
}
.ojl-article thead th {
    padding: 11px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.ojl-article tbody tr:nth-child(even) td {
    background: #faf9f7;
}
.ojl-article tbody tr:hover td {
    background: #f0ede6;
    transition: background 0.1s;
}
.ojl-article td {
    padding: 10px 14px;
    border-bottom: 1px solid #ede8df;
    vertical-align: top;
    line-height: 1.65;
}
.ojl-article tbody tr:last-child td {
    border-bottom: none;
}
.ojl-article td strong {
    color: #1c1917;
}

/* ── リスト ───────────────────────────────── */
.ojl-article ul {
    margin: 8px 0 14px;
    padding-left: 22px;
}
.ojl-article ol {
    margin: 8px 0 14px;
    padding-left: 24px;
}
.ojl-article li {
    margin-bottom: 7px;
    line-height: 1.78;
}
.ojl-article ul li::marker {
    color: #c0392b;
}

/* ── ポイントボックス ─────────────────────── */
.ojl-point-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #1d4ed8;
    border-radius: 4px;
    padding: 14px 18px;
    margin: 18px 0;
    font-size: 14px;
}
.ojl-point-box p:last-child {
    margin-bottom: 0 !important;
}

/* ── 比較ボックス ─────────────────────────── */
.ojl-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 16px 0;
}
.ojl-compare-col {
    border: 1px solid #e0d9cc;
    border-radius: 6px;
    overflow: hidden;
}
.ojl-compare-hd {
    background: #1a1a2e;
    color: #fff;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
.ojl-compare-hd.alt {
    background: #44403c;
}
.ojl-compare-body {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.7;
}

/* ── まとめセクション ─────────────────────── */
.ojl-summary {
    background: #faf9f7;
    border: 2px solid #1a1a2e;
    border-radius: 8px;
    padding: 22px 26px;
    margin-top: 40px;
}
.ojl-summary-hd {
    font-family: 'Noto Serif JP', serif;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 14px !important;
    padding-bottom: 10px;
    border-bottom: 1px solid #d4cfc5;
    color: #1c1917;
}
.ojl-summary ul {
    margin: 0 0 16px;
}
.ojl-summary li {
    margin-bottom: 8px;
}
.ojl-closing {
    background: #1a1a2e;
    color: #f4f1eb !important;
    padding: 16px 20px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.8;
    margin: 14px 0 0 !important;
}

/* ── レスポンシブ ─────────────────────────── */
@media (max-width: 640px) {
    .ojl-article h1          { font-size: 19px; }
    .ojl-article h2          { font-size: 14px; padding: 9px 12px; }
    .ojl-article h3          { font-size: 13.5px; }
    .ojl-data-highlight      { gap: 8px; }
    .ojl-data-item           { min-width: 100px; }
    .ojl-data-val            { font-size: 17px; }
    .ojl-article table       { font-size: 12px; }
    .ojl-article thead th,
    .ojl-article td          { padding: 7px 9px; }
    .ojl-compare-grid        { grid-template-columns: 1fr; }
    .ojl-toc                 { padding: 14px 16px; }
    .ojl-faq-item            { padding: 14px 16px; }
    .ojl-related-list li     { font-size: 12px; }
    .ojl-voice-item          { padding: 12px 14px; gap: 10px; }
    .ojl-voice-text          { font-size: 13px; }
    .ojl-anxiety-q,
    .ojl-anxiety-a           { padding: 12px 14px; }
    .ojl-comment-cta         { padding: 16px 18px; }
}

/* ── FAQセクション（構造化データ対応） ───────── */
.ojl-faq {
    margin-top: 40px;
}
.ojl-faq-item {
    background: #fff;
    border: 1px solid #e0d9cc;
    border-left: 4px solid #c0392b;
    border-radius: 0 6px 6px 0;
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: box-shadow 0.15s ease;
}
.ojl-faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ojl-faq-q {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px !important;
    line-height: 1.6;
    position: relative;
    padding-left: 2px;
}
.ojl-faq-a {
    font-size: 14px;
    color: #44403c;
    margin: 0 !important;
    line-height: 1.85;
    padding-left: 2px;
}

/* ── 関連記事セクション ─────────────────────── */
.ojl-related {
    margin-top: 40px;
    background: #f4f1eb;
    border: 1px solid #d4cfc5;
    border-top: 3px solid #1a1a2e;
    border-radius: 6px;
    padding: 22px 26px;
}
.ojl-related h2 {
    font-size: 16px !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    background: none !important;
    color: #1a1a2e !important;
    border-radius: 0 !important;
}
.ojl-related h2::before {
    display: none !important;
}
.ojl-related p {
    font-size: 13px;
    color: #57534e;
    margin-bottom: 14px;
}
.ojl-related-list {
    margin: 0 0 12px !important;
    padding-left: 0 !important;
    list-style: none !important;
}
.ojl-related-list li {
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e0d9cc;
    border-radius: 5px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.6;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ojl-related-list li:hover {
    border-color: #c0392b;
    box-shadow: 0 1px 4px rgba(192,57,43,.1);
}
.ojl-related-list li strong {
    color: #1a1a2e;
}
.ojl-related-list li::marker {
    content: none;
}
.ojl-related-note {
    font-size: 11px !important;
    color: #a8a29e !important;
    margin-bottom: 0 !important;
}

/* ── 免責事項 ────────────────────────────────── */
.ojl-disclaimer {
    font-size: 12.5px;
    color: #78716c;
    border-top: 1px solid #e0d9cc;
    margin-top: 2em;
    padding-top: 1em;
    line-height: 1.8;
}

/* ── E-E-A-Tフッター ────────────────────────── */
.ojl-eeat {
    font-size: 12px;
    color: #57534e;
    background: #faf9f7;
    border: 1px solid #e0d9cc;
    border-radius: 5px;
    padding: 12px 16px;
    margin-top: 12px;
    line-height: 1.7;
}

/* ── SNS口コミセクション ─────────────────────── */
.ojl-sns {
    margin-top: 40px;
}
.ojl-voice-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e0d9cc;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: box-shadow 0.15s ease;
}
.ojl-voice-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.ojl-voice-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f1eb;
    border-radius: 50%;
}
.ojl-voice-body {
    flex: 1;
    min-width: 0;
}
.ojl-voice-text {
    font-size: 14px;
    line-height: 1.8;
    color: #292524;
    margin: 0 0 6px !important;
    position: relative;
}
.ojl-voice-text::before {
    content: '"';
    font-size: 28px;
    font-family: 'Noto Serif JP', serif;
    color: #c0392b;
    opacity: 0.3;
    position: absolute;
    left: -4px;
    top: -8px;
}
.ojl-voice-meta {
    font-size: 11px;
    color: #a8a29e;
    margin: 0 !important;
    font-style: italic;
}

/* ── 保護者の不安セクション ───────────────────── */
.ojl-anxiety {
    margin-top: 40px;
}
.ojl-anxiety-item {
    background: #fff;
    border: 1px solid #e0d9cc;
    border-radius: 8px;
    margin-bottom: 14px;
    overflow: hidden;
}
.ojl-anxiety-q {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    background: #fef6ee;
    border-bottom: 1px solid #fde8d0;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    line-height: 1.7;
}
.ojl-anxiety-a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    font-size: 13.5px;
    color: #292524;
    line-height: 1.85;
}
.ojl-anxiety-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

/* ── コメント促進CTA ─────────────────────────── */
.ojl-comment-cta {
    margin-top: 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    padding: 22px 26px;
    color: #f4f1eb;
}
.ojl-comment-cta-hd {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px !important;
    color: #fff !important;
}
.ojl-comment-cta-text {
    font-size: 13px;
    line-height: 1.85;
    margin: 0 !important;
    color: #d4cfc5 !important;
}

/* ── 読了時間 ────────────────────────────────── */
.ojl-read-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #a8a29e;
    margin-left: 12px;
}
