@charset "UTF-8";

:root {
  --bg-gradient   : linear-gradient(135deg, rgba(107, 107, 107, 1) 0%, rgba(198, 198, 198, 1) 100%);
  --card-bg       : #3a3a3a;
  --card-radius   : 24px;
  --card-shadow   : 0 8px 32px rgba(0, 0, 0, 0.35);
  --accent        : #169dda;
  --check         : #00CFFF;
  --text-primary  : #ffffff;
  --text-muted    : #c8c8c8;
  --input-bg      : #ffffff;
  --input-fg      : #222222;
  --input-border  : #e0e0e0;
  --req-bg        : #e91e63;
  --error         : #a30037;
  --primary-btn        : rgba(81, 81, 81, 0.5);
  --primary-btn-fg     : #ffffff;
  --primary-btn-border : rgba(255, 255, 255, 0.55);
  --form-btn-disabled  : rgba(122, 122, 122, 0.45);
  --transition    : 0.218s ease;
}

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

html {
  min-height: 100%;
  background-color: #999;
}

body {
  min-height: 100%;
  min-height: 100svh;
  background: transparent;
  isolation: isolate;
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ????????????????????????????? */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-gradient);
  pointer-events: none;
}

h1, h2, h3 {
  font-weight: 700;
}

a {
  color: var(--check);
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.85;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#spinner {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5) url(/app/img/common/spinner.gif) no-repeat center center;
  z-index: 1000;
}

/* ===== Page grid (landing: card + hero) ===== */
.trial-page {
  display: grid;
  grid-template-columns: 380px 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "card  hero"
    "notes hero"
    "brand hero";
  gap: 0 clamp(150px, 4vw, 250px);
  align-items: start;
  align-content: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px clamp(24px, 4vw, 56px);
  max-width: 1280px;
  margin: 0 auto;
}

.trial-page--form {
  grid-template-columns: minmax(360px, 480px) minmax(320px, 450px);
  grid-template-areas: "aside main";
  grid-template-rows: 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}

.trial-page--message,
.trial-page--complete {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  grid-template-columns: none;
  grid-template-areas: none;
  gap: 0;
  padding: 48px 24px;
  max-width: none;
}

/* ===== Card (email entry) ===== */
.trial-card {
  grid-area: card;
  width: 380px;
  max-width: 100%;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 0 42px 55px;
  min-width: 0;
}

.trial-card__brand {
  display: flex;
  align-items: center;
  margin: 0 -24px 32px;
  padding: 0 24px 0 24px;
}

.trial-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  align-self: flex-start;
}

.trial-card__logo svg {
  width: 100%;
  height: 100%;
}

.trial-card__sub {
  margin-left: auto;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.trial-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.4;
}

.trial-card .field_block {
  margin-top: 16px;
}

.trial-card .field_block h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.trial-card input[type="email"] {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: #282828 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: var(--text-primary) !important;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.trial-card input[type="email"]::placeholder {
  color: #888;
}

.trial-card input[type="email"].error {
  border-color: rgb(255, 107, 107);
}

.trial-card__input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.trial-card__input-wrap input[type="email"] {
  display: block;
  width: 100%;
}

.trial-card__input-wrap .error-message {
  display: block;
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.trial-card__input-wrap .error-message::before {
  content: "\26A0\FE0F ";
}

.trial-card__input-wrap .valid_image {
  position: absolute;
  right: -32px;
  top: 23px;
  transform: translateY(-50%);
  display: none;
  line-height: 0;
}

.trial-card__primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 15px;
  padding: 12px 24px;
  min-height: 46px;
  background: var(--primary-btn);
  color: var(--primary-btn-fg);
  border: 1px solid var(--primary-btn-border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.trial-card__primary:hover:not(.disabled) {
  background: var(--accent);
  border-color: var(--accent);
}

.trial-card__primary.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.trial-card__primary:focus-visible {
  outline: 2px solid var(--check);
  outline-offset: 2px;
}

.trial-card__form-error {
  margin: 12px 0 0;
  padding: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  display: none;
}

.trial-card__form-error:not(:empty) {
  display: block;
}

.trial-card__form-error:not(:empty)::before {
  content: "\26A0\FE0F ";
}

/* ===== Hero (feature list) ===== */
.trial-hero {
  grid-area: hero;
  align-self: center;
  padding: 24px 0;
  margin-top: -20px;
}

.trial-hero__title {
  font-size: clamp(22px, 2.5vw, 37px);
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 50px;
  letter-spacing: 0.02em;
  text-align: center;
}

.trial-hero__features {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 12px 70px;
  list-style: none;
  margin-inline: auto;
  transform: translateX(-20px);
}

.trial-hero__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.trial-hero__features .b10-check-icon {
  flex-shrink: 0;
  margin-top: 4px;
}

.trial-hero__features a {
  color: inherit;
  text-decoration: underline;
}

.trial-hero__features a:hover {
  color: inherit;
  opacity: 1;
}

/* ===== Notes block ===== */
.trial-notes-block {
  grid-area: notes;
  align-self: start;
  max-width: 460px;
  font-size: 13px;
  color: #fff;
  line-height: 1.7;
  padding-top: 24px;
}

.trial-notes-block h3 {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.trial-notes-block ul {
  list-style: disc;
  padding-left: 1.2em;
  margin-bottom: 25px;
  font-size: 14px;
}

.trial-notes-block p {
  margin-bottom: 20px;
  padding-left: 1em;
  text-indent: -1em;
}

.trial-notes-block__scroll {
  height: 220px;
  overflow: auto;
  padding-right: 20px;
}

.trial-notes-block .notice-warn {
  color: #ff8a8a;
}

/* ===== Brand footer (left column bottom) ===== */
.trial-page > .trial-brand {
  grid-area: brand;
  width: 380px;
  max-width: 100%;
  justify-self: center;
  text-align: center;
  padding-top: 40px;
}

.trial-brand a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
}

.b10-brand__logo,
.trial-brand__logo {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto;
}

/* ===== Form flow: left aside ===== */
.trial-aside {
  grid-area: aside;
}

.trial-page--form .trial-aside {
  position: sticky;
  top: 48px;
  align-self: start;
}

.trial-aside__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 28px;
  border: 1px solid #fff;
  box-sizing: border-box;
}

.trial-aside__title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.trial-aside__lead {
  font-size: 17px;
  color: #fff;
  margin-bottom: 32px;
  line-height: 1.8;
}

.trial-aside__brand {
  width: 100%;
  margin-top: 48px;
  text-align: center;
}

.trial-page--form .trial-aside__brand {
  margin-top: 100px;
}

/* ??????????????????????1??????? */
.trial-form__stepper {
  list-style: none;
  margin: 0;
  padding: 30px 0 40px 32px;
  position: relative;
}

.trial-form__stepper::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 5px;
  background: rgba(255, 255, 255, 0.4);
}

.trial-form__step {
  position: relative;
  padding: 0 0 92px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
}

.trial-form__step:last-child {
  padding-bottom: 0;
}

.trial-form__step-marker {
  position: absolute;
  left: -26px;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 0;
  background: #fff;
  z-index: 1;
}

.trial-form__step--current {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.trial-form__step--current .trial-form__step-marker {
  background: var(--check);
}

.trial-form__step--done {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

.trial-form__step--done .trial-form__step-marker {
  background: #fff;
}

/* ===== Form main column ===== */
.trial-form-main {
  grid-area: main;
  width: 100%;
}

@media only screen and (min-width: 1024px) {
  .trial-form-main {
    padding-top: 200px;
  }
}

.trial-form-panel {
  width: 100%;
}

.trial-form__intro {
  font-size: 14px;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.error_notice,
.trial-form__error {
  color: rgb(255, 107, 107);
  font-size: 14px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.trial-form__field {
  margin-bottom: 20px;
}

.trial-form__field label,
.trial-form__field > h3 {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.trial-form__field .req {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  background: var(--req-bg);
  border-radius: 2px;
  vertical-align: middle;
}

.trial-form__value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  position: relative;
}

.trial-form__value input[type="text"],
.trial-form__value input[type="email"],
.trial-form__value input[type="tel"],
.trial-form__value input[type="password"],
.trial-form__value select {
  order: 1;
  flex: 1;
  width: auto;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  color: var(--input-fg);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.trial-page--form-input .trial-form__value input::placeholder {
  color: #b2b2b2;
  opacity: 1;
}

.trial-form__value input.half {
  flex: 1;
  width: auto;
  display: block;
}

.trial-form__value input.half.last {
  margin-left: 0;
}

.trial-form__value input.error,
.trial-form__value select.error {
  border-color: rgb(255, 107, 107);
  background: #fff5f5;
}

.trial-form__value .valid_image {
  order: 2;
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  display: none;
  line-height: 0;
}

.trial-form__value .error-message {
  order: 3;
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
}

.trial-form__value .error-message::before {
  content: "\26A0\FE0F ";
}

.trial-form__value .valid_image,
.trial-card__input-wrap .valid_image {
  color: var(--check);
}

.trial-form__value .valid_image .b10-check-icon,
.trial-card__input-wrap .valid_image .b10-check-icon {
  width: 22px;
  height: 22px;
}

.trial-form__value--static {
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0 8px 12px;
}

.trial-form__field--names .trial-form__value {
  gap: 12px;
}

.trial-form__field--names input {
  flex: 1;
  min-width: 0;
}

.trial-form__agree {
  margin-top: 28px;
}

.label_agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.label_agree input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox_parts {
  display: inline;
}

.label_agree a {
  color: var(--text-primary);
}

.label_agree a:hover {
  opacity: 0.85;
}

.checkbox_parts::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  background: transparent;
}

.label_agree input:checked + .checkbox_parts::before {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='%23fff' d='M4.2 8.6 1 5.4l1.4-1.4 1.8 1.8 5.4-5.4 1.4 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.checkbox_parts.has_error::before {
  border-color: rgb(255, 107, 107);
}

.has_error_detail {
  color: rgb(255, 107, 107);
  font-size: 12px;
  margin-top: 8px;
}

#agree_wrp + .error-message,
#agree_wrp .has_error_detail {
  color: #fff;
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.4;
}

#agree_wrp + .error-message::before,
#agree_wrp .has_error_detail::before {
  content: "\26A0\FE0F ";
}

.trial-form__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.trial-page--form .trial-form__actions {
  margin-bottom: 50px;
}

.trial-form__actions--split {
  justify-content: space-between;
}

.trial-form__actions:not(.trial-form__actions--split) {
  justify-content: center;
}

.trial-form__actions:not(.trial-form__actions--split) .trial-form__primary {
  width: 280px;
  min-width: 280px;
  max-width: 100%;
}

.trial-form__primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 32px;
  min-height: 48px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
}

.trial-form__primary--submit {
  background: var(--primary-btn);
  color: var(--primary-btn-fg);
  border-color: var(--primary-btn-border);
}

.trial-form__primary--submit:hover:not(.disabled) {
  background: var(--accent);
  border-color: var(--accent);
}

.trial-form__primary.disabled {
  background: var(--form-btn-disabled);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

.trial-form__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 14px 24px;
  font-size: 14px;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  transition: border-color var(--transition), color var(--transition);
}

.trial-form__secondary:hover {
  border-color: #fff;
  color: #fff;
}

/* Confirm read-only */
.trial-confirm__notice {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.trial-confirm__row {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.trial-confirm__row h3 {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.trial-confirm__value {
  font-size: 16px;
  font-weight: 500;
  padding-left: 10px;
}

/* Message / complete centered */
.trial-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 520px);
  text-align: center;
}

.trial-message__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin-bottom: 50px;
  border: 1px solid #fff;
  box-sizing: border-box;
}

.trial-message__title {
  font-size: clamp(22px, 4.5vw, 30px);
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.trial-message__body {
  font-size: 15px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 55px;
}

.trial-message__body p + p {
  margin-top: 0.25em;
}

@media only screen and (min-width: 1024px) {
  .trial-page--message .trial-message,
  .trial-page--complete .trial-message {
    transform: translateY(-74px);
  }

  .trial-page--complete .trial-message {
    width: min(100%, 640px);
  }

  .trial-page--complete .trial-message__body > p:nth-child(2) {
    white-space: nowrap;
  }
}

.trial-message__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  padding: 10px 40px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 10px;
  background: rgba(81, 81, 81, 0.5);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  margin-bottom: 56px;
  transition: background var(--transition), border-color var(--transition);
}

.trial-message__btn:hover {
  background: rgba(120, 120, 120, 0.5);
  border-color: #fff;
  color: #fff;
}

/* Legacy helpers still used in JS */
.field_block .value_block.cf::after {
  content: "";
  display: table;
  clear: both;
}

span.req {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  font-size: 11px;
  color: #fff;
  background: var(--req-bg);
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

@media only screen and (max-width: 1023px) {
  .trial-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "card"
      "hero"
      "notes"
      "brand";
    align-content: start;
    padding: 32px 24px;
  }

  .trial-card {
    width: 380px;
    max-width: 100%;
    margin: 0 auto;
  }

  .trial-notes-block {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }

  .trial-hero {
    max-width: 560px;
    margin: 0 auto;
  }

  .trial-hero__features {
    grid-template-columns: 1fr;
    transform: none;
  }

  .trial-page--form {
    grid-template-columns: 1fr;
    grid-template-areas:
      "aside"
      "main";
  }

  .trial-page--form .trial-aside {
    position: static;
  }

  .trial-aside__brand {
    display: none;
  }

  .trial-page > .trial-brand {
    width: 380px;
    max-width: 100%;
    justify-self: center;
    padding-top: 40px;
  }
}

@media only screen and (max-width: 767px) {
  .trial-page {
    padding: 70px 16px 40px;
  }

  .trial-page--message,
  .trial-page--complete {
    justify-content: flex-start;
    padding-top: 70px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 40px;
  }

  .trial-form__value input.half {
    width: 100%;
    margin-left: 0 !important;
    display: block;
    margin-bottom: 12px;
  }

  .trial-form__value .valid_image,
  .trial-card__input-wrap .valid_image {
    position: static;
    right: auto;
    top: auto;
    transform: none;
  }

  .trial-form__actions {
    flex-direction: column;
    align-items: center;
  }

  .trial-form__actions--split {
    align-items: stretch;
    width: 100%;
  }

  .trial-form__primary,
  .trial-form__secondary {
    width: 100%;
  }

  .trial-form__actions:not(.trial-form__actions--split) .trial-form__primary {
    width: min(280px, 100%);
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
