/* page-top.css - トップページ専用スタイル */

/* ヒーローセクション */
.site-hero-bg {
    min-height: 500px;
    background-color: transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.text-container {
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 20px 30px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.site-hero-overlay {
    background-color: transparent;
    padding: 0;
    text-align: center;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.site-hero-content .text-container {
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 20px 30px;
    border-radius: 10px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 背景画像の設定 */
.site-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/purposeful_image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.site-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: -1;
}

.site-hero-bg h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 15px;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.8), 1px -1px 0 rgba(0, 0, 0, 0.8),
                -1px 1px 0 rgba(0, 0, 0, 0.8), 1px 1px 0 rgba(0, 0, 0, 0.8),
                0 0 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.05em;
    line-height: 1.5;
}

.site-hero-bg h2 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.5;
    text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.8), 1px -1px 0 rgba(0, 0, 0, 0.8),
                -1px 1px 0 rgba(0, 0, 0, 0.8), 1px 1px 0 rgba(0, 0, 0, 0.8),
                0 0 8px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.05em;
}

/* メインナビゲーションボックス */
.site-main-nav-section {
    padding: 25px 20px;
    background-color: var(--background-white);
}

.site-main-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-main-nav-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    background-color: var(--background-light);
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--secondary-color);
}

.site-main-nav-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.site-main-nav-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.site-main-nav-box h3 {
    font-size: 20px;
    margin-bottom: 0;
    color: var(--secondary-color);
}

/* カード全体をリンク化するためのスタイル */
.site-column-card {
    position: relative;
}

.site-column-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ホバーエフェクトの調整 */
.site-column-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .site-main-nav-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .site-main-nav-section {
        padding: 30px 20px;
    }
}

    /* ヒーローセクションのレスポンシブ対応 */
    .site-hero-bg.hero-top {
        min-height: 350px;
    }
    
    .site-hero-bg .text-container {
        padding: 15px 20px;
    }
    
    .site-hero-bg h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .site-hero-bg h2 {
        font-size: 18px;
    }

@media (min-width: 769px) and (max-width: 1024px) {
    .site-main-nav-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .site-main-nav-box {
        padding: 20px 15px;
    }
    
    .site-main-nav-icon {
        font-size: 32px;
    }

    .site-hero-bg.hero-top {
        min-height: 300px;
    }
    
    .site-hero-bg .text-container {
        padding: 12px 15px;
        max-width: 90%;
    }
    
    .site-hero-bg h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .site-hero-bg h2 {
        font-size: 16px;
    }
}

/* index.php専用のスタイル - index2.phpが完成したら削除 */
.index-specific {
    background-image: url('/assets/images/purposeful_image.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
}