@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    --color-base: #F5F0E6;
    /* 生成り色・和紙 */
    --color-main: #5D4037;
    /* 深みのあるダークブラウン */
    --color-accent: #E65100;
    /* みたらし色 */
    --color-accent-soft: #A1887F;
    /* くすみ系のモカブラウン */
    --color-text: #4E342E;
    --color-text-light: #F5F0E6;

    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-base);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.section-title {
    margin-bottom: 60px;
}

.section-title .en {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent-soft);
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--color-main);
    line-height: 1.3;
}

/* Header */
#header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(93, 64, 55, 0.05);
    transition: background-color 0.3s, backdrop-filter 0.3s;
}

#header.scrolled {
    background-color: rgba(93, 64, 55, 0.9);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    color: var(--color-main);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    /* 防止店名はみだし */
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }

    .header-inner {
        padding: 0 15px;
    }
}

#header.scrolled .logo,
#header.scrolled .nav a {
    color: var(--color-text-light);
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-main);
    transition: all 0.3s;
}

.menu-toggle::before {
    top: 0;
}

.menu-toggle span {
    top: 9px;
}

.menu-toggle::after {
    bottom: 0;
}

#header.scrolled .menu-toggle span,
#header.scrolled .menu-toggle::before,
#header.scrolled .menu-toggle::after {
    background-color: var(--color-text-light);
}

/* Active State (X mark) */
.menu-toggle.active::before {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--color-text-light) !important;
}

.menu-toggle.active span {
    opacity: 0;
}

.menu-toggle.active::after {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--color-text-light) !important;
}

/* Navigation - Desktop Default */
.nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--color-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.3s, color 0.3s;
}

.nav a:hover {
    opacity: 0.6;
}

.instagram-icon {
    display: flex;
    align-items: center;
}

.instagram-icon svg {
    transition: transform 0.3s;
}

.instagram-icon:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-main);
        transition: right 1s cubic-bezier(0.19, 1, 0.22, 1);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1050;
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav a {
        color: var(--color-text-light);
        font-size: 1.5rem;
        letter-spacing: 0.2em;
    }
}

/* Hero */
#hero {
    min-height: 100dvh;
    /* dvhを使用してモバイルのUIバーに対応 */
    padding: 100px 24px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-frame {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    min-height: min(800px, 80dvh);
    /* フレーム自体の最大・最小高さを制限 */
    border: 12px solid var(--color-main);
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.hero-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-base);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.3;
    color: var(--color-main);
    margin-bottom: 24px;
}

.hero-catch {
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 400;
    color: var(--color-accent);
    letter-spacing: 0.5em;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0.9;
}

.hero-catch::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background-color: var(--color-accent);
    opacity: 0.2;
}

.hero-image {
    background-color: #eee;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: calc(50% - 100px) center;
    /* 中心から左へ100pxの位置を焦点に */
    transition: transform 1s ease-out;
}

#hero.is-visible .hero-image img {
    transform: scale(1);
}

#hero .hero-image img {
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .hero-frame {
        grid-template-columns: 1fr;
        grid-template-rows: auto 70vh;
        /* 縦の長さを可能な限りキープ(50vhから向上) */
        min-height: 80vh;
    }

    .hero-title {
        font-size: clamp(1.4rem, 8vw, 2.2rem);
    }

    .hero-content {
        padding: 44px 24px;
    }
}

/* Concept */
.concept-inner {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
}

.concept-text-vertical {
    writing-mode: vertical-rl;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-accent-soft);
    letter-spacing: 0.5em;
    line-height: 1.5;
}

.concept-text-horizontal {
    max-width: 600px;
}

.concept-text-horizontal p {
    margin-bottom: 24px;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .concept-inner {
        flex-direction: column-reverse;
        gap: 40px;
        align-items: flex-start;
    }

    .concept-text-vertical {
        writing-mode: horizontal-tb;
        font-size: 1.5rem;
        letter-spacing: 0.2em;
    }
}

/* Menu */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.menu-card {
    background: white;
    border: 1px solid rgba(93, 64, 55, 0.1);
    transition: transform 0.4s ease, border-color 0.4s;
    overflow: hidden;
}

.menu-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
}

.menu-img {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #eee;
    overflow: hidden;
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-info {
    padding: 30px;
}

.menu-info h3 {
    font-size: 1.35rem;
    color: var(--color-main);
    margin-bottom: 12px;
}

.menu-info p {
    font-size: 0.95rem;
    color: #777;
}

.menu-package-highlight {
    display: flex;
    background-color: var(--color-main);
    color: var(--color-text-light);
    margin-top: 60px;
    align-items: center;
}

.package-content {
    flex: 1;
    padding: 60px;
}

.package-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.package-img {
    flex: 1;
    height: 400px;
    background-color: #444;
    overflow: hidden;
}

.package-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .menu-package-highlight {
        flex-direction: column;
    }

    .package-content {
        padding: 40px;
    }

    .package-img {
        width: 100%;
        height: 250px;
    }
}

/* Space */
.section-desc {
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: var(--color-accent-soft);
}

.space-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.gallery-item {
    background-color: #ddd;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {
    .space-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .gallery-item {
        height: 200px;
    }

    .gallery-item.large {
        grid-column: span 2;
        height: 300px;
    }
}

/* Access */
.access-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.access-info dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px 0;
    margin-bottom: 40px;
}

.access-info dt {
    font-weight: 700;
    color: var(--color-main);
}

.access-info dd {
    color: var(--color-text);
}

.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid var(--color-main);
    color: var(--color-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--color-main);
    color: var(--color-text-light);
}

.access-map #map {
    width: 100%;
    height: 450px;
    background-color: #e0dcd5;
    /* Styled map placeholder */
    border: 1px solid rgba(93, 64, 55, 0.1);
}

@media (max-width: 900px) {
    .access-content {
        grid-template-columns: 1fr;
    }

    .access-map #map {
        height: 300px;
    }
}

/* Footer */
#footer {
    padding: 80px 0;
    background-color: var(--color-main);
    color: var(--color-text-light);
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 30px;
    letter-spacing: 0.2em;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

.delay-5 {
    transition-delay: 1.0s;
}

.delay-6 {
    transition-delay: 1.2s;
}