.wrap{
  max-width: 960px;
  margin: 0 auto;
  width: 96%;
}
header{
  padding: 1rem 0;
  border-bottom: 5px solid #1794ac;
  margin-bottom: 3rem;
}
.flex{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo{
  width: 200px;
  margin-right: 40px;
}
h1{
  font-size: 2rem;
}
.bg_gray{
  background: #f1f1f1;
}
.form_area{
  padding: 2rem;
  margin-bottom: 3rem;
}
.hissu{
  color: #ce058b;
}
.other_source{
  display: none;
}
.new_customer_fields{
  background: rgba(23, 148, 172, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  border-left: 4px solid #1794ac;
}
.new_customer_fields h3{
  color: #1794ac;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
select{
  display: block;
  background: #fff!important;
  width: calc(100% - 2rem);
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
input[type="date"]{
  display: block;
  background: #fff!important;
  width: calc(100% - 2rem);
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
input[type="checkbox"]
,input[type="text"]
,input[type="email"]
,input[type="tel"]
,textarea{
  display: block;
  background: #fff!important;
  width: calc(100% - 2rem);
  padding: 1rem;
}
form div{
  margin-bottom: 2rem;
}
.title{
  margin-bottom: 3rem;
  text-align: center;
}
.submit_button{
display: block;
padding: 12px 30px;
width: 200px;
border-radius: 100px;
border: 1px solid #1794ac;
font-size: 14px;
line-height: 1.8;
letter-spacing: 0;
font-weight: 500;
position: relative;
background: #1794ac;
text-align: center;
color: #fff;
margin: 0 auto;
}
button#submit{
  cursor: pointer;
}
button#submit:hover{
  background: #fff;
  color: #1794ac;
}

/* 個人情報保護方針・利用規約のスタイル */
.agreement_section {
  margin: 3rem 0;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

.agreement_box {
  margin-bottom: 2rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}

.agreement_box h3 {
  background: linear-gradient(135deg, #1794ac 0%, #0f6b7a 100%);
  color: white;
  margin: 0;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.agreement_content {
  padding: 1.5rem;
  max-height: 100px;
  overflow-y: auto;
  background: #fafafa;
  font-size: 0.9rem;
  line-height: 1.6;
}

.agreement_content h4 {
  color: #1794ac;
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem 0;
  font-weight: 600;
}

.agreement_content h4:first-child {
  margin-top: 0;
}

.agreement_content p {
  margin: 0.5rem 0;
  color: #374151;
}

.agreement_content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.agreement_content li {
  margin: 0.3rem 0;
  color: #374151;
}

.agreement_checkboxes {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(23, 148, 172, 0.05);
  border-radius: 8px;
  border-left: 4px solid #1794ac;
}

.checkbox_label {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  cursor: pointer;
  font-weight: 500;
  position: relative;
}

.checkbox_label:last-child {
  margin-bottom: 0;
}

/* カスタム同意ボックス（Braveシールド対応版） */
.checkbox_label input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  cursor: pointer;
  height: 0 !important;
  width: 0 !important;
  z-index: -1;
}

.checkbox_label .checkmark {
  height: 20px;
  width: 20px;
  background-color: white;
  border: 2px solid #1794ac;
  border-radius: 4px;
  margin-right: 0.8rem;
  position: relative;
  display: inline-block !important;
  flex-shrink: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.checkbox_label:hover .checkmark {
  background-color: #f0f9ff;
  border-color: #0f6b7a;
  transform: scale(1.05);
}

.checkbox_label .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.checkbox_label input[type="checkbox"]:checked ~ .checkmark,
.checkbox_label.checked .checkmark {
  background-color: #1794ac !important;
  border-color: #1794ac !important;
}

.checkbox_label input[type="checkbox"]:checked ~ .checkmark:after,
.checkbox_label.checked .checkmark:after {
  display: block !important;
}

.checkbox_label input[type="checkbox"]:focus ~ .checkmark,
.checkbox_label.focused .checkmark {
  box-shadow: 0 0 0 3px rgba(23, 148, 172, 0.2);
}

.checkbox_label .hissu {
  margin-left: 0.3rem;
}

/* スクロールバーのカスタマイズ */
.agreement_content::-webkit-scrollbar {
  width: 8px;
}

.agreement_content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.agreement_content::-webkit-scrollbar-thumb {
  background: #1794ac;
  border-radius: 4px;
}

.agreement_content::-webkit-scrollbar-thumb:hover {
  background: #0f6b7a;
}
.plan-select-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.plan-select-wrapper select {
  flex: 1;
  min-width: 250px;
}

.plan-modal-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.plan-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.plan-modal-btn i {
  font-size: 16px;
}

/* モーダルのスタイル */
.plan-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.plan-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.plan-modal-content {
  position: relative;
  background: white;
  margin: 20px auto;
  padding: 0;
  max-width: 95%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.plan-modal-header {
  background: linear-gradient(135deg, #1794ac 0%, #0f6b7a 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.plan-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.plan-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.plan-modal-body {
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  padding: 0;
}

/* ローダーのスタイル */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #64748b;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #1794ac;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* モーダル内のプラン表示調整 */
.plan-modal-body .plan-section {
  padding: 0;
  background: none;
}

.plan-modal-body .plan-container {
  padding: 20px;
  max-width: none;
}

.plan-modal-body .plan-title {
  display: none;
}

.plan-modal-body .plan-subtitle {
  display: none;
}

.plan-modal-body .cta-buttons {
  display: none;
}

.plan-modal-body .cta-note {
  display: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .title h1,
    header h1 {
        font-size: 12px;
    }
  .plan-select-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  
  .plan-select-wrapper select {
    min-width: auto;
  }
  
  .plan-modal-content {
    margin: 10px;
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
  }
  
  .plan-modal-header {
    padding: 15px;
  }
  
  .plan-modal-header h2 {
    font-size: 1.2rem;
  }
}
