: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: 4;
}

.header_nav ul {
    position: absolute;
    top: 135px;
    left: 25%;
    width: 100%;
}

.header_nav li {
    margin-bottom: 34px;
    font-weight: 500;
}

.active .header_nav {
    transform: translateX(0);
}

.sp-button {
    position: relative;
    display: inline-block;
    z-index: 5;
    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;
}

.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;
    font-size: 16px;
    border: 1.8px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    cursor: pointer;
}

.birthday-select select:focus {
    border-color: #0073e6;
    outline: none;
    box-shadow: 0 0 5px rgba(0,115,230,0.5);
}

/* スマホで縦並び */
@media (max-width: 480px) {
    .birthday-select {
        flex-direction: column;
    }

    .birthday-select select {
        width: 100%;
    }
}



/* ****************************
button
**************************** */

.submit_button {
    display: flex;
    justify-content: center;
    margin: 40px auto 20px;
    padding: 10px 39px;
    width: 230px;
    background-color: #FF5A64;
    border-radius: 30px;
    color: #fff;
    align-items: center;
    transition: .3s ease-in;

}

.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;
}



/* ***************************
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_logo img {
    height: 40px;
}

.footer_nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    max-width: 600px;
    margin-left: auto;
}

.footer_nav li {
    width: 160px;
    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;
}
