/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ヘッダー */
.header {
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid #e2e2e2;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.header__logo {
    height: 40px;
    width: auto;
}

/* メインコンテンツ */
.main-container {
    margin: auto;
    padding: 5% 5%;
    max-width: 100%;
}

/* ログインリンクセクション */
.login-link-section {
    text-align: center;
    margin-bottom: 30px;
}

.login-link-text {
    font-size: 14px;
    color: #333;
}

.login-link {
    color: #1a76d2;
    text-decoration: underline;
    cursor: pointer;
}

.login-link:hover {
    opacity: 0.75;
}

/* フォームコンテナ */
.form-container {
    max-width: 100%;
}

.form-h2 {
    text-align: center;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6%;
}

/* フォームグループ */
.form-group {
    margin: 0 auto 12%;
}

.input-group {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 7%;
}

/* ラベル */
.label {
    font-size: 15px;
    color: #000;
    margin-bottom: 7px;
    position: relative;
    font-weight: 400;
    padding-left: 2px;
}

.label.required::after {
    content: '※';
    color: red;
    position: absolute;
    font-size: 8px;
    padding-left: 2px;
    top: 0;
}

/* 入力フィールド */
.input-wrap {
    display: flex;
    justify-content: center;
    gap: 0px 7px;
}

.input-half {
    width: 100%;
}

.input {
    background: #EBEDF0;
    padding: 10px;
    font-size: 14px;
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 0.25rem;
}

.input.error {
    border: 2px solid #FF32B9;
}

.input:focus,
.input.error:focus {
    outline: 2px solid #FF32B9 !important;
    border: none !important;
}

/* テキストエリア */
.textarea {
    background: #EBEDF0;
    padding: 10px;
    font-size: 14px;
    width: 100%;
    border: none;
    border-radius: 0.25rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.textarea.error {
    border: 2px solid #FF32B9;
}

.textarea:focus,
.textarea.error:focus {
    outline: 2px solid #FF32B9 !important;
    border: none !important;
}

/* セレクトボックス */
.select {
    background: #ebedf0;
    padding: 10px 40px 10px 10px;
    font-size: 14px;
    width: 100%;
    height: 52px;
    border: none;
    border-radius: .25rem;
    color: #76777F;
    cursor: pointer;
    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='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1.41 0L6 4.59 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px 8px;
}

.select.error {
    border: 2px solid #FF32B9;
}

.select:focus,
.select.error:focus {
    outline: 2px solid #FF32B9 !important;
    border: none !important;
}

/* 選択後の色を黒に */
.select:not([value=""]):valid,
.select option:not([value=""]) {
    color: #000;
}

/* 生年月日用セレクト */
.input-barth {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
}

/* 日付グループ */
.input-date-group {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.select-short {
    flex: 1;
}

.date-separator {
    font-weight: bold;
    color: #000;
}

/* ラジオボタン */
.radio-group {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 7px;
    width: 100%;
    flex-wrap: wrap;
}

.radio-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    width: auto;
    min-width: 30%;
}

.radio-input {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    cursor: pointer;
}

.radio-label {
    cursor: pointer;
}

/* チェックボックス */
.checkbox {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

[type='checkbox']:focus {
    box-shadow: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-label {
    color: #6C6B6B;
    font-size: 12px;
    cursor: pointer;
}

.checkbox-label a {
    color: #1a76d2;
    text-decoration: underline;
    display: inline;
    transition-duration: 0.4s;
    cursor: pointer;
}

.checkbox-label a:hover {
    opacity: 0.75;
}

/* Standalone checkbox for employment status */
.checkbox-group.standalone {
    margin: 10px 0;
}

.checkbox-group.standalone .checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
}

.checkbox-group.standalone .checkbox-label {
    color: #000;
    font-size: 14px;
    font-weight: normal;
}

/* チェックボックスリスト */
.checkbox-list {
    display: grid;
    /* grid-template-columns: repeat(1, 1fr); */
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px 0;
}

.checkbox-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-list-item input {
    min-width: 18px;
    min-height: 18px;
    width: 18px;
    height: 18px;
}

.checkbox-list-item label {
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
}

/* ブランドグループリスト（1カラム） */
.brand-group-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
}

/* 単独ブランド */
.brand-single-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.brand-single-item input {
    min-width: 18px;
    min-height: 18px;
    width: 18px;
    height: 18px;
}

.brand-single-item label {
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    flex: 1;
}

/* 企業グループ */
.brand-company-group {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
}

/* 企業グループヘッダー */
.brand-company-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    cursor: pointer;
}

.brand-company-header input {
    min-width: 18px;
    min-height: 18px;
    width: 18px;
    height: 18px;
}

.company-label {
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    color: #333;
}

/* アコーディオントグルボタン */
.accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.accordion-arrow {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.accordion-toggle[aria-expanded="true"] .accordion-arrow {
    transform: rotate(-135deg);
}

/* ブランドリスト（アコーディオン内） */
.brand-company-brands {
    display: none;
    padding: 0;
    background: #fff;
}

.brand-company-brands.open {
    display: block;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px 10px 45px;
    border-top: 1px solid #e8e8e8;
}

.brand-item input {
    min-width: 18px;
    min-height: 18px;
    width: 18px;
    height: 18px;
}

.brand-item label {
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    flex: 1;
}

.note-text {
    font-size: 12px;
    color: #6C6B6B;
    font-style: italic;
}

/* エラーメッセージ */
.error {
    color: #FF32B9;
    font-size: 12px;
    display: block;
    min-height: 0;
}

/* 送信ボタン */
.actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2%;
    margin-top: 40px;
}

.button {
    background-color: #FF32B9;
    padding: 3%;
    width: 65%;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid #000;
    cursor: pointer;
    transition: opacity 0.3s;
}

.button:hover {
    opacity: 0.75;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* レスポンシブデザイン (PC) */
@media (min-width: 768px) {
    .header__logo {
        height: 50px;
    }

    .main-container {
        margin: 0 auto;
        padding: 60px 0 40px;
        width: 90vw;
        max-width: 600px;
    }

    .login-link-text {
        font-size: 16px;
    }

    .form-h2 {
        font-size: 24px;
        margin-bottom: 3%;
        text-align: left;
    }

    .form-group {
        margin-bottom: 15%;
    }

    .label {
        font-size: 16px;
    }

    .button {
        width: 38%;
        font-size: 19px;
        font-weight: 700;
        letter-spacing: 0.06rem;
        padding: 2%;
    }

    .checkbox-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .checkbox-label {
        font-size: 15px;
    }

    .radio-item {
        min-width: auto;
    }
}

/* ========================================
   受付状態切り替え用スタイル
   .is-closed クラスを付与すると非表示になります
======================================== */
.is-closed {
    display: none !important;
}

/* ========================================
   受付終了メッセージ用スタイル
   受付再開時は以下のスタイルをそのまま残しておいてください
   （再度使用する可能性があるため）
======================================== */
.closed-message-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.closed-message-container {
    text-align: center;
    max-width: 500px;
    padding: 40px 30px;
    background: #fff;
    border-radius: 12px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
}

.closed-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.closed-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 24px;
}

.closed-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

.closed-text strong {
    color: #333;
}

.closed-thanks {
    font-size: 15px;
    color: #666;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e2e2;
}

.closed-links {
    text-align: center;
}

.closed-links p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.closed-link-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: #FF32B9;
    color: #000;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #000;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.closed-link-button:hover {
    opacity: 0.75;
}

/* PC用 */
@media (min-width: 768px) {
    .closed-message-section {
        min-height: 50vh;
        padding: 60px 20px;
    }

    .closed-message-container {
        padding: 50px 40px;
    }

    .closed-icon {
        font-size: 56px;
    }

    .closed-title {
        font-size: 28px;
    }

    .closed-text {
        font-size: 17px;
    }

    .closed-link-button {
        padding: 16px 40px;
        font-size: 16px;
    }
}
/* ========================================
   受付終了メッセージ用スタイル ここまで
======================================== */
