/* 基本設定 */
:root {
    --primary-color: #2B88D9;
    --secondary-color: #3AAFB9;
    --accent-color: #64D2D2;
    --light-blue: #EAF6F9;
    --dark-blue: #1A5F7A;
    --text-color: #333333;
    --light-gray: #F5F7F9;
    --gray: #8E9BAA;
    --dark-gray: #475569;
    --white: #FFFFFF;
    --black: #000000;
    --font-base: 16px;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

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

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

.body-font-large {
    font-size: calc(var(--font-base) * 1.25);
}

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

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

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

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    line-height: 1.3;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

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

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

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

.btn-text {
    background-color: transparent;
    color: var(--text-color);
    border: none;
    padding: 0;
    text-decoration: underline;
}

.btn-text:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

.btn-submit {
    width: 100%;
    background-color: var(--secondary-color);
}

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

section {
    padding: 80px 0;
}

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

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

.logo {
    flex: 0 0 auto;
}

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

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

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

nav ul li:first-child {
    margin-left: 0;
}

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

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

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

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

.font-size {
    margin-left: 20px;
}

#increase-font {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

#increase-font:hover {
    color: var(--primary-color);
    background-color: var(--light-gray);
}

#increase-font svg {
    margin-right: 5px;
}

/* ヒーローセクション */
.hero {
    background-color: var(--light-blue);
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 120px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 95, 122, 0.5);
}

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

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

.hero p {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* 製品セクション */
.product {
    padding: 100px 0;
}

.product .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.product-info {
    flex: 1;
}

.product-image {
    flex: 1;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.features {
    list-style-type: none;
    padding: 0;
    margin: 30px 0;
}

.features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.features svg {
    color: var(--secondary-color);
    margin-right: 15px;
}

/* 未来からの引用 */
.future-quote {
    background-color: var(--light-blue);
    text-align: center;
    padding: 80px 0;
}

.future-quote blockquote {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 30px;
}

.future-quote blockquote::before {
    content: '"';
    font-size: 6rem;
    position: absolute;
    top: -40px;
    left: -20px;
    color: var(--accent-color);
    opacity: 0.3;
}

.future-quote blockquote p {
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--dark-blue);
    font-style: italic;
}

.future-quote blockquote cite {
    font-style: normal;
    font-weight: 600;
    color: var(--gray);
    font-size: 1rem;
}

/* ブログプレビュー */
.blog-preview {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

.blog-preview h2 {
    margin-bottom: 50px;
}

.posts {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.post {
    flex: 1;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
}

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

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

.post h3, .post p {
    padding: 0 20px;
}

.post h3 {
    margin-top: 20px;
}

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

.read-more::after {
    content: '→';
    position: absolute;
    right: -20px;
    transition: var(--transition);
}

.read-more:hover::after {
    right: -25px;
}

/* フッター */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-logo, .footer-links, .footer-legal, .footer-contact {
    margin-bottom: 30px;
}

.footer-logo {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 40px;
    text-align: center;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-links, .footer-legal, .footer-contact {
    flex: 1;
    min-width: 200px;
}

footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

footer ul {
    list-style-type: none;
    padding: 0;
}

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

footer a {
    color: var(--light-gray);
    transition: var(--transition);
}

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

.footer-contact address {
    font-style: normal;
    margin-bottom: 20px;
}

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

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

.social-icons a:hover {
    background-color: var(--primary-color);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

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

/* Cookie通知 */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.cookie-more-info {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

/* ページヘッダー */
.page-header {
    background-color: var(--light-blue);
    padding: 60px 0;
    text-align: center;
}

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

.page-header p {
    color: var(--dark-gray);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ブログページ */
.blog {
    padding: 80px 0;
}

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

.blog-card {
    flex: 0 0 calc(50% - 20px);
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 250px;
    overflow: hidden;
}

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

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.blog-content h2 {
    margin-top: 0;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray);
}

.blog-card .read-more {
    margin: 20px 0 0 0;
    padding: 0;
    align-self: flex-start;
}

/* 会社概要ページ */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 80px;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--light-gray);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-date {
    background-color: var(--primary-color);
    color: white;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--light-gray);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -15px;
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--light-gray);
}

.team {
    margin: 80px 0;
}

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

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.team-member {
    flex: 0 0 calc(20% - 24px);
    min-width: 220px;
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover img {
    transform: scale(1.05);
}

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

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

.values {
    text-align: center;
}

.values-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
}

.value-item {
    flex: 0 0 calc(33.33% - 33px);
    max-width: 300px;
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background-color: var(--light-blue);
    border-radius: 50%;
    margin: 0 auto 20px;
    color: var(--primary-color);
}

/* お問い合わせページ */
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 60px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

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

.contact-icon {
    flex: 0 0 50px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
}

.contact-text h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.social-contact {
    margin-top: 40px;
}

.social-contact h3 {
    margin-bottom: 20px;
}

.social-contact .social-icons {
    justify-content: flex-start;
}

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

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

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 136, 217, 0.1);
}

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

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

.form-checkbox label {
    margin: 0;
}

.required {
    color: #e53e3e;
}

.map {
    padding-top: 0;
}

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

.placeholder-map {
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* モーダルウィンドウ */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

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

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-body {
    text-align: center;
    padding: 20px;
}

.modal-body svg {
    margin-bottom: 20px;
}

.modal-body h2 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.modal-body p {
    margin-bottom: 25px;
}

.modal-body .btn {
    margin: 0 auto;
}

/* レスポンシブデザイン */
@media (max-width: 992px) {
    header .container {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 20px;
    }
    
    .product .container {
        flex-direction: column;
    }
    
    .posts {
        flex-direction: column;
    }
    
    .blog-card {
        flex: 0 0 100%;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
    }
    
    .timeline-item:nth-child(odd) {
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after {
        right: auto;
        left: -15px;
        border-left: none;
        border-right: 15px solid var(--light-gray);
    }

    .values-grid {
        flex-direction: column;
        align-items: center;
    }

    .value-item {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
        margin-left: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .font-size {
        display: none;
    }
    
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .social-icons {
        justify-content: center;
    }

    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-buttons button {
        width: 100%;
    }
}

/* ブログ記事ページ */
.blog-post {
    padding: 80px 0;
}

.blog-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-header {
    margin-bottom: 40px;
}

.blog-post-header h1 {
    margin-bottom: 20px;
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    color: var(--gray);
    margin-bottom: 20px;
}

.blog-post-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.blog-post-content {
    line-height: 1.8;
}

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

.blog-post-content h2,
.blog-post-content h3 {
    margin-top: 2rem;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
}

.blog-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--light-gray);
}

.blog-post-prev, .blog-post-next {
    flex: 0 0 45%;
}

.blog-post-prev {
    text-align: left;
}

.blog-post-next {
    text-align: right;
}

.blog-post-navigation span {
    display: block;
    color: var(--gray);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.blog-post-navigation a {
    font-weight: 600;
}

.related-posts {
    margin-top: 60px;
}

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

.related-posts-grid {
    display: flex;
    gap: 30px;
}

.related-post {
    flex: 1;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.related-post-content {
    padding: 20px;
}

.related-post h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.related-post-meta {
    font-size: 0.8rem;
    color: var(--gray);
}

@media (max-width: 768px) {
    .blog-post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .blog-post-prev, .blog-post-next {
        flex: 0 0 100%;
    }

    .related-posts-grid {
        flex-direction: column;
    }
}
