/* #194 #195 スクラッチキャンペーン（吉田さん納品 style.css 2026-08-28 をサイト内に組み込んだもの）
   .main が max-width 720px のため、FV・景品一覧・注意事項の帯は 100vw に広げて全幅にしている */

.scratch-lp {
    color: #383938;
}

.scratch-lp .scratch-full {
    width: var(--scratch-vw, 100vw);
    margin-left: calc(50% - var(--scratch-vw, 100vw) / 2);
}

.scratch-lp .top-area {
    width: var(--scratch-vw, 100vw);
    margin-left: calc(50% - var(--scratch-vw, 100vw) / 2);
}

.scratch-lp .top-area > img {
    width: 100%;
    margin: 0 auto;
    display: block;
}

.scratch-lp .scratch-sp {
    display: none;
}

.scratch-lp .scratch-background-1 {
    width: var(--scratch-vw, 100vw);
    margin-left: calc(50% - var(--scratch-vw, 100vw) / 2);
    background: #f6f6f6;
    padding: 20px;
    box-sizing: border-box;
}

.scratch-lp .scratch-description {
    margin: 0 auto;
    max-width: 720px;
}

.scratch-lp .scratch-description p {
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: #383938;
}

.scratch-lp .scratch-description > p > span {
    background: linear-gradient(transparent 50%, #fff36b 50%);
}

.scratch-lp .scratch-description small {
    font-size: 12px;
}

.scratch-lp .ribborn-1-caution p {
    font-weight: 400;
    font-size: 10px;
    color: #ff4148;
}

.scratch-lp .ribborn-1,
.scratch-lp .ribborn-2 {
    position: relative;
    display: block;
    height: 50px;
    width: 70%;
    line-height: 50px;
    padding: 0 1rem;
    background-color: #8DCF3F;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
}

.scratch-lp .ribborn-2 {
    background-color: #FF2539;
    margin-top: 20px;
}

.scratch-lp .ribborn-1::before,
.scratch-lp .ribborn-1::after,
.scratch-lp .ribborn-2::before,
.scratch-lp .ribborn-2::after {
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-color: #8DCF3F transparent;
    border-style: solid;
    content: '';
}

.scratch-lp .ribborn-2::before,
.scratch-lp .ribborn-2::after {
    border-color: #FF2539 transparent;
}

.scratch-lp .ribborn-1::before,
.scratch-lp .ribborn-2::before {
    left: -15px;
    border-width: 25px 0 25px 15px;
}

.scratch-lp .ribborn-1::after,
.scratch-lp .ribborn-2::after {
    right: -15px;
    border-width: 25px 15px 25px 0;
}

.scratch-lp .scratch-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    color: #383938;
}

.scratch-lp .scratch-table th,
.scratch-lp .scratch-table td {
    border: 1px solid #ddd;
    padding: 12px 16px;
    text-align: center;
    font-weight: 800;
    background: #fff;
    width: 50%;
}

.scratch-lp .scratch-table-row {
    display: none;
}

.scratch-lp .scratch-table-button {
    display: block;
    margin: 20px auto 0;
    border: none;
    background: #f6f6f6;
    cursor: pointer;
    color: #4478FF;
    text-decoration: underline;
    font-weight: 800;
    font-size: 16px;
}

/* 抽選エリア */
.scratch-lp .scratch-page {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    color: #383938;
    position: relative;
}

.scratch-lp .scratch_img2 img {
    position: absolute;
    width: 24%;
    top: -40px;
    left: 740px;
    animation: scratch-fuwafuwa 3s ease-in-out infinite;
}

.scratch-lp .scratch_img3 img {
    position: absolute;
    width: 24%;
    top: 500px;
    left: -240px;
    animation: scratch-fuwafuwa 4s ease-in-out infinite;
}

@keyframes scratch-fuwafuwa {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@media (max-width: 1199px) {
    .scratch-lp .scratch_img2,
    .scratch-lp .scratch_img3 {
        display: none;
    }
}

.scratch-lp .scratch-count {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.scratch-lp .scratch-count strong {
    color: #ff4148;
    font-weight: 600;
}

.scratch-lp .scratch-character {
    width: 100%;
    margin-top: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scratch-lp .scratch-character img {
    display: block;
    width: 270px;
    max-width: 75%;
    height: auto;
    object-fit: contain;
}

.scratch-lp .scratch-message {
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: #ff4148;
}

.scratch-lp .scratch-buttons {
    width: 100%;
    margin-top: 25px;
}

.scratch-lp .scratch-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 402px;
    height: 54px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 30px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-family: inherit;
}

.scratch-lp .scratch-button:hover {
    color: #fff;
    text-decoration: none;
}

.scratch-lp .scratch-button:active {
    transform: translateY(2px);
}

.scratch-lp .scratch-button-free {
    background: #ff4148;
}

.scratch-lp .scratch-button-normal {
    margin-top: 11px;
    background: #00c8b8;
}

.scratch-lp .scratch-button.is-off,
.scratch-lp .scratch-button:disabled {
    background: #D9D9D9;
    color: #999;
    box-shadow: none;
    cursor: default;
    transform: none;
}

.scratch-lp .scratch-stock {
    margin: 20px 0 0;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}

.scratch-lp .scratch-stock span {
    font-weight: 900;
}

/* 景品一覧 */
.scratch-lp .prize-page {
    width: var(--scratch-vw, 100vw);
    margin-left: calc(50% - var(--scratch-vw, 100vw) / 2);
    background: #ff2038;
}

.scratch-lp .prize-section {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.scratch-lp .prize-title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
}

.scratch-lp .prize-a {
    display: flex;
    align-items: center;
    min-height: 170px;
    padding: 18px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 18px;
    box-sizing: border-box;
}

.scratch-lp .prize-a-image {
    flex: 0 0 134px;
    width: 134px;
    height: 134px;
    background: #ddd;
    overflow: hidden;
}

.scratch-lp .prize-a-image img,
.scratch-lp .prize-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scratch-lp .prize-a-info {
    position: relative;
    width: 100%;
    min-height: 134px;
    padding-left: 18px;
    padding-bottom: 30px;
    box-sizing: border-box;
}

.scratch-lp .prize-a-info h3 {
    margin: -2px 0 0;
    color: #383938;
    font-size: 30px;
    line-height: 1.3;
    font-weight: 600;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.scratch-lp .prize-a-stock {
    position: absolute;
    right: 0;
    bottom: -2px;
    margin: 0;
    color: #383938;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.scratch-lp .prize-a-stock span {
    font-size: 25px;
    font-weight: 600;
}

.scratch-lp .prize-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.scratch-lp .prize-card {
    min-width: 0;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
}

.scratch-lp .prize-card-image {
    width: 134px;
    height: 134px;
    margin: 0 auto 18px;
    background: #ddd;
    overflow: hidden;
}

.scratch-lp .prize-card h3 {
    margin: 0;
    color: #383938;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
}

.scratch-lp .prize-card p {
    margin: 2px 0 10px;
    color: #383938;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.scratch-lp .prize-card > span {
    color: #383938;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
}

.scratch-lp .prize-note {
    margin: 12px 0 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    text-align: right;
}

.scratch-lp .kiriban-box {
    width: 100%;
    margin-top: 18px;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
}

.scratch-lp .kiriban-title {
    padding: 8px 10px;
    background: #82d52e;
    color: #fff;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
}

.scratch-lp .kiriban-content {
    padding: 20px;
    color: #383938;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.scratch-lp .kiriban-description {
    margin: 0;
    line-height: 1.5;
}

.scratch-lp .kiriban-total {
    margin: 12px 0 0;
    line-height: 1.3;
}

.scratch-lp .kiriban-total strong {
    margin-left: 12px;
    color: #ff3b4d;
    font-size: 26px;
    line-height: 1;
    font-weight: 600;
}

.scratch-lp .kiriban-next {
    margin: 6px 0 0;
    line-height: 1.3;
}

.scratch-lp .scratch-bottom-img {
    width: 100%;
    overflow: hidden;
}

.scratch-lp .scratch-bottom-img img {
    width: 100%;
    max-width: none;
    display: block;
}

/* 注意事項 */
.scratch-lp .caution {
    width: var(--scratch-vw, 100vw);
    margin-left: calc(50% - var(--scratch-vw, 100vw) / 2);
    padding: 20px;
    box-sizing: border-box;
    background: #f6f6f6;
    text-align: center;
    color: #383938;
}

.scratch-lp .caution-midashi {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 12px;
}

.scratch-lp .caution-text {
    max-width: 720px;
    margin: 0 auto 20px;
}

.scratch-lp .caution p {
    font-size: 12px;
    text-align: left;
}

/* 抽選中 / 結果ダイアログ */
.scratch-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 110px 0 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.8);
}

.scratch-overlay.is-open {
    display: flex;
}

.scratch-overlay .scratch-loading {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scratch-overlay .scratch-loading img {
    max-width: 50vw;
    max-height: 60vh;
    height: auto;
}

.scratch-overlay .scratch-result {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scratch-overlay .popup {
    width: 400px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 10px;
    text-align: center;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
}

.scratch-overlay .popup-image {
    width: 172px;
    height: 172px;
    margin: 24px auto;
    background: #ddd;
}

.scratch-overlay .popup-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.scratch-overlay .omedeto-img {
    position: absolute;
    width: 300px;
    top: -162px;
    left: 50%;
    transform: translate(-50%, 0);
}

.scratch-overlay .popup-title {
    margin: 0;
    color: #383938;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.scratch-overlay .popup-description {
    margin: 0 0 16px;
    color: #383938;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.scratch-overlay .popup-note {
    margin: 0 0 8px;
    color: #383938;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.scratch-overlay .popup-kiriban {
    margin: 0 0 8px;
    color: #ff3b4d;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.scratch-overlay .popup-close {
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 52px;
    margin-top: 20px;
    border: 0;
    border-radius: 28px;
    background: #8bd52f;
    color: #fff;
    font-family: inherit;
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.scratch-overlay .popup-close:hover {
    background: #7dca25;
}

.scratch-overlay .popup-close:active {
    transform: scale(0.98);
}

body.scratch-modal-open {
    overflow: hidden;
}

/* SP */
@media (max-width: 768px) {
    .scratch-lp .scratch-sp {
        display: block;
    }

    .scratch-lp .scratch-pc {
        display: none;
    }

    .scratch-lp .ribborn-1,
    .scratch-lp .ribborn-2 {
        width: 90%;
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    .scratch-lp .prize-title {
        margin-bottom: 10px;
        font-size: 30px;
    }

    .scratch-lp .prize-a {
        min-height: 130px;
        padding: 12px;
    }

    .scratch-lp .prize-a-image {
        flex: 0 0 100px;
        width: 100px;
        height: 100px;
    }

    .scratch-lp .prize-a-info {
        min-height: 100px;
        padding-left: 12px;
        padding-bottom: 24px;
    }

    .scratch-lp .prize-a-info h3 {
        font-size: 22px;
    }

    .scratch-lp .prize-a-stock {
        font-size: 15px;
    }

    .scratch-lp .prize-a-stock span {
        font-size: 19px;
    }

    .scratch-lp .prize-grid {
        gap: 10px;
    }

    .scratch-lp .prize-card {
        padding: 10px 5px;
    }

    .scratch-lp .prize-card-image {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .scratch-lp .prize-card h3 {
        font-size: 17px;
    }

    .scratch-lp .prize-card p {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .scratch-lp .prize-note {
        margin-top: 8px;
        font-size: 11px;
    }

    .scratch-lp .prize-card > span {
        font-size: 14px;
    }

    .scratch-lp .kiriban-title {
        font-size: 20px;
    }

    .scratch-lp .kiriban-content {
        padding: 20px 10px;
        font-size: 14px;
    }

    .scratch-lp .kiriban-total strong {
        font-size: 20px;
    }

    .scratch-lp .scratch-character {
        margin-top: 14px;
    }

    .scratch-lp .scratch-character img {
        width: 250px;
    }

    .scratch-lp .scratch-buttons {
        margin-top: 20px;
    }

    .scratch-lp .scratch-bottom-img img {
        width: 160%;
        max-width: none;
    }

    .scratch-overlay {
        padding: 60px 0 70px;
    }

    .scratch-overlay .popup {
        width: 280px;
    }

    .scratch-overlay .popup-image {
        width: 140px;
        height: 140px;
        margin: 20px auto;
    }

    .scratch-overlay .popup-title {
        font-size: 26px;
    }

    .scratch-overlay .popup-description {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .scratch-overlay .popup-close {
        width: 300px;
        height: 50px;
        margin-top: 16px;
        font-size: 20px;
    }

    .scratch-overlay .omedeto-img {
        width: 200px;
        top: -108px;
    }

    .scratch-overlay .scratch-loading img {
        max-width: 80vw;
    }
}

@media (max-width: 375px) {
    .scratch-lp .scratch-page {
        padding-left: 15px;
        padding-right: 15px;
    }

    .scratch-lp .scratch-character img {
        width: 220px;
    }

    .scratch-lp .scratch-button {
        height: 50px;
    }
}
