/* 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: #222222;
    background-color: #F7F7F7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
.header {
    background-color: #F7F7F7;
    padding: 20px 0;
    border-bottom: 1px solid #D7C9A3;
}

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

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

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

.logo {
    flex-shrink: 0;
}

.brand-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 500;
    color: #1B5E20;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    color: #1B5E20;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Content Blocks */
.content-block {
    background-color: white;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #D7C9A3;
}

.content-block h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    color: #1B5E20;
    margin-bottom: 20px;
    font-weight: 500;
}

.content-block h3 {
    font-size: 1.4rem;
    color: #1B5E20;
    margin-bottom: 15px;
    font-weight: 500;
}

.content-block p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.content-block p:last-child {
    margin-bottom: 0;
}

/* Company Info */
.company-info {
    display: grid;
    gap: 15px;
}

.info-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: #1B5E20;
    font-weight: 500;
    display: inline-block;
    min-width: 120px;
}

/* About Page Specific Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text {
    text-align: left;
}

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

.about-img {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Empty Content for Policy Pages */
.empty-content {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}

/* Footer */
.footer {
    background-color: #222222;
    color: #F7F7F7;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer .brand-name {
    color: #D7C9A3;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #F7F7F7;
    text-decoration: none;
    font-size: 0.95rem;
}

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

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

.footer-bottom p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #222222;
    color: #F7F7F7;
    padding: 25px;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 3px solid #1B5E20;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.cookie-text h3 {
    color: #D7C9A3;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-link {
    color: #D7C9A3;
    text-decoration: underline;
    font-size: 0.85rem;
    margin-left: 10px;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.cookie-btn.accept:hover {
    background-color: #2E7D32;
}

.cookie-btn.reject {
    background-color: #666;
    color: white;
}

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

.cookie-btn.customize {
    background-color: transparent;
    color: #F7F7F7;
    border: 1px solid #F7F7F7;
}

.cookie-btn.customize:hover {
    background-color: #F7F7F7;
    color: #222222;
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h3 {
    color: #1B5E20;
    margin: 0;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

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

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

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

.cookie-category h4 {
    color: #1B5E20;
    margin: 0;
    font-size: 1.1rem;
}

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

.cookie-category input[type="checkbox"] {
    transform: scale(1.2);
}

.cookie-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .content-block {
        padding: 30px 20px;
    }
    
    .content-block h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        gap: 20px;
    }
    
    .info-item strong {
        display: block;
        margin-bottom: 5px;
        min-width: auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-illustration {
        order: -1;
    }
    
    .cookie-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
}