/* Minimal modern CSS reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
ol {
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: 'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', '游ゴシック体', YuGothic, Meiryo, sans-serif;
    font-size: 16px;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

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

ul[role='list'],
ol[role='list'] {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.inner {
    max-width: 428px;
    width: calc(100% - 32px);
    margin: 0 auto;
    box-sizing: border-box;
}

.bg-w {
    background-color: #fff;
    padding: 16px;
}

/*
全体設定
*/
html {
    scroll-behavior: smooth;
    font-weight: bold;
    letter-spacing: 0.08em;
    font-size: 16px;
}

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

:root {
    --header-offset: 80px;
}

section[id] {
    scroll-margin-top: var(--header-offset);
}

section {
    margin-top: 36px;
}

img {
    display: block;
    margin: 0 auto;
    max-width: calc(100% - 32px);
}

span:not([class]) {
    display: inline-block;
}

.gradation {
    background-image: linear-gradient(90deg, #cbffd3, #85ddae);
}

.text-c {
    text-align: center;
    margin: 0 auto;
    display: block;
}

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

.mb8 {
    margin-bottom: 8px;
}

.mb24 {
    margin-bottom: 24px;
}

.font18 {
    font-size: 20px;
}

.space {
    height: 30px;
}

/*
ヘッダー
*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hamburger {
    position: fixed;
    top: 12px;
    right: calc(50% - 214px + 16px);
    width: 56px;
    height: 56px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    z-index: 100;
}

.hamburger__bar {
    display: block;
    width: 32px;
    height: 2px;
    background: #89F084;
    transition: transform .25s ease, opacity .2s ease;
    transform-origin: center;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #005C2F url("/image/nav-bg.webp") no-repeat top center;
    background-size: contain;
    transform: translateY(-100%);
    transition: transform .3s ease;
    padding: 80px 16px 24px;
    max-width: 428px;
    margin: 0 auto;
}

.site-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    width: 60%;
    margin: 0 auto;
}

.site-nav li {
    padding: 8px 0 4px;
    border-bottom: 2px dotted #fff;
    font-size: 24px;
    letter-spacing: 0.08em;

}

.site-nav li::after {
    content: "";
    display: block;
    width: 100%;
    margin-top: 16px;
    border-bottom: 1px solid #fff;
}

.site-nav .site-logo {
    padding-top: 24px;
}

.site-nav a {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

/* open state */
[data-open="true"] .site-nav {
    transform: translateY(0);
}

[data-open="true"] .hamburger {
    background: #000;
}

/* 3本線 → ばつ（X） */
[data-open="true"] .hamburger__bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

[data-open="true"] .hamburger__bar:nth-child(2) {
    opacity: 0;
}

[data-open="true"] .hamburger__bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/*インスタアイコン*/
.insta-fixed {
    position: fixed;
    top: 84px;
    right: calc(50% - 214px + 16px);
    width: 58px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-size: 10px;
    letter-spacing: 0;
    text-align: center;
    line-height: 1.4;
}

.insta-fixed.show {
    opacity: 1;
    visibility: visible;
}

.insta-fixed img {
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
}

/*終了のお知らせ*/
.insta-fixed {
    max-width: 428px;
    width: calc(100% - 32px);
    margin: 0 auto;
    right: calc(50% - 214px);
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    visibility: visible;
    background-color: #FFF500;
    line-height: 2;
    padding: 20px 0;
    border: 4px solid #000;

}

.insta-fixed h1 {
    font-size: 18px !important;
}

.shake-up {
    animation: shake-up 3s infinite ease-in-out;
}

@keyframes shake-up {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(15px);
    }
}

@media screen and (max-width: 429px) {
    .insta-fixed {
        right: 16px;
    }
}

/*
ファーストビュー
*/
#hero {
    max-width: 428px;
    margin: 0 auto;
    position: relative;
}

#hero img {
    max-width: 100%;
}

.hero-logo {
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    max-width: calc(100% - 32px);
    width: 100%;
}

.hero-logo img {
    width: 100%;
    opacity: 0;
}

/*
応募期限セクション
*/
#intro img {
    max-width: 396px;
    width: 100%;
}

/*
参加方法セクション
*/
.pink {
    color: #DB5BBE;
}

.red {
    color: #FF0000;
}

#howto #insta-btn {
    display: block;
    margin: 24px auto;
}

.sankou {
    border: 2px solid #5EB1FD;
    padding: 14px;
}

.sankou img {
    max-width: 100%;
}

.sankou ol {
    list-style-type: none;
    margin: 10px 0 0;
}


/*
投稿ルール
*/
#rule {
    counter-reset: rule-counter;
    margin-bottom: 84px;
}

#rule .inner {
    background: #fff;
    margin-bottom: 20px;
    padding: 16px 0;
    border-radius: 10px;
}

#rule .inner {
    counter-increment: rule-counter;
    position: relative;
}

#rule .inner::before {
    content: counter(rule-counter);
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: bold;
    color: #000;
    z-index: 1;
}

#rule dl {
    border: 1px solid #3BB136;
    border-radius: 10px;
    padding: 40px 10px 16px;
    margin: 0 16px;
    background: #fff;
}

#rule dl:not(:last-of-type) {
    margin-bottom: 20px;
}

#rule dt {
    font-size: 20px;
    color: #3BB136;
    margin-bottom: 4px;
}

#rule dd {
    line-height: 1.8;
}

#rule .detail {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 6px;
}

.line-y {
    background: #FFF500;
    font-size: 18px;
}

/*
景品セクション
*/
#present .bg-w {
    padding: 28px 16px 24px;
    border-top: 4px solid #3BB136;
    border-bottom: 4px solid #3BB136;
    position: relative;
}

#present h2 {
    width: calc(100% - 36px);
    position: absolute;
    top: -46px;
    left: 50%;
    transform: translateX(-50%);
}

#present h2 img {
    max-width: 100%;
    width: 100%;
}

.present-list {
    list-style: none;
    text-align: center;
}

.present-list li {
    border-bottom: 2px solid #3BB136;
    margin: 8px 0 10px;
}

.present-list li img {
    max-width: calc(100% - 60px);
    display: block;
    margin: 16px auto;
}

.present-list p {
    font-size: 20px;
    margin-bottom: 16px;
}

/*
審査・発表セクション
*/
#judging dl {
    color: #3BB136;
    margin-bottom: 74px;
}

.triangle-box {
    position: relative;
    background: #fff;
    padding: 14px 16px;
    text-align: center;
}

.triangle-box::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -39.5px;
    /* 三角の高さ分だけ下に配置 */
    height: 40px;
    /* 三角の高さ */
    background: #fff;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

/*
応募要項・キャンペーン規約セクション
*/
#campaign-rules h3 {
    margin: 24px 0 8px;
    font-size: 16px;
}

.campaign-detail,
.vertical-scroll ul {
    list-style: none;
    padding-left: 0;
}

.campaign-detail li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.campaign-detail li::before {
    content: "◆";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.vertical-scroll li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 14px;
}

.vertical-scroll li::before {
    content: "・";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.vertical-scroll {
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: #fff;
    font-size: 14px;
}

.vertical-scroll::-webkit-scrollbar {
    width: 8px;
}

.vertical-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.vertical-scroll::-webkit-scrollbar-thumb {
    background: #3BB136;
    border-radius: 4px;
}

.vertical-scroll::-webkit-scrollbar-thumb:hover {
    background: #2a8a2a;
}

#campaign-rules a {
    border-bottom: 1px solid #DB5BBE;
}

/*
第1回受賞作品はこちらセクション
*/
#winners1 {
    max-width: 428px;
    margin: 0 auto;
    text-align: center;
}

#winners1 h2 {
    font-size: 20px;
    display: inline-block;
    color: #89F084;
    background-color: #000;
    padding: 16px 32px;
    margin-top: 24px;
    border-radius: 10px;
}

#winners1 h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

figcaption {
    margin-top: 8px;
}

#winners1 ol {
    list-style: none;
}

#winners1 li {
    margin: 24px 0 52px;
}

.award-item {
    filter: blur(12px);
    opacity: 0;
    transform: translateY(12px);
    transition:
        filter .7s cubic-bezier(0.2, 0, 0, 1),
        opacity .6s ease-out,
        transform .6s ease-out;
    will-change: filter, opacity, transform;
    contain: paint;
}

.award-item.is-visible {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
    margin: 24px 0 52px;
}

/* ユーザーが動きを減らす設定のときは効果オフ */
@media (prefers-reduced-motion: reduce) {
    .award-item {
        transition: none;
        filter: none;
        opacity: 1;
        transform: none;
    }
}

/*
よくある質問
*/
.accordion-001 {
    background-color: #f2f2f2;
    /* border-radius: 10px; */
}

.accordion-001:not([open]) {
    margin-bottom: 8px;
}

.accordion-001 summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 14px 16px;
    /* border-radius: 10px; */
    background-color: #000000;
    color: #fff;
    letter-spacing: 0;
    cursor: pointer;
}

.accordion-001 summary::-webkit-details-marker {
    display: none;
}

.accordion-001 summary::before,
.accordion-001 summary::after {
    width: 3px;
    height: .9em;
    /* border-radius: 10px; */
    background-color: #fff;
    content: '';
}

.accordion-001 summary::before {
    position: absolute;
    right: 16px;
    rotate: 90deg;
}

.accordion-001 summary::after {
    transition: rotate .3s;
}

.accordion-001[open] summary::after {
    rotate: 90deg;
}

.accordion-001 p {
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: 1em 2em 2em 2em;
    color: #000;
}

.accordion-001[open] p {
    transform: none;
    opacity: 1;
    letter-spacing: 0;
}

.accordion__content {
    height: 0;
    margin-bottom: 8px;
    overflow: hidden;
    transition: height .3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .accordion__content {
        transition: none;
    }
}

/* :root のタイポ修正（必要なら） */
:root {
    --header-offset: 80px;
}

/*
CTAセクション
*/
#cta {
    background-color: #000;
    max-width: 428px;
    margin: 24px auto 0;
    height: 100vh;
    max-height: 845px;
    clip-path: polygon(0 4%, 100% 0%, 100% 96%, 0% 100%);
}

#cta h2 {
    color: #89F084;
    padding: 62px 0 12px;
    font-size: 20px;
}

#cta a {
    max-height: 673px;
}

#cta img {
    max-width: 100%;
    width: 100%;
    opacity: 0;
}

#cta_under p {
    padding: 28px 0 16px;
}

.back-to-top {
    position: fixed;
    bottom: 20vh;
    right: calc(50% - 214px + 16px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.show {
    opacity: 0.8;
    visibility: visible;
}

#cta_under img {
    max-width: 100%;
    width: 100%;
}

/*
フッター
*/
footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    justify-content: center;
    gap: 8px 14px;
    margin: 0;
    padding: 16px;
}

footer small {
    font-size: 12px;
    margin: 4px auto 8px !important;
    letter-spacing: 0;
}

@media screen and (max-width: 429px) {
    .hamburger {
        right: 16px;
    }

    .back-to-top {
        right: 16px;
    }
}

/*
アニメーション
*/

.show-obsv-switch1 {
    animation: 0.5s forwards cubic-bezier(0.99, 0, 1, 0.99) key-sec-onpare-switch1;
}

@keyframes key-sec-onpare-switch1 {
    0% {
        opacity: 0;
        transform: scale(2) rotate(-30deg);
    }

    90% {
        opacity: 1;
        transform: scale(0.97) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.show-obsv-switch2 {
    animation: 0.5s forwards ease-out key-sec-onpare-switch2;
}

.obsv-init {
    opacity: 0;
    transform: translateY(100px);
}

@keyframes key-sec-onpare-switch2 {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}