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

:root {
    --marble-white: #f8f6f0;
    --terracotta: #c65d41;
    --aegean-blue: #2c5aa0;
    --olive-green: #6b7d3b;
    --dark-text: #2d2d2d;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--marble-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
    line-height: 1.3;
}

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

/* Header */
.header {
    background: var(--marble-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-name {
    font-size: 28px;
    color: var(--aegean-blue);
    font-weight: 500;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--marble-white) 0%, #ffffff 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    color: var(--aegean-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--dark-text);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-image-main {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.about-image-main {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.academic-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.partnership-image {
    width: 100%;
    max-width: 600px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin: 30px auto 0;
    display: block;
}

.rental-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.contact-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--terracotta);
    margin-bottom: 10px;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.btn-primary {
    background: var(--aegean-blue);
    color: white;
}

.btn-primary:hover {
    background: #1e3f73;
}

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

.btn-secondary:hover {
    background: var(--aegean-blue);
    color: white;
}

/* Placeholder Images */
.placeholder-image {
    background: var(--light-gray);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
    text-align: center;
    border-radius: 8px;
}

.hero-placeholder {
    height: 400px;
}

.about-placeholder, .academic-placeholder, .partnership-placeholder, .rental-placeholder, .contact-placeholder {
    height: 300px;
}

.product-placeholder {
    height: 200px;
    margin-bottom: 20px;
}

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

.centered .container > * {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 36px;
    color: var(--aegean-blue);
    text-align: center;
    margin-bottom: 60px;
}

section {
    padding: 80px 0;
}

.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 24px;
    color: var(--terracotta);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
}

/* Services Section */
.services {
    background: var(--marble-white);
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 20px;
    color: var(--aegean-blue);
    margin: 20px 0 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Products Section */
.products {
    background: white;
}

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

.product-card {
    background: var(--marble-white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card h3 {
    font-size: 18px;
    color: var(--aegean-blue);
    margin-bottom: 10px;
}

.product-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Academic Section */
.academic {
    background: var(--marble-white);
}

.academic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.academic-text h3 {
    font-size: 24px;
    color: var(--olive-green);
    margin-bottom: 20px;
}

.academic-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Partnership Section */
.partnership {
    background: white;
    text-align: center;
}

.partnership-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Rental Section */
.rental {
    background: var(--marble-white);
}

.rental-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.rental-text h3 {
    font-size: 24px;
    color: var(--terracotta);
    margin-bottom: 20px;
}

.rental-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Contacts Section */
.contacts {
    background: white;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Footer */
.footer {
    background: var(--dark-text);
    color: var(--marble-white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-info .logo-section {
    margin-bottom: 15px;
}

.footer-brand {
    color: var(--marble-white);
    font-size: 18px;
    font-weight: 500;
}

.footer-info p {
    color: #ccc;
    line-height: 1.6;
}

.footer-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-nav-section h4 {
    color: var(--marble-white);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-nav-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-section a:hover {
    color: var(--marble-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

/* 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: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

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

.close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 30px;
    color: var(--aegean-blue);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--aegean-blue);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container,
    .about-grid,
    .academic-grid,
    .rental-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-text);
    color: var(--marble-white);
    padding: 25px;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-text h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--marble-white);
}

.cookie-text p {
    margin: 0;
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--terracotta);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn.accept {
    background: var(--aegean-blue);
    color: white;
}

.cookie-btn.accept:hover {
    background: #1e3f73;
}

.cookie-btn.reject {
    background: var(--terracotta);
    color: white;
}

.cookie-btn.reject:hover {
    background: #a04d35;
}

.cookie-btn.customize {
    background: transparent;
    color: var(--marble-white);
    border: 1px solid var(--marble-white);
}

.cookie-btn.customize:hover {
    background: var(--marble-white);
    color: var(--dark-text);
}

.cookie-customization {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.cookie-customization h4 {
    margin-bottom: 20px;
    color: var(--marble-white);
    font-size: 16px;
}

.cookie-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.cookie-option label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    margin-right: 8px;
}

.cookie-label {
    font-weight: 500;
    color: var(--marble-white);
}

.cookie-option small {
    color: #ccc;
    font-size: 12px;
    line-height: 1.4;
}

.cookie-custom-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-btn.save {
    background: var(--aegean-blue);
    color: white;
}

.cookie-btn.save:hover {
    background: #1e3f73;
}

.cookie-btn.cancel {
    background: transparent;
    color: var(--marble-white);
    border: 1px solid var(--marble-white);
}

.cookie-btn.cancel:hover {
    background: var(--marble-white);
    color: var(--dark-text);
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-image-main {
        height: 300px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-customization {
        margin: 15px auto 0;
        padding: 15px;
    }
    
    .cookie-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}