@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Zen+Maru+Gothic:wght@400;500;700&display=swap');

:root {
    --primary-dark: #000000;
    --primary-medium: #333333;
    --primary-light: #666666;
    --accent: #999999;
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #f5f5f5;
    --text-dark: #000000;
    --text-light: #ffffff;
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Zen Maru Gothic', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-dark);
    line-height: 1.7;
    min-height: 100vh;
}

header {
    background-image: url('images/izakaya.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

header > * {
    position: relative;
    z-index: 2;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

header p {
    font-size: 1.2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 18px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: var(--text-light);
    margin: 0 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 12px 24px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 25px 100px;
}

section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

section h2 {
    color: var(--primary-medium);
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 4px solid var(--primary-light);
    font-weight: 700;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-dark);
    border-radius: 2px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.menu-item {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: var(--radius-md);
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}

.menu-item h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.menu-item p {
    color: var(--primary-medium);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.menu-item img[src=""],
.menu-item img:not([src]) {
    display: none;
}

.menu-item:not(:has(img))::after,
.menu-item:has(img[src=""])::after {
    content: '画像なし';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
    border-radius: var(--radius-sm);
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.info-item {
    margin: 20px 0;
    padding: 18px 22px;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border-left: 5px solid var(--primary-dark);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
    transform: translateX(5px);
}

#contact p {
    margin: 20px 0;
    font-size: 1.1rem;
}

#contact a {
    color: var(--primary-medium);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid var(--primary-medium);
    transition: all 0.3s ease;
    padding: 2px 4px;
}

#contact a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.instagram-placeholder {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.instagram-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.instagram-placeholder p:first-child {
    font-size: 3rem;
    margin-bottom: 15px;
}

.instagram-text {
    font-size: 1.1rem;
    color: var(--primary-medium);
    margin: 10px 0 20px;
}

.instagram-link {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.price {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin: 10px 0;
}

.owner-content {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: var(--radius-md);
    padding: 40px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
}

.owner-text p {
    font-size: 1.1rem;
    line-height: 2;
    margin: 20px 0;
    color: var(--primary-medium);
}

.owner-signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--accent);
    text-align: right;
}

.owner-signature p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.philosophy-item {
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.philosophy-item h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.philosophy-item p {
    color: var(--primary-medium);
    line-height: 1.6;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: fixed;
    top: 20px;
    right: 20px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(0, 0, 0, 0.1);
}

.hamburger svg {
    transition: transform 0.3s ease;
}

.hamburger.active svg {
    transform: rotate(90deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 15px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 30px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (max-width: 1024px) {
    .content {
        max-width: 900px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header {
        padding: 40px 20px;
    }
    
    nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .content {
        padding: 35px 20px 80px;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .menu-item img {
        height: 180px;
    }
    
    .instagram-feed {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    nav {
        padding: 12px 0;
    }
    
    nav a {
        margin: 5px 8px;
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .content {
        padding: 30px 15px 70px;
    }
    
    section {
        padding: 25px 20px;
    }
    
    section h2 {
        font-size: 1.4rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-item {
        padding: 20px;
    }
    
    .menu-item h3 {
        font-size: 1.3rem;
    }
    
    .menu-item img {
        height: 160px;
    }
    
    .info-item {
        font-size: 1rem;
        padding: 15px 18px;
    }
    
    .instagram-placeholder {
        padding: 30px 15px;
    }
    
    .instagram-placeholder p:first-child {
        font-size: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .content {
        max-width: 1200px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}
