/* フォームコンテナ */
.contact-form-container {
  padding: 1.5rem 0;
}

table.formtable {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  font-size: 1rem;
  color: #2c3e50;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
}

table.formtable th,
table.formtable td {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

table.formtable th {
  background-color: rgba(122, 100, 209, 0.05);
  font-weight: bold;
  text-align: left;
  width: 30%;
  min-width: 160px;
}

table.formtable td {
  background-color: transparent;
}

/* 必須マーク */
table.formtable tr.required th label::after {
  content: "必須";
  display: inline-block;
  background-color: #ff5e62;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  font-weight: normal;
  vertical-align: middle;
}

/* フォームパーツのデザイン */
.formtable input[type="text"],
.formtable input[type="email"],
.formtable input[type="number"],
.formtable select,
.formtable textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.formtable textarea {
  resize: vertical;
}


.formtable input:focus,
.formtable select:focus,
.formtable textarea:focus {
  outline: none;
  border-color: #7a64d1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(122, 100, 209, 0.1);
}

/* 郵便番号個別調整 */
.zip-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zip-container input {
  width: 100px !important;
}

/* 住所個別調整 */
.addr-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* チェックボックス・ラジオボタン */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* 送信ボタン*/
.btn-submit-container {
  text-align: center;
  margin-top: 40px;
}

.btn-submit {
  display: inline-block;
  padding: 15px 60px;
  background: linear-gradient(135deg, #7a64d1 0%, #494bd4 100%);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(122, 100, 209, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(122, 100, 209, 0.6);
}

/* 非表示クラス (JS用) */
.hidden {
  display: none !important;
}

/* 確認画面用 */
.confirm-content-wrapper {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.confirm-description {
  color: #2c3e50;
  margin-bottom: 30px;
  line-height: 1.6;
}

.confirm-table {
  border: 1px solid #e2e8f0;
  color: #2c3e50;
  margin: 0 0 30px 0;
}

.confirm-table th {
  background-color: #f1f5f9;
  color: #475569;
  width: 35%;
  min-width: auto;
}

.confirm-btn-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.btn-back {
  background: #94a3b8 !important;
  box-shadow: none !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 送信完了画面用 */
.complete-container {
  text-align: center;
  padding: 80px 5%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.complete-icon {
  font-size: 5rem;
  color: #7a64d1;
  margin-bottom: 30px;
}

.complete-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.complete-text {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
}

.complete-btn {
  text-decoration: none;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  table.formtable {
    margin: 20px 0;
  }

  table.formtable tr,
  table.formtable th,
  table.formtable td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  table.formtable th {
    padding: 15px 20px 10px;
    border-bottom: none;
  }

  table.formtable td {
    padding: 10px 20px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  }

  .btn-submit {
    width: 100%;
    padding: 15px 30px;
  }

  .confirm-content-wrapper {
    padding: 25px 15px;
    margin: 20px auto;
    width: 95%;
    max-width: 95%;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .tab-content-container {
    padding: 25px 15px !important;
    width: 95% !important;
    margin: 0 auto !important;
  }

  .confirm-btn-container {
    flex-direction: column-reverse;
    gap: 15px;
  }

  .complete-container {
    padding: 60px 5%;
    min-height: auto;
  }

  .complete-icon {
    font-size: 4rem;
    margin-bottom: 20px;
  }

  .complete-title {
    font-size: 1.5rem;
  }
}


/* 賛助のPDF */
.link-box a {
  text-decoration: none;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.25rem;
}

.link-box a:hover {
  background-color: #357abd;
  color: white;
  text-decoration: none;
  transform: translateX(5px);
}


.link-box a:active {
  background-color: #357abd;
  color: white;
  text-decoration: none;
  transform: scale(0.97);
}