.entry {
  padding: 100px 0;
}
.container {
  max-width: 900px;
  margin: 0 auto;
}
.entry-header {
  text-align: center;
  margin-bottom: 20px;
}
.entry-header p {
  font-size: 30px;
  line-height: 2;
  font-weight: 800;
  margin-left: auto;
}
.entry-lead-title {
  margin: 0 0 18px;
  color: #06379f;
  font-size: 35px;
  font-weight: 900;
  line-height: 1.5;
}
.entry-header .entry-lead-text {
  margin: 0;
  font-size: 18px;
  line-height: 2;
  color: #000;
  font-weight: 700;
}
.entry-line-area {
  margin: 50px auto 70px;
}
.entry-line-title {
  margin: 0 0 40px;
  font-size: 20px;
  font-weight: 900;
}
.entry-line-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.entry-line-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 350px;
  min-height: 65px;
  background: #06c755;
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 900;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.entry-line-btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}
.entry-line-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}
.entry-form-heading {
  scroll-margin-top: 100px;
  padding-top: 34px;
  border-top: 1px solid #ddd;
}
.entry-form-title {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}
/* ========================================
   レイアウト
======================================== */
.entry-form {
  padding: 0 50px;
}
.form-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid #eee;
}
.form-group:last-child {
  border-bottom: none;
}
/* 左ラベル */
.form-label {
  width: 200px;
  min-width: 200px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  padding-top: 0;
}
/* 右入力エリア */
.form-group > div, .form-group > input, .form-group > select, .form-group > textarea, .form-group > .grid-2, .form-group > .grid-3, .form-group > .radio-group, .form-group > .checkbox, .form-group > .submit-wrap {
  flex: 1;
}
/* ========================================
   必須タグ
======================================== */
.required::after {
  content: "必須";
  display: inline-block;
  margin-left: 10px;
  font-size: 11px;
  font-weight: 400;
  background: #C00;
  color: #fff;
  padding: 2px 8px;
  vertical-align: middle;
}
/* ========================================
   入力系
======================================== */
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #dcdcdc;
  background: #fff;
  font-size: 15px;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  line-height: normal;
}
textarea {
  height: auto;
  min-height: 160px;
  padding: 16px;
  resize: vertical;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #111;
}
/* ========================================
   select矢印位置調整
======================================== */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  /* ←ここで右余白調整 */
  background-position: right 18px center;
  background-size: 12px;
  padding-right: 55px;
}
/* ========================================
   サブラベル
======================================== */
.sub-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}
/* ========================================
   グリッド
======================================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
.mt16 {
  margin-top: 16px;
}
/* ========================================
   ラジオ
======================================== */
.radio-group {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  writing-mode: horizontal-tb;
  white-space: nowrap;
}
.radio-group input[type="radio"] {
  accent-color: #06379f;
}
/* ========================================
   住所
======================================== */
.address-wrap {
  flex: 1;
}
/* ========================================
   チェックボックス
======================================== */
.checkbox-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
  margin: 0;
  padding: 0;
}
.checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #06379f;
  margin: 0;
}
.checkbox span {
  line-height: 1.5;
  text-decoration: none;
}
.checkbox a {
  color: #06379f;
  text-decoration: none;
  transition: .3s;
}
.checkbox a:hover {
  opacity: .7;
}
/* ========================================
   ボタン
======================================== */
.submit-wrap {
  text-align: center;
  width: 100%;
}
.submit-wrap button {
  width: 350px;
  height: 60px;
  border: none;
  background: #06379f;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: .3s;
  margin-top: 50px;
}
.submit-wrap button:hover {
  opacity: .85;
  transform: translateY(-2px);
}
.confirm-list {
  border-top: 1px solid #eee;
}
.confirm-list dl {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 28px 0;
  border-bottom: 1px solid #eee;
}
.confirm-list dt {
  width: 200px;
  min-width: 200px;
  font-weight: 700;
}
.confirm-list dd {
  flex: 1;
  margin: 0;
  line-height: 1.8;
}
.confirm-submit-wrap {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.confirm-submit-wrap button {
  width: 280px;
}
.submit-wrap .form-back-button {
  background: #e5e5e5;
  color: #333;
}
.submit-wrap .form-back-button:hover {
  background: #d8d8d8;
  color: #333;
  opacity: 1;
}
.submit-wrap .form-submit-button {
  background: #06379f;
  color: #fff;
}
.thanks-back {
  width: 280px;
  margin: 48px auto 0;
}
.form-back-link {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid #06379f;
  background: #ffffff;
  color: #06379f;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 15px 16px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
  z-index: 0;
}
.form-back-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #06379f;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}
.form-back-link:hover::before {
  left: 0;
}
.form-back-link:hover {
  color: #ffffff;
}
.form-back-link:hover .form-back-link-arrow {
  filter: brightness(0) invert(1);
}
.form-back-link-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: filter 0.4s ease;
}
/* ========================================
   SP
======================================== */
@media screen and (max-width: 768px) {
  .entry {
    padding: 60px 0;
  }
  .entry-header {
    margin-bottom: 10px;
  }
  .entry-header p {
    font-size: 22px;
    line-height: 1.9;
    text-align: center;
  }
  .entry-form {
    padding: 0;
  }
  .form-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 0;
  }
  /* 入力エリアを横幅いっぱい */
  .form-group > div {
    flex: 1;
    width: 100%;
  }
  .form-group > select, .form-group > input, .form-group > textarea {
    width: 100%;
    display: block;
  }
  select {
    min-height: 50px;
    color: #000;
  }
  select:invalid {
    color: #999;
  }
  /* grid内も100% */
  .grid-2 > div, .grid-3 > div, .address-wrap > div, .career-wrap > div {
    width: 100%;
  }
  .form-label {
    width: 100%;
    min-width: 100%;
    font-size: 15px;
    line-height: 1.6;
  }
  /* 入力系 */
  input:not([type="radio"]):not([type="checkbox"]), select, textarea {
    height: 50px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  /* inputだけline-height */
  input:not([type="radio"]):not([type="checkbox"]) {
    line-height: 50px;
  }
  /* selectはline-height消す */
  select {
    line-height: normal;
  }
  /* Safari対策 */
  input[type="email"], input[type="tel"] {
    min-height: 50px;
  }
  textarea {
    min-height: 140px;
  }
  /* grid */
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }
  /* 生年月日select */
  .grid-3 select {
    padding-right: 36px;
    font-size: 13px;
  }
  /* ラジオ */
  .radio-group {
    gap: 16px;
  }
  .radio-group label {
    font-size: 15px;
  }
  /* checkbox */
  .checkbox {
    align-items: flex-start;
    line-height: 1.8;
  }
  .checkbox span {
    font-size: 13px;
  }
  /* ボタン */
  .submit-wrap {
    margin-top: 10px;
  }
  .submit-wrap button {
    width: 100%;
    height: 56px;
    font-size: 15px;
    margin-top: 24px;
  }
  .confirm-list dl {
    display: block;
    padding: 22px 0;
  }
  .confirm-list dt {
    width: auto;
    min-width: 0;
    margin-bottom: 8px;
  }
  .confirm-submit-wrap {
    flex-direction: column;
    gap: 0;
  }
  .confirm-submit-wrap button {
    width: 100%;
  }
  .thanks-back {
    width: 100%;
    max-width: 320px;
    margin: 40px auto 0;
  }
  .entry-line-area {
    margin: 26px auto 32px;
  }
  .entry-line-title {
    margin: 0 0 20px;
  }
  .entry-line-title, .entry-form-title {
    text-align: center;
  }
  .entry-line-btns {
    flex-direction: column;
  }
  .entry-line-btn {
    width: 100%;
    font-size: 16px;
    min-height: 60px;
  }
  .entry-form-heading {
    scroll-margin-top: 80px;
    padding-top: 28px;
  }
  .entry-lead-title {
    font-size: 22px;
    text-align: center;
  }
  .entry-header .entry-lead-text {
    font-size: 15px;
    line-height: 1.9;
    text-align: left;
  }
}