/* Shared ryokan-inspired theme for Karo no Uron. */
:root {
    --text-primary: #211f1b;
    --text-secondary: #554d42;
    --text-muted: #857969;
    --accent-gold: #a98241;
    --accent-copper: #77513b;
    --accent-vermillion: #8c3f2b;
    --bg-washi: #f8f5ee;
    --bg-white: #fbfaf6;
    --bg-light: #f1ece2;
    --bg-card: #fffdf8;
    --ink-dark: #1f201d;
    --deep-green: #273020;
    --border-thin: #ded6c8;
    --border-medium: #c9bda9;
    --border-accent: #a98241;
    --shadow-soft: 0 18px 50px rgba(45, 33, 21, 0.08);
    --shadow-medium: 0 28px 70px rgba(45, 33, 21, 0.13);
}

html {
    background: var(--bg-washi);
}

body {
    color: var(--text-primary);
    background-color: var(--bg-washi);
    background-image:
        radial-gradient(circle at 18% 16%, rgba(169, 130, 65, 0.08), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(39, 48, 32, 0.06), transparent 30%),
        linear-gradient(90deg, rgba(33, 31, 27, 0.025) 1px, transparent 1px),
        linear-gradient(0deg, rgba(33, 31, 27, 0.018) 1px, transparent 1px);
    background-size: auto, auto, 68px 68px, 68px 68px;
    letter-spacing: 0.04em;
    line-height: 2;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(248, 245, 238, 0.45), rgba(248, 245, 238, 0.45)),
        url("../images/generated/washi-texture.jpg");
    background-size: auto, 760px auto;
    background-repeat: repeat;
    mix-blend-mode: multiply;
}

a {
    color: inherit;
}

.header {
    background: rgba(248, 245, 238, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(222, 214, 200, 0.6);
}

.page-home .header {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0));
    border-bottom: 0;
}

.page-home .header:not(.scrolled) .logo-text,
.page-home .header:not(.scrolled) .nav a,
.page-home .header:not(.scrolled) .menu-toggle span {
    color: #fffdf8;
}

.page-home .header.scrolled {
    background: rgba(248, 245, 238, 0.92);
    border-bottom: 1px solid rgba(222, 214, 200, 0.7);
}

.logo-mark img {
    box-shadow: 0 0 0 1px rgba(255, 253, 248, 0.58);
}

.logo-text {
    letter-spacing: 0.16em;
}

.nav a {
    color: var(--text-primary);
    font-size: 0.84rem;
}

.nav a::after,
.footer-nav a::after,
.intro-button::after {
    background: var(--accent-gold);
}

.mobile-overlay {
    background: rgba(248, 245, 238, 0.98);
}

.skip-link {
    background: var(--ink-dark);
    color: var(--bg-white);
}

:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}

section,
.container > section {
    max-width: 1180px;
    padding: 7rem 2rem;
}

.section-title,
.category-title,
.page-history .section-title {
    text-align: left;
    margin-bottom: 3.4rem;
}

.section-title h2,
.section-title h3,
.category-title h2,
.section-title {
    font-weight: 700;
    letter-spacing: 0.16em;
}

.section-title::before,
.section-title::after,
.category-title::before,
.category-title::after {
    display: none;
}

.section-title::first-letter,
.category-title h2::first-letter {
    color: var(--accent-gold);
}

.page-history .section-title h3 {
    border-bottom: 0;
    padding: 0;
}

.page-history .section-title h3::before {
    content: none;
}

.section-subtitle,
.sub {
    color: var(--accent-gold);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    margin-top: 0.55rem;
}

.photo,
.intro-image,
.access-image,
.hero-image {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: #e7dfd1;
}

.photo img,
.hero-image img {
    filter: saturate(0.88) contrast(1.04);
}

.intro-button {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    border: 1px solid rgba(177, 133, 66, 0.52);
    color: var(--text-primary);
    padding: 0.92rem 1.25rem 0.88rem;
    overflow: hidden;
    font-size: 0.9rem;
    letter-spacing: 0.11em;
    background: rgba(255, 253, 248, 0.7);
    transition:
        opacity 0.42s ease,
        color 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease,
        box-shadow 0.28s ease,
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, transparent, rgba(177, 133, 66, 0.16), transparent);
    transform: translateX(-112%);
    transition: transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-button::after {
    content: "";
    display: inline-block;
    width: 36px;
    height: 1px;
    margin-left: 16px;
    vertical-align: middle;
    background: currentColor;
    transition:
        width 0.28s ease,
        transform 0.28s ease;
}

.intro-button:hover,
.intro-button:focus-visible,
.intro-button.motion-visible,
.intro-button.is-activating {
    border-color: rgba(177, 133, 66, 0.86);
    background: rgba(255, 253, 248, 0.95);
    color: var(--accent-gold);
    box-shadow: 0 16px 38px rgba(71, 52, 28, 0.13);
    transform: translate3d(6px, 0, 0);
}

.intro-button:hover::before,
.intro-button:focus-visible::before,
.intro-button.motion-visible::before,
.intro-button.is-activating::before {
    transform: translateX(112%);
}

.intro-button:hover::after,
.intro-button:focus-visible::after,
.intro-button.motion-visible::after,
.intro-button.is-activating::after {
    width: 54px;
    transform: translateX(4px);
}

.intro-button.is-activating {
    transform: translate3d(10px, 0, 0) scale(0.98);
}

.grid-2 {
    gap: 3.2rem;
}

.access,
.gallery,
.map-section,
.content-intro {
    background: transparent;
}

.access-content {
    gap: 5rem;
}

.access-text,
.intro-content {
    max-width: 34rem;
}

.access-text h3,
.intro-content h3,
.hero-text h2 {
    letter-spacing: 0.16em;
}

.access-text h3::after,
.intro-content h3::after {
    width: 42px;
    height: 1px;
    background: var(--accent-gold);
}

.map-section .photo,
.access .photo,
.photo:has(iframe) {
    border: 1px solid rgba(169, 130, 65, 0.26);
}

.footer,
body > main > footer,
body > footer {
    color: #fffdf8;
    background: var(--ink-dark);
    border-top: 0;
    padding: 5rem 2rem 3.5rem;
    text-align: center;
}

.footer-info,
.footer-nav a,
.copyright,
body > main > footer {
    color: rgba(255, 253, 248, 0.82);
}

.footer .logo-text,
body > main > footer strong {
    color: #fffdf8;
}

.copyright {
    border-top-color: rgba(255, 253, 248, 0.18);
}

/* Home */
.page-home .hero {
    width: 100%;
    max-width: none;
    min-height: 100svh;
    height: 100svh;
    margin: 0;
    padding: 0;
    isolation: isolate;
    background: #201a15;
}

.page-home .hero::before,
.page-home .hero::after {
    content: "";
    position: absolute;
    inset: 0;
}

.page-home .hero::before {
    z-index: -2;
    background-image: url("../images/karo_店内写真1階.jpg");
    background-size: cover;
    background-position: center;
    filter: saturate(0.86) contrast(1.04);
    transform: scale(1.02);
}

/* スクロール連動パララックス(akagi-motion 側)に主導権を渡すため、
 * autoplay の heroSlowZoom は akagi-ready 環境では適用しない。 */
html.motion-ready:not(.motion-reduced):not(.akagi-ready) body.page-home .hero::before {
    animation: heroSlowZoom 22s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}

.page-home .hero::after {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0.44)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.52));
}

.page-home .hero-content {
    width: min(92vw, 980px);
    text-align: left;
    padding-top: 7rem;
}

.page-home .hero-title {
    color: #fffdf8;
    font-size: clamp(3rem, 6.4vw, 6.4rem);
    letter-spacing: 0.22em;
    text-shadow: 0 8px 34px rgba(0, 0, 0, 0.38);
}

.page-home .hero-subtitle,
.page-home .hero-year,
.page-home .scroll-indicator {
    color: rgba(255, 253, 248, 0.86);
}

.page-home .hero-year {
    color: #ead9b8;
}

.page-home .scroll-indicator {
    bottom: 34px;
}

.page-home .scroll-indicator::after {
    background: rgba(255, 253, 248, 0.58);
}

.intro-lead {
    max-width: 760px;
    margin: 0 auto 6rem;
    text-align: center;
}

.intro-kicker,
.eyebrow {
    display: block;
    color: var(--accent-gold);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.9rem;
}

.intro-lead p {
    color: var(--text-secondary);
    margin-top: 1.6rem;
}

.page-home .section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3.2vw, 2.7rem);
    line-height: 1.7;
    margin-bottom: 0;
}

.page-home .intro-grid {
    gap: 8rem;
}

.page-home .intro-item {
    grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1.6fr);
    gap: 5vw;
    align-items: center;
}

.page-home .intro-item:nth-child(even) {
    grid-template-columns: minmax(0, 1.6fr) minmax(150px, 0.5fr);
}

.page-home .intro-item:nth-child(even) .intro-content {
    order: 2;
    justify-self: end;
}

.page-home .intro-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-home:not(.lang-en) .intro-content h3 {
    writing-mode: vertical-rl;
    text-orientation: upright;
    min-height: 11.5em;
    line-height: 1.9;
    font-size: clamp(1.7rem, 2.4vw, 2.4rem);
}

.page-home .intro-item:nth-child(1) .intro-image {
    background-image: url("../images/editorial/themed/gobo-uron-imagegen.jpg");
}

.page-home .intro-item:nth-child(2) .intro-image {
    background-image: url("../images/editorial/themed/history-wall-art-themed.jpg");
}

.page-home .intro-item:nth-child(3) .intro-image {
    background-image: url("../images/editorial/themed/fan-display-themed.jpg");
}

.page-home .intro-content p {
    color: var(--text-secondary);
    margin-top: 1.6rem;
}

.page-home .intro-image {
    width: 100%;
    height: clamp(320px, 44vw, 560px);
    aspect-ratio: 16 / 10;
}

.page-home .access {
    max-width: 1180px;
}

.access-image {
    background-image: url("../images/karo_外観.jpeg");
}

.gallery > .section-title {
    text-align: center;
    margin-bottom: 3.8rem;
}

.editorial-gallery {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    grid-template-rows: minmax(250px, 0.72fr) minmax(180px, 0.48fr);
    grid-template-areas:
        "feature main"
        "feature sub";
    gap: clamp(1.2rem, 3vw, 2.8rem);
    align-items: stretch;
}

.editorial-gallery .photo {
    position: relative;
    min-height: 0;
    height: auto;
    overflow: hidden;
    background: rgba(255, 253, 248, 0.42);
}

.editorial-gallery .photo:nth-child(1) {
    grid-area: feature;
    min-height: clamp(390px, 44vw, 620px);
}

.editorial-gallery .photo:nth-child(2) {
    grid-area: main;
    min-height: clamp(260px, 26vw, 390px);
}

.editorial-gallery .photo:nth-child(3) {
    grid-area: sub;
    min-height: clamp(180px, 18vw, 260px);
    margin-left: 0;
}

.editorial-gallery .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.96) contrast(1.04);
}

/* Scroll motion */
html.motion-ready:not(.motion-reduced) .motion-photo {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translate3d(0, 34px, 0) scale(0.985);
    transition:
        clip-path 1.25s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.9s ease,
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html.motion-ready:not(.motion-reduced) .motion-photo.motion-visible {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translate3d(0, 0, 0) scale(1);
}

html.motion-ready:not(.motion-reduced) .page-history .hero .motion-photo,
html.motion-ready:not(.motion-reduced) .page-menu .hero .motion-photo {
    opacity: 1;
    clip-path: none;
    transform: none;
    transition: none;
}

html.motion-ready:not(.motion-reduced) .motion-copy,
html.motion-ready:not(.motion-reduced) .motion-sequence {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity 0.88s ease var(--motion-delay, 0ms),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--motion-delay, 0ms);
}

html.motion-ready:not(.motion-reduced) .motion-copy.motion-visible,
html.motion-ready:not(.motion-reduced) .motion-sequence.motion-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

html.motion-ready:not(.motion-reduced) .page-history .section-title.motion-copy,
html.motion-ready:not(.motion-reduced) .page-menu .category-title.motion-copy {
    opacity: 1;
    transform: none;
    transition: none;
}

html.motion-ready:not(.motion-reduced) .motion-link {
    opacity: 0;
    transform: translate3d(-10px, 16px, 0);
}

html.motion-ready:not(.motion-reduced) .motion-link.motion-visible {
    opacity: 1;
    animation: buttonCallout 1.55s cubic-bezier(0.16, 1, 0.3, 1) var(--motion-delay, 0ms) 2;
}

html.motion-ready:not(.motion-reduced) .motion-parallax > img,
html.motion-ready:not(.motion-reduced) .editorial-gallery .motion-photo > img {
    transform: translate3d(0, var(--motion-y, 0px), 0) scale(var(--motion-scale, 1.055));
    transition: transform 0.18s linear;
}

html.motion-ready:not(.motion-reduced) .intro-image.motion-parallax,
html.motion-ready:not(.motion-reduced) .access-image.motion-parallax {
    background-position: center calc(50% + var(--motion-y, 0px));
}

.content-intro.motion-bg-switch {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.content-intro.motion-bg-switch::before {
    content: "";
    position: absolute;
    inset: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 5vw, 6rem) auto auto;
    z-index: -1;
    width: min(38vw, 500px);
    height: clamp(240px, 34vw, 430px);
    opacity: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.78) contrast(1.05);
    mix-blend-mode: multiply;
    transition:
        opacity 0.8s ease,
        background-image 0.8s ease,
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translate3d(4%, -4%, 0);
    mask-image: radial-gradient(circle at 52% 44%, #000 0 42%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 52% 44%, #000 0 42%, transparent 72%);
}

.content-intro.motion-bg-switch.is-bg-1::before {
    opacity: 0.055;
    background-image: url("../images/editorial/themed/gobo-uron-imagegen.jpg");
}

.content-intro.motion-bg-switch.is-bg-2::before {
    opacity: 0.065;
    background-image: url("../images/editorial/themed/history-wall-art-themed.jpg");
    transform: translate3d(-3%, 8%, 0);
}

.content-intro.motion-bg-switch.is-bg-3::before {
    opacity: 0.065;
    background-image: url("../images/editorial/themed/fan-display-themed.jpg");
    transform: translate3d(2%, 12%, 0);
}

.motion-marquee-section {
    max-width: none;
    padding: 2rem 0 7rem;
    overflow: hidden;
    background: transparent;
}

.motion-marquee-heading {
    max-width: 1180px;
    margin: 0 auto 1.4rem;
    padding: 0 2rem;
    color: var(--accent-gold);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.motion-marquee {
    width: 100%;
    overflow: hidden;
}

.motion-marquee-track {
    display: flex;
    width: max-content;
    min-width: max-content;
    gap: clamp(1rem, 2.4vw, 2.2rem);
    animation: motionMarquee 52s linear infinite;
    will-change: transform;
}

.motion-marquee:hover .motion-marquee-track,
.motion-marquee:focus-within .motion-marquee-track {
    animation-play-state: paused;
}

.motion-marquee-item {
    flex: 0 0 clamp(220px, 29vw, 430px);
    margin: 0;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-light);
}

.motion-marquee-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.04);
    transform: scale(1.035);
}

.motion-marquee-item figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 0.65rem 0.85rem;
    color: #fffdf8;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    background: rgba(31, 32, 29, 0.62);
}

@keyframes heroSlowZoom {
    from {
        transform: scale(1.02);
    }
    to {
        transform: scale(1.12);
    }
}

@keyframes buttonCallout {
    0%,
    100% {
        transform: translate3d(6px, 0, 0);
        box-shadow: 0 10px 26px rgba(71, 52, 28, 0.08);
    }
    42% {
        transform: translate3d(14px, 0, 0);
        box-shadow: 0 18px 42px rgba(71, 52, 28, 0.18);
    }
}

@keyframes motionMarquee {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-33.333333%, 0, 0);
    }
}

/* Sub pages */
.container {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0;
}

.page-history .container,
.page-menu .container {
    padding-top: clamp(1.25rem, 2.4vw, 2.25rem);
}

.page-history .hero,
.page-menu .hero {
    max-width: 1180px;
    padding: clamp(2.5rem, 4.2vw, 4rem) 2rem;
    scroll-margin-top: 112px;
}

.page-history .hero-grid,
.page-menu .hero-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1.52fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.page-history .hero-text,
.page-menu .hero-text {
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-history .hero .fade-in,
.page-history .hero .fade-in-image,
.page-menu .hero .fade-in,
.page-menu .hero .fade-in-image {
    opacity: 1;
    transform: none;
}

.page-history:not(.lang-en) .hero-text h2,
.page-menu:not(.lang-en) .hero-text h2 {
    writing-mode: vertical-rl;
    text-orientation: upright;
    min-height: 8.8em;
    line-height: 1.55;
    font-size: clamp(1.75rem, 2.35vw, 2.15rem);
}

.page-history .hero-text p,
.page-menu .hero-text p {
    color: var(--text-secondary);
    margin-top: 1.2rem;
}

.page-history .hero-image,
.page-menu .hero-image {
    height: clamp(300px, 36vw, 460px);
    position: relative;
    overflow: hidden;
}

.page-history .hero-image::before,
.page-menu .hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(33, 31, 27, 0.14), transparent 32%),
        linear-gradient(180deg, transparent 55%, rgba(33, 31, 27, 0.2));
}

.page-history .hero-image img,
.page-menu .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.04);
}

.page-history section[aria-labelledby="history-detail-title"] {
    width: 100%;
    max-width: 1180px;
    overflow: visible;
}

.page-history section[aria-labelledby="history-detail-title"] .section-title,
.page-menu .menu-section .category-title {
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border-bottom: 1px solid var(--border-medium);
    padding-bottom: 1rem;
    margin-bottom: 2.4rem;
}

.page-history .section-title.fade-in,
.page-menu .category-title.fade-in {
    opacity: 1;
    transform: none;
}

.page-history section[aria-labelledby="history-detail-title"] .section-title {
    display: block;
}

.page-history section[aria-labelledby="history-detail-title"] .section-title .sub {
    display: block;
    margin-top: 0.45rem;
}

.page-history section[aria-labelledby="history-detail-title"] > h3 {
    margin-top: 2.8rem;
    margin-bottom: 1.1rem;
    padding-left: 1rem;
    padding-bottom: 0.65rem;
    border-left: 2px solid var(--accent-gold);
    font-size: 1.45rem;
    letter-spacing: 0.12em;
    line-height: 1.6;
}

.page-history section[aria-labelledby="history-detail-title"] > h3::before {
    bottom: 0;
}

.page-history section[aria-labelledby="history-detail-title"] .section-title + h3 {
    margin-top: 2.1rem;
}

.page-history section[aria-labelledby="history-detail-title"] > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 2.15;
}

.page-history section[aria-labelledby="history-detail-title"] .grid-2 {
    margin: 4.5rem 0 !important;
    gap: clamp(1.5rem, 4vw, 3.8rem);
}

.page-history .photo {
    height: min(55vw, 460px);
    position: relative;
    overflow: hidden;
    background: rgba(255, 253, 248, 0.46);
}

.page-history .photo img,
.page-menu .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.04);
}

.page-history .photo::after,
.page-menu .photo::after,
.page-home .intro-image::after,
.access-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.02), rgba(33, 31, 27, 0.08));
}

.page-history .photo img[src*="noodle-kneading"] {
    object-position: center 42%;
}

.page-history .photo img[src*="karo_外観"],
.page-home .editorial-gallery .photo img[src*="karo_外観"] {
    object-position: center 58%;
}

.photo img[src*="gobo-uron-imagegen"],
.hero-image img[src*="gobo-uron-imagegen"] {
    filter: saturate(1.06) contrast(1.04);
}

.page-history .photo img[src*="framed-fuku-oni"],
.page-history .photo img[src*="inari-sushi"] {
    object-position: center 38%;
}

.page-menu .hero-image img,
.page-home .intro-image {
    background-position: center;
}

.page-menu .menu-section {
    width: 100%;
    max-width: 1180px;
    padding-top: 4.4rem;
    padding-bottom: 4.4rem;
    overflow: visible;
}

.page-menu .category-title {
    border-bottom: 1px solid var(--border-medium);
    padding-bottom: 1rem;
}

.page-menu .category-title h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.page-menu .menu-list {
    width: 100%;
    max-width: 100%;
    background: rgba(255, 253, 248, 0.52);
    border-top: 1px solid rgba(169, 130, 65, 0.22);
    border-bottom: 1px solid rgba(169, 130, 65, 0.22);
}

.page-menu .menu-item {
    background: transparent;
    border-bottom: 1px solid rgba(119, 81, 59, 0.16);
    box-shadow: none;
    padding: 1.35rem 0.8rem;
    opacity: 1;
    transform: none;
}

.page-menu .menu-item:hover {
    background: rgba(169, 130, 65, 0.06);
    transform: none;
}

.page-menu .menu-name {
    color: var(--text-primary);
    letter-spacing: 0.1em;
}

.page-menu .menu-description {
    color: var(--text-muted);
}

.page-menu .menu-price {
    color: var(--accent-copper);
    min-width: 5.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.page-menu .badge {
    color: #fffdf8;
    background: var(--accent-gold);
    border: 0;
    border-radius: 0;
}

.page-menu .access,
.page-menu .map-section,
.page-menu .gallery {
    max-width: 1180px;
}

@media (prefers-reduced-motion: reduce) {
    .page-home .hero::before {
        animation: none;
        transform: none;
    }

    .motion-marquee-track {
        animation: none;
        transform: none;
    }

    .motion-photo,
    .motion-copy,
    .motion-link,
    .motion-sequence,
    .motion-parallax > img {
        clip-path: none !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    .content-intro.motion-bg-switch::before {
        display: none;
    }
}

@media (max-width: 900px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transition:
            transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
            background 0.3s ease,
            box-shadow 0.3s ease;
        will-change: transform;
    }

    .header.header-hidden {
        transform: translate3d(0, calc(-100% - 16px), 0);
        pointer-events: none;
    }

    .page-history .container,
    .page-menu .container {
        padding-top: clamp(5.5rem, 18vw, 6.5rem);
    }

    #access,
    .page-history .hero,
    .page-menu .hero {
        scroll-margin-top: 96px;
    }

    section,
    .container > section {
        padding: 5rem 1.35rem;
    }

    .page-home .hero-content {
        text-align: center;
    }

    .page-home .hero-title {
        letter-spacing: 0.14em;
    }

    .page-home .intro-item,
    .page-home .intro-item:nth-child(even),
    .page-history .hero-grid,
    .page-menu .hero-grid,
    .access-content,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .page-home .intro-item:nth-child(even) .intro-content {
        order: 1;
        justify-self: start;
    }

    .page-home .intro-item:nth-child(even) .intro-image {
        order: 2;
    }

    .page-home:not(.lang-en) .intro-content h3,
    .page-history:not(.lang-en) .hero-text h2,
    .page-menu:not(.lang-en) .hero-text h2 {
        writing-mode: horizontal-tb;
        min-height: 0;
    }

    .page-history:not(.lang-en) .hero-text h2 {
        font-size: clamp(1.3rem, 5vw, 1.72rem);
        line-height: 1.65;
        letter-spacing: 0.04em;
    }

    .page-history:not(.lang-en) .hero-text h2 .hero-title-kicker,
    .page-history:not(.lang-en) .hero-text h2 .hero-title-line {
        display: block;
    }

    .page-history:not(.lang-en) .hero-text h2 .hero-title-kicker {
        margin-bottom: 0.12rem;
        font-size: clamp(1.35rem, 5.8vw, 1.85rem);
    }

    .page-history:not(.lang-en) .hero-text h2 .hero-title-line {
        white-space: nowrap;
        font-size: clamp(1.08rem, 4.65vw, 1.55rem);
    }

    .page-history .hero-image,
    .page-menu .hero-image,
    .page-home .intro-image,
    .access-image,
    .photo {
        height: auto;
        min-height: 240px;
        aspect-ratio: 4 / 3;
    }

    .editorial-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas: none;
        width: min(100%, 430px);
        margin-inline: auto;
        gap: 1.4rem;
        justify-items: center;
    }

    .editorial-gallery .photo,
    .editorial-gallery .photo:nth-child(1),
    .editorial-gallery .photo:nth-child(2),
    .editorial-gallery .photo:nth-child(3) {
        grid-area: auto;
        grid-column: auto;
        grid-row: auto;
        width: 100%;
        max-width: 430px;
        justify-self: center;
        min-height: 240px;
        margin-left: 0;
        aspect-ratio: 4 / 3;
    }

    .motion-marquee-section {
        padding: 1rem 0 5rem;
    }

    .motion-marquee-heading {
        padding: 0 1.35rem;
    }

    .motion-marquee-item {
        flex-basis: clamp(190px, 64vw, 320px);
    }

    .page-menu .menu-item {
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .header {
        padding: 14px 18px;
    }

    .page-home .hero {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
    }

    .page-home .hero::before {
        inset: 0;
        background-position: center center;
        transform: scale(1.04);
    }

    .page-home .hero-title {
        font-size: 2.35rem;
    }

    .page-home .hero-subtitle {
        font-size: 0.92rem;
    }

    .intro-lead {
        margin-bottom: 4rem;
    }

    .page-home .intro-grid {
        gap: 5rem;
    }

    .section-title,
    .category-title {
        margin-bottom: 2.2rem;
    }

    .page-history #access .section-title {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 1rem;
        row-gap: 0.35rem;
    }

    .page-history #access .section-title h3 {
        white-space: nowrap;
        font-size: clamp(1.25rem, 5.2vw, 1.55rem);
    }

    .page-history #access .section-title .sub {
        min-width: 0;
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .page-history section[aria-labelledby="history-detail-title"] > h3 {
        margin-top: 2.15rem;
        padding-bottom: 0.55rem;
        font-size: clamp(1.08rem, 4.4vw, 1.26rem);
        line-height: 1.58;
        letter-spacing: 0.06em;
    }

    .page-history section[aria-labelledby="history-detail-title"] .section-title + h3 {
        margin-top: 1.55rem;
    }

    .page-menu .menu-item {
        padding: 1.2rem 0.4rem;
    }

    .page-menu .menu-details {
        align-items: flex-end;
    }

    .page-menu .menu-price {
        min-width: auto;
    }
}

/* ===========================================================
 * 共通ポリッシュ: ヘッダー / フッター / ハンバーガー
 * 各ページのインライン CSS に被せる形で、ホバー下線・スティッキー
 * 縮小・モバイルオーバーレイのスライドインを統一する。
 * =========================================================== */

/* ---- ヘッダー: スクロール時はわずかに縮めて、より控えめに ---- */
.header {
    transition:
        background-color 0.55s var(--akagi-ease-soft, cubic-bezier(0.22, 0.61, 0.36, 1)),
        backdrop-filter 0.55s var(--akagi-ease-soft, cubic-bezier(0.22, 0.61, 0.36, 1)),
        padding 0.45s var(--akagi-ease-soft, cubic-bezier(0.22, 0.61, 0.36, 1)),
        box-shadow 0.55s var(--akagi-ease-soft, cubic-bezier(0.22, 0.61, 0.36, 1));
}

.header.scrolled {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* ---- ナビ・フッターのホバー下線: 中央から伸びる柔らかい線 ---- */
.nav a,
.footer-nav a {
    transition: color 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav a::after,
.footer-nav a::after {
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: 50% 50%;
    transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    opacity: 0.85;
}

.nav a:hover::after,
.nav a:focus-visible::after,
.footer-nav a:hover::after,
.footer-nav a:focus-visible::after {
    transform: scaleX(1);
}

/* ---- ハンバーガー: 線も柔らかく ---- */
.menu-toggle span {
    transition:
        transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
        background-color 0.4s ease;
}

/* ---- モバイルオーバーレイ: スライドインを上品に ---- */
.mobile-overlay {
    transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mobile-overlay li {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.mobile-overlay.active li {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.mobile-overlay.active li:nth-child(1) { transition-delay: 0.12s; }
.mobile-overlay.active li:nth-child(2) { transition-delay: 0.20s; }
.mobile-overlay.active li:nth-child(3) { transition-delay: 0.28s; }
.mobile-overlay.active li:nth-child(4) { transition-delay: 0.36s; }
.mobile-overlay.active li:nth-child(5) { transition-delay: 0.44s; }
.mobile-overlay.active li:nth-child(6) { transition-delay: 0.52s; }

/* ---- フッターナビの間隔と打ち消し ---- */
.footer-nav ul {
    gap: 2.4rem;
}

.footer-nav a {
    padding: 4px 2px;
}

@media (prefers-reduced-motion: reduce) {
    .header,
    .nav a,
    .nav a::after,
    .footer-nav a,
    .footer-nav a::after,
    .menu-toggle span,
    .mobile-overlay,
    .mobile-overlay li {
        transition: none !important;
    }
}
