/*
Theme Name: Singularity Liver Agency Child
Theme URI: https://singularity-connection.com/liver/
Description: Singularity Liver Agency の子テーマ。特徴セクション（F）と成功事例セクション（B）をビジュアル強化版に差し替え。
Author: Singularity Connection
Author URI: https://singularity-connection.com/
Template: code_sandbox_light_d38ef576_1762312845
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: singularity-liver-child
*/

/* =====================================================
   B/F セクション強化スタイル
   （sc- プレフィックスで親テーマとの衝突を回避）
===================================================== */

/* ---------- 共通 ---------- */
.sc-section { padding: 80px 0; position: relative; }
.sc-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.sc-sec-head { text-align: center; margin-bottom: 56px; }
.sc-eyebrow {
    display: inline-block;
    font-family: "Cormorant Garamond","Noto Serif JP",serif;
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: #d4af37;
    margin-bottom: 12px;
}
.sc-sec-head h2 {
    font-family: "Cormorant Garamond","Noto Serif JP","Yu Mincho",serif;
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 16px;
}
.sc-rule {
    width: 60px;
    height: 1px;
    background: #d4af37;
    margin: 16px auto;
    border: 0;
}
.sc-sec-head p { color: #a7a7a7; }

/* ---------- F: 特徴3本柱 ---------- */
.sc-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.sc-feature {
    position: relative;
    min-height: 420px;
    border-radius: 6px;
    overflow: hidden;
    background: #15151a;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 28px 30px;
    border: 1px solid rgba(212, 175, 55, 0.18);
}
.sc-feature__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 0.6s ease;
    filter: saturate(0.85);
}
.sc-feature:hover .sc-feature__img { transform: scale(1.1); }
.sc-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10,10,11,0.35) 0%, rgba(10,10,11,0.82) 60%, rgba(10,10,11,0.95) 100%);
}
.sc-feature__num {
    font-family: "Cormorant Garamond", serif;
    color: #d4af37;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    margin-bottom: 12px;
}
.sc-feature h3 {
    font-family: "Cormorant Garamond","Noto Serif JP",serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.sc-feature p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 0;
}
.sc-feature__deco {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 72px;
    height: 72px;
    color: #d4af37;
    opacity: 0.9;
}
.sc-feature__deco svg { width: 100%; height: 100%; }
.sc-feature__badge {
    position: absolute;
    top: 22px;
    left: 22px;
    width: 48px;
    height: 48px;
    border: 1px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Cormorant Garamond", serif;
    color: #d4af37;
    font-size: 1.1rem;
    background: rgba(10,10,11,0.6);
}

/* ---------- B: 成功事例 ---------- */
.sc-stories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.sc-story {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #15151a;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.sc-story__hero {
    position: relative;
    height: 240px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.sc-story__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,11,0.25) 0%, rgba(10,10,11,0.75) 75%, rgba(21,21,26,1) 100%);
}
.sc-story__hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sc-story__tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #d4af37 0%, #f7e7ce 50%, #d4af37 100%);
    color: #0a0a0b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: 999px;
}
.sc-story h3 {
    font-family: "Cormorant Garamond","Noto Serif JP",serif;
    color: #fff;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0.02em;
    margin: 0;
}
.sc-story__body { padding: 28px 32px 32px; }
.sc-story__body > p {
    color: #a7a7a7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* growth chart */
.sc-chart-wrap {
    background: rgba(212,175,55,0.04);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 6px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: center;
    margin: 20px 0 28px;
}
.sc-chart__stat .sc-before {
    color: #888;
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.02em;
}
.sc-chart__stat .sc-before-label {
    color: #a7a7a7;
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.sc-chart__stat .sc-before-num {
    font-size: 1.3rem;
    color: #888;
    font-family: "Cormorant Garamond", serif;
}
.sc-chart__stat .sc-after {
    color: #d4af37;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.02em;
}
.sc-chart__stat .sc-arrow {
    color: #b8941f;
    font-size: 0.8rem;
    margin: 4px 0;
}
.sc-chart__stat .sc-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #a7a7a7;
    text-transform: uppercase;
    margin-top: 8px;
}

/* milestones */
.sc-milestones {
    position: relative;
    padding-left: 24px;
    margin-top: 24px;
}
.sc-milestones::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, transparent, #d4af37 20%, #d4af37 80%, transparent);
}
.sc-milestone { position: relative; padding: 0 0 14px 0; }
.sc-milestone:last-child { padding-bottom: 0; }
.sc-milestone::before {
    content: "";
    position: absolute;
    left: -23px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d4af37;
    box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
}
.sc-milestone__time {
    font-family: "Cormorant Garamond","Noto Serif JP",serif;
    color: #d4af37;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}
.sc-milestone__text { color: #efefef; font-size: 0.95rem; margin: 0; }
.sc-milestone__highlight { color: #d4af37; font-weight: 700; }

/* strengths callout */
.sc-strengths {
    margin-top: 28px;
    padding: 20px 24px;
    background: rgba(212,175,55,0.05);
    border-left: 2px solid #d4af37;
    border-radius: 4px;
}
.sc-strengths h4 {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #d4af37;
    margin: 0 0 12px;
}
.sc-strengths ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.sc-strengths li {
    color: #efefef;
    font-size: 0.9rem;
    position: relative;
    padding-left: 18px;
}
.sc-strengths li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 1px;
    background: #d4af37;
}

/* Section darker background for B/F */
body .sc-section { background: #0a0a0b; }

/* Fix: hide the old section that parent theme renders */
/* (We replace via front-page.php override, so this isn't strictly needed) */

/* Responsive */
@media (max-width: 900px) {
    .sc-features,
    .sc-stories { grid-template-columns: 1fr; }
    .sc-chart-wrap { grid-template-columns: 1fr; gap: 16px; }
    .sc-feature { min-height: 360px; }
}

/* =====================================================
   Column (single post) — 黒文字を暗背景に合わせて修正
===================================================== */

/* 記事タイトル */
.blog-post .post-title,
.single .post-title,
.post-type-post .post-title { color: #f5f5f5 !important; }

/* 本文の段落（JIN の sa27 ブロックと素の p） */
.blog-post .sa27,
.blog-post > p,
.blog-post .cta-dual { color: rgba(255,255,255,0.88) !important; }

/* 素の strong・リンクは見出し色合わせで金寄りに */
.blog-post .sa27 strong,
.blog-post > p strong,
.blog-post .cta-dual strong { color: #f2c94c !important; }

/* 本文リンクはゴールド下線 */
.blog-post .sa27 a,
.blog-post > p a { color: #d4af37 !important; text-decoration: underline; }

/* コールアウト箱 (.card / .check / .danger / .warn) は白・淡色背景のため
   既存の黒文字のまま維持（上書きしない） */

/* h2/h3 等の見出しが黒のままなら少し明度を上げる */
.blog-post h2,
.blog-post h3,
.blog-post h4 { color: #f5f5f5 !important; }

/* ただしコールアウト内の見出しは既存のまま残す */
.blog-post .card h2, .blog-post .card h3, .blog-post .card h4,
.blog-post .check h2, .blog-post .check h3, .blog-post .check h4,
.blog-post .danger h2, .blog-post .danger h3, .blog-post .danger h4,
.blog-post .warn h2, .blog-post .warn h3, .blog-post .warn h4 { color: #222 !important; }
