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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #4B2E2B;
    margin: 0;
    padding: 0;
    background-color: #F3EDE7;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #4B2E2B;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.8;
}

/* Header */
.header {
    background-color: #F3EDE7;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(139, 139, 139, 0.2);
}

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

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

.logo {
    width: 48px;
    height: 48px;
}

.brand-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #4B2E2B;
    margin: 0;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background-color: #F3EDE7;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #4B2E2B;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #8C8C8C;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-button {
    background-color: #D94C3A;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.cta-button:hover {
    background-color: #c44036;
    transform: translateY(-2px);
}

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

.hero-img,
.about-img,
.subscription-img,
.education-img,
.marketplace-img,
.product-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(75, 46, 43, 0.1);
}

.hero-img {
    max-height: 400px;
    object-fit: cover;
}

.about-img,
.subscription-img,
.education-img {
    max-height: 300px;
    object-fit: cover;
}

.marketplace-img,
.product-img {
    height: 200px;
    object-fit: cover;
}

/* Image Placeholders */
.image-placeholder {
    background-color: #8C8C8C;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
}

/* Section Styles */
section {
    padding: 4rem 0;
    text-align: center;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #4B2E2B;
}

/* About Section */
.about {
    background-color: white;
    text-align: center;
}

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

.about-text {
    font-size: 1.125rem;
}

/* Subscription Section */
.subscription {
    background-color: #F3EDE7;
    text-align: center;
}

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

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

.subscription-text li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.subscription-text li::before {
    content: "•";
    color: #D94C3A;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Marketplace Section */
.marketplace {
    background-color: white;
    text-align: center;
}

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

.marketplace-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #F3EDE7;
}

.marketplace-item .image-placeholder {
    min-height: 200px;
    margin-bottom: 1rem;
}

/* Education Section */
.education {
    background-color: #F3EDE7;
    text-align: center;
}

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

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

.education-text li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.education-text li::before {
    content: "•";
    color: #3A5A40;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Analytics Section */
.analytics {
    background-color: white;
    text-align: center;
}

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

.analytics-card {
    background-color: #F3EDE7;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    border-color: #3A5A40;
    transform: translateY(-5px);
}

/* Courses Section */
.courses {
    background-color: #F3EDE7;
    text-align: center;
}

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

.courses-text {
    margin-bottom: 3rem;
}

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

.course-item {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

/* Products Section */
.products {
    background-color: white;
    text-align: center;
}

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

.product-item {
    background-color: #F3EDE7;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #D94C3A;
    margin: 0.5rem 0;
}

.product-item .image-placeholder {
    min-height: 200px;
    margin-bottom: 1rem;
}

.product-button {
    background-color: #3A5A40;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.product-button:hover {
    background-color: #2d4432;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    background-color: #F3EDE7;
    text-align: left;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

.contact-item h4 {
    color: #4B2E2B;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.125rem;
    margin: 0;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #8C8C8C;
    border-radius: 6px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    background-color: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3A5A40;
}

.contact-form button {
    background-color: #D94C3A;
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: #c44036;
}

/* Footer */
.footer {
    background-color: #4B2E2B;
    color: #F3EDE7;
    padding: 3rem 0 1rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.footer-section {
    flex: 1;
}

.footer-brand-section {
    flex: 2;
}

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

.footer-logo .logo {
    width: 32px;
    height: 32px;
}

.footer-brand {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.25rem;
    font-weight: 500;
}

.footer-description {
    color: rgba(243, 237, 231, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

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

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav a {
    color: #F3EDE7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #D94C3A;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(243, 237, 231, 0.9);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(243, 237, 231, 0.2);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #4B2E2B;
}

#orderForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

#orderForm input,
#orderForm select,
#orderForm textarea {
    padding: 0.75rem;
    border: 1px solid #8C8C8C;
    border-radius: 6px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
}

#orderForm button {
    background-color: #D94C3A;
    color: white;
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-content,
    .subscription-content,
    .education-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
}