@charset "UTF-8";

.sp-only {
  display: none;
}

@media (max-width: 600px) {
  .sp-only {
    display: block;
  }
}

/* ========== Entry Form Common ========== */
#entry {
  padding: 135px 0 80px;
}

#entry .container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
}

#entry h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

/* ========== Step Indicator ========== */
.step-indicator {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 50px;
  gap: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-block-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  width: calc(100% - 12px);
  height: 2px;
  background: #ccc;
  z-index: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ccc;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: bold;
  position: relative;
  z-index: 1;
  margin-bottom: 8px;
}

.step-circle.active {
  background: #333;
}

.step-label {
  font-size: 1.1rem;
  color: #999;
  white-space: nowrap;
}

.step-label.active {
  color: #333;
  font-weight: bold;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: #ccc;
  margin-top: 18px;
}

/* ========== Form Styles ========== */
.entry-form .form-group {
  margin-bottom: 28px;
}

.entry-form label.form-label {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.entry-form label.form-label .required {
  display: inline-block;
  background: #F00;
  color: #fff;
  font-size: 1rem;
  font-weight: normal;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.entry-form label.form-label .optional-note {
  display: inline-block;
  background: #456D6C;
  color: #fff;
  font-size: 1rem;
  font-weight: normal;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.entry-form label.form-label .form-note {
  display: inline;
  background: #fff;
  color: #333;
  font-size: 1rem;
  font-weight: normal;
  margin-left: 6px;
}

.entry-form .input-row {
  display: flex;
  gap: 12px;
}

.entry-form .input-row input {
  flex: 1;
}

.entry-form input[type="text"],
.entry-form input[type="email"],
.entry-form input[type="tel"],
.entry-form input[type="url"],
.entry-form select,
.entry-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1.6rem;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  appearance: none;
}

.entry-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.entry-form textarea {
  height: 160px;
  resize: vertical;
}

.entry-form input[type="text"]::placeholder,
.entry-form input[type="email"]::placeholder,
.entry-form input[type="tel"]::placeholder,
.entry-form input[type="url"]::placeholder,
.entry-form textarea::placeholder {
  color: #bbb;
}

/* Birth date row */
.birth-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.birth-row select {
  width: auto;
}

.birth-row span {
  font-size: 1.3rem;
  white-space: nowrap;
}

/* Radio buttons */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.4rem;
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #333;
}

/* File upload */
.file-upload-area {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  margin-bottom: 6px;
}

.file-upload-area input[type="file"] {
  display: none;
}

.file-upload-btn {
  padding: 6px 12px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1.2rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.file-name-display {
  font-size: 1.2rem;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size-note {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 10px;
}

/* Privacy checkbox */
.privacy-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0;
}

.privacy-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #333;
  flex-shrink: 0;
}

.privacy-group label {
  font-size: 1.3rem;
  cursor: pointer;
}

.privacy-group label a {
  text-decoration: underline;
  color: inherit;
}

/* Error message */
.error-msg {
  color: #e53e3e;
  font-size: 1.2rem;
  margin-top: 6px;
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: #e53e3e;
}

.global-error {
  background: #fff5f5;
  border: 1px solid #e53e3e;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 24px;
  color: #e53e3e;
  font-size: 1.3rem;
}

/* ========== Buttons ========== */
.form-btn-area {
  text-align: center;
  margin-top: 40px;
}

/* 確認画面 送信ボタン（round-btn circle スタイル） */
.confirm-btn-area {
  text-align: center;
  margin-top: 50px;
}

.btn-entry-submit {
  display: block;
  width: 260px;
  padding: 18px 0;
  border: 1px solid #333;
  border-radius: 0;
  background: #fff;
  margin: 0 auto;
  cursor: pointer;
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}

.btn-entry-submit:hover {
  background: #333;
  color: #fff;
}

.btn-back-link {
  display: block;
  margin-top: 24px;
  font-size: 1.3rem;
  color: #666;
  text-decoration: none;
  cursor: pointer;
}

.btn-confirm {
  display: inline-block;
  padding: 16px 160px;
  background: #fff;
  border: 1px solid #333;
  border-radius: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}

.btn-confirm:hover {
  background: #333;
  color: #fff;
}

.btn-submit {
  display: inline-block;
  padding: 16px 60px;
  background: #333;
  color: #fff;
  border: 1px solid #333;
  border-radius: 30px;
  font-size: 1.5rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #555;
}

.btn-back {
  display: inline-block;
  padding: 16px 60px;
  background: #fff;
  border: 1px solid #999;
  border-radius: 30px;
  font-size: 1.5rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  color: #666;
  transition: background 0.2s;
  margin-right: 20px;
}

.btn-back:hover {
  background: #f5f5f5;
}

/* ========== Confirmation List ========== */
.confirm-list {
  margin-bottom: 40px;
}

.confirm-item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.confirm-item:first-child {
  border-top: 1px solid #eee;
}

.confirm-item .confirm-label {
  font-size: 1.2rem;
  color: #333;
  font-weight: bold;
  margin-bottom: 6px;
}

.confirm-item .confirm-value {
  font-size: 1.5rem;
  color: #333;
}

.confirm-note {
  font-size: 1.3rem;
  color: #666;
  text-align: center;
  margin-bottom: 30px;
}

/* ========== Complete Page ========== */
#entry .complete-box {
  text-align: center;
}

#entry .complete-box h2 {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

#entry .complete-box p {
  font-size: 1.4rem;
  line-height: 2;
  color: #555;
  margin-bottom: 36px;
}

#entry .complete-box .complete-email-box {
  display: block;
  background: #333;
  color: #fff;
  font-size: 1.4rem;
  padding: 14px 20px;
  margin: 0 auto 40px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

#entry .complete-box .btn-top {
  display: inline-block;
  padding: 16px 80px;
  border: 1px solid #333;
  border-radius: 15px;
  background: #fff;
  color: #333;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

#entry .complete-box .btn-top:hover {
  background: #333;
  color: #fff;
}

@media (max-width: 600px) {
  .step-connector {
    width: 40px;
  }

  .entry-form .input-row {
    flex-direction: column;
    gap: 8px;
  }

  .birth-row {
    flex-wrap: wrap;
  }

  .btn-back,
  .btn-confirm,
  .btn-submit {
    padding: 14px 30px;
    font-size: 1.4rem;
  }

  .btn-confirm,
  .btn-entry-submit,
  .btn-submit {
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
  }


  #entry .complete-box {
    padding: 0;
  }

  #entry .container {
    padding: 0;
  }

  .confirm-table th {
    width: 40%;
  }
}
