@charset "utf-8";

.common-hero-section {
    background-color: #F5F5F5; /* 共通の背景色 */
}

.common-hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 980px; /* コンテンツ全体の最大幅 */
    margin: 0 auto;
    box-sizing: border-box;
}

.common-hero-text-block {
    flex-shrink: 0;
    font-size: 2.5rem; /* PC版のデフォルトフォントサイズ */
    font-weight: bold;
    color: var(--text-color-dark);
    line-height: 1.2;
    margin: 0;
}

.common-hero-text-block h3,
.common-hero-text-block p {
    display: block; /* 確実に縦並びにする */
    width: 100%;
    margin-bottom: 0.5rem; /* テキストとタイトルの間の余白 */
}

.common-hero-text-block p:last-child {
    margin-bottom: 0;
}

.common-hero-image-block {
    flex-shrink: 0;
    max-width: 700px; /* PC版の画像の最大幅 */
}

.common-hero-image-block img {
    max-width: 450px;
    height: auto;
    display: block;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .common-hero-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        max-width: 100%;
        padding: 10px 20px 20px;
    }

    .common-hero-text-block {
        white-space: normal; /* テキストが折り返すように */
        font-size: 1.5rem; /* モバイル版のフォントサイズ */
    }

    .common-hero-image-block {
        width: 100%;
        max-width: 400px; /* モバイル版の画像の最大幅 */
        margin: 0 auto; /* 中央寄せ */
    }

    .common-hero-image-block img {
        padding-top: 0; /* モバイルでは上部の余白をリセット */
        max-width: 100%;
    }
}
