:root {
    --main: #00ff27;
    --main-dark: #41bb54;
    --main-light: #74ff89;
    --main-bg: rgba(0, 255, 39, 0.05);
    --black: #000;
    --white: #fff;
    --gray: #636363;
    --gray-light: #b6bdbf;
    --gray-bg: rgba(0, 0, 0, 0.07);
}

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

html,
body {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "游明朝", "YuMincho", "Meiryo", "メイリオ", serif;
    background-color: var(--black);
    background-image: url("../img/pattern.png");
    background-repeat: repeat;
    background-size: 90%;
    background-position: 0 0;
    color: var(--white);
    position: relative;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: transparent;
    position: relative;
    z-index: 2;
}

.lp {
    background: transparent;
    min-height: 100%;
    position: relative;
    z-index: 2;
    /* keep decorative/negative letter-spacing pieces from causing horizontal scroll */
    overflow-x: clip;
}

/* hero */
.hero {
    width: 100%;
}

.hero__img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 8px;
    margin-bottom: 24px;
}

/* contents */
.contents {
    padding: 10px 16px 0;
    display: grid;
    gap: 32px;
}

/* header-lead */
.header-lead {
    display: grid;
    gap: 16px;
    justify-items: center;
    padding: 0 16px;
}

.header-lead__box {
    background: var(--white);
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-lead__box--center {
    justify-content: center;
}

.header-lead__text {
    margin: 0;
    font-weight: 900;
    font-size: 22px;
    line-height: 1.2;
    color: var(--black);
    white-space: nowrap;
}

.header-lead__money {
    margin: 0;

    font-weight: 700;
    font-size: 23px;
    line-height: 1.2;
    color: var(--white);
    white-space: nowrap;
}

.header-lead__money-label {
    color: var(--black);
}

.header-lead__money-amount {
    color: var(--main-dark);
    font-size: 32px;
}

.header-lead__deadline {
    margin: 0;
    font-weight: 700;
    font-size: clamp(34px, 10vw, 45px);
    line-height: 1;
    color: var(--main);
    text-align: center;
}

.header-lead__deadline--tight {
    letter-spacing: -11.7px;
}

.header-lead__deadline--tight2 {
    font-size: 46px;
    letter-spacing: -11.96px;
}

.header-lead__result {
    margin: 0;
    font-weight: 700;
    font-size: clamp(16px, 5.2vw, 22px);
    line-height: 1.5;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
}

.header-lead__result--green {
    color: var(--main);
}

.header-lead__result--tight {
    letter-spacing: -5.5px;
}

.header-lead__result--tight2 {
    font-size: 21px;
    letter-spacing: -5.25px;
}

/* header-detail */
.header-detail {
    border: 0.5px solid var(--white);
    padding: 16px;
    padding-bottom: 20px;
    display: grid;
    gap: 4px;
    text-align: center;
    color: var(--white);
    font-weight: 100;
    line-height: 1.7;
}

.header-detail__text {
    margin: 0;
    font-size: 14px;
    line-height: 180%;
}

.header-detail__bold {
    font-weight: 900;
    color: var(--white);
}

.header-detail__note {
    margin: 0;
    font-size: 8px;
}

/* line-pen */
.line-pen {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.line-pen img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.line-pen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--main);
    mask-image: url("../img/line_pen.svg");
    -webkit-mask-image: url("../img/line_pen.svg");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    pointer-events: none;
}

.line-pen img {
    opacity: 0;
}

/* division */
.division {
    display: grid;
    gap: 24px;
    justify-items: center;
}

.division__h1 {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.division__h1-lead {
    background: var(--main);
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.division__h1-lead p {
    margin: 0;
    margin-left: 5px;
    margin-right: 5px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
    white-space: nowrap;
}

.division__h1-date {
    margin: 0;
    font-weight: 900;
    font-size: clamp(28px, 8.8vw, 37px);
    line-height: 1;
    color: var(--main);
    white-space: nowrap;
    letter-spacing: 1px;
}

.division__h1-date--small {
    font-size: 20px;
}

.division__h1-date--medium {
    font-size: 24px;
}

.division__h1-date--white {
    font-size: 34px;
    color: var(--white);
}

.division__h1-date--tight {
    letter-spacing: -7.48px;
}

/* division-nav */
.division-nav {
    background: var(--white);
    border: 0.5px solid var(--main-dark);
    padding: 24px 20px;
    display: grid;
    gap: 20px;
    width: 100%;
    justify-items: center;
}

.division-nav__text {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
    color: var(--black);
}

.division-nav__text--green {
    color: var(--main-dark);
}

.division-nav__list {
    display: grid;
    gap: 10px;
    padding: 0;
    justify-items: start;
    margin: 0 auto;
}

.division-nav__item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: var(--white);
    width: 100%;
}

.division-nav__item-title {
    margin: 0;
    font-weight: 900;
    font-size: 26px;
    line-height: 1.2;
    color: var(--main-dark);
    text-align: center;
    white-space: nowrap;
}

.division-nav__arrow {
    width: 31px;
    height: 31px;
    /* keep original direction (design is right-facing) */
    transform: rotate(0deg);
}

/* division-sec */
.division-sec {
    display: grid;
    width: 100%;
    border: 0.5px solid var(--main-dark);
}

.division-sec__header {
    background: var(--main-dark);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.division-sec__header p {
    margin: 0;
    font-weight: 900;
    font-size: 22px;
    line-height: 1.2;
    color: var(--white);
    text-align: center;
    white-space: nowrap;
}

.division-sec__body {
    /* border is handled by .division-sec to avoid missing edges */
    border: none;
    padding: 24px 20px;
}

.division-sec__body p {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 180%;
    text-align: center;
    color: var(--white);
}

/* prize */
.prize {
    display: grid;
    gap: 24px;
    justify-items: center;
}

.prize__h1 {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.prize__h1-lead {
    background: var(--main);
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    margin-right: 5px;
}

.prize__h1-lead p {
    margin: 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    color: var(--black);
    white-space: nowrap;
}

.prize__h1-title {
    margin: 0;
    font-weight: 900;
    font-size: clamp(30px, 8.5vw, 37px);
    line-height: 1;
    color: var(--main);
    white-space: nowrap;
}

.prize-list {
    /* keep current (mobile) size as the minimum, scale up to max 500px */
    width: min(100%, 500px);
    max-width: 500px;
    margin: 0 auto;

    display: grid;
    gap: clamp(24px, 5vw, 24px);
    justify-content: center;
}

.prize-item {
    display: flex;
    gap: clamp(12px, 3vw, 18px);
    align-items: center;
}

.prize-item__award {
    width: clamp(77px, 20vw, 110px);
    height: auto;
    flex-shrink: 0;
    object-fit: cover;
}

.prize-item__amount {
    display: flex;
    gap: 1px;
    align-items: flex-end;
    justify-content: center;
}

.prize-item__num {
    font-weight: 900;
    font-size: clamp(56px, 20vw, 110px);
    line-height: 1;
    text-align: center;
    white-space: nowrap;

    /* gradient text */
    display: inline-block;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.prize-item__num--1 {
    background-image: linear-gradient(135.754deg, rgb(223, 255, 228) 50.79%, rgb(116, 255, 137) 50.798%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}


.prize-item__num--2 {
    background-image: linear-gradient(135.463deg, rgb(223, 255, 228) 50.79%, rgb(116, 255, 137) 50.798%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.prize-item__num--3 {
    background-image: linear-gradient(132.057deg, rgb(223, 255, 228) 50.79%, rgb(116, 255, 137) 50.798%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.prize-item__num--4 {
    background-image: linear-gradient(116.937deg, rgb(223, 255, 228) 50.79%, rgb(116, 255, 137) 50.798%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.prize-item__num--gray {
    background-image: linear-gradient(111.508deg, #d3d6d6 50.79%, #b6bdbf 50.798%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.prize-item__unit {
    font-weight: 900;
    font-size: clamp(22px, 8vw, 42px);
    line-height: 1;
    color: var(--main-light);
    padding: 0 0 clamp(10px, 2vw, 16px);
}

.prize-item__unit--gray {
    color: var(--gray-light);
}

.prize__note {
    margin: 0;
    font-weight: 500;
    font-size: clamp(16px, 5.5vw, 20px);
    line-height: 1.5;
    text-align: center;
    color: var(--white);
    white-space: nowrap;
}

.prize__note--large {
    font-weight: 500;
    font-size: clamp(20px, 7vw, 28px);
    letter-spacing: -0.56px;
}

/* apply */
.apply {
    display: grid;
    gap: 24px;
    justify-items: center;
}

.apply__h1 {
    display: grid;
    justify-items: center;
}

.apply__h1-title {
    margin: 0;
    font-weight: 900;
    font-size: clamp(30px, 8.5vw, 37px);
    line-height: 1;
    color: var(--main);
    white-space: nowrap;
}

.apply-content {
    background: var(--white);
    border: 0.5px solid var(--main-dark);
    padding: 24px 20px;
    display: grid;
    gap: 20px;
    width: 100%;
}

.apply-method {
    display: grid;
    gap: 20px;
}

.apply-method--x {
    background: var(--gray-bg);
    padding: 16px;
}

.apply-method--standard {
    background: var(--main-bg);
    padding: 16px;
}

.apply-method__header {
    display: flex;
    align-items: center;
    justify-content: left;
}

.apply-method__title {
    margin: 0;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: var(--black);
    text-align: center;
    white-space: nowrap;
}

.apply-method__title--green {
    color: var(--main-dark);
}

.apply-method__icon {
    width: 24px;
    height: 24px;
    transform: rotate(0deg);
    margin-top: 1px;
}

.apply-method--x .apply-method__icon {
    filter: brightness(0);
}

.apply-method__text {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.7;
    color: var(--black);
}

.apply-method__text p {
    margin-top: 0;
    margin-bottom: 0;
}

.apply-method__text--bold {
    font-weight: 700;
    color: var(--black);
}

.apply-method__text--green {
    color: var(--main-dark);
}

.apply-method__text--green-bold {
    font-weight: 700;
    color: var(--main-dark);
}

.apply-method__text--small {
    font-size: 10px;
    color: var(--gray);
    font-weight: 500;
}

.apply-method__note {
    font-size: 10px;
    color: #414141;
    font-weight: 600;
}

.apply-method__link {
    color: var(--main-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.apply-method__text--number {
    font-weight: 700;
}


.apply-method__note {
    font-size: 10px;
    color: #414141;
    font-weight: 400;
}

.apply-btn {
    display: block;
    width: 100%;
}

.apply-btn img {
    width: 100%;
    height: auto;
}

.apply-btn:hover img {
    opacity: 0.8;
}

.apply-result {
    padding: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 64px;
}

.apply-result a {
    display: block;
    width: 100%;
}

.apply-result img {
    width: 100%;
    height: auto;
}

.apply-result a:hover img {
    opacity: 0.8;
}

/* Footer */
.footer-block {
    flex-shrink: 0;
    background-color: #fff;
    padding: 4%;
    border-bottom: 1px solid #fff;
}

.footer-block__sns-background {
    position: relative;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    z-index: 99999;
}

.footer-block__sns {
    margin: 0 auto 2%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.footer-block__max-icon {
    margin: auto;
    width: 70%;
    max-width: 80px;
}

.footer-block__icon1:hover,
.footer-block__icon2:hover {
    opacity: 0.8;
    filter: brightness(110%);
}

.footer-block__icon3:hover {
    opacity: 0.7;
    filter: brightness(120%);
}

.footer-block__webry {
    margin: auto;
    margin-top: 2%;
    margin-bottom: 2%;
    width: 53%;
    max-width: 384px;
}

.footer-block__copyright-background {
    position: relative;
    box-sizing: border-box;
    background-color: #fff;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-block__copyright-area {
    box-sizing: border-box;
    margin: auto;
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-block__shogakukan {
    padding-top: 3%;
    font: 13px verdana, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", Sans-Serif;
    color: #000;
    text-align: center;
}

.footer-block__shogakukan a {
    display: inline;
    color: #000;
    text-decoration: none;
}

.footer-block__shogakukan a:active,
.footer-block__shogakukan a:focus,
.footer-block__shogakukan a:hover {
    outline: 0;
    color: #f84a40;
    text-decoration: underline;
}

.footer-block__copyright {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 3%;
}

.footer-block__abj_img {
    width: 102px;
    height: 84px;
    filter: brightness(0) saturate(100%);
}

.footer-block__abj_text {
    font: 13px verdana, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", "MS PGothic", Sans-Serif;
    color: #000;
}

/* responsive */
@media (min-width: 600px) {
    .contents {
        padding: 10px 24px 0;
    }
}

/* fadein animation */
.fadein {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fadein.scrollin {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 390px) {
    .header-lead__text {
        font-size: 20px;
    }

    .header-lead__deadline {
        font-size: 40px;
    }

    .division__h1-date {
        font-size: 32px;
    }

    .prize__h1-title {
        font-size: 32px;
    }

    .apply__h1-title {
        font-size: 32px;
    }
}

