@charset "UTF-8";

*,
*::before,
*::after {
    box-sizing: border-box;
}

#ar-wrapper {
    height: 100%;
}

#step-indicator {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 22px;
    font-weight: bold;
    z-index: 10;
    display: none;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.7);
    text-align: center;
    white-space: nowrap;
}

#status-div {
    position: absolute;
    bottom: 140px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    text-align: center;
    z-index: 10;
    display: none;
}

.a-enter-vr-button {
    display: none !important;
}

#guide-image {
    position: absolute;
    top: 49%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70%;
    height: auto;
    z-index: 25;
    display: none;
}

#guide-image-step2 {
    position: absolute;
    top: 51%;
    left: 52%;
    transform: translate(-50%, -50%);
    max-width: 65%;
    height: auto;
    z-index: 25;
    display: none;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #c9e3ef;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: bold;
    font-size: 24px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/bg_re.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 30;
    display: none;
    justify-content: center;
    align-items: center;
    color: black;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

.modal-overlay.is-visible {
    display: flex;
}

.modal-content {
    padding: 30px;
    background-color: transparent;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: space-between;
    padding-top: 27vh;
    padding-bottom: 7vh;
    box-sizing: border-box;
}

.modal-content:has(.campaign-keyword-card:not([style*="display: none"])) {
    padding: 30px 15px;
    padding-top: 11vh;
    padding-bottom: 18vh;
}

.top-content,
.bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.star-icon {
    width: 28px;
    height: auto;
    margin-bottom: 10px;
}

.thanks-text-img {
    width: 85%;
    height: auto;
}

.modal-title {
    margin-bottom: 50px;
}

.modal-title img {
    max-width: 100%;
    height: auto;
    margin-left: 1rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-button {
    margin-top: 0;
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
    text-decoration: none;
}

.modal-button img {
    display: block;
    max-width: 100%;
    height: auto;
}

#start-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    background-color: white;
    z-index: 35;
    display: none;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-sizing: border-box;
}

#start-modal h2 {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 18px;
}

#start-modal-content {
    width: 100%;
    text-align: center;
    position: relative;
}

#start-modal-content img {
    max-width: 80%;
    height: auto;
    margin-top: 20px;
}

#start-modal-content p {
    margin: 5px 0px;
}

#close-start-modal-button {
    position: absolute;
    top: -15px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sound-toggle-button {
    position: absolute;
    bottom: 5%;
    right: 10%;
    z-index: 40;
    cursor: pointer;
    background-color: transparent;
    border: none;
    object-fit: contain;
}

#back-to-top-button {
    position: absolute;
    z-index: 40;
    cursor: pointer;
    object-fit: contain;
    top: 5%;
    left: 3%;
}

#temporary-message-div {
    position: absolute;
    bottom: 180px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    text-align: center;
    z-index: 11;
    display: none;
    border-radius: 5px;
}

#capture-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: 40;
    cursor: pointer;
    padding: 0;
    background-color: transparent;
    border: none;
    object-fit: contain;
}

#preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 50;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
}

#preview-modal-content {
    background-color: white;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 75%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 2.5px solid #8FC31F;
}

#preview-image {
    max-width: 100%;
    max-height: 60vh;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    object-fit: contain;
}

#preview-modal-content p {
    color: #333;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.preview-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%;
}

.preview-buttons .button {
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

#close-preview-button {
    position: relative;
    margin-top: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 55;
    padding: 0;
    width: 60px;
    height: auto;
}

#thumbnail-container {
    position: absolute;
    bottom: 35px;
    left: 20px;
    width: 80px;
    height: 80px;
    z-index: 45;
    display: none;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid white;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

#thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.campaign-keyword-card {
    width: 304px;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.1);
    margin: 25px auto 16px;
    align-self: center;
    flex-shrink: 0;
    text-align: left;
}

.campaign-keyword-card__label {
    display: inline-block;
    background-color: #3e7f00;
    color: #ffffff;
    font-family: 'DIN OT', 'Noto Sans JP', Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 6px 16px 16px 0;
    text-align: left;
}

.campaign-keyword-card__body {
    padding: 24px 20px 16px;
    text-align: center;
}

.campaign-keyword-card__keyword {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: #3e7f00;
    margin: 0 0 12px;
    line-height: 1.7;
}

.campaign-keyword-card__line {
    display: block;
    width: 100%;
    max-width: 271px;
    height: 1px;
    margin: 0 auto 12px;
}

.campaign-keyword-card__info {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: #2a2a2a;
    line-height: 1.441;
    text-align: left;
    padding: 0 0 0 0.5px;
}

.campaign-keyword-card__info p {
    margin: 0;
}

@media screen and (max-height: 750px) {
  .modal-content:has(.campaign-keyword-card:not([style*="display: none"])) {
    padding-top: 6vh;
  }
  .modal-content:has(.campaign-keyword-card:not([style*="display: none"])) .modal-title {
    margin-bottom: 10px;
  }
  .modal-content:has(.campaign-keyword-card:not([style*="display: none"])) .modal-buttons {
    gap: 3px;
  }
}

#back-to-top-button {
    top: 48px;
    left: 14px;
}

.is-short-screen #back-to-top-button {
    top: 12px;
}

#capture-button {
    bottom: 36px;
}

#sound-toggle-button {
    right: calc(50% - 196.5px + 44px);
    bottom: 53px;
}

#ar-copyright {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 66px;
    height: 14px;
    transform: translateX(-50%);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
}

#step1-guide-image {
    position: absolute;
    left: 50%;
    bottom: 129px;
    width: 393px;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
    z-index: 10;
}

:root {
    --screen-h: 100vh;
    --scan-size: min(80vw, calc(var(--screen-h) - 324px));
    --scan-shift: max(0px, calc(var(--scan-size) / 2 + 211px - var(--screen-h) / 2));
}

@supports (height: 100svh) {
    :root {
        --screen-h: 100svh;
    }
}

@media (max-aspect-ratio: 1/1) {
    body .mindar-ui-scanning .scanning {
        width: var(--scan-size);
        height: var(--scan-size);
        transform: translateY(calc(-1 * var(--scan-shift)));
    }
}

#guide-image,
#guide-image-step2 {
    top: calc(50% - var(--scan-shift));
    left: 50%;
    max-width: none;
}

#guide-image {
    width: calc(var(--scan-size) * 236 / 304);
}

#guide-image-step2 {
    width: calc(var(--scan-size) * 243 / 304);
}

#announce-image {
    position: absolute;
    top: max(98px, calc(50% - var(--scan-shift) - var(--scan-size) / 2 - 60px));
    left: 50%;
    width: 80vw;
    transform: translateX(-50%);
    z-index: 20;
}

#box-guide-text {
    position: absolute;
    top: max(98px, calc(50% - 228px - 21 / 393 * 100vw));
    left: 50%;
    width: calc(304 / 393 * 100vw);
    transform: translateX(-50%);
    transition: opacity 0.4s ease;
    z-index: 15;
    pointer-events: none;
}

#preview-modal-content {
    width: 304px;
    max-width: calc(100% - 32px);
    padding: 25px 0 8px;
    border: 1px solid #8fc31f;
    border-radius: 6px;
    box-shadow: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

#preview-image {
    width: auto;
    height: auto;
    max-width: 192px;
    max-height: min(420px, calc(100vh - 182px));
    margin: 0;
    border: none;
}

.preview-buttons {
    margin-top: 16px;
}

.preview-buttons .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 236px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    background-color: #b29c52;
    box-shadow: 0 1px 2px rgba(12, 12, 13, 0.1), 0 1px 2px rgba(12, 12, 13, 0.05);
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

#preview-text-ios {
    max-width: 250px;
    margin-top: 16px;
}

#close-preview-button {
    width: auto;
    margin-top: 12px;
    font-family: inherit;
    font-weight: 700;
    font-size: 20px;
    line-height: normal;
    color: #7e9ca6;
    -webkit-tap-highlight-color: transparent;
}

.collab-end {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    justify-content: center;
    overflow-y: auto;
    isolation: isolate;
    background-color: #fff;
    background-image:
        linear-gradient(180deg, rgba(230, 225, 250, 0) 40%, rgba(62, 75, 143, 0.7) 90%),
        linear-gradient(158.68deg, rgba(252, 134, 78, 0.35) 0%, rgba(245, 227, 110, 0.35) 22.309%, rgba(0, 189, 124, 0.35) 44.618%, rgba(32, 125, 142, 0.35) 66.927%, rgba(70, 30, 128, 0.35) 89.235%);
    background-size: 100% 2781px;
    background-repeat: no-repeat;
}

.collab-end::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url(../img/bg_washi.webp);
    background-size: 2048px 2048px;
    background-position: top left;
    opacity: 0.2;
    mix-blend-mode: luminosity;
    pointer-events: none;
}

.collab-end__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 393px;
    min-height: 100%;
    padding: 152px 0 51px;
}

.collab-end__heading {
    position: relative;
    width: 296.27px;
    height: 48.45px;
    margin: 0;
}

.collab-end__heading-text {
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Shippori Mincho', serif;
    font-weight: 800;
    font-size: 21.051px;
    line-height: 1;
    letter-spacing: 0.7017px;
    color: #1c2862;
    white-space: nowrap;
}

.collab-end__cloud {
    position: absolute;
    width: 68.62px;
    height: 32.5px;
}

.collab-end__cloud--left {
    top: 11.05px;
    left: 2.01px;
    transform: rotate(8.49deg);
}

.collab-end__cloud--right {
    top: 6.68px;
    left: 227.64px;
    transform: scaleX(-1);
}

.collab-end__title {
    display: block;
    width: 304px;
    height: auto;
    margin-top: 69.55px;
}

.collab-end__buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: auto;
    padding-top: 40px;
}

.collab-end__button {
    position: relative;
    display: block;
    width: 304px;
    height: 50px;
    padding: 0;
    border: 1px solid rgba(250, 244, 220, 0.5);
    border-radius: 46px;
    box-shadow: 0 1px 2px rgba(12, 12, 13, 0.1), 0 1px 2px rgba(12, 12, 13, 0.05);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: normal;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.collab-end__button--retry {
    background-color: #b29c52;
}

.collab-end__button--top {
    background-color: #7e9ca6;
}

.collab-end__button-label {
    position: absolute;
    top: 50%;
    left: 137px;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.collab-end__button-icon {
    position: absolute;
}

.collab-end__button--retry .collab-end__button-icon {
    top: 7px;
    left: 255px;
    width: 34px;
    height: 34px;
}

.collab-end__button--top .collab-end__button-icon {
    top: 8px;
    left: 259px;
    width: 32px;
    height: 32px;
}
