@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);
    }
}

/* ---- 基本設定 ---------------- */
h1 {
    font-size: calc(var(--font-size) * 2.2);
    color: var(--color-justdb-navy);
}

h2 {
    font-size: calc(var(--font-size) * 1.8);
    color: var(--color-justdb-navy);
}

h3 {
    font-size: calc(var(--font-size) * 1.5);
    color: var(--color-justdb-navy);
}

h4 {
    font-size: calc(var(--font-size) * 1.4);
    color: var(--color-justdb-navy);
}

h5 {
    font-size: calc(var(--font-size) * 1.25);
    color: var(--color-justdb-navy);
}

h6 {
    font-size: calc(var(--font-size) * 1.1);
    color: var(--color-justdb-navy);
}

.mod-txt a:hover {
    color: var(--color-justdb-blue);
}

.mod-txt>p {
    font-size: var(--font-size);
}

.text-center {
    text-align: center;
}

/* ---- レイアウト ---------------- */
body {
    background-color: var(--color-justdb-grayish-white);
}

main {
    margin-bottom: 30px;
    /* SATORIのCSSに合わせる */
    padding: calc(min(7vw, 70px) + 80px) 0 min(7vw, 70px);
    padding-bottom: 0;
    font-size: var(--font-size);
}

@media screen and (min-width: 768px) {
    main {
        min-width: unset;
    }
}

@media screen and (max-width: 768px) {
    main {
        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-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;
    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 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;
    }
}

.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;

    &.border {
        border: 1px solid var(--color-border-gray);
    }
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ---- .form-form ---------------- */
.form-cont .form-cont-heading {
    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);
    }
}

.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) {
    .privacy-box {
        width: 90%;
    }
}

@container form-form (max-width: 485px) {
    .form-form .privacyPolicy_note {
        width: 65cqw;
    }
}

/* ---- 完了ページ ---------------- */
.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 {
    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: 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);
        }
    }
}
