/* index.html専用スタイル */

/* メインセクション */
.about-main {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    max-width: 900px;
    width: 100%;
    margin: 3rem auto 2rem auto;
    background: rgba(42, 42, 42, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(130, 181, 209, 0.1);
    padding: 2rem 2.5rem; /* reverted to original spacing */
    flex-wrap: wrap;
    border: 1px solid rgba(130, 181, 209, 0.2);
    position: relative;
    min-height: auto;
    box-sizing: border-box;
}

.about-main > div {
    position: relative;
    z-index: 2;
    min-width: 0;
    flex: 1;
}

.about-main > div:first-child {
    flex: 0 0 auto;
}

.about-main > div:last-child {
    flex: 1 1 auto;
    min-width: 180px;
}

.about-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(130, 181, 209, 0.5), transparent);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Profile image styling is unified in styles/main.css (.profile-image). */

.about-main .name {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.about-main .desc {
    font-size: 0.98rem;
    color: #b0b0b0;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* SNSセクション */
.sns-section {
    max-width: 900px;
    margin: 2rem auto;
    background: rgba(42, 42, 42, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(130, 181, 209, 0.1);
    padding: 1.5rem 2.5rem;
    border: 1px solid rgba(130, 181, 209, 0.2);
}

.sns-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.sns-list a {
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1rem;
    padding: 0.2em 0.7em;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    color: #e0e0e0;
    background: #3a3a3a;
}

.sns-list a:visited {
    color: #e0e0e0;
    background: #3a3a3a;
}

.sns-list a:hover {
    background: #82b5d1;
    color: #1a1a1a;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .about-main {
        max-width: calc(100vw - 2rem);
        margin: 2rem 1rem;
        padding: 1.5rem; /* reverted to original spacing (tablet) */
        gap: 1.5rem;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .about-main {
        flex-direction: column;
        align-items: center;
        max-width: calc(100vw - 2rem);
        margin: 2rem 1rem;
        padding: 1.5rem; /* reverted to original spacing (mobile) */
        gap: 1.5rem;
        box-sizing: border-box;
    }
    
    .about-main > div:last-child {
        min-width: 0;
        width: 100%;
    }

    /* Profile image responsive sizing unified in styles/main.css */

    .about-main .name {
        font-size: 1.2rem;
    }

    .sns-section {
        padding: 1rem 0.5rem;
    }
}

/* ニュースセクション */
.news-section {
    max-width: 950px;
    margin: 3rem auto;
    background: rgba(42, 42, 42, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(130, 181, 209, 0.15);
}

.news-section h2 {
    color: #82b5d1;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* 年フィルターボタン */
.news-year-filters {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.year-filter-btn {
    background: rgba(26, 26, 26, 0.6);
    color: #b0b0b0;
    border: 1px solid rgba(130, 181, 209, 0.3);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.year-filter-btn:hover {
    background: rgba(130, 181, 209, 0.15);
    border-color: rgba(130, 181, 209, 0.5);
    color: #e0e0e0;
}

.year-filter-btn.active {
    background: linear-gradient(135deg, #82b5d1, #9da8c7);
    color: #1a1a1a;
    border-color: transparent;
    font-weight: 600;
}

.year-filter-btn:active {
    transform: scale(0.97);
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.6);
    border-radius: 12px;
    border-left: 4px solid #82b5d1;
    transition: all 0.25s ease;
}

.news-item:hover {
    background: rgba(26, 26, 26, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(130, 181, 209, 0.15);
}

.news-date {
    color: #82b5d1;
    font-weight: 600;
    font-size: 0.95rem;
    min-width: 90px;
    margin-top: 0.2rem;
    font-family: 'Courier New', monospace;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-content p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.news-loading,
.news-error {
    background: rgba(26, 26, 26, 0.6);
    border-radius: 12px;
    margin: 1rem 0;
}

.news-loading .fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* もっと読み込むボタン */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(130, 181, 209, 0.2);
}

.load-more-btn {
    background: linear-gradient(135deg, #82b5d1, #9da8c7);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #9da8c7, #82b5d1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(130, 181, 209, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(130, 181, 209, 0.2);
}

.load-more-btn i {
    transition: transform 0.25s ease;
}

.load-more-btn:hover i {
    transform: translateY(2px);
}

/* ニュース動画スタイル */
.news-video {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: rgba(26, 26, 26, 0.8);
}

.news-video iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
}

/* ニュースセクション レスポンシブ */
@media (max-width: 768px) {
    .about-main,
    .sns-section,
    .news-section {
        max-width: calc(100vw - 2rem);
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 2rem;
        box-sizing: border-box;
    }
    
    .news-year-filters {
        gap: 0.6rem;
    }
    
    .year-filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .news-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .news-date {
        min-width: auto;
        margin-top: 0;
        font-size: 0.9rem;
    }
    
    .news-content h3 {
        font-size: 1rem;
    }
    
    .news-content p {
        font-size: 0.9rem;
    }
    
    .load-more-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .news-video iframe {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .about-main,
    .sns-section,
    .news-section {
        max-width: calc(100vw - 1rem);
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        padding: 1.5rem;
        box-sizing: border-box;
    }
    
    .news-section h2 {
        font-size: 1.5rem;
    }
    
    .news-year-filters {
        gap: 0.5rem;
    }
    
    .year-filter-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .news-item {
        padding: 1rem;
    }
    
    .load-more-container {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .load-more-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .news-video iframe {
        height: 160px;
    }
}