/* HEROセクション改善スタイル */

/* メインコンテナ */
.cont {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* メインビジュアル */
.con_main {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #2c4d3a 0%, #3d6649 100%);
}

.con_box {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.con_box h1.st {
    margin: 0;
    padding: 0;
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.con_box h1.st img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

/* PC用の調整 */
@media (min-width: 1200px) {
    .con_box h1.st {
        height: 400px;
    }
    
    .con_box h1.st img {
        max-width: 1200px;
        width: auto;
        margin: 0 auto;
    }
}

/* タブレット用の調整 */
@media (max-width: 1199px) and (min-width: 768px) {
    .con_box h1.st {
        height: 320px;
    }
}

/* スマホ用の調整 */
@media (max-width: 767px) {
    .con_box h1.st {
        height: 200px;
    }
    
    .con_box h1.st img {
        object-fit: cover;
        width: 100%;
    }
}

/* ベストレート保証セクション */
.bes_head {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 70px 20px;
    border-bottom: 2px solid #e5e5e5;
    position: relative;
}

.bes_head:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37 50%, transparent);
}

.bes_tit {
    max-width: 900px;
    margin: 0 auto;
}

/* タイトル */
.ribbon9 {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.ribbon9 h3 {
    display: inline-block;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 6px;
    color: #1a1a1a;
    margin: 0;
    padding: 0 30px 15px;
    position: relative;
    font-family: 'Noto Sans JP', sans-serif;
}

/* .ribbon9 h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #c9302c;
} */

/* コンテンツ */
.bes_tit_cont {
    text-align: center;
    padding: 0 20px;
}

.bes_tit_cont > span {
    display: inline-block;
    font-size: 18px;
    font-weight: 400;
    color: #2c4d3a;
    margin-bottom: 20px;
    letter-spacing: 2px;
    padding: 8px 24px;
    border: 1px solid #2c4d3a;
    background: rgba(44, 77, 58, 0.05);
}

.bes_tit_cont p {
    font-size: 15px;
    line-height: 2;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    letter-spacing: 0.5px;
    font-family: 'Noto Sans JP', sans-serif;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .bes_head {
        padding: 50px 15px;
    }
    
    .ribbon9 h3 {
        font-size: 24px;
        letter-spacing: 3px;
    }
    
    .ribbon9 h3:after {
        width: 60px;
    }
    
    .bes_tit_cont > span {
        font-size: 16px;
        padding: 6px 20px;
    }
    
    .bes_tit_cont p {
        font-size: 14px;
        line-height: 1.8;
    }
}

/* Reactコンポーネントとの接続 */
#listel-privilege-root {
    margin-top: -2px; /* ボーダーとの接続調整 */
}

/* スマホ表示の際の非表示クラス */
@media (min-width: 769px) {
    .dnl {
        display: none !important;
    }
}

/* PC表示の際の非表示クラス */
@media (max-width: 768px) {
    .display-none-md {
        display: none !important;
    }
}

/* 追加装飾 */
/* .bes_head::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #d4af37 25%, 
        #c9302c 50%, 
        #d4af37 75%, 
        transparent 100%);
} */

/* メインビジュアル代替スタイル（画像が適切でない場合） */
.con_main.hero-alt {
    background: linear-gradient(135deg, #2c4d3a 0%, #3d6649 100%);
    padding: 80px 20px;
    text-align: center;
}

.con_main.hero-alt .con_box {
    max-width: 1000px;
}

.con_main.hero-alt h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 20px;
}

.con_main.hero-alt p {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    letter-spacing: 2px;
}