/* ===== モーダル_mF ===== */
.modal_mF {
  display: none !important;
  position: fixed !important;
  z-index: 1000 !important;
  left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important;
  background: rgba(0,0,0,0.4) !important;
  justify-content: center !important;
  align-items: center !important;
}
.modal_mF.open_mF {
  display: flex !important;
}
.modal-content_mF {
  background: #fff !important;
  border-radius: 12px !important;
  padding: 32px 24px !important;
  width: 90% !important;
  max-width: 500px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1) !important;
  text-align: center !important;
}
.modal-content_mF h2 {
  margin-top: 0 !important;
  color: #ffb6c1 !important;
}
.modal-scrollbox_mF {
  max-height: 250px !important;
  overflow-y: auto !important;
  text-align: left !important;
  border: 1px solid #eee !important;
  padding: 16px !important;
  margin: 16px 0 !important;
  background: #fafafa !important;
  font-size: 14px !important;
}
.close-modal_mF {
  background: #ffb6c1 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 24px !important;
  font-size: 15px !important;
  cursor: pointer !important;
  margin-top: 8px !important;
}
.close-modal_mF:hover {
  background: #ff69b4 !important;
}
/* ===== リンク_mF ===== */
.link_mF {
  color: #ffb6c1 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  margin: 0 2px !important;
}
/* ===== SNSアイコン_mF ===== */
.sns-icons_mF {
  margin-bottom: 12px !important;
}
.sns-icons_mF a {
  display: inline-block !important;
  margin: 0 12px !important;
  vertical-align: middle !important;
}
.sns-icons_mF img {
  width: 32px !important;
  height: 32px !important;
  filter: grayscale(0.2) !important;
  transition: filter 0.2s !important;
}
.sns-icons_mF img:hover {
  filter: grayscale(0) brightness(1.2) !important;
}

/* 登録セクション */
.register-section {
    padding: 5rem 2rem;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff5f8, #f8f0ff);
}

.register-container {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.register-container h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.register-container h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 1rem auto;
}

.register-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* フォームスタイル */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #333;
    font-weight: 500;
}

.form-group input {
    padding: 0.8rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* チェックボックス */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
}

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

.checkmark {
    position: absolute;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
    border-radius: 5px;
    transition: all 0.3s;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ddd;
}

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

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

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

.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-text {
    font-size: 0.9rem;
    color: #666;
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* 登録ボタン */
.register-submit {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.register-submit:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ローディングスピナー */
.loading-spinner {
    color: white;
    font-size: 1.2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .register-section {
        padding: 3rem 1rem;
    }

    .register-container {
        padding: 1.5rem;
    }

    .register-container h2 {
        font-size: 1.8rem;
    }

    .form-group input {
        font-size: 16px; /* モバイルでの自動ズームを防ぐ */
    }
}