:root {
    --bg: #f7f4ef;
    --accent: #c8553d;
    --accent-dark: #8b3e2e;
    --text: #1a1a1a;
    --muted: #6b5d4f;
    --card: #ffffff;
    --radius: 0.5rem;
    --max: 1100px;
    --washi: #f5f1e8;
    --shu: #c8553d;
    --sumi: #1a1a1a;
    --cha: #8b6f47;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
    background: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(200, 85, 61, 0.015) 2px, rgba(200, 85, 61, 0.015) 4px);
    color: var(--text);
    line-height: 2;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    background: rgba(247, 244, 239, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 8px rgba(200, 85, 61, 0.1);
    border-bottom: 1px solid rgba(200, 85, 61, 0.15);
    animation: fadeInDown 0.8s ease-out;
    transition: all 0.3s ease;
}

.header:hover {
    background: rgba(247, 244, 239, 0.98);
    box-shadow: 0 2px 12px rgba(200, 85, 61, 0.12);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 1.5rem;
    gap: 1.5rem;
}

.header-left {
    flex: 0 0 auto;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-right {
    flex: 0 0 auto;
}

.header-logo {
    max-width: 90px;
    height: auto;
    filter: drop-shadow(0 1px 3px rgba(200, 85, 61, 0.25));
    transition: all 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 2px 6px rgba(200, 85, 61, 0.35));
}

.flag-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.flag {
    width: 70px;
    height: 44px;
    border-radius: 4px;
    border: 1px solid rgba(200, 85, 61, 0.25);
    box-shadow: 0 1px 3px rgba(200, 85, 61, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.flag:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(200, 85, 61, 0.15);
    border-color: rgba(200, 85, 61, 0.4);
}

.flag-japan {
    background: white;
}

.flag-japan::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #c8102e;
    transform: translate(-50%, -50%);
}

.flag-philippines {
    background: linear-gradient(to bottom, #0038a8 0%, #0038a8 50%, #ce1126 50%, #ce1126 100%);
}

.flag-philippines::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 22px 26px 22px 0;
    border-color: #ffffff transparent #ffffff transparent;
}

.flag-philippines::after {
    content: '★';
    position: absolute;
    left: 15%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #ffdd00;
    font-size: 1.4rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: transparent;
    color: var(--accent-dark);
    border: 1px solid rgba(200, 85, 61, 0.3);
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    font-family: "Noto Serif JP", serif;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(200, 85, 61, 0.1);
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.lang-btn:hover::before {
    width: 100%;
    height: 100%;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(200, 85, 61, 0.08);
}

.lang-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 4px rgba(200, 85, 61, 0.25);
}

.lang-btn.active::before {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #d4a574 0%, #c8553d 40%, #6b3e2e 80%, #3d2418 100%);
    color: #fff;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.02) 10px, rgba(255, 255, 255, 0.02) 20px),
        radial-gradient(circle at 30% 50%, rgba(255, 200, 150, 0.1) 0%, transparent 50%);
    opacity: 0.6;
    animation: shimmer 30s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10px, 10px);
    }
}

.hero-inner {
    max-width: 600px;
    text-align: left;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-tag {
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: 0.6rem;
    opacity: .9;
    margin-bottom: 0.8rem;
}

.hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin: 0.8rem 0 0.3rem;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-sub {
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.hero p {
    max-width: 40rem;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.btn-primary {
    display: inline-block;
    margin-top: 1rem;
    background: #fff;
    color: var(--accent);
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    border: 1px solid rgba(199, 62, 29, 0.2);
    transition: all 0.3s ease;
    font-family: "Noto Serif JP", serif;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    background: rgba(255, 255, 255, 0.95);
}

/* Top Image Section */
.top-image-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    position: relative;
}

.top-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(200, 85, 61, 0.15);
    border: 1px solid rgba(200, 85, 61, 0.2);
    background: var(--card);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-image-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(200, 85, 61, 0.25);
    border-color: rgba(200, 85, 61, 0.3);
}

.top-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.top-image-wrapper:hover .top-image {
    transform: scale(1.02);
}

/* Video Section */
.video-section {
    max-width: 800px;
    margin: 3rem auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(199, 62, 29, 0.1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.volume-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.volume-toggle:hover {
    transform: scale(1.1);
}

.volume-icon {
    display: block;
}

.volume-slider {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Main */
main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 5rem;
}

section {
    margin-bottom: 3.2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--accent-dark);
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(200, 85, 61, 0.25);
    letter-spacing: 0.05em;
}

/* Concept Block */
.concept-block {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem 2rem 2.2rem;
    box-shadow: 0 2px 8px rgba(200, 85, 61, 0.08);
    border: 1px solid rgba(200, 85, 61, 0.15);
    position: relative;
}

.concept-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    border-radius: 2px 0 0 2px;
}

.concept-block small {
    display: inline-block;
    background: rgba(200, 85, 61, 0.12);
    padding: .4rem .8rem;
    border-radius: 4px;
    color: var(--accent-dark);
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(200, 85, 61, 0.25);
}

/* Menu List Container */
.menu-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 100%;
    width: 100%;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

/* 全ての画像にサイズ制限を適用 */
img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* 特に大きな画像を防ぐ - ただし既にクラス指定がある画像は除外 */
section img:not([class]) {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.menu-list-item-full {
    grid-column: 1 / -1;
    max-width: 100%;
}

.menu-list-item {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(200, 85, 61, 0.08);
    border: 1px solid rgba(200, 85, 61, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.menu-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(200, 85, 61, 0.15);
    border-color: rgba(200, 85, 61, 0.35);
}

.menu-list-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.menu-list-item:hover .menu-list-image {
    transform: scale(1.05);
}

/* Menu Photos Grid */
.menu-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
    max-width: 100%;
    width: 100%;
}

.menu-photo {
    width: 100%;
    max-width: 100%;
    height: 250px;
    max-height: 250px;
    min-height: 250px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(200, 85, 61, 0.1);
    border: 1px solid rgba(200, 85, 61, 0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    overflow: hidden;
}

.menu-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(200, 85, 61, 0.18);
    border-color: rgba(200, 85, 61, 0.35);
}

/* Menu Modal */
.menu-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.menu-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.menu-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.menu-modal-content {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(200, 85, 61, 0.3);
    border: 1px solid rgba(200, 85, 61, 0.25);
    animation: slideUp 0.3s ease;
    z-index: 2001;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.menu-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2002;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-modal-close:hover {
    background: var(--accent);
    color: #fff;
    transform: rotate(90deg);
}

.menu-modal-image {
    width: 100%;
    max-width: 100%;
    height: 300px;
    max-height: 300px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: object-fit 0.3s ease;
    box-sizing: border-box;
}

.menu-modal-image[style*="object-fit: contain"] {
    padding: 1rem;
    background: var(--bg);
}

.menu-modal-info {
    padding: 2rem;
}

.menu-modal-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.menu-modal-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin: 0;
}

/* Story Grid */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}

.card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(200, 85, 61, 0.18);
    box-shadow: 0 2px 8px rgba(200, 85, 61, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(200, 85, 61, 0.15);
    border-color: rgba(200, 85, 61, 0.3);
}

.card-image {
    width: 100%;
    max-width: 100%;
    height: 200px;
    max-height: 200px;
    object-fit: cover;
    display: block;
    box-sizing: border-box;
}

.card h3 {
    margin-top: .2rem;
    margin-bottom: .6rem;
    font-size: 1.05rem;
    padding: 0 1.4rem;
}

.card p {
    padding: 0 1.4rem 1.3rem;
}

.badge {
    display: inline-block;
    background: rgba(200, 85, 61, 0.12);
    padding: .35rem .8rem;
    border-radius: 4px;
    font-size: .65rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: .5rem;
    margin-left: 1.4rem;
    margin-top: 1rem;
    border: 1px solid rgba(200, 85, 61, 0.25);
    font-weight: 500;
}

/* Location */
.location {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem 2rem 2.2rem;
    box-shadow: 0 2px 8px rgba(200, 85, 61, 0.08);
    border: 1px solid rgba(200, 85, 61, 0.18);
    position: relative;
}

.location::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    border-radius: 2px 0 0 2px;
}

.hours {
    margin: 1rem 0;
    padding: 1.2rem;
    background: rgba(200, 85, 61, 0.08);
    border-radius: 4px;
    border: 1px solid rgba(200, 85, 61, 0.18);
    border-left: 3px solid var(--accent);
}

.hours-title {
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.hours-content {
    margin: 0;
    line-height: 1.8;
    color: var(--text);
}

.hours-content small {
    color: var(--muted);
    font-size: 0.85rem;
}

.map-button {
    display: inline-block;
    margin-top: 1rem;
    background: var(--accent);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(200, 85, 61, 0.35);
    transition: all 0.3s ease;
    border: 1px solid var(--accent-dark);
    cursor: pointer;
    font-family: "Noto Serif JP", serif;
}

.map-button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 85, 61, 0.45);
}

.phone-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Photo Gallery Slider */
.photo-gallery {
    padding: 2rem 0 0.5rem;
    overflow: hidden;
    background: var(--bg);
    margin-bottom: 1rem;
}

.gallery-slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.gallery-slider-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    cursor: grab;
    touch-action: pan-y;
    /* Allow vertical scroll, handle horizontal in JS/Native */
    padding: 0 1.5rem;
    overflow-x: hidden;
    /* We handle scroll via JS for desktop drag, but let's see */
}

.gallery-slider-track:active {
    cursor: grabbing;
}

.gallery-slide {
    flex: 0 0 auto;
    width: 280px;
    height: 380px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    user-select: none;
}

.gallery-slide:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 24px rgba(200, 85, 61, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    pointer-events: none;
    /* Prevent image dragging interfering with slider drag */
}

.gallery-slide:hover .gallery-image {
    transform: scale(1.1);
}

/* Slider Controls */
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Let clicks pass through if hidden */
}

.gallery-slider-container:hover .slider-controls {
    opacity: 1;
    pointer-events: auto;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(200, 85, 61, 0.2);
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .gallery-slide {
        width: 350px;
        height: 450px;
    }
}

/* Footer */
footer {
    background: #2a241f;
    color: #e8e0d6;
    text-align: center;
    padding: 2.5rem 1.5rem 3rem;
    border-top: 1px solid rgba(200, 85, 61, 0.25);
}

footer p {
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(200, 85, 61, 0.45);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

footer small {
    opacity: .6;
    font-size: .75rem;
}

/* Responsive */
@media (max-width: 900px) {
    .header-container {
        flex-direction: row;
        gap: 1rem;
        padding: 0.4rem 1rem;
    }

    .header-left {
        flex: 0 0 auto;
    }

    .header-center {
        flex: 1;
        justify-content: center;
    }

    .header-right {
        flex: 0 0 auto;
    }

    .flag-container {
        gap: 12px;
    }

    .flag {
        width: 50px;
        height: 31px;
    }

    .flag-japan::after {
        width: 16px;
        height: 16px;
    }

    .flag-philippines::before {
        border-width: 15.5px 18px 15.5px 0;
    }

    .flag-philippines::after {
        font-size: 1rem;
    }

    .header-logo {
        max-width: 70px;
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: 35vh;
        padding: 1.5rem 1rem;
    }

    .header-container {
        padding: 0.4rem 0.8rem;
        gap: 0.8rem;
    }

    .flag {
        width: 45px;
        height: 28px;
    }

    .flag-philippines::after {
        font-size: 0.9rem;
    }

    .flag-japan::after {
        width: 14px;
        height: 14px;
    }

    .flag-philippines::before {
        border-width: 14px 16px 14px 0;
    }

    .header-logo {
        max-width: 60px;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .menu-list-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .menu-list-item-full {
        grid-column: 1;
    }

    .menu-photos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .menu-photo {
        height: 180px;
        max-height: 180px;
        width: 100%;
    }

    .menu-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .menu-modal-image {
        height: 250px;
    }

    .menu-modal-image[style*="object-fit: contain"] {
        padding: 0.5rem;
        max-height: 60vh;
    }

    .menu-modal-info {
        padding: 1.5rem;
    }

    .menu-modal-name {
        font-size: 1.3rem;
    }

    .menu-modal-desc {
        font-size: 0.9rem;
    }

    .lang-btn {
        padding: 3px 8px;
        font-size: 0.65rem;
    }

    .language-switcher {
        gap: 5px;
    }

    .top-image-section {
        padding: 2rem 1rem;
    }

    .video-section {
        margin: 2rem 1rem;
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 0.8rem;
    }

    .gallery-item-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.4rem 0.6rem;
        gap: 0.6rem;
    }

    .header-logo {
        max-width: 50px;
    }

    .flag {
        width: 40px;
        height: 25px;
    }

    .flag-container {
        gap: 8px;
    }

    .flag-philippines::after {
        font-size: 0.8rem;
    }

    .flag-japan::after {
        width: 12px;
        height: 12px;
    }

    .flag-philippines::before {
        border-width: 12.5px 14px 12.5px 0;
    }

    .lang-btn {
        padding: 3px 6px;
        font-size: 0.6rem;
    }

    .language-switcher {
        gap: 4px;
    }

    .video-controls {
        bottom: 10px;
        right: 10px;
        padding: 6px 10px;
    }

    .volume-slider {
        width: 80px;
    }

    .menu-list-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .menu-photo {
        height: 160px;
        max-height: 160px;
    }

    .menu-photos-grid {
        gap: 0.8rem;
    }

    .menu-modal-image[style*="object-fit: contain"] {
        padding: 0.5rem;
        max-height: 50vh;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-link svg {
        width: 18px;
        height: 18px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
        gap: 0.6rem;
    }

    .gallery-item-large,
    .gallery-item-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
}