/* ========================================
   リセットCSS
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   ヘッダー
   ======================================== */
header {
  background-color: #fff;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.logo-area {
  display: flex;
}

.logo-main {
  height: 40px;
  width: auto;
}

/* ========================================
   ヘッダーコンテンツ
   ======================================== */
.fv-container {
  background-color: rgba(226, 238, 244, 0.5);
}

.fv-container .title {
  margin-left: 11.5%;
  padding: 5% 0;
}

.fv-container .title h1 {
  font-family: "Futura PT", "Futura", "Avenir Next", sans-serif;
  color: #1B1D80;
  font-size: 2.7rem;
  font-weight: 300;
  letter-spacing: 4px;
}

.fv-container .title span {
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.fv-container .title p {
  margin-top: 18px;
  letter-spacing: 1px;
}

.fv-container .explain {
  padding: 3% 0 6% 11%;
  color: #fff;
  width: 82%;
  background-color: rgba(27, 29, 128, 0.8);
  line-height: 2.2;
  letter-spacing: 0.07em;
  font-size: 18px;
}

.fv-container .explain p {
  font-weight: 300;
  font-size: 0.95rem;
}

.fv-container .explain p span {
  font-size: 10px;
  line-height: 1;
  vertical-align: super;
}


/* ========================================
   メインコンテンツ
   ======================================== */
main {
  max-width: 1280px;
  margin: 0 auto;
}

/* ========================================
   フォーム
   ======================================== */
.form-step1 {
  background-image: url("/images/back01.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  aspect-ratio: 1280 / 683;

}

.sp-only {
  display: none;
}

form {
  margin: 0 auto;
  background-color: rgba(255, 253, 250, 0.8);
  padding: 3% 6%;
  position: relative;
  top: -65px;
  margin: 0 10%;
}

form p {
  color: #1B1D80;
  padding-left: 20px;
}

.form-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 35px;
  border-bottom: 1px solid #d3cece;
}

.form-input label {
  display: flex;
  align-items: center;
}

.form-input>label {
  width: 110px;
  flex-shrink: 0;
}

.form-input>label:not(:first-child) {
  width: auto;
}

.form-input span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  color: #fff;
  background-color: rgb(199, 18, 18);
  border-radius: 2px;
  padding: 1px 6px;
  margin-right: 30px;
}

.input-box {
  width: 40%;
  height: 47px;
  border: 1px solid rgba(223, 221, 218, 0.9);
  background-color: #f3f0f0;
  padding: 3px 10px;
}

select.input-box {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231B1D80' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

.form-input input[type="radio"] {
  margin: 0 6px 0 0;
}

/* ラジオボタン用フォーム（スマホで改行） */
.form-input-row {
  display: flex;
  align-items: center;
}

.form-input-row label {
  width: 110px;
  flex-shrink: 0;
}

.form-input-options {
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-input-options label {
  width: auto;
}

/* ========================================
   フォームSTEP2
   ======================================== */

.form-step2 .form-input .input-box {
  width: 65%;
}

.form-step2 .form-input>label {
  width: 120px;
}

.agreement {
  background-color: #e0dcdc;
  text-align: center;
  padding: 2.5%;
  margin-top: 30px;
}

.agreement p {
  color: #333;
}

.agreement-title {
  margin-bottom: 10px;
}

.agreement-link {
  font-size: 0.75rem;
  margin-top: 5px;
}

.agreement-link a {
  color: #1B1D80;
  text-decoration: underline;
  text-decoration-color: #1B1D80;
}


/* ========================================
   ボタン
   ======================================== */
button {
  color: #fff;
  background-color: #1B1D80;
  display: block;
  margin: 60px auto 0;
  border: none;
  width: 250px;
  height: 64px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: none;
}

button:hover:not(:disabled) {
  background-color: #2a2db5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(27, 29, 128, 0.3);
}

button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(27, 29, 128, 0.2);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* リンクボタンのスタイル（complete.php、error.php用） */
.btn-link {
  display: inline-block;
  color: #fff;
  background-color: #1B1D80;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  transform: translateY(0);
  box-shadow: none;
}

.btn-link:hover {
  background-color: #2a2db5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(27, 29, 128, 0.3);
}

.btn-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(27, 29, 128, 0.2);
}

.btn-link-outline {
  color: #1B1D80;
  background-color: #fff;
  border: 2px solid #1B1D80;
}

.btn-link-outline:hover {
  background-color: #1B1D80;
  color: #fff;
}


/* ========================================
   フッター
   ======================================== */
.footer-container {
  padding: 5% 10%;
}

.footer-logo {
  width: 34%;
}

.company-name {
  margin-top: 48px;
  font-size: 1.15rem;
}

.footer-inner {
  margin-top: 15px;
  display: flex;
  font-size: 0.9rem;
}

.address {
  font-size: 1rem;
  padding-bottom: 10px;
}

.link {
  margin-left: auto;
  line-height: 3;
  font-size: 0.75rem;
}

.link span {
  margin-right: 10px;
}

.copyright {
  display: flex;
  margin-top: 15px;
  align-items: flex-end;
}

.copyright-tel {
  font-size: 1.4rem;
}

.copyright span {
  font-size: 2.5rem;
  padding-left: 8px;
}

.copyright-note {
  font-size: 0.75rem;
  margin-left: auto;
  padding-bottom: 5px;
  color: #1B1D80;
}

/* ========================================
   レスポンシブ対応
   ======================================== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  body {
    overflow-x: hidden;
  }

  main {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .form-step1 {
    width: 100%;
    min-height: 50vh;
    aspect-ratio: auto;
    background-size: cover;
    background-position: 30% center;
    background-origin: padding-box;
    background-repeat: no-repeat;
  }

  form {
    margin: 0;
    padding: 3% 4%;
  }

  .header-container {
    padding: 15px;
  }

  .logo-main {
    height: 32px;
  }

  .logo-sub {
    height: 24px;
  }

  .fv-container .explain {
    width: 92%;
    padding: 3% 2% 11% 11%;
  }

  .fv-container .explain p {
    font-size: 0.9rem;
  }

  .fv-container .title h1 {
    font-size: 2rem;
  }

  form {
    top: -32px;
    width: 95%;
    margin: auto;
  }


  .form-input {
    flex-wrap: wrap;
  }

  .form-input-radio {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-input-row label {
    font-size: 1rem;
    width: 120px;
  }

  .sp-only {
    display: block;
  }

  .form-input .sp-only {
    flex: 0 0 100%;
    width: 100%;
    height: 0;
  }

  .input-box,
  .form-step2 .form-input .input-box {
    width: 95%;
  }

  button {
    width: 200px;
    height: 60px;
  }

  .footer-logo {
    width: 80%;
  }

  .company-name {
    margin-top: 30px;
  }

  .footer-inner {
    display: block;
  }

  .address {
    font-size: 1.2rem;
  }

  .address-text {
    font-size: 1.1rem;
  }

  .link {
    padding-top: 20px;
    line-height: 2;
  }

  .copyright {
    display: block;
  }

  .copyright-note {
    text-align: center;
    margin-top: 10px;
  }
}