/* --- お問い合わせページ (contact.html) --- */
.maincontent {
    width: 90%;
    margin: auto;
    padding: 0 16px;
}

.contact-section {
    margin-bottom: 32px;
}

.contact-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color-dark);
    margin: 0 0 16px 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.contact-info {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
}

.contact-info p {
    margin: 0 0 8px 0;
    line-height: 1.8;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.map-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- レスポンシブ対応 (1024px以上) --- */
@media screen and (min-width: 1024px) {
    .maincontent {
        display: grid;
        grid-template-columns: 1fr 1.2fr; /* 2カラムレイアウト (右側を少し広めに) */
        gap: 48px; /* カラム間の余白 */
        align-items: stretch; /* アイテムの高さを揃える */
        padding: 16px 16px; /* 上下の余白を追加 */
    }
    
    /* 左側の情報エリアをFlexboxにして、中身を上下に均等配置 */
    .contact-main-info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* 左側のセクションのmargin-bottomをリセット */
    .contact-main-info .contact-section {
        margin-bottom: 0;
    }

    /* 所在地セクションの高さを親コンテナに合わせる */
    .contact-location-info,
    .contact-location-info .contact-section {
        height: 100%;
    }

    /* 所在地セクションをFlexboxにして、中の要素で高さを分配 */
    .contact-location-info .contact-section {
        display: flex;
        flex-direction: column;
        margin-bottom: 0; /* 下の余白をリセット */
    }
    
    .contact-location-info .contact-info {
         margin-bottom: 16px;
    }

    /* 地図コンテナが残りの高さをすべて使うようにする */
    .map-container {
        flex-grow: 1;
        padding-bottom: 0; /* アスペクト比維持の padding をリセット */
        height: auto; /* height: 0 をリセット */
        min-height: 400px; /* 地図の最低限の高さを確保 */
    }

    /* iframeもコンテナいっぱいに広がるようにする */
    .map-container iframe {
        position: static; /* absolute をリセット */
    }
}

