@font-face {
    font-family: "LINE Seed JP_OTF";
    src: url("https://cdn.jsdelivr.net/gh/fonts-archive/LINESeedJP@1.0.0/LINESeedJP_OTF.woff2") format("woff2"),
         url("https://cdn.jsdelivr.net/gh/fonts-archive/LINESeedJP@1.0.0/LINESeedJP_OTF.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "LINE Seed JP_OTF";
    src: url("https://cdn.jsdelivr.net/gh/fonts-archive/LINESeedJP@1.0.0/LINESeedJP_OTF_Bold.woff2") format("woff2"),
         url("https://cdn.jsdelivr.net/gh/fonts-archive/LINESeedJP@1.0.0/LINESeedJP_OTF_Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "LINE Seed JP_OTF";
    src: url("https://cdn.jsdelivr.net/gh/fonts-archive/LINESeedJP@1.0.0/LINESeedJP_OTF_ExtraBold.woff2") format("woff2"),
         url("https://cdn.jsdelivr.net/gh/fonts-archive/LINESeedJP@1.0.0/LINESeedJP_OTF_ExtraBold.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* Contact Form 7 スタイル */

#contact {
    padding: 80px 0;
}

#contact ._inner {
    max-width: 800px;
}

/* タイトルセクション */
.contact-header {
    margin-bottom: 40px;
}

.contact-header h1 {
    color: #25292B;
    font-family: "LINE Seed JP_OTF";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 131%;
    margin-bottom: 16px;
    text-align: center;
}

.contact-header p {
    color: #25292B;
    font-family: "LINE Seed JP_OTF";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    text-align: center;
    margin-bottom: 24px;
}

.contact-header::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #DBDBDB;
    margin-top: 24px;
}

/* Contact Form 7 フォーム全体 */
.wpcf7 {
    margin: 0;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* フォームフィールド */
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form p {
    margin: 0;
    position: relative;
}

.wpcf7-form > label {
    display: block;
    margin-bottom: 0;
}

.wpcf7-form > .wpcf7-acceptance-label {
    display: block;
    margin-top: 24px;
}

/* ラベル */
.wpcf7-form label {
    display: block;
    color: #25292B;
    font-family: "LINE Seed JP_OTF";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* 必須バッジ */
.wpcf7-form label .required-badge,
.wpcf7-form label .wpcf7-required,
.wpcf7-form label span.required-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #FF0000;
    color: #FFF;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.4;
}

/* 任意バッジ */
.wpcf7-form label .optional-badge,
.wpcf7-form label span.optional-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #7D7D7D;
    color: #FFF;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
    line-height: 1.4;
}

/* 入力フィールド */
.wpcf7-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #DBDBDB;
    border-radius: 4px;
    font-family: "LINE Seed JP_OTF";
    font-size: 16px;
    color: #25292B;
    box-sizing: border-box;
    background-color: #F5F5F5;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.wpcf7-form-control-wrap .wpcf7-form-control:has(.wpcf7-list-item-label){
    border: none;
    background: none;
}
.wpcf7-form-control-wrap .wpcf7-form-control:has(.wpcf7-list-item-label)::after{
    content: '必須';
    color: #fff;
    background: #FF0000;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;


}
.wpcf7-form-control:focus {
    outline: none;
    border-color: #01C3D5;
    background-color: #FFF;
}

.wpcf7-form-control::placeholder {
    color: #999;
}

.wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
}

/* プライバシーポリシー同意 */
.wpcf7-acceptance {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpcf7-acceptance .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    font-family: "LINE Seed JP_OTF";
    color: #25292B;
}

.wpcf7-acceptance input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #01C3D5;
    flex-shrink: 0;
}

.wpcf7-acceptance .wpcf7-list-item-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 16px;
    font-family: "LINE Seed JP_OTF";
    color: #25292B;
}

.wpcf7-acceptance .wpcf7-list-item-label a {
    color: #25292B;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.wpcf7-acceptance .wpcf7-list-item-label a:hover {
    color: #00A8B8;
}

.wpcf7-acceptance .wpcf7-list-item-label .required-badge {
    margin-left: 4px;
    display: inline-block;
    padding: 2px 8px;
    background-color: #FF0000;
    color: #FFF;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    line-height: 1.4;
}

/* 「その他」テキストフィールド */
.other-text-label {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.other-text-label[style*="display: none"] {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
}

.other-text-label:not([style*="display: none"]) {
    opacity: 1;
    max-height: 200px;
    margin-bottom: 24px;
}

/* セレクトボックス */
.wpcf7-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2325292B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    padding-right: 40px;
    cursor: pointer;
}

.wpcf7-select:focus {
    outline: none;
    border-color: #01C3D5;
    background-color: #FFF;
}


/* 送信ボタン */
.wpcf7-submit {
    width: 100%;
    padding: 16px 24px;
    background-color: #01C3D5;
    color: #FFF;
    font-family: "LINE Seed JP_OTF";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.wpcf7-submit:hover {
    background-color: #00A8B8;
}

.wpcf7-submit:active {
    background-color: #008A98;
}

/* リセットボタン */
.wpcf7-reset,
.wpcf7-form .reset-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background-color: #F5F5F5;
    color: #7D7D7D;
    font-family: "LINE Seed JP_OTF";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    border: 1px solid #DBDBDB;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.wpcf7-reset:hover,
.wpcf7-form .reset-btn:hover {
    background-color: #E8E8E8;
    border-color: #7D7D7D;
}

.wpcf7-reset span:first-child {
    font-size: 18px;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.wpcf7-reset:hover span:first-child {
    transform: rotate(180deg);
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
    color: #FF0000;
    font-size: 14px;
    margin-top: 4px;
    display: block;
}

.wpcf7-validation-errors {
    background-color: #FFF3CD;
    border: 1px solid #FFC107;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 24px;
    color: #856404;
}

.wpcf7-mail-sent-ok {
    background-color: #D4EDDA;
    border: 1px solid #28A745;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 24px;
    color: #155724;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
    #contact {
        padding: 40px 0;
    }

    #contact ._inner {
        width: 90%;
        padding: 0 20px;
    }

    .contact-header h1 {
        font-size: 24px;
    }

    .wpcf7-form {
        gap: 20px;
    }

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

    .wpcf7-submit {
        font-size: 16px;
        padding: 14px 20px;
    }
}
