@charset "UTF-8";

:root {
  /* ---- 変数定義 ---------------- */
  /* カラー */
  --color-justdb-blue: #00b2ab;
  --color-justdb-blue-dec: 0 178 171;
  --color-justdb-violet: #000080;
  --color-justdb-violet-dec: 0 0 128;
  --color-justdb-orange: #ff6114;
  --color-justdb-orange-dec: 255 97 20;
  --color-justdb-grayish-white: #f4f6f7;
  --color-justdb-grayish-white-dec: 244 246 247;
  --color-justdb-yellow: #ffc402;
  --color-justdb-yellow-dec: 255 196 2;
  --color-justdb-navy: #153346;
  --color-justdb-navy-dec: 21 51 70;
  --color-border-gray: #e9e9e9;
  --color-text-gray: #aaa;
  /* フォントサイズ */
  --font-size: 16px;

  @media screen and (max-width: 768px) {
    --font-size: clamp(14px, 3.85vw, 16px);
  }

  /* サイズ */
  --footer-height: calc(35px + calc(var(--font-size) * 0.8125));
}

/* ---- 基本設定 ---------------- */
h1 {
  font-size: calc(var(--font-size) * 2.2);
}

h2 {
  font-size: calc(var(--font-size) * 1.5);
}

h3 {
  font-size: calc(var(--font-size) * 1.3);
}

h4 {
  font-size: calc(var(--font-size) * 1.2);
}

h5 {
  font-size: calc(var(--font-size) * 1.11);
}

h6 {
  font-size: calc(var(--font-size) * 1.05);
}

:is(h1, h2, h3, h4, h5, h6) {
  color: var(--color-justdb-navy);

  &:has(>br) {
    line-height: 1.4;
  }
}

@media screen and (min-width: 768px) {
  :is(h1, h2, h3, h4, h5, h6):has(>br.pcOnly) {
    line-height: 1.4;
  }
}

@media screen and (max-width: 768px) {
  :is(h1, h2, h3, h4, h5, h6):has(>br.spOnly) {
    line-height: 1.4;
  }
}

.mod-txt a:hover {
  color: var(--color-justdb-blue);
}

.mod-txt>p {
  font-size: var(--font-size);
}

.text-center {
  text-align: center;
}

.justdb .mod-btn__wrapper .mod-btn.btn-fill:not(.disabled)>* {
  background-color: var(--color-justdb-blue);
  color: white;
}

.justdb:not(.story_content_inner) .btn-fill .icon_arrow.icon_dl::after {
  background-image: url(/jp/products/justdb/data/icon_dl_w.svg);
}

.justdb .mod-btn__wrapper .mod-btn.btn-fill:not(.disabled)>*:hover {
  background-color: white;
  color: var(--color-justdb-blue);
}

.justdb:not(.story_content_inner) .btn-fill>*:hover .icon_arrow.icon_dl::after {
  background-image: url(/jp/products/justdb/data/icon_dl.svg);
}

.mt-2em {
  margin-top: 2em;
}

.mb-2em {
  margin-bottom: 2em;
}

.mt-1em {
  margin-top: 1em;
}

.mb-1em {
  margin-bottom: 1em;
}

.mt-1rem {
  margin-top: var(--font-size);
}

.mb-1rem {
  margin-bottom: var(--font-size);
}

.wb-break-all {
  word-break: break-all;
}

.width-fit-content {
  width: fit-content;
}

.margin-inline-auto {
  margin-inline: auto;
}


/* ---- レイアウト ---------------- */
html {
  min-height: 100dvh;
}

body {
  min-height: 100dvh;
  background-color: var(--color-justdb-grayish-white);
}

.upper_menu {
  min-width: revert;
}

.menu {
  min-width: revert;
}

.menu.form_menu {
  top: 0;
}

main {
  min-height: calc(100dvh - 30px - var(--footer-height));
  margin-bottom: 30px;
  /* SATORIのCSSに合わせる */
  padding: calc(min(7vw, 70px) + 75px) 0 min(7vw, 70px);
  /* padding: calc(min(7vw, 70px) + 80px) 0 min(7vw, 70px); */
  padding-bottom: 0;
  font-size: var(--font-size);
}

.upper_menu~main:first-of-type {
  padding: min(7vw, 70px) 0 min(7vw, 70px);
}

@media screen and (min-width: 768px) {
  main {
    min-width: unset;
  }
}

@media screen and (max-width: 768px) {

  main,
  .upper_menu~main:first-of-type {
    padding: calc(min(5vw, 70px) + 12vw) 0 min(5vw, 70px);
    padding-bottom: 0;
    font-size: var(--font-size);
  }

  label {
    font-size: var(--font-size);
  }
}

.form_menu .menu_ttl {
  transform: none;
}

.form-container {
  contain: content;
  container: form-container / inline-size;
  width: clamp(0px, 90vw, 1400px);
  margin: 0 auto;
  padding: min(7vw, 70px);
  border-radius: clamp(10px, 4vw, 20px);
  background-color: white;
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(40%, clamp(400px, 40cqw, 520px));
  gap: min(7vw, 70px);
  justify-content: center;
}

.form-title {
  contain: layout style;
  container: form-title / inline-size;
  text-align: center;
  position: relative;
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.form-container.col-count-01 {
  width: clamp(0px, 90vw, 900px);
  grid-template-columns: 100%;

  & .form-title {
    grid-column: revert;
    grid-row: revert;
  }
}

@media screen and (max-width: 1200px) {
  .form-container {
    width: clamp(0px, 90vw, 900px);
    grid-template-columns: 100%;
  }

  .form-container .form-title {
    grid-column: revert;
    grid-row: revert;
  }
}

.form-detail {
  contain: content;
  container: form-detail / inline-size;
}

.form-form {
  contain: content;
  container: form-form / inline-size;
  align-self: flex-start;
  padding-top: 35px;
  border: 1px solid var(--color-border-gray);
  border-radius: clamp(5px, 2vw, 10px);
}


/* ---- .form-title ---------------- */
.form-title h1 {
  line-height: 1.4;
}

.form-title strong {
  font-size: 1.15em;
}

.form-title p {
  font-size: calc(var(--font-size) * 1.3);
  font-weight: bold;
  color: var(--color-justdb-navy);
}

.form-title :is(h1, p):has(+ p:last-of-type) {
  margin-bottom: min(2.5vw, 17.5px);
}

.form-title .dot {
  --dot-size: clamp(9px, 1.5vw, 12px);
  position: absolute;
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: var(--dot-size);
  left: 50cqw;
  bottom: 0;
  background-color: var(--color-justdb-blue);
  transform: translate(-50%, calc(min(2vw, 14px)));

  &::before,
  &::after {
    content: "";
    display: block;
    position: absolute;
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: var(--dot-size);
    background-color: var(--color-justdb-blue);
  }

  &::before {
    transform: translate(-300%, 0);
  }

  &::after {
    transform: translate(300%, 0);
  }
}


/* ---- .form-detail ---------------- */
.lead {
  font-size: calc(var(--font-size) * 1.1);
  line-height: 2;
}

@container form-detail (max-width: 400px) {
  .lead {
    text-align: justify;
  }
}

.notes {
  margin-top: clamp(20px, 4.5vw, 35px);
  font-size: calc(var(--font-size) * 0.8125);
  color: var(--color-text-gray);
}

.form-container.col-count-01 .notes {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}

@media screen and (max-width: 1200px) {
  .notes {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }
}

.attentions {
  padding-left: 1em;
}

.attentions li {
  text-indent: -1em;
}

.attentions li::before {
  content: "※";
}

.notes .notes-heading {
  font-size: calc(var(--font-size) * 1);
  font-weight: bold;
  color: var(--color-justdb-navy);
}

.notes ul {
  list-style-type: disc;
  padding-inline-start: calc(var(--font-size) * 1.5);
}

.knows-area {
  --marker-size: clamp(12px, 4.5vw, 25px);
  contain: content;
  margin: clamp(20px, 4.5vw, 35px) auto;
  padding: clamp(12px, 3vw, 20px);
  background-color: rgb(var(--color-justdb-blue-dec) / 0.1);
  border-radius: clamp(5px, 2vw, 10px);
  position: relative;

  &::before {
    content: "";
    display: block;
    position: absolute;
    width: var(--marker-size);
    height: var(--marker-size);
    background-color: var(--color-justdb-blue);
    transform: translate(calc(calc(clamp(12px, 3vw, 20px) + 50%) * -1), calc(calc(clamp(12px, 3vw, 20px) + 50%) * -1)) rotate(45deg);
  }
}

.knows {
  margin: clamp(20px, 4.5vw, 35px) auto;
}

:is(.knows-area, .knows) .knows-heading {
  font-size: calc(var(--font-size) * 1);
  font-weight: bold;
  color: var(--color-justdb-navy);
}

.knows ul {
  padding-inline-start: 1.5em;
  list-style: none;
}

.knows li {
  text-indent: -1.5em;

  &::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-inline-end: 0.5em;
    background: url(/jp/products/justdb/data/mark2.png) center / contain no-repeat;
    transform: translate(0, 10%);
  }
}

.content-image {
  margin: clamp(20px, 4.5vw, 35px) auto;
  text-align: center;

  &.border {
    border: 1px solid var(--color-border-gray);
  }
}

/* Swiper */
.content-image:has(.swiper) {
  width: min(calc(100% - 40px), 500px);
  margin-inline: auto;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.swiper-slide {
  opacity: 0;
  transition: opacity 0.3s linear 0s;
}

.swiper-slide-active {
  opacity: 1;
}

.content-image .swiper {
  position: relative;
  margin-block-end: clamp(100px, 18.67vw, 140px);
}

.content-image .swiper .swiper-button-prev,
.content-image .swiper .swiper-button-next {
  background-image: none;
    width: 18px;
    height: 30px;
    margin-top: -15px;

  &::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: #00b0aa;
    transition: background-color 0.2s ease 0s;
  }

  &:hover::after {
    background-color: rgb(0 176 170 / 0.5);
  }
}

.content-image .swiper .swiper-button-prev {
  right: calc(100% + 2px);
  /* right: calc(100% + 15px); */
  left: auto;

  &::after {
    clip-path: polygon(90% 100%, 0% 50%, 90% 0%, 100% 5%, 18% 50%, 100% 95%, 90% 100%);
  }
}

.content-image .swiper .swiper-button-next {
  left: calc(100% + 2px);
  /* left: calc(100% + 15px); */
  right: auto;

  &::after {
    clip-path: polygon(10% 0%, 100% 50%, 10% 100%, 0% 95%, 82% 50%, 0% 5%, 10% 0%);
  }

  &:hover::after {
    background-color: rgb(0 176 170 / 0.5);
  }
}

.content-image .swiper .swiper-pagination {
  display: flex;
  justify-content: space-between;
  column-gap: 7px;
  row-gap: 14px;
  width: fit-content;
  min-width: 20%;
  /* min-width: 50%; */
  bottom: clamp(-70px, -9.3vw, -50px);
  left: 50%;
  transform: translateX(-50%);
}

.content-image .swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
}

.content-image .swiper .swiper-pagination-bullet-active {
  background-color: #00b0aa;
}


/* ---- .form-form ---------------- */
.form-cont .form-cont-heading,
.form-cont h2 {
  margin-bottom: 20px;
  font-size: calc(var(--font-size) * 1.3);
  text-align: center;
  color: var(--color-justdb-blue);
}

@container form-form (min-width: 520px) {
  .form-form :is(.satori__input_group, .satori__horiz_group) {
    max-width: calc(100cqw - calc(clamp(15px, 5vw, 35px) * 2));
  }
}

@container form-form (max-width: 520px) {
  .form-form :is(.satori__input_group, .satori__horiz_group) {
    max-width: min(95%, 460px);
  }
}

#form .satori__message:has(>.p-mark) {
  max-width: 440px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 75% minmax(72px, 25%);
  justify-content: center;
}

.form-form .privacyPolicy_note {
  width: auto;
}

.privacy-box {
  margin: 20px auto;
}

.form-form .privacy-box .notice {
  padding-inline-start: 1em;
  font-size: calc(var(--font-size) * 0.8125) !important;
  color: var(--color-text-gray);
  text-indent: -1em;
}

@container form-form (max-width: 520px) {
  #form .satori__message:has(>.p-mark) {
    width: 90%;
  }

  .privacy-box {
    width: 90%;
  }
}


/* ---- 完了ページ ---------------- */
.information-center {
  --marker-size: clamp(20px, 8vw, 40px);
  contain: content;
  padding: min(5vw, 50px);
  border: 1px solid var(--color-justdb-blue);
  border-radius: clamp(5px, 2vw, 10px);
  position: relative;

  &::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: var(--marker-size);
    height: var(--marker-size);
    background-color: var(--color-justdb-blue);
    transform: translate(-50%, -50%) rotate(45deg);
  }
}


/* ---- フッタ ---------------- */
.footer {
  contain: content;
  content-visibility: auto;
  height: var(--footer-height);
  padding: 0;
  /* padding: 0 0 35px 0; */
}

footer .copyright {
  font-size: calc(var(--font-size) * 0.8125);
  color: var(--color-text-gray);
  text-align: center;
}


/* ---- 画面下フォーム移動CTA ---------------- */
.bottom-cta {
  content-visibility: hidden;
  contain: strict;
  display: block grid;
  position: sticky;
  opacity: 0;
  z-index: 30;
  /* z-index: 100; */
  left: 0;
  bottom: 0;
  width: 600px;
  height: clamp(30px, 17vw, 75px);
  margin-inline: auto;
  margin-top: calc(clamp(30px, 17vw, 75px) * -1);
  padding-block: clamp(3px, 1vw, 10px);
  background: linear-gradient(217deg, rgb(31 95 191 / 0.9), rgb(31 95 191 / 0) 70.71%),
    linear-gradient(127deg, rgb(var(--color-justdb-blue-dec) / 0.9), rgb(var(--color-justdb-blue-dec) / 0) 70.71%),
    linear-gradient(336deg, rgb(159 31 191 / 0.9), rgb(159 31 191 / 0) 70.71%),
    rgb(31 95 191 / 0.5);
  filter: brightness(1);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  color: white;
  place-content: center;
  line-height: 1.2;
  cursor: pointer;
  transform: translate(0, 100%);
  transition: content-visibility 0.5s ease 0s,
    opacity 0.5s ease 0s,
    filter 0.5s ease 0s,
    transform 0.5s ease 0s,
    width 0.5s ease 0s,
    border-top-left-radius 0.5s ease 0s,
    border-top-right-radius 0.5s ease 0s;

  &:hover {
    filter: brightness(1.3);
  }
}

.bottom-cta.visible {
  content-visibility: auto;
  opacity: 1;
  transform: translate(0, 0);
}

.bottom-cta-sub {
  width: fit-content;
  margin: 0 auto;
}

.bottom-cta:has(.bottom-cta-button:first-child) {
  height: clamp(20px, 12vw, 50px);
  margin-top: calc(clamp(20px, 12vw, 50px) * -1);
}

.bottom-cta-button {
  width: fit-content;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.bottom-cta-button:first-child {
  transform: translate(0, 5%);
}

.bottom-cta-button a {
  display: inline-block;
  font-weight: bold;
  font-size: calc(var(--font-size) * 1.2);
  color: white;
  overflow: hidden;

  &::after {
    content: "";
    display: inline-block;
    width: calc(var(--font-size) * 1.2);
    height: calc(var(--font-size) * 1.2);
    margin-left: 0.2em;
    background-image: url(/jp/products/justdb/data/icon_arrow_down_w.svg);
    background-size: contain;
    background-position: center;
    transform: translate(0, -10%);
    vertical-align: middle;
    transition: transform 0.2s ease-out 0s;
  }
}

.bottom-cta.above a::after {
  transform: rotate(180deg);
}

.bottom-cta.below:hover a::after {
  animation: 0.3s linear 0s 1 normal none running arrow-move;
}

.bottom-cta.above:hover a::after {
  animation: 0.3s linear 0s 1 normal none running arrow-move-reverse;
}

@keyframes arrow-move {
  0% {
    transform: translate(0, -10%);
  }

  40% {
    transform: translate(0, 90%);
  }

  41% {
    transform: translate(0, -110%);
  }

  100% {
    transform: translate(0, -10%);
  }
}

@keyframes arrow-move-reverse {
  0% {
    transform: translate(0, -10%) rotate(180deg);
  }

  40% {
    transform: translate(0, -110%) rotate(180deg);
  }

  41% {
    transform: translate(0, 90%) rotate(180deg);
  }

  100% {
    transform: translate(0, -10%) rotate(180deg);
  }
}

@media screen and (max-width: 768px) {
  .bottom-cta {
    width: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;

    &:hover {
      filter: brightness(1);
    }
  }
}