/* ==========================================================================
   12. 選ばれる理由 [reason_section] ・ お問い合わせCTA [custom_cta]
   ========================================================================== */

/* --- 選ばれる理由セクション [reason_section] --- */
.reason-section-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 48px !important;
}

.reason-section-wrapper .ks-nav-header {
    margin-bottom: 28px;
}

.reason-grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    counter-reset: reason;
}

.reason-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    text-align: center;
    border-top: 2px solid var(--depth-700);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.reason-icon-box {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    margin-bottom: 0;
    background-color: var(--mist-100, #F0F5F8);
    border-radius: 0;
    overflow: hidden;
}

.reason-icon-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.reason-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
    background: var(--shore-warm, #F2EDE8);
    padding: 18px 22px 22px;
    gap: 10px; /* タイトル上下の余白を統一管理 */
}

.reason-content::before {
    counter-increment: reason;
    content: "0" counter(reason);
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--sacred-gold, #A8956A);
    margin: 0;
}

.reason-item-title {
    font-size: 18px;
    color: var(--depth-700);
    margin: 0 !important;
    padding: 0;
    font-weight: bold;
    line-height: 1.35;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: none !important;
    background-image: none !important;
    text-decoration: none !important;
}
.reason-item-title::before,
.reason-item-title::after {
    display: none !important;
    content: none !important;
}
.reason-section-wrapper .reason-content h3 {
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.reason-item-desc {
    border-top: none !important;
    font-size: 14px;
    color: var(--sys-text-secondary);
    line-height: 1.6;
    text-align: left;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .reason-grid {
        flex-direction: column;
        gap: 40px;
    }

    .reason-icon-box {
        padding-bottom: 100%;
    }

    .reason-item-title {
        font-size: 17px;
    }
}

/* --- お問い合わせCTA [custom_cta] --- */
.cta-outer-box {
    background: var(--shore-warm, #F2EDE8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-main-heading {
    text-align: center;
    font-size: 24px;
    color: var(--sys-text-primary);
    margin-bottom: 20px !important;
}

.cta-main-desc {
    text-align: center;
    font-size: 15px;
    color: var(--sys-text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px !important;
}

.cta-columns {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.cta-card {
    flex: 1;
    background: #fff !important;
    border-radius: 12px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.cta-left {
    justify-content: center;
    text-align: center;
}

/* 左（電話）カード：縦中央寄せで余白感を揃える */
.cta-card.cta-left {
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.cta-card.cta-left .cta-label {
    margin-bottom: 0 !important;
}

.cta-label {
    font-size: 18px;
    font-weight: bold;
    color: var(--sys-text-primary);
    margin-bottom: 30px !important;
    text-align: center;
}

.cta-tel-number {
    display: block;
    font-size: 40px;
    font-weight: bold;
    color: var(--depth-700) !important;
    text-decoration: none;
    margin-bottom: 5px;
    line-height: 1.1;
}

.cta-tel-number:hover {
    color: var(--horizon-hover);
}

.cta-time,
.cta-note {
    font-size: 12px;
    color: var(--sys-text-secondary);
}

.cta-form-wrapper {
    text-align: left;
    flex: 1;
}

.cta-form-wrapper .wpcf7-form-control-wrap {
    margin-bottom: 10px;
    display: block;
}

.cta-form-wrapper input,
.cta-form-wrapper textarea {
    width: 100% !important;
    border: 1px solid var(--sys-border-mid) !important;
    border-radius: 4px !important;
    padding: 10px !important;
    font-size: 14px;
    background: #fff !important;
}

.cta-form-wrapper .wpcf7-submit {
    width: 100% !important;
    padding: 15px !important;
    margin-top: 10px !important;
}

@media (max-width: 768px) {
    .cta-outer-box {
        padding: 40px 20px;
        border-radius: 0;
    }

    .cta-columns {
        flex-direction: column;
    }

    .cta-main-heading {
        font-size: 20px;
    }
}

/* ==========================================================================
   フォーム送信ボタン（Gutenberg / CF7 / WPForms）の修正版
   背景を濃い青（depth-700）、文字を白に固定
   ========================================================================== */
   .post_content .wp-block-button__link,
   input.wpcf7-submit, /* inputをつけて優先度をアップ */
   .wpforms-submit {
     background-color: var(--depth-700) !important;
     background: var(--depth-700) !important; /* background全体を上書きして透明化を阻止 */
     border: 1px solid var(--depth-700) !important;
     color: #ffffff !important; /* 文字色は「白」に固定 */
     
     /* ボタンらしく見せるための追加設定 */
     display: inline-block !important;
     padding: 12px 30px !important;
     text-align: center !important;
     text-decoration: none !important;
     border-radius: 4px !important;
     font-weight: 600 !important;
     -webkit-appearance: none !important; /* ブラウザ標準スタイルを解除 */
     transition: background-color .2s ease, opacity .2s ease !important;
   }
   
   /* ホバー時の設定（少し濃くする） */
   .post_content .wp-block-button__link:hover,
   input.wpcf7-submit:hover,
   .wpforms-submit:hover {
     background-color: var(--depth-800) !important;
     background: var(--depth-800) !important;
     border-color: var(--depth-800) !important;
     color: #ffffff !important;
     opacity: 0.9 !important;
     cursor: pointer !important;
   }
