/* 
  居酒家 きらく Base Styles
  Theme: 昭和レトロ × 清潔感 × アットホーム
*/

:root {
    --primary-bg: #FAFAFA;
    --text-main: #3E2723;
    --text-light: #6D4C41;
    --accent-color: #D32F2F; /* Warm red like a lantern */
    --accent-hover: #b71c1c;
    --border-color: #E0E0E0;
    --white: #FFFFFF;
    
    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', 'Inter', sans-serif;
    
    --container-width: 1000px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--primary-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: 70px; /* For fixed header */
    padding-bottom: 80px; /* For sticky CTA */
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--white);
}

.mt-10 {
    margin-top: 100px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    letter-spacing: 0.1em;
}

.section-title span {
    color: var(--accent-color);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--accent-color);
}

.global-nav ul {
    display: flex;
    gap: 30px;
}

.global-nav a {
    font-weight: 500;
    font-size: 0.95rem;
}

.global-nav a:hover {
    color: var(--accent-color);
}

.header-cta {
    display: none;
}

.btn-tel {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.btn-tel:hover {
    background-color: var(--accent-hover);
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

/* Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 70px);
    width: 100%;
    overflow: hidden;
    background: #000;
}

.hero-carousel {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.7;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: slideFade 20s infinite;
}

@keyframes slideFade {
    0% { opacity: 0; transform: scale(1); }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.05); }
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: var(--white);
    z-index: 2;
}

.hero-copy {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.3;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 50%;
    background: var(--white);
    animation: scrollLine 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* Concept */
.concept-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.concept-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 2.2;
    color: var(--text-main);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.menu-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #eee;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card-image .menu-photo-motsu {
    transform: scale(1.14);
    transform-origin: 50% 50%;
}

.card-image .menu-photo-tamago {
    transform: scale(1.12);
    transform-origin: 50% 54%;
}

.card-image .menu-photo-karaage {
    transform: scale(1.26);
    transform-origin: 52% 58%;
}

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

.menu-card:hover .card-image .menu-photo-motsu {
    transform: scale(1.18);
}

.menu-card:hover .card-image .menu-photo-tamago {
    transform: scale(1.16);
}

.menu-card:hover .card-image .menu-photo-karaage {
    transform: scale(1.3);
}

.badge {
    position: absolute;
    top: 15px;
    left: -15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card-content {
    padding: 25px;
    text-align: center;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-main);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    display: inline-block;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: left;
}

/* Drink Layout */
.drink-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--primary-bg);
    border-radius: 12px;
    overflow: hidden;
}

.drink-image {
    flex: 1;
    min-height: 400px;
    background: #eee;
}

.drink-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drink-text {
    flex: 1;
    padding: 40px;
}

.drink-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.drink-list li {
    background: var(--white);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
}

/* Space Section (Z-Pattern) */
.space-z-pattern {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.z-item {
    display: flex;
    align-items: center;
    gap: 5%;
}

.z-item.reverse {
    flex-direction: row-reverse;
}

.z-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    background: #eee;
    aspect-ratio: 4/3;
}

.z-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.z-text {
    flex: 1;
}

.z-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.z-text p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Info Section */
.info-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 768px) {
    .info-layout {
        flex-direction: row;
    }
}

.info-list {
    flex: 1;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.info-list dt {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 1.1rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

.info-list dd {
    margin-bottom: 25px;
    line-height: 1.5;
}

.info-list dd:last-child {
    margin-bottom: 0;
}

.info-list .tel a {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.info-list .tel a:hover {
    color: var(--accent-color);
}

.info-list .note {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.map-container {
    flex: 1;
    min-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 15px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 100;
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cta-inner p {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent-color);
    color: var(--white);
    width: 100%;
    max-width: 400px;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-cta svg {
    margin-right: 5px;
}

/* Footer */
.site-footer {
    background: var(--text-main);
    color: var(--white);
    text-align: center;
    padding: 60px 0 30px;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 30px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Responsive (Mobile) */
@media (max-width: 900px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .global-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        visibility: hidden;
    }

    .global-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .global-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .global-nav a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .drink-layout {
        flex-direction: column;
    }
    
    .z-item, .z-item.reverse {
        flex-direction: column;
        gap: 30px;
    }
    
    .z-item .z-image {
        width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .mt-10 {
        margin-top: 60px;
    }
    
    .hero-content {
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 90%;
    }
    
    .hero-copy {
        br { display: none; }
        line-height: 1.5;
    }
}
