@charset "utf-8";

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
    height: 100vh;
    height: 100dvh;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-width: 280px;
    min-height: 400px;
}

img {
    display: block;
}

.main {
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

header {
    width: 100%;
    background-color: white;
    flex-direction: row;
    justify-content: start;
    box-sizing: border-box;
    padding: 12px;
}

.content_wrapper {
    width: 100%;
    background-color: white;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

.content {
    width: 100%;
    background-color: white;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.shop_name {
    margin: 0;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    color: black;
}

.content_main {
    background: linear-gradient(to top, rgba(0,0,0,0.16) 0%, rgba(0,0,0,0) 33%);
    width: 100%;
    flex: 1 1 0;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#shop_image {
    background-color: rgb(242,242,242);
    overflow: hidden;
    margin-inline-start: auto;
    margin-inline-end: auto;
    position: relative;
}

#shop_image img {
    width: 100%;
    height: 100%;
}

#shop_image::after {
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    border: 1px solid rgba(0,0,0,0.2);
    box-sizing: border-box;
}

.qr {
    border: 1px solid rgba(0,0,0,1);
    box-sizing: border-box;
    background-color: white;
    aspect-ratio: 1/1;
}

.qr img {
    width: 100%;
    padding: 8%;
    height: auto;
    box-sizing: border-box;
}

#shop_qr {
    min-width: 120px;
}

#gift_qr {
    overflow: hidden;
    margin-inline-start: auto;
    margin-inline-end: auto;
    position: relative;
    box-sizing: border-box;
}

#qr_description {
    font-size: 0.75rem;
    color: black;
}

.content_footer {
    background-color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    padding-inline: 1rem;
    padding-block: 1rem;
    gap: 1.5rem;
}

#content_footer_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 1rem;
}


@media (min-width: 360px) and (min-height: 480px) {
    .content_footer {
        padding-inline: 1.5rem;
        padding-block: 2rem;
    }
    #content_footer_inner {
        gap: 1.5rem;
    }
    #qr_description {
        font-size: 1rem;
    }
}

#open_button {
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #FF8A00 0%, #FF7300 73.86%, #FF6B00 100%);
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);
    color: #FFFFFF;
    text-align: center;
    font-size: 1.1rem;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    display: block;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#open_button::after {
    content: "";
    width: 1.25rem;
    height: 1.25rem;
    /* 少し悩ましいが相対パスで指定する */
    background: url("../images/landing/button_arrow.svg") no-repeat;
    box-sizing: border-box;
    background-size: 100%;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

footer {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #FFC865 0%, #FFA6A6 100%);
    color: white;
    box-sizing: border-box;
    padding: 10px;
    font-size: 0.5625rem;
    line-height: 1.4;
    text-align: left;
    min-height: 60px;
}

.footer_wrap {
    flex-wrap: wrap;
}

@media (min-width: 500px) {
    .footer_wrap {
        flex-wrap: nowrap;
    }
}

.store_link {
    cursor: pointer;
}

#error_message {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    padding-bottom: 2rem;
}

#gift_explain {
    max-width: 100%;
    font-size: 0.75rem;
    color: black;
    box-sizing: border-box;
}

#gift_explain h1 {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    padding-bottom: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.2;
}

#gift_explain a {
    word-wrap:break-word;
}
