/* 
 * KAZUSHI ODATE ポートフォリオサイト
 * スタイルシート
 */

/* ===== 基本設定 ===== */
:root {
    /* カラースキーム */
    --color-primary: #1E3A8A;      /* メインカラー：深いブルー */
    --color-secondary: #10B981;    /* アクセントカラー：ビビッドなグリーン */
    --color-light: #F3F4F6;        /* ライトグレー */
    --color-dark: #1F2937;         /* ダークグレー */
    --color-highlight: #F59E0B;    /* ハイライトカラー：オレンジ */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray: #6B7280;
    
    /* RGB値 (アニメーション用) */
    --primary-color-rgb: 30, 58, 138;
    --secondary-color-rgb: 16, 185, 129;
    --highlight-color-rgb: 245, 158, 11;
    --accent-color: var(--color-secondary);
    --accent-color-rgb: var(--secondary-color-rgb);
    
    /* ダークモード用の色 */
    --color-bg-dark: #121212;
    --color-text-dark: #E5E7EB;
    --color-primary-dark: #3B82F6;
    --color-secondary-dark: #34D399;
    --color-card-dark: #1F2937;
    --color-border-dark: #374151;
    
    /* フォント */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-accent: 'Roboto', sans-serif;
    
    /* サイズ */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-white);
    background-color: #000000;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* ダークモード */
body.dark-mode {
    background-color: var(--color-bg-dark);
    color: var(--color-text-dark);
}

body.dark-mode .header,
body.dark-mode .footer {
    background-color: rgba(18, 18, 18, 0.98) !important;
}

body.dark-mode .section-title,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--color-text-dark);
}

body.dark-mode .field-card,
body.dark-mode .project-card,
body.dark-mode .blog-card,
body.dark-mode .info-box,
body.dark-mode .blog-sidebar-box {
    background-color: var(--color-card-dark);
    border-color: var(--color-border-dark);
}

body.dark-mode .btn-primary {
    background-color: var(--color-primary-dark);
}

body.dark-mode .btn-secondary {
    background-color: var(--color-secondary-dark);
}

body.dark-mode .nav a,
body.dark-mode .footer a {
    color: var(--color-text-dark);
}

body.dark-mode .nav a:hover,
body.dark-mode .footer a:hover {
    color: var(--color-secondary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
    background-color: #000000;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--color-white);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-secondary);
}

.bg-light {
    background-color: #000000;
}

.bg-primary {
    background-color: #000000;
    color: var(--color-white);
}

.light {
    color: var(--color-white);
}

.lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 30px;
}

/* ===== ボタン ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-light {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-light:hover {
    background-color: var(--color-light);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== ヘッダー ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.header .nav-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-dark);
    position: relative;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav ul li a:hover {
    color: var(--color-primary);
}

.nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.menu-toggle.active {
    transform: rotate(90deg);
    color: var(--color-white);
}

/* ===== ヒーローセクション ===== */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
    position: relative;
}

/* ParticleText positioning within hero */
#stage,
#text,
#input {
    position: absolute;
}

#stage {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* behind hero content but above background */
}

#text {
    z-index: 0; /* hidden canvas for text sampling */
    display: none;
}

#input {
    z-index: 3; /* above hero content if needed */
    position: absolute;
    text-transform: uppercase;
    width: 90%;
    bottom: 20px;
    background: none;
    outline: none;
    border: none;
    font-size: 30px;
    color: #222;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid #333;
    left: 5%;
}

/* 流体シミュレーション用キャンバス */
[id^="fluid-canvas-"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

/* セクション固有の流体設定 */
#fluid-canvas-hero {
    opacity: 1.0;
    mix-blend-mode: screen;
}

#fluid-canvas-about {
    opacity: 1.0;
    mix-blend-mode: screen;
}

#fluid-canvas-fields {
    opacity: 1.0;
    mix-blend-mode: screen;
}

#fluid-canvas-projects {
    opacity: 1.0;
    mix-blend-mode: screen;
}

#fluid-canvas-contact {
    opacity: 1.0;
    mix-blend-mode: screen;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

/* セクション内コンテンツのz-index調整 */
.section .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.typewriter {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.hero-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-tags span {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 50px;
    margin: 5px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: var(--color-white);
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ===== Aboutセクション ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.profile-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.skills {
    margin-top: 30px;
}

.skills h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.skill-tags span {
    background-color: var(--color-light);
    color: var(--color-dark);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-light);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* ===== 活動分野セクション ===== */
.fields {
    padding: 100px 0;
    position: relative;
    /* アニメーションのカクつきを防ぐため、セクション全体をGPUレンダリングの対象にする */
    transform: translate3d(0, 0, 0);
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    /* 3D的な奥行きを表現するために追加 */
    perspective: 1200px;
}

.field-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* JSでアニメーションさせるための初期状態 */
    opacity: 0;
    /* アニメーションのパフォーマンスをブラウザに伝える */
    will-change: transform, opacity;
    transition: all 0.3s ease;
}

.field-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.field-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.field-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-white);
}

.field-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.field-link {
    display: inline-block;
    color: var(--color-secondary);
    font-weight: 500;
}

.field-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.field-link:hover i {
    transform: translateX(5px);
}

/* ===== プロジェクトセクション ===== */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(--color-light);
    color: var(--color-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 25px;
    color: var(--color-white);
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    background-color: var(--color-light);
    color: var(--color-primary);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-white);
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.project-link {
    color: var(--color-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.project-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

.projects-more {
    text-align: center;
    margin-top: 50px;
}

/* ===== Global Bunnyセクション ===== */
.global-bunny-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.global-bunny-text {
    flex: 1;
}

.global-bunny-text .section-title::after {
    background-color: var(--color-white);
}

.global-bunny-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature i {
    font-size: 1.5rem;
}

.global-bunny-image {
    flex: 1;
}

.global-bunny-image img {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===== お問い合わせセクション ===== */
.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    margin-bottom: 40px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-social {
    display: flex;
    gap: 15px;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* ===== フッター ===== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--color-light);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--color-light);
}

.footer-links ul li a:hover {
    color: var(--color-secondary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.footer .social-icon {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.footer .social-icon:hover {
    background-color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--color-gray);
    font-size: 0.9rem;
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .typewriter {
        font-size: 1.5rem;
    }
    
    .about-content,
    .global-bunny-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image,
    .global-bunny-image {
        margin-bottom: 50px;
    }
    
    .profile-image {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --header-height: 70px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-wrapper {
        display: none;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(30, 58, 138, 0.98);
        backdrop-filter: blur(10px);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav.active {
        transform: translateX(0);
    }
    
    .nav ul {
        flex-direction: column;
        padding: 40px 20px;
        height: 100%;
        justify-content: flex-start;
        gap: 30px;
    }
    
    .nav ul li a {
        font-size: 1.2rem;
        color: var(--color-white);
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-language-switcher {
        display: block;
        position: fixed;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1000;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .typewriter {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .fields-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .global-bunny-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .social-icons,
    .contact-content {
        justify-content: center;
    }
    
    /* モバイルでは複雑なアニメーションを調整 */
    .fields-grid {
        perspective: none;
    }
    
    .field-card {
        /* モバイルでも表示されるように初期値を上書き */
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .typewriter {
        font-size: 1.1rem;
    }
    
    .hero-tags span {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .project-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== ブログセクション ===== */
.blog-section {
    padding: var(--section-padding);
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.blog-header p {
    font-size: 1.1rem;
    color: var(--color-gray);
    max-width: 700px;
    margin: 0 auto;
}

.blog-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* ブログ記事一覧 */
.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.blog-featured {
    margin-bottom: 40px;
}

.blog-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: var(--color-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-featured-image {
    height: 100%;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-featured-content {
    padding: 30px;
}

.blog-featured-content .blog-date {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-featured-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.blog-featured-content p {
    margin-bottom: 20px;
}

.blog-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

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

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

.blog-card-content {
    padding: 20px;
}

.blog-category {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.blog-date {
    color: var(--color-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-card-content p {
    margin-bottom: 15px;
    color: var(--color-gray);
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--color-secondary);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* ブログサイドバー */
.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-sidebar-box {
    background-color: var(--color-light);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.blog-sidebar-box h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.blog-sidebar-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-secondary);
}

.blog-search form {
    display: flex;
    gap: 10px;
}

.blog-search input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.blog-search button {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    padding: 0 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.blog-search button:hover {
    background-color: var(--color-secondary);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--color-primary);
}

.category-count {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.popular-posts {
    list-style: none;
}

.popular-posts li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.popular-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-post-image {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
}

.popular-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-post-content h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.popular-post-content .blog-date {
    font-size: 0.8rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    display: inline-block;
    background-color: var(--color-light);
    color: var(--color-dark);
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ページネーション */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.blog-pagination ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.blog-pagination a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-light);
    color: var(--color-dark);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.blog-pagination a:hover,
.blog-pagination a.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ブログ詳細ページ */
.blog-detail-section {
    padding: var(--section-padding);
}

.blog-detail-header {
    margin-bottom: 40px;
    text-align: center;
}

.blog-detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--color-gray);
}

.blog-detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-detail-header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.blog-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.blog-main-content {
    background-color: var(--color-white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.blog-feature-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.blog-feature-image img {
    width: 100%;
    height: auto;
}

.blog-text h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
}

.blog-text h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
}

.blog-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.blog-text ul,
.blog-text ol {
    margin: 0 0 20px 20px;
}

.blog-text li {
    margin-bottom: 10px;
}

.blog-text blockquote {
    margin: 30px 0;
    padding: 20px;
    border-left: 5px solid var(--color-primary);
    background-color: var(--color-light);
    font-style: italic;
}

.blog-text img {
    max-width: 100%;
    border-radius: 4px;
    margin: 20px 0;
}

.blog-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.blog-share h3 {
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.share-button:hover {
    opacity: 0.8;
}

.share-twitter {
    background-color: #1DA1F2;
}

.share-facebook {
    background-color: #1877F2;
}

.share-linkedin {
    background-color: #0A66C2;
}

.share-line {
    background-color: #06C755;
}

/* 関連記事 */
.related-blogs {
    margin-top: 60px;
}

.related-blogs h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.related-blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ダークモードトグル */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.dark-mode-toggle:hover {
    background-color: var(--color-secondary);
}

body.dark-mode .dark-mode-toggle {
    background-color: var(--color-secondary-dark);
}

/* レスポンシブデザイン - ブログ関連 */
@media screen and (max-width: 991px) {
    .blog-content {
        grid-template-columns: 1fr;
    }
    
    .blog-featured-card {
        grid-template-columns: 1fr;
    }
    
    .blog-featured-image {
        height: 300px;
    }
    
    .blog-detail-content {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .related-blog-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 767px) {
    .blog-featured-image {
        height: 200px;
    }
    
    .blog-featured-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-detail-header h1 {
        font-size: 2rem;
    }
    
    .blog-main-content {
        padding: 20px;
    }
}

/* プレゼンテーション資料プレビュー（トップページ） */
.presentation-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.presentation-preview-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.presentation-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.presentation-preview-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.presentation-preview-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.presentation-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.presentation-preview-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.presentation-preview-content {
    padding: 20px;
}

.presentation-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: 5px;
    margin-bottom: 10px;
}

.presentation-preview-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.presentation-date {
    font-size: 0.85rem;
    color: #666;
}

/* 言語切替ボタン */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-switcher .lang-switch {
    padding: 8px 12px;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 20px;
    cursor: pointer;
    margin: 0 3px;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-switcher .lang-switch:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.language-switcher .lang-switch.active {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
    font-weight: 600;
}

.language-switcher .lang-switch i {
    font-size: 0.8rem;
}

/* モバイルメニュー内の言語切替 */
.mobile-language-switcher {
    display: none;
    margin-top: 20px;
    text-align: center;
    position: fixed;
    top: calc(var(--header-height) + 20px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.mobile-language-switcher .lang-switch {
    padding: 10px 15px;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    font-weight: 500;
}

.mobile-language-switcher .lang-switch:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.mobile-language-switcher .lang-switch.active {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
    font-weight: 600;
}

/* レスポンシブ対応 */
@media (max-width: 991px) {
    .language-switcher {
        display: none;
    }
    
    .mobile-language-switcher {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-language-switcher.show {
        opacity: 1;
        visibility: visible;
    }
}

/* External link styles */
.external-link {
    color: var(--color-secondary);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: var(--color-highlight);
}

/* ===== お知らせセクション ===== */
.news {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
}

.news::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--secondary-color-rgb), 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.news .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.news .section-title i {
    color: var(--color-secondary);
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.news-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 45%;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 55%;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(var(--secondary-color-rgb), 0.5);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -25px;
}

.timeline-marker i {
    color: var(--color-white);
    font-size: 1.2rem;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(var(--secondary-color-rgb), 0.2);
}

.timeline-date {
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-item:nth-child(even) .timeline-date {
    justify-content: flex-start;
}

.timeline-item:nth-child(odd) .timeline-date {
    justify-content: flex-end;
}

.badge-new {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: var(--color-white);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.timeline-title {
    color: var(--color-white);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.timeline-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.timeline-item:nth-child(odd) .timeline-tags {
    justify-content: flex-end;
}

.tag {
    background: rgba(var(--secondary-color-rgb), 0.2);
    color: var(--color-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(var(--secondary-color-rgb), 0.3);
}

.timeline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.timeline-link:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(var(--secondary-color-rgb), 0.4);
}

.timeline-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.timeline-link:hover i {
    transform: translateX(3px);
}

.news-footer {
    text-align: center;
    margin-top: 3rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    background: transparent;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--secondary-color-rgb), 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 20px !important;
        text-align: left !important;
        left: 0 !important;
    }
    
    .timeline-marker {
        left: -5px !important;
        right: auto !important;
    }
    
    .timeline-tags {
        justify-content: flex-start !important;
    }
    
    .timeline-date {
        justify-content: flex-start !important;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
}
