/* 基本スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
}

/* コンテナスタイル */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ヘッダースタイル */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95);
}

/* ナビゲーションスタイル */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

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

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}


/* セクションスタイル 
.section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

.section p {
    max-width: 800px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.2rem;
}

*/
/* セクション間隔の調整 */
.section {
    min-height: 100vh;
    padding: 100px 20px;
    box-sizing: border-box;
    position: relative;
}

#home {
    padding-top: 0;
    padding-bottom: 0;
    height: 100vh; /* 高さを固定 */
}

#about {
    padding-top: 120px;
}

#history {
    padding-top: 120px;
}

#links {
    padding-top: 120px;
}

#contact {
    padding-top: 120px;
}

/* ナビゲーションのスタイル調整 */
.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.nav-links a:hover {
    color: #3498db;
}

/* アクティブなナビゲーションリンク */
.nav-links a.active {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

/* スクロールインジケータの位置調整 */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: white;
    font-size: 24px;
}

/* ボタンスタイル */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #2980b9;
}

/* セクション背景色 */
#home {
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

#about {
    background-color: #ecf0f1;
}

#services {
    background-color: #f5f5f5;
}

#contact {
    background-color: #ecf0f1;
}

/* スライドショーのスタイル */
.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0; /* 初期状態では透明 */
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1; /* アクティブなスライドのみ表示 */
}

/* 矢印ボタン */
.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slide-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* ドットインジケーター */
.dots-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* 特徴ボックススタイル */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 0;
    width: 100%;
    max-width: 1200px;
}

.feature-box {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 20px;
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box h3 {
    margin: 20px 0;
    color: #2c3e50;
}

.feature-icon {
    font-size: 3rem;
    color: #3498db;
}

/* お問い合わせフォームスタイル */
.contact-form {
    width: 100%;
    max-width: 1000px;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-right: auto;
    margin-left: auto;
    margin-top: 20px;
}

.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;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.form-info {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.email-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.email-link:hover {
    text-decoration: underline;
}

/* スクロールインジケーターとトップに戻るボタン */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
    color: white;
    font-size: 24px;
}

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

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .section h2 {
        font-size: 2.5rem;
    }
    
    .section p {
        font-size: 1rem;
    }
    
    .feature-box {
        min-width: 250px;
    }
    
    .slide-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* スマートフォン向け */
@media (max-width: 480px) {
    .section h2 {
        font-size: 2rem;
    }
    
    .slide-arrow {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* 関連団体リンクスタイル */
.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 30px;
}

.link-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.link-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 15px;
}

.link-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.link-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

.link-card .btn {
    display: inline-block;
    padding: 10px 25px;
}

/* 沿革タイムラインスタイル - 修正版 */
.timeline {
    max-width: 800px;
    margin: 80px auto 0;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #3498db;
    top: 0;
}

.timeline-item {
    width: 100%;
    margin-bottom: 100px; /* 項目間の余白を増やす */
    position: relative;
    clear: both;
    padding-top: 20px; /* 上部余白を増やす */
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 2;
    text-align: center;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 30px;
}

.timeline-item:nth-child(odd) .timeline-content {
    float: right;
    margin-right: 0;
    margin-left: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
    float: left;
    margin-left: 0;
    margin-right: 5%;
}

.timeline-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.timeline-content p {
    margin-bottom: 0;
    text-align: left;
    font-size: 1rem;
}

/* 関連団体リンクスタイル */
.links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
    padding: 0 20px;
}

.link-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.link-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 15px;
}

.link-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.link-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
    text-align: center;
}

.link-card .btn {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 10px;
}

/* レスポンシブ対応 - タイムライン修正 */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-date {
        left: 20px;
        transform: translateX(-50%);
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        float: right !important;
        margin-left: 50px !important;
        margin-right: 0 !important;
    }
    
    .link-card {
        max-width: 100%;
    }
}

/* セクション間の間隔調整 */
#about, #history, #links, #contact {
    margin-top: 100px;
    padding-top: 100px;
}

/* クリアフィックス */
.timeline:after {
    content: "";
    display: table;
    clear: both;
}

.timeline-item:after {
    content: "";
    display: table;
    clear: both;
}