/* 基本設定 */
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
}





/* ヒーローエリア全体 */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    background-color: #f9f9f9;
}

.hero-container {
    display: flex;
    height: 500px;
}

/* 左側の青いエリア */
.hero-content {
    flex: 1;
    background-color: #4a7c8c; /* 画像に近いブルーグレー */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
}

.hero-title {
    font-size: 2.2rem;
    line-height: 1.6;
    font-weight: bold;
}

/* 右側の家族画像エリア */
.hero-image {
    flex: 1;
    background-image: url('./image/mein.png'); /* ここに家族の画像を入れます */
    background-size: cover;
    background-position: center;
}

/* カードコンテナ（画像に重なるように配置） */
.card-container {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    width: 90%;
    max-width: 1000px;
    justify-content: center;
}

/* 各カードのスタイル */
.card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    flex: 1;
    text-align: center;
    border: 1px solid #ddd;
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #4a7c8c;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

/* ボタンのスタイル */
.btn {
    display: inline-block;
    background-color: #e6eeff;
    color: #4a7c8c;
    text-decoration: none;
    padding: 8px 30px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #d0defa;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        height: auto;
    }
    .hero-content {
        padding: 60px 20px;
    }
    .hero-image {
        height: 300px;
    }
    .card-container {
        position: static;
        flex-direction: column;
        transform: none;
        margin: 20px auto;
        width: 95%;
    }
}

/* 不動産担保ローンとは？セクションのスタイル */
.about-loan-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 上部の概要説明 */
.about-header {
    margin-bottom: 60px;
}

.about-title {
    text-align: center;
    color: #0f2541; /* 濃いネイビーブルー */
    font-size: 2rem;
    margin-bottom: 40px;
    line-height: 1.4;
}

.about-title span {
    font-weight: normal;
    font-size: 1.6rem;
}

.about-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

/* 下部のメリット部分 */
.merit-title {
    text-align: center;
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 40px;
    font-weight: normal;
}

.merit-title span {
    font-size: 2rem;
    font-weight: bold;
    color: #0f2541;
}

/* カードコンテナ */
.merit-card-container {
    display: flex;
    gap: 20px;
}

/* 個別のカード */
.merit-card {
    flex: 1;
    border: 1px solid #dcdcdc;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* 中身を中央揃え */
    background-color: #fff;
}

/* カード内の数字 */
.merit-number {
    font-size: 4rem;
    font-weight: bold;
    color: #1c355e;
    align-self: flex-start; /* 数字だけ左寄せ */
    line-height: 1;
    margin-bottom: 10px;
}

/* 画像のプレースホルダー（ここに正方形画像が入ります） */
.merit-image-placeholder {
    width: 120px; /* バランスの良い正方形サイズ */
    height: 120px;
    background-color: #f0f0f0; /* 仮のグレー背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 30px;
    /* 実際の画像を使う場合は、HTML側で <img src="〇〇.jpg" alt="" class="merit-image"> とし、このクラスを差し替えてください */
}

/* 実際の画像を入れる時のCSS例 */
.merit-image {
    width: 120px;
    height: 120px;
    object-fit: contain; /* 画像の縦横比を崩さずに枠内に収める */
    margin-bottom: 30px;
}

.merit-card-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    min-height: 3em; /* タイトルの行数を揃える */
}

.merit-card-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
    text-align: left;
}

/* レスポンシブ対応（スマホ表示） */
@media (max-width: 768px) {
    .about-title {
        font-size: 1.5rem;
    }
    .about-title span {
        font-size: 1.2rem;
    }
    .merit-title {
        font-size: 1.3rem;
    }
    .merit-card-container {
        flex-direction: column; /* スマホでは縦並びに */
    }
    .merit-card {
        margin-bottom: 20px;
    }
}

/* 画像中央配置セクションのスタイル */
.centered-image-section {
    padding: 60px 0; /* 上下の余白 */
    background-color: #f0f4f8; /* ご指定の薄い青色の背景色 */
    display: flex;
    justify-content: center; /* 横方向の中央揃え */
    align-items: center; /* 縦方向の中央揃え */
}

.centered-image-container {
    max-width: 1000px; /* セクション全体の最大幅 */
    width: 90%; /* スマホ表示などで少し余白を持たせる */
    text-align: center; /* コンテナ内での中央揃え（念のため） */
}

.centered-image {
    max-width: 100%; /* コンテナ幅を超えないようにする */
    height: auto; /* 縦横比を維持する */
    /* もし画像の最大幅を指定したい場合は、
      以下のように max-width をpixelで上書きしてください。
      例：max-width: 500px; 
    */
}

/* ご利用にあたっての注意点セクションのスタイル */
.risk-notice-section {
    padding: 60px 20px;
    background-color: #ffffff; /* 周りの背景色に合わせて調整してください */
}

/* 丸角のグレー背景コンテナ */
.risk-notice-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #cbd2db; /* 画像から抽出した薄いブルーグレー */
    border-radius: 50px; /* 大きめの角丸（ピル型） */
    padding: 10px 30px; /* 内側の余白（上下50px、左右70px） */
    color: #1a2536; /* 濃いネイビーブルーのテキスト */
}

.risk-title {
    font-size: 1.6rem;
    margin-bottom: 25px;
    /* font-weight: normal; /* 画像に合わせて少し細めに */
}

.risk-text {
    font-size: 1rem;
    line-height: 1.9;
    letter-spacing: 0.03em; /* 文字の感覚を少し開けて読みやすく */
}

/* レスポンシブ対応（スマホ表示） */
@media (max-width: 768px) {
    .risk-notice-container {
        border-radius: 30px; /* スマホでは角丸を少し小さく */
        padding: 40px 25px; /* 左右の余白を狭く */
    }
    .risk-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    .risk-text {
        font-size: 0.95rem;
    }
}


/* よくあるご質問セクションのスタイル */
.faq-section {
    padding: 100px 0;
    background-color: #fff;
    margin-top: 80px; /* 前のセクションとの余白 */
}

.faq-container {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    gap: 50px;
}

/* 左側の緑色の背景エリア */
.faq-sidebar {
    flex: 0 0 350px;
    background-color: #94a691; /* 画像に基づいたセージグリーン */
    padding: 60px 30px;
    color: #1a1a1a;
    position: relative;
}

/* 右側の三角形の飾り（疑似要素） */
.faq-sidebar::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 15px 0 15px 20px;
    border-color: transparent transparent transparent #94a691;
}

.faq-main-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.faq-sub-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.4;
}

.faq-description {
    font-size: 0.85rem;
    line-height: 1.8;
}

/* 右側の質問リスト */
.faq-content {
    flex: 1;
}

.faq-item {
    margin-bottom: 40px;
}

.faq-question {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333;
}

.faq-question span {
    color: #4a7c8c; /* Qの色 */
    margin-right: 5px;
}

.faq-answer {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #555;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

.faq-answer span {
    font-weight: bold;
    color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .faq-container {
        flex-direction: column;
    }
    .faq-sidebar {
        flex: none;
        width: 100%;
        box-sizing: border-box;
    }
    .faq-sidebar::after {
        display: none; /* スマホ時は矢印を消す */
    }
    .faq-content {
        padding: 0 20px;
    }
}

