html {
    font-family: "Inter","Noto Sans JP", serif;
    font-optical-sizing: auto;
    font-style: normal;
    line-height: 1.5;
}

main {
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 0 10px #0000005e;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* テキスト */
:root {
    --color-key: #1c2185;
    --color-accent: #e44866;
    --color-marker: #dbdbf4;
    --color-bg: #f8f8f5;
    --color-bg-brown: #f8f8f5;
}

/* Sticky */
.sticky {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 640px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: 1000;
}

.sticky__tel_num {
    position: absolute;
    top: 7.5vw;
    left: 15vw;
    font-size: 3.6vw;
    color: #1b1f84;
    font-weight: bold;
}
@media screen and (min-width:641px) {
    .sticky__tel_num {
        top: 48px;
        left: 96px;
        font-size: 23px;
    }
}


.link-container {
    position: relative;
    display: inline-block;
}

.header-button {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background-color: #C50003;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-weight: 600;
    width: clamp(80px, 34.86vw, 200px);
    height: clamp(24px, 10.18vw, 62px);
    font-size: clamp(9px, 3.82vw, 22px);
    border-radius: clamp(3px, 1.53vw, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding:0;
}

.header-button:hover {
    opacity: 0.9;
    text-decoration: none;
    color: #fff; }


.cta-button {
    position: absolute;
    
    left: 50%;
    transform: translateX(-50%);
    width: 93%;
}
/* CTA */
.cta {
    position: relative;
}

.cta__link {
    position: absolute;
    top: 84.8%;
    left: 50%;
    transform: translateX(-50%);
    width: 93%;
}


.qa-wrapper{
    background-color: #fff;
    padding: 30px;
}

.qa-wrapper h2{
    font-size:24px;
    font-weight:bold;
    color:#0B5373;
    text-align: center;
}

.qa li {
    border-bottom: 1px solid #D2D2D2;
}
.qa__title {
    position: relative;
    color: #000;
    font-size: 16px;
    font-weight: 600;
    padding: 30px 30px 30px 0px;
}

.qa__title::before {
    content: '';
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
        border-right: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: translateY(-50%) rotate(45deg);
        transition: transform 0.3s ease;
}

.open .qa__title::before {
    transform: translateY(-50%) rotate(-135deg);
}


.qa__body {
    margin: 0 auto;
    display: grid;
    grid-template-rows: 0fr;
    transition: 0.3s ease;
    color: #000;
}

.open .qa__body {
    border-top: 1px solid #fff;
    grid-template-rows: 1fr;
}

.qa__body__inner {
    overflow: hidden;
}

.qa__body__inner__content {
    padding: 30px 30px 30px 0px;
    position: relative;
}
.contact-header{
    padding:20px;
    text-align: center;
}

.contact-header h1{
    color:#0B5373;

    margin-bottom:10px;
}

.thanks-content {
    padding: 20px;
    text-align: center;
}

.thanks-content h1 {
    color: #0B5373;

    margin-bottom: 10px;
}

.screen-reader-response{
    padding:20px;
    font-size:13px;
    color:crimson;
}

.contact-form-wrapper {

    padding: 20px;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group.half-width {
    flex: 1 1 calc(50% - 10px);
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

/* Contact Form 7 の入力フィールドスタイル */
.wpcf7-form-control {
    width: 100% !important;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.wpcf7-form-control::placeholder {
    color: #a0a0a0;
    font-size: 14px;
}

/* テキストエリア */
.wpcf7-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* 送信ボタン */
.submit-row {
    justify-content: center;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    min-width: 200px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* エラー状態のフィールド */
.wpcf7-not-valid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* デフォルトのエラーメッセージを完全に非表示 */
.wpcf7-not-valid-tip {
    display: none !important;
}

/* Contact Form 7のデフォルトエラーメッセージを完全に隠す */
.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-validation-errors {
    display: none !important;
}

/* 成功メッセージのみ表示 */
.wpcf7-response-output.wpcf7-mail-sent-ok {
    display: block !important;
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

/* カスタムエラーサマリー - 改善版 */
.custom-error-summary {
    background-color: #ffeaea;
    color: #c0392b;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 0 0 20px 0;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-error-summary::before {
    content: "⚠";
    font-size: 16px;
    color: #e74c3c;
}

/* 成功メッセージ用のカスタムスタイル */
.success-message {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 15px;
    }

    .form-group.half-width {
        flex: 1 1 100%;
    }

    .form-row {
        gap: 15px;
        margin-bottom: 20px;
    }

    .wpcf7-form-control {
        font-size: 16px;
        /* iOSでのズーム防止 */
    }

    .submit-btn {
        width: 100%;
        padding: 18px 20px;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 10px;
    }

    .form-group label {
        font-size: 13px;
    }

    .wpcf7-form-control {
        padding: 14px 12px;
        font-size: 16px;
    }
}

/* フォーカス時のアクセシビリティ向上 */
.wpcf7-form-control:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px; }