@charset "utf-8";

/* ============================
* リセット
* ========================= */

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

a,
a:hover {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

button{
    margin: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    line-height: inherit;
    text-align: inherit;
    border: none;
    background-color: transparent;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

ul,
li {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin-block-start: 0;
    margin-block-end: 0;
    padding-block-start: 0;
    padding-block-end: 0;
    color: inherit;
}

/* ============================
* 共通・本体
* ========================= */

:root {
    --main-color: #1E55FC;
    --text-color: #303030;
    --white-color: #FAFBFC;
    --sub1-color: #3DA6FD;
    --sub2-color: #A7C6F9;
    --accent-color: #F9DFAA;
    --gray-color: #b4b4b4;
    --cta-color: #ff573b;
    --cta2-color: #CC3921;
}

html {
    width: 100%;
    height: 100%;
    scroll-padding-top: 5rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

body {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    font-family: 'Helvetica', 'Arial', "Zen Kaku Gothic New", 'ヒラギノ角ゴ ProN W3', sans-serif;
    font-weight: 500;
    color: var(--text-color);
    background: var(--white-color);
}

body::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.body__modal-open {
    overflow: hidden;
    height: 100%;
}

img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

a, button {
    transition: 0.3s;
}

a:hover {
    cursor: pointer;
}

a:active {
    opacity: 0.8;
    transform: scale(0.95);
}

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;

    font-size: 1.5rem;
    vertical-align: text-bottom;
}

.marker {
    padding-bottom: 0.1rem;
    font-weight: 700;
    background: linear-gradient(transparent 60%, var(--accent-color) 40%);
}

.title__modal {
    margin: 0 -1rem 0 -1rem;
    padding: 0.5rem 1rem;
    color: var(--white-color);
    background: var(--main-color);
}

.title__modal span {
    padding-right: 0.5rem;
    font-size: 2rem;
    vertical-align: bottom;
}

.cta__link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 1rem auto;
    padding: 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #FAFBFC;
    border-bottom: solid 0.3rem var(--cta2-color);
    border-radius: 5px;
    background: var(--cta-color);
    transition: 0.5s ease;
    animation: dokidoki 2s infinite;
}

@keyframes dokidoki {
    0% {
        transform: scale(1);
    }

    5% {
        transform: scale(1);
    }

    95% {
        transform: scale(1);
    }

    100% {
        -webkit-transform: scale(1.05);
    }
}

.cta__link::before {
    content: "";
    position: absolute;
    top: 48%;
    right: 1.5rem;
    width: 1rem;
    height: 1rem;
    border-width: 0.2rem 0.2rem 0 0;
    border-style: solid;
    border-color: var(--white-color);
    transform: rotate(45deg) translateY(-50%);
}

.cta__link::after {
    content: "Click";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: auto;
    font-size: 2rem;
    color: var(--white-color);
    text-align: center;
    background: var(--cta-color);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: 0.3s ease;
}

.cta__link:hover:after {
    opacity: 1;
}

.fade-up {
    opacity: 0;
    transform: translateY(3rem);
    transition: all .6s ease-out;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
* header
* ========================= */

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 3.5rem;
    background-color: rgba(250, 251, 252, 0.8);
    z-index: 30;
}

.header__inner {
    display: grid;
    grid-template-areas:
        "logo . hamburger";
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 768px;
    height: 3.5rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    grid-area: logo;
    width: 5rem;
    height: auto;
}

.logo__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hamburger {
    grid-area: hamburger;
    position: relative;
    width: 2.5rem;
    height: 3rem;
    cursor: pointer;
    z-index: 50;
}

.hamburger__menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hamburger__line {
    position: absolute;
    display: block;
    background: var(--main-color);
    width: 100%;
    height: 0.25rem;
    transition: all 0.3s;
    z-index: 10;
}

.hamburger__line:nth-of-type(1) {
    top: 0.3rem;
}

.hamburger__line:nth-of-type(2) {
    top: 1rem;
}

.hamburger__line:nth-of-type(3) {
    top: 1.7rem;
}

.hamburger__text {
    position: absolute;
    display: block;
    bottom: 0;
    left: 50%;
    font-size: 0.8rem;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.hamburger__text--close {
    opacity: 0;
}

.hamburger__menu.active>.hamburger__line:nth-of-type(1) {
    top: 40%;
    background: var(--white-color);
    transform: translateY(-50%) rotate(30deg);
}

.hamburger__menu.active>.hamburger__line:nth-of-type(2) {
    display: none;
}

.hamburger__menu.active>.hamburger__line:nth-of-type(3) {
    top: 40%;
    background: var(--white-color);
    transform: translateY(-50%) rotate(-30deg);
}

.hamburger__menu.active .hamburger__text--menu {
    opacity: 0;
}

.hamburger__menu.active .hamburger__text--close {
    color: var(--white-color);
    opacity: 1;
}

.hamburger__nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    max-width: 768px;
    padding: 7rem 0 0;
    background: rgba(30, 85, 252, 0.8);
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 40;
}

.hamburger__nav.active {
    opacity: 1;
    transform: translateX(0);
}

.hamburger__nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.hamburger__nav-item:first-child .hamburger__nav-link span {
    padding-right: 0.2rem;
    font-size: 1.5rem;
    vertical-align: -0.35rem;
}

.hamburger__nav-link {
    font-weight: 700;
    color: var(--white-color);
}

.hamburger__nav-link:hover {
    color: var(--accent-color);
}

.hamburger__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--text-color);
    opacity: 0;
    cursor: pointer;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear;
    z-index: 30;
}

.hamburger__overlay.active {
    opacity: 0.8;
    visibility: visible;
}

/* ============================
* main
* ========================= */
/* top */
.top {
    margin-top: 3.5rem;
}

.top__hero {
    width: 100%;
    height: auto;
}

/* wrapper */
.main__wrapper {
    position: relative;
    padding: 1rem;
}

/* faq */
.faq__open {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    padding: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white-color);
    text-align: center;
    border-bottom: solid 0.3rem var(--cta2-color);
    border-radius: 5px;
    background: var(--cta-color);
}

.faq__open::before {
    content: "";
    position: absolute;
    display: inline-block;
    top: 50%;
    right: 0.7rem;
    vertical-align: text-bottom;
    border-top: 1rem solid var(--white-color);
    border-right: 0.7rem solid transparent;;
    border-left:  0.7rem solid transparent;
    transform: translateY(-50%);
}

.faq__open::after {
    content: "詳しく見る";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: auto;
    font-size: 1.3rem;
    color: var(--white-color);
    text-align: center;
    background: var(--cta-color);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: 0.3s ease;
}

.faq__open:hover:after {
    opacity: 1;
}

.faq__overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;

    display: flex;
    justify-content: center;
    align-items: center;
}

.faq__overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.faq__modal {
    position: relative;
    width: 90%;
    height: 60vh;
    max-width: 700px;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.faq__modal.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.faq__container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: inherit;
    max-height: 60vh;
    border: solid 2px var(--main-color);
    background: var(--white-color);
}

.faq__close {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: -2rem;
    right: -0.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--text-color);
}

.faq__close .material-symbols-outlined {
    font-size: 2.5rem;
    color: var(--white-color);
    line-height: 1;
}

/* モーダル中身 */
.faq__contents {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 1rem 0;
}

.explain__title {
    margin: 0 -1rem 1rem -1rem;
    padding: 0 1rem 1rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--main-color);
    text-align: center;
    border-bottom: solid 2px var(--main-color);
}

.explain__text-top {
    font-size: 1rem;
    font-weight: 500;
}

.explain__wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    height: auto;
}

.explain__text-wrapper {
    width: 56%;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: var(--sub2-color);
}

.explain__image {
    background: url(../images/explain.webp) no-repeat center / contain;
    width: 6rem;
    height: 6rem;
}

.howto__wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.howto__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem;
    border: solid 2px var(--main-color);
    border-radius: 20px;
}

.howto__text {
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.howto__text span {
    font-size: 1.5rem;
    vertical-align: -0.4rem;
}

.howto__image {
    width: 70%;
    height: min-content;
}

.howto__essentials {
    width: 100%;
    margin: 1rem auto 0;
    padding: 1rem;
    background: var(--accent-color);
}

.howto__essentials-title {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.howto__essentials-item span {
    font-size: 1.5rem;
    color: var(--cta-color);
    vertical-align: -0.4rem;
}

.howto__essentials-caution {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--cta2-color);
    text-align: center;
}

.query {
    margin-top: 1rem;
}

.query__wrapper {
    margin: 0 -1rem 0 -1rem;
    padding: 1rem;
    background: var(--main-color);
}

.query__details:last-of-type {
    margin-top: 0.5rem;
}

.query__details > div.query__item {
    align-items: start;
    margin: 0.5rem 0 1rem;
}

.query__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 20px;
    background: var(--white-color);
}

.query__image {
    flex: 1;
    width: 20%;
}

.query__text {
    flex: 3;
}

/* 中間部分 */
.problem__background {
    margin: 0 -1rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0), var(--sub2-color));
}

.problem__contents {
    margin-top: 1rem;
}

.problem__title {
    font-weight: 800;
    text-align: center;
}

.problem__item {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: var(--gray-color);
}

.problem__item:nth-of-type(even) {
    margin-left: auto;
}

.problem__item:nth-of-type(odd)::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 2rem;
    width: 0;
    height: 0;
    border-width: 0.7rem 0.7rem 0 0.7rem;
    border-style: solid;
    border-color: var(--gray-color) transparent transparent transparent;
}

.problem__item:nth-of-type(even)::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    right: 2rem;
    width: 0;
    height: 0;
    border-width: 0.7rem 0.7rem 0 0.7rem;
    border-style: solid;
    border-color: var(--gray-color) transparent transparent transparent;
}

.problem__text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white-color);
    overflow-wrap: anywhere;
}

.problem__wrapper {
    position: relative;
    width: 100%;
    height: auto;
}

.problem__wrapper::after {
    content: "";
    position: absolute;
    display: block;
    bottom: -3rem;
    width: 100%;
    height: 100%;
    background: url(../images/section1.svg) no-repeat center / contain;
}

.problem__image {
    width: 8rem;
    height: 8rem;
    margin: 1.5rem auto 0;
}

.point {
    position: relative;
}

.point__wrapper {
    position: relative;
    margin: 0 -1rem 0;
    padding-bottom: 2rem;
    background: var(--main-color);
}

.point__wrapper::after {
    content: "";
    position: absolute;
    display: block;
    bottom: -6.5rem;
    width: 100%;
    height: 30%;
    background: url(../images/section2.svg) no-repeat center / contain;
}

.point__sub-wrapper {
    margin: 1rem 1rem 0.5rem;
    text-align: center;
}

.point__sub-text {
    margin-bottom: 0.3rem;
    color: var(--white-color);
}

.point__sub-title {
    font-size: 1.5rem;
    color: var(--white-color);
    line-height: 1.9rem;
}

.big {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent-color);
}

.select__container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.5rem;
    margin: 1.5rem 1rem 0;
    padding: 1.5rem 0.5rem 1rem;
    border: solid 1px var(--text-color);
    border-radius: 20px;
    background: var(--white-color);
}

.select__title {
    position: absolute;
    display: block;
    top: 9rem;
    left: 50%;
    width:70%;
    padding: 0.3rem 1rem;
    color: var(--main-color);
    text-align: center;
    border: solid 1px var(--text-color);
    border-radius: 18px;
    background: var(--white-color);
    transform: translateX(-50%);
    z-index: 10;
}

.select__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.select__item-title {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.select__item-image {
    width: 70%;
    padding: 0.5rem;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto;
}

.select__item-text {
    font-size: 0.9rem;
}

/* ランキング */
.ranking {
    margin-top: 6rem;
}

.ranking__title {
    position: relative;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 2rem;
    text-align: center;
}

.ranking__title span {
    font-size: 2rem;
    color: var(--sub1-color);
    vertical-align: -0.3rem;
}

.ranking__title::before,
.ranking__title::after {
    position: absolute;
    content: "";
    width: 1rem;
    height: 4rem;
}

.ranking__title::before {
    border-top: solid 2px var(--main-color);
    border-bottom: solid 2px var(--main-color);
    border-left: solid 2px var(--main-color);
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.ranking__title::after {
    border-top: solid 2px var(--main-color);
    border-right: solid 2px var(--main-color);
    border-bottom: solid 2px var(--main-color);
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.ranking__container {
    margin-top: 2rem;
}

.ranking__contents {
    margin-top: 1rem;
    width: 100%;
    border-bottom: solid 2px var(--gray-color);
}

.ranking__contents:last-of-type {
    border: none;
}

.ranking__page-link:hover,
.ranking__page-link:active {
    opacity: 0.7;
}

.ranking__top {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
}

.ranking__top::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    right: -1rem;
    border-width: 2rem 1rem 2rem 1rem;
    border-style: solid;
    border-color: transparent transparent transparent var(--main-color);
    transform: translateY(-50%);
}

.ranking__wrapper {
    position: relative;
    width: 40%;
}

.ranking__image {
    flex: 1;
    width: 100%;
    object-fit: contain;
    border: solid 1px var(--text-color);
}

.ranking__rank-image {
    position: absolute;
    width: 30%;
    top: 0.3rem;
    left: 0.2rem;
}

.ranking__info {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.8rem 0;
    
}

.ranking__store {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--main-color);
    line-height: 1.5rem;
}

.ranking__strong {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cta-color);
}

.ranking__text {
    color: var(--text-color);
}

.ranking__text--day {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: #636363;
    line-height: 0.8rem;
}

.border {
    width: 100%;
    border-top: solid 2px var(--text-color);
}

.back {
    position: fixed;
    width: 100vw;
    height: 80vh;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
}

.back1 {
    bottom: 0;
    left: 0;
    background-image: url(../images/back1.svg);
    background-position: left bottom;
}

.back2 {
    top: 0;
    right: 0;
    background-image: url(../images/back2.svg);
    background-position: top right;
}

/* ============================
* footer
* ========================= */

.footer {
    position: relative;
    width: 100%;
    height: 10rem;
    background: var(--main-color);
}

.footer__contents {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    transform: translate(-50%, -50%);
}

.footer__policy,
.footer__copy {
    font-size: 0.7rem;
    color: var(--white-color);
}

.footer__policy {
    display: inline-block;
    margin-bottom: 0.5rem;
    border-bottom: solid 1px var(--white-color);
}

/* ============================
* プライバシーポリシー
* ========================= */

.policy__wrapper {
    padding: 1rem;
}

.policy__title {
    font-size: 1.3rem;
    text-align: center;
}

.policy__contents {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: solid 1px var(--text-color);
}

.policy__text {
    font-size: 0.8rem;
    line-height: 1rem;
}

.policy__h2 {
    padding: 0.5rem 0 0.2rem;
    font-size: 1rem;
}

/* ============================
* メディアクエリ
* ========================= */

@media screen and (max-width:370px) {
    html {
        font-size: 14px;
    }
}

@media screen and (min-width:500px) {
    html {
        font-size: 18px;
        letter-spacing: 0.1rem;
    }
}

@media screen and (min-width:768px) {
    html {
        font-size: 28px;
        letter-spacing: 0.15rem;
    }
}

@media screen and (max-width:767px) {
    .back {
        display: none;
    }
}

@media screen and (min-width:768px) {
    .modal__button-link {
        font-size: 20px !important;
    }
}