/*
Theme Name: yStandard Child
Template: ystandard
Description: yStandardの子テーマ。カスタマイズはこのテーマで行います。
Version: 1.2.0
*/

/* ==============================================
   全体設定 (Base Styling)
   ============================================== */
:root {
    --primary-color: #0f2350;
    /* 信頼のネイビー */
    --accent-color: #e60012;
    /* 情熱の赤 */
    --bg-color: #f9f9f9;
    --text-color: #333;
}

body {
    color: var(--text-color);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    background-color: var(--bg-color);
    /* 漫画のスクリーントーン風ドットパターン（極薄） */
    background-image: radial-gradient(#ddd 1px, transparent 1px);
    background-size: 20px 20px;
}

/* ==============================================
   ヘッダー (Header)
   ============================================== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    /* すりガラス効果 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--primary-color);
}

/* ナビゲーション */
.global-nav__menu>li>a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.global-nav__menu>li>a:hover {
    color: var(--accent-color);
}

/* ==============================================
   コンテンツデザイン (Content)
   ============================================== */
/* 記事本文の読みやすさ向上 */
.entry-content p {
    margin-bottom: 2em;
    font-size: 16px;
    letter-spacing: 0.05em;
}

/* 見出しのデザイン強化 (吹き出し風・モダン) */
.entry-content h2 {
    position: relative;
    background: #fff;
    border: 3px solid var(--primary-color);
    padding: 15px 25px;
    margin: 60px 0 30px;
    font-size: 26px;
    font-weight: 900;
    color: var(--primary-color);
    box-shadow: 5px 5px 0 rgba(15, 35, 80, 0.2);
    /* 漫画のコマ風の影 */
    border-radius: 8px;
}

/* アクセント装飾 */
.entry-content h2::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 20px;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: -1;
}

.entry-content h3 {
    border-bottom: 2px dashed var(--primary-color);
    padding-bottom: 10px;
    margin: 40px 0 20px;
    font-size: 22px;
    font-weight: 700;
}

/* ==============================================
   カードデザイン (Cards / Images)
   ============================================== */
/* 画像やボックスに影をつけて浮かせる */
.wp-block-image img,
.entry-content table {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.wp-block-image img:hover {
    transform: translateY(-5px);
    /* ホバーで少し浮く */
}

/* ==============================================
   ボタン・CTA (Buttons)
   ============================================== */
.button,
.wp-block-button__link {
    background: linear-gradient(135deg, var(--primary-color), #2a4a80) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    font-weight: 900 !important;
    letter-spacing: 0.1em;
    box-shadow: 0 5px 15px rgba(15, 35, 80, 0.3) !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

.button:hover,
.wp-block-button__link:hover {
    background: var(--accent-color) !important;
    transform: scale(1.05);
    /* 少し拡大 */
    box-shadow: 0 5px 20px rgba(230, 0, 18, 0.4) !important;
}

/* ==============================================
   モバイル用追従CTA (Mobile Sticky CTA)
   ============================================== */
.mobile-sticky-cta {
    position: fixed;
    bottom: 20px;
    /* 少し浮かせる */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 9999;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
}

@media screen and (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
    }

    body {
        padding-bottom: 100px;
    }
}

.mobile-sticky-cta .cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: var(--primary-color);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 15px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* キラッと光るアニメーション */
.mobile-sticky-cta .cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}