/*
Theme Name: Lightning Child ( Ishizen )
Theme URI: https://ishizenkensetsu.com/
Template: lightning
Description: 有限会社 石善建設様向け Lightning 子テーマ。モダン／IT企業ライクなミニマルデザイン。サンセリフ（Inter + Noto Sans JP）、余白多め、カードUI、控えめな影と角丸を採用。
Author: Ishizen Kensetsu
Author URI: https://ishizenkensetsu.com/
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lightning-child
*/

/* ===========================================================
 * 1. デザイントークン
 *    モダン・IT企業ライク：モノトーン基調＋アクセント1色
 * =========================================================== */
:root {
    /* カラー：ニュートラルなグレースケール＋ティール系アクセント */
    --ish-bg:           #ffffff;
    --ish-bg-soft:      #f7f8fa;
    --ish-bg-mute:      #eef0f4;
    --ish-border:       #e5e7eb;
    --ish-text:         #0f172a;     /* slate-900 */
    --ish-text-soft:    #475569;     /* slate-600 */
    --ish-text-mute:    #94a3b8;     /* slate-400 */
    --ish-accent:       #0ea5e9;     /* sky-500：清潔感のあるブルー */
    --ish-accent-dark:  #0284c7;
    --ish-accent-soft:  #e0f2fe;

    /* タイポ：英文Inter＋和文Noto Sans JP（モダンITの定番） */
    --ish-font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
                     "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
                     "Yu Gothic", "Meiryo", sans-serif;
    --ish-font-display: "Inter", "Noto Sans JP", sans-serif;

    /* 角丸・影・余白 */
    --ish-radius-sm: 6px;
    --ish-radius:    10px;
    --ish-radius-lg: 16px;
    --ish-shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
    --ish-shadow:    0 2px 4px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.08);
    --ish-shadow-lg: 0 12px 32px rgba(15,23,42,.10);
}

/* ===========================================================
 * 2. ベース
 * =========================================================== */
body {
    font-family: var(--ish-font-sans);
    color: var(--ish-text);
    background: var(--ish-bg);
    line-height: 1.8;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--ish-accent);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--ish-accent-dark); }

/* ===========================================================
 * 3. 見出し（ウェイト・字間で「らしさ」を出す）
 * =========================================================== */
h1, h2, h3, h4, .site-title {
    font-family: var(--ish-font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--ish-text);
}

h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }

.entry-content h2 {
    margin-top: 3em;
    padding-bottom: 0.5em;
    position: relative;
}
.entry-content h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 48px; height: 3px;
    background: var(--ish-accent);
    border-radius: 2px;
}

.entry-content h3 {
    margin-top: 2.4em;
    color: var(--ish-text);
}

/* ===========================================================
 * 4. ヘッダー／ナビ
 * =========================================================== */
.site-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--ish-border);
}
.site-header-logo .site-title a {
    color: var(--ish-text);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.global-nav-list > li > a {
    font-weight: 500;
    color: var(--ish-text-soft);
    transition: color .2s ease;
}
.global-nav-list > li > a:hover {
    color: var(--ish-text);
}

/* ===========================================================
 * 5. ボタン（モダンなフラット＋わずかな影）
 * =========================================================== */
.btn,
.wp-block-button .wp-block-button__link,
.vk_button-link {
    border-radius: var(--ish-radius) !important;
    padding: 0.85em 1.6em !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease !important;
    box-shadow: var(--ish-shadow-sm);
}

.btn-primary,
.wp-block-button.is-style-btn-primary .wp-block-button__link {
    background-color: var(--ish-text) !important;
    border-color: var(--ish-text) !important;
    color: #fff !important;
}
.btn-primary:hover {
    background-color: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: var(--ish-shadow);
}

.btn-accent,
.wp-block-button.is-style-btn-accent .wp-block-button__link {
    background-color: var(--ish-accent) !important;
    border-color: var(--ish-accent) !important;
    color: #fff !important;
}
.btn-accent:hover {
    background-color: var(--ish-accent-dark) !important;
    transform: translateY(-1px);
    box-shadow: var(--ish-shadow);
}

.btn-outline {
    background: transparent !important;
    border: 1.5px solid var(--ish-border) !important;
    color: var(--ish-text) !important;
}
.btn-outline:hover {
    border-color: var(--ish-text) !important;
    background: var(--ish-bg-soft) !important;
}

/* ===========================================================
 * 6. カードUI（施工事例・サービス・ブログ一覧）
 * =========================================================== */
.vk_post,
.vk_post-card,
.wp-block-latest-posts li,
.card {
    background: var(--ish-bg);
    border: 1px solid var(--ish-border);
    border-radius: var(--ish-radius-lg);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.vk_post:hover,
.vk_post-card:hover,
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ish-shadow-lg);
    border-color: transparent;
}

.vk_post_imgOuter,
.vk_post-card_imgOuter {
    border-radius: 0 !important;
}

/* ===========================================================
 * 7. セクション・コンテナ余白
 * =========================================================== */
.entry-content > * {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.entry-content .alignwide  { max-width: 1100px; }
.entry-content .alignfull  { max-width: none; }

.site-body { padding: clamp(2rem, 6vw, 5rem) 0; }

/* ===========================================================
 * 8. ヒーロー（トップページなどで使える汎用クラス）
 * =========================================================== */
.ish-hero {
    padding: clamp(3rem, 10vw, 7rem) 1.25rem;
    background:
        radial-gradient(1200px 400px at 80% -10%, var(--ish-accent-soft), transparent 60%),
        linear-gradient(180deg, #fff 0%, var(--ish-bg-soft) 100%);
    text-align: left;
}
.ish-hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.6em;
}
.ish-hero p.lead {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--ish-text-soft);
    max-width: 60ch;
    margin-bottom: 1.6em;
}
.ish-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ish-accent);
    margin-bottom: 1em;
}

/* ===========================================================
 * 9. 代表挨拶ページ ─── おしゃれ＆信頼感＆温度感バージョン
 *    （中央寄せ・明朝で格好良く・色は暖色寄りのチャコールへ）
 * =========================================================== */

/* --- 9-0. このページのみ完全1カラム化（画面中央へ）＋ウィジェットエリア非表示 --- */

/* (a) サイドバー／補助領域を消す（Lightningの色々なバージョンに対応） */
.page-greeting #side,
.page-greeting .sub-section,
.page-greeting .sub_column,
.page-greeting aside[role="complementary"],
.page-greeting aside.col-md-4,
.page-greeting [class*="sub-section"],
.page-greeting [class*="subSection"],
.page-greeting [class*="sidebar"],
.page-greeting [id*="sidebar"] {
    display: none !important;
}

/* (b) コンテンツカラムを全幅に拡張（Lightning は col-md-8 / col-lg-8 など） */
.page-greeting .siteContent .container > .row > [class*="col-"],
.page-greeting .siteContent_inner > .row > [class*="col-"],
.page-greeting .row > [class*="col-md-8"],
.page-greeting .row > [class*="col-lg-8"],
.page-greeting #main,
.page-greeting .main-section,
.page-greeting .main_column {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* (c) row 自体を中央配置 */
.page-greeting .container .row,
.page-greeting .siteContent_inner > .row {
    justify-content: center !important;
}

/* (d) アーカイブ／カテゴリー等の「投稿の後」ウィジェットも非表示
       — どのウィジェットエリアにあってもクラス指定で確実に消す */
.page-greeting .widget_archive,
.page-greeting .widget_categories,
.page-greeting .widget_recent_entries,
.page-greeting .widget_recent_comments,
.page-greeting .widget_meta,
.page-greeting .widget_search,
.page-greeting .widget_tag_cloud,
.page-greeting [class*="widget_archive"],
.page-greeting [class*="widget_categories"] {
    display: none !important;
}
/* Lightning の after-content / footer-content widget エリアごと非表示 */
.page-greeting #after-content-widget-area,
.page-greeting .after-content-widget-area,
.page-greeting [class*="after-content"],
.page-greeting [id*="after-content"] {
    display: none !important;
}

/* 明朝フォント＆暖色チャコール変数（このページ内だけのオーバーライド） */
.greeting-page,
.page-greeting .entry-content {
    --ish-serif: "Shippori Mincho B1", "Noto Serif JP", "Yu Mincho",
                 "游明朝", "Hiragino Mincho ProN", serif;
    --warm-ink:    #1c1916;   /* 暖色寄りの濃チャコール */
    --warm-soft:   #4a423b;   /* 暖色寄りのミドルグレー */
    --warm-mute:   #9b938a;   /* 暖色寄りのライトグレー */
    --warm-paper:  #fbf8f3;   /* ほのかなクリーム背景 */
    --warm-accent: #b8541f;   /* 温かみのある朱色（アクセント差し色） */
}

/* --- 9-1. ページヘッダ（Lightning デフォルトの青を上書き） --- */
.page-greeting .page-header,
.page-greeting .lightning-page-body-header {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    color: #fff !important;
    padding: clamp(3rem, 8vw, 5rem) 1rem !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}
.page-greeting .page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 200px at 80% 20%, rgba(14,165,233,.18), transparent 60%),
        radial-gradient(600px 200px at 20% 80%, rgba(14,165,233,.10), transparent 70%);
    pointer-events: none;
}
.page-greeting .page-header > *,
.page-greeting .lightning-page-body-header > * {
    position: relative;
    z-index: 1;
}
.page-greeting .page-header-title,
.page-greeting .lightning-h1 {
    color: #fff !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    font-size: clamp(1.8rem, 3.6vw, 2.6rem) !important;
    text-align: center;
    margin: 0 !important;
    padding-bottom: 0.6em;
    position: relative;
}
.page-greeting .page-header-title::after,
.page-greeting .lightning-h1::after {
    content: "MESSAGE FROM CEO";
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.45em;
    color: var(--ish-accent);
    font-weight: 600;
    margin-top: 1em;
    padding-left: 0.45em; /* 字間の最終文字対応 */
}

/* --- 9-2. 本文ラッパー（ほのかなクリーム背景で温度を出す） --- */
.greeting-page {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem clamp(3rem, 8vw, 5rem);
    position: relative;
    text-align: center;
    background:
        radial-gradient(800px 500px at 50% 0%, var(--warm-paper), transparent 70%);
}

/* --- 9-3. メタ行（SINCE 1946 ── 装飾、中央配置に） --- */
.greeting-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    max-width: 520px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--warm-mute);
}
.greeting-meta .greeting-since {
    color: var(--warm-accent);
    padding: 0.35em 0.95em;
    border: 1.5px solid var(--warm-accent);
    border-radius: 999px;
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    white-space: nowrap;
}
.greeting-meta .greeting-divider-mini {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--warm-mute), transparent);
    max-width: 80px;
}

/* --- 9-4. リード（見出し）：明朝・中央寄せ・上下にショートライン装飾 --- */
.greeting-lead {
    position: relative;
    font-family: var(--ish-serif) !important;
    font-size: clamp(1.5rem, 3.2vw, 2.3rem) !important;
    line-height: 1.85 !important;
    font-weight: 600 !important;
    color: var(--warm-ink) !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    padding: clamp(2rem, 4vw, 2.8rem) 1rem !important;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem) !important;
    max-width: 720px;
    /* 左寄せ装飾を打ち消し */
    border-left: none !important;
    background: none !important;
}
/* 上の中央装飾ライン（縦線） */
.greeting-lead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px; height: 32px;
    background: var(--warm-accent);
}
/* 下の中央装飾ライン（縦線） */
.greeting-lead::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px; height: 24px;
    background: var(--warm-mute);
}

/* --- 9-5. 本文：明朝寄り風のサンセリフ＋中央寄せ＋暖色グレー --- */
.greeting-body {
    max-width: 640px;
    margin: 0 auto;
}
.greeting-body p {
    color: var(--warm-soft) !important;
    margin: 0 auto 1.7em !important;
    line-height: 2.15 !important;
    font-size: 1.02rem !important;
    text-align: center !important;
    letter-spacing: 0.04em;
}
/* 中央寄せでは ::first-letter のドロップキャップは外す（落ち着いた印象） */
.greeting-body p:first-child::first-letter {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin-right: 0;
}
/* キーフレーズのマーカー風ハイライト（暖色寄せ） */
.greeting-highlight {
    font-family: var(--ish-serif);
    font-weight: 700;
    color: var(--warm-ink);
    background: linear-gradient(180deg, transparent 62%, rgba(184, 84, 31, 0.18) 62%);
    padding: 0 0.18em;
    letter-spacing: 0.06em;
}

/* --- 9-6. 装飾罫線（ドット入り、暖色ドット） --- */
.greeting-rule {
    display: flex;
    align-items: center;
    margin: clamp(2.5rem, 5vw, 3.5rem) auto;
    max-width: 480px;
}
.greeting-rule::before,
.greeting-rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ish-border);
}
.greeting-rule .dot {
    display: inline-block;
    width: 7px; height: 7px;
    background: var(--warm-accent);
    border-radius: 50%;
    margin: 0 1.2rem;
    box-shadow: 0 0 0 4px rgba(184, 84, 31, 0.12);
}

/* --- 9-7. 署名：中央寄せ、氏名は明朝で大きく --- */
.greeting-sign {
    margin: clamp(2.5rem, 5vw, 3.5rem) auto 0 !important;
    padding: clamp(2rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 2.4rem) !important;
    max-width: 520px;
    background: linear-gradient(180deg, #fff, var(--warm-paper));
    border: 1px solid var(--ish-border);
    border-radius: var(--ish-radius-lg);
    text-align: center !important;
    position: relative;
    box-shadow: 0 1px 2px rgba(28, 25, 22, .04), 0 8px 24px rgba(28, 25, 22, .06);
}
.greeting-sign::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 48px; height: 2px;
    background: var(--warm-accent);
    transform: translate(-50%, -50%);
    border-radius: 2px;
}
.greeting-sign .greeting-company {
    display: block !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.32em !important;
    color: var(--warm-mute) !important;
    margin-bottom: 1.2em !important;
    font-weight: 600;
    padding-left: 0.32em; /* 字間最終文字補正 */
}
.greeting-sign .role {
    display: block !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.32em !important;
    color: var(--warm-soft) !important;
    margin-bottom: 0.6em !important;
    font-weight: 500;
    padding-left: 0.32em;
}
.greeting-sign .name {
    display: block !important;
    font-family: var(--ish-serif) !important;
    font-size: clamp(1.55rem, 2.6vw, 1.95rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.32em !important;
    color: var(--warm-ink) !important;
    padding-left: 0.32em;
}

/* ===========================================================
 * 10. フォーム（問い合わせ）
 * =========================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    border: 1px solid var(--ish-border) !important;
    border-radius: var(--ish-radius) !important;
    padding: 0.8em 1em !important;
    background: var(--ish-bg) !important;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: var(--ish-accent) !important;
    box-shadow: 0 0 0 3px var(--ish-accent-soft) !important;
}

/* ===========================================================
 * 11. モバイル追従CTA
 * =========================================================== */
.ish-fixed-cta { display: none; }

@media (max-width: 768px) {
    .ish-fixed-cta {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 9990;
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--ish-border);
        padding: 8px;
        gap: 8px;
    }
    .ish-fixed-cta a {
        flex: 1;
        text-align: center;
        padding: 12px 0;
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
        border-radius: var(--ish-radius);
    }
    .ish-fixed-cta .ish-cta-tel {
        background: var(--ish-bg-soft);
        color: var(--ish-text);
        border: 1px solid var(--ish-border);
    }
    .ish-fixed-cta .ish-cta-mail {
        background: var(--ish-text);
        color: #fff;
    }
    body { padding-bottom: 60px; }
}

/* ===========================================================
 * 12. フッター
 * =========================================================== */
.site-footer {
    background: var(--ish-bg-soft);
    color: var(--ish-text-soft);
    border-top: 1px solid var(--ish-border);
    font-size: 0.92rem;
}
.site-footer a { color: var(--ish-text); }
.site-footer a:hover { color: var(--ish-accent); }

/* ===========================================================
 * 13. 画像・図版
 * =========================================================== */
.entry-content img,
.wp-block-image img {
    border-radius: var(--ish-radius);
}

/* ===========================================================
 * 14. アクセシビリティ：フォーカス可視化
 * =========================================================== */
:focus-visible {
    outline: 2px solid var(--ish-accent);
    outline-offset: 2px;
    border-radius: 4px;
}
