/* 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: #1A1A1A;
    background-color: #FEFEFE;
}

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

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

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

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

.logo {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FEFEFE 0%, #F8F8F8 100%);
    padding: 80px 0;
    border-bottom: 3px solid #C41E3A;
}

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

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

.hero-subtitle {
    font-size: 18px;
    color: #4A4A4A;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.feature-icon {
    font-size: 20px;
}

.cta-button {
    background: #C41E3A;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background: #A31729;
}

.hero-img, .about-img, .castle-img, .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.hero-image {
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
}

.about-image {
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
}

.castle-image {
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
}

/* Section Styles */
.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #1A1A1A;
    position: relative;
}

.section-title.centered {
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #C41E3A;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #FFFFFF;
}

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

.about-text p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #4A4A4A;
    line-height: 1.8;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #F8F8F8;
}

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

.feature-card {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.feature-card .feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #1A1A1A;
}

.feature-card p {
    color: #4A4A4A;
    line-height: 1.7;
}

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

.himeji {
    background: #FFFFFF;
}

.matsumoto {
    background: #F8F8F8;
}

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

.castle-content.centered {
    text-align: center;
}

.castle-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 36px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 10px;
}

.castle-subtitle {
    font-size: 18px;
    color: #C41E3A;
    margin-bottom: 25px;
    font-weight: 500;
}

.castle-text p {
    color: #4A4A4A;
    margin-bottom: 25px;
    line-height: 1.8;
}

.castle-highlights {
    list-style: none;
    margin-bottom: 30px;
}

.castle-highlights li {
    padding: 8px 0;
    color: #4A4A4A;
    position: relative;
    padding-left: 25px;
}

.castle-highlights li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #C41E3A;
    font-size: 12px;
}

.castle-button {
    background: #1A1A1A;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.castle-button:hover {
    background: #333;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #FFFFFF;
}

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

.service-card {
    background: #F8F8F8;
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid #C41E3A;
}

.service-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #1A1A1A;
}

.service-card p {
    color: #4A4A4A;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features span {
    background: #FFFFFF;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    color: #4A4A4A;
}

/* Products Section */
.products {
    padding: 80px 0;
    background: #F8F8F8;
}

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

.product-card {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 500;
    padding: 20px 20px 10px;
    color: #1A1A1A;
}

.product-card p {
    padding: 0 20px;
    color: #4A4A4A;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-price {
    padding: 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: #C41E3A;
    margin-bottom: 20px;
}

.product-button {
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    background: #1A1A1A;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-button:hover {
    background: #333;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #FFFFFF;
}

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

.testimonial-card {
    background: #F8F8F8;
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid #C41E3A;
}

.testimonial-card p {
    color: #4A4A4A;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author strong {
    color: #1A1A1A;
    font-size: 16px;
}

.testimonial-author span {
    color: #666;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #F8F8F8;
}

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

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

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

.contact-detail {
    font-size: 18px;
    color: #C41E3A;
    font-weight: 500;
    margin-bottom: 5px;
}

.contact-hours,
.contact-note {
    color: #666;
    font-size: 14px;
}

/* Form Styles */
.form {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #1A1A1A;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #DDD;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #C41E3A;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

.form-button {
    background: #C41E3A;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-button:hover {
    background: #A31729;
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-brand {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px;
}

.footer-description {
    color: #CCCCCC;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links {
    display: contents;
}

.footer-column h4 {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #C41E3A;
}

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

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

/* 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: #FFFFFF;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

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

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

.modal-content h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 25px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1A1A1A;
    color: #FFFFFF;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.cookie-banner.show {
    display: block;
}

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

.cookie-text {
    flex: 1;
}

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

.cookie-text a {
    color: #C41E3A;
    text-decoration: underline;
}

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

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

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

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

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

.cookie-btn.decline:hover {
    background: #555;
}

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

.cookie-btn.customize:hover {
    background: #333;
    border-color: #999;
}

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

.cookie-modal-content {
    background: #FFFFFF;
    border-radius: 12px;
    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 30px;
    border-bottom: 1px solid #E5E5E5;
}

.cookie-modal-header h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
}

.cookie-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

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

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

.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-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
}

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

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

.cookie-switch 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: .4s;
    border-radius: 24px;
}

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

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

input:disabled + .cookie-slider {
    background-color: #C41E3A;
    opacity: 0.6;
    cursor: not-allowed;
}

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

.cookie-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #E5E5E5;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero-content,
    .about-grid,
    .castle-content,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .castle-title {
        font-size: 28px;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content,
    .cookie-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-text {
        text-align: center;
        margin-bottom: 10px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .about,
    .features,
    .castle-section,
    .services,
    .products,
    .testimonials,
    .contact {
        padding: 60px 0;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .castle-title {
        font-size: 24px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 20px;
    }
}