@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&display=swap');

/* 初期設定 */

/* added by Claude */
* {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    background: white;
    background-size: cover;
    background-position: center top;

    font-family: "Noto Serif JP", serif;
    font-weight: normal;

    color: #222;
}

img {
    width: 100%;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    /* background-color: #ece; */
}

/************************************
  ヘッダー 
 ***********************************/
#header {
    background: url(../images/top-back.png) no-repeat center center/cover;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#top-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#top-area ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#top-area a {
    display: inline-block;
    color: #333;
    background-color: #f0f0f0;
    font-size: 20px;
    margin-right: 24px;
    border-radius: 10px;
    padding: 6px;
    transition: all 0.3s ease;
    filter: drop-shadow(1px 1px 2px #121212);
}

#top-area a:hover {
    color: #fff;
    background-color: #e03131;
    cursor: pointer;
}

#header .logo {
    width: 320px;
    padding: 1% 0 0 1%;
}

#header .mainvisual {
    width: 40%;
    position: absolute;
    top: 15%;
    left: 56%;
    opacity: .8;
}

.prologue {
    width: 60%;
    position: relative;
    padding-top: 24px;
    padding-left: 60px;
}

.partTop {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 50px;

    color: #222;
    text-shadow: 2px 2px 1px #fff;

}

.pPart {
    font-size: 2rem;
    margin-bottom: 50px;

    color: #222;
    text-shadow: 1px 1px 0px #fff;

}

.none {
    display: none;
}

.hidden {
    opacity: 0;
    transform: translateY(50px);
    /* transition: opacity 0.5s ease-in-out; */
    transition: all 1.5s ease-in-out;
}

.visible {
    opacity: 1;
    transform: translateY(0px);
}

/* main */
.mainhead {
    font-size: 3rem;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 100px;
}

.flex-left,
.flex-right {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    /* added by Claude */
    /* flex-wrap: wrap; */

}

.flex-left img,
.flex-right img {
    width: 50%;
    /* added by Claude */
    max-width: 100%;
    padding: 0 2%;
    object-fit: cover;
}

.flex-left .text,
.flex-right .text {
    /* width: 50%; */
    /* added by Claude */
    width: 100%;
    padding: 0 3%;
}

.flex-left .text p,
.flex-right .text p {
    margin-bottom: 32px;
}

#conditions .text p:nth-child(2),
#conditions .text p:nth-child(4) {
    margin-bottom: 12px;
}

#charts .text img {
    width: 100%;
    padding: 0 5%;
}

#charts span {
    padding-left: 30px;
    margin-bottom: 5px;
    color: #00f;
    font-size: 1rem;
}

#registration form {
    width: 100%;
    /* padding: 0 3%; */
}

.freemember {
    width: 100%;
    padding: 18px;
    /* added by Claude */
    box-sizing: border-box;

}

.freemember .border {
    width: 100%;
    border: 1px solid #333;
    padding: 14px;
    overflow: hidden;
}

.freemember .reg-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
}

.freemember .text {
    width: 100%;
}

#registration form dl {
    /* padding-left: 5%; */
    padding: 0 4%;
    display: flex;
    flex-wrap: wrap;
    /* added by Claude */
    width: 100%;
}

#registration form dt {
    /* added by Claude */
    width: 100%;
    padding-right: 10px;
    /* width: 30%; */
}

#registration form dd {
    /* added by Claude */
    width: 100%;
    margin-left: 0;
    /* width: 70%; */
}

[type="text"],
[type="email"] {
    border: 1px solid #333;
    margin-bottom: 24px;
    /* added by Claude */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* added by Claude */
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
}

.border [type="submit"] {
    margin-top: 20px;
    width: 80px;
    height: 32px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: green;
    color: white;
    /* Del by Claude */
    display: block;
    margin: 0 auto;
}

.policy-text {
    display: block;
    margin-top: 20px;
}

#reg-confirm [type="submit"] {
    margin-top: 20px;
    width: 80px;
    height: 32px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: green;
    color: white;
    /* Del by Claude */
    display: block;
    /* margin:  0 auto; */
    margin-right: 60px;
}

#footer {
    background: url(../images/footer.png) no-repeat center center/cover;
    height: 120px;
}

#footer .text {
    padding-top: 50px;
}

#footer p {
    text-align: center;
    margin-bottom: 12px;
}

#footer p:last-child {
    font-size: .75rem;
}

#footer a {
    color: #222;
}

/* トップへ戻るボタン */
#page-top {
    position: fixed;
    right: 5px;
    bottom: 80px;
    height: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 90%;
    line-height: 1.5rem;
    /* color: #947153; */
    color: #a5cba9;
    padding: 5px 30px 0 35px;
    border-top: solid 1px;
    cursor: pointer;
    transform: rotate(90deg);
}

#page-top::before {
    content: "";
    display: block;
    position: absolute;
    top: -1px;
    left: 0px;
    width: 15px;
    border-top: solid 1px;
    transform: rotate(35deg);
    transform-origin: left top;
}

/* モーダル */
#reg-close,
#reg-end {
    margin-top: 20px;
    width: 80px;
    height: 32px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: green;
    color: white;
}

.flex-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
}

#policy-close,
#close {
    border: 3px solid #333;
    border-radius: .5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    font-weight: bold;
}

#mask {
    background: rgba(0, 0, 0, .6);
    position: fixed;
    inset: 0;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
}

#policy,
#reg-done,
#reg-confirm,
#chart-modal {
    background: #fff;
    max-width: 48rem;
    padding: 2rem;
    border-radius: .5rem;
    position: fixed;
    top: 50%;
    left: 50%;
    /* 中央配置の補正 */
    transform: translate(-50%, -50%);
    margin: auto;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
}

#chart-modal {
    max-width: 60rem;
    width: 60rem;
}

#chart-modal h2 {
    margin-bottom: 20px;
}

#chart-modal img {
    margin-bottom: 24px;
}

#reg-done h2,
#reg-confirm h2 {
    margin-bottom: 20px;
    text-align: center;
}

#reg-done p,
#reg-confirm p {
    margin-bottom: 14px;
}

#reg-confirm p:nth-child(3),
#reg-confirm p:nth-child(4) {
    margin-left: 8rem;
}

#reg-end {
    display: block;
    /* text-align: center; */
    margin: 0 auto;
}

#policy h2 {
    text-align: center;
    margin-bottom: 20px;
}

#policy dl {
    border: 1px #333 solid;
    display: flex;
    font-size: .75rem;
}

#policy dl:nth-child(2),
#policy dl:nth-child(3),
#policy dl:nth-child(4) {
    border-bottom: none;
}

#policy dl dt {
    width: 30%;
    border-right: 1px solid #333;
    padding: 5px;

}

#policy dl dd {
    width: 70%;
    padding: 5px;
}

#policy dl dd span {
    font-weight: bold;
}

#policy-close {
    margin-top: 16px;
    color: #222;
}

/* ローソク足 */

.vessel {
    position: absolute;
    right: 1%;
    bottom: 1%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.candlestick {
    position: absolute;
    width: 20px;
    height: 40px;
    background-color: white;
    /* 陽線の場合は白 */
    border: 2px solid #222;
    margin: 50px auto;
    opacity: .2;
}

/* 上ヒゲ */
.candlestick::before {
    content: "";
    position: absolute;
    width: 1px;
    height: 20px;
    background-color: #222;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* 下ヒゲ */
.candlestick::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 15px;
    background-color: #222;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* 陰線のスタイル */
.candlestick.bearish {
    background-color: black;
}

/* スクロール時にふわっと表示させる */
.slideIn > :first-child {
    transform: translateX(-50px);
    /* 左に50px移動 */
    opacity: 0;
    transition: opacity 1s, transform 1s;
}

.slideIn > :last-child {
    transform: translateX(50px);
    /* 右に50px移動 */
    opacity: 0;
    transition: opacity 1s, transform 1s;
}

.slideIn.is-active > :first-child,
.slideIn.is-active > :last-child {
    transform: translateX(0);
    /* 本来の位置に戻る */
    opacity: 1;
    /* 不透明になる */
}

@media screen and (max-width: 768px) {

    #top-area {
        flex-direction: column;
    }

    #top-area ul {
        width: 100%;
        margin: 8px 0 0 10px;
        justify-content: center;
    }

    #top-area a {
        font-size: 16px;
    }

    /* #header {

    } */

    #header .logo {
        padding: 4% 0 0 0;
    }

    #top-area a {
        margin-top: 12px;
    }

    #header .mainvisual {
        width: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        object-fit: cover;
        opacity: .3;
    }

    .flex-left,
    .flex-right {
        flex-direction: column;
        margin-bottom: 36px;
    }

    .flex-left img,
    .flex-right img {
        width: 100%;
        margin-bottom: 24px;
    }

    .prologue {
        width: 100%;
        position: relative;
        padding: 28px 10px 0 10px;
    }

    .partTop {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }

    .pPart {
        font-size: 1.4rem;
        margin-bottom: 22px;
    }

    .mainhead {
        font-size: 1.8rem;
        margin-bottom: 60px;
    }

    .flex-left .text,
    .flex-right .text {
        font-size: 1.2rem;
    }

    #conditions .flex-right,
    #achieve .flex-right {
        flex-direction: column-reverse;
    }

    #charts .text {
        width: 100%;
    }

    #charts .text img {
        padding: 0 1%;
    }

    /* Check later! */
    #charts span {
        display: none;
        /* padding: 0;
        display: inline-block;
        margin: 0 auto 5px auto; */
    }

    /* added by Claude */
    .freemember {
        padding: 10px;
    }

    .freemember .border {
        padding: 10px;
    }

    #registration form {
        padding: 0;
    }

    #registration form dl {
        /* Del by Claude */
        flex-direction: column;
        padding-left: 1%;

        /* added by Claude */
        /* padding-left: 8%; */
    }

    #registration form dt {
        width: 100%;
        /* added by Claude */
        /* width: 40%;         */
    }

    #registration form dd {
        width: 100%;
        /* added by Claude */
        /* width:60%;         */
    }

    .policy-text p {
        font-size: .825rem;
    }

    .border [type="submit"] {
        display: block;
        margin: 0 auto 10px;

    }

    .candlestick {
        opacity: .1;
    }

    #reg-confirm {
        width: 90%;
        padding: 1rem;
    }

    #reg-confirm p:nth-child(3),
    #reg-confirm p:nth-child(4) {
        margin-left: 1rem;
    }

    #reg-close,
    #reg-end {
        margin-top: 20px;
        width: 80px;
        height: 32px;
        border: 1px solid #333;
        border-radius: 5px;
        background-color: green;
        color: white;
    }

    #reg-confirm [type="submit"] {
        margin: 20px 40px 0 0;
    }

    #reg-confirm h2 {
        font-size: 1.2rem;
    }

    #reg-done {
        width: 90%;
        padding: 1rem;
    }

    #reg-done h2 {
        font-size: 1rem;
    }

    #policy {
        width: 96%;
    }

    #policy h2 {
        font-size: 1rem;
    }

    #policy dl dt,
    #policy dl dd {
        font-size: .625rem;
    }
}