/* ==========================================================
   uoya メルマガ登録 v2(フッターのモーダル・登録ページ共用)
   2026-09-28 趙 r08 #1397 / prefix: nl-
   ========================================================== */

/* ---------- 入力項目 ---------- */
.nl-field{ margin-bottom: 18px; }
.nl-label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 7px;
}
.nl-req, .nl-opt{
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}
.nl-req{ color: #dc2626; }
.nl-opt{ color: #64748b; }
.nl-input, .nl-select{
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 16px; /* iOS のズーム防止 */
  line-height: 1.4;
  color: #0f172a;
  background: #fff;
  font-family: inherit;
}
.nl-select{
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.nl-input:focus, .nl-select:focus{
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15,23,42,.08);
}
.nl-input[aria-invalid="true"], .nl-select[aria-invalid="true"]{ border-color: #dc2626; }

.nl-check{
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #0f172a;
  cursor: pointer;
}
.nl-check input{
  /* サイト共通のリセットで appearance:none になるため自前で描く */
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 18px; height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 1.5px solid #94a3b8;
  border-radius: 4px;
  background: #fff center / 12px 12px no-repeat;
  cursor: pointer;
}
.nl-check input:checked{
  border-color: #0f172a;
  background-color: #0f172a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.nl-check input:focus-visible{ outline: 2px solid #0f172a; outline-offset: 2px; }
.nl-check input[aria-invalid="true"]{ border-color: #dc2626; }
.nl-check a{ color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.nl-field-error, .nl-form-error{
  font-size: 12.5px;
  line-height: 1.6;
  color: #b91c1c;
  margin: 6px 0 0;
}
.nl-field-error:empty, .nl-form-error:empty{ display: none; }
.nl-form-error{
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 14px;
}

.nl-btn{
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 14px 20px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .2s ease;
}
.nl-btn:hover{ opacity: .85; }
.nl-btn:disabled{ opacity: .5; cursor: wait; }

.nl-recaptcha{
  font-size: 11px;
  line-height: 1.7;
  color: #94a3b8;
  margin: 12px 0 0;
}
.nl-recaptcha a{ color: inherit; text-decoration: underline; }
.grecaptcha-badge{ visibility: hidden; }

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

/* ---------- モーダル ---------- */
.nl-modal{
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  padding: 0;
  border: none;
  border-radius: 16px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 24px 60px rgba(15,23,42,.25);
  overflow: auto;
  font-feature-settings: "palt";
}
.nl-modal::backdrop{ background: rgba(15,23,42,.45); }
.nl-modal__inner{ position: relative; padding: 28px 26px 24px; }
.nl-modal__title{
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 8px;
  padding-right: 32px;
}
.nl-modal__lead{
  font-size: 13.5px;
  line-height: 1.8;
  color: #475569;
  margin: 0 0 20px;
}
.nl-modal__close{
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nl-modal__close:hover{ background: #f1f5f9; }
.nl-modal__done{ text-align: center; padding: 12px 0 4px; }
.nl-modal__done .nl-modal__title{ padding-right: 0; }
.nl-modal__done .nl-btn{ margin-top: 20px; }
.nl-modal[data-state="done"] form{ display: none; }
.nl-modal:not([data-state="done"]) .nl-modal__done{ display: none; }

@media (max-width: 480px){
  .nl-modal__inner{ padding: 24px 18px 20px; }
}
