@charset "UTF-8";

/* ===================================
   ページ全体ラッパー
   =================================== */
.contact-wrap {
    width: 100%;
    background-color: #9fd9f6;
    padding: 80px 20px 100px;
}

.contact-inner {
    max-width: 680px;
    margin: 0 auto;
}

/* ===================================
   タイトル
   =================================== */
.contact-head {
    text-align: center;
    margin-bottom: 56px;
}

.contact-head-en {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.3em;
    color: #516881;
    margin: 0 0 6px;
}

.contact-head-title {
    font-size: 36px;
    font-weight: bold;
    color: #1e3a5a;
    margin: 0 0 14px;
    letter-spacing: 0.05em;
}

.contact-head-sub {
    font-size: 15px;
    color: #516881;
    line-height: 1.9;
    margin: 0;
}

/* ===================================
   送信完了 / エラーメッセージ
   =================================== */
.contact-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
    padding: 48px 40px;
    border-radius: 20px;
    gap: 16px;
}

.contact-result--success {
    background: #e8faf8;
    border: 2px solid #30b9bf;
}

.contact-result--error {
    background: #fff0f3;
    border: 2px solid #fe4c7f;
}

.contact-result-title {
    font-size: 22px;
    font-weight: 700;
    color: #516881;
    margin: 0;
}

.contact-result-text {
    font-size: 15px;
    color: #516881;
    line-height: 1.9;
    margin: 0;
}

/* ===================================
   フォーム
   =================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 15px;
    font-weight: 700;
    color: #516881;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-required {
    background: #fe4c7f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.form-optional {
    background: #9fd9f6;
    color: #516881;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 2px solid #c8e6f5;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #333;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #30b9bf;
}

.form-select-wrap {
    position: relative;
}

.form-select-wrap::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #9fd9f6;
    pointer-events: none;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

.form-privacy {
    font-size: 14px;
    color: #516881;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.privacy-link {
    color: #30b9bf;
    text-decoration: underline;
}

.privacy-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
}

.privacy-check {
    display: none;
}

.privacy-check-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #9fd9f6;
    border-radius: 4px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.privacy-check:checked + .privacy-check-custom {
    background: #30b9bf;
    border-color: #30b9bf;
}

.privacy-check:checked + .privacy-check-custom::after {
    content: '';
    width: 5px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translate(-1px, -1px);
}

.form-submit-area {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f5f29f;
    border: none;
    border-radius: 30px;
    padding: 14px 40px 14px 16px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    box-shadow: 1px 1px #898787;
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-submit img {
    width: 36px;
}

.btn-submit:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px #898787;
}

.btn-submit:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

/* ===================================
   レスポンシブ
   =================================== */
@media (max-width: 768px) {
    .contact-head-title {
        font-size: 28px;
    }

    .contact-form {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .contact-wrap {
        padding: 60px 16px 80px;
    }

    .contact-head-title {
        font-size: 22px;
    }

    .contact-head-sub {
        font-size: 14px;
    }

    .contact-result {
        padding: 32px 20px;
        margin-bottom: 32px;
    }

    .contact-result-title {
        font-size: 18px;
    }

    .contact-form {
        padding: 24px 16px;
    }
}
