:root {
    --primary-color: #00bcd4;
    --primary-dark: #008ba3;
    --secondary-color: #e0f7fa;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #757575;
    --white: #ffffff;
    --black: #212121;
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 4px;
    --font-sans: 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

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

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;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.2rem;
}

h4 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background-color: var(--medium-gray);
}

.btn-cookie {
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0.5rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-customize {
    background-color: var(--medium-gray);
    color: var(--black);
}

.btn-decline {
    background-color: transparent;
    color: var(--dark-gray);
    border: 1px solid var(--medium-gray);
}

.read-more {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    position: relative;
}

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

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

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

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

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

.logo img {
    height: 5rem;
    width: auto;
}

nav ul {
    display: flex;
}

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

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

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

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

.font-size-control {
    margin-left: 2rem;
}

#decrease-font {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.glow-effect:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.glow-effect:hover:after {
    left: 100%;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    padding: 8rem 0;
    background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,188,212,0.1), transparent);
}

.hero-content {
    max-width: 60rem;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4.2rem;
    margin-bottom: 2rem;
    color: var(--black);
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

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

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

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

.feature-card {
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    background-color: var(--white);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

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

.feature-card h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-card p {
    color: var(--dark-gray);
}

/* Latest Posts Section */
.latest-posts {
    padding: 8rem 0;
    background-color: var(--light-gray);
}

.latest-posts h2 {
    text-align: center;
    margin-bottom: 5rem;
}

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

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

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

.post-content {
    padding: 2rem;
}

.post-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.post-card p {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.view-all {
    text-align: center;
    margin-top: 4rem;
}

/* Page Banner */
.page-banner {
    padding: 6rem 0;
    background-color: var(--secondary-color);
    text-align: center;
}

.page-banner h1 {
    margin-bottom: 1rem;
}

.page-banner p {
    font-size: 1.8rem;
    color: var(--dark-gray);
}

/* About Page */
.about-intro {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.values {
    padding: 8rem 0;
    background-color: var(--light-gray);
}

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

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

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

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

.team {
    padding: 8rem 0;
}

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

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

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

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    object-fit: cover;
}

/* Blog Page */
.blog-posts {
    padding: 8rem 0;
}

.post-date {
    display: inline-block;
    font-size: 1.4rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
}

.post-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.post-card.featured img {
    height: 100%;
}

.post-card.small {
    display: flex;
    flex-direction: column;
}

.post-card.small img {
    height: 15rem;
}

.post-card.small h4 {
    font-size: 1.6rem;
}

/* Post Single */
.post-header {
    padding: 6rem 0;
    background-color: var(--secondary-color);
}

.post-meta {
    display: flex;
    gap: 2rem;
    color: var(--dark-gray);
    font-size: 1.4rem;
}

.post-content {
    padding: 6rem 0;
}

.post-image {
    margin-bottom: 4rem;
}

.post-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.post-text h2 {
    font-size: 2.8rem;
    margin-top: 4rem;
}

.post-text h3 {
    font-size: 2.2rem;
    margin-top: 3rem;
}

.post-text h4 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
}

.post-text p, .post-text ul, .post-text ol {
    margin-bottom: 2rem;
    font-size: 1.6rem;
    line-height: 1.8;
}

.post-text ul, .post-text ol {
    padding-left: 2rem;
}

.post-text ul li, .post-text ol li {
    margin-bottom: 1rem;
}

.post-navigation {
    margin: 6rem 0;
    display: flex;
    justify-content: space-between;
}

.related-posts {
    margin-top: 6rem;
    border-top: 1px solid var(--medium-gray);
    padding-top: 6rem;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 4rem;
}

/* Contact Page */
.contact-section {
    padding: 8rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.info-icon {
    margin-right: 1.5rem;
    flex-shrink: 0;
}

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

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

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

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

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

input, textarea, select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1.6rem;
}

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

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

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

.map-section {
    padding: 0 0 8rem;
}

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

.map-container {
    height: 40rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thank You Modal */
.thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 4rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 50rem;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2.4rem;
    cursor: pointer;
}

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

/* CTA Section */
.cta {
    padding: 6rem 0;
    background-color: var(--secondary-color);
    text-align: center;
}

.cta h2 {
    margin-bottom: 1.5rem;
}

.cta p {
    margin-bottom: 3rem;
    font-size: 1.8rem;
}

.newsletter-form {
    display: flex;
    max-width: 60rem;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 6rem 0 2rem;
}

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

.footer-logo img {
    height: 5rem;
    margin-bottom: 2rem;
}

.footer-contact, .footer-links, .footer-policy, .social-media {
    display: flex;
    flex-direction: column;
}

.footer-contact h4, .footer-links h4, .footer-policy h4, .social-media h4 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-contact p i {
    margin-right: 1rem;
    color: var(--primary-color);
}

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

.footer-links ul li a, .footer-policy ul li a {
    color: var(--white);
    transition: var(--transition);
}

.footer-links ul li a:hover, .footer-policy ul li a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.cookie-content p {
    margin-bottom: 1.5rem;
}

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

.cookie-content a {
    font-size: 1.4rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    html {
        font-size: 60%;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .post-card.featured {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    header .container {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .logo {
        margin-bottom: 1.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 1rem 1rem;
    }
    
    .feature-grid, .post-grid, .values-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 3.6rem;
    }
    
    .cookie-content {
        flex-direction: column;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 56%;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.6rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 2rem;
    }
    
    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}
