/* =========================================================
   SeaOne Contact
   index.html（SeaOne Educationトップ）の色・余白・角丸に合わせた専用スタイル
========================================================= */
.contact-page {
  background:
    radial-gradient(circle at 8% 18%, rgba(45,118,212,.11), transparent 30%),
    radial-gradient(circle at 94% 9%, rgba(255,103,82,.08), transparent 25%),
    #f5f8fd;
}

.contact-main {
  min-height: 100vh;
  padding-top: 84px;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0 clamp(44px, 6vw, 76px);
  color: #fff;
  background:
    linear-gradient(115deg, rgba(20,66,145,.98), rgba(45,118,212,.94)),
    linear-gradient(135deg, var(--blue), var(--blue-2));
}

.contact-hero::before,
.contact-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.contact-hero::before {
  width: 340px;
  height: 340px;
  right: -90px;
  top: -180px;
  border: 55px solid rgba(255,255,255,.08);
}

.contact-hero::after {
  width: 180px;
  height: 180px;
  right: 18%;
  bottom: -130px;
  background: rgba(255,103,82,.18);
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

.contact-hero .kicker {
  color: rgba(255,255,255,.76);
}

.contact-hero h1 {
  margin: 4px 0 12px;
  font-size: clamp(2.35rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.contact-hero p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(.98rem, 1.7vw, 1.12rem);
  color: rgba(255,255,255,.9);
}

.contact-section {
  padding: clamp(42px, 6vw, 82px) 0 clamp(72px, 9vw, 118px);
}

.contact-container {
  width: min(100% - 32px, 980px);
}

.contact-steps {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  position: relative;
}

.contact-steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 16.666%;
  right: 16.666%;
  height: 2px;
  background: #d5e0ef;
  z-index: 0;
}

.contact-steps li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #8b99ac;
  font-size: .84rem;
}

.contact-steps li span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid #d5e0ef;
  color: #8190a5;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(30,70,130,.06);
}

.contact-steps li.is-active {
  color: var(--blue);
}

.contact-steps li.is-active span {
  border-color: var(--blue);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.contact-steps li.is-complete span {
  border-color: #74a9e8;
  background: #e8f3ff;
  color: var(--blue);
}

.contact-panel {
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(30,88,182,.12);
  border-radius: 28px;
  box-shadow: 0 24px 65px rgba(18,47,92,.11);
  overflow: hidden;
}

.contact-panel-head {
  padding: clamp(26px, 4vw, 42px) clamp(24px, 5vw, 54px);
  background: linear-gradient(135deg, #f7fbff, #fff9f6);
  border-bottom: 1px solid rgba(30,88,182,.11);
}

.contact-panel-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -.025em;
}

.contact-panel-head p {
  margin: 0;
  color: var(--muted);
}

.seaone-contact-form {
  padding: 0 clamp(24px, 5vw, 54px) clamp(34px, 5vw, 52px);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(190px, 28%) 1fr;
  gap: 28px;
  align-items: start;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.form-label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

.required-badge,
.optional-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 42px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.4;
}

.required-badge {
  color: #fff;
  background: var(--coral);
}

.optional-badge {
  color: #6c7a91;
  background: #e9eef6;
}

.form-control input,
.form-control select,
.form-control textarea {
  width: 100%;
  appearance: none;
  border: 1.5px solid #cbd8e8;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  padding: 13px 15px;
  box-shadow: 0 4px 14px rgba(30,70,130,.035) inset;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form-control select {
  padding-right: 46px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%),
    linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 51%,
    calc(100% - 14px) 51%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-control textarea {
  resize: vertical;
  min-height: 190px;
}

.form-control input:focus,
.form-control select:focus,
.form-control textarea:focus {
  outline: none;
  border-color: var(--blue-2);
  box-shadow: 0 0 0 4px rgba(45,118,212,.11);
  background: #fcfeff;
}

.form-control input::placeholder,
.form-control textarea::placeholder {
  color: #a2adbd;
}

.field-note {
  margin: 7px 2px 0;
  color: var(--muted);
  font-size: .82rem;
}

.field-error {
  margin: 7px 2px 0;
  color: #d84235;
  font-weight: 800;
  font-size: .84rem;
}

.form-alert {
  margin: 30px clamp(24px, 5vw, 54px) 0;
  padding: 15px 17px;
  border-radius: 13px;
  border: 1px solid rgba(216,66,53,.24);
  background: #fff3f1;
  color: #b83429;
  font-weight: 800;
}

.privacy-box {
  margin: 30px 0 0;
  padding: 22px 24px;
  border-radius: 16px;
  background: #f4f8fd;
  border: 1px solid #d8e3f0;
}

.privacy-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 800;
}

.privacy-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.privacy-box > p {
  margin: 8px 0 0 30px;
  color: var(--muted);
  font-size: .86rem;
}

.form-actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
  padding: 34px clamp(24px, 5vw, 54px) 42px;
}

.seaone-contact-form .form-actions {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.contact-button {
  appearance: none;
  min-height: 56px;
  min-width: min(100%, 245px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  line-height: 1.45;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  transform: translateY(-2px);
}

.contact-button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--coral-2));
  box-shadow: 0 13px 28px rgba(255,103,82,.26);
}

.contact-button--primary:hover,
.contact-button--primary:focus-visible {
  box-shadow: 0 16px 34px rgba(255,103,82,.34);
}

.contact-button--secondary {
  color: var(--blue);
  background: #edf5ff;
  border: 1px solid #c9ddf5;
  box-shadow: none;
}

.confirm-list {
  margin: 0;
  padding: 12px clamp(24px, 5vw, 54px) 0;
}

.confirm-list > div {
  display: grid;
  grid-template-columns: minmax(190px, 28%) 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.confirm-list dt {
  font-weight: 900;
  color: var(--ink);
}

.confirm-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #334f77;
}

.confirm-message dd {
  white-space: normal;
}

.confirm-muted {
  color: #9aa7b8;
}

.contact-complete {
  padding: clamp(46px, 7vw, 76px) 24px;
  text-align: center;
}

.complete-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 18px 38px rgba(30,88,182,.24);
  font-size: 2.2rem;
  font-weight: 900;
}

.contact-complete h2 {
  margin: 5px 0 14px;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
}

.contact-complete p {
  margin: 0 auto 30px;
  color: var(--muted);
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .contact-main {
    padding-top: 76px;
  }

  .contact-hero {
    padding-top: 50px;
  }

  .contact-container {
    width: min(100% - 22px, 980px);
  }

  .contact-steps {
    margin-bottom: 22px;
  }

  .contact-steps li {
    font-size: .74rem;
  }

  .contact-steps li span {
    width: 38px;
    height: 38px;
  }

  .contact-steps::before {
    top: 18px;
  }

  .contact-panel {
    border-radius: 20px;
  }

  .form-row,
  .confirm-list > div {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .form-row {
    padding: 20px 0;
  }

  .form-label {
    min-height: 0;
  }

  .form-actions {
    flex-direction: column-reverse;
    padding-top: 28px;
  }

  .seaone-contact-form .form-actions {
    flex-direction: column;
  }

  .contact-button {
    width: 100%;
  }

  .privacy-box {
    padding: 18px;
  }

  .privacy-box > p {
    margin-left: 0;
  }
}
