/* トップページ (index.php) 専用スタイル */

/* ヒーローセクション */
.hero-section {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta-btn {
    display: inline-block;
    background-color: #8B4513;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.hero-cta-btn:hover,
.hero-cta-btn:focus {
    background-color: #5D2F0A;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* セクション共通 */
.news-section,
.greeting-section,
.quick-links-section,
.info-section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #8B4513;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #D2B48C;
}

/* 最新お知らせ */
.news-update-info {
    text-align: center;
    margin-bottom: 2rem;
}

.update-date {
    color: #666;
    font-size: 0.9rem;
}

.news-list {
    margin-bottom: 2rem;
}

.news-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    background-color: #f5f5f5;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.news-title a:hover,
.news-title a:focus {
    color: #8B4513;
}

.news-excerpt {
    color: #666;
    line-height: 1.6;
}

.news-more {
    text-align: center;
}

.btn-outline {
    display: inline-block;
    border: 2px solid #8B4513;
    color: #8B4513;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: #8B4513;
    color: white;
}

/* 代表者ご挨拶 */
.greeting-section {
    background-color: #f8f8f8;
}

.greeting-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
}

.greeting-image {
    text-align: center;
}

.greeting-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.greeting-text {
    flex: 1;
}

.greeting-message {
    font-size: 1.1rem;
    line-height: 2.2;
    color: #333;
    margin-bottom: 2rem;
}

.greeting-signature {
    margin-bottom: 2rem;
    text-align: right;
}

.signature-text {
    color: #8B4513;
    font-weight: 600;
    margin: 0;
}

.btn-primary {
    display: block;
    background-color: #8B4513;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    width: 80%;
    max-width: 400px;
    margin: 1rem auto;
    text-align: center;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #5D2F0A;
}

/* 主要ページへのリンク */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.quick-link-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.quick-link-item:hover {
    transform: translateY(-5px);
}

.quick-link-icon {
    margin-bottom: 1rem;
}

.quick-link-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.quick-link-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.quick-link-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.quick-link-btn {
    display: inline-block;
    background-color: #8B4513;
    color: white;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.quick-link-btn:hover,
.quick-link-btn:focus {
    background-color: #5D2F0A;
}

/* 基本情報 */
.info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 1rem;
}

.info-text {
    color: #333;
    line-height: 1.6;
}

.info-text a {
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-text a:hover,
.info-text a:focus {
    color: #5D2F0A;
}


/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .greeting-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .info-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .news-section,
    .greeting-section,
    .quick-links-section,
    .info-section {
        padding: 2rem 0;
    }
    
    .quick-link-item {
        padding: 1.5rem;
    }
    
    .info-item {
        padding: 1.5rem;
    }
}