/* ベーススタイル */
:root {
    --primary-color: #4aa9e9;
    --secondary-color: #e0f2ff;
    --accent-color: #0056b3;
    --text-color: #333333;
    --light-text: #666666;
    --light-bg: #f9fdff;
    --white: #ffffff;
    --shadow: 0 2px 15px rgba(74, 169, 233, 0.1);
    --border: 1px solid rgba(74, 169, 233, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

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

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

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

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

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

.btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

/* ヘッダースタイル */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.logo {
    float: left;
}

.logo img {
    max-height: 50px;
    border-radius: 0;
}

nav {
    float: right;
    margin-top: 8px;
}

nav ul {
    list-style: none;
}

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

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

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    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%;
}

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

/* ヒーロースタイル */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--white) 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(circle, var(--secondary-color) 10%, transparent 10.5%);
    background-size: 20px 20px;
    opacity: 0.4;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

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

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

/* 特徴セクション */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

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

.feature {
    text-align: center;
    padding: 30px;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature .icon {
    margin-bottom: 20px;
}

/* 最新の投稿セクション */
.latest-posts {
    padding: 80px 0;
    background-color: var(--light-bg);
}

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

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

.post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(74, 169, 233, 0.15);
}

.post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.post h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
}

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

.read-more {
    display: block;
    padding: 0 20px 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* ブログページスタイル */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d8ac7 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.blog-content {
    padding: 80px 0;
}

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

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

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(74, 169, 233, 0.15);
}

.blog-post img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.post-date {
    padding: 20px 20px 0;
    color: var(--light-text);
    font-size: 0.9rem;
}

.blog-post h2 {
    padding: 10px 20px;
    font-size: 1.5rem;
}

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

/* ニュースレター */
.newsletter {
    padding: 60px 0;
    background-color: var(--secondary-color);
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.newsletter-form input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: var(--border);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* 編集者からの一言セクション */
.editors-note {
    padding: 80px 0;
    background-color: var(--white);
}

.note-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.editor-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.note-text {
    flex: 1;
}

.note-text p:first-child {
    font-style: italic;
    font-size: 1.1rem;
    position: relative;
    padding-left: 20px;
}

.note-text p:first-child:before {
    content: """;
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    left: -10px;
    top: -20px;
    opacity: 0.3;
}

/* データ可視化セクション */
.data-visualization {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.chart-container {
    max-width: 800px;
    margin: 30px auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.chart-caption {
    text-align: center;
    color: var(--light-text);
    font-style: italic;
}

/* アバウトページスタイル */
.about-intro {
    padding: 80px 0;
    background-color: var(--white);
}

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

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

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

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.mission, .vision {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.mission-icon, .vision-icon {
    margin-bottom: 20px;
}

.values {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

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

.value {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.team {
    padding: 80px 0;
    background-color: var(--white);
}

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

.team-member {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h3 {
    margin-bottom: 5px;
}

.team-member p:nth-child(3) {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--white);
    text-align: center;
    line-height: 30px;
    transition: var(--transition);
}

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

.testimonials {
    padding: 80px 0;
    background-color: var(--secondary-color);
    text-align: center;
}

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

.testimonial-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-content:before {
    content: """;
    font-size: 5rem;
    color: var(--primary-color);
    position: absolute;
    top: -30px;
    left: 20px;
    opacity: 0.2;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 20px;
}

/* コンタクトページスタイル */
.contact-info {
    padding: 80px 0;
    background-color: var(--white);
}

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

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

.contact-item .icon {
    margin-right: 20px;
}

.contact-form-container {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

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

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: var(--border);
    border-radius: var(--border-radius);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 169, 233, 0.2);
}

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

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

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

.btn-submit {
    width: 100%;
}

.map-container {
    padding: 40px 0 80px;
    text-align: center;
}

.map {
    margin-top: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* フッタースタイル */
footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-logo img {
    max-height: 50px;
    margin-bottom: 15px;
    border-radius: 0;
}

.footer-links h3,
.footer-contact h3 {
    color: var(--white);
    margin-bottom: 20px;
}

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

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

.footer-links ul li a {
    color: #b1c1d0;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #b1c1d0;
}

.footer-contact svg {
    margin-right: 10px;
}

.footer-contact .social-icons a {
    background-color: transparent;
}

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

/* Cookieノーティススタイル */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}

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

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

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

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

.btn-customize {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--light-text);
}

.btn-decline {
    background-color: #f1f1f1;
    color: var(--text-color);
}

.cookie-more {
    margin-left: 20px;
    white-space: nowrap;
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    text-align: center;
}

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

.modal-icon {
    margin-bottom: 20px;
}

.btn-modal-close {
    margin-top: 20px;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }
    
    .logo, nav {
        float: none;
        text-align: center;
    }
    
    nav {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .about-grid,
    .mission-vision-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .note-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }
    
    .feature-grid,
    .posts-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cookie-content p,
    .cookie-buttons,
    .cookie-more {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form .btn {
        width: 100%;
        max-width: none;
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature, .post, .blog-post {
    animation: fadeIn 0.5s ease forwards;
}

.feature:nth-child(2) {
    animation-delay: 0.1s;
}

.feature:nth-child(3) {
    animation-delay: 0.2s;
}

.post:nth-child(2), .blog-post:nth-child(2) {
    animation-delay: 0.1s;
}

.post:nth-child(3), .blog-post:nth-child(3) {
    animation-delay: 0.2s;
}

.blog-post:nth-child(4) {
    animation-delay: 0.3s;
}

.blog-post:nth-child(5) {
    animation-delay: 0.4s;
}
