@charset "utf-8";

/* にいがたガストロノミーバス2024 */

:root {
    --accent-color: #c21731;
    --gothic-font-family: "Yu Gothic", YuGothic, hiragino-kaku-gothic-pron, "Noto Sans JP", "MS PGothic", sans-serif;
    --mincho-font-family: "Yu Mincho", YuMincho, hiragino-mincho-pron, "Noto Serif JP", "MS PMincho", serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-width: 320px;
    min-height: 100dvh;
    background: #000;
    font-family: var(--gothic-font-family);
    font-weight: 500;
    font-feature-settings: "palt";
}

img {
    display: block;
}

address {
    font-style: normal;
}

html.gecko.win rt {
    margin-top: -0.2em;
    margin-bottom: -0.4em;
}

html.gecko.mobile rt {
    margin-top: -0.2em;
    margin-bottom: -0.8em;
}

.sp {
    display: none;
}

@media screen and (max-width: 639px) {
    .sp {
        display: block;
    }
}

/* util */

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    ;
}

.button {
    text-decoration: none;
    line-height: 1;
    color: #fff;
    background: var(--accent-color);
    display: grid;
    grid-template-columns: 2em 1fr 2em;
    grid-template-areas: "before label after";
    align-items: center;
    padding-block: 8px;
    text-align: center;
    min-height: 44px;
    cursor: not-allowed;
    font-size: 20px;
    font-weight: 500;
    border: none;
    width: 100%;
    font-family: var(--gothic-font-family);
}

.button[href] {
    cursor: pointer;
}

.button::before {
    grid-area: before;
    text-align: center;
    content: '';
}

.button::after {
    grid-area: after;
    text-align: center;
    content: '';
}

a.button[href]::after {
    content: '→';
}

button.button {
    cursor: pointer;
}

button.button::after {
    content: '︙';
}

[popover].\:popover-open {
    position: fixed;
    z-index: 2147483647;
    width: fit-content;
    height: fit-content;
}

.note::before {
    content: '※';
}

.note {
    text-indent: -1em;
    margin-left: 1em;
}

/* banner */

.banner {
    line-height: 1.4;
    font-size: min(calc(20 * 0.8 / 370 * 100vw), calc(20px * 0.8 * 2));
    font-weight: bold;
    background: #fff;
    border: solid 1px var(--accent-color);
    box-shadow: 0 0 0 min(calc(4 * 0.8 / 370 * 100vw), calc(4px * 0.8 * 2)) #fff;
    margin: min(calc(4 * 0.8 / 370 * 100vw), calc(4px * 0.8 * 2));
    padding: min(calc(4 * 0.8 / 370 * 100vw), calc(4px * 0.8 * 2)) min(calc(8 * 0.8 / 370 * 100vw), calc(8px * 0.8 * 2));
    overflow-wrap: anywhere;
    word-break: keep-all;
    line-break: strict;
    text-align: center;
}

.banner__text {
    border-bottom: solid 1px var(--accent-color);
    padding-bottom: min(calc(4 * 0.8 / 370 * 100vw), calc(4px * 0.8 * 2));
    margin-bottom: min(calc(4 * 0.8 / 370 * 100vw), calc(4px * 0.8 * 2));
}

.banner__text strong {
    color: var(--accent-color);
}

.banner__text small {
    font-size: 0.8em;
}

.banner .note {
    font-size: min(calc(10 * 0.8 / 370 * 100vw), calc(10px * 0.8 * 2));
    font-size: 0.6em;
}

/* top ribbon */

.top-ribbon {
    background: #ff2600;
    height: min(calc(32 / 370 * 100vw), calc(32px * 2));
    display: flex;
    align-items: center;
}

.top-ribbon__logo-image {
    aspect-ratio: 85.04 / 17.5;
    width: min(calc(85.04 / 370 * 100vw), calc(85.04px * 2));
    margin-left: min(calc(8 / 370 * 100vw), calc(8px * 2));
    margin-bottom: min(calc(4 / 370 * 100vw), calc(4px * 2));
}

/* main visual */

.main-visual {
    position: relative;
    margin-bottom: min(calc(48 / 370 * 100vw), calc(48px * 2));
}

.main-visual__foreground {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-visual__title img {
    object-fit: contain;
    width: 80%;
    margin: 0 auto;
}

.main-visual__background {
    position: relative;
    z-index: 0;
    display: grid;
    grid-template-areas:
        "mv01 mv02"
        "mv03 mv04";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
}

.main-visual__image {
    width: 100%;
    height: min(calc(180 / 370 * 100vw), calc(180px * 2));
    object-fit: cover;
}

.main-visual__image--01 {
    grid-area: mv01;
}

.main-visual__image--02 {
    grid-area: mv02;
}

.main-visual__image--03 {
    grid-area: mv03;
}

.main-visual__image--04 {
    grid-area: mv04;
}

.main-visual__credit {
    line-height: 1.2;
    position: absolute;
    bottom: 2px;
    left: 2px;
    font-size: min(calc(8 / 370 * 100vw), 12px);
    color: white;
    background: rgba(0, 0, 0, .3);
    padding: 1px 2px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.main-visual__deco-image {
    position: absolute;
}

.main-visual__deco-image--momizi01 {
    aspect-ratio: 181 / 170;
    width: min(calc(90.5 / 370 * 100vw), calc(90.5px * 2));
    transform: translate(-50%, 50%);
    bottom: min(calc(130 / 370 * 100vw), calc(130px * 2));
    left: max(calc(-20 / 370 * 100vw), calc(-20px * 2));
    z-index: -1;
}

.main-visual__deco-image--momizi02 {
    aspect-ratio: 233 / 242;
    width: min(calc(116.5 / 370 * 100vw), calc(116.5px * 2));
    transform: translate(50%, 50%);
    bottom: min(calc(35 / 370 * 100vw), calc(35px * 2));
    right: min(calc(35 / 370 * 100vw), calc(35px * 2));
    z-index: 0;
}

.main-visual__message-wrapper {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* intro */

.intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: min(calc(24 / 370 * 100vw), calc(24px * 2));
}

.intro__header {
    width: min-content;
}

.intro__held-image {
    aspect-ratio: 190.1 / 51.23;
    width: min(calc(200 / 370 * 100vw), calc(200px * 2));
}

.intro__content {
    width: 100%;
    max-width: calc(1000px + min(64px, 6.4vw) * 2);
    font-size: min(calc(12 / 370 * 100vw), calc(12px * 2));
    line-height: min(calc(24 / 370 * 100vw), calc(24px * 2));
    margin: min(calc((20 + ((12 - 24) / 2)) / 370 * 100vw), calc(20px * 2 + ((12px * 2 - 24px * 2) / 2))) auto;
    padding-inline: min(64px, 6.4vw);
    text-align: center;
    overflow-wrap: anywhere;
    word-break: keep-all;
    line-break: strict;
    text-wrap: balance;
    /* 明朝体 */
    font-family: var(--mincho-font-family);
}

.intro__content h2,
.intro__content p {
    color: #fff;
}

.intro__content h2 {
    font-size: clamp(1.2rem, 5vw, 2.4rem);
    margin-bottom: 30px;
}

.intro__footer {
    width: min-content;
    position: relative;
}

.intro__notice-image {
    aspect-ratio: 227.49 / 21.85;
    width: min(calc(300 / 370 * 100vw), calc(300px * 2));
}

.intro__deco-image {
    position: absolute;
}

.intro__deco-image--momizi01 {
    aspect-ratio: 200 / 200;
    width: min(calc(100 / 370 * 100vw), calc(100px * 2));
    transform: translate(50%, -50%);
    top: min(calc(60 / 370 * 100vw), calc(60px * 2));
    right: min(calc(16 / 370 * 100vw), calc(16px * 2));
}

.report a {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 465px;
    height: 60px;
    color: #fff;
    font-size: 23px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    background-color: #c21731;
    margin-bottom: 30px;
}


/*.report a::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 30px;
	transform: rotate(45deg) translateY(-50%);
	width: 6px;
	height: 6px;
	border-width: 2px 2px 0 0;
	border-style: solid;
	border-color: #333;
}*/

.report a:hover {
    background-color: #7c1323;
    border: 1px solid #fff;
}

.report a:hover::after {
    border-color: #f2f2f2 #f2f2f2 transparent transparent;
}


@media screen and (max-width: 639px) {
    .report a {
        width: 340px;
        font-size: 17px;
    }
}

/* content */

.inner {
    max-width: calc(1000px + min(24px, 2.4vw) * 2);
    padding-inline: calc(min(24px, 2.4vw));
    margin-inline: auto;
}

.box {
    background: #fff;
    border: solid 1px var(--accent-color);
    box-shadow: 0 0 0 8px #fff;
    margin: 8px;
}

.content+.content {
    margin-top: min(96px, 9.6vw);
}

.main {
    margin-bottom: min(96px, 9.6vw);
}

.content__title {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: clamp(4px, 0.8vw, 8px);
    text-indent: clamp(4px, 0.8vw, 8px);
    background: #ff2600;
    color: #fff;
    text-align: center;
    margin: 6px auto calc(1em + 6px);
    padding: 0.5em 0;
}

.content__banner.banner {
    box-shadow: 0 0 0 8px #fff;
    margin: 8px 8px max(20px, calc(1em + 2px));
}

/* 運行スケジュール */

.calendar {
    color: #3c3a39;
    --calendar-border: solid 1px #3c3a39;
    font-family: var(--mincho-font-family);
}

.calendar+.calendar {
    margin-top: min(64px, 6.4vw);
}

.calendar__year {
    font-family: var(--mincho-font-family);
    font-size: clamp(16px, 2.4vw, 24px);
    font-weight: normal;
    line-height: 1;
    text-align: center;
}

.calendar__month {
    font-size: clamp(28px, 6.4vw, 64px);
    font-weight: normal;
    line-height: 1;
    text-align: center;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    margin-bottom: clamp(20px, 4vw, 40px);
}

@media screen and (max-width: 639px) {
    .calendar__month {
        text-decoration-thickness: 2px;
    }
}

@media screen and (min-width: 640px),
print {

    .calendar__year-suffix,
    .calendar__month-suffix,
    .calendar__date-suffix {
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        width: 1px;
        height: 1px;
        overflow: hidden;
        position: absolute;
        white-space: nowrap;
        ;
    }
}

.calendar__table {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-top: -1px;
}

@media screen and (max-width: 639px) {
    .calendar__table {
        display: grid;
        grid-template-columns: auto 1fr;
        margin-top: 0;
        gap: 1px 12px;
        padding-block: 12px;
    }

    .calendar__table--week {
        display: none;
    }
}

.calendar__body {
    border-top: var(--calendar-border);
    border-bottom: var(--calendar-border);
}

.calendar__cell {
    font-size: min(32px, 3.2vw);
    font-size: min(24px, 2.4vw);
}

.calendar__cell--mon {
    grid-column: 1;
}

.calendar__cell--tue {
    grid-column: 2;
}

.calendar__cell--wed {
    grid-column: 3;
}

.calendar__cell--thu {
    grid-column: 4;
}

.calendar__cell--fri {
    grid-column: 5;
}

.calendar__cell--sat {
    grid-column: 6;
    color: #0868aa;
}

.calendar__cell--sun {
    grid-column: 7;
    color: #d61518;
}

.calendar__cell--holiday {
    color: #d61518 !important;
}

.calendar__day {
    height: min(16.8vw, 168px);
    display: grid;
    grid-template-rows: min(32px, 3.2vw) 1fr;
    padding-block: min(8px, 0.8vw);
    gap: min(4px, 0.4vw);
    border-top: var(--calendar-border);
    border-bottom: var(--calendar-border);
    margin-bottom: -1px;
}

@media screen and (max-width: 639px) {
    .calendar__day {
        display: contents;
    }

    .calendar__day:not(:has(.calendar__link)) {
        display: none;
    }
}

.calendar__date {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    align-self: center;
}

@media screen and (max-width: 639px) {
    .calendar__date {
        font-size: 20px;
        justify-self: end;
    }
}

.calendar__link {
    text-decoration: none;
    font-family: var(--gothic-font-family);
    color: #3c3a39;
    background: #fff6;
    width: calc(100% - min(12px, 1.2vw));
    height: fit-content;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.calendar__link[href] {
    background: #fff;
}

.calendar__link[href]::after {
    content: '　詳細をチェック→';
    background: var(--accent-color);
    color: #fff;
    font-size: clamp(9px, 1.4vw, 14px);
    padding: min(0.2vw, 2px);
    margin-top: min(0.4vw, 4px);
    text-align: center;
}

.trip {
    line-height: 1;
    display: grid;
    grid-template-rows: calc(min(2vw, 20px) * 2 + min(0.4vw, 4px) * 2) auto auto;
    align-items: center;
    text-align: center;
}

.trip__area {
    padding: min(0.4vw, 4px);
    font-size: min(2vw, 20px);
    font-weight: bold;
}

.trip__to-from {
    padding-inline: min(0.4vw, 4px);
    font-size: clamp(9px, 1.4vw, 14px);
    font-weight: bold;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (max-width: 639px) {
    .trip {
        width: 100%;
        text-align: left;
        min-height: 48px;
        padding-inline-start: 12px;
        grid-template-columns: 1fr auto;
        grid-template-rows: 25px 19px;
        grid-template-areas:
            "area    after"
            "to-from after";
        gap: 4px 0;
    }

    .trip__area {
        grid-area: area;
        font-size: 20px;
        font-weight: 500;
        padding-block: 5px 0;
        padding-inline: 0;
    }

    .trip__to-from {
        grid-area: to-from;
        font-size: 14px;
        font-weight: 500;
        padding-block: 0 5px;
        padding-inline: 0;
    }

    .calendar__link[href]::after {
        grid-area: after;
        content: '詳細→';
        font-size: 14px;
        box-sizing: border-box;
        height: 100%;
        display: flex;
        align-items: center;
        padding-inline: 16px 8px;
    }
}

/* 価格帯 */

.price-range {
    text-align: center;
}

.price-range__amount {
    font-family: var(--mincho-font-family);
    font-size: clamp(32px, 4.8vw, 48px);
    font-style: italic;
    line-height: 1.6;
}

.price-range__note {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
}

/* 販売コース */

.course {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.course__item {
    padding: 2em 1em;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    height: 100%;
}

.course__item-image img {
    max-width: 100%;
}

.course__item-content {
    display: grid;
    grid-template-rows: auto auto auto auto 1fr;
    height: 100%;
}

.course__item-content h4 {
    margin: 0.5em 0;
}

.course__item-content h3 {
    color: #ff2600;
    padding-bottom: 0.8em;
    line-height: 1.6rem;
    border-bottom: solid 1px #ff2600;
    margin-bottom: 1em;
}

.course__item-description {
    line-height: 1.8em;
    min-height: 300px;
}

.course__item-table {
    border-spacing: 0 10px;
    margin-top: 30px;
}

.course__item-table tr {
    display: flex;
    margin: 1em 0;
}

.course__item-table th {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.5em;
    background-color: #ff2600;
    color: #fff;
    font-weight: 500;
    padding: 0 10px;
    width: 100px;
    flex-shrink: 0;
}

.course__item-table td {
    display: block;
    font-size: 0.9rem;
    padding-left: 1em;
}

.course__item-table td strong {
    font-size: 1.5rem;
    line-height: 1.5rem;
    font-weight: 500;
}

.course__item-content a {
    display: block;
    border: solid 1px #ff2600;
    color: #ff2600;
    font-size: 1.2rem;
    padding: 1em;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
    align-self: end;
    margin-top: 1em;
    transition: .3s;
}

.course__item-content a:hover {
    background-color: #ff2600;
    color: #fff;
}

.course__item.comingsoon {
    height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff2600;
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 700
}

@media screen and (max-width: 639px) {
    .course {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .course__item-content h3 {
        font-size: 1.1rem;
    }

    .course__item-description {
        min-height: unset;
    }
}

/* footer */

.footer {
    background-color: #c8bd9f;
    margin-top: auto;
    position: relative;
}

.footer__go-back {
    font-family: var(--gothic-font-family);
    font-size: 14px;
    position: fixed;
    width: 48px;
    height: 64px;
    right: 12px;
    bottom: 12px;
    background: var(--accent-color);
    color: #fff;
    border: solid 2px #fff;
    box-shadow: 0 0 0 1px var(--accent-color);
    cursor: pointer;

    transition-property: opacity, display;
    transition-duration: 0.3s;
    transition-behavior: allow-discrete;
    display: block;
    opacity: 1;

    @starting-style {
        opacity: 0;
    }
}

.footer__go-back span {
    writing-mode: vertical-rl;
}

.footer__go-back:not(.active) {
    display: none;
    opacity: 0;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 0;
}

.contact__form {
    order: 0;
    font-size: min(calc(12 / 370 * 100vw), calc(12px * 2));
    line-height: 1;
}

.contact__form a {
    color: currentColor;
}

.contact__title {
    order: 1;
    font-size: min(calc(14 / 370 * 100vw), calc(14px * 2));
    font-weight: 500;
    line-height: 1;
    margin-top: min(4vw, 24px);
}

.contact__phone-n-mail {
    order: 2;
    font-size: min(calc(10 / 370 * 100vw), calc(10px * 2));
    line-height: 1;
    margin-top: min(4vw, 24px);
}

.contact__phone-n-mail a {
    color: currentColor;
    text-decoration: none;
}

@media(hover: hover) {
    .contact__phone-n-mail a:hover {
        text-decoration: underline;
    }
}

.contact__address {
    order: 3;
    font-size: min(calc(10 / 370 * 100vw), calc(10px * 2));
    line-height: 1;
    margin-top: min(2vw, 12px);
}

.footer__ribbon {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.footer__ribbon-image {
    width: 100%;
    height: min(24vw, 192px);
    object-fit: cover;
}

.footer__ribbon-image--01 {
    object-position: center center;
}

.footer__ribbon-image--02 {
    object-position: center center;
}

.footer__ribbon-image--03 {
    object-position: center top;
}