/*
Theme Name: Haru Template
Author: Haru
Version: 1.1
*/

:root {
    --cream: #fff3a7;
    --lemon: #ffefa6;
    --honey: #ffdda0;
    --orange: #ff9518;
    --charcoal: #444444;
    --muted: #858585;
    --pink: #ff93c3;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--charcoal);
    background: var(--cream);
    font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    overflow-x: hidden;
}

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    width: 100%;
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 58px;
    background: rgba(255, 243, 167, 0.95);
    box-shadow: 0 1px 0 rgba(70, 70, 70, 0.08);
}

.site-logo,
.footer-logo {
    font-size: clamp(1.45rem, 2vw, 2.1rem);
    font-weight: 900;
    color: #777777;
    letter-spacing: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    font-size: 0.75rem;
    font-weight: 900;
    color: #777777;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px auto;
    border-radius: 999px;
    background: #777777;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero-section {
    position: relative;
    min-height: 820px;
    padding-top: 78px;
    background: #f5d7df;
    overflow: hidden;
}

.hero-img,
.hero-fallback {
    width: 100%;
    height: 760px;
    object-fit: cover;
    object-position: center;
}

.hero-fallback {
    display: grid;
    place-items: center;
    background:
        linear-gradient(130deg, rgba(255,255,255,0.5), rgba(255,255,255,0)),
        repeating-linear-gradient(45deg, #f5cbd8 0 18px, #f8dfe8 18px 36px);
}

.hero-card {
    min-width: min(640px, 78vw);
    padding: 62px 70px;
    background: rgba(255, 255, 255, 0.72);
    color: red;
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    font-weight: 900;
}

.hero-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 210px;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

.wave-shadow {
    fill: #3c3c3c;
}

.wave-main {
    fill: var(--lemon);
}

.section-title {
    position: relative;
    z-index: 2;
    margin: 0 0 58px;
    text-align: center;
    color: var(--charcoal);
    font-size: clamp(2.15rem, 4vw, 3.7rem);
    font-weight: 900;
    line-height: 1;
}

.section-title::before {
    content: "- ";
}

.section-title::after {
    content: " -";
}

.section-title-light {
    color: var(--white);
}

.about-section {
    position: relative;
    padding: 90px 24px 140px;
    background: var(--lemon);
    overflow: hidden;
}

.about-section::after {
    content: "";
    position: absolute;
    right: -5vw;
    bottom: -65px;
    left: -5vw;
    height: 145px;
    background: var(--honey);
    border-radius: 50% 50% 0 0 / 55% 55% 0 0;
}

.about-container {
    position: relative;
    z-index: 2;
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 84px;
    align-items: center;
}

.about-visual {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    align-items: center;
}

.expression-dots {
    display: grid;
    gap: 18px;
}

.dot {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 50%;
    background: #8b8b8b;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.dot.active {
    border-color: #ff93c3;
    background: #ffffff;
    transform: scale(1.08);
}

.dot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stand-image {
    min-height: 505px;
    position: relative;
    background: #8b8b8b;
    color: red;
    font-size: 2.8rem;
    font-weight: 900;
    overflow: hidden;
}

.stand-image span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.stand-image img,
.expression-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 505px;
    object-fit: contain;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.expression-image.is-active {
    opacity: 1;
}

.about-content p {
    margin: 0 0 42px;
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 2.05;
}

.sns-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    max-width: 520px;
}

.sns-btn {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 26px;
    border: 1px solid rgba(180, 150, 80, 0.18);
    border-radius: 999px;
    background: var(--white);
    color: #f2bd55;
    font-size: 1.08rem;
    font-weight: 900;
}

.sns-btn span {
    font-size: 1.25em;
}

.flower {
    position: absolute;
    z-index: 1;
    width: 70px;
    height: 70px;
    opacity: 0.75;
    animation: float 6s ease-in-out infinite;
}

.flower img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(255, 183, 197, 0.3));
}

.flower-1 { top: 150px; left: 5%; }
.flower-2 { top: 410px; left: 8%; animation-delay: -2s; }
.flower-3 { bottom: 120px; left: 4%; animation-delay: -4s; }
.flower-4 { top: 150px; right: 6%; animation-delay: -1s; }
.flower-5 { top: 395px; right: 9%; animation-delay: -3s; }
.flower-6 { bottom: 112px; right: 5%; animation-delay: -5s; }

@keyframes float {
    50% {
        transform: translateY(-16px) rotate(8deg);
    }
}

.gallery-section {
    position: relative;
    padding: 96px 24px 118px;
    background: var(--honey);
    overflow: hidden;
}

.gallery-grid {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.gallery-item {
    aspect-ratio: 1.45 / 1;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.48);
    color: red;
    font-size: 2rem;
    font-weight: 900;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.placeholder-gallery:nth-child(5) {
    background: rgba(255, 255, 255, 0.74);
}

.is-hidden {
    display: none;
}

.more-btn-container {
    position: relative;
    z-index: 2;
    margin-top: 34px;
    text-align: center;
}

.btn-more {
    min-width: 150px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 34px;
    border: 0;
    border-radius: 999px;
    background: var(--orange);
    color: var(--white);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
}

.decor-item {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.decor-item img {
    width: 95px;
    height: auto;
    opacity: 0.86;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
    animation: floatSweet 7s ease-in-out infinite;
}

.sweet-1 { top: 120px; left: 9%; }
.sweet-2 { top: 360px; left: 8%; }
.sweet-3 { bottom: 185px; left: 10%; }
.sweet-4 { top: 120px; right: 9%; }
.sweet-5 { top: 380px; right: 8%; }
.sweet-6 { bottom: 180px; right: 10%; }

.sweet-2 img,
.sweet-5 img {
    animation-delay: -2.5s;
}

.sweet-3 img,
.sweet-4 img {
    animation-delay: -5s;
}

@keyframes floatSweet {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-12px) rotate(5deg);
    }

    66% {
        transform: translateY(5px) rotate(-5deg);
    }
}

.news-section {
    position: relative;
    padding: 96px 24px 92px;
    background-color: var(--cream);
    background-image: radial-gradient(#fff 0 7px, transparent 8px);
    background-size: 48px 48px;
}

.news-list {
    max-width: 880px;
    margin: 0 auto;
}

.news-item {
    padding: 24px 0 26px;
    border-bottom: 2px solid rgba(88, 88, 88, 0.28);
}

.news-item time {
    display: block;
    margin-bottom: 8px;
    font-size: 1.02rem;
    font-weight: 900;
}

.news-item a {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 900;
}

.news-item p {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.8;
}

.news-more {
    max-width: 880px;
    margin-right: auto;
    margin-left: auto;
    text-align: right;
}

.news-more .btn-more {
    min-width: 86px;
    min-height: 42px;
}

.schedule-section {
    position: relative;
    min-height: 780px;
    display: grid;
    place-items: center;
    padding: 86px 24px 150px;
    background: #6b716a;
    overflow: hidden;
}

.schedule-media,
.schedule-media::after {
    position: absolute;
    inset: 0;
}

.schedule-media::after {
    content: "";
    background: rgba(0, 0, 0, 0.52);
}

.schedule-media img,
.schedule-media video,
.schedule-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.schedule-inner {
    position: relative;
    z-index: 2;
    width: min(100%, 780px);
}

.schedule-card {
    background: #fff;
    border: 10px solid #fff;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.2);
}

.schedule-card img {
    width: 100%;
}

.schedule-placeholder {
    min-height: 360px;
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(45deg, #ffd983 0 18px, #fff2c4 18px 36px);
    color: #b7832c;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
}

.footer-section {
    position: relative;
    margin-top: -1px;
    padding: 74px 24px 58px;
    background: var(--honey);
}

.footer-arc {
    position: absolute;
    top: -104px;
    left: 50%;
    width: min(720px, 100vw);
    height: 190px;
    transform: translateX(-50%);
    border-radius: 50% 50% 0 0 / 70% 70% 0 0;
    background: var(--honey);
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    justify-items: center;
    gap: 28px;
}

.footer-logo {
    font-size: clamp(2.5rem, 5vw, 4.1rem);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 24px;
}

.footer-nav a,
.copyright {
    color: #777777;
    font-size: 0.72rem;
    font-weight: 900;
}

.copyright {
    margin: 18px 0 0;
    color: var(--charcoal);
}

.footer-chibi {
    position: absolute;
    right: -12px;
    bottom: -8px;
    width: 112px;
    height: 112px;
    object-fit: contain;
}

.archive-page,
.single-page,
.basic-page {
    min-height: 70vh;
    padding: 140px 24px 90px;
    background: var(--cream);
}

.content-container {
    width: min(100%, 960px);
    margin: 0 auto;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.post-card {
    padding: 22px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 8px;
}

.post-card img {
    width: 100%;
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
    margin-bottom: 16px;
    border-radius: 4px;
}

.post-card time,
.single-header time {
    display: block;
    margin-bottom: 10px;
    color: #8b7c5f;
    font-size: 0.9rem;
    font-weight: 900;
}

.post-card h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.post-card p {
    margin: 0;
    line-height: 1.75;
}

.entry-content {
    padding: clamp(24px, 5vw, 54px);
    background: rgba(255, 255, 255, 0.74);
    border-radius: 8px;
    line-height: 1.95;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.single-header {
    margin-bottom: 34px;
    text-align: center;
}

.single-thumbnail {
    margin: 0 auto 34px;
}

.single-thumbnail img {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: 8px;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
}

.post-navigation a,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--charcoal);
    font-weight: 900;
}

.navigation.pagination {
    margin-top: 36px;
    text-align: center;
}

.archive-description {
    max-width: 760px;
    margin: -28px auto 42px;
    text-align: center;
    line-height: 1.8;
}

.not-found-page {
    display: grid;
    place-items: center;
    text-align: center;
}

.error-code {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 900;
    line-height: 0.85;
}

@media (max-width: 980px) {
    .site-header {
        min-height: 64px;
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 60;
    }

    .site-nav {
        position: fixed;
        inset: 64px 0 auto;
        padding: 28px 22px;
        background: rgba(255, 243, 167, 0.98);
        transform: translateY(-120%);
        transition: transform 0.24s ease;
        box-shadow: 0 14px 24px rgba(0, 0, 0, 0.08);
    }

    .menu-open .site-nav {
        transform: translateY(0);
    }

    .nav-menu {
        display: grid;
        justify-content: stretch;
        gap: 18px;
        text-align: center;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .hero-section {
        min-height: 620px;
        padding-top: 64px;
    }

    .hero-img,
    .hero-fallback {
        height: 600px;
    }

    .hero-card {
        padding: 38px 32px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 42px;
        max-width: 560px;
    }

    .about-visual {
        grid-template-columns: 48px 1fr;
    }

    .stand-image,
    .stand-image img {
        min-height: 430px;
    }

    .sns-grid {
        max-width: none;
    }

    .decor-item,
    .flower {
        transform: scale(0.72);
    }
}

@media (max-width: 640px) {
    .section-title {
        margin-bottom: 38px;
    }

    .hero-section {
        min-height: 470px;
    }

    .hero-img,
    .hero-fallback {
        height: 455px;
    }

    .hero-wave {
        height: 135px;
    }

    .about-section,
    .gallery-section,
    .news-section {
        padding-right: 18px;
        padding-left: 18px;
    }

    .about-visual {
        grid-template-columns: 42px 1fr;
        gap: 14px;
    }

    .dot {
        width: 36px;
        height: 36px;
    }

    .stand-image,
    .stand-image img {
        min-height: 360px;
    }

    .sns-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        max-width: 390px;
    }

    .news-more {
        text-align: center;
    }

    .schedule-section {
        min-height: 560px;
        padding-top: 70px;
    }

    .footer-chibi {
        position: static;
        margin-top: 4px;
    }
}
