/* Base styles and variables */
:root {
    --primary-color: #40e0d0;
    --primary-dark: #20b2aa;
    --primary-light: #7fffd4;
    --secondary-color: #f0f8ff;
    --text-color: #333;
    --text-light: #666;
    --background-color: #fff;
    --accent-color: #ff6b6b;
    --border-color: #e1e1e1;
    --box-shadow: 0 4px 12px rgba(64, 224, 208, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Noto Sans JP', sans-serif;
}

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

html {
    font-size: 62.5%; /* 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

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

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--primary-dark);
}

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

ul {
    list-style: none;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--box-shadow);
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(64, 224, 208, 0.25);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background-color: var(--background-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 6rem;
    height: auto;
    margin-right: 1.5rem;
    border-radius: 50%;
}

header h1 {
    font-size: 2.4rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 3rem;
}

nav ul li a {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

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

/* Hero section */
.hero {
    position: relative;
    height: 50vh;
    min-height: 40rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 80rem;
}

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

.hero p {
    color: white;
    font-size: 2rem;
    margin-bottom: 3rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.water-animation {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-size: cover;
    animation: wave 15s linear infinite;
    z-index: 1;
}

.water-animation.small {
    height: 60px;
    bottom: -10px;
}

.water-animation.error {
    height: 120px;
    top: auto;
    bottom: 0;
    opacity: 0.6;
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1440px;
    }
}

/* Summary block */
.summary-block {
    background-color: var(--secondary-color);
    padding: 4rem 5%;
    text-align: center;
    margin: 3rem 0;
    border-radius: var(--border-radius);
}

.summary-block h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.summary-block p {
    max-width: 80rem;
    margin: 0 auto;
}

/* Countdown timer */
.countdown {
    text-align: center;
    padding: 3rem 0;
}

.countdown h3 {
    margin-bottom: 2rem;
}

#timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

#timer div {
    display: flex;
    flex-direction: column;
    background-color: var(--primary-color);
    color: white;
    width: 8rem;
    height: 8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
}

#timer div span:first-child {
    font-size: 3rem;
    font-weight: bold;
}

#timer div span:last-child {
    font-size: 1.4rem;
}

/* Featured posts section */
.featured-posts {
    padding: 5rem 5%;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.post-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(64, 224, 208, 0.2);
}

.post-image {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
}

.post-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.read-more:after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover:after {
    margin-left: 1rem;
}

/* Footer styles */
footer {
    background-color: #f8f9fa;
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    width: 6rem;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 50%;
}

.footer-info p {
    margin-bottom: 0.8rem;
}

.footer-links h4, .footer-legal h4, .footer-social h4 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.footer-links ul li, .footer-legal ul li {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    z-index: 1000;
    display: none;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-content p {
    margin-bottom: 2rem;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cookie-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.cookie-btn.decline {
    background-color: #f8f9fa;
    color: var(--text-light);
}

.cookie-btn:hover {
    opacity: 0.9;
}

.cookie-policy-link {
    font-size: 1.4rem;
}

/* About page */
.page-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 6rem 2rem 7rem;
    position: relative;
    overflow: hidden;
}

.page-header h2 {
    color: white;
    position: relative;
    z-index: 1;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 5rem 5%;
}

.about-content h3 {
    color: var(--primary-color);
}

.about-image {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    object-fit: cover;
}

.team-section, .company-info, .values {
    padding: 5rem 5%;
}

.team-section h3, .company-info h3, .values h3 {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    gap: 3rem;
}

.team-member {
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.team-member img {
    width: 100%;
    border-radius: 50%;
    margin: 0 auto 2rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
}

.team-member p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
    gap: 3rem;
}

.value-item {
    background-color: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.value-icon {
    width: 8rem;
    height: 8rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Contact page */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding: 5rem 5%;
}

.contact-info {
    background-color: var(--secondary-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    height: fit-content;
}

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

.info-icon {
    margin-right: 1.5rem;
    color: var(--primary-color);
}

.info-item h4 {
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form-container h3 {
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(64, 224, 208, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 1rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 90%;
    max-width: 60rem;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 2rem;
    top: 2rem;
    color: var(--text-light);
    font-size: 2.8rem;
    font-weight: bold;
    cursor: pointer;
}

.thank-you-content {
    text-align: center;
}

.check-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
    color: var(--primary-color);
}

.thank-you-content h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.close-btn {
    margin-top: 2rem;
}

/* Error page */
.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
}

.error-container {
    text-align: center;
    max-width: 60rem;
    width: 100%;
    position: relative;
}

.error-code {
    font-size: 15rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.2;
    margin-bottom: 0;
    line-height: 1;
}

.error-container h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.error-container p {
    margin-bottom: 4rem;
}

.error-container .btn {
    position: relative;
    z-index: 2;
}

/* Media queries for responsive design */
@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    header {
        flex-direction: column;
        padding: 1.5rem 5%;
    }
    
    .logo-container {
        margin-bottom: 1.5rem;
    }
    
    nav ul li {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
    
    .hero {
        height: 40vh;
        min-height: 35rem;
    }
    
    .hero h2 {
        font-size: 3.2rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
    
    .about-intro, .contact-section {
        padding: 4rem 5%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }
    
    .logo {
        width: 5rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
    
    #timer {
        gap: 1rem;
    }
    
    #timer div {
        width: 7rem;
        height: 7rem;
    }
    
    .error-code {
        font-size: 10rem;
    }
    
    .error-container h2 {
        font-size: 3rem;
    }
    
    .modal-content {
        padding: 3rem;
        width: 95%;
    }
}
