@charset "UTF-8";

/* ===== event-national =====
   全国の展示・イベント配下 3 ページ（index / tewaza / exhibition）の追加スタイル。
   assets/css/style.css の後に読み込む。既存セレクタは書き換えず、body.event-national 配下で上書きする。
   ========================================================================== */

/* --- 共通：セクション間の余白（デザインルール PC 110px / SP 60px） --- */

body.event-national section {
    margin-bottom: 110px;
}

/* --- 共通：リード文 --- */

.read--center {
    text-align: center;
}

/* --- 共通：アンカー MENU（既存 .quick-nav をグリッド並びにする） --- */

.quick-nav--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.quick-nav--grid a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-nav--grid a.btn span {
    font-size: 10px;
}

/* --- 共通：SP だけで改行する <br> --- */

.sp-only {
    display: none;
}

/* --- 全国の展示・イベント：写真｜本文の 2 カラム（PC。SP は縦積み） --- */

.feature-row {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 48px;
    align-items: center;
}

/* --- 全国の展示・イベント：写真（460×360）＋左上ロゴ --- */

.feature-visual {
    position: relative;
}

.feature-visual picture img {
    width: 100%;
    height: auto;
    aspect-ratio: 460 / 360;
    object-fit: cover;
}

.feature-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 120px;
    height: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .25));
}

/* --- 全国の展示・イベント：写真下の注釈（2026年特別展示「※画像はイメージです」。既存 .note-text と併用） --- */

.feature-note {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
}

/* --- 全国の展示・イベント：本文 --- */

.feature-text {
    font-size: 15px;
    line-height: 1.9;
}

.feature-body .btn-wrap {
    margin-top: 28px;
}

/* --- 全国の展示・イベント：塗り CTA --- */

a.btn.btn-fill {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 700;
}

/* --- 共通：TOP へ戻る（画面右下に追従） --- */

.totop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
    font-size: 11px;
    line-height: 1;
}

.totop span:last-child {
    font-weight: 700;
    letter-spacing: .08em;
}

/* --- 出展者一覧：写真スライダー（帯の下。CSS アニメーションで右から左へ流す） --- */

.photo-marquee {
    --marquee-shift: -2412px; /* 1 周分 = (260px + gap 8px) × 9 枚 */
    margin-bottom: 110px;
    overflow: hidden;
}

.photo-marquee-track {
    display: flex;
    gap: 8px;
    width: max-content;
    animation: photo-marquee 60s linear infinite;
}

.photo-marquee-track img {
    flex: none;
    width: 260px;
    height: 190px;
    object-fit: cover;
}

@keyframes photo-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--marquee-shift));
    }
}

/* --- 出展者一覧：タブ --- */

/* 帯の直後にタブが来るページは、帯下の余白（h2 の margin）だけにする */
body.event-national #page-title:has(+ #exhibitors) {
    margin-bottom: 0;
}

.tab-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 56px;
}

.tab-nav [role="tab"] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    background: #b5b5b5;
    color: var(--color-white);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4;
    transition: .3s;
}

.tab-nav [role="tab"]:hover {
    opacity: .5;
}

.tab-nav [role="tab"].is-active {
    background: var(--color-primary);
}

.tab-nav [role="tab"].is-active:hover {
    opacity: 1;
    cursor: default;
}

/* --- 出展者一覧：カード --- */

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

.exhibitor-card {
    position: relative;
    overflow: hidden;
    padding: 20px 20px 24px;
    background: var(--color-bg-light);
}

/* 産地写真はカード全面に薄く敷く（写真が無い産地は灰色地のまま） */
.exhibitor-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .22;
}

.exhibitor-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.exhibitor-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.exhibitor-badge {
    display: inline-block;
    padding: 3px 14px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
}

.exhibitor-pref {
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.exhibitor-name {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
}

.exhibitor-union {
    margin-bottom: 12px;
    color: #333;
    font-size: 12px;
    line-height: 1.7;
}

.exhibitor-detail > div {
    margin-bottom: 8px;
}

.exhibitor-detail dt {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.exhibitor-detail dd {
    font-size: 13px;
    line-height: 1.7;
}

/* --- 入賞一覧：挨拶文 --- */

.greeting {
    display: flex;
    flex-direction: column;
    gap: 1.3em;
    font-size: 15px;
    line-height: 1.9;
}

.greeting p + p {
    text-indent: 1em;
}

.greeting-sign {
    margin-top: 2em;
    text-align: right;
    font-size: 15px;
    line-height: 1.9;
}

.greeting-sign strong {
    font-weight: 700;
}

/* --- 入賞一覧：作品カード（写真・入賞名・作品名・作者名は仮表示。実データ受領後に差し替える） --- */

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

.work-card {
    display: flex;
    flex-direction: column;
}

.work-award {
    padding: 8px 10px;
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
}

.work-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 230px;
    background-color: #c9c9c9;
}

.work-photo-label {
    color: #555;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .08em;
}

.work-photo-tag {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 4px 12px;
    background: var(--color-white);
    color: var(--color-black);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.work-title {
    margin-top: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}

.work-author {
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
}

@media screen and (max-width: 1024px) {
    /* タブレット幅では写真 460px 固定だと本文が窮屈になるため 2 等分にする */
    .feature-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 32px;
    }
}

@media screen and (max-width: 767px) {
    body.event-national section {
        margin-bottom: 60px;
    }

    .feature-row {
        display: block;
    }

    .photo-marquee {
        --marquee-shift: -1512px; /* (160px + 8px) × 9 枚 */
        margin-bottom: 60px;
    }

    .photo-marquee-track {
        animation-duration: 45s;
    }

    .photo-marquee-track img {
        width: 160px;
        height: 117px;
    }

    .tab-nav {
        gap: 8px;
        margin-bottom: 32px;
    }

    .tab-nav [role="tab"] {
        min-height: 44px;
        padding: 10px 4px;
        font-size: 14px;
        letter-spacing: .04em;
    }

    /* 「展示・販売」だけ文字数が多いので少し広く取る */
    .tab-nav [role="tab"]:last-child {
        flex: 1.3;
    }

    #market .section-title span,
    #about .section-title span,
    #works .section-title span {
        font-size: 17px;
    }

    .greeting {
        gap: 1.2em;
        font-size: 14px;
        line-height: 1.75;
    }

    .greeting-sign {
        margin-top: 1.8em;
        font-size: 14px;
        line-height: 1.75;
    }

    .work-list {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .work-award {
        padding: 7px 10px;
        font-size: 14px;
    }

    .work-photo {
        height: 220px;
    }

    .work-photo-label {
        font-size: 15px;
    }

    .work-photo-tag {
        padding: 4px 10px;
        font-size: 12px;
    }

    .work-title {
        margin-top: 12px;
    }

    .work-author {
        font-size: 13px;
    }

    .exhibitor-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .exhibitor-card {
        padding: 18px 18px 20px;
    }

    .exhibitor-badge {
        padding: 3px 12px;
        font-size: 12px;
    }

    .exhibitor-pref {
        font-size: 12px;
    }

    .exhibitor-name {
        font-size: 18px;
    }

    .exhibitor-union {
        margin-bottom: 10px;
    }

    .exhibitor-detail dt {
        font-size: 12px;
    }

    .exhibitor-detail dd {
        font-size: 14px;
    }

    /* 展示・販売は件数が多いので SP も 2 列にしてスクロールを短くする（2026-09-27 先方相談） */
    .exhibitor-list--compact {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .exhibitor-list--compact .exhibitor-card {
        padding: 14px 12px 16px;
    }

    .exhibitor-list--compact .exhibitor-name {
        font-size: 16px;
    }

    .sp-only {
        display: inline;
    }

    body.event-national .section-title span {
        max-width: 100%;
        padding: 0 .8em;
        letter-spacing: .04em;
        line-height: 1.5;
    }

    .feature-visual {
        margin-bottom: 16px;
    }

    .feature-visual picture img {
        height: 200px;
        aspect-ratio: auto;
    }

    .feature-body .btn-wrap {
        margin-top: 24px;
    }

    .feature-logo {
        top: 12px;
        left: 12px;
        width: 74px;
        filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .25));
    }

    .feature-text {
        font-size: 14px;
        line-height: 1.75;
    }

    a.btn.btn-fill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 180px;
        max-width: 100%;
        font-size: 16px;
        padding: .65em 1.4em;
    }

    .totop {
        right: 12px;
        bottom: 12px;
        width: 52px;
        height: 52px;
        gap: 1px;
        font-size: 9px;
    }

    .totop span:last-child {
        letter-spacing: .06em;
    }

    body.event-national p.read {
        margin-bottom: 24px;
    }

    .read--center {
        text-align: left;
    }

    .quick-nav--grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-nav--grid a.btn {
        gap: 6px;
    }

    .quick-nav--grid a.btn span {
        font-size: 9px;
    }
}

@media screen and (max-width: 480px) {
    /* 既存 a.btn の min-width: 180px は 2 列グリッドに収まらないため解除する */
    .quick-nav--grid a.btn {
        min-width: 0;
    }
}
