/* assets/css/style.css（Thanksページまで含めた全文） */
:root {
  --container: 500px;
  --gap: 16px;
  --accent: #2f378b;
  --brand: #f05a8a;
  --red: #c6002f;
  --text: #222;
  --muted: #666;
  --border: #e6e6e6;
  --border-strong: #cfd3f5;
  --bg-soft: #f9f9ff;
  --line: #06c755;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP",
    "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: #fff;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

/* ── フォーム共通 ───────────────────────── */

.fv img {
  display: block;
  width: 100%;
  height: auto;
}

.items{
  background-color: #c6002f;
  padding: 3px 8px;
  color: #fff;
}

.step {
  display: none;
  padding: 15px 20px 20px;
  background: #fff;
}

.step.is-active {
  display: block;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.step__lead {
  text-align: center;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1.7;
}

.list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.list__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2.5px solid var(--accent);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(47, 55, 139, .08);
}

.list__item::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent);
}

.list__item input {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.list__item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  font-weight: 700;
  color: var(--accent);
  text-align: left;
  display: flex;
  align-items: center;
}

.req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  color: #fff;
  background: var(--red);
}
.grayq{
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 12px;
  color: #fff;
  background: var(--muted);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 55, 139, .12);
}

.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: #fff;
  line-height: 1.4;
}

.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 55, 139, .12);
}

.birth-selects {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 10px;
}

.agree {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 8px;
  margin: 12px 0;
  color: #333;
  line-height: 1.6;
}

.agree input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  margin-top: 2px;
  position: relative;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.agree input[type="checkbox"]:checked {
  border-color: var(--brand);
  background: #fff;
}

.agree input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 6px;
  height: 12px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #ddd;
  color: #222;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  width: 48%;
  transition: filter .15s ease, transform .02s ease;
}

.btn.next {
  background: var(--brand);
  color: #fff;
}

.btn:hover {
  filter: brightness(.98);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  width: auto;
  min-width: 160px;
  margin-left: auto;
}

.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

.btn_note_text{
      text-align: right;
    color: #c6002f;
    font-size: 14px;
    display: block;
    font-weight: bold;
}

.error {
  color: #c00;
  font-size: 13px;
  min-height: 1.2em;
  margin-top: 6px;
}

.notice {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width:768px) {
  .btn {
    width: 200px;
  }
}

/* プライバシー関連リンク（縦並び） */
.policy-links {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.policy-links a,
.policy-link-btn {
  text-decoration: underline;
  word-break: break-word;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  color: #2f378b;
  cursor: pointer;
}

/* ── モーダル ───────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.modal__dialog {
  position: relative;
  max-width: 720px;
  width: calc(100% - 24px);
  margin: 40px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.modal__close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.modal__body {
  padding: 14px 16px;
  max-height: min(70vh, 70dvh);
  overflow: auto;
}

.modal__pre {
  white-space: pre-wrap;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: #222;
}

.modal__footer {
  padding: 12px 16px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border);
}

/* ===== Thanks page (design-match) ===== */

.thx-card {
  max-width: 750px;
  padding: 28px 18px 32px;
}

.thx-ttl {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  color: #2f378b;
  letter-spacing: .06em;
}

.thx-lead {
  margin: 0;
  text-align: center;
  color: #2f378b;
  font-weight: 800;
  line-height: 2.1;
  font-size: 16px;
}

.thx-lead--sub {
  margin-top: 6px;
  font-weight: 800;
}

.thx-lead--slash {
  position: relative;
  display: block;
}

.thx-lead--slash::before {
  left: calc(50% - 255px);
  transform: translateY(-50%) rotate(-12deg);
}

.thx-lead--slash::after {
  right: calc(50% - 255px);
  transform: translateY(-50%) rotate(12deg);
}

/* flow box */
.thx-flow {
  margin: 18px 0 16px;
  padding: 18px 14px;
  border: 2px solid #2f378b;
  border-radius: 12px;
  background: #fff;
  color: #2f378b;
}

.thx-flow__ttl {
  position: relative;
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  color: #2f378b;
  letter-spacing: .04em;
}

.thx-flow__ttl::before,
.thx-flow__ttl::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  background: #2f378b;
  width: calc(50% - 90px);
  border-radius: 2px;
}

.thx-flow__ttl::before {
  left: 18px;
}

.thx-flow__ttl::after {
  right: 18px;
}

.thx-flow__list {
  list-style: none;
  margin: 0;
  padding: 0 4px;
  color: #2f378b;
  font-size: 15px;
  line-height: 2.0;
}

.thx-flow__list li {
  color: initial;
  padding: 9px 0;
  border-bottom: 1px dotted #c9c9ea;
  display: flex;
  align-items: center;
}

.thx-flow__list li:last-child {
  border-bottom: 0;
}

.thx-flow__num {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 0.5em;
  border-radius: 50%;
  background: #2f378b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.thx-note {
  margin: 16px 0 14px;
  text-align: center;
  color: #2f378b;
  font-weight: 800;
  line-height: 1.95;
  font-size: 15px;
}

/* LINE button (image) */
.thx-linebtn {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.thx-linebtn img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .05);
}

/* PC fine-tune */
@media (min-width:768px) {
  .thx-card {
    padding: 32px 24px 36px;
  }

  .thx-lead--slash::before {
    left: calc(50% - 285px);
  }

  .thx-lead--slash::after {
    right: calc(50% - 285px);
  }
}
.note-red{
  color: #c6002f;
}

.present-bannerbox{
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  text-align: center;
}

.present-bannerbox img{
    max-width: 500px;
    width: 95%;
    padding: 20px 0 0;
}

footer {
  max-width: 500px;
    width: 100%;
    height: auto;
    background: #fff;
    padding: 60px 20px;
    overflow: hidden;
    margin: 0 auto;
}
footer .logo {
    width: 100%;
    height: auto;
    font-size: 0;
    line-height: 0;
    text-align: center;
    margin: 0;
    padding: 0;
}
footer .copyright {
    width: 100%;
    height: auto;
    font-size: 12px;
    text-align: center;
    line-height: 1;
    margin: 0;
    padding: 20px 0;
}

/* ===============================
  モーダル-CSS
=============================== */
.nm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.nm-modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.nm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

.nm-modal__dialog {
  position: relative;
  max-width: 450px;
  width: min(92vw, 450px);
  z-index: 1;
}

.nm-modal__body {
  background: #fff;
  border: 2px solid #707070;
  padding: 36px 24px 28px;
  text-align: center;
  border-radius: 10px;
}

.nm-alert {
  color: #ff1e1e;
  font-size: clamp(22px, 3vw, 24px);
  font-weight: 700;
  margin-bottom: 12px;
}

.nm-lead {
  color: #4c5563;
  font-size: clamp(18px, 2.3vw, 21px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.nm-sublead {
  font-size: clamp(20px, 2.8vw, 21px);
  font-weight: 700;
  margin: 15px 0 18px;
}

.nm-btn {
  position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 760px);
    max-width: 400px;
    margin: 0 auto;
    padding: 15px 10px;
    border-radius: 10px;
    font-size:clamp(17px, 2.4vw, 20px);
    font-weight: 700;
    border: none;
    cursor: pointer;
}
.nm-btn::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #000;
}

.nm-btn--green::after {
  border-left-color: #015122
}

.nm-btn--yellow::after {
  border-left-color: #61470b;
}

.nm-btn--green {
  background: #00c350;
  color: #015122
}

.nm-btn--yellow {
  background: #ffcc55;
  color: #61470b;
}
.text-red{color: rgb(211, 47, 47);}

.marker {
  background: linear-gradient(transparent 60%, #fff59d 60%);
}

@media (max-width: 767px) {
  .nm-modal__dialog {
    margin: 16px auto;
  }

  .nm-modal__body {
    padding: 24px 16px;
  }

  .nm-btn {
    min-height: 80px;
    border-radius: 10px;
  }
}