.contact-main {
    padding-top: 30px;
    width: 100%;
    overflow-x: hidden;
    background-color: #F2F2F2;
}

body {
    background-color: #F2F2F2;
    margin: 0;
    padding: 0;
}

.contact-image {
    margin-top: 60px;
    width: 100%;
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* お問い合わせ案内テキスト */
.contact-info {
    max-width: 900px;
    height: auto;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 60px auto;
    color: #333;
    text-align: center;
    font-family: "BIZ UDGothic";
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 3.36px;
    padding: 0 20px;
}

.contact-info p {
    margin: 0;
}

/* フォームセクションの共通スタイル */
.contact-form-section,
.contact-type-section {
    max-width: 1270px;
    margin: 30px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-type-container {
    max-width: 1270px;
    margin: 30px auto;
    padding: 0 8px;  /* 左右のパディングを設定 */
    box-sizing: border-box;
}

/* お問い合わせ項目選択セクション */
.contact-type-section {
    margin-bottom: 0;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-type-title {
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 25px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 4.2px;
    margin-bottom: 20px;
    margin-left: 20px;
}

.contact-type-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* お問い合わせフォーム */
.contact-form {
    background: #FFFFFF;
    padding: 60px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* フォームラベル */
.form-group label {
    display: flex;
    align-items: center;
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
    margin-bottom: 10px;
}

.form-group label::before {
    content: "■";
    margin-right: 8px;
    color: #333;
}

.form-group label.required::after {
    content: "(必須)";
    color: #E60012;
    font-family: "BIZ UDGothic";
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 1.25px;
    margin-left: 10px;
}

/* フォーム入力要素 */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #F2F2F2;
    border-radius: 7px;
    font-family: "BIZ UDGothic";
    font-size: 16px;
    box-sizing: border-box;
    background: #F2F2F2;
}

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

/* チェックボックススタイル */
.contact-type-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 7px 20px 6px 60px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #FFFFFF;
    border: 1px solid transparent;
}

.contact-type-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.contact-type-checkbox .checkmark {
    position: absolute;
    left: 20px;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #CCCCCC;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.contact-type-checkbox .option-text {
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 2px;
    transition: color 0.2s ease;
}

/* プライバシーポリシー */
.privacy-policy {
    grid-column: 1 / -1;
    margin: 0;
    text-align: left;
}

.privacy-header {
    display: block;
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: left;
}

.privacy-header::before {
    content: "■";
    margin-right: 8px;
    color: #333;
}

.privacy-header .required {
    color: #E60012;
    font-family: "BIZ UDGothic";
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
    letter-spacing: 1.25px;
    margin-left: 10px;
}


.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-family: "BIZ UDGothic";
    font-size: 16px;
    padding-left: 30px;
}


.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-container .checkmark {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #28A7E1;
    border-color: #28A7E1;
}

.checkbox-container .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.policy-text {
    margin-left: 10px;
}

.policy-text a {
    color: #28A7E1;
    text-decoration: none;
}

.policy-text a:hover {
    text-decoration: underline;
}

/* 送信ボタン */
.form-button {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 40px;
}

.submit-button {
    background: #28A7E1;
    color: white;
    font-family: "BIZ UDGothic";
    font-size: 20px;
    letter-spacing: 2px;
    padding: 15px 100px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: #2391C4;
}

/* リンクボタンのスタイル */
.contact-main .link-buttons {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    position: relative;
    left: 0;
    margin-top: 100px;
}

.contact-main .link-buttons-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
}

.contact-main .link-button {
    width: 50%;
    
    position: relative;
    overflow: hidden;
}

.link-button video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* or cover, fill など用途に応じて選択 */
    display: block;
  }
  

.contact-main .link-button .move-icon {
    position: absolute;
    transition: transform 0.3s ease;
}

.contact-main .recruit-button .move-icon {
    bottom: 80px;
    right: 80px;
    width: 270px;
    height: 32px;
}

.contact-main .return-button .move-icon {
    bottom: 85px;
    right: 80px;
    width: 286px;
    height: 32px;
}

.contact-main .link-button:hover .move-icon {
    transform: translateX(20px);
}

.contact-main .link-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-main .link-button-content {
    position: absolute;
    top: 80px;
    left: 90px;
    z-index: 1;
}

.contact-main .link-button-title {
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 32px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 4.8px;
    margin-bottom: 10px;
}

.contact-main .link-button-subtitle {
    color: #333;
    font-family: "BIZ UDGothic";
    font-size: 16px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 2.4px;
}

/* チェックボックスの状態スタイル */
.contact-type-checkbox input:checked ~ .checkmark {
    background-color: #28A7E1;
    border-color: #28A7E1;
    transform: scale(1.05);
}

.contact-type-checkbox input:checked ~ .option-text {
    color: #28A7E1;
}

.contact-type-checkbox input:checked ~ .checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.contact-type-checkbox:hover {
    border-color: #E6E6E6;
    background: #F8F8F8;
}

.contact-type-checkbox:hover .checkmark {
    border-color: #28A7E1;
}

.contact-type-checkbox:active {
    transform: scale(0.99);
}

.contact-type-checkbox input:focus-visible ~ .checkmark {
    box-shadow: 0 0 0 2px rgba(40, 167, 225, 0.3);
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {

    .contact-main .link-button-title {  
        font-size: 26px;
        letter-spacing: 4.8px;
    }

    .contact-form-section,
    .contact-type-section {
        max-width: 100%;
    }

    .contact-main .link-button-content {
        top: 60px;
        left: 60px;
    }
    
    .contact-main .return-button .move-icon {
        bottom: 30px;
        right: 45px;
        width: 225px;
        height: 24px;
    }
    
    .contact-main .recruit-button .move-icon {
        bottom: 30px;
        right: 50px;
        width: 204px;
        height: 24px;
    }
}

@media screen and (max-width: 767px) {
    .privacy-header,
    .checkbox-container {
        font-size: 14px;
    }

    .checkbox-container .checkmark {
        height: 18px;
        width: 18px;
    }

    .checkbox-container .checkmark:after {
        left: 6px;
        top: 2px;
        width: 4px;
        height: 9px;
    }
    .contact-main {
        padding-top: 40px;
    }

    .contact-info {
        font-size: 18px;
        letter-spacing: 2px;
        margin: 40px auto;
        padding: 0 15px;
    }

    .contact-form-section,
    .contact-type-section {
        margin: 30px auto;
        padding: 0 15px;
    }

    .contact-type-section {
        padding: 30px 20px;
    }

    .contact-type-title {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .contact-form {
        padding: 30px 20px;
        grid-template-columns: 1fr;  /* 縦並びに変更 */
        gap: 20px;
    }

    .contact-main .link-buttons-container {
        flex-direction: column;
    }

    .contact-main .link-button {
        width: 100%;
    }

    .contact-main .link-button-content {
        top: 40px;
        left: 40px;
    }

    .contact-main .link-button-title {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .contact-main .link-button-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .submit-button {
        width: 100%;
        padding: 15px 20px;
    }
}

@media screen and (max-width: 575px) {
    .privacy-header {
        font-size: 14px;
    }

    .checkbox-container {
        font-size: 14px;
    }
    .contact-main {
        padding-top: 110px;
    }

    .contact-info {
        font-size: 15px;
        letter-spacing: 1.2px;
        margin: 30px auto;
        padding: 0 10px;
    }

    .contact-form-section,
    .contact-type-section {
        margin: 20px 0px;
        padding: 0 10px;
    }

    .contact-type-section {
        padding: 20px 15px;
    }

    .contact-type-title {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .contact-type-checkbox {
        padding: 10px 12px 10px 30px;
    }

    .contact-type-checkbox .option-text {
        font-size: 12px;
        letter-spacing: 0.8px;
        line-height: 20px;
    }
    .contact-type-options{
        gap:0px;
    }
    .contact-type-checkbox .checkmark {
        left: 4px;
        
    }
    .contact-type-title{
        margin-bottom: 11px;
    margin-left: 10px;
    margin-top: 16px;
    }

    .contact-form {
        padding: 35px 20px;
        gap: 15px;
    }

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

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px;
    }

    .privacy-header,
    .checkbox-container {
        font-size: 14px;
    }

    .contact-main .link-button-content {
        top: 30px;
        left: 30px;
    }

    .contact-main .link-button-title {
        font-size: 24px;
        letter-spacing: 3.6px;
    }

    .contact-main .link-button-subtitle {
        font-size: 12px;
        letter-spacing: 1.8px;
    }

    .submit-button {
        font-size: 16px;
    }

    .contact-main .recruit-button .move-icon,
    .contact-main .return-button .move-icon {
        bottom: 23px;
        right: 27px;
        width: 172px;
        height: 20px;
    }
}