/* ========================================
   Ramen Cooking Tokyo V1 - Mobile First CSS
   Base: 375px (Mobile)
   ======================================== */

/* ========================================
   Base Styles (Mobile First)
   ======================================== */

/* Typography Base - Mobile */
body {
    font-size: 16px;
    line-height: 1.6;
    font-family: var(--font-primary);
    color: var(--color-text-primary);
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-main);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-main);
    font-family: var(--font-primary);
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-main);
    font-family: var(--font-primary);
}

p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-family: var(--font-primary);
}

/* Layout Base - Mobile */
.container {
    padding: 0 1rem;
    max-width: 100%;
}

section {
    padding: 3rem 0;
}

/* ========================================
   Mobile Fixed CTA Button
   ======================================== */
.mobile-fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: rgba(248, 241, 223, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-book-btn {
        width: 100%;
    padding: 1rem;
    background: var(--color-main);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    touch-action: manipulation;
}

/* ========================================
   Hero Section - Mobile
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(248, 241, 223, 0.9) 0%, rgba(249, 243, 229, 0.8) 100%),
        url('/assets/images/hero/versions/v1/tokyo-ramen-cooking-class-main-visual.jpg') center/cover no-repeat;
    padding: 2rem 0 5rem; /* Extra bottom padding for fixed button */
    text-align: center;
    position: relative;
}

.hero-content {
    padding: 0 1rem;
}

/* Title - Prevent word breaks */
.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title span {
    display: block;
    white-space: nowrap;
    line-height: 1.2;
}

.title-line-1 {
    font-size: 1.5rem;
}

.title-line-2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-main);
    margin: 0.25rem 0;
}

.title-line-3 {
    font-size: 1.5rem;
}

/* Subtitle - Mobile line break */
.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-accent-black);
    margin-bottom: 1.5rem;
}

.subtitle-line-1,
.subtitle-line-2 {
    display: block;
}

.hero-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-cta-btn {
    padding: 1rem 2rem;
    background: var(--color-main);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
}

/* ========================================
   Features Section - Mobile
   ======================================== */
.features {
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header p {
    margin-top: 0.5rem;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
}

/* ========================================
   Timeline Section - Mobile
   ======================================== */
.timeline {
    background: linear-gradient(45deg, var(--color-gold-3) 0%, var(--color-base) 100%);
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.timeline-number {
    width: 48px;
    height: 48px;
    background: var(--color-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

/* ========================================
   Gallery Section - Mobile
   ======================================== */
.gallery {
    background: white;
}

.gallery-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
}

.gallery-track img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    flex-shrink: 0;
}

/* ========================================
   Reviews Section - Mobile
   ======================================== */
.reviews {
    background: var(--color-gold-3);
}

.reviews-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.reviews-track {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
}

.review-item {
    flex-shrink: 0;
    width: 300px;
    height: 550px; /* モバイル用に調整 */
    background: white; /* 白い背景 */
    border-radius: var(--border-radius-md);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px; /* 画像と枠の間に少し余白 */
    box-sizing: border-box;
}

.review-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center; /* 上部中央に配置 */
    border-radius: calc(var(--border-radius-md) - 4px);
}

/* ========================================
   Pricing Section - Mobile
   ======================================== */
.pricing {
    background: white;
}

.pricing-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.price-box {
    background: var(--color-gold-3);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
}

.price-box h3 {
    font-size: 2rem;
    color: var(--color-main);
    margin-bottom: 0.5rem;
}

.included-items,
.schedule-info {
    background: var(--color-base);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
}

.included-items ul {
    list-style: none;
    padding: 0;
}

.included-items li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.included-items li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-gold-4);
    font-weight: bold;
}

/* ========================================
   Access Section - Mobile
   ======================================== */
.access {
    background: var(--color-gold-3);
}

.access-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.access-map img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    /* Keep intrinsic aspect ratio (spec: do not alter map/directions images) */
}

.access-info {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
}

.address {
    margin: 1rem 0;
    line-height: 1.8;
}

.directions {
    background: var(--color-gold-3);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin: 1rem 0;
}

.map-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-main);
    font-weight: 600;
}

/* ========================================
   Step-by-Step Directions - Mobile
   ======================================== */
.step-by-step-directions {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--color-gold-4);
}

.step-by-step-directions h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.direction-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.direction-step {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step-image {
    width: 100%;
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
    /* Do not force aspect-ratio; follow intrinsic dimensions */
}

.step-content {
    padding: 1.5rem;
}

.step-content h4 {
    color: var(--color-main);
    margin-bottom: 0.5rem;
}

/* ========================================
   Final CTA Section - Mobile
   ======================================== */
.final-cta {
    background: var(--color-main);
    color: white;
    text-align: center;
    padding-bottom: 6rem; /* Extra space for fixed button */
}

.final-cta h2,
.final-cta p {
    color: white;
}

.final-cta-btn {
    padding: 1rem 2rem;
    background: white;
    color: var(--color-main);
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    margin: 1.5rem 0;
}

.contact-link {
    margin-top: 1rem;
}

.contact-link a {
    color: var(--color-gold-3);
    text-decoration: underline;
}

/* ========================================
   Footer - Mobile
   ======================================== */
.footer {
    background: var(--color-accent-black);
    color: white;
    padding: 2rem 0 8rem; /* Extra bottom space for fixed button */
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ========================================
   Tablet Styles (768px〜)
   ======================================== */
@media (min-width: 768px) {
    /* Hide mobile fixed CTA */
    .mobile-fixed-cta {
    display: none;
}

    /* Adjust padding since no fixed button */
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .final-cta,
    .footer {
        padding-bottom: 2rem;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero adjustments */
    .hero-title span {
        display: inline;
        margin: 0 0.2rem;
    }
    
    .title-line-1,
    .title-line-2,
    .title-line-3 {
        font-size: 2.5rem;
    }
    
    /* Subtitle - single line */
    .subtitle-line-1,
    .subtitle-line-2 {
        display: inline;
    }
    
    .subtitle-line-1::after {
        content: ' ';
    }
    
    /* Features grid */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Gallery grid */
    .gallery-scroll {
        overflow: visible;
        margin: 0;
        padding: 0;
    }
    
    .gallery-track {
    display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-track img {
        width: 100%;
        height: 250px;
    }
    
    /* Reviews - keep horizontal scroll */
    .review-item {
        width: 350px; /* 固定幅に戻す */
        height: 600px; /* 高さを統一 */
    }
    
    /* Pricing grid */
    .pricing-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .price-box {
        grid-column: span 2;
    }
}

/* ========================================
   Desktop Styles (1024px〜)
   ======================================== */
@media (min-width: 1024px) {
    /* Container max width */
    .container {
        max-width: 1200px;
    margin: 0 auto;
        padding: 0 2rem;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    /* Hero adjustments */
    .title-line-1,
    .title-line-2,
    .title-line-3 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
        max-width: 600px;
    }
    
    /* Features 3 columns */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    /* Timeline horizontal */
    .timeline-items {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }
    
    .timeline-items::before {
        content: '';
        position: absolute;
        top: 24px;
        left: 50px;
        right: 50px;
        height: 2px;
        background: var(--color-gold-4);
        opacity: 0.3;
        z-index: 0;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
    position: relative;
        z-index: 1;
    }
    
    .timeline-number {
        margin-bottom: 1rem;
    }
    
    /* Gallery 3 columns */
    .gallery-track {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .gallery-track img {
        height: 300px;
        transition: transform 0.3s ease;
    }
    
    .gallery-track img:hover {
        transform: scale(1.05);
    }
    
    /* Reviews - keep horizontal scroll for desktop too */
    .review-item {
        width: 400px; /* デスクトップでは少し大きめの幅 */
        height: 650px; /* デスクトップでも高さを統一 */
    }
    
    /* Pricing 3 columns */
    .pricing-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .price-box {
        grid-column: span 1;
    }
    
    /* Access side by side */
    .access-content {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
    
    .access-map,
    .access-info {
        flex: 1;
    }
    
    /* Direction steps grid */
    .direction-steps {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .direction-step {
    display: flex;
        flex-direction: column;
    }
    
    /* 画像の高さ制限を削除 - 画像全体を表示 */
    
    /* Hover effects */
    .hero-cta-btn:hover,
    .final-cta-btn:hover,
    .mobile-book-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
}

/* ========================================
   Large Desktop Styles (1440px〜)
   ======================================== */
@media (min-width: 1440px) {
    /* Increase section spacing */
    section {
        padding: 6rem 0;
    }
}

/* ========================================
   About Us Section
   ======================================== */
.about-us {
    background: var(--color-base);
    padding: 3rem 0;
}

.about-us .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-us .section-header h2 {
    color: var(--color-main);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gold-4);
    font-style: italic;
    margin-top: 0.5rem;
    text-align: center;
}

.about-content {
    margin-top: 3rem;
    padding: 0 1rem;
}

.story-block,
.philosophy-block,
.founders-block {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.story-block h3,
.philosophy-block h3,
.founders-block h3 {
    color: var(--color-main);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.story-block h3::after,
.philosophy-block h3::after,
.founders-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--color-gold-4);
}

.story-block p,
.philosophy-block p,
.founders-block p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.story-block p:last-child,
.philosophy-block p:last-child,
.founders-block p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Why Choose Us Section
   ======================================== */
.why-choose-us {
    background: white;
    padding: 3rem 0;
}

.why-choose-us .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.why-choose-us .section-header h2 {
    color: var(--color-main);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.elements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.element-card {
    background: var(--color-gold-3);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.element-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.element-card h3 {
    color: var(--color-main);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.element-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.unique-features {
    margin-top: 4rem;
    padding: 3rem 1rem 0;
    border-top: 2px solid var(--color-gold-4);
}

.unique-features h3 {
    text-align: center;
    color: var(--color-main);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    background: var(--color-base);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border-left: 4px solid var(--color-gold-4);
}

.feature h4 {
    color: var(--color-main);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
    background: var(--color-gold-3);
    padding: 3rem 0;
}

.faq .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.faq .section-header h2 {
    color: var(--color-main);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq .section-header p {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.faq-item {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: var(--color-main);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.faq-item h3::before {
    content: 'Q.';
    position: absolute;
    left: 0;
    color: var(--color-gold-4);
    font-weight: 700;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    padding-left: 1.5rem;
}

/* Tablet and Desktop adjustments */
@media (min-width: 768px) {
    .about-us,
    .why-choose-us,
    .faq {
        padding: 4rem 0;
    }
    
    .elements-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
    }
    
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
    }
    
    .about-content {
        max-width: 800px;
        margin: 3rem auto 0;
        padding: 0 2rem;
    }
    
    .story-block,
    .philosophy-block,
    .founders-block {
        padding: 3rem 2.5rem;
    }
    
    .story-block h3,
    .philosophy-block h3,
    .founders-block h3 {
        font-size: 1.75rem;
    }
    
    .unique-features {
        padding: 3rem 2rem 0;
    }
    
    .element-card {
        padding: 2.5rem 2rem;
    }
    
    .element-card h3 {
        font-size: 1.5rem;
    }
    
    .faq-item {
        padding: 2.5rem 2rem;
    }
}

@media (min-width: 1024px) {
    .about-us,
    .why-choose-us,
    .faq {
        padding: 5rem 0;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .elements-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
        max-width: 1200px;
        margin: 3rem auto 0;
    }
    
    .features-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .about-content {
        max-width: 900px;
    }
    
    .faq-grid {
        max-width: 1000px;
        margin: 3rem auto 0;
        gap: 2rem;
    }
    
    .about-us .section-header h2,
    .why-choose-us .section-header h2,
    .faq .section-header h2 {
        font-size: 2.5rem;
    }
    
    .unique-features h3 {
        font-size: 2rem;
    }
}