/* 電話お問い合わせフォーム */
.contact-phone {
    padding: var(--space-xxl) 0;
}

.contact-phone__container {
    background-color: #fff;
    border-radius: 10px;
    padding: var(--space-xl);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    /* コンテナの最大幅を90%に */
    margin: 0 auto;
    text-align: center;
}

.contact-phone__title {
    font-size: var(--font-size-xl);
    font-weight: bold;
    color: var(--color-text);
    text-align: center;
    font-family: "Noto Serif JP", serif;
    padding-bottom: 1rem;
    position: relative;
}

.contact-phone-freeSoudan {
    width: auto;
    /* 幅を自動調整 */
    height: auto;
    /* 高さを自動調整 */
    background-color: #d9534f;
    text-align: center;
    border-radius: 10px;
    color: #fff;
    padding: 5px 10px;
    /* 左右のpaddingを追加 */
    font-size: 18px;
    display: inline-block;
    /* インライン要素にする */
    margin-bottom: 1rem;
    /* 下マージンを追加 */
}

.contact-phone__text {
    position: relative;
    /* 相対配置に変更 */
    text-align: center;
    /* 中央寄せ */
    font-size: 20px;
    /* 少し小さく */
    font-weight: 600;
    margin-bottom: 1rem;
    /* 下マージンを追加 */
}

.contact-phone__text span {
    color: #c9302c;
}

.contact-phone__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-m);
    margin-bottom: var(--space-m);
}

.contact-phone__button {
    padding: var(--space-m) var(--space-xl);
    border-radius: 5px;
    text-decoration: none;
    font-size: var(--font-size-medium);
    font-weight: bold;
    transition: background-color 0.3s;
    color: white;
    border: none;
}

.contact-phone__button--red {
    background-color: #d9534f;
}

.contact-phone__button--red:hover {
    background-color: #c9302c;
}

.contact-phone__button--green {
    position: relative;
    /* 相対配置に変更 */
    top: auto;
    left: auto;
    transform: none;
    /* transformを削除 */
    margin: 0 auto;
    /* 左右中央寄せ */
    display: block;
    /* ブロック要素にする */
    width: fit-content;
    /* ボタンの幅を内容に合わせて調整 */
}

.contact-phone__button--green:hover {
    background-color: #4cae4c;
}

.contact-phone__info {
    margin-bottom: var(--space-xl);
    position: relative;
    
    
}

.contact-phone__image {
    width: 20px;
    position: absolute;
    left:40px;
    top: 80%;
    transform: translateY(-50%);
    /* 垂直方向中央寄せ */
}

.contact-phone__info-tel {
    font-size: 20px;
    /* 少し小さく */
    font-weight: bold;
    color: var(--color-text);
    margin: 0 auto;
    font-family: "Noto Serif JP", serif;
    text-align: center;
    /* 中央寄せ */
}

.contact-phone__info-tel i {
    margin-right: var(--space-s);
}

.contact-phone__info-time {
    padding-left: 40px;
    font-size: var(--font-size-base);
    color: rgb(129, 129, 129);
    font-family: "Noto Serif JP", serif;
    text-align: center;
}

.contact-phone__info-time i {
    margin-right: var(--space-s);
}

.empty {
    height: 30px;
}

.contact-phone__button-wrapper {
    background-color: #55b559;
    width: auto;
    /* 幅を自動調整 */
    max-width: 800px;
    /* 最大幅を設定 */
    height: auto;
    /* 高さを自動調整 */
    border-radius: 10px;
    padding: var(--space-xl);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 0 auto;
    text-align: center;
}

.yajirusi {
    width: 40px;
    position: absolute;
    top: 50%;
    left: auto;
    /* leftをautoに */
    right: 10px;
    /* rightで位置調整 */
    transform: translateY(-50%);
}

/* 電話アイコンと時計アイコン */
.fa-phone-alt,
.fa-clock {
    margin-right: 5px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-phone__text {
        font-size: 18px;
        /* スマホサイズでフォントサイズ調整 */
    }

    .contact-phone__info-tel {
        font-size: 18px;
        /* スマホサイズでフォントサイズ調整 */
    }

    .contact-phone__button--green {
        font-size: 14px;
        /* スマホサイズでフォントサイズ調整 */
        padding: var(--space-s) var(--space-m);
        /* スマホサイズでpadding調整 */
    }

    .contact-phone__button-wrapper {
        padding: var(--space-m);
        /* スマホサイズでpadding調整 */
    }

    .yajirusi {
        width: 30px;
        /* スマホサイズで矢印サイズ調整 */
        right: 5px;
        /* スマホサイズで矢印位置調整 */
    }
}