/* 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: #333;
    background: #fef7e7;
    overflow-x: hidden;
}

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

/* Centered sections */
.centered-section {
    text-align: center;
}

.centered-section .container > * {
    text-align: center;
}

.centered-section .service-content,
.centered-section .corporate-content {
    text-align: left;
}

/* Header */
.header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(30, 58, 138, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.logo-section a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

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

.logo.small {
    width: 32px;
    height: 32px;
}

.brand-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.03) 0%, rgba(254, 247, 231, 0.6) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 500px;
}

.hero-content {
    padding-right: 20px;
}

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

.hero-img {
    width: 100%;
    max-width: 500px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.15);
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 48px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(135deg, #C8860D 0%, #F59E0B 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 4px 12px rgba(200, 134, 13, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #B8760C 0%, #E08E0B 100%);
    box-shadow: 0 6px 20px rgba(200, 134, 13, 0.4);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #C8860D 0%, #F59E0B 100%);
    border-radius: 2px;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.book-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(200, 134, 13, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
}

.book-placeholder {
    width: 100%;
    height: 200px;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
    border: 2px dashed rgba(30, 58, 138, 0.2);
}

.book-illustration {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
    background: white;
    padding: 10px;
}

.book-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.book-card p {
    color: #64748b;
    font-size: 14px;
}

/* Service Content */
.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-text {
    padding-right: 20px;
}

.service-text h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 24px;
}

.service-text p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

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

.service-img {
    width: 100%;
    max-width: 400px;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.1);
}

.service-illustration {
    width: 100%;
    max-width: 400px;
    height: 280px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.1);
    background: white;
    padding: 20px;
}

/* Membership Section */
.membership {
    background: rgba(254, 247, 231, 0.3);
}

.membership-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.benefit-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(200, 134, 13, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.benefit-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 12px;
}

.benefit-card p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* Corporate Section */
.corporate-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.corporate-service {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(200, 134, 13, 0.2);
}

.corporate-service h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 16px;
}

.corporate-service p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

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

.product-illustration {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
    background: white;
    padding: 10px;
}
.product-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(200, 134, 13, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
}

.product-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #C8860D;
    margin-bottom: 12px;
}

.product-desc {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-button {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    width: 100%;
}

.product-button:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-1px);
}

/* Delivery Options */
.delivery-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.delivery-option {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(200, 134, 13, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.delivery-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.15);
}

.delivery-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.delivery-option h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 12px;
}

.delivery-option p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: rgba(30, 58, 138, 0.05);
}

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

.contact-item {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(200, 134, 13, 0.2);
    text-align: center;
}

.contact-item h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 16px;
}

.contact-item p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* 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);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.close:hover {
    color: #1e3a8a;
}

.modal-content h2 {
    font-family: 'Noto Serif JP', serif;
    color: #1e3a8a;
    margin: 0;
    padding: 24px 24px 0;
    font-size: 24px;
}

.modal-content form {
    padding: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e3a8a;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(30, 58, 138, 0.2);
    border-radius: 6px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #C8860D;
}

.submit-button {
    background: linear-gradient(135deg, #C8860D 0%, #F59E0B 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    width: 100%;
}

.submit-button:hover {
    background: linear-gradient(135deg, #B8760C 0%, #E08E0B 100%);
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: #1e3a8a;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 300px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #C8860D;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 16px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 8px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 0;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid #C8860D;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-banner.show {
    transform: translateY(0);
}

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

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

.cookie-text a {
    color: #C8860D;
    text-decoration: none;
    border-bottom: 1px solid rgba(200, 134, 13, 0.5);
}

.cookie-text a:hover {
    border-bottom-color: #C8860D;
}

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

.cookie-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.cookie-btn.accept {
    background: #C8860D;
    color: white;
}

.cookie-btn.accept:hover {
    background: #B8760C;
    transform: translateY(-1px);
}

.cookie-btn.decline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn.decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn.customize {
    background: rgba(200, 134, 13, 0.1);
    color: #C8860D;
    border: 1px solid rgba(200, 134, 13, 0.3);
}

.cookie-btn.customize:hover {
    background: rgba(200, 134, 13, 0.2);
    border-color: rgba(200, 134, 13, 0.5);
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cookie-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
}

.cookie-modal-header h3 {
    margin: 0;
    color: #1e3a8a;
    font-family: 'Noto Serif JP', serif;
}

.cookie-modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.cookie-modal-close:hover {
    color: #1e3a8a;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(30, 58, 138, 0.1);
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category-header h4 {
    margin: 0;
    color: #1e3a8a;
    font-size: 16px;
    font-weight: 600;
}

.cookie-required {
    background: rgba(30, 58, 138, 0.1);
    color: #1e3a8a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: #C8860D;
}

.cookie-toggle input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-category p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-modal-footer {
    padding: 24px;
    border-top: 1px solid rgba(30, 58, 138, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-policy-link {
    color: #C8860D;
    text-decoration: none;
    font-size: 14px;
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .hero-img {
        max-width: 400px;
        height: 280px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 40px;
    }

    .section-title {
        font-size: 32px;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .service-text {
        padding-right: 0;
    }

    .corporate-content {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .books-grid,
    .membership-benefits,
    .delivery-options,
    .contact-info {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .cookie-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .hero {
        padding: 40px 0;
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 12px;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }
}