@charset "UTF-8";

/* Global Settings */
:root {
    --color-green: #1C663C;
    --color-yellow: #E1E23C;
    --color-pink: #DA72A1;
    --font-base: 'Inter', 'Noto Sans JP', sans-serif;
    --font-rounded: 'M PLUS Rounded 1c', sans-serif;
    --font-mincho: 'Shippori Mincho', serif;
}

.text-rounded {
    font-family: var(--font-rounded);
}

.font-mincho {
    font-family: var(--font-mincho);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-base);
    background-color: #f0f0f0;
    /* 仮の背景色 */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Base Layout Classes */
.section {
    width: 100%;
    padding-block: 60px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .section {
        padding-block: 80px;
    }
}

.l-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .l-container {
        padding: 0 40px;
    }
}

@media (min-width: 1024px) {
    .l-container {
        padding: 0 100px;
    }
}

.max-w-normal {
    max-width: 1080px;
}

.max-w-wide {
    max-width: 1280px;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding-bottom: 40px;
    overflow: hidden;
    background-color: var(--color-yellow);
    padding-top: 40px;
}



/* Main Visual Area */
.hero-visual {
    position: relative;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.visual-board {
    position: relative;
    width: 100%;
    height: 540px;
    background-color: #ffffff;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

/* Decorative Images */
.visual-board .deco-img {
    position: absolute;
    max-width: none;
}

.img-3 {
    width: 166.12px;
    height: 195.05px;
    left: -24.15px;
    top: 210.83px;
}

.img-4 {
    width: 161.01px;
    height: 172.23px;
    left: 124.81px;
    bottom: -7.24px;
}

.img-5 {
    width: 186.92px;
    height: 317.03px;
    right: 82.62px;
    top: -9.59px;
}

.img-6 {
    width: 198.67px;
    height: 167.82px;
    right: -11.77px;
    bottom: -15.47px;
}

.img-15 {
    width: 166.48px;
    height: 214.42px;
    left: 139.02px;
    top: -9.59px;
}

.img-1 {
    width: 268.64px;
    height: 599.52px;
    left: 50%;
    top: -52.28px;
    transform: translateX(-50%);
}



.news-badge-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: stretch;
}

.news-badge {
    background-color: #ffffff;
    width: 138px;
    height: 100%;
    min-height: 48px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.news-badge p {
    font-family: var(--font-rounded);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: var(--color-green);
    text-align: left;
    white-space: normal;
    margin: 0;
}

.news-text-wrapper {
    flex: 1 0 0;
    display: flex;
    height: 100%;
    flex-direction: column;
    min-width: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid var(--color-green);
    border-bottom: 1px solid var(--color-green);
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 768px) {
    .news-badge-wrapper {
        justify-content: center;
    }

    .news-text-wrapper {
        flex: initial;
        width: 100%;
        text-align: center;
        /* Center text on mobile for better balance with centered badge */
    }
}



/* Responsive Visual Board - Intermediate Level */
@media (max-width: 1280px) {
    .visual-board {
        height: 480px;
    }

    .visual-board .img-1 {
        width: 220px;
        height: auto;
        top: -30px;
    }

    .img-3 {
        width: 140px;
        height: auto;
        left: 0;
        top: 180px;
    }

    .img-4 {
        width: 130px;
        height: auto;
        left: 80px;
        bottom: 0;
    }

    .img-5 {
        width: 150px;
        height: auto;
        right: 50px;
        top: 0;
    }

    .img-6 {
        width: 160px;
        height: auto;
        right: -10px;
        bottom: 0;
    }

    .img-15 {
        width: 140px;
        height: auto;
        left: 100px;
        top: 0;
    }
}

/* Responsive Visual Board - Mobile */
@media (max-width: 768px) {
    .visual-board {
        height: 300px;
        overflow: hidden;
        /* はみ出し防止 */
    }

    .visual-board .deco-img {
        transform: none;
    }

    .visual-board .img-1 {
        height: auto;
        width: 130px;
        /* タイトルは少し小さく */
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .img-3 {
        width: 70px;
        height: auto;
        left: 10px;
        top: 40px;
    }

    .img-4 {
        width: 70px;
        height: auto;
        left: 20px;
        top: auto;
        bottom: 20px;
    }

    .img-5 {
        width: 80px;
        height: auto;
        right: 10px;
        top: 30px;
    }

    .img-6 {
        width: 80px;
        height: auto;
        right: 10px;
        bottom: 30px;
    }

    .img-15 {
        display: none;
    }
}

.news-line {
    position: relative;
    width: 100%;
    height: 0;
}

.news-line img {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    max-width: none;
    display: block;
}

.news-description {
    font-family: var(--font-rounded);
    font-weight: 700;
    line-height: 1.6;
    font-size: 16px;
    color: var(--color-green);
    width: 100%;
    margin: 0;
    white-space: normal;
}

/* =========================================
   Vote Section
   ========================================= */
.vote-section {
    background-color: var(--color-yellow);
    padding-bottom: 80px;
    position: relative;
    margin-top: -1px;
    /* 隙間防止 */
    width: 100%;
}

.vote-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

/* Deco Images Filter (オレンジ化) */
.moya-orange {
    position: absolute;
    /* 調整 */
    z-index: 10;
    /* Approximate orange filter */
}

/* Sidebar Navigation */
.fixed-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px;
    z-index: 9999;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

@media (min-width: 768px) {
    .fixed-sidebar {
        bottom: 20px;
        right: 20px;
        left: auto;
        width: auto;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        flex-direction: column;
        gap: 15px;
    }
}

.sidebar-moya {
    position: relative;
    width: 80px;
    height: 60px;
    display: none;
    /* Hide on mobile to save space */
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .sidebar-moya {
        display: flex;
    }
}

.sidebar-moya img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-moya-text {
    position: absolute;
    color: white;
    font-weight: 900;
    font-size: 16px;
    z-index: 20;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
}


.sidebar-btn {
    background-color: #1C663C;
    color: white;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    padding: 8px 5px;
    border-radius: 8px;
    width: 100%;
    max-width: 160px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s, transform 0.3s;
    text-decoration: none;
    display: flex;
    /* Flex to center text */
    justify-content: center;
    align-items: center;
    height: 100%;
}

@media (min-width: 768px) {
    .sidebar-btn {
        width: 180px;
        max-width: none;
        font-size: 14px;
        padding: 10px 15px;
    }
}

.sidebar-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.pos-tl {
    top: -30px;
    left: -30px;
    width: 80px;
    transform: rotate(-20deg);
}

.pos-tr {
    top: 30px;
    right: -40px;
    width: 70px;
    transform: rotate(10deg);
}

.pos-tr-small {
    top: -20px;
    right: -20px;
    width: 60px;
}

.pos-bl {
    bottom: -30px;
    left: -40px;
    width: 80px;
    transform: rotate(15deg);
}


.vote-intro-text {
    font-weight: 700;
    line-height: 1.8;
    font-size: 16px;
}

.vote-link {
    color: var(--color-green);
    font-weight: 700;
    text-decoration: underline;
    display: inline-block;
    font-size: 14px;
}

.vote-link:hover {
    opacity: 0.8;
}

.vote-title {
    font-family: var(--font-rounded);
}

.text-green {
    color: var(--color-green);
}


.vote-subtitle {
    font-family: var(--font-rounded);
    font-size: 24px;
    font-weight: 700;
    color: #333;
    border-bottom: 3px solid #333;
    display: inline-block;
    padding-bottom: 2px;

}

.vote-period .year {
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
    color: var(--color-green);
}

.vote-period .dates {
    font-family: var(--font-rounded);
    color: var(--color-green);
    font-weight: 700;
    font-size: 48px;
    /* PCサイズ */
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.vote-period .date {
    display: inline-flex;
    align-items: baseline;
}

.vote-period .weekday,
.vote-period .holiday {
    font-family: var(--font-base);
    color: #fff;
    font-size: 18px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    position: relative;
    top: -5px;
}

.vote-period .weekday {
    background-color: var(--color-green);
}

.vote-period .holiday {
    background-color: var(--color-pink);
}

.vote-period .tilde {
    font-size: 32px;
    color: #333;
    margin: 0 10px;
}

/* Method Card Styles */
.method-text {
    line-height: 1.8;
    font-weight: 500;
}

.method-text .note {
    font-size: 13px;
    display: block;
    margin-top: 5px;
}

.method-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight {
    background-color: #FFF0D6;
    /* 薄いオレンジ */
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 3px;
}

.highlight-green {
    background-color: #E0F5E6;
    /* 薄い緑 */
}

.icon-like,
.icon-comment {
    font-size: 14px;
    font-weight: 700;
}



.icon-comment {
    background-color: #1C663C;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Vote Actions */
.vote-actions {
    text-align: center;
    margin-top: 60px;
}

.action-title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.action-title {
    position: relative;
    z-index: 1;
    font-family: var(--font-rounded);
}

.action-line {
    width: 100%;
    height: 4px;
    /* 装飾画像の代わりの線 */
    background: transparent;
    border-bottom: 4px solid var(--color-green);
    border-radius: 50%;
    /* 曲線風 */
    margin-top: 5px;
    display: none;
    /* もやで十分かも */
}

.action-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-vote {
    background-color: #185E37;
    /* 濃い緑 */
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-rounded);
    min-width: 280px;
    text-align: center;
    box-shadow: 0 4px 0 #0d3b21;
    /* 立体感 */
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-vote:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #0d3b21;
}

/* Responsive */
@media (max-width: 768px) {
    .vote-card {
        padding: 40px 20px;
    }

    .vote-title {
        font-size: 28px;
    }

    .vote-period .dates {
        font-size: 28px;
    }

    .vote-period .tilde {
        font-size: 24px;
        margin: 0 5px;
    }


    .btn-vote {
        width: 100%;
        min-width: auto;
    }
}

/* =========================================
   Animations
   ========================================= */

/* Fade In (Hero) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-init {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeInCenter {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.fade-in-center {
    opacity: 0;
    animation: fadeInCenter 0.8s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-900 {
    animation-delay: 0.9s;
}

.delay-1000 {
    animation-delay: 1.0s;
}

/* Scroll Fade Up */
.scroll-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Transitions */
#comment-modal,
#vote-modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#comment-modal.hidden,
#vote-modal.hidden {
    display: block !important;
    /* Override 'hidden' class display:none but keep it logically hidden via opacity */
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Modal Content Animation */
#comment-modal>div>div>div,
#vote-modal>div>div>div {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
}

#comment-modal.hidden>div>div>div,
#vote-modal.hidden>div>div>div {
    transform: scale(0.95);
}