/*
Theme Name: Shigoteku
Description: シゴテク公式ブログ用カスタムテーマ
Author: Shigoteku Team
Version: 1.0.0
License: GPL v2 or later
Text Domain: shigoteku
*/

/* Reset and base styles */
/* 管理画面では適用しない */
/* グローバルリセットを限定的に変更 - すべての要素ではなく、特定の要素のみに適用 */
body:not(.wp-admin) *,
body:not(.wp-admin) *::before,
body:not(.wp-admin) *::after {
    box-sizing: border-box;
}

/* 特定の要素のみリセット */
body:not(.wp-admin) ul,
body:not(.wp-admin) ol,
body:not(.wp-admin) li,
body:not(.wp-admin) h1,
body:not(.wp-admin) h2,
body:not(.wp-admin) h3,
body:not(.wp-admin) h4,
body:not(.wp-admin) h5,
body:not(.wp-admin) h6,
body:not(.wp-admin) p,
body:not(.wp-admin) blockquote,
body:not(.wp-admin) pre,
body:not(.wp-admin) figure,
body:not(.wp-admin) dl,
body:not(.wp-admin) dd {
    margin: 0;
    padding: 0;
}

/* 管理画面では適用しない */
body:not(.wp-admin) html {
    overflow-x: hidden;
    /* 初期状態を固定 */
    height: 100%;
}

/* 管理画面では適用しない */
body:not(.wp-admin) {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* レイアウトシフトを防ぐ */
    min-height: 100vh;
    height: 100%;
    margin: 0;
    padding: 0;
    /* フォント読み込み完了まで非表示（FOUT防止） */
    visibility: hidden;
    opacity: 0;
}

/* フォント読み込み完了後に表示 */
body:not(.wp-admin).fonts-loaded {
    visibility: visible;
    opacity: 1;
}

/* 管理画面では適用しない */
body:not(.wp-admin) #page {
    min-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* サイトコンテンツを伸縮可能にして、フッターを下に固定 */
body:not(.wp-admin) #content.site-content {
    flex: 1 0 auto;
    min-height: 0;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    /* レイアウトシフトを防ぐ */
    min-height: 120px;
    flex-shrink: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-content {
    display: block;
    height: 120px;  /* 高さを数値で指定（調整可能） */
    position: relative;
}

/* ロゴ */
.site-branding {
    text-align: center;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.site-title {
    margin: 0 auto;
    display: inline-block;
}
.shigoteku-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-circle {
    width: 3.5rem;
    height: 3.5rem;
    position: relative;
    border-radius: 9999px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -0.25rem;
    font-size: 2.2rem;
    font-weight: 800;
    font-family: 'Noto Sans JP', 'Hiragino Sans', Meiryo, sans-serif;
    /* フォント読み込み最適化 */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    z-index: 0;
}

/* 紫の丸は疑似要素で描画し、少しだけ下にオフセットする */
.logo-circle::before {
    content: '';
    position: absolute;
    /* 外枠より一回り小さい円になるように内側にオフセット */
    inset: 0.15rem;
    width: auto;
    height: auto;
    border-radius: 9999px;
    border: 2px solid #4f46e5;
    background-color: #4f46e5;
    /* 丸だけを下に 2px ずらす（文字位置は固定） */
    transform: translateY(2px);
    z-index: -1;
}

.logo-text-go {
    font-size: 2.2rem;
    font-weight: 800;
    color: #4f46e5;
    margin-left: 0.25rem;
    font-family: 'Noto Sans JP', 'Hiragino Sans', Meiryo, sans-serif;
    /* フォント読み込み最適化 */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo-text-te {
    font-size: 2.2rem;
    font-weight: 800;
    color: #4f46e5;
    margin-left: 0.25rem;
    font-family: 'Noto Sans JP', 'Hiragino Sans', Meiryo, sans-serif;
    /* フォント読み込み最適化 */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo-text-ku {
    font-size: 2.2rem;
    font-weight: 800;
    color: #4f46e5;
    margin-left: 0.25rem;
    font-family: 'Noto Sans JP', 'Hiragino Sans', Meiryo, sans-serif;
    /* フォント読み込み最適化 */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    .logo-circle {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.2rem;
    }
    .logo-text-go,
    .logo-text-te,
    .logo-text-ku {
        font-size: 1.2rem;
    }
    .site-header {
        position: sticky !important;
        top: 0 !important;
        min-height: 80px !important;
        height: auto !important;
        z-index: 1000 !important;
    }
    
    .header-container {
        padding: 0 1rem !important;
    }
    
    .header-content {
        min-height: 80px !important;
        height: 80px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .site-branding {
        margin-top: 0.5rem !important;
        margin-bottom: 0.5rem !important;
        height: auto !important;
        min-height: 35px !important;
        flex-shrink: 0 !important;
    }
    
    /* ハンバーガーメニューボタンを表示（右側に配置、位置を調整可能） */
    .menu-toggle {
        display: block !important;
        position: absolute !important;
        /* topの値を大きくすると下に移動します（例: 1.5rem, 2rem, 2.5rem） */
        top: 1.7rem !important;
        right: 1rem !important;
        z-index: 1001 !important;
    }
    
    /* モーダルオーバーレイ */
    .menu-overlay {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: transparent !important;
        /* backdrop-filterを完全に削除 - メニューがぼやけるのを防ぐ */
        z-index: 9998 !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease !important;
        pointer-events: none !important;
    }
    
    .menu-overlay.active {
        display: block !important;
        opacity: 1 !important;
        /* メニューがz-index: 10000で上にあるので、オーバーレイはpointer-events: noneのまま */
        /* オーバーレイ自体をクリックした場合はJavaScriptで処理 */
        pointer-events: none !important;
    }
    
    /* メニューが開いた時、メニュー内の要素は確実にクリック可能にする */
    .under-logo-nav.menu-open,
    .under-logo-nav.menu-open * {
        pointer-events: auto !important;
    }
    
    /* メニューが開いた時、#contentをぼかす（メニューは除外） */
    body.menu-open #content {
        filter: blur(4px) !important;
        transition: filter 0.3s ease !important;
    }
    
    /* メニュー自体は絶対にぼやけさせない */
    body.menu-open .under-logo-nav,
    body.menu-open .under-logo-nav * {
        filter: none !important;
        -webkit-filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* ナビゲーションメニューを全画面表示（デフォルトは非表示） */
    .under-logo-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        background: #ffffff !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        z-index: 10000 !important;
        overflow-y: auto !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-20px) scale(0.98) !important;
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0.5s !important;
        pointer-events: none !important;
        /* メニュー自体はぼやけさせない - 独立したスタッキングコンテキストを作成 */
        isolation: isolate !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        -webkit-filter: none !important;
        /* 背景を完全に不透明にして、背後からのぼかし効果を遮断 */
        background-color: #ffffff !important;
    }
    
    /* メニュー内のすべての要素もぼやけさせない */
    .under-logo-nav * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        -webkit-filter: none !important;
    }
    
    /* メニューが開いた時 */
    .under-logo-nav.menu-open {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1) !important;
        transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0s linear 0s !important;
        pointer-events: auto !important;
    }
    
    /* 閉じるボタン */
    .menu-close {
        position: absolute !important;
        top: 1.5rem !important;
        right: 1.5rem !important;
        width: 44px !important;
        height: 44px !important;
        background: #f8fafc !important;
        border: 1px solid #fbbf24 !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: scale(0.8) rotate(-90deg) !important;
        transition: opacity 0.4s ease 0.3s, 
                    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s,
                    visibility 0s linear 0.7s !important;
    }
    
    /* メニューが開いた時、閉じるボタンをアニメーション */
    .under-logo-nav.menu-open .menu-close {
        opacity: 1 !important;
        visibility: visible !important;
        transform: scale(1) rotate(0deg) !important;
        transition: opacity 0.4s ease 0.3s, 
                    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s,
                    visibility 0s linear 0s !important;
    }
    
    .menu-close:hover {
        background: #fef3c7 !important;
        border-color: #f59e0b !important;
    }
    
    .close-icon {
        font-size: 1.5rem !important;
        color: #10b981 !important;
        font-weight: bold !important;
        line-height: 1 !important;
    }
    
    /* 全画面メニュー内のメニューコンテナ */
    .under-logo-nav .nav-menu-center {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        padding: 5rem 1rem 2rem 1rem !important;
        box-sizing: border-box !important;
    }
    
    .nav-menu-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        width: 100% !important;
        max-width: 500px !important;
        text-align: left !important;
        box-sizing: border-box !important;
    }
    
    .nav-menu-list li {
        display: block !important;
        margin: 0 !important;
        border-bottom: 1px solid #e5e7eb !important;
        opacity: 0 !important;
        transform: translateX(-20px) !important;
        transition: opacity 0.4s ease, transform 0.4s ease !important;
    }
    
    /* メニュー項目を順次表示 */
    .under-logo-nav.menu-open .nav-menu-list li {
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    .under-logo-nav.menu-open .nav-menu-list li:nth-child(1) {
        transition-delay: 0.15s !important;
    }
    
    .under-logo-nav.menu-open .nav-menu-list li:nth-child(2) {
        transition-delay: 0.2s !important;
    }
    
    .under-logo-nav.menu-open .nav-menu-list li:nth-child(3) {
        transition-delay: 0.25s !important;
    }
    
    .under-logo-nav.menu-open .nav-menu-list li:nth-child(4) {
        transition-delay: 0.3s !important;
    }
    
    .under-logo-nav.menu-open .nav-menu-list li:nth-child(5) {
        transition-delay: 0.35s !important;
    }
    
    .under-logo-nav.menu-open .nav-menu-list li:nth-child(6) {
        transition-delay: 0.4s !important;
    }
    
    .nav-menu-list li:last-child {
        border-bottom: none !important;
    }
    
    .nav-menu-list a {
        display: block !important;
        font-size: 1.1rem !important;
        padding: 1.25rem 1rem !important;
        background: transparent !important;
        margin: 0 !important;
        color: #1a1a1a !important;
        font-weight: 500 !important;
        transition: all 0.2s ease !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-decoration: none !important;
    }
    
    .nav-menu-list a:hover,
    .nav-menu-list a:focus {
        background: #f9fafb !important;
        color: #3b82f6 !important;
    }
}

.logo-icon {
    font-size: 1.8rem;
    margin-right: 0.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    color: #1a1a1a;
}

/* ナビゲーション */
/* PC・タブレット表示時は閉じるボタンを非表示 */
.menu-close {
    display: none;
}

.main-navigation {
    display: block;
    align-items: unset;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 2rem;
    right: 1rem;
    z-index: 1001;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ハンバーガーメニューが開いた時のアニメーション（×に変化） */
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-list a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.nav-menu-list a:hover {
    color: #3b82f6;
    background: #f1f5f9;
}

/* ロゴ下メニュー用 */
.under-logo-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.nav-menu-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-menu-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu-list a {
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.nav-menu-list a:hover {
    color: #3b82f6;
    background: #f1f5f9;
}

@media (max-width: 768px) {
    .under-logo-nav {
        margin-top: 0.2rem;
    }
    .nav-menu-list {
        gap: 1.2rem;
    }
    .nav-menu-list a {
        font-size: 0.98rem;
        padding: 0.5rem 0.5rem;
    }
}

/* 言語切り替え */
.language-switcher {
    margin-left: 1rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.flag {
    font-size: 1rem;
}

.arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.lang-btn:hover .arrow {
    transform: rotate(180deg);
}

/* モダンなヒーローセクション */
.hero-modern {
    background: #f8f9fa;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* メインメッセージ */
.hero-main {
    color: #0f172a;
    text-align: left;
    margin-left: -300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}

.hero-title {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: inline;
    animation: title-slide-in 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }

.title-line.highlight {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

@keyframes title-slide-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #64748b;
    line-height: 1.6;
}

.hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #64748b;
}

/* CTAボタン */
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-primary {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #3b82f6;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #3b82f6;
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* 統計情報 */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: #3b82f6;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

/* ブロックチェーン風ヒーローセクション */
.hero-blockchain {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blockchain-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
}

/* 中央の球体 */
.central-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.3) 0%, rgba(147, 197, 253, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(147, 197, 253, 0.3);
    z-index: 10;
}

.sphere-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 球体内のアイコン */
.sphere-icon {
    position: absolute;
    width: 60px;
    height: 60px;
}

.document-icon {
    top: 20px;
    left: 20px;
}

.person-icon {
    top: 20px;
    right: 20px;
}

.lock-icon {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.icon-wrapper {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.icon-wrapper:hover {
    transform: scale(1.1);
}

.icon-wrapper.gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 球体内の接続線 */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* ブロックチェーン契約ラベル */
.blockchain-label {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #3b82f6;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* 浮遊する立方体ブロック */
.floating-blocks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.block {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(147, 197, 253, 0.2);
    border: 2px solid rgba(147, 197, 253, 0.4);
    border-radius: 8px;
    animation: float 8s ease-in-out infinite;
}

.block-1 { top: 10%; left: 10%; animation-delay: 0s; }
.block-2 { top: 15%; right: 15%; animation-delay: 1s; }
.block-3 { top: 30%; left: 5%; animation-delay: 2s; }
.block-4 { top: 25%; right: 8%; animation-delay: 3s; }
.block-5 { top: 50%; left: 12%; animation-delay: 4s; }
.block-6 { top: 45%; right: 12%; animation-delay: 5s; }
.block-7 { bottom: 20%; left: 8%; animation-delay: 6s; }
.block-8 { bottom: 15%; right: 10%; animation-delay: 7s; }
.block-9 { bottom: 35%; left: 15%; animation-delay: 1.5s; }
.block-10 { bottom: 30%; right: 18%; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotateY(10deg);
        opacity: 1;
    }
}

/* ブロック間の接続線 */
.block-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* プラットフォームテキスト */
.platform-text {
    position: absolute;
    bottom: 50px;
    left: 50px;
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    text-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    z-index: 15;
}

.platform-text::after {
    content: '▼';
    display: block;
    font-size: 1rem;
    margin-top: 5px;
    text-align: center;
    color: #1e40af;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
        margin-left: 0;
    }
    
    .hero-main {
        text-align: left;
        margin-left: 0;
        padding-left: 0;
    }
    
    .hero-title {
        font-size: 5rem;
        margin-left: 0;
        padding-left: 0;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
    }
    
    .stat-item {
        flex: 1;
        max-width: 120px;
    }
    
    .sphere-large {
        display: none;
    }
}

@media (max-width: 768px) {
    /* ページ全体の読み込みを待つ */
    html {
        height: 100%;
    }
    
    body {
        min-height: 100vh;
        height: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    #page {
        min-height: 100vh;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .site-content {
        flex: 1 0 auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    
    .hero-futuristic {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        overflow: hidden !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }
    
    .hero-container {
        z-index: 20 !important;
        padding: 0.75rem 1rem !important;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        overflow: hidden !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }
    
    .hero-main {
        text-align: left;
        /* PC側の margin-left:-300px をスマホでは必ず打ち消す */
        margin-left: 0 !important;
        padding-left: 0 !important;
        /* 少し下げて、PCと同じように余白を持たせる */
        padding-top: 2.5rem;
        /* モバイルではテキスト領域を広げて改行を抑える */
        max-width: 100%;
        position: relative;
        z-index: 20;
        height: auto !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }
    
    .hero-futuristic .hero-title {
        /* モバイルではPCより小さいが、しっかり見えるサイズに（もう2回り大きく） */
        font-size: 2rem !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 0.5rem !important;
        position: relative !important;
        z-index: 20 !important;
        color: #0f172a !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* スマホでもタイトルのスライドインアニメーションを有効化 */
    .hero-futuristic .title-line {
        animation: title-slide-in 1s ease-out forwards;
    }
    
    /* アニメーションを無効化してレイアウトシフトを防ぐ */
    .floating-particles {
        animation: none !important;
    }
    
    .floating-particles::before,
    .floating-particles::after {
        animation: none !important;
        animation-delay: 0ms !important;
        animation-duration: 0ms !important;
        opacity: 0.3 !important;
        transform: translateY(0) !important;
        will-change: auto !important;
    }
    
    .floating-particles .particle,
    .particle {
        animation: none !important;
        animation-delay: 0ms !important;
        animation-duration: 0ms !important;
        opacity: 0.3 !important;
        transform: translateY(0) translateX(0) !important;
        will-change: auto !important;
    }
    
    /* インラインスタイルのアニメーションも上書き */
    .floating-particles .particle[style*="animation-delay"],
    .floating-particles .particle[style*="animation-duration"] {
        animation: none !important;
        animation-delay: 0ms !important;
        animation-duration: 0ms !important;
    }
    
    .sphere-large {
        animation: none !important;
        transform: translateY(0) !important;
    }
    
    .cube-3d {
        animation: none !important;
        transform: translateY(0) rotateY(0deg) !important;
    }
    
    .hero-futuristic .hero-subtitle {
        /* サブタイトルも少し大きめにしてバランスを取る（タイトルとの比率維持） */
        font-size: 1.2rem !important;
        margin-left: 0 !important;
        position: relative !important;
        z-index: 20 !important;
        color: #000000 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .hero-cta {
        justify-content: flex-start;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        max-width: 150px;
        width: 100%;
    }
    
    .sphere-medium {
        display: none;
    }
    
    /* スマホでも球体と立方体を表示 */
    .hero-svg-background {
        z-index: 1;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .sphere-large {
        display: block !important;
        width: 100px !important;
        height: 100px !important;
        min-width: 100px !important;
        min-height: 100px !important;
        top: 10% !important;
        right: 5% !important;
        z-index: 2 !important;
        position: absolute !important;
        opacity: 1 !important;
        visibility: visible !important;
        /* 読み込み前からサイズを確保 */
        box-sizing: border-box !important;
    }
    
    .cube-3d {
        display: block !important;
        z-index: 2 !important;
    }
    
    .cube-3d-1 {
        top: 5% !important;
        right: 10% !important;
    }
    
    .cube-3d-2 {
        top: 20% !important;
        right: 15% !important;
    }
    
    .cube-3d-3 {
        top: 35% !important;
        right: 5% !important;
    }
    
    .cube-3d-4 {
        top: 50% !important;
        right: 12% !important;
    }
    
    .connection-line {
        display: none;
    }
    
    .hero-container {
        padding: 1.5rem 1rem;
    }
}

/* PayPay風ヒーローセクション */
.hero-paypay {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.618fr; /* 黄金比 */
    gap: 4rem;
    align-items: center;
}

/* テキスト部分 */
.hero-text {
    max-width: 500px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ブロックチェーンバッジ */
.blockchain-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.blockchain-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.badge-icon {
    font-size: 1.2rem;
}

/* ビジュアル部分 */
.hero-visual {
    background: #ffffff;
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-content {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

/* 立体の四角形と線の背景 */
.geometric-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 立体の四角形 */
.cube {
    position: absolute;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 8px rgba(0, 0, 0, 0.05);
    animation: float-cube 8s ease-in-out infinite;
}

.cube-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.cube-2 {
    width: 80px;
    height: 40px;
    top: 15%;
    right: 20%;
    animation-delay: 1s;
}

.cube-3 {
    width: 50px;
    height: 50px;
    top: 35%;
    left: 25%;
    animation-delay: 2s;
}

.cube-4 {
    width: 70px;
    height: 30px;
    top: 30%;
    right: 30%;
    animation-delay: 3s;
}

.cube-5 {
    width: 40px;
    height: 70px;
    top: 55%;
    left: 10%;
    animation-delay: 4s;
}

.cube-6 {
    width: 60px;
    height: 60px;
    top: 50%;
    right: 15%;
    animation-delay: 5s;
}

.cube-7 {
    width: 90px;
    height: 40px;
    top: 70%;
    left: 35%;
    animation-delay: 6s;
}

.cube-8 {
    width: 50px;
    height: 50px;
    top: 65%;
    right: 25%;
    animation-delay: 7s;
}

@keyframes float-cube {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotateY(5deg);
        opacity: 1;
    }
}

/* 接続線 */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 記事グリッド */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 記事カード */
.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* カテゴリタグ（右上の楕円形） */
.article-category-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.7);
    color: #64748b;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.article-image {
    height: 180px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.article-category {
    background: linear-gradient(45deg, #10b981, #34d399);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.article-date-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}
.article-date,
.article-time {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-updated-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-right: 0.15rem;
    border-radius: 0;
    background: none;
    color: #0f172a;
    font-size: 1rem;      /* 記号を少し大きめに */
    font-weight: 700;     /* 太く表示 */
}

/* カテゴリ一覧（/category/） */
.category-index-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-index-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.category-index-card:hover {
    background: #eff6ff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}

.category-index-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.category-index-count {
    font-size: 0.85rem;
    color: #6b7280;
}

@media (max-width: 1024px) {
    .category-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .category-index-grid {
        grid-template-columns: 1fr;
    }
}

.article-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    color: #1e293b;
}

.article-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: #3b82f6;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    font-size: 1.2rem;
}

.author-name {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.read-more:hover {
    color: #2563eb;
    transform: translateX(4px);
}

/* メインコンテンツエリア */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 9rem;
    margin-top: 2rem;
}

.content-area {
    min-height: 400px;
    width: 100%;
}

/* サイドバー */
.sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: fit-content;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 16px 16px 0 0;
}

.widget {
    margin-bottom: 2.5rem;
    position: relative;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: #1e293b;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

/* 検索フォーム */
.widget_search .search-form,
.widget .search-form,
.sidebar .search-form,
form.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0;
}

.widget_search .search-form label,
.widget .search-form label,
.sidebar .search-form label,
form.search-form label {
    flex: 1;
    display: flex;
    margin: 0;
}

.widget_search .search-field,
.widget .search-field,
.sidebar .search-field,
form.search-form .search-field,
.widget_search input[type="search"],
.widget input[type="search"],
.sidebar input[type="search"],
form.search-form input[type="search"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease;
    outline: none;
    height: 36px;
    width: 100%;
    box-sizing: border-box;
}

.widget_search .search-field:focus,
.widget .search-field:focus,
.sidebar .search-field:focus,
form.search-form .search-field:focus,
.widget_search input[type="search"]:focus,
.widget input[type="search"]:focus,
.sidebar input[type="search"]:focus,
form.search-form input[type="search"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.widget_search .search-submit,
.widget .search-submit,
.sidebar .search-submit,
form.search-form .search-submit,
.widget_search input[type="submit"],
.widget input[type="submit"],
.sidebar input[type="submit"],
form.search-form input[type="submit"] {
    padding: 0.5rem 1rem;
    background: #64748b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    height: 36px;
    min-width: 60px;
    flex-shrink: 0;
}

.widget_search .search-submit:hover,
.widget .search-submit:hover,
.sidebar .search-submit:hover,
form.search-form .search-submit:hover,
.widget_search input[type="submit"]:hover,
.widget input[type="submit"]:hover,
.sidebar input[type="submit"]:hover,
form.search-form input[type="submit"]:hover {
    background: #475569;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ウィジェットリスト */
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.2s ease;
}

.widget ul li:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #3b82f6;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.widget ul li:last-child {
    margin-bottom: 0;
}

.widget ul li a {
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s ease;
    display: block;
}

.widget ul li a:hover {
    color: #3b82f6;
}

/* 最近の投稿ウィジェット */
.widget_recent_entries ul li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget_recent_entries ul li::before {
    content: '📄';
    font-size: 1rem;
    opacity: 0.7;
}

/* 最近のコメントウィジェット */
.widget_recent_comments ul li {
    font-size: 0.8rem;
    line-height: 1.4;
}

.widget_recent_comments ul li a {
    color: #3b82f6;
    font-weight: 600;
}

/* アーカイブウィジェット */
.widget_archive ul li::before {
    content: '📅';
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* カテゴリーウィジェット */
.widget_categories ul li::before {
    content: '📁';
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* カテゴリーの親子関係のスタイル */
.widget_categories ul li.cat-parent {
    font-weight: 600;
}

.widget_categories ul li.cat-parent > a {
    color: #1e40af;
    font-weight: 600;
}

.widget_categories ul li.children {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    padding-left: 0;
}

.widget_categories ul li.children li {
    font-size: 0.9em;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}

.widget_categories ul li.children li::before {
    content: '└';
    margin-right: 0.5rem;
    opacity: 0.5;
    font-weight: normal;
}

.widget_categories ul li.children li a {
    color: #475569;
    font-weight: 500;
}

.widget_categories ul li.children li a:hover {
    color: #3b82f6;
}

/* タグクラウド */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #475569;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.75rem !important;
    font-weight: 500;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.2s ease;
}

.widget_tag_cloud .tagcloud a:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* カレンダーウィジェット */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.widget_calendar caption {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.widget_calendar th,
.widget_calendar td {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    font-size: 0.75rem;
}

.widget_calendar th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
}

.widget_calendar td a {
    display: block;
    background: #3b82f6;
    color: white;
    border-radius: 4px;
    padding: 0.25rem;
    text-decoration: none;
    font-weight: 600;
}

/* メタウィジェット */
.widget_meta ul li::before {
    content: '🔗';
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .sidebar {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .widget {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .widget-title {
        font-size: 1rem;
    }
    
    .widget_search .search-form,
    .widget .search-form,
    .sidebar .search-form,
    form.search-form {
        flex-direction: column;
    }
    
    .widget_search .search-submit,
    .widget .search-submit,
    .sidebar .search-submit,
    form.search-form .search-submit,
    .widget_search input[type="submit"],
    .widget input[type="submit"],
    .sidebar input[type="submit"],
    form.search-form input[type="submit"] {
        width: 100%;
    }
}

/* 最先端ヒーローセクション */
.hero-futuristic {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    min-height: 35vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* レイアウトシフトを防ぐ */
    will-change: auto;
}

.hero-futuristic .hero-title {
    font-size: 7.2rem !important;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-futuristic .hero-subtitle {
    font-size: 3rem !important;
    font-weight: 500;
    margin-bottom: 0.5rem;
    margin-left: 4rem;
    color: #000000;
    line-height: 1.6;
}

/* =========================
   モバイル用ヒーローテキスト最終オーバーライド
   （グローバル定義より後ろに書いて確実に適用）
   ========================= */
@media (min-width: 769px) and (max-width: 1024px) {
    /* タブレット用：PCより少し小さく、中央寄りに表示（幅は広めに確保） */
    .hero-main {
        max-width: 100%;             /* 画面幅いっぱいを使う */
        /* PC側の margin-left:-300px をタブレットでも確実に打ち消す */
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0;
        /* テキストブロックをさらに1行分ほど上に寄せる */
        padding-top: 1rem;
    }

    .hero-futuristic .hero-title {
        /* タブレットではPCより少し小さい程度まで大きくする */
        font-size: 4.3rem !important;
        line-height: 1.2;
        margin-bottom: 0.75rem !important;
    }

    .hero-futuristic .hero-subtitle {
        font-size: 2rem !important;
        line-height: 1.4;
        margin-left: 0 !important;
        margin-bottom: 0;
    }

    /* タブレットでは球体も表示（PCと同様） */
    .sphere-large {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .hero-main {
        max-width: 100%;
    }

    /* PCと同じテキストを、スマホでは小さめに表示 */
    .hero-futuristic .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-left: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-futuristic .hero-subtitle {
        font-size: 1.2rem !important;
        line-height: 1.4;
        margin-left: 0 !important;
        margin-bottom: 0;
    }
}

/* 背景アニメーション */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float-particle 6s ease-in-out infinite;
}

.floating-particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 30%;
    animation-delay: 3s;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0px); opacity: 0.3; }
    50% { transform: translateY(-20px); opacity: 1; }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* メインメッセージ */
.hero-main {
    color: #0f172a;
    text-align: left;
    margin-left: -300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}

.hero-title {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: inline;
    animation: title-slide-in 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }

.title-line.highlight {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

@keyframes title-slide-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #64748b;
    line-height: 1.6;
}

.hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #64748b;
}

/* CTAボタン */
.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-primary {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    color: white;
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #3b82f6;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid #3b82f6;
    backdrop-filter: blur(10px);
}

.cta-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* 統計情報 */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: #3b82f6;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}

/* SVG背景要素 */
.hero-svg-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 3D立方体 */
.cube-3d {
    position: absolute;
    animation: cube-float 8s ease-in-out infinite;
}

.cube-3d-1 {
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.cube-3d-2 {
    top: 35%;
    right: 25%;
    animation-delay: 1s;
}

.cube-3d-3 {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.cube-3d-4 {
    top: 65%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes cube-float {
    0%, 100% {
        transform: translateY(0px) rotateY(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) rotateY(10deg);
        opacity: 1;
    }
}

/* 球体 */
.sphere {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(14, 165, 233, 0.6) 50%, rgba(2, 132, 199, 0.4) 100%);
    border-radius: 50%;
    animation: sphere-pulse 6s ease-in-out infinite;
}

.sphere-large {
    width: 180px;
    height: 180px;
    top: 10%;
    right: 5%;
    animation-delay: 0.5s;
}

.sphere-medium {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 10%;
    animation-delay: 1.5s;
}

@keyframes sphere-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* 記事詳細ページ */
.single-post {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    margin-bottom: 3rem; 
}

/* 記事ヘッダー */
.post-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-category {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.post-date,
.post-time {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 記事詳細ページのカテゴリーパンくずリスト */
.post-category-breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-category-breadcrumb .category-parent-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.post-category-breadcrumb .category-parent-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.post-category-breadcrumb .category-separator {
    color: #94a3b8;
    font-weight: 400;
}

.post-category-breadcrumb .category-current {
    color: #1e293b;
    font-weight: 600;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 1rem 0;
}

/* 日付とシェアボタンの横並び */
.post-meta-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.post-meta-share .post-date {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

/* シェアボタン（日付右側） */
.post-share-header {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #000000;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    padding: 0;
}

.share-button:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.share-button-line {
    background: #06c755;
}

.share-button-line:hover {
    background: #05b048;
}

.share-button-copy {
    background: #000000;
}

.share-button-hatena {
    background: #00A4DE;
}

.share-button-hatena:hover {
    background: #00A4DE;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.share-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* はてブのアイコンだけ大きく */
.share-button-hatena .share-icon {
    width: 30px;
    height: 30px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 1rem;
}

.author-role {
    color: #64748b;
    font-size: 0.8rem;
}

/* この記事でわかること */
.article-info-box {
    margin: 2rem 0;
}

/* 目次 */
.table-of-contents {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem 0;
}

.toc-nav {
    margin: 0;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-item:last-child {
    margin-bottom: 0;
}

/* h2のスタイル（親項目） */
.toc-item-level-2,
.toc-item-h2 {
    margin-left: 0;
    margin-bottom: 0.5rem;
}

.toc-item-level-2 .toc-link,
.toc-item-h2 .toc-link {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.25rem 0;
    display: block;
    position: relative;
    padding-left: 1.2em;
    text-decoration: none;
}

.toc-item-level-2 .toc-link::before,
.toc-item-h2 .toc-link::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #0f172a;
    font-weight: 400;
}

.toc-item-level-2 .toc-link:hover,
.toc-item-h2 .toc-link:hover {
    color: #3b82f6;
    text-decoration: none;
}

/* h3のスタイル（子項目） */
.toc-item-level-3,
.toc-item-h3 {
    margin-left: 0; /* h3 は「・」位置だけをずらす */
    margin-bottom: 0.5rem;
}

.toc-item-level-3 .toc-link,
.toc-item-h3 .toc-link {
    color: #374151;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 0.25rem 0;
    display: block;
    position: relative;
    padding-left: 2em; /* h2 より少し深くして段差を付ける */
    text-decoration: none;
}

.toc-item-level-3 .toc-link::before,
.toc-item-h3 .toc-link::before {
    content: '・';
    position: absolute;
    left: 1.2em; /* 「・」の前だけスペースを広めに空ける（以前の約2倍） */
    color: #0f172a;
    font-weight: 400;
}

.toc-item-level-3 .toc-link:hover,
.toc-item-h3 .toc-link:hover {
    color: #3b82f6;
    text-decoration: none;
}

/* h4のスタイル（孫項目） */
.toc-item-level-4,
.toc-item-h4 {
    margin-left: 2em;
    margin-bottom: 0.5rem;
}

.toc-item-level-4 .toc-link,
.toc-item-h4 .toc-link {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.25rem 0;
    display: block;
    position: relative;
    padding-left: 1.2em;
    text-decoration: none;
}

.toc-item-level-4 .toc-link::before,
.toc-item-h4 .toc-link::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #6b7280;
}

.toc-item-level-4 .toc-link:hover,
.toc-item-h4 .toc-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* 記事詳細ページのレスポンシブ対応 */
@media (max-width: 768px) {
    .post-category-breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .post-title {
        font-size: 2.2rem;
    }
    
    .post-meta-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .post-share-header {
        align-self: flex-end;
    }
    
    .share-button {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .table-of-contents {
        padding: 1rem;
    }
    
    .toc-title {
        font-size: 1.1rem;
    }
    
    .toc-item-level-2 .toc-link,
    .toc-item-h2 .toc-link {
        font-size: 1rem;
    }
    
    .toc-item-level-3 .toc-link,
    .toc-item-h3 .toc-link {
        font-size: 0.9rem;
    }
    
    .toc-item-level-3,
    .toc-item-h3 {
        margin-left: 0;
    }
    
    .toc-item-level-4,
    .toc-item-h4 {
        margin-left: 2em;
    }
}

/* 記事内容 */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 3rem;
}

.post-content h2,
.post-content .wp-block-heading h2,
.post-content h2.wp-block-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 75px !important; /* h2の上に75pxのスペース */
    margin-bottom: 1rem !important;
    padding: 0.75rem 0;
    text-align: left;
    position: relative;
    border-top: 2px solid #3b82f6;
    border-bottom: 2px solid #3b82f6;
}

.post-content h2:first-child,
.post-content .wp-block-heading:first-child h2,
.post-content h2.wp-block-heading:first-child {
    margin-top: 0 !important; /* 最初のh2は上マージンなし */
}

.post-content h3,
.post-content .wp-block-heading h3,
.post-content h3.wp-block-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 75px !important; /* h3の上に75pxのスペース */
    margin-bottom: 1rem !important;
    padding: 0.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3b82f6;
    position: relative;
}

.post-content h3:first-child,
.post-content .wp-block-heading:first-child h3,
.post-content h3.wp-block-heading:first-child {
    margin-top: 0 !important; /* 最初のh3は上マージンなし */
}

.post-content h4,
.post-content .wp-block-heading h4,
.post-content h4.wp-block-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 75px !important; /* h4の上に75pxのスペース */
    margin-bottom: 1rem !important;
}

.post-content h4:first-child,
.post-content .wp-block-heading:first-child h4,
.post-content h4.wp-block-heading:first-child {
    margin-top: 0 !important; /* 最初のh4は上マージンなし */
}

/* 固定ページ用スタイル */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.page-content-wrapper {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    line-height: 1.8;
    color: #334155;
}

/* 固定ページの見出しスタイル（記事ページと同じ間隔） */
.page-content-wrapper h2,
.page-content-wrapper .wp-block-heading h2,
.page-content-wrapper h2.wp-block-heading {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 75px !important; /* h2の上に75pxのスペース */
    margin-bottom: 1rem !important;
    padding: 0.75rem 0;
    text-align: left;
    position: relative;
    border-top: 2px solid #3b82f6;
    border-bottom: 2px solid #3b82f6;
}

.page-content-wrapper h2:first-child,
.page-content-wrapper .wp-block-heading:first-child h2,
.page-content-wrapper h2.wp-block-heading:first-child {
    margin-top: 0 !important; /* 最初のh2は上マージンなし */
}

.page-content-wrapper h3,
.page-content-wrapper .wp-block-heading h3,
.page-content-wrapper h3.wp-block-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 75px !important; /* h3の上に75pxのスペース */
    margin-bottom: 1rem !important;
    padding: 0.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3b82f6;
    position: relative;
}

.page-content-wrapper h3:first-child,
.page-content-wrapper .wp-block-heading:first-child h3,
.page-content-wrapper h3.wp-block-heading:first-child {
    margin-top: 0 !important; /* 最初のh3は上マージンなし */
}

.page-content-wrapper h4,
.page-content-wrapper .wp-block-heading h4,
.page-content-wrapper h4.wp-block-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 75px !important; /* h4の上に75pxのスペース */
    margin-bottom: 1rem !important;
}

.page-content-wrapper h4:first-child,
.page-content-wrapper .wp-block-heading:first-child h4,
.page-content-wrapper h4.wp-block-heading:first-child {
    margin-top: 0 !important; /* 最初のh4は上マージンなし */
}

/* 固定ページの段落スタイル（記事ページと同じ間隔） */
.page-content-wrapper p,
.page-content-wrapper .wp-block-paragraph,
.page-content-wrapper .wp-block-paragraph p {
    margin-top: 0 !important;
    margin-bottom: 50px !important; /* 段落の間に50pxのスペース */
}

.page-content-wrapper p:last-child,
.page-content-wrapper .wp-block-paragraph:last-child,
.page-content-wrapper .wp-block-paragraph:last-child p {
    margin-bottom: 0 !important; /* 最後の段落は下マージンなし */
}

.page-content-wrapper ul,
.page-content-wrapper ol,
.page-content-wrapper .wp-block-list ul,
.page-content-wrapper .wp-block-list ol {
    margin-top: 0 !important;
    margin-bottom: 50px !important; /* リストの下に50pxのスペース */
    padding-left: 2rem;
}

.page-content-wrapper ul:last-child,
.page-content-wrapper ol:last-child,
.page-content-wrapper .wp-block-list:last-child ul,
.page-content-wrapper .wp-block-list:last-child ol {
    margin-bottom: 0 !important; /* 最後のリストは下マージンなし */
}

.page-content-wrapper li {
    margin-bottom: 0.5rem;
}

.page-content-wrapper blockquote {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin-top: 50px !important; /* 引用の上に50pxのスペース */
    margin-bottom: 50px !important; /* 引用の下に50pxのスペース */
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.page-content-wrapper pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 50px !important; /* コードブロックの上に50pxのスペース */
    margin-bottom: 50px !important; /* コードブロックの下に50pxのスペース */
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.page-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 50px !important; /* 画像の上に50pxのスペース */
    margin-bottom: 50px !important; /* 画像の下に50pxのスペース */
}

/* WordPressブロックエディタのブロック要素にも間隔を適用 */
.page-content-wrapper .wp-block-paragraph,
.page-content-wrapper > .wp-block-paragraph {
    margin-top: 0 !important;
    margin-bottom: 50px !important;
}

.page-content-wrapper .wp-block-paragraph:last-child,
.page-content-wrapper > .wp-block-paragraph:last-child {
    margin-bottom: 0 !important;
}

.page-content-wrapper .wp-block-heading h2,
.page-content-wrapper .wp-block-heading h3,
.page-content-wrapper .wp-block-heading h4,
.page-content-wrapper > .wp-block-heading h2,
.page-content-wrapper > .wp-block-heading h3,
.page-content-wrapper > .wp-block-heading h4 {
    margin-top: 75px !important;
    margin-bottom: 1rem !important;
}

.page-content-wrapper .wp-block-heading:first-child h2,
.page-content-wrapper .wp-block-heading:first-child h3,
.page-content-wrapper .wp-block-heading:first-child h4,
.page-content-wrapper > .wp-block-heading:first-child h2,
.page-content-wrapper > .wp-block-heading:first-child h3,
.page-content-wrapper > .wp-block-heading:first-child h4 {
    margin-top: 0 !important;
}

.page-content-wrapper .wp-block-list,
.page-content-wrapper > .wp-block-list {
    margin-top: 0 !important;
    margin-bottom: 50px !important;
}

.page-content-wrapper .wp-block-list:last-child,
.page-content-wrapper > .wp-block-list:last-child {
    margin-bottom: 0 !important;
}

.page-content-wrapper .wp-block-quote,
.page-content-wrapper > .wp-block-quote {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}

.page-content-wrapper .wp-block-code,
.page-content-wrapper .wp-block-preformatted,
.page-content-wrapper > .wp-block-code,
.page-content-wrapper > .wp-block-preformatted {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}

.page-content-wrapper .wp-block-image,
.page-content-wrapper > .wp-block-image {
    margin-top: 50px !important;
    margin-bottom: 50px !important;
}

/* すべての直接子要素にも間隔を適用 */
.page-content-wrapper > * {
    margin-top: 0;
    margin-bottom: 50px;
}

.page-content-wrapper > *:last-child {
    margin-bottom: 0;
}

/* 見出しは上マージンを75pxに */
.page-content-wrapper > h2,
.page-content-wrapper > h3,
.page-content-wrapper > h4 {
    margin-top: 75px !important;
}

.page-content-wrapper > h2:first-child,
.page-content-wrapper > h3:first-child,
.page-content-wrapper > h4:first-child {
    margin-top: 0 !important;
}

.page-content-wrapper a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.page-content-wrapper a:hover {
    color: #1d4ed8;
}

/* 固定ページのレスポンシブ対応 */
@media (max-width: 768px) {
    .page-content {
        padding: 1rem 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-content-wrapper {
        padding: 1.5rem;
    }
    
    .page-content-wrapper h2 {
        font-size: 1.3rem;
    }
    
    .page-content-wrapper h3 {
        font-size: 1.1rem;
    }
}

.post-content p,
.post-content .wp-block-paragraph,
.post-content .wp-block-paragraph p {
    margin-top: 0 !important;
    margin-bottom: 50px !important; /* 段落の間に50pxのスペース */
}

.post-content p:last-child,
.post-content .wp-block-paragraph:last-child,
.post-content .wp-block-paragraph:last-child p {
    margin-bottom: 0 !important; /* 最後の段落は下マージンなし */
}

.post-content ul,
.post-content ol,
.post-content .wp-block-list ul,
.post-content .wp-block-list ol {
    margin-top: 0 !important;
    margin-bottom: 50px !important; /* リストの下に50pxのスペース */
    padding-left: 2rem;
}

.post-content ul:last-child,
.post-content ol:last-child,
.post-content .wp-block-list:last-child ul,
.post-content .wp-block-list:last-child ol {
    margin-bottom: 0 !important; /* 最後のリストは下マージンなし */
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    margin-top: 50px; /* 引用の上に50pxのスペース */
    margin-bottom: 50px; /* 引用の下に50pxのスペース */
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #475569;
}

.post-content code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #dc2626;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 50px; /* コードブロックの上に50pxのスペース */
    margin-bottom: 50px; /* コードブロックの下に50pxのスペース */
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-content a {
    color: #3b82f6;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.post-content a:hover {
    border-bottom-color: #3b82f6;
}

/* 情報ボックス（コールアウト）スタイル */
.wp-block-shigoteku-info-box,
.info-box {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.info-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.info-box__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.info-box__icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.1);
}

.info-box__title {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    color: inherit !important;
}

/* 記事内に表示される情報ボックスのタイトルが.post-contentのスタイルの影響を受けないようにする */
.post-content .info-box__title,
.post-content .wp-block-shigoteku-info-box .info-box__title,
.post-content .info-box .info-box__title {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    color: inherit !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.info-box__content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.8;
}

.info-box__content p {
    margin: 0.75rem 0;
}

.info-box__content p:first-child {
    margin-top: 0;
}

.info-box__content p:last-child {
    margin-bottom: 0;
}

.info-box__content ul,
.info-box__content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

/* スタイルバリエーション */
.info-box--info {
    background: #ffffff;
    border: 2px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
}

.info-box--info .info-box__header {
    background: transparent;
    color: #1e40af;
}

.info-box--info .info-box__icon {
    background: rgba(59, 130, 246, 0.15);
}

.info-box--info .info-box__content {
    color: #334155;
}

.info-box--success {
    background: #ffffff;
    border: 2px solid #a7f3d0;
    border-left: 4px solid #10b981;
}

.info-box--success .info-box__header {
    background: transparent;
    color: #047857;
}

.info-box--success .info-box__icon {
    background: rgba(16, 185, 129, 0.15);
}

.info-box--success .info-box__content {
    color: #334155;
}

.info-box--warning {
    background: #ffffff;
    border: 2px solid #fde68a;
    border-left: 4px solid #f59e0b;
}

.info-box--warning .info-box__header {
    background: transparent;
    color: #92400e;
}

.info-box--warning .info-box__icon {
    background: rgba(245, 158, 11, 0.15);
}

.info-box--warning .info-box__content {
    color: #334155;
}

.info-box--tip {
    background: #ffffff;
    border: 2px solid #e9d5ff;
    border-left: 4px solid #8b5cf6;
}

.info-box--tip .info-box__header {
    background: transparent;
    color: #6b21a8;
}

.info-box--tip .info-box__icon {
    background: rgba(139, 92, 246, 0.15);
}

.info-box--tip .info-box__content {
    color: #334155;
}

.info-box--note {
    background: #ffffff;
    border: 2px solid #fbcfe8;
    border-left: 4px solid #ec4899;
}

.info-box--note .info-box__header {
    background: transparent;
    color: #9f1239;
}

.info-box--note .info-box__icon {
    background: rgba(236, 72, 153, 0.15);
}

.info-box--note .info-box__content {
    color: #334155;
}

/* エディタ内でのブロック表示を改善 */
.block-editor-page .wp-block-shigoteku-info-box {
    margin: 1.5rem 0;
    padding: 0;
    position: relative;
    min-height: 60px;
}

.block-editor-page .wp-block-shigoteku-info-box[data-wp-block] {
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: outline-color 0.2s ease;
}

.block-editor-page .wp-block-shigoteku-info-box[data-wp-block]:hover {
    outline-color: #3b82f6;
}

.block-editor-page .wp-block-shigoteku-info-box.is-selected {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .info-box__header {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .info-box__icon {
        font-size: 1.25rem;
        width: 28px;
        height: 28px;
    }

    .info-box__title {
        font-size: 1rem;
    }

    .info-box__content {
        padding: 0 1.25rem 1.25rem 1.25rem;
        font-size: 0.95rem;
    }
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 50px; /* 画像の上に50pxのスペース */
    margin-bottom: 50px; /* 画像の下に50pxのスペース */
}

/* WordPressブロックエディタのブロック要素にも間隔を適用（既存記事にも確実に適用） */
.post-content .wp-block-paragraph,
.post-content > .wp-block-paragraph {
    margin-top: 0 !important;
    margin-bottom: 25px !important;
}

.post-content .wp-block-paragraph:last-child,
.post-content > .wp-block-paragraph:last-child {
    margin-bottom: 0 !important;
}

.post-content .wp-block-heading h2,
.post-content .wp-block-heading h3,
.post-content .wp-block-heading h4,
.post-content > .wp-block-heading h2,
.post-content > .wp-block-heading h3,
.post-content > .wp-block-heading h4 {
    margin-top: 75px !important;
    margin-bottom: 1rem !important;
}

.post-content .wp-block-heading:first-child h2,
.post-content .wp-block-heading:first-child h3,
.post-content .wp-block-heading:first-child h4,
.post-content > .wp-block-heading:first-child h2,
.post-content > .wp-block-heading:first-child h3,
.post-content > .wp-block-heading:first-child h4 {
    margin-top: 0 !important;
}

.post-content .wp-block-list,
.post-content > .wp-block-list {
    margin-top: 0 !important;
    margin-bottom: 25px !important;
}

.post-content .wp-block-list:last-child,
.post-content > .wp-block-list:last-child {
    margin-bottom: 0 !important;
}

.post-content .wp-block-quote,
.post-content > .wp-block-quote {
    margin-top: 75px !important;
    margin-bottom: 50px !important;
}

.post-content .wp-block-code,
.post-content .wp-block-preformatted,
.post-content > .wp-block-code,
.post-content > .wp-block-preformatted {
    margin-top: 75px !important;
    margin-bottom: 50px !important;
}

.post-content .wp-block-image,
.post-content > .wp-block-image {
    margin-top: 75px !important;
    margin-bottom: 50px !important;
}

/* すべての直接子要素にも間隔を適用（確実に既存記事にも適用） */
.post-content > * {
    margin-top: 0;
    margin-bottom: 50px;
}

.post-content > *:last-child {
    margin-bottom: 0;
}

/* 見出しは上マージンを50pxに */
.post-content > h2,
.post-content > h3,
.post-content > h4 {
    margin-top: 75px !important;
}

.post-content > h2:first-child,
.post-content > h3:first-child,
.post-content > h4:first-child {
    margin-top: 0 !important;
}

/* 記事タグ */
.post-tags {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
}

.post-tags h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tags-list .tag {
    background: white;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.tags-list .tag:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* 記事フッター */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.post-share {
    margin-bottom: 2rem;
}

.post-share h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.share-button.twitter {
    background: #1da1f2;
    color: white;
}

.share-button.twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
}

.share-button.facebook {
    background: #1877f2;
    color: white;
}

.share-button.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
}

.share-button.hatena {
    background: #00a4de;
    color: white;
}

.share-button.hatena:hover {
    background: #0093c7;
    transform: translateY(-2px);
}

.share-icon {
    font-size: 1rem;
}

/* 記事ナビゲーション */
.post-navigation {
    margin-top: 2rem;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: block;
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* 関連記事 */
.related-posts {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.related-posts .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.related-image {
    height: 150px;
    background: linear-gradient(45deg, #f8fafc, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1rem;
}

.related-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.related-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.related-title a:hover {
    color: #3b82f6;
}

.related-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .single-post {
        padding: 2rem;
    }
    
    .post-title {
        font-size: 2.4rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .single-post {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .post-title {
        font-size: 2.2rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .related-posts {
        padding: 2rem 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .post-meta {
        justify-content: center;
    }
    
    .post-author {
        justify-content: center;
    }
}

/* アニメーションパーティクル */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 6s ease-in-out infinite;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-15px) translateX(5px);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-25px) translateX(-3px);
        opacity: 1;
    }
    75% {
        transform: translateY(-10px) translateX(8px);
        opacity: 0.6;
    }
}

/* 注目記事セクション */
.featured-articles {
    background: #f8fafc;
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* カテゴリーアーカイブページのスタイル */
.category-breadcrumb {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.category-breadcrumb .parent-category-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.category-breadcrumb .parent-category-link:hover {
    color: #1e40af;
    text-decoration: underline;
}

.category-breadcrumb .breadcrumb-separator {
    margin: 0 0.5rem;
    color: #94a3b8;
}

.category-breadcrumb .current-category {
    color: #1e293b;
    font-weight: 600;
}

.child-categories {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.child-categories-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.child-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.child-categories-list li {
    margin: 0;
    padding: 0;
}

.child-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.child-category-link:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateX(4px);
}

.child-category-link .category-count {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 400;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 注目記事カード */
.featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.card-image {
    height: 200px;
    background: linear-gradient(45deg, #f1f5f9, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .card-image img {
    transform: scale(1.05);
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #f1f5f9, #e2e8f0);
}

.placeholder-icon {
    font-size: 3rem;
    opacity: 0.5;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.card-category {
    background: linear-gradient(45deg, #3b82f6, #60a5fa);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-date,
.card-time {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #3b82f6;
}

.card-excerpt {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: none;
    margin-top: 0;
}

.card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    font-size: 1.2rem;
}

.author-name {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.read-more:hover {
    color: #2563eb;
    transform: translateX(4px);
}

/* 記事一覧セクション */
.articles-header {
    text-align: center;
    margin-bottom: 3rem;
}

.articles-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.articles-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}


/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .site-main {
        padding: 0 1.5rem;
    }
    
    .article-image {
        height: 160px;
    }
    
    .article-card:not(:has(.article-image)) .article-content {
        padding-top: 2rem;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    /* スマホではメインコンテンツを画面幅いっぱいに近づける */
    .site-main {
        max-width: 100%;
        width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
    }

    .content-area {
        width: 100%;
    }

    .articles-grid {
        /* スマホでは2列表示にする */
        grid-template-columns: repeat(2, 1fr);
        /* カード同士の余白を少し狭くする */
        gap: 1rem;
        /* 一覧全体の下余白も少しだけコンパクトにする */
        margin-bottom: 1.5rem;
    }

    /* 1件しかないとき：2列グリッドのまま1枚だけ左側に配置（見た目を2件・3件と揃える） */
    .articles-grid.articles-grid--one {
        /* 2列レイアウトを維持し、1枚だけ左カラムに入る */
        grid-template-columns: repeat(2, 1fr);
        /* 親のpaddingに従って左寄せ。幅制限は行わない */
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* 2件のとき：クラスは付けておき、将来の調整に備える（現状は通常と同じ2列） */
    .articles-grid.articles-grid--two {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-image {
        /* モバイルではカードが縦長になりすぎないように、画像をかなりコンパクトにする */
        height: 90px;
    }
    
    .article-card:not(:has(.article-image)) .article-content {
        padding-top: 2rem;
    }
    
    .article-content {
        /* 全体の縦長感をさらに抑えるため、余白を小さめにする（特に上を詰める） */
        padding: 0.4rem 0.7rem 0.7rem;
    }
    
    .article-title {
        /* 行数が多いタイトルでも高さを抑えるため、フォントサイズをさらに小さくする */
        font-size: 0.95rem;
    }
    
    .site-main {
        padding: 0 1rem;
    }

    /* スマホではカードの日付・更新マークを非表示（PC・タブレットでは表示） */
    .article-date-time {
        display: none;
    }

    /* 日付を消した分、タイトルとの間の余白も詰める */
    .article-meta {
        margin-bottom: 0.3rem;
    }

    /* 「最新記事」とカード一覧の間の余白も少しだけ詰める */
    .articles-header {
        margin-bottom: 1.5rem;
    }
}
/* featured-articlesやarticles-gridの余白・幅調整（主にPC/タブレット向け） */
.featured-articles {
  padding: 2rem 0.5rem;
}
.container {
  padding: 0 0.5rem;
}
.articles-header {
  margin-bottom: 2rem;
}
.articles-grid {
  gap: 1rem;
  margin-bottom: 2rem;
}
/* heroセクションのpadding調整 */
.hero-container {
  padding: 1rem 0.5rem;
}
.hero-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.hero-subtitle {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

/* featured-card, article-cardの高さ・余白調整（モバイル用の指定を上書きしないようにブレークポイントを分離） */
@media (min-width: 769px) {
  .featured-card,
  .article-card {
    height: auto;
    min-height: 260px;
    padding-bottom: 1rem;
  }
  .featured-card .card-image,
  .article-image {
    height: 140px;
  }
  .card-content,
  .article-content {
    padding: 1rem;
  }
}
  /* 主要な見出しや本文のフォントサイズ調整 */
  .section-title,
  .articles-title {
    font-size: 1.3rem;
  }
  .section-subtitle,
  .articles-subtitle {
    font-size: 1rem;
  }
  .post-title {
    font-size: 1.6rem;
  }
  .post-content {
    font-size: 0.98rem;
  }
  /* サイドバーやウィジェットの余白・幅調整 */
  .widget {
    margin-bottom: 1.2rem;
  }
  .widget-title {
    font-size: 0.98rem;
    padding-bottom: 0.5rem;
  }

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
} 

.news-section {
  background: #f8fafc;
  padding: 2.5rem 0 1.5rem 0;
}

/* PC・タブレット表示時のお知らせセクションの幅を制限 */
.news-section .container {
  max-width: 800px;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.news-date {
  color: #64748b;
  font-size: 0.95rem;
  min-width: 90px;
}
.news-title {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.news-title:hover {
  color: #1d4ed8;
}
@media (max-width: 768px) {
  .news-section {
    padding: 1.5rem 0 1rem 0;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 15 !important;
    background: #f8fafc !important;
    /* 位置を固定 */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  .news-item {
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.98rem;
  }
  .news-date {
    min-width: 70px;
    font-size: 0.9rem;
  }
  .news-title {
    font-size: 1rem;
  }
} 

.news-more {
  display: inline-block;
  margin-top: 1rem;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.news-more:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.news-item-card {
  display: flex;
  align-items: center;
  background: #f3f4f6;
  border-radius: 18px;
  margin-bottom: 1.2rem;
  padding: 0.7rem 1.2rem;
  gap: 1.2rem;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  transition: box-shadow 0.2s, background 0.2s;
}
.news-item-card:hover {
  background: #e0e7ef;
  box-shadow: 0 4px 16px rgba(59,130,246,0.08);
}
.news-date {
  color: #64748b;
  min-width: 90px;
  font-size: 0.98rem;
  font-weight: 500;
}
.news-badge {
  background: #f59e42;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.2rem 0.7rem;
  margin-right: 0.7rem;
}
.news-title {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  flex: 1;
  transition: color 0.2s;
  margin-right: 1.2rem;
}
.news-title:hover {
  color: #1d4ed8;
}
.news-more-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.news-more-link .arrow {
  font-size: 1.1rem;
  color: #1d4ed8;
  font-weight: bold;
}
@media (max-width: 768px) {
  .news-item-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.7rem 0.7rem;
    gap: 0.5rem;
    font-size: 0.98rem;
  }
  .news-title {
    margin-right: 0;
  }
  
  /* Read Moreを非表示 */
  .news-more-link {
    display: none !important;
  }
}

/* フッター */
.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    margin-top: auto; /* flexboxで下に固定 */
    padding: 2.5rem 0;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.site-info {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.site-info p {
    margin: 0;
    line-height: 1.6;
}

/* フッターのレスポンシブ対応 */
@media (max-width: 768px) {
    .site-footer {
        margin-top: auto; /* flexboxで下に固定 */
        padding: 2rem 0;
    }
    
    .site-footer .container {
        padding: 0 1rem;
    }
    
    .footer-links {
        margin-bottom: 1.5rem;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .footer-menu a {
        font-size: 0.85rem;
    }
    
    .site-info {
        font-size: 0.8rem;
    }
}

/* 管理画面（ブロックエディタ）用のスタイル */
/* 親要素の高さを設定 */
div.block-editor {
    height: calc(100vh - 32px) !important;
    min-height: 600px !important;
    display: block !important;
}

/* エディタコンテナの高さを設定 */
div.block-editor > #editor.block-editor_container {
    height: 100% !important;
    min-height: 600px !important;
    display: block !important;
}

/* カテゴリーアーカイブページのレスポンシブ対応 */
@media (max-width: 768px) {
    .category-breadcrumb {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .child-categories {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .child-categories-title {
        font-size: 1rem;
    }
    
    .child-categories-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .child-category-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* サイドバーのカテゴリーリストのレスポンシブ対応 */
    .widget_categories ul li.children {
        margin-left: 1rem;
    }
    
    .widget_categories ul li.children li {
        padding: 0.4rem 0.5rem;
        font-size: 0.85em;
    }
}

/* =========================================
   ページネーション（paginate_links）デザイン
   ========================================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2.5rem 0 3rem;
    font-size: 0.95rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    font-size: 1.1rem;
}

.pagination .page-numbers.dots {
    width: auto;
    height: auto;
    min-width: auto;
    border: none;
    box-shadow: none;
    background: transparent;
    color: #9ca3af;
}

@media (max-width: 768px) {
    .pagination {
        margin: 2rem 0 2.5rem;
        gap: 0.4rem;
    }

    .pagination .page-numbers {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
        box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
    }
}