/* pre-judgement.html 固有のスタイル */

/* 本文の文字色 */
body {
    color: #555555 !important;
}

/* ヘッダーの色調整 */
.header-nav-container ul li a,
.header-container .logo h1 a {
    color: #3B5474 !important;
}

/* ヒーローセクション */
.pre-judgement-hero {
    background-image: url('../imgs/pre-judgement/header.png');
    height: 60vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.pre-judgement-hero .hero-text {
    margin-left: 50px;
    text-align: center;
    z-index: 1;
}

/* バインダ内の文字仕様 */
.pre-judgement-hero h2 {
    font-size: 45px;
    margin-top: 240px;
    margin-bottom: 3px;
    font-weight: 900;
    color: #3A332C !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.pre-judgement-hero .price-tag {
    font-size: 32px;
    line-height: 1.8;
    font-weight: 900;
    margin: 3px;
    color: #3A332C !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.pre-judgement-hero .hero-description {
    font-size: 20px;
    line-height: 1.8;
    font-weight: 900;
    margin: 12px;
    color: #3A332C !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* メッセージコンテンツの調整 */
.pre-judgement-message {
    max-width: 800px;
    margin: 40px auto 0;
    line-height: 2.2;
}

.pre-judgement-message.text-center {
    text-align: center;
}

/* グリッドレイアウト */
.pre-judgement-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* アイコンベースカード */
.pre-judgement-item {
    background-color: #FBF9F6;
    width: 8.5cm;
    height: 4.66cm;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* .pre-judgement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
} */

.pre-judgement-item img {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
}

.pre-judgement-item h3 {
    font-size: 16px;
    margin: 0 0 8px 0;
    font-weight: bold;
}

.pre-judgement-item p {
    font-size: 13px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

/* セクション固有の背景色 */
.bg-gray {
    background-color: #F8F3EE;
}

/* お申し込みボタン */
.apply-button-link {
    display: block;
    margin-top: 0px;
    transition-duration: 300ms;
}

.apply-button-link:hover {
    opacity: 0.8;
    transform:translateY(-5px);
}

.apply-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 申し込みボタンの文字仕様 */
.apply-button-text {
    position: absolute;
    color: #FFFFFF !important;
    font-size: 1.5rem;
    font-family: 'Yu Mincho', '游明朝', serif;
    pointer-events: none;
    z-index: 2;
}

.apply-button-img {
    width: 300px;
    height: auto;
    margin-top: 20px;
    z-index: 1;
}

/* 「本判定は、認定取得の…」カード */
.notice-box {
    background-color: #FBF9F6;
    width: 19cm;
    height: 5.5cm;
    max-width: 95%;
    margin: 60px auto 0;
    padding: 30px;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*text-align: center;*/
    font-size: 16px;
    line-height: 1.8;
    color: #555555;
}

/* ページ下部CTAの調整 */
.pre-judgement-cta {
    padding-bottom: 80px;
    /*text-align: center;*/
}

.cta-representative {
    margin-bottom: 20px;
}

.cta-description {
    font-size: 16px;
    line-height: 1.8;
}

.cta-free-hearing {
    margin-top: 40px;
}

.cta-free-hearing p {
    font-size: 16px;
}

.cta-free-hearing a {
    display: inline-block;
    margin-top: 10px;
    text-decoration: underline;
    font-weight: 900;
    transition: color 0.3s ease;
}

.cta-free-hearing a:hover {
    color: #B35924;
}

/* フッターのオーバーライド */
.pre-judgement-footer {
    background-color: #333 !important;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .pre-judgement-hero {
        height: auto;
        padding: 120px 5% 60px;
        flex-direction: column;
    }
    
    .pre-judgement-hero .hero-text {
        top:60px;
        margin-left: 0;
    }
    
    .pre-judgement-hero h2 {
        font-size: 32px;
        margin-top: 0;
    }
    
    .pre-judgement-hero .price-tag {
        font-size: 24px;
    }
    
    .pre-judgement-hero .hero-description {
        font-size: 16px;
        max-width: 320px;
    }

    .pre-judgement-grid {
        padding: 0 5%;
    }

    .pre-judgement-item {
        width: 100%; /* モバイルでは横幅いっぱい */
        height: auto; /* 高さは自動調整 */
        min-height: 4.66cm;
    }

    .notice-box {
        width: 100%;
        height: auto;
        min-height: 5.5cm;
    }

    .pre-judgement-footer .footer-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .pre-judgement-footer .footer-nav ul li {
        margin: 8px 0;
    }
}
