@charset "utf-8";
/* ==========================================================================
   Contact Form & Thanks Page - Combined Stylesheet
   ========================================================================== */

/* ===== CSS Variables ===== */
:root {
  --primary: #4a47ba;
  --primary-light: #ededf8;
  --primary-pale: #ededf8;
  --accent: #4a47ba;
  --accent-light: #ededf8;
  --text: #000;
  --text-light: #6b6b6b;
  --bg: #faf9f7;
  --white: #ffffff;
  --border: #d4d0cb;
  --border-focus: #2d5a47;
  --error: #c45c5c;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Base ===== */
body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ===== Shared Background ===== */
.contact,
.thanks_main {
  min-height: 100vh;
  /* display: flex;
  align-items: flex-start;
  justify-content: center; */
  display: block;

}
.header{
	padding:30px 0 0;
}
.logo{
	text-align: center;
	max-width: 133px;
	margin: auto;
}
img{
	max-width:100%;
}
.contact {
  padding: 20px 20px 100px;
}

/* ===== Shared Animation ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 720px;
  animation: fadeUp 0.8s ease-out both;
  margin: auto;
}

/* ==========================================================================
   Contact Form Page
   ========================================================================== */

/* ----- Title ----- */
.c-title {
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}

.c-title h2 {
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary);
  letter-spacing: 0.06em;
  position: relative;
  display: inline-block;
}

.c-title h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ----- Note ----- */
.note {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 36px;
  line-height: 1.6;
}

.note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.note a:hover {
  border-bottom-color: var(--primary);
}

.sup {
  color: var(--error);
  font-size: 0.75rem;
  vertical-align: super;
  margin-left: 2px;
}

/* ----- Form Card ----- */
.contact__content {
  background: var(--white);
  border-radius: 16px;
  padding: 48px 44px 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.contact__content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
}

/* ----- Form Group ----- */
.form-group {
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }

/* ----- Target Item Toggle ----- */
.target-item {
  overflow: hidden;
  max-height: 300px;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.4s ease;
}

.target-item.is-hidden {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0 !important;
}

/* ----- Labels ----- */
.form-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* ----- Inputs ----- */
.input-text,
.input-textarea {
  width: calc(100% - 35px);
  padding: 14px 16px;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: all var(--transition);
  line-height: 1.6;
}

.input-text:hover,
.input-textarea:hover {
  border-color: #b0ada6;
}

.input-text:focus,
.input-textarea:focus {
  /* border-color: var(--border-focus);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(45, 90, 71, 0.08); */
}

.input-text::placeholder,
.input-textarea::placeholder {
  color: #b5b0a8;
}

.input-textarea {
  resize: vertical;
  min-height: 160px;
}

/* ----- Radio Buttons ----- */
.form-input.select {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-input.select label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  flex: 1;
  min-width: 180px;
  justify-content: center;
}

.form-input.select label:hover {
  border-color: var(--primary-light);
  background: var(--primary-pale);
}

.form-input.select input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.form-input.select input[type="radio"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-input.select input[type="radio"]:checked {
  border-color: var(--primary);
}

.form-input.select input[type="radio"]:checked::after {
  transform: translate(-50%, -50%) scale(1);
}

.form-input.select label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-pale);
  color: var(--primary);
}

/* ----- Checkbox (shared) ----- */
.item-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
  flex-shrink: 0;
}

.item-checkbox::after {
  content: "";
  position: absolute;
  top: 0;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.item-checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.item-checkbox:checked::after {
  transform: rotate(45deg) scale(1);
}

.item-checkbox:hover {
  border-color: var(--primary-light);
}

/* ----- Agree Checkbox ----- */
.form-agree {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 28px;
}

.form-agree__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.form-agree__inner label {
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.agree-icon {
  font-size: 0.7rem;
  color: var(--primary);
  margin-right: 2px;
}

.agree-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--primary);
  transition: all var(--transition);
  padding-bottom: 1px;
}

.agree-link:hover {
  opacity: 0.8;
}

/* ----- Submit Button ----- */
.form-submit {
  text-align: center;
  margin-bottom: 0 !important;
}

.submit-button {
  display: inline-block;
  padding: 16px 64px;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(45, 90, 71, 0.2);
  z-index: 0;
}

.submit-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45, 90, 71, 0.28);
}

.submit-button:hover::before {
  opacity: 1;
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(45, 90, 71, 0.2);
}

/* ----- Submit Disabled ----- */
.submit-button:disabled {
  background: #b8b8b8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.7;
}

.submit-button:disabled::before {
  display: none;
}

.submit-button:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  padding: 20px;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: 16px;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.modal-overlay.is-active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.modal-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.modal-close:hover {
  background: var(--primary-pale);
  color: var(--primary);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.9;
}

.modal-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 24px;
  margin-bottom: 8px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.modal-body h4:first-child {
  margin-top: 0;
}

.modal-body .modal-lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-body .modal-chapter {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  padding: 8px 16px;
  border-radius: 6px;
  border-left: none;
  margin-top: 32px;
  margin-bottom: 16px;
}

.modal-body .modal-contact {
  background: var(--bg);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.9;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.modal-body .modal-date {
  text-align: right;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.modal-body p {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.85;
}

.modal-footer {
  padding: 16px 28px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  flex-shrink: 0;
}

.modal-btn {
  display: inline-block;
  padding: 10px 48px;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background: var(--primary);
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.06em;
}

.modal-btn:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(45, 90, 71, 0.2);
}

/* ==========================================================================
   Thanks Page
   ========================================================================== */
.thanks .container {
  width: 100%;
  max-width: 600px;
  background: var(--white);
  border-radius: 16px;
  padding: 56px 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.8s ease-out both;
}

.thanks .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
}
.thanks{
  width: 600px;
  margin: auto;
  @media(max-width:767px){
    width: auto;
  }
}
.thanks_main {
  align-items: center;
  padding: 40px 20px;
}

/* ----- Thanks Icon ----- */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.thanks-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  background: var(--primary-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.thanks-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thanks-icon .check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck 0.5s 0.7s ease-out forwards;
}

.thanks-icon--download {
  background: var(--accent-light);
}

.thanks-icon--download svg {
  stroke: var(--accent);
}

/* ----- Thanks Heading ----- */
.thanks h2 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  animation: fadeUp 0.6s 0.4s ease-out both;
}
  .thanks h2 br{
    display: none;
  }
.thanks h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ----- Thanks Description ----- */
.thanks-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-top: 20px;
  animation: fadeUp 0.6s 0.5s ease-out both;
}

/* ----- Download Button ----- */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 48px;
  margin-top: 28px;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: #4a47ba;
  border: none;
  border-radius: 60px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(199, 149, 109, 0.25);
  animation: fadeUp 0.6s 0.6s ease-out both;
}

.btn-download::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(199, 149, 109, 0.35);
}

.btn-download:hover::before {
  opacity: 1;
}

.btn-download span,
.btn-download svg {
  position: relative;
  z-index: 1;
}

.btn-download svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----- Back Link ----- */
.thanks-back {
  margin-top: 32px;
  padding-top: 24px;
  margin-left: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  animation: fadeUp 0.6s 0.7s ease-out both;
  text-align: left;
}

.thanks-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: all var(--transition);
  padding: 8px 0;
}

.thanks-back a::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--primary-pale);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition);
}

.thanks-back a::after {
  content: "";
  position: absolute;
  left: 7px;
  width: 6px;
  height: 6px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
}

.thanks-back a:hover {
  color: var(--primary-light);
}

.thanks-back a:hover::before {
  background: var(--primary);
}

.thanks-back a:hover::after {
  border-color: var(--white);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  /* -- Contact -- */
  .contact {
    padding: 48px 16px 64px;
  }

  .c-title h2 {
    font-size: 1.4rem;
  }

  .contact__content {
    padding: 32px 24px 28px;
    border-radius: 12px;
  }

  .form-input.select {
    flex-direction: column;
  }

  .form-input.select label {
    min-width: unset;
    justify-content: flex-start;
  }

  .form-group {
    margin-bottom: 22px;
  }

  .input-text,
  .input-textarea {
    padding: 12px 14px;
    font-size: 16px; /* prevents iOS zoom */
  }
  .input-textarea{
	  min-height: 100px;
	  max-height: 150px;
  }
  .submit-button {
    width: 100%;
    padding: 16px 32px;
  }

  .form-agree__inner {

  }
.form-agree__inner label{
	display: block;
}
  /* -- Modal -- */
  .modal {
    max-height: 85vh;
    border-radius: 12px;
  }

  .modal-header {
    padding: 20px 20px 16px;
  }

  .modal-title {
    font-size: 1rem;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 14px 20px 16px;
  }

  /* -- Thanks -- */
  .thanks_main {
    padding: 32px 16px;
  }

  .thanks .container {
    padding: 44px 0;
    border-radius: 12px;
  }

  .thanks h2 {
    font-size: 1.25rem;
  }
  .thanks h2 br{
    display: block;
  }
  .thanks-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 24px;
  }

  .thanks-icon svg {
    width: 30px;
    height: 30px;
  }

  .btn-download {
    width: auto;
    justify-content: center;
    padding: 16px 32px;
  }
}

/* ==========================================================================
   Error Page
   ========================================================================== */

/* ----- Error Icon ----- */
.thanks-icon--error {
  background: #fce8e8;
}

.thanks-icon--error svg {
  stroke: var(--error);
}

.thanks-icon--error .error-line1,
.thanks-icon--error .error-line2 {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
}

.thanks-icon--error .error-line1 {
  animation: drawCheck 0.4s 0.6s ease-out forwards;
}

.thanks-icon--error .error-line2 {
  animation: drawCheck 0.4s 0.75s ease-out forwards;
}

/* ----- Error Heading Color ----- */
.error-page h2 {
  color: var(--error);
}

.error-page h2::after {
  background: linear-gradient(90deg, var(--error), var(--accent));
}

/* ----- Retry Button ----- */
.error-actions {
  margin-top: 28px;
  animation: fadeUp 0.6s 0.6s ease-out both;
}

.btn-retry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 48px;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none;
  border-radius: 60px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(45, 90, 71, 0.2);
  z-index: 0;
}

.btn-retry::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.btn-retry:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45, 90, 71, 0.28);
}

.btn-retry:hover::before {
  opacity: 1;
}

.btn-retry span,
.btn-retry svg {
  position: relative;
  z-index: 1;
}

.btn-retry svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}