/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Shippori Mincho B1', serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #ffffff;
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch; /* iOS用スムーススクロール */
    position: relative;
}

/* ===== VARIABLES ===== */
:root {
    --primary-color: #4a3c2a;
    --secondary-color: #6b5548;
    --accent-color: #5a4a3a;
    --forest-green: #4a3c2a;
    --light-green: #ffffff;
    --brown: #5a4a3a;
    --dark-brown: #3d2f1f;
    --cream: #ffffff;
    --white: #ffffff;
    --gray: #666666;
    --dark-gray: #4a3c2a;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --max-width: 1200px;
    --container-padding: 20px;
}

/* ===== UTILITY CLASSES ===== */
section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== LOAD MORE BUTTON ===== */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    padding: 20px;
    width: 100%;
    text-align: center;
}

.btn-load-more {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.btn-load-more:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-load-more:active {
    transform: translateY(0);
}

.btn-load-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-load-more:hover::before {
    width: 300px;
    height: 300px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--dark-brown);
    margin-bottom: 24px;
    position: relative;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--dark-brown);
    margin: 16px auto 0;
    opacity: 0.6;
}

.section-subtitle {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.8;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-image {
    max-width: 80px;
    width: min(25vw, 80px);
    max-height: 80px;
    height: auto;
    object-fit: contain;
    animation: loadingSpinPulse 2s ease-in-out infinite;
}

@keyframes loadingSpinPulse {
    0% { 
        opacity: 0.6;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1) rotate(180deg);
    }
    100% { 
        opacity: 0.6;
        transform: scale(1) rotate(360deg);
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-navigation {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    z-index: 4;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

.hero-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark-brown);
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 12px;
}

.hero-nav-item:hover {
    transform: translateY(-2px);
    background: rgba(74, 60, 42, 0.1);
}

.hero-nav-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
    color: var(--dark-brown);
}

.hero-nav-icon svg {
    width: 100%;
    height: 100%;
}

.hero-nav-item:hover .hero-nav-icon {
    transform: scale(1.2);
}

.hero-nav-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.hero-content {
    text-align: center;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-image {
    max-width: 400px;
    width: 90%;
    height: auto;
    cursor: default;
    transition: none;
    opacity: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.hero-scroll {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark-brown);
    animation: scrollPulse 2s infinite;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--dark-brown);
    margin-bottom: 10px;
    animation: scrollLine 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--dark-brown);
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.2); }
}

/* ===== ABOUT SECTION ===== */
.about-scroll-section {
    padding: 80px 0;
    background: var(--white);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.about-container {
    width: 100%;
    max-width: 100vw;
}

.about-sticky-content {
    width: 100%;
}

.about-panel {
    width: 100%;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.about-panel:last-child {
    border-bottom: none;
}

.about-panel.active {
    /* 通常のスクロールなので不要 */
}

.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    padding: 0 40px;
    width: 100%;
}

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

.about-panel-2 .about-image {
    order: 2;
}

.about-panel-2 .about-text {
    order: 1;
}

.about-image {
    text-align: center;
}

.about-img {
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.about-img:hover {
    transform: scale(1.02);
}

.about-text {
    padding: 10px 20px;
}

.about-title {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

.about-description:last-child {
    margin-bottom: 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .about-story {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .about-panel-2 .about-story {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-panel-2 .about-image {
        order: 0;
    }
    
    .about-panel-2 .about-text {
        order: 0;
    }
    
    .about-title {
        font-size: 1.5rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .about-text {
        padding: 10px 20px;
    }
}

/* ===== PRODUCTS SECTION ===== */
.products {
    padding: 80px 0;
    background: var(--white);
}

/* Products showcase section */
.products-showcase {
    margin-bottom: 80px;
}

.showcase-header {
    text-align: center;
    margin-bottom: 48px;
}

.showcase-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.showcase-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* Menu section */
.menu-section {
    background: var(--gray-light);
    padding: 60px 40px;
    border-radius: 24px;
    margin-top: 40px;
}

.menu-header {
    text-align: center;
    margin-bottom: 48px;
}

.menu-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.menu-section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-image {
    width: 100%;
    height: 250px;
    background: var(--white);
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--brown);
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 111, 71, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 74, 43, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.product-content {
    padding: 24px;
}

.product-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.product-card:hover .product-name {
    color: var(--forest-green);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.product-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.product-category {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.seasonal-badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-card.featured {
    border: 2px solid var(--accent-color);
    position: relative;
}

.product-card.featured::after {
    content: '人気';
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== SHOPS SECTION ===== */
.shops {
    padding: 80px 0;
    background: var(--white);
}

.shop-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    justify-items: center;
    gap: 20px;
    margin: 30px 0 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.shop-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-brown);
    width: 100%;
    min-height: 90px;
    justify-content: flex-start;
}

.shop-nav-item:hover {
    transform: translateY(-2px);
    background: rgba(74, 60, 42, 0.1);
}

.shop-nav-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.shop-nav-item:hover .shop-nav-icon {
    transform: scale(1.1);
}

.shop-nav-emoji {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.shop-nav-item:hover .shop-nav-emoji {
    transform: scale(1.1);
}

.shop-nav-name {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    max-width: 80px;
    line-height: 1.2;
}

.shops-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.shop-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.shop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}


.shop-image-container {
    width: 100%;
    height: 200px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.shop-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease;
}

.shop-main-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.shop-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.shop-image-placeholder {
    font-size: 4rem;
    color: var(--brown);
    opacity: 0.7;
}

.shop-icon {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: var(--white);
    z-index: 2;
}

.shop-logo {
    position: absolute;
    bottom: 16px;
    left: 16px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    z-index: 2;
}

.shop-image-container:hover .shop-icon,
.shop-image-container:hover .shop-logo {
    transform: scale(1.1);
}

.shop-content {
    padding: 24px;
}

.shop-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.shop-card:hover .shop-name {
    color: var(--forest-green);
}

.shop-address {
    color: var(--gray);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.shop-hours {
    color: var(--gray);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.shop-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.shop-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.shop-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--primary-color);
}

.shop-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.shop-images {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.shop-thumbnail {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.shop-thumbnail:hover,
.shop-thumbnail.active {
    opacity: 1;
    transform: scale(1.05);
}

/* ===== MENU DISPLAY ===== */
.menu-display {
    margin-bottom: 40px;
    text-align: center;
}

.menu-container {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 32px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.menu-title {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    text-align: center;
}

.menu-subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 32px;
    opacity: 0.8;
    text-align: center;
}

.menu-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.menu-category {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 24px;
}

.menu-category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.menu-category-name {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin: 0;
}

.menu-category-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(74, 60, 42, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.menu-items {
    display: grid;
    gap: 8px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.menu-item:hover {
    background: rgba(74, 60, 42, 0.05);
}

.menu-item-left {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.menu-item-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-brown);
    margin-bottom: 4px;
}

.menu-item-note {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.3;
    margin-top: 2px;
}

.menu-item-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
    text-align: right;
    margin-left: 16px;
}

.menu-notes {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-note {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 8px 0;
    line-height: 1.5;
}

.menu-placeholder {
    background: var(--gray-light);
    border: 2px dashed var(--gray);
    border-radius: 12px;
    padding: 40px;
    color: var(--gray);
    font-size: 1.1rem;
    text-align: center;
}

.menu-placeholder-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.menu-update-note {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 16px;
    opacity: 0.7;
    text-align: center;
    font-style: italic;
}

/* iOS specific fixes */
* {
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-overflow-scrolling: touch;
}

.contact-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .menu-section {
        padding: 40px 20px;
    }
    
    .menu-container {
        padding: 20px;
    }
    
    .menu-table {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .menu-category-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .menu-category-price {
        font-size: 0.9rem;
    }
    
    .menu-item {
        padding: 10px 12px;
    }
    
    .menu-item-name {
        font-size: 0.9rem;
    }
    
    .menu-item-note {
        font-size: 0.75rem;
    }
    
    .menu-item-price {
        font-size: 0.9rem;
        min-width: 60px;
        margin-left: 12px;
    }
    
    .showcase-title, .menu-section-title {
        font-size: 1.5rem;
    }
    
    .showcase-subtitle, .menu-section-subtitle {
        font-size: 1rem;
    }
}

/* Menu open button for mobile */
.menu-open-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-brown));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0;
    box-shadow: 0 4px 16px rgba(74, 60, 42, 0.3);
}

.menu-open-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 60, 42, 0.4);
}

.menu-icon {
    font-size: 1.3rem;
}

/* Modal for menu */
.menu-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-modal.active {
    opacity: 1;
}

.menu-modal-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.menu-modal.active .menu-modal-content {
    transform: scale(1);
}

.menu-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--primary-color);
    color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.menu-close {
    font-size: 28px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
}

.menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.menu-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: white;
}

.menu-modal-body .menu-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .menu-modal-content {
        max-width: 500px;
    }
    
    .menu-modal-body .menu-table {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.menu-modal-footer {
    padding: 16px 24px;
    background: var(--gray-light);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.menu-modal-footer .menu-note {
    margin: 8px 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.menu-modal-footer .menu-update-note {
    margin: 8px 0 0 0;
    font-size: 0.8rem;
    color: var(--gray);
    opacity: 0.7;
    text-align: center;
    font-style: italic;
}

/* PDF Menu Specific Styles */
.menu-container .menu-info {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.menu-info .menu-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.menu-info .menu-date {
    font-size: 0.85rem;
    color: var(--gray);
}



/* シンプルメニューモーダル */
#simple-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#simple-menu-modal.active {
    opacity: 1;
    visibility: visible;
}

.simple-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.simple-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

#simple-menu-modal.active .simple-modal-content {
    transform: scale(1);
}

.simple-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--primary-color);
    color: white;
}

.simple-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.simple-modal-header button {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.simple-modal-header button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.simple-modal-body {
    padding: 0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.simple-menu-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.simple-modal-footer {
    padding: 16px 24px;
    background: var(--gray-light);
    text-align: center;
}

.simple-modal-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Responsive Menu Modal Styles */
#responsive-menu-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#responsive-menu-modal.active {
    opacity: 1;
    visibility: visible;
}

.responsive-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.responsive-modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 95vw;
    max-height: 95vh;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#responsive-menu-modal.active .responsive-modal-content {
    transform: scale(1);
}

.responsive-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--white);
    border-bottom: 2px solid var(--gray-light);
    flex-shrink: 0;
}

.responsive-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.responsive-modal-header .close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.responsive-modal-header .close-btn:hover {
    color: var(--primary-color);
}

.responsive-modal-body {
    flex: 1;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-image-container:active {
    cursor: grabbing;
}

.responsive-menu-image {
    max-width: none;
    max-height: none;
    object-fit: contain;
    transition: transform 0.2s ease-out;
    transform-origin: center center;
}

.responsive-modal-footer {
    padding: 16px 24px;
    background: var(--white);
    border-top: 1px solid var(--gray-light);
    text-align: center;
    flex-shrink: 0;
}

.responsive-modal-footer p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.touch-help {
    font-size: 0.8rem !important;
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .responsive-modal-overlay {
        padding: 10px;
    }
    
    .responsive-modal-content {
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 8px;
    }
    
    .responsive-modal-header {
        padding: 16px 20px;
    }
    
    .responsive-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .responsive-modal-footer {
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-image-container {
        height: 60vh;
        min-height: 400px;
    }
    
    .menu-modal-content.image-modal {
        max-width: 95%;
    }
}

/* ===== NEWS SECTION ===== */
.news {
    padding: 80px 0;
    background: var(--white);
}

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

.news-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.news-image-placeholder {
    font-size: 4rem;
    color: var(--brown);
    opacity: 0.7;
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-description {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-source {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.news-source-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0;
    background: var(--white);
    color: var(--dark-gray);
}

.contact .section-title {
    color: var(--dark-gray);
}

.contact .section-subtitle {
    color: var(--gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    border: none;
    outline: none;
    background: transparent;
}

.contact-primary-content {
    text-align: center;
    border: none;
    outline: none;
    background: transparent;
}

.contact-intro {
    color: var(--gray);
    margin-bottom: 32px;
    font-size: 1.1rem;
    line-height: 1.6;
}


.contact-info h3 {
    font-family: 'Shippori Mincho B1', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.01em;
}

.contact-info p {
    color: var(--gray);
    margin-bottom: 24px;
    text-align: center;
    line-height: 1.6;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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


.contact-primary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    border: none;
    outline: none;
    background: transparent;
}

/* Contact buttons with perfect unified animations */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #4a3c2a;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #4a3c2a;
    font-size: 1rem;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 15px rgba(74, 60, 42, 0.1);
    -webkit-tap-highlight-color: transparent;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    background: #4a3c2a;
    color: #ffffff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(74, 60, 42, 0.3);
}

.contact-btn:active {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.1s ease;
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-btn:hover .contact-icon {
    transform: scale(1.2) rotate(10deg);
}

.contact-text {
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-btn:hover .contact-text {
    transform: translateX(3px);
    font-weight: 600;
}

/* Primary contact buttons (LINE & Instagram) */
.contact-primary-btn {
    padding: 20px 32px;
    font-size: 1.2rem;
    min-width: 240px;
    border-width: 3px;
}

.contact-primary-btn .contact-icon {
    width: 24px;
    height: 24px;
}

.contact-primary-btn .contact-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-primary-btn:hover {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 20px 40px rgba(74, 60, 42, 0.35);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--white);
    color: var(--dark-gray);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
    align-items: center;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--dark-gray);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    color: var(--gray);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }
    
    /* PCでメインビジュアルのロゴを控えめに大きく */
    .hero-logo-image {
        max-width: 420px !important;
        width: 88% !important;
    }
    
    /* PCでアイコンメニューを適度に大きく */
    .hero-nav-icon {
        width: 30px !important;
        height: 30px !important;
        margin-bottom: 5px !important;
    }
    
    .hero-nav-text {
        font-size: 0.88rem !important;
    }
    
    .hero-nav-item {
        padding: 10px !important;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .shops-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 7rem;
    }
    
    /* デスクトップでバランス良く */
    .hero-logo-image {
        max-width: 440px !important;
        width: 90% !important;
    }
    
    .hero-nav-icon {
        width: 31px !important;
        height: 31px !important;
        margin-bottom: 6px !important;
    }
    
    .hero-nav-text {
        font-size: 0.9rem !important;
    }
    
    .hero-nav-item {
        padding: 11px !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .shops-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-social-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .hero-navigation {
        top: 20px;
        gap: 15px;
    }
    
    .hero-nav-icon {
        width: 24px;
        height: 24px;
    }
    
    .hero-nav-text {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-title::before {
        width: 60px;
    }
    
    .about-title {
        font-size: 1.4rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .squirrel-illustration {
        font-size: 3rem;
    }
    
    .acorn-decoration {
        font-size: 1.5rem;
    }
    
    .contact-primary {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-primary-content {
        min-width: 280px;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

/* ===== FIXED INSTAGRAM ICON ===== */
.fixed-instagram {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.instagram-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, rgba(107, 85, 72, 0.85) 0%, rgba(90, 74, 58, 0.85) 50%, rgba(74, 60, 42, 0.85) 100%);
    backdrop-filter: blur(3px);
    border-radius: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px 16px;
    min-width: 180px;
    height: 48px;
}

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

.instagram-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.instagram-icon {
    width: 24px;
    height: 24px;
    color: white;
    flex-shrink: 0;
}

.instagram-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.instagram-text-mobile {
    display: none;
}

.instagram-text-pc {
    display: inline;
}

/* モバイルではアイコンのみ表示 */
@media (max-width: 767px) {
    .fixed-instagram {
        bottom: 15px;
        left: 15px;
    }
    
    .instagram-float-btn {
        width: auto;
        height: 48px;
        border-radius: 24px;
        padding: 8px 12px;
        min-width: 100px;
    }
    
    .instagram-content {
        gap: 6px;
    }
    
    .instagram-icon {
        width: 24px;
        height: 24px;
    }
    
    .instagram-text-pc {
        display: none;
    }
    
    .instagram-text-mobile {
        display: inline;
    }
}

/* ===== ENTERTAINMENT SECTION ===== */
.entertainment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.entertainment-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.entertainment-item:hover {
    transform: translateY(-4px);
}

.entertainment-banner {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.entertainment-banner:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.banner-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.entertainment-banner:hover .banner-img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.entertainment-banner:hover .banner-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
}

.banner-content {
    padding: 24px;
}

.banner-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.banner-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.banner-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 767px) {
    .entertainment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .banner-image {
        height: 160px;
    }
    
    .banner-content {
        padding: 20px;
    }
    
    .banner-title {
        font-size: 1.2rem;
    }
    
    .play-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ===== TOPIC MODAL ===== */
.topic-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.topic-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.topic-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topic-modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.topic-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.topic-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.topic-modal-body {
    padding: 32px;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
    line-height: 1.7;
}

.topic-modal-body h1,
.topic-modal-body h2,
.topic-modal-body h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.topic-modal-body h1:first-child,
.topic-modal-body h2:first-child,
.topic-modal-body h3:first-child {
    margin-top: 0;
}

.topic-modal-body p {
    margin-bottom: 1.2rem;
    color: var(--gray);
}

.topic-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

@media (max-width: 767px) {
    .topic-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
    }
    
    .topic-modal-header {
        padding: 16px 20px;
    }
    
    .topic-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .topic-modal-body {
        padding: 24px 20px;
        max-height: calc(80vh - 68px);
    }
}