/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #2d2d2d; /* index.cssと同じダーク背景 */
    color: #e0e0e0;            /* index.cssと同じ文字色 */
    line-height: 1.6;
}

/* ヘッダー */
.header {
    position: absolute;  /*この行がスクロール追従不要 */
    top: 0;
    right: 0;
    z-index: 100;
    padding: 20px;
    left: 0; /* 全幅に */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 変更: 左右に分散 */
    gap: 10px;
    flex-wrap: nowrap;             /* 変更: 折り返し禁止 */
}

/* 追加: Blog/Help 丸ボタン */
.nav-icons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;                /* 追加: 縮小禁止 */
}

.nav-icons .circle-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 9999px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    transition: opacity 0.3s ease, transform 0.2s ease;
    white-space: nowrap;          /* 追加: テキスト折り返し禁止 */
}

.nav-icons .circle-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.social-icons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;               /* 追加: 縮小禁止 */
    align-items: center;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 50%;
    transition: opacity 0.3s ease;
    flex-shrink: 0;               /* 追加: アイコン縮小禁止 */
}

.social-icons a:hover {
    opacity: 0.7;
}

.social-icons img {
    width: 24px;
    height: auto;
}

.YouTube {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-logo {
    max-width: 1000px;
    width: 90%;
    margin-top: -70px;
    
    height: auto;
}

/* セクション共通 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: #9bc6e9; /* index.cssのh2色に合わせる */
}

/* 最新記事セクション */
.latest-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background: #424242; /* ダーク背景 */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.07);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-item {
    background: #424242; /* ダーク背景 */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
}

.article-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px; /* 追加: 画像にも角丸を適用 */
    display: block; /* 追加: 下の隙間を消す */
}

.article-item h3 {
    padding: 20px;
    font-size: 1.1rem;
    color: #e0e0e0; /* 明るい文字色 */
}

/* 記事選択セクション */

.Blog_sentaku {
    margin: 20px;
    text-align: center; /* h2要素を中央揃えにするため */
}

.Blog_sentaku h2 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #9bc6e9; /* index.cssのh2色に合わせる */
}

/* 記事一覧ページ専用スタイル */
.blog-page-container {
    display: flex;
    max-width: 1200px;
    margin: 100px auto 20px auto; /* ヘッダーと重ならないように上マージンを追加 */
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
}

.blog-main-content {
    flex: 3;
    background: #424242; /* ダーク背景 */
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    color: #ffffff; /* index.cssの本文色 */
}

.blog-main-content h2 {
    font-size: 24px;
    color: #9bc6e9; /* index.cssのh2色 */
    margin-bottom: 20px;
    border-bottom: 2px solid #ffffff; /* 線色も明るく */
    padding-bottom: 10px;
}

.articles-list {
    aspect-ratio: 16 / 9; /* 幅:高さ = 16:9 */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* article-itemの基本スタイルはindex.cssから継承 */

.articles-list .latest-article-item {
    flex-basis: 100%;
    aspect-ratio: 16 / 9; /* 幅:高さ = 16:9 */
}

.articles-list .latest-article-item a {
    display: flex;
    gap: 20px;
    align-items: center;
}

.articles-list .latest-article-item img { 
    width: 100%; /*変えたっ方がいいかも*/
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
}

.articles-list .latest-article-item h3 {
    padding: 0;
    font-size: 1.5rem;
}

.articles-list .regular-article-item {
    flex-basis: calc(50% - 10px);
}

.blog-sidebar {
    flex: 1;
    background-color: #424242; /* ダーク背景 */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px; /* ヘッダーの高さを考慮 */
    color: #e0e0e0; /* 明るい文字色 */
}

.blog-sidebar h3 {
    font-size: 18px;
    color: #66b3ff; /* index.cssのsidebar見出し色 */
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #66b3ff;
    padding-bottom: 8px;
}

.blog-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.blog-sidebar ul li {
    margin-bottom: 8px;
}

.blog-sidebar ul li a {
    text-decoration: none;
    color: #66b3ff; /* index.cssのsidebarリンク色 */
    transition: color 0.2s;
}

.blog-sidebar ul li a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}



/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header {
        padding: 15px 10px;       /* 余白調整 */
    }
    
    .header-inner {
        gap: 8px;                 /* 間隔調整 */
    }
    
    .nav-icons {
        gap: 8px;
    }
    
    .nav-icons .circle-link {
        height: 38px;             /* サイズ調整 */
        padding: 0 12px;
        font-size: 12px;
    }
    
    .social-icons {
        gap: 8px;                 /* アイコン間隔調整 */
    }
    
    .social-icons a {
        width: 38px;              /* アイコンサイズ調整 */
        height: 38px;
    }
    
    .social-icons img {
        width: 22px;              /* 画像サイズ調整 */
    }
    
    .YouTube {
        width: 24px;
        height: 24px;
    }

    .blog-page-container {
        flex-direction: column;
        margin-top: 80px;
    }

    .blog-sidebar {
        width: 100%;
        position: static; /* スティッキー解除 */
    }

    .articles-list .latest-article-item a {
        flex-direction: column;
    }

    .articles-list .latest-article-item img {
        width: 100%;
    }

    .articles-list .regular-article-item {
        flex-basis: 100%;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 12px 8px;        /* さらに余白調整 */
    }
    
    .header-inner {
        gap: 6px;                 /* 間隔調整 */
    }
    
    .nav-icons {
        gap: 6px;
    }
    
    .nav-icons .circle-link {
        height: 36px;             /* サイズ調整 */
        padding: 0 10px;
        font-size: 11px;
    }
    
    .social-icons {
        gap: 6px;                 /* アイコン間隔調整 */
    }
    
    .social-icons a {
        width: 36px;              /* アイコンサイズ調整 */
        height: 36px;
    }
    
    .social-icons img {
        width: 20px;              /* 画像サイズ調整 */
    }
    
    .YouTube {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 6px;        /* 最小余白 */
    }
    
    .header-inner {
        gap: 4px;                 /* 最小間隔 */
    }
    
    .nav-icons {
        gap: 4px;
    }
    
    .nav-icons .circle-link {
        height: 34px;             /* 最小サイズ */
        padding: 0 8px;
        font-size: 10px;
    }
    
    .social-icons {
        gap: 4px;                 /* アイコン間隔調整 */
    }
    
    .social-icons a {
        width: 34px;              /* アイコンサイズ調整 */
        height: 34px;
    }
    
    .social-icons img {
        width: 18px;              /* 画像サイズ調整 */
    }
    
    .YouTube {
        width: 20px;
        height: 20px;
    }
}

/* 超小画面対応 */
@media (max-width: 360px) {
    .header {
        padding: 8px 4px;         /* 超小画面用余白 */
    }
    
    .header-inner {
        gap: 3px;                 /* 超小画面用間隔 */
    }
    
    .nav-icons {
        gap: 3px;
    }
    
    .nav-icons .circle-link {
        height: 32px;             /* 超小画面用サイズ */
        padding: 0 6px;
        font-size: 9px;
    }
    
    .social-icons {
        gap: 3px;                 /* アイコン間隔調整 */
    }
    
    .social-icons a {
        width: 32px;              /* アイコンサイズ調整 */
        height: 32px;
    }
    
    .social-icons img {
        width: 16px;              /* 画像サイズ調整 */
    }
    
    .YouTube {
        width: 18px;
        height: 18px;
    }
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #232323; /* index.cssのfooter背景色 */
    color: #e0e0e0;            /* index.cssのfooter文字色 */
}
