@charset "UTF-8";

/* ============================
* リセット
* ========================= */

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

/* ============================
* 共通・本体
* ========================= */

:root {
    --main-color: #56c9d1;
    --text-color: #232828;
    --white-color: #f7f7f7;
    --sub1-color: #567bd1;
    --sub2-color: #56a2d1;
    --accent1-color: #d86c52;
    --accent2-color: #f7ef90;
    --btn-color: #ff9f6c;
    --btn-shadow-color: #e2783f;
}

html {
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;
    background: var(--white-color);
    font-family: "Zen Maru Gothic", sans-serif; /* 1rem=16px */
    -webkit-text-size-adjust: 100%;
    color: var(--text-color);
}

img {
    display: block;
    width: 100%;
}

a:hover {
    background: #ffbd72;
    cursor: pointer;
}

.wrapper {
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    max-width: 768px;
    position: relative;
    overflow: hidden;
}

.ribbon {
    display: block;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
    letter-spacing: 0.2rem;
    line-height: 1.6rem;
    color: var(--white-color);
    background: var(--sub1-color);
}

.ribbon:before {
    position: absolute;
    content: "";
    top: 100%;
    left: 0;
    border: none;
    border-bottom: solid 15px transparent;
    border-right: solid 20px var(--sub2-color);
}

.ribbon:after {
    position: absolute;
    content: "";
    top: 100%;
    right: 0;
    border: none;
    border-bottom: solid 15px transparent;
    border-left: solid 20px var(--sub2-color);
}

/* ============================
* ヘッダー
* ========================= */

.top {
    margin-left: -2rem;
    margin-right: -2rem;
}

/* ============================
* とは？
* ========================= */

.about {
    margin: 1rem 0 1.5rem;
    display: flow-root;
}

.about-title {
    font-weight: 900;
    color: var(--main-color);
    text-align: center;
    border-bottom: solid 2px var(--main-color);
    padding-bottom: 0.7rem;
}

.about-content {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    align-items: center;
    margin: 1rem 0;
}

.about-img {
    width: 40%;
    height: 150px;
    background-image: url("./images//kane.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.about-text {
    width: 60%;
    font-size: 0.95rem;
}

.about-text span {
    color: var(--accent1-color);
    font-weight: 700;
}

/* ============================
* ランキング
* ========================= */

/* 全体・上部、バック */
.ranking {
    margin: 1rem 0;
}

.ranking-container {
    display: flow-root;
    margin: 2rem 0;
}

.kanmuri {
    width: 40%;
    max-width: 180px;
    margin: 0 auto;
}

.back-mizu {
    margin: 0.5rem 0 1rem;
    padding: 1rem 5% 1.5rem;
    border-radius: 20px;
    background: var(--main-color);
}

.store-name {
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    color: var(--white-color);
    border-bottom: solid 2px var(--white-color);
    padding-bottom: 0.5rem;
}

.store-text {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    text-align: center;
    color: var(--white-color);
}

.store-text::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 0.5rem;
    background-image: url(./images//iine.png);
    background-size: contain;
    vertical-align: -50%;
}

.back-white {
    padding: 1.5rem 5%;
    background: var(--white-color);
}

/* テーブル */
.store-table {
    margin-top: 1.5rem;
    border-collapse: collapse;
    border-spacing: 0;
    border-radius: 10px;
    border: solid 3px var(--sub2-color);
    border-top: none;
}

.store-table th {
    font-size: 1.1rem;
    padding: 0.3rem;
}

.store-table td {
    padding: 0.7rem 0.5rem;
}

.store-table-row:nth-of-type(odd) {
    color: var(--white-color);
    background: var(--sub2-color);
}

.store-table-row:nth-of-type(odd) th {
    font-weight: 500;
}

.store-table-row:nth-of-type(1) th {
    text-align: center;
    border-right: solid 2px var(--white-color);
}

.store-table-row:nth-of-type(1) th:last-child {
    border-right: none;
}

.store-table-row:nth-of-type(2) td {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border-right: solid 2px var(--sub2-color);
}

.store-table-row:nth-of-type(2) td:last-child {
    border-right: none;
}

/* ポイント */
.store-point {
    margin-top: 1rem;
}

.store-point-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--main-color);
    text-align: center;
}

.store-point-title span {
    background: linear-gradient(transparent 60%, var(--accent2-color) 60%);
}

.store-content {
    display: flex;
    justify-content: space-evenly;
    gap: 0.5rem;
    margin: 1rem 0 0;
}

.store-point-list {
    list-style: none;
}

.store-point-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.store-point-list li:last-of-type {
    margin: 0;
}

.store-point-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background-image: url(./images//check.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.store-point-strong {
    font-weight: 700;
    color: var(--accent1-color);
}

.store-point-img {
    width: 20%;
    height: auto;
    background-image: url("./images//kore.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right bottom;
}

/* 申し込み */
.store-apply {
    margin-top: 2rem;
    text-align: center;
}

.store-apply-text {
    position: relative;
    display: inline-block;
    padding: 0 2rem;
    color: var(--sub2-color);
}

.store-apply-text:before {
    content: "";
    position: absolute;
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    top: 50%;
    background-color: var(--sub2-color);
    transform: rotate(60deg);
}

.store-apply-text:after {
    content: "";
    position: absolute;
    display: inline-block;
    width: 1.5rem;
    height: 2px;
    top: 50%;
    background-color: var(--sub2-color);
    transform: rotate(-60deg);
}

.store-apply-text:before {
    left: 0;
}

.store-apply-text:after {
    right: 0;
}

.store-apply-btn {
    margin-top: 1rem;
}

.store-apply-link {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 1.2rem 1rem;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.3rem;
    color: var(--white-color);
    background: var(--btn-color);
    box-shadow: 0 2px 8px rgb(170, 167, 167);
    border-bottom: 4px solid var(--btn-shadow-color);
    border-radius: 20px;
    transition: 0.3s ease-in-out;
    overflow: hidden;
}

.store-apply-link span {
    font-size: 0.8rem;
}

.store-apply-link:active {
    transform: translateY(4px);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

.store-apply-link:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background-image: linear-gradient(130deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 55%);
    animation: shine 2.7s infinite;
}

@keyframes shine {
    33% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* ============================
* メリット
* ========================= */

.merit-container {
    display: flow-root;
    margin-top: 4rem;
}

.merit-list {
    margin-top: 4rem;
    list-style: none;
}

.merit-item {
    position: relative;
    margin-bottom: 3rem;
    padding: 1.5rem;
    border: solid 3px var(--sub1-color);
    border-radius: 20px;
}

.merit-item h3 {
    position: absolute;
    display: inline-block;
    padding: 0 1rem;
    top: -1.2rem;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    color: var(--sub1-color);
    background: var(--white-color);
}

.merit-item:nth-of-type(1) > h3::before {
    content: "";
    display: inline-block;
    margin-right: 0.7rem;
    width: 2rem;
    height: 2rem;
    background-image: url(images/1.png);
    background-size: contain;
    vertical-align: text-bottom;
}

.merit-item:nth-of-type(2) > h3::before {
    content: "";
    display: inline-block;
    margin-right: 0.7rem;
    width: 2rem;
    height: 2rem;
    background-image: url(images/2.png);
    background-size: contain;
    vertical-align: text-bottom;
}

.merit-item:nth-of-type(3) > h3::before {
    content: "";
    display: inline-block;
    margin-right: 0.7rem;
    width: 2rem;
    height: 2rem;
    background-image: url(images/3.png);
    background-size: contain;
    vertical-align: text-bottom;
}

.merit-item span {
    font-weight: 700;
    color: var(--accent1-color);
}

/* ============================
* 今すぐ
* ========================= */

.compare-container {
    display: flow-root;
    margin: 3rem 0 1rem;
}

.compare-title {
    padding-top: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--main-color);
    text-align: center;
}

.compare-table {
    margin: 0.5rem 0 3rem;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border: solid 3px var(--main-color);
    font-size: 0.9rem;
    text-align: center;
}

.compare-table-row {
    border: solid 2px var(--main-color);
}

.compare-table-row th {
    padding: 0.7rem 0.5rem;
    color: var(--white-color);
    border-bottom: solid 2px var(--white-color);
    background: var(--main-color);
}

.compare-table-row:last-of-type th {
    border-bottom: none;
}

.compare-table-row:not(:last-of-type) td {
    padding: 0.5rem;
    font-weight: 700;
    border: solid 2px var(--main-color);
}

.compare-table-row:last-of-type td {
    padding: 0.2rem;
    border: solid 2px var(--main-color);
}

.compare-table-row span {
    color: var(--accent1-color);
}

.compare-rank1::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 2rem;
    background-image: url(images/rank1.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.compare-rank2::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 2rem;
    background-image: url(images/rank2.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.compare-rank3::before {
    content: "";
    display: inline-block;
    width: 100%;
    height: 2rem;
    background-image: url(images/rank3.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.compare-rank2,
.compare-rank3 {
    line-height: 2rem;
}

.compare-btn {
    display: flex;
    align-items: center;
}

.compare-link {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2rem;
    color: var(--white-color);
    background: var(--btn-color);
    border-bottom: 4px solid var(--btn-shadow-color);
    border-radius: 20px;
    transition: 0.3s ease-in-out;
    overflow: hidden;
}

.compare-link:active {
    transform: translateY(4px);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

.compare-link:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background-image: linear-gradient(130deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 55%);
    animation: shine 2.7s infinite;
}

@keyframes shine {
    33% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* ============================
* よくある質問
* ========================= */

.qa-container {
    display: flow-root;
    margin-bottom: 2rem;
}

.qa-container .qa-full {
    margin: 0 calc(50% - 50vw);
    padding: 0 calc(50vw - 50%);
    padding-top: 3rem;
    padding-bottom: 3rem;
    background: var(--main-color);
}

.qa-list {
    margin-top: 3rem;
}

.qa-item {
    margin-bottom: 1rem;
    border: solid 3px var(--white-color);
    border-radius: 10px;
}

.qa-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1rem;
    font-weight: 700;
    color: var(--white-color);
    cursor: pointer;
}

.qa-title::-webkit-details-marker {
    display: none;
}

.qa-title::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 1rem;
    border-bottom: 3px solid var(--white-color);
    border-right: 3px solid var(--white-color);
    transform: translateY(-25%) rotate(45deg);
    transition: transform 0.3s;
}

.qa-item[open] .qa-title::after {
    transform: rotate(225deg);
}

.qa-item p {
    transform: translateY(-10px);
    opacity: 0;
    padding: 1rem;
    font-weight: 700;
    color: var(--text-color);
    background: var(--white-color);
    transition: transform 0.5s, opacity 0.5s;
}

.qa-item span {
    background: linear-gradient(transparent 60%, var(--accent2-color) 60%);
}

.qa-item[open] p {
    transform: none;
    opacity: 1;
}

/* ============================
* 運営者情報
* ========================= */

.info-container {
    display: flow-root;
    margin: 3rem 0 1rem;
}

.info-table {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
    border-collapse: collapse;
    border-spacing: 0;
    border: solid 3px var(--sub2-color);
}

.info-table-row th,
td {
    padding: 0.5rem;
}

.info-table-row th {
    color: var(--white-color);
    background: var(--sub2-color);
}

.info-table-row:first-of-type > th {
    border-bottom: solid 2px var(--white-color);
}

.info-table-row td {
    font-weight: 700;
}

/* ============================
* 戻る
* ========================= */

.back-container {
    display: flow-root;
    margin-top: 1rem;
    padding-bottom: 6.5rem;
}

.back-btn {
    position: relative;
    display: flex;
    justify-content: space-around;
    gap: 5rem;
    text-align: center;
}

.back-btn::before {
    content: "";
    position: absolute;
    width: 70%;
    height: 160px;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    background-image: url(images/dotti.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.back-ranking-link,
.back-compare-link {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 8rem;
    height: 8rem;
    max-width: 400px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white-color);
    background: var(--btn-color);
    box-shadow: 0 2px 8px rgb(170, 167, 167);
    border-bottom: 4px solid var(--btn-shadow-color);
    border-radius: 50%;
    transition: 0.3s ease-in-out;
    overflow: hidden;
}

.back-ranking-link:active,
.back-compare-link:active {
    transform: translateY(4px);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

.back-ranking-link::before,
.back-compare-link:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background-image: linear-gradient(130deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 55%);
    animation: shine 2.7s infinite;
}

@keyframes shine {
    33% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* ============================
* フッター
* ========================= */

.footer {
    margin: 0 calc(50% - 50vw);
    padding: 0 calc(50vw - 50%);
    background: var(--main-color);
}

.footer-text {
    padding: 3rem 0 2rem;
    font-weight: 700;
    color: var(--white-color);
    text-align: center;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* ============================
* メディアクエリ
* ========================= */

@media (min-width: 768px) {
    html {
        font-size: 21px;
    }

    .store-text::before {
        vertical-align: -30%;
    }

    .back-btn::before {
        width: 100%;
        height: 210px;
    }

    .back-ranking-link,
    .back-compare-link {
        width: 9rem;
        height: 9rem;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 14.5px;
    }
}

/* ============================
* ポップアップ
* ========================= */

.popup {
    position: fixed;
    display: ;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}
