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

/* 登録セクション */
.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;
}

/* プラン選択のスタイル */
.plan-selection {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.plan-option {
    flex: 1;
    padding: 1.5rem;
    border-width: 1px;
    border-style: solid;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.plan-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.plan-option.selected {
    border-color: var(--primary-color);
    background: #fff5f8;
    border-width: 4px;
}

.plan-option h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.plan-details {
    font-size: 0.9rem;
}

.plan-details .price {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.plan-details .period {
    color: #666;
    margin-bottom: 1rem;
}

.features h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.features ul {
    list-style: none;
    padding-left: 0;
}

.features ul li {
    margin-bottom: 0.5rem;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.features ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.features ul ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.features ul ul li:before {
    content: "•";
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .plan-selection {
        flex-direction: column;
    }

    .plan-option {
        margin-bottom: 1rem;
    }
}

/* フォームスタイル */
.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;
}

/* 機能比較表のスタイル */
.feature-comparison {
    margin-top: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-comparison h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.feature-comparison table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.feature-comparison th,
.feature-comparison td {
    padding: 0.8rem;
    text-align: center;
    border: 1px solid #eee;
}

.feature-comparison th {
    background: #fff5f8;
    color: #333;
    font-weight: bold;
}

.feature-comparison th:first-child {
    text-align: left;
}

.feature-comparison td:first-child {
    text-align: left;
    color: #333;
}

.feature-comparison td {
    color: #666;
}

.feature-comparison .category {
    background: #f8f8f8;
    font-weight: bold;
    color: #333;
    text-align: left;
}

/* レスポンシブ対応 */
@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; /* モバイルでの自動ズームを防ぐ */
    }
}

.plan-option.campaign-version_Cp {
    border: 2px solid #ff9800;
    background: #fffbe6;
    position: relative;
    border-width: 1px;
    border-style: solid;
}
.plan-option.campaign-version_Cp.selected {
    border-color: #ff9800;
    background: #fff8e1;
    border-width: 4px;
}
.campaign-badge_Cp {
    display: inline-block;
    background: #ff9800;
    color: #fff;
    font-size: 0.85em;
    font-weight: bold;
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 8px;
    vertical-align: middle;
}
.plan-details .note_Cp {
    color: #ff9800;
    font-size: 0.95em;
    margin-top: 0.5em;
}