/* --- Base Styles --- */
:root {
    --color-primary: #12BCD4;
    --color-deep: #13A2C3;
    --color-bg-pale: #E4F9FC;
    --color-y: #FDF98D;
    --color-w: #fff;
    --color-text: #222;
    --font-base: "M PLUS Rounded 1c", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg-pale);
    font-weight: 900;
    
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* --- Columns --- */
#left {
    position: fixed;
    display: flex;
    flex-wrap: wrap;
    width: calc(50% - 12em);
    height: 100lvh;
    justify-content: center;
    align-content: center;
}

#left .logo {
    margin: 0 auto 1rem;
    width: 60%;
}

#left span {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0.625rem 0;
    font-size: 0.875rem;
    color: var(--color-primary);
}

.app-section {
    max-width: 300px;
    background-color: var(--color-w);
    border-radius: 1rem;
    padding: 1rem;
    margin: 0 auto 40px;
}

.app-section figure {
    display: grid;
    gap: .5rem;
    letter-spacing: -.5px;
    grid-template-columns: 1fr 3fr;
}

.app-section figcaption {
    font-size: 1rem;
    align-self: center;
    text-align: left;
}

@media screen and (max-width: 1050px) {
    .app-section figcaption {
        font-size: .8rem;
    }
}

#left .app-badges {
    margin: .8em auto 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

#left .app-badges img {
    width: auto;
    height: auto;
}

#right {
    display: grid;
    position: fixed;
    top: 0;
    right: 0;
    place-items: center;
    width: calc(50% - 12em);
    height: 100lvh;
}

#center {
    z-index: 9;
    overflow: hidden;
    background-color: var(--color-deep);
}

@media screen and (max-width: 55.9375rem) {

    #left,
    #right {
        display: none;
    }
}

.visually-hidden {
    position: absolute;
    width: 0.0625rem;
    height: 0.0625rem;
    padding: 0;
    margin: -0.0625rem;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h2 {
    color: var(--color-w);
    font-size: 2.5rem;
    text-align: left;
    margin-bottom: 1.875rem;
    line-height: 1.4;
}

h2 span {
    display: block;
    font-size: 1rem;
    letter-spacing: 0.0625rem;
}

/* --- Container --- */
.container {
    max-width: 25rem;
    margin: 0 auto;
    position: relative;
    border-left: 1px solid var(--color-deep);
    border-right: 1px solid var(--color-deep);
}

@media screen and (max-width: 768px) {
    .container {
        max-width: 100%;
    }
}

/* --- Nav --- */
nav ul {
    list-style: none;
    margin: 0 0 6.25rem;
}

nav ul li {
    position: relative;
    transition: all 0.3s;
}

nav ul li a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    font-size: 1rem;
    color: var(--color-text);
}

.nav-sub {
    display: block;
    color: var(--color-primary);
    font-size: .5em;
}

nav ul li::before,
nav ul li::after {
    position: absolute;
    width: 0.625rem;
    height: 0.625rem;
    content: '';
    opacity: 0;
    transition: all 0.3s;
}

/* nav ul li::before {
    border-left:  0.1875rem var(--color-primary);
    border-top: solid 0.1875rem var(--color-primary);
    top: 0;
    left: -1.25rem;
}

nav ul li::after {
    border-right: solid 0.1875rem var(--color-primary);
    border-bottom: solid 0.1875rem var(--color-primary);
    bottom: 0;
    right: -0.9375rem;
} */

nav ul li:hover {
    transform: scale(.95);
}

nav ul li:hover::before,
nav ul li:hover::after {
    opacity: 1;
}

/* --- Background Gallery --- */
#bg {
    position: fixed;
    bottom: 1.25rem;
    left: 0;
    width: 100%;
    z-index: -9;
}

.bg-gallery {
    display: flex;
    gap: 0.625rem;
    overflow: hidden;
    padding: 0.3125rem 1.25rem;
    height: 20vh;
    margin: 0 0 0 -6.25rem;
}

.bg-gallery img {
    flex-shrink: 0;
    height: 100%;
}

/* --- MV --- */
#mv {
    width: 100%;
    text-align: center;
    padding: 2rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.mv-label {
    position: absolute;
    top: 0px;
    right: 6px;
    width: 80px;
    height: 80px;
    z-index: 9;
}

#mv .mv-main-img {
    width: 100%;
}

#mv h1 {
    width: 100%;
    position: absolute;
    top: 6rem;
    left: 50%;
    transform: translate(-50%, -50%);
}

#mv h1 img {
    width: 120px;
    padding: .4rem 0;
}

#mv h1 .mv-copy {
    text-align: center;
    font-size: 1.7rem;
    letter-spacing: -.05em;
    line-height: 1.2em;
    margin: 0 auto;
    padding: 0 2em;
    font-weight: 900;
}

/* bnr */
#bnr {
    margin: 2rem auto;
    width: 100%;
}
/* --- intro --- */
#intro {
    padding: 2.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.intro-bubble {
    background-color: var(--color-bg-pale);
    border-radius: 999px;
    padding: 0.875rem 1.75rem;
    position: relative;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    color: var(--color-text);
}

.intro-bubble:nth-child(odd) {
    margin-left: 1.5rem;
}
.intro-bubble .marker{
    display: inline-block;
    background-color: var(--color-y);
    font-weight: 900;
    border-radius: .5rem;
}

.intro-bubble:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--color-bg-pale);
}

.intro-bubble:nth-child(even) {
    margin-right: 1.5rem;
}

.intro-bubble:nth-child(even)::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid var(--color-bg-pale);
}

/* app-badges */
.app-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.app-badges img {
    width: auto;
    height: 53px;
}

/* --- Section Common --- */
section {
    padding: 0 1.25rem;
}

/* --- Buttons --- */
.btn {
    display: block;
    text-align: center;
    padding: 0.75rem;
    border-radius: 1.875rem;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(3px);
    transition: all 0.2s;
}

.btn-primary {
    border: 2px solid var(--color-primary);
    background-color: var(--color-primary);
    color: #fff;
}

.btn-download {
    border: 3px solid var(--color-deep);
    background-color: var(--color-y);
    color: var(--color-deep);
    box-shadow: 0 4px 0 var(--color-deep);
}

.btn-shop{
    background-color: var(--color-bg-pale);
    border: 3px solid #52d4e6;
        box-shadow: 0 4px 0 #52d4e6;
}

#delivery .btn-download{
    border: 3px solid #52d4e6;
        box-shadow: 0 4px 0 #52d4e6;
}

/* --- features --- */
#features {
    padding: 2rem 1.25rem 0;
}
#features h2 {
    text-align: center;
    font-size: 1.75rem;
}

#features ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    color: var(--color-w);
    font-weight: 600;
    font-size: .875rem;
    text-align: center;
}

#features ul li img {
    background-color: var(--color-w);
    border-radius: .5rem;
    aspect-ratio: 1 / 1;
}

#features ul li figcaption {
    margin-top: .5rem;
}


/* --- Point --- */
#point {
    padding: 1rem 0;
}

#point article {
    position: relative;
    margin: 90px 0 2rem;
}

#point .point-text {
    background-color: var(--color-w);
    padding: 0 0 60px;
}

#point img {
    margin: -70px auto 0;
    width: 100%;
}

#point .point-num {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: inline-block;
    font-size: 1.8rem;
    color: var(--color-primary);
    background-color: var(--color-w);
    border-radius: 100px;
    margin: 0 auto;
    padding: .15em .5em;
    line-height: 2em;
}

#point h3 {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.4;
    padding: 1.7em 0 0;
    text-align: center;
}

#point .point-desc {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.7;
    padding: 1rem 2rem;
    margin-bottom: 0.875rem;
}



/* --- Goods --- */
#goods {
    background-color: var(--color-w);
    padding-bottom: 3.75rem;
    text-align: center;
    position: relative;
    margin: 80px 0;
}

#goods::before,
#goods::after {
    content: '';
    display: block;
    width: 100%;
    height: 102px;
    background-image: url('../img/goods-deco.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 393 / 40;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

#goods::before {
    top: -56px;
}

#goods::after {
    transform: scaleY(-1) translateX(-50%);
    bottom: -56px;
}

#goods h2 {
    color: var(--color-deep);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.875rem;
    list-style-type: none;
}

.gallery-grid figure {
    width: 90%;
    position: relative;
    margin: 0 auto 1.625rem;
}

.gallery-grid figcaption {
    width: 100%;
    position: absolute;
    letter-spacing: -.1em;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1.25rem;
    font-size: 0.75rem;
    padding: .5em 0;
}

/* howto */
#howto {
    color: var(--color-w);
    padding: 2rem 0 3rem;
}

#howto h2 {
    padding: 0 1.25rem;
}

#howto ol {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 1.25rem 1rem;
    scrollbar-width: none;
}

#howto ol::-webkit-scrollbar {
    display: none;
}

/* PC表示時のスクロールバー表示 */
@media screen and (min-width: 55.9375rem) {
    #howto ol {
        scrollbar-width: auto;
    }

    #howto ol::-webkit-scrollbar {
        display: block;
        height: 8px;
    }

    #howto ol::-webkit-scrollbar-track {
        background-color: rgba(255, 255, 255, 0.1);
    }

    #howto ol::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.4);
        border-radius: 4px;
    }

    #howto ol::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.6);
    }
}

#howto ol li {
    flex: 0 0 72%;
    scroll-snap-align: start;
    text-align: center;
    padding-left: 1.25rem;
}

#howto ol li img {
    width: 100%;
    max-width: none;
}

#howto .howto-arrow {
    width: 64px;
    margin: 3rem auto 2rem;
    display: block;
}

#howto .howto-fix {
    width: 80%;
    margin: 0 auto 2rem;
    display: block;
}

#howto strong {
    margin: 0 auto;
    display: block;
    text-align: center;
    font-size: 2rem;
    font-weight: 500;
}

/* delivery */
#delivery {
    padding: 1rem 1rem 3rem;
}

#delivery h2 {
    font-size: 1.5rem;
    font-weight: 600;
    align-items: center;
    display: flex;
    justify-content: center;
    background-color: var(--color-deep);
}

#delivery h2::before,
#delivery h2::after {
    content: '';
    display: inline-block;
    width: 80px;
    height: 2px;
    background-color: var(--color-w);
}

#delivery h2::before {
    margin-right: 15px;
}

#delivery h2::after {
    margin-left: 15px;
}

#delivery ul {
    margin: 2rem auto;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

#delivery ul li {
    width: 30%;
    color: var(--color-w);
    text-align: center;
    font-weight: 600;
}

#delivery ul li h3 .small {
    display: block;
    line-height: .1rem;
    font-size: .5rem;
}

#delivery ul li p {
    color: var(--color-y);
    font-weight: 600;
}

#delivery ul li img {
    margin: 0 auto 1rem;
    border-radius: 500px;
    padding: 1rem;
    background-color: var(--color-w);
}

#delivery .btn{
    margin-bottom: 1rem;
}

/* howuse */
#howuse {
    position: relative;
    background-color: var(--color-bg-pale);
    margin: 80px 0;
    padding: 40px 0 60px;
}

#howuse h2 {
    text-align: center;
        color: var(--color-deep);
        margin: 0 0 3rem;
}

#howuse::before,
#howuse::after {
    content: '';
    display: block;
    width: 100%;
    height: 102px;
    background-image: url('../img/howuse-deco.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 393 / 40;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

#howuse::before {
    top: -56px;
}

#howuse::after {
    transform: scaleY(-1) translateX(-50%);
    bottom: -56px;
}
#howuse ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

#howuse ul li {
    margin-bottom: 1rem;
    position: relative;
}

#howuse ul li img {
    width: 80%;
    height: auto;
    display: block;
    border-radius: 0 1rem 1rem 0;
    margin-right: 0;
}


#howuse ul li:nth-of-type(2n) img {
    border-radius: 1rem 0 0 1rem;
    margin-left: auto;
}

#howuse ul li h3 {
    position: absolute;
    top: -0.5em;
    right: 0.75rem;
    writing-mode: vertical-rl;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

#howuse ul li h3 .eng {
    -webkit-text-stroke: 1px var(--color-primary);
    text-stroke: 1px var(--color-primary);
    paint-order: stroke;
    color: transparent;
    font-size: 1.5rem;
    display: inline-block;
    margin-top: 1rem;
}

#howuse ul li:nth-of-type(even) h3 {
    left: 0.75rem;
    right: auto;
    writing-mode: vertical-lr;
}

#howuse ul li .howuse-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 2s;
    padding: 0.75rem;
}

#howuse ul li:nth-of-type(2n) .howuse-tags {
    justify-content: flex-end;
}

#howuse ul li .howuse-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.25rem 0.875rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
}

#howuse ul li .howuse-tag {
    border: 2px solid var(--color-deep);
    background-color: #fff;
    color: var(--color-deep);
    font-size: 0.75rem;
}

#howuse ul li .howuse-tag::before {
    content: '';
    background-image: url(../img/i-arrow.webp);
    background-size: contain;
    background-repeat: no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* --- FAQ --- */
#faq {
    padding: 2rem 1.25rem 4.375rem;
}

.faq-list {
    background-color: var(--color-w);
    border-radius: 1rem;
    padding: 1.25rem;
}

.faq-list details {
    border-bottom: 0.0625rem solid #eee;
    margin-bottom: 0;
    background: transparent;
}

.faq-list summary {
    font-weight: 700;
    padding: 0.9375rem 1.875rem 0.9375rem 0;
    display: block;
    position: relative;
}

.faq-list summary::before {
    content: "Q.";
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0.9375rem;
    font-size: 1.25rem;
    color: var(--color-primary);
    line-height: 1;
}

.faq-list details[open] summary::after {
    content: "-";
}

.faq-answer {
    padding-bottom: 1.25rem;
    padding-left: 1.5625rem;
    font-size: 1rem;
    font-weight: 500;
}

.faq-answer p a{
    color: var(--color-deep);
}

.faq-answer p {
    position: relative;
}

.faq-answer p::before {
    content: "A.";
    color: #e45669;
    position: absolute;
    left: -1.4375rem;
    top: 0;
}

/* --- FAQ Accordion --- */
summary::-webkit-details-marker {
    display: none;
}

summary {
    list-style: none;
    cursor: pointer;
    position: relative;
}

/* --- Footer --- */
footer {
    padding: 0 0 0.625rem;
    text-align: center;
    color: var(--color-w);
}

.footer-cta-img {
    margin-bottom: .5rem;
    width: 70%;
}

.footer-app figure {
    padding: 0 1.5rem 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 3fr;
}

.footer-app figcaption {
    font-size: 1.4rem;
    align-self: center;
    text-align: left;
}
.footer-logo{
        margin: 4rem auto;
}
.footer-logo figcaption {
    font-size: 0.75rem;
    font-weight: 500;
}

.footer-logo img{
    width: 60%;
}

footer small.copy {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    margin-top: 0.75rem;
}