:root {
    --paper: #f7efe2;
    --paper-deep: #ead7bd;
    --ink: #2f241d;
    --brown: #7c4a2d;
    --orange: #c45a2d;
    --red: #c2413d;
    --blue: #315f8c;
    --yellow: #d8a627;
    --green: #5f7f52;
    --white: #fffaf2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Times New Roman", serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 8%, rgba(196, 90, 45, 0.18), transparent 22%),
        radial-gradient(circle at 88% 12%, rgba(49, 95, 140, 0.16), transparent 24%),
        radial-gradient(circle at 75% 85%, rgba(216, 166, 39, 0.18), transparent 26%),
        linear-gradient(135deg, #f8efe0 0%, #efe0c8 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(80, 50, 30, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(80, 50, 30, 0.04) 1px, transparent 1px);
    background-size: 22px 22px;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 18px 28px;
    background: rgba(247, 239, 226, 0.82);
    border-bottom: 1px solid rgba(124, 74, 45, 0.18);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-logo {
    color: var(--ink);
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    color: var(--brown);
    text-decoration: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 14px;
}

nav a:hover {
    color: var(--orange);
}

main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.hero {
    margin-bottom: 64px;
}

.art-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.hero-text {
    position: relative;
    padding: 56px;
    border-radius: 34px;
    background: rgba(255, 250, 242, 0.72);
    border: 1px solid rgba(124, 74, 45, 0.18);
    box-shadow: 0 24px 70px rgba(96, 63, 38, 0.18);
}

.hero-text::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 42px;
    width: 120px;
    height: 44px;
    background: rgba(255, 250, 242, 0.72);
    border: 1px solid rgba(124, 74, 45, 0.12);
    transform: rotate(-5deg);
}

.label {
    margin: 0 0 16px;
    color: var(--orange);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    line-height: 1.28;
    letter-spacing: 0.02em;
}

.hero h2 {
    max-width: 720px;
    font-size: clamp(34px, 5vw, 58px);
}

.hero p,
.section p,
.page-title p,
.card p,
.art-card p {
    line-height: 1.9;
}

.hero p {
    margin-top: 24px;
    color: #594030;
}

.button {
    display: inline-block;
    margin-top: 26px;
    padding: 15px 26px;
    border-radius: 999px;
    color: var(--white);
    background: var(--orange);
    text-decoration: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(196, 90, 45, 0.25);
}

.button:hover {
    background: #9f4322;
}

.hero-art {
    position: relative;
    min-height: 480px;
}

.canvas-card {
    position: absolute;
    inset: 24px 12px 12px 24px;
    padding: 38px;
    border: 14px solid #6b4229;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 250, 242, 0.9), rgba(240, 222, 195, 0.76));
    box-shadow:
        18px 20px 0 rgba(124, 74, 45, 0.16),
        0 28px 70px rgba(96, 63, 38, 0.22);
    transform: rotate(3deg);
    overflow: hidden;
}

.canvas-card::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    right: -54px;
    top: -36px;
    border-radius: 45% 55% 60% 40%;
    background: rgba(49, 95, 140, 0.22);
}

.canvas-card::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 190px;
    left: -40px;
    bottom: -28px;
    border-radius: 62% 38% 42% 58%;
    background: rgba(194, 65, 61, 0.18);
}

.canvas-card p {
    position: absolute;
    right: 34px;
    bottom: 28px;
    z-index: 2;
    margin: 0;
    color: rgba(47, 36, 29, 0.66);
    font-size: 22px;
    font-style: italic;
}

.paint-dot {
    position: absolute;
    z-index: 2;
    display: block;
    border-radius: 48% 52% 57% 43%;
    filter: saturate(0.95);
}

.dot-red {
    width: 96px;
    height: 82px;
    left: 52px;
    top: 58px;
    background: rgba(194, 65, 61, 0.75);
    transform: rotate(-18deg);
}

.dot-blue {
    width: 112px;
    height: 96px;
    right: 84px;
    top: 134px;
    background: rgba(49, 95, 140, 0.74);
    transform: rotate(22deg);
}

.dot-yellow {
    width: 128px;
    height: 86px;
    left: 132px;
    bottom: 118px;
    background: rgba(216, 166, 39, 0.78);
    transform: rotate(-8deg);
}

.canvas-line {
    position: absolute;
    z-index: 3;
    height: 7px;
    border-radius: 999px;
    background: rgba(47, 36, 29, 0.58);
}

.line-one {
    width: 190px;
    left: 70px;
    top: 210px;
    transform: rotate(-14deg);
}

.line-two {
    width: 250px;
    right: 40px;
    top: 278px;
    transform: rotate(10deg);
}

.line-three {
    width: 170px;
    left: 142px;
    bottom: 82px;
    transform: rotate(16deg);
}

.section {
    margin-top: 56px;
}

.intro-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    padding: 42px;
    border-top: 1px solid rgba(124, 74, 45, 0.22);
    border-bottom: 1px solid rgba(124, 74, 45, 0.22);
}

.intro-layout h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.intro-layout p {
    margin: 0;
    color: #594030;
}

.feature-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: start;
}

.feature-card {
    position: relative;
    min-height: 260px;
    padding: 30px;
    background: rgba(255, 250, 242, 0.76);
    border: 1px solid rgba(124, 74, 45, 0.16);
    border-radius: 26px;
    box-shadow: 0 16px 36px rgba(96, 63, 38, 0.13);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    width: 82px;
    height: 28px;
    background: rgba(255, 250, 242, 0.76);
    border: 1px solid rgba(124, 74, 45, 0.12);
    transform: translateX(-50%) rotate(-3deg);
}

.tilt-left {
    transform: rotate(-2deg);
}

.center-card {
    margin-top: 34px;
}

.tilt-right {
    transform: rotate(2deg);
}

.number {
    display: block;
    margin-bottom: 26px;
    color: rgba(196, 90, 45, 0.32);
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
}

.feature-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.feature-card p {
    margin: 0;
    color: #594030;
}

.page-title {
    margin-bottom: 34px;
}

.art-page-title {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
    align-items: end;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(124, 74, 45, 0.2);
}

.page-title h2 {
    font-size: clamp(32px, 4vw, 48px);
}

.page-title p {
    color: #594030;
}

.art-event-list {
    display: grid;
    gap: 28px;
}

.art-card {
    position: relative;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 22px;
    padding: 32px;
    border-radius: 30px;
    background: rgba(255, 250, 242, 0.72);
    border: 1px solid rgba(124, 74, 45, 0.16);
    box-shadow: 0 18px 42px rgba(96, 63, 38, 0.14);
    overflow: hidden;
}

.art-card:nth-child(even) {
    margin-left: 64px;
}

.art-card:nth-child(odd) {
    margin-right: 64px;
}

.art-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 160px;
    right: -70px;
    top: -58px;
    border-radius: 48% 52% 60% 40%;
    background: rgba(216, 166, 39, 0.16);
}

.art-card:nth-child(2)::before {
    background: rgba(49, 95, 140, 0.15);
}

.art-card:nth-child(3)::before {
    background: rgba(194, 65, 61, 0.14);
}

.card-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 28px;
    font-weight: 900;
}

.event-content {
    position: relative;
    z-index: 2;
}

.event-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.category,
.status {
    display: inline-block;
    padding: 7px 13px;
    border-radius: 999px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 900;
}

.category {
    color: #7c2d12;
    background: rgba(216, 166, 39, 0.24);
}

.open {
    color: #315f3a;
    background: rgba(95, 127, 82, 0.2);
}

.closed {
    color: #8b1f1f;
    background: rgba(194, 65, 61, 0.18);
}

.closed-card {
    opacity: 0.68;
}

.art-card h3 {
    margin: 0 0 12px;
    font-size: 28px;
}

.art-card p {
    color: #594030;
}

.event-meta-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.event-meta-box p {
    margin: 0;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(234, 215, 189, 0.45);
    font-size: 14px;
}

code {
    padding: 2px 7px;
    border-radius: 7px;
    background: rgba(124, 74, 45, 0.12);
}

footer {
    padding: 32px 24px;
    text-align: center;
    color: #6b4f3f;
}

@media (max-width: 860px) {
    .header-inner,
    .art-hero,
    .intro-layout,
    .art-page-title {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text {
        padding: 38px;
    }

    .hero-art {
        min-height: 420px;
    }

    .feature-wall {
        grid-template-columns: 1fr;
    }

    .tilt-left,
    .tilt-right {
        transform: none;
    }

    .center-card {
        margin-top: 0;
    }

    .art-card,
    .art-card:nth-child(even),
    .art-card:nth-child(odd) {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 640px) {
    main {
        padding: 36px 18px 56px;
    }

    .art-card {
        grid-template-columns: 1fr;
    }

    .card-number {
        width: 68px;
        height: 68px;
        font-size: 22px;
    }

    .event-top,
    .event-meta-box {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .canvas-card {
        inset: 18px 0 0 0;
    }
}

.gallery-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: center;
    margin-top: 72px;
    padding: 42px;
    border-radius: 34px;
    background: rgba(255, 250, 242, 0.55);
    border: 1px solid rgba(124, 74, 45, 0.16);
    box-shadow: 0 18px 42px rgba(96, 63, 38, 0.12);
}

.gallery-text h2 {
    font-size: clamp(30px, 4vw, 46px);
}

.gallery-text p {
    color: #594030;
    line-height: 1.9;
}

.gallery-frame {
    position: relative;
    min-height: 360px;
}

.mini-picture {
    position: absolute;
    border: 10px solid #6b4229;
    border-radius: 10px;
    background: #fffaf2;
    box-shadow: 0 18px 36px rgba(96, 63, 38, 0.2);
}

.picture-one {
    width: 190px;
    height: 240px;
    left: 20px;
    top: 40px;
    transform: rotate(-6deg);
    background:
        radial-gradient(circle at 35% 35%, rgba(194, 65, 61, 0.42), transparent 28%),
        radial-gradient(circle at 70% 62%, rgba(216, 166, 39, 0.45), transparent 30%),
        #fffaf2;
}

.picture-two {
    width: 230px;
    height: 170px;
    right: 40px;
    top: 10px;
    transform: rotate(5deg);
    background:
        linear-gradient(145deg, rgba(49, 95, 140, 0.38), transparent 48%),
        radial-gradient(circle at 72% 42%, rgba(95, 127, 82, 0.36), transparent 28%),
        #fffaf2;
}

.picture-three {
    width: 240px;
    height: 190px;
    left: 170px;
    bottom: 10px;
    transform: rotate(2deg);
    background:
        linear-gradient(20deg, rgba(196, 90, 45, 0.32), transparent 45%),
        radial-gradient(circle at 55% 58%, rgba(194, 65, 61, 0.28), transparent 32%),
        #fffaf2;
}

@media (max-width: 860px) {
    .gallery-section {
        grid-template-columns: 1fr;
    }

    .gallery-frame {
        min-height: 420px;
    }
}