/* Base Styles */
:root {
    --primary-color: #f9b5d0;
    --secondary-color: #6e8faf;
    --accent-color: #d64c7f;
    --text-color: #333;
    --text-light: #666;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --error-color: #f44336;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --container-width: 1200px;
    --font-main: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Noto Serif JP', 'Georgia', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-white);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--accent-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Header Styles */
header {
    background-color: var(--background-white);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 5px;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    height: 600px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 181, 208, 0.2) 0%, rgba(110, 143, 175, 0.2) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 10px rgba(214, 76, 127, 0.3);
}

.cta-button:hover {
    background-color: #c1366a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(214, 76, 127, 0.4);
}

/* Page Banner */
.page-banner {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pattern.jpg');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.feature-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform var(--transition-speed);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(249, 181, 208, 0.3);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Blog Preview Section */
.blog-preview {
    padding: 5rem 0;
}

.blog-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.blog-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    background-color: var(--background-white);
    transition: transform var(--transition-speed);
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: bold;
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 5px;
    transition: transform var(--transition-speed);
    display: inline-block;
}

.read-more:hover:after {
    transform: translateX(5px);
}

.view-all {
    display: block;
    text-align: center;
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* Beginner Mistakes Section */
.beginner-mistakes {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.beginner-mistakes h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.mistakes-content {
    max-width: 800px;
    margin: 0 auto;
}

.mistake {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-color);
    border-left: 4px solid var(--primary-color);
}

.mistake h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
}

.blog-grid {
    display: grid;
    gap: 40px;
}

.blog-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform var(--transition-speed);
}

.blog-item:hover {
    transform: translateY(-5px);
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-details {
    padding: 2rem;
}

.blog-meta {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-excerpt {
    margin-bottom: 1.5rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

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

.about-content h2 {
    margin-bottom: 2rem;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow-color);
}

/* Values Section */
.values-section {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.values-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.value-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.value-icon {
    background-color: var(--secondary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(110, 143, 175, 0.3);
}

.value-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Team Section */
.team-section {
    padding: 5rem 0;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.team-member {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    text-align: center;
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-member h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.team-member p {
    padding: 0 1rem;
    color: var(--text-light);
}

.team-member p:first-of-type {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.team-member p:last-child {
    padding-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

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

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-info > p {
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    margin-bottom: 2rem;
}

.info-icon {
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(249, 181, 208, 0.3);
}

.info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-form-container {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.contact-form-container h2 {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    transition: border-color var(--transition-speed);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed);
    width: 100%;
    box-shadow: 0 4px 10px rgba(214, 76, 127, 0.3);
}

.submit-btn:hover {
    background-color: #c1366a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(214, 76, 127, 0.4);
}

/* Map Section */
.map-section {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.map-container p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: color var(--transition-speed);
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-content h2 {
    margin-bottom: 1rem;
    color: var(--success-color);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 80px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

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

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition-speed);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed);
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

.page-number {
    text-align: center;
    padding-top: 1rem;
    opacity: 0.5;
    font-size: 0.8rem;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 1rem;
    z-index: 1001;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 1rem;
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    transition: all var(--transition-speed);
}

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

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

.cookie-btn.decline {
    background-color: var(--error-color);
    color: white;
}

.cookie-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 0.9rem;
}

.cookie-content a:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .social-links {
        grid-column: 1 / -1;
        margin-top: 2rem;
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .about-section .container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .blog-item {
        grid-template-columns: 1fr;
    }
    
    .blog-image img {
        height: 250px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}
