/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #2C2C2C;
    background-color: #FAFAFA;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Color Variables */
:root {
    --matcha-green: #2D5016;
    --matcha-light: #4A7A26;
    --matcha-accent: #6B9B3A;
    --beige: #D4B896;
    --beige-light: #E6D4B7;
    --sakura: #F4D1D1;
    --sumi: #2C2C2C;
    --white: #FAFAFA;
    --light-gray: #F5F5F5;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--white) 0%, var(--beige-light) 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(45, 80, 22, 0.1);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 184, 150, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 80, 22, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    filter: drop-shadow(2px 2px 4px rgba(45, 80, 22, 0.2));
}

.brand-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--matcha-green);
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--sumi);
    font-weight: 400;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--matcha-green);
    background-color: rgba(45, 80, 22, 0.05);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--matcha-accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 80%;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--sakura) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 80, 22, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--matcha-green);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--sumi);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background: linear-gradient(135deg, var(--matcha-green) 0%, var(--matcha-light) 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

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

.hero-illustration {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.category-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.education-photo:hover {
    transform: scale(1.02);
}

.education-illustration {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    background: white;
}

.education-illustration:hover {
    transform: scale(1.02);
}

/* Section Styles */
.centered-section {
    text-align: center;
}

.centered-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.centered-section .intro-content,
.centered-section .subscription-content {
    text-align: center;
}

.centered-section .education-content {
    text-align: left;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--matcha-green);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--matcha-accent), var(--beige));
    border-radius: 2px;
}

/* Introduction Section */
.intro {
    padding: 4rem 0;
    background: var(--white);
}

.intro-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.intro-illustration {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.intro-content h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--matcha-green);
    margin-bottom: 1.5rem;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--sumi);
    opacity: 0.9;
}

/* Products Section */
.featured-products {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(45, 80, 22, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(45, 80, 22, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
}

.product-card h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--matcha-green);
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.9rem;
    color: var(--sumi);
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--matcha-green);
    margin-bottom: 1rem;
}

.product-button {
    width: 100%;
    background: linear-gradient(135deg, var(--matcha-light) 0%, var(--matcha-accent) 100%);
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 122, 38, 0.3);
}

/* Process Section */
.process {
    padding: 4rem 0;
    background: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-item {
    text-align: center;
    padding: 2rem 1rem;
}

.process-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.process-item h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--matcha-green);
    margin-bottom: 1rem;
}

.process-item p {
    font-size: 1rem;
    color: var(--sumi);
    opacity: 0.9;
    line-height: 1.6;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--sakura) 0%, var(--light-gray) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 200px;
}

.category-card h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--matcha-green);
    padding: 1rem 1.5rem 0.5rem;
}

.category-card p {
    font-size: 0.95rem;
    color: var(--sumi);
    opacity: 0.8;
    padding: 0 1.5rem 1.5rem;
}

/* Subscription Section */
.subscription {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--matcha-green) 0%, var(--matcha-light) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.subscription::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.subscription-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.subscription-content h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.subscription-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.subscription-benefits {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.subscription-benefits li {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    font-weight: 500;
    position: relative;
}

.subscription-benefits li::before {
    content: '✓';
    margin-right: 0.5rem;
    font-weight: bold;
    color: var(--beige);
}

.subscription .cta-button {
    background: white;
    color: var(--matcha-green);
}

.subscription .cta-button:hover {
    background: var(--beige-light);
}

/* Education Section */
.education {
    padding: 4rem 0;
    background: var(--white);
}

.education-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.education-text h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--matcha-green);
    margin-bottom: 1rem;
}

.education-text p {
    font-size: 1rem;
    color: var(--sumi);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.education-text ul {
    list-style: none;
    padding-left: 0;
}

.education-text li {
    padding: 0.5rem 0;
    color: var(--sumi);
    opacity: 0.8;
    position: relative;
    padding-left: 1.5rem;
}

.education-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--matcha-accent);
    font-weight: bold;
}

.education-image {
    display: flex;
    justify-content: center;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--beige-light) 100%);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    background: linear-gradient(135deg, var(--matcha-green) 0%, var(--matcha-light) 100%);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--matcha-green);
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1rem;
    color: var(--sumi);
    opacity: 0.9;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--sumi) 0%, var(--matcha-green) 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 184, 150, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 122, 38, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section h4 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--beige);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--beige);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.modal-header h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--matcha-green);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--sumi);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    opacity: 1;
}

.order-form {
    padding: 1rem 2rem 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--matcha-green);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--matcha-accent);
    box-shadow: 0 0 0 3px rgba(107, 155, 58, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    width: 100%;
    background: linear-gradient(135deg, var(--matcha-green) 0%, var(--matcha-light) 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .education-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .subscription-benefits {
        grid-template-columns: 1fr;
    }
    
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .order-form {
        padding: 1rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .nav-menu a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}