﻿@charset "utf-8";

.contest18-page,
.contest18-page * {
    box-sizing: border-box;
}

.contest18-page {
    color: #222;
    background:
        radial-gradient(circle at top right, rgba(77, 192, 178, 0.14), transparent 34%),
        radial-gradient(circle at 18% 12%, rgba(0, 152, 128, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f4faf8 100%);
    overflow: hidden;
}

.contest18-page img {
    display: block;
    width: 100%;
}

.contest18-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.contest18-hero {
    background-color: white;
}

.contest18-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(18px, 3vw, 42px);
    align-items: center;
}

.contest18-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #006934;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.contest18-kicker::before {
    content: '';
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, #4dc0b2 0%, #009680 100%);
}

.contest18-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: clamp(360px, 43vw, 560px);
    padding: clamp(8px, 1.6vw, 20px) 0;
}

.contest18-hero__title {
    margin: 0;
    color: #111;
    font-family: "Noto Serif JP", serif;
    font-size: clamp(28px, 7vw, 56px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.08em;
}

.contest18-hero__title-line {
    display: block;
}

.contest18-hero__title-line--top {
    display: inline-flex;
    align-items: baseline;
    gap: 0.08em;
}

.contest18-hero__title-number {
    color: #009680;
    font-size: 1.3em;
    line-height: 0.9;
}

.contest18-hero__title-line--bottom {
    margin-top: 0.18em;
}

.contest18-hero__sub {
    display: block;
    margin-top: 18px;
    color: #009680;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.contest18-hero__rule {
    width: 42px;
    height: 2px;
    margin-top: 28px;
    background: linear-gradient(90deg, #4dc0b2 0%, #009680 100%);
}

.contest18-hero__lead {
    max-width: 11.5em;
    margin: 24px 0 0;
    color: #333c40;
    font-family: "Noto Serif JP", serif;
    font-size: clamp(16px, 1.35vw, 18px);
    font-weight: 500;
    line-height: 2.05;
}

.contest18-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.contest18-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 104, 52, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #006934;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.contest18-hero__media {
    position: relative;
    left: -20%;
    min-height: clamp(360px, 43vw, 560px);
    max-height: 500px;
    width: 180%;
    border-radius: 0;
    overflow: hidden;
    background: #dbeee8;
    -webkit-clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.12));
}

.contest18-hero__media img {
    height: 100%;
    object-fit: cover;
}

.contest18-hero__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.contest18-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
}

.contest18-hero__badge {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 2;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #006934;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.contest18-hero__badge-en {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.contest18-hero__badge-ja {
    font-family: "Noto Serif JP", serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.contest18-intro {
    padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 56px);
}

.contest18-textarea{
    display: flex;
}

.contest18-text{
    margin: 30px auto 70px;
    text-align: center;
    font-family: serif;
    line-height: 5;
}

.contest18-text span{
    font-size: 25px;
    font-weight: 500;
}

.contest18-text span>span{
    display: none;
}

.contest18-text p{
    font-size: 17px;
    line-height: 2;
}

.contest18-icon{
    position: absolute;
    right: 0;
    width: 200px;
    height: 200px;
    margin: 5% 20% 0 0;
}

.contest18-section-head {
    margin-bottom: 20px;
}

.contest18-section-head__en {
    margin: 0 0 8px;
    color: #009680;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.contest18-section-head__jp {
    margin: 0;
    color: #1b1b1b;
    font-family: "Noto Serif JP", serif;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.2;
    letter-spacing: 0.06em;
}

.contest18-intro{
    text-align: center;
    background-color: white;
}

.contest18-intro__panel {
    display: grid;
    gap: 20px;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid rgba(0, 104, 52, 0.12);
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 250, 248, 0.96) 100%),
        url('../images/18/contest18-mark.png');
    background-position: 0 0, right 18px bottom 12px;
    background-repeat: no-repeat, no-repeat;
    background-size: 100% 100%, clamp(180px, 22vw, 260px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.04);
}

.contest18-intro__text {
    max-width: 58em;
    margin: 0;
    color: #4b585b;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 2;
}

.contest18-award-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contest18-award-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 150, 128, 0.16);
    border-radius: 999px;
    background: #fff;
    color: #006934;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.contest18-award-nav a:hover {
    background: #f4fbf8;
    opacity: 0.88;
    transform: translateY(-1px);
}

.contest18-awards {
    padding-bottom: clamp(26px, 4vw, 56px);
    background-color: white;
}

.contest18-award {
    margin: 0 0 clamp(42px, 5vw, 80px);
    padding: clamp(16px, 2vw, 22px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.04);
    animation: contest18-fade-up 0.8s ease both;
    scroll-margin-top: 120px;
}

.contest18-award--featured {
    border-color: rgba(181, 138, 43, 0.18);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.06);
}

.contest18-award__layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.34fr) minmax(0, 0.66fr);
    gap: clamp(16px, 2vw, 26px);
    align-items: stretch;
}

.contest18-award__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(12px, 2vw, 28px) clamp(6px, 1vw, 12px) clamp(12px, 2vw, 28px);
    text-align: center;
}

.contest18-award__kicker {
    margin: 0;
    color: #b58a2b;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.contest18-award__label {
    display: inline-flex;
    align-self: center;
    justify-content: center;
    min-height: 38px;
    margin: 16px 0 10px;
    padding: 8px 18px;
    border: 1px solid rgba(0, 152, 128, 0.28);
    color: #006934;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
}

.contest18-award__title {
    margin: 20px auto 0;
    color: #202426;
    font-family: "Noto Serif JP", serif;
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0.08em;
    text-align: center;
}

.contest18-award__copy {
    max-width: 24em;
    margin: 20px auto 0;
    color: #4b5659;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.8em;
    line-height: 1.9;
    text-align: left;
}

.contest18-award__meta {
    display: grid;
    width: min(100%, 340px);
    margin: 22px auto 0;
    border-top: 1px solid rgba(0, 152, 128, 0.16);
}

.contest18-award__meta div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    min-height: 42px;
    border-bottom: 1px solid rgba(0, 152, 128, 0.16);
}

.contest18-award__meta dt {
    margin: 0;
    color: #4dc0b2;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: left;
}

.contest18-award__meta dd {
    margin: 0;
    color: #576468;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.contest18-award__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 12px;
    min-width: 240px;
    min-height: 50px;
    margin-top: 28px;
    padding: 12px 24px;
    border: 1px solid rgba(0, 152, 128, 0.28);
    background: #ffffff;
    color: #2d8d86;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.contest18-award__link::after {
    content: '→';
    font-size: 15px;
}

.contest18-award__link:hover {
    background: #f4fbf8;
    opacity: 0.92;
    transform: translateY(-1px);
}

.contest18-award__gallery {
    display: grid;
    gap: 14px;
    align-content: start;
}

.contest18-award__side figure {
    margin: 0;
    overflow: hidden;
    background: #dfe8e4;
}

.contest18-award__main {
    margin: 0;
    overflow: hidden;
    background: #dfe8e4;
    aspect-ratio: 2 / 1;
}

.contest18-award__side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.contest18-award__side figure {
    aspect-ratio: 16 / 10;
}

.contest18-award__main img,
.contest18-award__side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contest18-close {
    padding: 0 0 clamp(40px, 6vw, 72px);
}

.contest18-close__panel {
    padding: clamp(26px, 4vw, 40px);
    border: 1px solid rgba(0, 104, 52, 0.12);
    border-radius: 28px;
    background: linear-gradient(90deg, rgba(77, 192, 178, 0.12) 0%, rgba(0, 104, 52, 0.06) 100%);
    text-align: center;
}

.contest18-close__text {
    max-width: 58em;
    margin: 0 auto;
    color: #4b5659;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 15px;
    line-height: 2;
}

.contest18-close__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: #006934;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.contest18-close__link::after {
    content: '↑';
    display: inline-block;
    font-size: 16px;
    transform: translateY(-1px);
}

@keyframes contest18-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contest18-award:nth-of-type(1) {
    animation-delay: 0.04s;
}

.contest18-award:nth-of-type(2) {
    animation-delay: 0.08s;
}

.contest18-award:nth-of-type(3) {
    animation-delay: 0.12s;
}

.contest18-award:nth-of-type(4) {
    animation-delay: 0.16s;
}

.contest18-award:nth-of-type(5) {
    animation-delay: 0.2s;
}

@media (max-width: 960px) {
    .contest18-shell {
        width: min(100%, calc(100% - 28px));
    }

    .contest18-hero__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contest18-hero__media {
        min-height: 0;
        aspect-ratio: 4 / 5;
        order: 2;
    }

    .contest18-hero__copy {
        min-height: 0;
        order: 1;
        padding: 4px 0 0;
    }

    .contest18-intro__panel {
        background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 250, 248, 0.96) 100%);
        background-size: 100% 100%;
    }

    .contest18-award {
        padding: 16px;
    }

    .contest18-award__layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contest18-award__info {
        padding: 6px 0 0;
    }

    .contest18-award__title {
        max-width: none;
    }

    .contest18-award__main {
        aspect-ratio: 4 / 3;
    }

    .contest18-award__side {
        grid-template-columns: 1fr 1fr;
    }

    .contest18-award__side figure {
        aspect-ratio: 1 / 1.02;
    }

    .contest18-award__copy {
        max-width: none;
    }

    .contest18-award__meta {
        width: 100%;
    }

    .contest18-hero__media {
        border-radius: 24px;
        -webkit-clip-path: none;
        clip-path: none;
        filter: none;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
    }
}

@media (max-width: 640px) {
    .contest18-kicker {
        letter-spacing: 0.24em;
    }

    .contest18-hero__title {
        font-size: clamp(34px, 10vw, 50px);
    }

    .contest18-hero__sub {
        font-size: 11px;
        letter-spacing: 0.18em;
    }

    .contest18-hero__rule {
        margin-top: 22px;
    }

    .contest18-hero__lead,
    .contest18-intro__text,
    .contest18-close__text,
    .contest18-award__copy {
        font-size: 12px;
        line-height: 1.85;
    }

    .contest18-badges {
        gap: 8px;
    }

    .contest18-badges span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .contest18-section-head__jp {
        font-size: 24px;
    }

    .contest18-award__title {
        font-size: 20px;
    }

    .contest18-textarea {
        position: relative;
        display: block;
        width: min(100%, calc(100% - 28px));
        margin: 18px auto 30px;
        padding: 28px 20px;
        overflow: hidden;
        isolation: isolate;
    }

    .contest18-text {
        position: relative;
        z-index: 1;
        margin: 0;
        text-align: center;
        color: #394143;
        font-family: "Noto Serif JP", serif;
        line-height: 1.9;
    }

    .contest18-text span {
        display: block;
        margin-bottom: 12px;
        font-size: clamp(17px, 4.6vw, 22px);
        font-weight: 500;
        line-height: 1.8;
        letter-spacing: 0.06em;
    }

    .contest18-text span>span {
        display: block;
        height: 0;
        margin: 0;
    }

    .contest18-text p {
        margin: 0;
        font-size: clamp(12px, 3.4vw, 14px);
        line-height: 1.9;
        text-align: left;
    }

    .contest18-icon {
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 0;
        width: clamp(120px, 42vw, 180px);
        height: clamp(120px, 42vw, 180px);
        margin: 0;
        opacity: 0.1;
        transform: translate(-50%, -50%);
        pointer-events: none;
    }

    .contest18-icon img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .contest18-award__info {
        display: contents;
    }

    .contest18-award__gallery {
        order: 6;
    }

    .contest18-award__label {
        display: block;
        width: fit-content;
        max-width: calc(100% - 24px);
        margin: 16px auto 10px;
        padding: 8px 14px;
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
        white-space: normal;
        justify-self: center;
    }

    .contest18-award__meta {
        width: 100%;
    }

    .contest18-award__meta div {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .contest18-award__meta dt,
    .contest18-award__meta dd {
        font-size: 12px;
    }

    .contest18-award__link {
        width: 100%;
        min-width: 0;
        max-width: 280px;
        order: 7;
        justify-self: center;
        margin-top: 0;
        font-size: 13px;
    }

    .contest18-award__side {
        grid-template-columns: 1fr;
    }

    .contest18-award__side figure {
        aspect-ratio: 16 / 10;
    }

    .contest18-hero__badge {
        left: 14px;
        bottom: 14px;
        padding: 12px 14px;
    }

    .contest18-hero__badge-ja {
        font-size: 16px;
    }

    .contest18-close__link {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contest18-page *,
    .contest18-page *::before,
    .contest18-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
