/* Base Styles */
:root {
    --primary-color: #5bbfcb;
    --primary-light: #c1e8ed;
    --primary-dark: #39a2b0;
    --secondary-color: #f5f5f5;
    --text-color: #333333;
    --text-light: #777777;
    --white: #ffffff;
    --black: #000000;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

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

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 500;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
}

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn.outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-cookie {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    margin-right: 10px;
}

.btn-cookie.outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-cookie.text {
    background-color: transparent;
    color: var(--text-color);
    padding: 8px 0;
}

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

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

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 30px;
}

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

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 100px 0;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 3rem;
    color: var(--primary-dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

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

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

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.feature-card h3 {
    padding: 20px 20px 10px;
    color: var(--primary-dark);
}

.feature-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

/* Blog Preview Section */
.blog-preview {
    padding: 80px 0;
}

.blog-preview h2 {
    text-align: center;
    margin-bottom: 40px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-grid.full {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

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

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

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

.post-card h3,
.post-card h2 {
    padding: 20px 20px 10px;
    color: var(--text-color);
}

.post-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
}

.post-card .btn-small {
    margin: 0 20px 20px;
}

.post-meta {
    padding: 20px 20px 0;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    gap: 15px;
}

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

/* Page Header */
.page-header {
    background-color: var(--primary-light);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--primary-dark);
}

.page-header p {
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Page */
.about-content {
    padding: 80px 0;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.timeline {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--primary-light);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.year {
    width: 120px;
    text-align: right;
    padding-right: 30px;
    font-weight: bold;
    color: var(--primary-dark);
}

.event {
    flex: 1;
    padding-left: 30px;
    position: relative;
}

.event::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 1;
}

.team-section {
    margin-top: 60px;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

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

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

.team-member h3 {
    margin-top: 20px;
    color: var(--text-color);
}

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

.values {
    background-color: var(--secondary-color);
    padding: 80px 0;
}

.values h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.value-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Contact Page */
.contact-content {
    padding: 80px 0;
}

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

.contact-info {
    background-color: var(--primary-light);
    padding: 30px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item .icon {
    margin-right: 20px;
    margin-bottom: 0;
}

.info-text h3 {
    margin-bottom: 5px;
    color: var(--primary-dark);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: #e53935;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: var(--secondary-color);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.map {
    padding-bottom: 80px;
}

.map h2 {
    text-align: center;
    margin-bottom: 30px;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

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

/* Expert Interview Section */
.expert-interview {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.expert-interview h2 {
    text-align: center;
    margin-bottom: 40px;
}

.interview-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.interview-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.interview-text {
    padding: 30px;
}

.interview-text h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.interview-text p {
    margin-bottom: 15px;
}

/* Real Time Clock */
.real-time {
    padding: 40px 0;
    background-color: var(--primary-light);
    text-align: center;
}

.real-time h2 {
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.clock {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    background-color: var(--white);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col p, .footer-col li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: var(--white);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

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

.cookie-content a {
    margin-left: auto;
    font-size: 0.9rem;
}

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

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    color: var(--text-light);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.thank-you-message {
    text-align: center;
    padding: 20px 0;
}

.thank-you-message svg {
    margin-bottom: 20px;
}

.thank-you-message h3 {
    color: #4caf50;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .interview-content {
        grid-template-columns: 1fr;
    }
    
    .interview-content img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-grid,
    .post-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
    }
    
    .year {
        width: 100%;
        text-align: left;
        padding-right: 0;
        padding-left: 60px;
        margin-bottom: 10px;
    }
    
    .event {
        padding-left: 60px;
    }
    
    .event::before {
        left: 22px;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav li {
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .feature-card,
    .post-card,
    .team-member,
    .value-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: space-between;
    }
}
