/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Yu Gothic UI', 'Meiryo', sans-serif;
    background: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/blue_life_image.png') center center / cover no-repeat;
    opacity: 0.7;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
}

/* ヘッダー - ロゴ */
.header {
    text-align: center;
    padding: 60px 0 40px 0;
    min-height: 80px;
}

.logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* メインコンテンツ */
.main-content {
    width: 100%;
    flex-grow: 1;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* サイトボタン共通スタイル */
.site-button {
    background: rgba(237, 238, 239, 0.6);
    padding: 48px 30px 30px 30px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    min-height: 250px;
    justify-content: center;
    width: 100%;
}

.site-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    border-radius: 12px 12px 0 0;
    transition: height 0.4s ease;
    z-index: 0;
}


.site-button:hover::before {
    height: 100%;
}

.site-button:hover .button-title,
.site-button:hover .button-description {
    color: white;
    position: relative;
    z-index: 1;
}

.site-button:hover .button-icon {
    position: relative;
    z-index: 1;
}

.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* LIFE Study ボタン - アイコン */
.life-study .button-icon {
    width: 200px;
    height: 100px;
    background: transparent;
    border-radius: 5px;
    padding: 10px 20px;
}

.life-study .button-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.life-study:hover .button-icon {
    background: transparent;
}

/* VENUS Study ボタン - アイコン */
.venus-study .button-icon {
    width: 280px;
    height: 100px;
    background: transparent;
    border-radius: 5px;
    padding: 10px 20px;
}

.venus-study .button-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.venus-study:hover .button-icon {
    background: transparent;
}

/* LIFE Risk Engine ボタン - アイコン */
.risk-engine .button-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #439AFF 0%, #63AAFF 100%);
}

.risk-engine .button-icon i {
    font-size: 2.5em;
    color: white;
}

/* LIFE Research Institute ボタン - アイコン */
.research-institute .button-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333333 0%, #555555 100%);
}

.research-institute .button-icon i {
    font-size: 2.5em;
    color: white;
}

.site-button:hover .button-icon {
    transform: scale(1.1);
}

.button-title {
    font-family: ui-sans-serif;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    line-height: 1.1;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.button-description {
    font-size: 0.95em;
    color: #666;
    text-align: center;
    line-height: 1.6;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

/* LIFE Study ボタン */
.life-study::before {
    background-color: #c1daff;
}

.life-study .button-title {
    color: #2A5CAA;
}

.life-study:hover .button-title {
    color: #333333;
}

.life-study:hover .button-description {
    color: #666666;
}

/* VENUS Study ボタン */
.venus-study::before {
    background-color: #ded5c0;
}

.venus-study .button-title {
    color: #682233;
}

.venus-study:hover .button-title {
    color: #333333;
}

.venus-study:hover .button-description {
    color: #666666;
}

/* LIFE Risk Engine ボタン */
.risk-engine::before {
    background-color: #439AFF;
}

.risk-engine .button-title {
    color: #439AFF;
}

/* LIFE Research Institute ボタン */
.research-institute::before {
    background-color: #333333;
}

.research-institute .button-title {
    color: #333333;
}

/* フッター */
.footer {
    text-align: center;
    padding-top: 40px;
    /* color: #666; */
    color: #fff;
    font-size: 0.9em;
}

/* ========================================
   タブレット用（768px〜1024px）
   ======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .button-grid {
        max-width: 90%;
        gap: 35px;
        padding: 25px;
    }
    
    .site-button {
        padding: 38px 15px 16px 15px;
        min-height: 240px;
    }
    
    .logo {
        max-width: 180px;
    }
    
    .button-title {
        font-size: 27px;
    }
    
    /* LIFE Study ボタン - アイコン */
    .life-study .button-icon {
        width: 176px;
        height: 99px;
    }
    
    /* VENUS Study ボタン - アイコン */
    .venus-study .button-icon {
        width: 176px;
        height: 99px;
    }
    
    /* LIFE Risk Engine ボタン - アイコン */
    .risk-engine .button-icon {
        width: 78px;
        height: 78px;
    }
    
    .risk-engine .button-icon i {
        font-size: 2.3em;
    }
    
    /* LIFE Research Institute ボタン - アイコン */
    .research-institute .button-icon {
        width: 78px;
        height: 78px;
    }
    
    .research-institute .button-icon i {
        font-size: 2.3em;
    }
    
    .button-description {
        font-size: 0.95em;
    }
    
    /* タッチデバイス用：ホバーを無効化し、アクティブ状態を有効化 */
    .site-button:hover {
        transform: none;
    }
    
    .site-button:hover::before {
        height: 5px;
    }
    
    .site-button:hover .button-title,
    .site-button:hover .button-description {
        color: inherit;
    }
    
    .site-button:active {
        transform: translateY(-8px);
        transition: transform 0.1s ease;
    }
    
    .site-button:active::before {
        height: 100%;
        transition: none;
    }
    
    .site-button:active .button-title,
    .site-button:active .button-description {
        color: white;
        transition: none;
    }
}

/* ========================================
   モバイル用（767px以下）
   ======================================== */

/* 小型タブレット・大型スマートフォン用（481px〜767px） */
@media (min-width: 481px) and (max-width: 767px) {
    .button-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 15px;
        max-width: 450px;
    }
    
    .site-button {
        padding: 32px 22px;
        min-height: 210px;
    }
    
    .logo {
        max-width: 180px;
    }
    
    .button-title {
        font-size: 1.35em;
    }
    
    /* LIFE Study ボタン - アイコン */
    .life-study .button-icon {
        width: 162px;
        height: 91px;
    }
    
    /* VENUS Study ボタン - アイコン */
    .venus-study .button-icon {
        width: 162px;
        height: 91px;
    }
    
    /* LIFE Risk Engine ボタン - アイコン */
    .risk-engine .button-icon {
        width: 72px;
        height: 72px;
    }
    
    .risk-engine .button-icon i {
        font-size: 2.1em;
    }
    
    /* LIFE Research Institute ボタン - アイコン */
    .research-institute .button-icon {
        width: 72px;
        height: 72px;
    }
    
    .research-institute .button-icon i {
        font-size: 2.1em;
    }
    
    .button-description {
        font-size: 0.92em;
    }
    
    /* タッチフィードバックの強化 */
    .site-button:active::before {
        transition: none;
    }
    
    .site-button:active .button-title,
    .site-button:active .button-description {
        transition: none;
    }
}

/* スマートフォン用（481px以下） */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .container {
        gap: 25px;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 22px;
        max-width: 100%;
        margin: 0 20px;
    }
    
    .site-button {
        padding: 30px 20px 16px 20px;
        min-height: 200px;
        width: 100%;
    }
    
    .logo {
        max-width: 116px;
    }
    
    .button-title {
        font-size: 22px;
    }
    
    /* LIFE Study ボタン - アイコン */
    .life-study .button-icon {
        width: 157px;
        height: 89px;
    }
    
    /* VENUS Study ボタン - アイコン */
    .venus-study .button-icon {
        width: 157px;
        height: 89px;
    }
    
    /* LIFE Risk Engine ボタン - アイコン */
    .risk-engine .button-icon {
        width: 70px;
        height: 70px;
    }
    
    .risk-engine .button-icon i {
        font-size: 2em;
    }
    
    /* LIFE Research Institute ボタン - アイコン */
    .research-institute .button-icon {
        width: 70px;
        height: 70px;
    }
    
    .research-institute .button-icon i {
        font-size: 2em;
    }
    
    .button-description {
        font-size: 0.9em;
    }
    
    /* タッチフィードバックの強化 */
    .site-button:active::before {
        transition: none;
    }
    
    .site-button:active .button-title,
    .site-button:active .button-description {
        transition: none;
    }
}

/* 小型スマートフォン用（360px以下） */
@media (max-width: 360px) {
    .site-button {
        padding: 25px 15px;
        min-height: 180px;
    }
    
    .button-title {
        font-size: 1.2em;
    }
    
    .button-description {
        font-size: 0.85em;
    }
}

