.contact-container {
    max-width: 1020px;
    margin: 50px auto;
    padding: 0 20px;
}

.membership-container {
    max-width: 1190px;
    margin: 80px auto 50px;

}

.contact-title {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    position: relative;
}

.contact-title::after {
    content: "";
    position: absolute;
    left: -10px;
    right: 0px;
    bottom: -6px;
    height: 1px;
    background-color: #ccc;
}

.contact-bullet {
    color: #dc000c;
    font-size: 28px;
    line-height: 1;
    position: relative;
    top: -7px;
}

/* テキストとボタンを横並びに */
.contact-intro {
    display: flex;
    gap: 140px;
    margin-bottom: 40px;
}

/* 登録ボタン */
.membership-submit-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    max-width: 322px;
    width: 100%;
    height: 64px;
    background-color: #dc000c;
    color: #fff;
    font-size: 18px;
    border: none;
    cursor: pointer;
    font-family: Kaku Gothic New, Medium;
    margin-top: 10px;
}

.contact-txt {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
    font-family: "Zen Kaku Gothic New", "游ゴシック", sans-serif;
    letter-spacing: 0.1em;
    margin-top: 30px;
    margin-bottom: 80px;
}

/* 横並びフォーム */
.form-row-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 5px;
}

.membership-submit-btn svg {
    width: 15px;
    height: 15px;
    margin-left: 10px;
    margin-top: 5px;
}

.membership-submit-btn svg path {
    stroke-width: 1;
}

.membership-benefits {
    max-width: 1190px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;
    margin-bottom: 150px;
}

.membership-benefits .benefit-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.membership-benefits .benefit-box h3 {
    font-size: 18px;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
    font-family: Zen Kaku Gothic New, Medium;
}

.membership-benefits .benefit-box h3::before,
.membership-benefits .benefit-box h3::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: #000;
}

.membership-benefits .benefit-box h3::before {
    left: -90px;
    top: 60%;
}

.membership-benefits .benefit-box h3::after {
    right: -90px;
    top: 60%;
}

.membership-benefits .benefit-box h3 span {
    display: block;
    font-size: 70px;
    margin-top: 5px;
    font-family: Century Gothic, Bold;
    color: #fff;
    -webkit-text-stroke: 1px #000;
    text-stroke: 2px #000;
    font-weight: 500;
}

.membership-benefits .benefit-box h4 {
    font-size: 24px;
    margin: 10px 0 20px;
    line-height: 1.6;
    font-family: "Zen Kaku Gothic New", Medium;
}

.membership-benefits .benefit-img {
    margin-bottom: 20px;
}

.membership-benefits .benefit-box p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    border-bottom: 1px solid #000;
    padding-bottom: 40px;
    width: 330px;
    text-align: left;
    font-family: "Zen Kaku Gothic New", Medium;
}

/* タイトル・サブタイトル */
.membership-header {
    text-align: center;
    margin-bottom: 80px;
}

.membership-subtitle {
    font-size: 16px;
    color: #000000;
    font-family: Zen Kaku Gothic New, Medium;
}

.membership-description {
    font-size: 16px;
    color: #000000;
    font-family: Zen Kaku Gothic New, Medium;
    margin-top: 10px;
}

/* ラベルボックス（お問い合わせ内容） */
.form-label-box-inquiry {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    height: 378px;
    background-color: #f5f5f5;
    font-weight: 500;
    text-align: left;
    border-radius: 4px;
    padding-left: 30px;
    gap: 25px;
    font-size: 16px;
}

.form-label-box-inquiry.required::after,
.form-label-box-customer-request.required::after,
.form-label-box-customer-address.required::after {
    content: " 必須";
    color: #fff;
    background-color: #dc000c;
    font-size: 13px;
    padding: 2px 6px;
    margin-left: auto;
    margin-right: 20px;
}

/* 入力欄（共通） */
.form-input-horizontal {
    flex: 1;
    font-size: 16px;
    background-color: #fff;
    border: none;
    border-bottom: 2px solid #ccc;
    padding: 22px 10px;
    border-radius: 0;
    transition: border-color 0.15s ease;
}
.form-input-horizontal:focus {
    outline: none;
    border-bottom-color: #ccc;
}

.form-divider {
    height: 2px;
    background-color: #ccc;
    width: calc(100% - 295px);
    margin-left: 295px;
    margin-top: 0;
    margin-bottom: 0;
}

/* お問い合わせ内容ブロック */
.form-input-inquiry {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 2px solid #ccc;
}

/* 自由記入欄 */
.form-input-other {
    width: 667px;
    height: 92px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 16px;
    border-radius: 4px;
    resize: none;
}

.btn-submit {
    background-color: #dc000c;
    color: white;
    font-size: 16px;
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-subtitle {
    font-size: 16px;
    font-weight: 500;
    margin: 60px 0 20px 0;
    padding-left: 10px;
    font-family: "DNP 秀英角ゴシック銀 Std, B", sans-serif;
}

/* ラベルボックス （名前・フリガナ・メアド・電話番号・企業名用）*/
.form-label-box-customer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    height: 99px;
    background-color: #f5f5f5;
    font-weight: 500;
    text-align: left;
    border-radius: 4px;
    padding-left: 30px;
    font-size: 16px;
}

.form-label-box-customer.required::after {
    content: " 必須";
    color: #fff;
    background-color: #dc000c;
    font-size: 13px;
    padding: 2px 6px;
    margin-left: auto;
    margin-right: 20px;
}

/* ボックス型入力欄 */
.contact-container input.form-input-customer-company,
.contact-container input.form-input-customer-mail,
.contact-container input.form-input-customer-phone_num,
.contact-container input.form-input-customer-password {
    width: 689px;
    height: 72px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    font-size: 16px;
    border-radius: 7px;
    resize: none;
    margin-top: 15px;
    letter-spacing: 0.1em;
}

/* 名前専用の横並びラッパー */
.name-row .name-input-wrapper,
.furigana-row .furigana-input-wrapper {
    display: flex;
    gap: 20px;      
    width: 689px;   
    margin-top: 15px;
}

/* 姓・名の入力欄*/
.name-row .name-input,
.furigana-row .furigana-input {
    flex: 1;
    height: 72px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 16px;
    border-radius: 7px;
    letter-spacing: 0.1em;
}

/* ラベルボックス（要望用） */
.contact-container input.form-input-customer-request {
    width: 689px;
    height: 218px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 16px;
    border-radius: 7px;
    resize: none;
    margin-top: 15px;
    letter-spacing: 0.1em;
}

.form-label-box-customer-request.required {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    height: 248px;
    background-color: #f5f5f5;
    font-weight: 500;
    text-align: left;
    border-radius: 7px;
    padding-left: 30px;
    gap: 25px;
    font-size: 16px;
}

/* 各行（郵便番号、都道府県など） */
.form-subrow {
    display: flex;
    align-items: center;
    gap: 20px;
}

.form-divider-address {
    height: 2px;
    background-color: #ccc;
    margin-top: 0;
    margin-bottom: 15px;
}

/* 各項目名 */
.form-sublabel {
    width: 110px;
    font-size: 16px;
    font-weight: 500;
    margin-left: 10px;
    white-space: nowrap;
}

/* パスワード用 */
.form-label-box-customer.required {
    display: flex;
}

.form-label-box-customer.required span,
.form-label-box-customer.required::before {
    transform: translateY(35px);
}

.form-label-note {
    font-size: 14px;
    color: #0b0b0b;
    margin-top: 4px;
    font-weight: normal;
    font-family: "DNP 秀英角ゴシック銀 Std, B", sans-serif;
    line-height: 1.4;
    font-weight: 500;
}

.label-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-label-box-customer.required.label-vertical::after {
    content: " 必須";
    color: #fff;
    background-color: #dc000c;
    font-size: 13px;
    padding: 2px 6px;
    margin-left: auto;
    margin-right: 20px;
    position: relative;
    top: -12px;
}

/* 初期状態の文字を薄くする */
.form-input-customer-select option[value=""] {
    color: #999;
}

.form-input-customer-select:valid {
    color: #000;
}

.form-input-customer-select:invalid {
    color: #999;
}

/* フォーカス時 */
.form-input-customer-address:focus,
.form-input-customer-address select:focus {
    outline: none;
    border-color: #000000;
}

/* チェックボックス全体のエリア */
.privacy-consent {
    margin-top: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 30px;
}

/* チェックボックス */
.privacy-checkbox {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #333;
}

/* テキスト部分 */
.privacy-text {
    font-size: 16px;
    color: #333;
    font-family: "DNP 秀英角ゴシック銀 Std B" sans-serif;
    color: #d71122;
    font-weight: 500;
    letter-spacing: 0.12em;
}

/* 必須マーク */
.required-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 21px;
    background-color: #d71122;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
}

.contact-submit-btn {
    display: inline-block;
    width: 400px;
    height: 70px;
    background-color: #d71122;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 60px;
    border: none;
    cursor: pointer;
    margin: 40px auto 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 住所用 */
.form-input-customer-address-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.form-input-customer-address-group .form-input-customer-address {
    width: 506px;
    height: 72px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    letter-spacing: 0.1em;
}

.form-label-box-customer-address {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    height: 425px;
    background-color: #f5f5f5;
    font-weight: 500;
    text-align: left;
    border-radius: 4px;
    padding-left: 30px;
    font-size: 16px;
}

.form-input-customer-address-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.form-divider-address {
    height: 2px;
    background-color: #ccc;
    margin-top: 0;
    margin-bottom: 15px;
}

/* 入力欄 */
.form-input-customer-address-group .form-input-customer-address {
    width: 506px;
    height: 72px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    letter-spacing: 0.1em;
    transform: translateX(40px);
}

/* 郵便番号のブロック */
.form-subrow.postcode {
    margin-top: 15px;
}

/* 都道府県のブロック */
.form-subrow.prefecture {
    margin-top: 20px;
}

/* ▼ セレクトボックス本体 */
.form-input-customer-select {
    width: 230px;
    height: 72px;
    padding: 10px 40px 10px 10px; /* 右側に矢印分の余白 */
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpolygon points='6,0 12,12 0,12' fill='%23666'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpolygon points='0,0 12,0 6,12' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 13px 8px;
    background-position: right 12px top 33%, /* ▲ */ right 12px bottom 28%; /* ▼ */
    transform: translateX(40px);
}

/* 初期状態の文字を薄くする */
.form-input-customer-select option[value=""] {
    color: #999;
}

.form-input-customer-select:valid {
    color: #000;
}

.form-input-customer-select:invalid {
    color: #999;
}

.membership-title {
    position: relative;
    font-size: 28px;
    text-align: center;
    padding: 0 80px; 
    display: inline-block;
    font-weight: 500;
    margin-bottom: 80px;
    color: #000;
}

/* 左［ と 右］のベース */
.membership-title::before,
.membership-title::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 17px;   
    height: 74px;  
    transform: translateY(-50%);
    display: block;
    border: none;
}

/* 左の［ */
.membership-title::before {
    left: 0;
    border-left: 1px solid #000;           
    border-top: 1px solid #000;            
    border-bottom: 1px solid #000;         
}

/* 右の］ */
.membership-title::after {
    right: 0;
    border-right: 1px solid #000;          
    border-top: 1px solid #000;            
    border-bottom: 1px solid #000;         }




@media screen and (min-width: 520px) and (max-width: 959px) {
}

@media screen and (max-width: 519px) {
    .membership-benefits {
        max-width: 100%;
        display: block;
    }
    .contact-intro {
        display: block;
        padding: 0 20px;
    }
    .membership-submit-btn {
        max-width: 100%;
    }
    .form-row-horizontal {
        display: block;
    }
    .membership-benefits {
        max-width: 100%;
        display: block;
    }

    .form-label-box-inquiry {
        display: block;
        width: 100%;
    }

    .contact-container input.form-input-customer-name,
    .contact-container input.form-input-customer-furigana,
    .contact-container input.form-input-customer-mail,
    .contact-container input.form-input-customer-phone_num,
    .contact-container input.form-input-customer-password {
        width: 100%;
    }
    .form-label-box-customer {
        display: block;
        width: 100%;
    }
    .form-label-box-customer-request.required {
        width: 100%;
    }
    .contact-container input.form-input-customer-request {
        width: 100%;
    }
    .form-divider {
        display: none;
    }
    .membership-container {
        margin: 100px auto;
    }

    .membership-benefits .benefit-box p {
        border-bottom: none;
    }

    .membership-title {
    margin-bottom: 30px;
}
    .form-input-customer-address-group .form-sublabel {
    white-space: nowrap;  
}
}
