/* --- 🌟 参加ページ・行動規範用スタイル (css/join.css) --- */

.join-section {
    max-width: 800px;
    margin: 0 auto;
}

/* 規約ボックス */
.rules-box {
    background-color: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    max-height: 500px;
    overflow-y: auto; /* 長くなった場合はスクロールさせる */
}

.rules-box h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--acc-blue);
    padding-bottom: 10px;
}

.rule-item {
    margin-top: 30px;
}

.rule-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.rule-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- 同意エリアとチェックボックス --- */
.agreement-area {
    background-color: var(--acc-blue);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

/* カスタムチェックボックスのデザイン */
.checkbox-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    user-select: none;
}

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

.checkmark {
    position: relative;
    height: 24px;
    width: 24px;
    background-color: #fff;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 15px;
    transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* チェックマークのアイコン (CSSで描画) */
.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;
}

/* --- 無効化状態のボタン --- */
.btn-slack {
    padding: 15px 40px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-slack.disabled {
    background: #cbd5e0; /* グレーアウト */
    color: #718096;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none; /* クリックを無効化 */
}