/*
Theme Name: 隠れ家 咲
Theme URI: https://example.com/
Author: Sho
Author URI: https://example.com/
Description: 和食と鉄板の飲食店向けのレスポンシブテーマです。
Version: 1.0
Text Domain: mytheme
*/

:root {
    --bg: #f4ede3;
    --bg-soft: #fbf7f1;
    --text: #2f231b;
    --heading: #3d2717;
    --accent: #9e5c32;
    --accent-deep: #6e4020;
    --card: rgba(255, 253, 249, 0.94);
    --border: #d7c3a7;
    --shadow: 0 18px 42px rgba(60, 38, 20, 0.08);
    --hero-overlay: rgba(29, 17, 8, 0.62);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    background:
        radial-gradient(circle at top, rgba(208, 177, 139, 0.25), transparent 30%),
        linear-gradient(180deg, #f7f1e8 0%, #f2e9dc 100%);
    color: var(--text);
    line-height: 1.75;
}

a {
    color: inherit;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(var(--hero-overlay), rgba(29, 17, 8, 0.78)),
        url("images/misegamae.jpeg") center/cover;
    color: #fff;
    padding: 24px 20px 120px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255,255,255,0.10), transparent 35%, rgba(255,255,255,0.04)),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08), transparent 20%);
    pointer-events: none;
    animation: sheen 10s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.25) 100%);
    pointer-events: none;
}

.topbar {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto 72px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    background: rgba(17, 12, 9, 0.22);
}

.nav-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    font-size: 0.94rem;
    opacity: 0.95;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    animation: fadeUp 1.2s cubic-bezier(.21,.72,.27,1) both;
}

.eyebrow,
.section-label {
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin: 0 0 10px;
}

.hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.4rem);
    font-family: Georgia, "Times New Roman", serif;
    margin: 0 0 12px;
    letter-spacing: 0.04em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.26);
    animation: fadeUp 1.4s cubic-bezier(.21,.72,.27,1) both;
}

.lead {
    max-width: 720px;
    font-size: 1.08rem;
    margin: 0;
}

.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn:hover,
.nav-links a:hover,
.tel-link:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(158, 92, 50, 0.32);
    animation: pulse 2.4s infinite;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    color: var(--accent-deep);
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 20px;
}

.section.alt {
    background: linear-gradient(180deg, #fffdf9 0%, #fbf6ee 100%);
}

.section.alt#menu {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(247, 236, 219, 0.74), rgba(239, 229, 210, 0.84)),
        url("images/top-garden-inside.jpeg") center/cover no-repeat;
}

.section.alt#menu::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.22), transparent 42%),
        linear-gradient(135deg, rgba(80, 44, 20, 0.14), transparent 55%);
    pointer-events: none;
}

.section-title {
    margin-bottom: 28px;
}

.section-title h2 {
    margin: 0;
    color: var(--heading);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-family: Georgia, "Times New Roman", serif;
}

.story-grid,
.menu-grid,
.reservation-grid,
.map-grid {
    display: grid;
    gap: 18px;
}

.gallery-marquee {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.gallery-track {
    display: flex;
    gap: 18px;
    width: max-content;
    min-width: max-content;
    padding-right: 18px;
    animation: marquee 30s linear infinite;
    will-change: transform;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-item {
    width: min(340px, 80vw);
    flex: 0 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.gallery-item.story-card,
.gallery-item.story-card:hover {
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
}

.gallery-item:nth-child(odd) img {
    transform: translateY(14px);
}

.gallery-item:nth-child(even) img {
    transform: translateY(-14px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    border: 0;
    outline: none;
}

.menu-grid {
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    z-index: 1;
}

.reservation-grid {
    grid-template-columns: repeat(2, 1fr);
}

.map-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
}

.story-card,
.menu-item,
.contact-card,
.info-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.35s cubic-bezier(.21,.72,.27,1), box-shadow 0.35s cubic-bezier(.21,.72,.27,1), border-color 0.35s ease;
}

.story-card:hover,
.menu-item:hover,
.contact-card:hover,
.info-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 44px rgba(60, 38, 20, 0.14);
    border-color: rgba(158, 92, 50, 0.56);
}

.story-card h3,
.menu-item h3,
.contact-card h3,
.info-box h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.menu-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 14px;
    display: block;
}

.menu-badge {
    display: inline-block;
    background: #f1dfc8;
    color: var(--accent-deep);
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.tel-link {
    text-decoration: none;
    font-weight: 700;
}

.info-box ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.map-frame iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 18px;
}

.reveal {
    opacity: 0;
    transform: translateY(34px) scale(0.98);
    filter: blur(8px);
    transition: opacity 1.15s cubic-bezier(.21,.72,.27,1), transform 1.15s cubic-bezier(.21,.72,.27,1), filter 1.15s cubic-bezier(.21,.72,.27,1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sheen {
    0%, 100% {
        transform: translateX(-6%);
        opacity: 0.36;
    }
    50% {
        transform: translateX(6%);
        opacity: 0.72;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 18px rgba(158, 92, 50, 0.32);
    }
    50% {
        box-shadow: 0 12px 26px rgba(158, 92, 50, 0.5);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .topbar {
        justify-content: flex-start;
        margin-bottom: 44px;
    }

    .story-grid,
    .menu-grid,
    .reservation-grid,
    .map-grid {
        grid-template-columns: 1fr;
    }

    .gallery-marquee {
        overflow-x: auto;
        display: block;
        scroll-snap-type: x mandatory;
        mask-image: none;
    }

    .gallery-track {
        animation: none;
        width: max-content;
        padding-right: 0;
    }

    .gallery-item {
        width: min(78vw, 340px);
        scroll-snap-align: start;
    }

    .gallery-item:nth-child(odd) img,
    .gallery-item:nth-child(even) img {
        transform: translateY(0);
    }

    .hero {
        padding: 18px 16px 88px;
    }

    .section {
        padding: 44px 16px;
    }
}