:root {
    --img-logoWhite: url('https://d23h2dywmtq7mr.cloudfront.net/common/logoWhite.svg');
    --img-arrow: url('https://d23h2dywmtq7mr.cloudfront.net/common/arrow.png');
    --img-arrow-pc: url('https://d23h2dywmtq7mr.cloudfront.net/common/arrow_pc.png');
    --img-result-ribbon: url('https://d23h2dywmtq7mr.cloudfront.net/result/ribbon.png');
    --img-result-ribbon-pc: url('https://d23h2dywmtq7mr.cloudfront.net/result/pc_ribbon.png');
    --img-ranking-ribbon: url('https://d23h2dywmtq7mr.cloudfront.net/ranking/ranking_ribbon.png');
    --img-ranking-ribbon-pc: url('https://d23h2dywmtq7mr.cloudfront.net/ranking/ranking_ribbon_pc.png');
    --img-ranking-white-polygon: url('https://d23h2dywmtq7mr.cloudfront.net/ranking/white_polygon.svg');
    --img-ranking-cronwn-green: url('https://d23h2dywmtq7mr.cloudfront.net/ranking/cronwn_green.png');
    --img-compatibility-ribbon: url('https://d23h2dywmtq7mr.cloudfront.net/compatibility/result_heart.png');
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
    font-size: clamp(0.75rem, 0.714rem + 0.18vw, 0.875rem);
    font-weight: 400;
    line-height: 1.6;
    color: #1e1e1e;
    /*text-transform: uppercase;*/
}

img {
    display: block;
    max-width: 100%;
    height: auto;

}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.flex {
    display: flex;
}

.wrapper {
    width: 90%;
    margin: 0 auto;
}

.inner {
    width: 100%;
    padding: 40px 0;
}

.header_text {
    font-size: clamp(14px, 3vw, 16px);
}


.input_section {
    background-color: #D9EAE7;
}


/* **************************
header
************************** */

.header_logo {
    padding: 20px 0;
}

.sp_top_mv {
    width: 100%;
    margin: 0 auto;
}


/* ************************
sp side nav
************************ */

.header_nav {
    background-color: #77C0B3;
    width: 50%;
    height: 100%;
    color: #fff;
    /*position: absolute;*/
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    transition-duration: .3s;
    text-transform: uppercase;
    z-index: 100;
}

.header_nav ul {
    position: absolute;
    top: 100px;
    left: 20%;
    width: 100%;
}

.header_nav ul.nav_login {
    position: relative;
    top: 0;
    left: 0;
}



.header_nav li {
    margin-bottom: 34px;
    font-weight: 500;
}

.active .header_nav {
    transform: translateX(0);
}

.sp-button {
    position: relative;
    display: inline-block;
    z-index: 120;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fd5c5c;
}

.hamburger {
    position: fixed;
    top: 8px;
    right: 10px;
}


.hamburger-line {
    position: absolute;
    z-index: 2;
    right: 11px;
    width: 28px;
    height: 2px;
    background-color: #fff;
    transition: all .4s;
}

.hamburger-line:nth-of-type(1) {
    top: 15px;
}

.hamburger-line:nth-of-type(2) {
    top: 22px;
}

.hamburger-line:nth-of-type(2)::after {
    content: "menu";
    color: #fff;
    font-family: 'Lato', 'Noto Sans JP', sans-serif;
    font-size: 10px;
    position: absolute;
    top: 3px;
    left: 0;
}

.active .sp-button {
    background-color: #fff;
}

.active .hamburger-line:nth-of-type(1) {
    transform: rotate(-30deg);
    top: 20px;
    background-color: #77C0B3;
}

.active .hamburger-line:nth-of-type(2) {
    transform: rotate(30deg);
    top: 20px;
    right: 10px;
    background-color: #77C0B3;
}

.active .hamburger-line:nth-of-type(2)::after {
    content: "close";
    transform: rotate(-30deg);
    top: 5px;
    left: 5px;
    color: #77C0B3;
}

.active .header_nav li:nth-child(4):after {
    content: "";
    position: absolute;
    display: inline-block;
    width: 20px;
    height: 1px;
    background-color: #fff;
    bottom: -50px;
    left: 40px;
}

.active .header_nav::after {
    content: var(--img-logoWhite);
    display: block;
    position: absolute;
    width: 110px;
    top: 500px;
    left: 20%;
}



/* *********************
input date
********************* */
.input_section {
    text-align: center;
}


.input_section_title {
    /* font-size: clamp(20px, 3vw, 24px); */
    /* font-weight: bold; */
    /* margin-bottom: 20px; */
    /* position: relative; */
    width: calc(100% * 506 / 1920);
    min-width: 300px;
    margin: 0 auto;
}

.input_section_title:before {
    display: inline-block;
    content: var(--img-arrow);
    position: absolute;
    width: 26px;
    height: 39px;
    top: -60px;
    left: 50%;
}

.input_section_text {
    display: inline-block;
    padding: 30px 0 7px;
    border-bottom: solid 2px #77C0B3;
}

.input_text_exam {
    padding: 20px 0;
    letter-spacing: 0.1em;
}



.input_inner_wrap {
    width: 230px;
    margin: 0 auto;
    gap: 15px;
    align-items: baseline;
}

.input_inner {
    display: flex;
    align-items: flex-end;
}

.input {
    width: 40px;
    border: 1px solid #77C0B3;
    text-align: center;
    margin-right: 5px;
    display: inline-block;
    background-color: #fff;
}

.input_year {
    width: 65px;
}

.birthday-form {
    max-width: 400px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.birthday-form label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 16px;
}

.birthday-select {
    display: flex;
    gap: 12px;
}

.birthday-select select {
    flex: 1;
    /* padding: 8px 12px; */
    padding: 2% 4%;
    font-size: 16px;
    border: 1.8px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="26" height="26" viewBox="0 0 24 24"><path fill="%23333" d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0px center;
    background-size: 26px;
}

.birthday-select select:focus {
    border-color: #0073e6;
    outline: none;
    box-shadow: 0 0 5px rgba(0,115,230,0.5);
}
@media (min-width:751px) and (max-width:800px) {
    .birthday-select select {
        font-size: 14px;
    }
}

/* スマホで縦並び */
@media (max-width: 480px) {
    /* .birthday-select {
        flex-direction: column;
    } */

    .birthday-select select {
        padding: 5px 12px;
        width: 100%;
    }
}

/* ****************************
fv_input_area
**************************** */
.fv_section{
    position: relative;
}
.fv_input_area{
    position: absolute; 
    bottom: 0;
    right: calc(100% * 320 / 1920);
    width: calc(100% * 555 / 1920);
}
.fv_input_bg{
    position: absolute;
    bottom: 0;
    z-index: 1;
}
.fv_input_cont{
    position: relative;
    width: 87%;
    margin: 0 auto 19% auto;
    z-index: 2;
}
.fv_input_text{
    margin: 5% auto 3%;
    font-size: clamp(16px, 3vw, 18px);
}
.fv_txt_sp{
    display: none;
}
@media (min-width:901px) and (max-width:1240px) {
    .fv_input_text{
        font-size: 1em;
    }
}
@media (min-width:751px) and (max-width:900px) {
    .fv_input_text{
        font-size: 0.8em;
    }
}

/* @media (max-width: 640px) { */
@media (max-width: 750px) {
  .fv_input_area{
        bottom: 20px;
        margin: 0 auto;
        right: calc(100% * 30 / 750);
        width: calc(100% * 690 / 750);
    }  
    .fv_input_cont{
        margin: 0 auto 36% auto;
    }
    .fv_txt_sp{
        display: block;
        position: absolute;
        z-index: 3;
        bottom: 1%;
    }


}

/* ****************************
share
**************************** */
.share_area_text{
    text-align: center;
    margin: 5% auto 4%;
    font-size: 1.5em;
    font-weight: bold;
}
.share_btnarea{
    width: calc(100% * 435 / 555);
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    text-align: center;
    font-size: 1.125em;
}
.share_btnarea li{
    width: calc(100% * 95 / 365);
    line-height: 0.5;
}
.text_white{
    color: #fff;
}
.share_area_result{
    max-width: 370px;
    margin: 0 auto 75px;
}
@media (min-width:901px) and (max-width:1240px) {
    .share_area_text{
        font-size: 1em;
        margin: 2% auto 1%;
    }
}
@media (min-width:751px) and (max-width:900px) {
    .share_area_text{
        font-size: 0.8em;
        margin: 0.8% auto 0.8%;
    }
    .share_btnarea{
        font-size: 0.8em;
    }
}
/* @media (max-width: 640px) { */
@media (max-width: 750px) {
    .share_area_text{
        margin: 2% auto 4%;
        font-size: 16px;
    }
    .share_btnarea{
        font-size: 14px;
    }
    .share_area_result{
    max-width: 370px;
    margin: 10% auto 10%;
    }
}

/* ****************************
button
**************************** */

.submit_button {
    display: flex;
    justify-content: center;
    padding: 10px 39px;
    width: 230px;
    background-color: #FF5A64;
    border-radius: 30px;
    color: #fff;
    align-items: center;
    margin: 40px auto 20px;
    /* margin: 5% auto 4%;
    transition: .3s ease-in; */
}

.submit_button_img {
    margin: 5% auto 4%;
    transition: .3s ease-in;
    display: flex;
}

.repeat_btn_wrap {
    display: flex;
    justify-content: center;
}
button.repeat_btn_wrap {
    display: inline;
}

.arrow_icon {
    background-color: #fff;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-left: 15px;
    position: relative;
}

.arrow_icon:after {
    content: "";
    display: block;
    border-top: solid 2px #FF5A64;
    border-right: solid 2px #FF5A64;
    width: 5px;
    height: 5px;
    margin-left: 15px;
    transform: rotate(45deg);
    position: absolute;
    top: 5px;
    right: 6px;
}


.twitter_share_button {
    display: inline-block;
    margin: 0 auto 40px;
    width: 230px;
    background-color: #000000;
    color: #fff;
    padding: 11px 57px;
    text-align: center;
    transition: .3s ease-in;

}

.twitter_icon {
    display: inline-block;
    vertical-align: text-bottom;
    margin-right: 5px;
    max-width: 20px;
}
@media (min-width:751px) and (max-width:1015px) {
    .submit_button {
        margin: 2% auto 1%;
    }   
}
@media (max-width: 640px) {
    .repeat_btn_wrap {
        margin-top: 10%;
    }
}


/* ***************************
banner
*************************** */

.sp_banner {
    width: 100%;
    margin-top: 30px;
}

/* ********************************
YouTube
******************************** */
.youtube {
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* *****************************
footer
***************************** */

.footer {
    background-color: #f5f5f5;
    padding: 40px 0;
    font-size: 14px;
    color: #333;
}

.footer .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer .inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.footer_wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    flex-wrap: nowrap;
}

.footer_logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
    width: 180px;
}
.footer_snsicon{
    display: flex;
    gap: 8px;
}

.footer_logo img {
    height: 40px;
}

.footer_nav {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: flex-end; */
    justify-content: flex-start;
    gap: 12px;
    max-width: 600px;
    margin-left: auto;
}

.footer_nav li {
    width: 140px;
    text-align: left;
    list-style: none;
}

.footer_nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer_nav a:hover {
    color: #777;
}

.footer_up img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-width: none;
}

.footer_up a:hover img {
    transform: translateY(-5px);
}

.copy {
    font-size: 12px;
    color: #aaa;
    text-align: center;
    margin-top: 20px;
}

@media (max-width: 860px) {
    .footer_logo_wrap{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
