/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #eeeeee;
    line-height: 1.6;
}

/* ヘッダー */
.header {
    position: absolute;   /*この行がスクロール追従不要 */
    top: 0;
    right: 0;
    z-index: 100;
    padding: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.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;
}

.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: #333;
}

/* 最新記事セクション */
.latest-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-item {
    background: white;
    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;
}

.article-item h3 {
    padding: 20px;
    font-size: 1.1rem;
    color: #333;
}

/* ふとブログとはセクション */
.about-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.about-content {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 40px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 20px;
    text-align: center;
}

.about-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.7;
}

/* お問い合わせセクション */
.contact-container {
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    padding: 60px 20px;
}

.contact-container h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-container p {
    font-size: 1.1rem;
    color: #000000;
    margin-bottom: 20px;
}

.contact-button {
    background-color: #1D9BF0;
    color: rgb(255, 255, 255);
    padding: 15px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-button:hover {
    background-color: #33B2FF;
    box-shadow: 0 0 15px #1D9BF0;
}

/* フッター */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .social-icons {
        gap: 5px;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
    }
    
    .social-icons img {
        width: 20px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-content {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    .about-content p {
        font-size: 0.9rem;
    }
    
    .contact-section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 95%;
    }
    
    .latest-section {
        padding: 40px 15px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .about-content h2 {
        font-size: 1.3rem;
    }
}