* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif;
  color: #06145f;
  background: #fbfaf8;
  line-height: 1.9;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.header { padding: 32px 0 20px; }

.header-inner,
.footer-inner {
  width: min(86%, 1120px);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img { width: 160px; }

.nav {
  display: flex;
  align-items: center;
  gap: 56px;
  font-size: 14px;
}

.nav-button {
  padding: 12px 32px;
  color: #fff;
  background: #213bc4;
  border-radius: 999px;
}

/* hero */
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  width: min(86%, 1120px);
  margin: 0 auto 120px;
  min-height: 250px;
}

.page-hero-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px;
  background: #273bc4;
  color: #fff;
}

.page-hero-title span {
  font-size: 12px;
  font-weight: 700;
  color: #1e90ff;
}

.page-hero-title h1 {
  margin: 8px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0.14em;
}

.page-hero-bg {
  background:
    linear-gradient(135deg, rgba(49, 201, 255, 0.25), rgba(112, 117, 255, 0.35)),
    url("images/02recruit.jpg") center / cover no-repeat;
}

/* common */
.section {
  width: min(86%, 1120px);
  margin: 0 auto 96px;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* form */
.contact-form {
  padding: 64px 96px;
  background: #fff;
  border-radius: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 28px;
}

.form-row label {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 16px;
}

.required,
.optional {
  display: inline-block;
  min-width: 52px;
  padding: 2px 12px;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}

.required { background: #fa2a27; }
.optional { background: #888; }

input,
select,
textarea {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: #c6daf4;
  padding: 14px 24px;
  color: #06145f;
  font: inherit;
  outline: none;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #06145f 50%),
                    linear-gradient(135deg, #06145f 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea {
  min-height: 220px;
  border-radius: 18px;
  resize: vertical;
}

.address-fields {
  display: grid;
  gap: 16px;
}

.zip-wrap {
  display: grid;
  grid-template-columns: 90px minmax(160px, 260px);
  gap: 16px;
  align-items: center;
}

.zip-wrap span {
  font-size: 13px;
  font-weight: 700;
}

.submit-wrap {
  text-align: center;
  margin-top: 40px;
}

.submit-wrap button {
  min-width: 330px;
  padding: 20px 56px;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #168bff, #fa2a27);
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.submit-wrap button:hover {
  transform: translateY(4px);
  box-shadow: inset 0 6px 14px rgba(0,0,0,0.18);
}

/* footer */
.footer {
  padding: 60px 0 32px;
  background: #050d62;
  color: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo { width: 170px; }

.footer-nav {
  display: flex;
  align-items: center;
  gap: 64px;
  font-size: 14px;
}

.footer-button {
  padding: 12px 36px;
  border: 1px solid #fff;
  border-radius: 999px;
}

.copyright {
  width: min(86%, 1120px);
  margin: 36px auto 0;
  text-align: right;
  font-size: 11px;
}

.hamburger { display: none; }

/* responsive */
@media (max-width: 768px) {
  .header { padding: 20px 0; }

  .header-inner { width: 90%; }

  .logo img { width: 130px; }

  .hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: none;
    background: #213bc4;
    border-radius: 50%;
    cursor: pointer;
  }

  .hamburger span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    transition: all 0.3s ease;
  }

  .hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) { opacity: 0; }

  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: 90px;
    right: 5%;
    z-index: 20;
    display: none;
    flex-direction: column;
    gap: 20px;
    min-width: 180px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  }

  .nav.is-open { display: flex; }

  .page-hero {
    width: 90%;
    min-height: auto;
    margin: 0 auto 56px;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background:
      linear-gradient(90deg, rgba(39, 59, 196, 0.92) 0%, rgba(39, 59, 196, 0.72) 45%, rgba(39, 59, 196, 0.15) 100%),
      url("images/02recruit.jpg") center / cover no-repeat;
  }

  .page-hero-title {
    padding: 44px 28px;
    min-height: 170px;
    background: transparent;
  }

  .page-hero-title h1 {
    font-size: 32px;
    line-height: 1.4;
  }

  .page-hero-bg { display: none; }

  .section {
    width: 90%;
    margin-bottom: 72px;
  }

  .contact-form {
    padding: 40px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }

  .form-row label {
    justify-content: space-between;
  }

  .zip-wrap {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .submit-wrap button {
    min-width: auto;
    width: 100%;
    font-size: 18px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav {
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .copyright {
    text-align: center;
  }
}

input::placeholder,
textarea::placeholder {
  color: #06145f;
  opacity: 0.75;
}

.page-hero-title h1 {
  font-size: clamp(32px, 6vw, 32px);
  line-height: 1.2;
  word-break: keep-all;
}

.contact-note {
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 0;
}

.contact-note p {
  color: #010326;
  font-size: 14px;
  line-height: 35px;
  letter-spacing: 0.5px;
}

.contact-note span {
  display: block;
}

/* ヘッダー固定のタグ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fbfaf8;
}

body {
  padding-top: 150px; /* ヘッダー高さ分 */
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: transparent; /* ← 最初は透明 */
  transition: all 0.8s ease;
}

/* スクロール後 */
.header.is-scrolled {
  background: rgba(251, 250, 248, 0.6);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header.is-scrolled .logo img {
  width: 100px; /* 少し縮小 */
}

#toTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #213bc4;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 999;
}

#toTop.show {
  opacity: 1;
  pointer-events: auto;
}

#toTop:hover {
  transform: translateY(4px);
}

.confirm-list {
  display: grid;
  gap: 0;
}

.confirm-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid #d8d8d8;
}

.confirm-row:first-child {
  padding-top: 0;
}

.confirm-key {
  font-weight: 700;
  color: #010326;
}

.confirm-value {
  color: #010326;
  line-height: 1.9;
  word-break: break-word;
}

.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.back-button {
  min-width: 220px;
  padding: 20px 48px;
  border: 2px solid #213bc4;
  color: #213bc4;
  background: #fff;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.back-button:hover {
  transform: translateY(4px);
  box-shadow: inset 0 6px 14px rgba(0,0,0,0.08);
  opacity: 0.9;
}

.error-note p {
  color: #fa2a27;
}

.error-row .confirm-value {
  color: #fa2a27;
  font-weight: 700;
}

@media (max-width: 768px) {
  .confirm-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }

  .confirm-buttons {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .back-button {
    width: 100%;
    min-width: auto;
  }
}

/* 確認画面 */
.confirm-form {
  padding: 64px 96px;
}

.confirm-list {
  width: 100%;
  margin: 0 auto 56px;
}

.confirm-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 24px 0;
  border-bottom: 1px solid #d8d8d8;
}

.confirm-row:first-child {
  padding-top: 0;
}

.confirm-key {
  font-weight: 700;
  color: #010326;
  font-size: 16px;
  line-height: 1.8;
}

.confirm-value {
  color: #010326;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  word-break: break-word;
}

/* ボタン間隔 */
.confirm-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 72px; /* PCのボタン間隔 */
  margin-top: 56px;
}

.confirm-buttons button {
  min-width: 300px;
}

.back-button {
  padding: 20px 56px;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, #168bff, #fa2a27);
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.back-button:hover,
.send-button:hover {
  transform: translateY(4px);
  box-shadow: inset 0 6px 14px rgba(0,0,0,0.18);
}

/* 説明文：PCもSPもヒーローと文頭を揃える */
.contact-note {
  width: min(86%, 1120px);
  max-width: none;
  margin: 20px auto 40px;
  padding: 0;
}

.contact-note p {
  color: #010326;
  font-size: 14px;
  line-height: 35px;
  letter-spacing: 0.5px;
  margin: 0;
}

.contact-note span {
  display: block;
}

@media (max-width: 768px) {
  /* 説明文をヒーローと揃える */
  .contact-note {
    width: 90%;
    margin: 32px auto 32px;
  }

  .contact-note p {
    font-size: 14px;
    line-height: 2;
  }

  /* 確認画面 */
  .confirm-form {
    padding: 40px 24px;
  }

  .confirm-list {
    margin-bottom: 40px;
  }

  .confirm-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }

  .confirm-key {
    font-size: 14px;
  }

  .confirm-value {
    font-size: 15px;
    line-height: 1.8;
  }

  /* スマホのボタン間隔 */
  .confirm-buttons {
    flex-direction: column;
    gap: 18px;
    margin-top: 40px;
  }

  .confirm-buttons button,
  .back-button,
  .send-button {
    width: 100%;
    min-width: auto;
  }
}