:root {
    --color-header: #9b6d25;
    --color-white: #fff;
    --header-height: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: #231815;
    font-size: 16px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

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

/* Header */
.site-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    height: var(--header-height);
    color: var(--color-white);
    background: rgb(0 0 0 / 50%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 48px, 1280px);
    height: 100%;
    margin-inline: auto;
}

.site-header__logo {
    width: min(468px, 34vw);
    margin: 0;
}

.site-header__logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__logo img {
    display: block;
}

.site-header__symbol {
    flex: 0 0 auto;
    width: 42px;
}

.site-header__name {
    width: min(375px, calc(100% - 54px));
}

.global-navigation,
.global-navigation__links,
.social-links {
    display: flex;
    align-items: center;
}

.global-navigation {
    gap: clamp(24px, 3vw, 52px);
}

.global-navigation__links {
    gap: clamp(20px, 2.2vw, 42px);
}

.global-navigation__links a {
    position: relative;
    padding-block: 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .08em;
}

.global-navigation__links a::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 1px;
    content: "";
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}

.global-navigation__links a:hover::after,
.global-navigation__links a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.social-links {
    gap: 15px;
}

.social-links a,
.social-links img {
    display: block;
    width: 25px;
    height: 25px;
}

.menu-button {
    display: none;
}

/* Hero */
.hero {
    position: relative;
    z-index: 2;
    overflow: visible;
    background-color: #efc369;
    background-image: url("../images/hero_bg.jpg");
    background-repeat: repeat;
}

.hero::after {
    position: absolute;
    z-index: 0;
    right: -5%;
    bottom: -48px;
    left: -5%;
    height: 96px;
    content: "";
    pointer-events: none;
    background-color: #efc369;
    background-image: url("../images/hero_bg.jpg");
    background-repeat: repeat;
    border-radius: 50%;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, 462px) minmax(520px, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(38px, 5vw, 90px);
    align-items: center;
    width: min(100% - 80px, 1280px);
    min-height: auto;
    margin-inline: auto;
    padding-block: clamp(48px, 6vh, 78px);
}

.hero__title {
    z-index: 2;
    align-self: end;
    width: 100%;
    margin: 0;
}

.hero__title img {
    width: 100%;
}

.hero__photo {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    width: 100%;
}

.hero__photo img {
    width: 100%;
    max-height: calc(100vh - var(--header-height) - 50px);
    object-fit: contain;
}

.hero__info {
    z-index: 3;
    align-self: start;
    width: min(100%, 718px);
    margin-top: clamp(22px, 3.5vh, 42px);
}

.hero__info img {
    width: 100%;
}

/* PC: 写真を背面に置き、タイトルと開催情報を重ねる */
@media (min-width: 768px) {
    .hero__inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        isolation: isolate;
        padding-top: calc(var(--header-height) + clamp(48px, 5vw, 76px));
        padding-bottom: clamp(48px, 5vw, 76px);
    }

    .hero__title {
        position: relative;
        z-index: 2;
        align-self: flex-start;
        width: min(40%, 520px);
        margin-left: 1.5%;
    }

    .hero__photo {
        position: absolute;
        z-index: 1;
        top: calc(var(--header-height));
        right: -1.5%;
        width: min(72%, 1030px);
        height: calc(100% - var(--header-height) - 40px);
    }

    .hero__photo img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
        object-position: right center;
    }

    .hero__info {
        position: relative;
        z-index: 3;
        width: min(52%, 718px);
        margin-top: clamp(24px, 3.5vh, 42px);
        margin-left: 1.5%;
    }
}

/* Intro */
.intro {
    position: relative;
    z-index: 2;
    overflow: visible;
    padding: 126px 0 145px;
    background-color: #fff8e6;
}

.intro::after {
    position: absolute;
    z-index: 0;
    right: -5%;
    bottom: -54px;
    left: -5%;
    height: 108px;
    content: "";
    pointer-events: none;
    background: #fff8e6;
    border-radius: 50%;
}

.intro::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: url("../images/intro_bg.png") center top / 100% auto repeat-y;
    opacity: .045;
}

.intro__inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 80px), 1180px);
    margin-inline: auto;
}

.intro__title {
    width: min(58vw, 730px);
    margin: 0 auto 64px;
}

.intro__title img {
    width: 100%;
}

.intro__balloon,
.intro__bird {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.intro__balloon {
    top: 80px;
    left: 0;
    width: clamp(150px, 20vw, 400px);
}

.intro__bird {
    z-index: 2;
    top: 50px;
    right: 0;
    width: clamp(135px, 20vw, 400px);
}

.intro-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    margin-bottom: clamp(48px, 7vw, 96px);
}

.intro-card:last-child {
    margin-bottom: 0;
}

.intro-card__photo {
    grid-area: 1 / 1;
    width: 62%;
    margin-left: auto;
    overflow: hidden;
}

.intro-card__photo img {
    width: 100%;
    aspect-ratio: 960 / 542;
    object-fit: cover;
}

.intro-card__body {
    position: relative;
    grid-area: 1 / 1;
    z-index: 2;
    left: 0;
    width: 47%;
    padding: 42px 45px 38px;
    background: #fff;
    box-shadow: 10px 10px 0 rgb(62 45 20 / 50%);
}

.intro-card__body h3 {
    position: relative;
    z-index: 2;
    width: calc(100% + 32px);
    min-height: 90px;
    margin: -20px 0 10px -24px;
    padding: 20px 24px 16px;
    color: #694e28;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: clamp(29px, 2.1vw, 34px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: .03em;
    background: url("../images/intro_h3.svg") left center / contain no-repeat;
}

.intro-card__body p {
    position: relative;
    z-index: 2;
    margin: 12px 0 0;
    overflow-wrap: anywhere;
    font-size: 16px;
    font-weight: 600;
    line-height: 2;
    letter-spacing: .04em;
}

.intro-card__decoration {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.intro-card__decoration--01 {
    top: 0;
    right: 0;
    width: 180px;
}

.intro-card__decoration--02 {
    top: -86px;
    right: -35px;
    width: 180px;
}

.intro-card__decoration--03 {
    top: -70px;
    left: -65px;
    width: 130px;
}

.intro-card__decoration--04 {
    top: -75px;
    right: -32px;
    width: 180px;
}

.intro-card--reverse .intro-card__photo {
    margin-right: auto;
    margin-left: 0;
}

.intro-card--reverse .intro-card__body {
    right: 0;
    left: auto;
    margin-left: auto;
}

/* Outline / Access */
.section-inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 80px), 1280px);
    margin-inline: auto;
}

.section-inner--narrow {
    width: min(calc(100% - 80px), 1040px);
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 0 0 48px;
    color: #4f504d;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: clamp(28px, 2.6vw, 42px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
}

.section-heading img {
    width: 65px;
}

.outline {
    position: relative;
    z-index: 1;
    padding: 145px 0 130px;
    background: #dcefe2;
}

.outline::before {
    content: none;
}

.outline-list {
    margin: 0;
    padding: 36px 55px;
    background: #fff;
    border-radius: 14px;
}

.outline-list__row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
    padding: 18px 0;
    border-bottom: 1px solid #ddd;
}

.outline-list__row:last-child {
    border-bottom: 0;
}

.outline-list dt,
.outline-list dd {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}

.outline-list dt {
    font-weight: 700;
}

.access {
    padding: 105px 0 120px;
    background: #fff;
}

.section-heading--access {
    margin-bottom: 28px;
}

.section-heading--access img {
    width: 55px;
}

.access__address {
    margin: 0 0 45px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.9;
    text-align: center;
}

.access__map {
    width: min(100%, 1180px);
    height: 500px;
    margin-inline: auto;
    overflow: hidden;
}

.access__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Exhibitor */
.exhibitor {
    padding-bottom: 95px;
    background: #fff8e6;
}

.exhibitor__heading,
.photo-section__heading {
    margin: 0 0 72px;
    padding: 25px 20px;
    color: #fff;
    background: #009c4b;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-size: clamp(28px, 2.5vw, 40px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
    text-align: center;
}

.exhibitor-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.exhibitor-list li {
    overflow: hidden;
    background: #fff;
}

.exhibitor-list a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 20px;
    transition: box-shadow .25s ease, transform .25s ease;
}

.exhibitor-list a:hover,
.exhibitor-list a:focus-visible {
    box-shadow: 0 8px 22px rgb(64 48 20 / 16%);
    transform: translateY(-3px);
}

.exhibitor-list img {
    width: 80%;
    margin: auto;
    aspect-ratio: 224 / 150;
    object-fit: cover;
}

.exhibitor-list__label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 12px 18px 0;
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 700;
    line-height: 1.5;
}

.exhibitor-list__link-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 22px;
    background: url("../images/ico_ link.svg") center / contain no-repeat;
}

/* Movie / Photo */
.photo-section {
    padding: 0 0 100px;
    background: #fff;
}

.section-inner--photo {
    width: min(calc(100% - 80px), 1180px);
}

.movie-panel {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8.4;
    margin-bottom: 70px;
    overflow: hidden;
    background: #222;
}

.movie-panel iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 8px;
}

.photo-gallery__item {
    margin: 0;
    overflow: hidden;
}

.photo-gallery__item--wide {
    grid-column: span 2;
}

.photo-gallery__item--tall {
    grid-row: span 2;
}

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

main>section:empty {
    display: none;
}

/* Footer */
.site-footer {
    padding: 22px 20px;
    color: #777;
    background: #eee;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: .02em;
}

/* Keep the larger navigation text on one line on narrow desktop screens. */
@media (min-width: 768px) and (max-width: 1023px) {
    .global-navigation,
    .global-navigation__links {
        gap: 12px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* Keep decorative overflow from widening the mobile viewport. */
    html,
    body {
        overflow-x: hidden;
        overflow-x: clip;
    }

    .intro-card__decoration--01 {
        display: none;
    }

    :root {
        --header-height: 56px;
    }

    .site-header__inner {
        width: calc(100% - 28px);
    }

    .site-header__logo {
        width: min(340px, calc(100vw - 78px));
    }

    .site-header__logo a {
        gap: 8px;
    }

    .site-header__symbol {
        width: 32px;
    }

    .site-header__name {
        width: min(290px, calc(100% - 40px));
    }

    .menu-button {
        position: relative;
        display: grid;
        grid-template-rows: repeat(3, 2px);
        align-content: center;
        flex-shrink: 0;
        gap: 5px;
        width: 34px;
        height: 34px;
        padding: 7px 5px;
        color: inherit;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .menu-button__line {
        display: block;
        width: 100%;
        height: 2px;
        background: currentColor;
        transition: transform .25s ease, opacity .25s ease;
    }

    .menu-button.is-active .menu-button__line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-button.is-active .menu-button__line:nth-child(2) {
        opacity: 0;
    }

    .menu-button.is-active .menu-button__line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .global-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: block;
        padding: 22px 20px 24px;
        visibility: hidden;
        background: rgb(0 0 0 / 85%);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s;
    }

    .global-navigation.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .global-navigation__links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        text-align: center;
    }

    .global-navigation__links a {
        display: block;
        padding: 12px;
    }

    .social-links {
        justify-content: center;
        margin-top: 16px;
    }

    .hero__inner {
        grid-template-columns: minmax(230px, 40%) 1fr;
        width: min(100% - 48px, 900px);
        min-height: auto;
        padding: calc(var(--header-height) + 40px) 0 40px;
    }

    .intro-card__body {
        padding: 30px;
    }

    .outline-list__row {
        grid-template-columns: 140px 1fr;
    }

    .access__map {
        height: 420px;
    }

    .photo-gallery {
        grid-auto-rows: 210px;
    }
    .global-navigation {
        left: auto;
        width: 50%;
        max-width: 200px;
    }

    .global-navigation__links {
        grid-template-columns: 1fr;
    }

    .site-header__logo {
        width: min(290px, calc(100vw - 72px));
    }

    .site-header__symbol {
        width: 29px;
    }

    .site-header__name {
        width: min(250px, calc(100% - 37px));
    }

    .hero__inner {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: calc(var(--header-height) + 24px) 0 30px;
    }

    .hero__title {
        width: min(72vw, 330px);
        margin-inline: auto;
    }

    .hero__photo {
        width: 100%;
        margin-top: -2px;
    }

    .hero__photo img {
        width: 100%;
        max-height: none;
        object-fit: initial;
    }

    .hero__info {
        width: min(calc(100% - 36px), 520px);
        margin: 12px auto 0;
    }

    .hero::after {
        right: -12%;
        bottom: -28px;
        left: -12%;
        height: 56px;
    }

    .intro {
        padding: 84px 0 88px;
    }

    .intro::after {
        right: -12%;
        bottom: -30px;
        left: -12%;
        height: 60px;
    }

    .intro__inner {
        width: 100%;
    }

    .intro__title {
        width: min(88vw, 420px);
        margin-bottom: 40px;
    }

    .intro__balloon {
        top: 50px;
        left: -34px;
        width: 112px;
    }

    .intro__bird {
        top: 132px;
        right: -22px;
        width: 105px;
    }

    .intro-card,
    .intro-card--reverse {
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin-bottom: 78px;
    }

    .intro-card__photo,
    .intro-card--reverse .intro-card__photo {
        order: 2;
        width: calc(100% - 28px);
        margin: -8px 14px 0;
    }

    .intro-card__body,
    .intro-card--reverse .intro-card__body {
        position: relative;
        order: 1;
        width: calc(100% - 54px);
        margin: 0 auto;
        padding: 25px 24px 27px;
    }

    .intro-card__body h3 {
        width: calc(100% + 22px);
        min-height: 74px;
        margin: -12px 0 8px -16px;
        padding: 15px 16px 12px;
        font-size: 19px;
    }

    .intro-card__body p {
        margin-top: 6px;
        font-size: 16px;
        line-height: 1.8;
    }

    .section-inner,
    .section-inner--narrow {
        width: calc(100% - 36px);
    }

    .section-heading {
        gap: 11px;
        margin-bottom: 32px;
        font-size: 24px;
    }

    .section-heading img {
        width: 48px;
    }

    .outline {
        padding: 90px 0 70px;
    }

    .outline-list {
        padding: 20px 18px;
        border-radius: 9px;
    }

    .outline-list__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 12px 0;
    }

    .outline-list dt,
    .outline-list dd {
        font-size: 16px;
        line-height: 1.7;
    }

    .access {
        padding: 70px 0 78px;
    }

    .section-heading--access img {
        width: 42px;
    }

    .access__address {
        margin-bottom: 30px;
        font-size: 16px;
        line-height: 1.8;
    }

    .access__map {
        width: 100%;
        height: 260px;
    }

    .exhibitor {
        padding-bottom: 55px;
    }

    .exhibitor__heading,
    .photo-section__heading {
        margin-bottom: 36px;
        padding: 18px;
        font-size: 22px;
    }

    .exhibitor .section-inner,
    .section-inner--photo {
        width: calc(100% - 28px);
    }

    .exhibitor-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .exhibitor-list li {
        min-height: 0;
    }

    .exhibitor-list a {
        padding-bottom: 12px;
    }

    .exhibitor-list__label {
        gap: 6px;
        padding: 8px 9px 0;
        font-size: 16px;
    }

    .exhibitor-list__link-icon {
        width: 12px;
        height: 17px;
    }

    .photo-section {
        padding: 0 0 60px;
    }

    .movie-panel {
        aspect-ratio: 16 / 9;
        margin-bottom: 38px;
    }

    .movie-panel__play {
        width: 58px;
        height: 41px;
        border-radius: 10px;
    }

    .movie-panel__play::after {
        border-top-width: 9px;
        border-bottom-width: 9px;
        border-left-width: 15px;
    }

    .movie-panel__label {
        right: 10px;
        bottom: 9px;
        left: 10px;
        font-size: 16px;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 165px;
        gap: 4px;
    }

    .photo-gallery__item--wide {
        grid-column: span 2;
    }

    .intro-card__decoration--02 {
        top: -55px;
        right: -20px;
        width: 100px;
    }

    .intro-card__decoration--03 {
        top: -48px;
        left: -20px;
        width: 78px;
    }

    .intro-card__decoration--04 {
        top: -51px;
        right: -18px;
        width: 100px;
    }

    .site-footer {
        padding: 16px 12px;
    }

    .site-footer p {
        font-size: 8px;
    }

}

@media (max-width: 380px) {
    .site-header__logo {
        width: min(270px, calc(100vw - 72px));
    }

    .hero__title {
        width: 76vw;
    }
}

/* Scroll reveals: only JavaScript-enabled targets receive these classes. */
.scroll-reveal {
    transition: opacity .55s ease, transform .85s cubic-bezier(.22, 1.25, .36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-pending {
    opacity: 0;
    transform: translateY(48px);
}

.reveal-pending.reveal-from-left {
    transform: translate(-64px, 24px) rotate(-2deg) scale(.96);
}

.reveal-pending.reveal-from-right {
    transform: translate(64px, 24px) rotate(2deg) scale(.96);
}

.hero__title.reveal-pending,
.intro__title.reveal-pending {
    transform: translateY(40px) rotate(-2deg) scale(.9);
}

.exhibitor-list > .reveal-pending,
.photo-gallery__item.reveal-pending {
    transform: translateY(48px) rotate(-2deg) scale(.92);
}

.exhibitor-list > .reveal-pending:nth-child(even),
.photo-gallery__item.reveal-pending:nth-child(even) {
    transform: translateY(48px) rotate(2deg) scale(.92);
}

.intro__balloon.reveal-pending,
.intro__bird.reveal-pending {
    transform: translateY(56px) rotate(-8deg) scale(.85);
}

@media (max-width: 767px) {
    .reveal-pending,
    .reveal-pending.reveal-from-left,
    .reveal-pending.reveal-from-right {
        transform: translateY(32px);
    }

    .intro-card.reveal-pending,
    .exhibitor-list > .reveal-pending,
    .photo-gallery__item.reveal-pending {
        transform: translateY(32px) rotate(-1deg) scale(.95);
    }

    .intro-card--reverse.reveal-pending,
    .exhibitor-list > .reveal-pending:nth-child(even),
    .photo-gallery__item.reveal-pending:nth-child(even) {
        transform: translateY(32px) rotate(1deg) scale(.95);
    }
}

@media print, (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none !important;
        transition: none !important;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
