:root {
    --primary-color: #000000;
    --secondary-color: rgb(65, 94, 104);
    --accent-color: rgb(146, 235, 219);
    --light-gray: #FFFFFF;
    --dark-gray: #000000;
    --bg-image: url('/static/images/main_image.svg');
}

body {
    font-family: Meiryo, "Hiragino Kaku Gothic Pro", "Yu Gothic", sans-serif;
    color: var(--primary-color);
    line-height: 1.6;
}

/* Navigation */
.nav-link {
    color: var(--primary-color) !important;
    margin: 0 1rem;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* テキストの視認性を向上 */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
    transform: translateY(-1px);
}

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

.navbar {
    background-color: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* ハンバーガーメニューのスタイル */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    bottom: -8px;
}

/* モバイルメニュー展開時のアニメーション */
.navbar-collapse {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem;
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transform: translateX(100%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;  /* モバイルメニューの幅を最適化 */
        position: fixed;
        top: 60px;  /* ナビゲーションバーの高さに合わせて調整 */
        right: 0;  /* 右側からのスライドイン */
        left: auto;
    }

    .navbar-collapse.show {
        max-height: calc(100vh - 4rem);
        transform: translateX(0);
        opacity: 1;
    }

    .navbar-nav {
        padding: 0.5rem 0;
    }

    .nav-item {
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0.25rem 0;
    }

    .navbar-collapse.show .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    /* ドロップダウンメニューのモバイル表示を最適化 */
    .dropdown-menu {
        position: static;
        width: 100%;
        max-width: none;
        background: transparent;
        box-shadow: none;
        padding: 0 0 0 1rem;
        margin: 0.25rem 0;
        opacity: 1;
        transform: none;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.85);  /* 透過度を調整 */
    backdrop-filter: blur(8px);  /* ブラー効果を強化 */
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);  /* 微かな境界線を追加 */
}

/* ドロップダウンが開いているときのナビゲーションバーの背景 */
.navbar:has(.dropdown-menu:hover) {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.navbar-logo {
    height: 48px;
    width: auto;
    margin: 0;
    display: block;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) translateY(0);
    -webkit-transform: translateZ(0) translateY(0);
}

.brand-text-wrapper {
    display: flex;
    align-items: center;
    line-height: 1.2;
    transform-origin: left center;
}

.brand-text {
    font-family: Meiryo, "Hiragino Kaku Gothic Pro", sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: none;
    will-change: transform;
    transform: translateZ(0) translateY(0);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hover effects */
.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand:hover .brand-text {
    transform: translateZ(0) translateY(-2px) scale(1.03);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand:hover .navbar-logo {
    transform: translateZ(0) translateY(-2px) scale(1.05);
}

/* Add subtle transition out */
.navbar-brand,
.navbar-brand .brand-text,
.navbar-brand .navbar-logo {
    transition-duration: 0.5s, 0.5s, 0.5s;
    transition-property: transform, text-shadow, opacity;
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 1200px) {
    .navbar-logo {
        height: 44px;
    }
    .brand-text {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .navbar-logo {
        height: 40px;
    }
    .brand-text {
        font-size: 1.8rem;
    }
    .navbar-brand {
        padding: 0.25rem 0;
    }
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 36px;
    }
    .brand-text {
        font-size: 1.6rem;
    }
    .navbar-brand {
        padding: 0.15rem 0;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 32px;
    }
    .brand-text {
        font-size: 1.5rem;
    }
    .navbar-brand {
        padding: 0.1rem 0;
    }
}

/* Navigation Dropdown */
.nav-item.dropdown {
    position: relative;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu {
    display: block;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem;
    right: 0;  /* 右寄せに修正 */
    left: auto;  /* 左寄せを解除 */
    min-width: 160px;  /* 幅を縮小 */
    max-width: 200px;  /* 最大幅を設定 */
}

.dropdown-item {
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-align: right;  /* テキストを右寄せ */
}

.dropdown-item:hover {
    background-color: rgba(146, 235, 219, 0.1);  /* アクセントカラーを薄く */
    color: var(--accent-color);
    transform: translateX(-5px);
}

@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding: 0 0 0 1rem;
        margin: 0;
        text-align: left;  /* モバイル時は左寄せ */
    }

    .dropdown-item {
        color: var(--primary-color);
        padding: 0.5rem 1rem;
        text-align: left;  /* モバイル時は左寄せ */
    }

    .dropdown-item:hover {
        background: transparent;
        transform: none;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background-color: #ffffff;
    background-image: url('/static/images/main_image.svg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #000000;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFade 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.4s;
    color: #000000;
}

/* Content Wrapper */
.content-wrapper {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2rem;
}

.content-wrapper.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section Styles */
.section {
    padding: 6rem 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 50%,
        rgba(255, 255, 255, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optimize animations */
.service-card {
    text-align: left;
    padding: 2.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* Service Section Footer */
.service-section-footer {
    padding: 2rem;
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-contact-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-contact-text {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.service-card .btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.service-card .btn-outline-primary:hover {
    background: linear-gradient(90deg, rgb(65, 94, 104) 0%, rgb(146, 235, 219) 100%);
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, rgb(65, 94, 104) 0%, rgb(146, 235, 219) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}

.service-card h3 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Service Section Layout */
.service-card {
    padding: 3rem;
    margin-bottom: 3rem;
    height: 100%;
    min-height: 320px;
}

.row.service-row {
    margin-bottom: 4rem;
}

/* Service Card Responsive */
@media (max-width: 992px) {
    .service-card {
        padding: 2.5rem;
        min-height: 280px;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 768px) {
    .service-card {
        padding: 2rem;
        min-height: 240px;
        margin-bottom: 2rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .service-section-footer {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .service-contact-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* About */
.about-image img {
    border-radius: 0;
}

.about-content {
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Form */
.form-control {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* ボタンスタイルの更新 */
.btn-primary {
    background: linear-gradient(90deg, rgb(65, 94, 104) 0%, rgb(146, 235, 219) 100%);
    border: none;
    padding: 0.75rem 2rem;
    color: var(--light-gray);
    transition: all 0.3s ease;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgb(146, 235, 219) 0%, rgb(65, 94, 104) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* Footer */
.footer {
    background-color: #000000;
    background-image: url('../images/footer-pattern.svg');
    background-repeat: repeat;
    background-size: 100px 100px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer h5 {
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--accent-color);
}

.footer a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

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

.footer .social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .about-content {
        padding: 1rem;
    }
}

/* Page Header */
.page-header {
    background-color: #FFFFFF;
    color: var(--primary-color);
    padding: 100px 0 40px;
    margin-bottom: 0;
    position: relative;
    opacity: 1;
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-header.fade-in {
    opacity: 1;
}

.page-title {
    font-weight: 700;
    margin: 0;
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Adjust padding for non-home pages */
body:not(.home-page) .section {
    padding: 4rem 0;
}


/* Philosophy Section */
.philosophy-section {
    padding: 6rem 0;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 4rem auto 0;
    padding: 0 1rem;
}

.philosophy-introduction {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-introduction.visible {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-introduction p {
    margin-bottom: 0.5rem;
}

.philosophy-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-item.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes borderSlideDown {
    from {
        height: 0;
    }
    to {
        height: 100%;
    }
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.philosophy-card {
    position: relative;
    padding: 2rem 2rem 2rem 3rem;
    overflow: hidden;
    background: transparent;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background-color: var(--accent-color);
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-title {
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
}

.philosophy-content {
    position: relative;
}

.philosophy-headline {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-detail {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-item.visible .philosophy-headline {
    transition-delay: 0.6s;
}

.philosophy-item.visible .philosophy-detail {
    transition-delay: 0.9s;
}

.philosophy-item.visible .philosophy-card::before {
    height: 100%;
}

.philosophy-item.visible .philosophy-title,
.philosophy-item.visible .philosophy-headline,
.philosophy-item.visible .philosophy-detail {
    opacity: 1;
    transform: translateX(0);
}

.philosophy-headline {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    line-height: 1.4;
}

.philosophy-detail {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

.philosophy-item.visible .philosophy-headline,
.philosophy-item.visible .philosophy-detail {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-detail p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin: 0;
    padding: 1rem 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .philosophy-section {
        padding: 4rem 0;
    }

    .philosophy-card {
        padding: 1.5rem;
    }

    .philosophy-title {
        font-size: 1.6rem;
    }

    .philosophy-headline {
        fontsize: 1.6rem;
    }

    .philosophy-detail p {
        font-size: 0.9rem;
        padding: 0.75rem 0;
    }
}

/* Animation Base Classes */
.section, .section-title, .service-card, .about-content,
.news-item, .contact-form, .philosophy-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.section.visible, .section-title.visible, .service-card.visible,
.about-content.visible, .news-item.visible, .contact-form.visible,
.philosophy-item.visible {    opacity: 1;
    transform: translateY(0);
}

/* Basic Animation Classes */
.fade-in {
    opacity: 0;
    will-change: opacity;
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-delay {
    opacity: 0;
    will-change: opacity;
    animation: fadeIn 15s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.8s;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    will-change: opacity, transform;
    animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    will-change: opacity, transform;
    animation: slideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

/* Hero Section Animations */
.hero-title {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    animation: slideUpFade 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    animation: slideUpFade 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.4s;
}

.hero-cta {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    animation: slideUpFade 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.8s;
}

/* Philosophy Section Animations */
.philosophy-introduction {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

.philosophy-introduction.fade-in-delay {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.philosophy-headline {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-detail {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-item.visible .philosophy-headline,
.philosophy-item.visible .philosophy-detail {
    opacity: 1;
    transform: translateY(0);
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(var(--translate-x, 30px));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .section,
    .section-title {
        transform: translateY(20px);
    }
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.6s ease-out forwards;
}

.values-list li:nth-child(1) {
    animation-delay: 0.8s;
}

.values-list li:nth-child(2) {
    animation-delay: 1s;
}

.values-list li:nth-child(3) {
    animation-delay: 1.2s;
}

/* Message Section Styles */
.message-section {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 1));
    position: relative;
}

.message-container {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
}

.message-image-wrapper {
    text-align: center;
    position: sticky;
    top: 120px;
}

.ceo-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 4px solid white;
}

.message-profile {
    margin-top: 1.5rem;
}

.message-profile h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.message-profile p {
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.message-content {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--accent-color);
}

.message-card {
    padding: 0.5rem 0;
}

.message-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.message-card p:last-child {
    margin-bottom: 0;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideIn 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: slideIn 0.8s ease-out forwards;
    animationdelay: 0.6s;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .message-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .message-image-wrapper {
        position: relative;
        top: 0;
        max-width: 250px;
        margin: 0 auto;
    }
    .message-content {
        padding-left: 1.5rem;
    }

    .message-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .message-image-wrapper {
        max-width: 200px;
    }

    .message-profile h2 {
        font-size: 1.1rem;
    }

    .message-profile p {
        font-size: 1rem;
    }

    .message-content {
        padding-left: 1rem;
    }

    .message-card p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .company-tabs-container {
        margin-top: 3rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(var(--translate-x, 30px));
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-tabs-container {
    margin-top: 4rem;
    padding-top: 2rem;
}

/* Company tab hover effects */
.company-tabs {
    list-style: none;
    padding: 0;
    margin: 3rem auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.company-tab-button {
    background: none;
    border: none;
    padding: 2rem 1.5rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.company-tab-content {
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-tab-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    z-index: 1;
}

.company-tab-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.company-tab-subtitle {
    font-size: 0.9rem;
    color: rgb(65, 94, 104);
    margin: 0;
}

.company-tab-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.company-tab-link span {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.company-tab-button:hover .company-tab-content {
    transform: translateY(-4px);
}

.company-tab-button:hover .company-tab-background {
    transform: scale(1);
    opacity: 0.08;
    backdrop-filter: blur(8px);
}

.company-tab-button.active {
    box-shadow: 0 4px 20px rgba(146, 235, 219, 0.15);
}

.company-tab-button:hover .company-tab-link {
    opacity: 1;
}

.company-tab-button.active .company-tab-background {
    opacity: 0.15;
    transform: scale(1);
}

@media (max-width: 768px) {
    .company-tab-button {
        padding: 1.25rem;
    }

    .company-tab-title {
        font-size: 1.25rem;
    }

    .company-tab-subtitle {
        font-size: 0.85rem;
    }

    .company-tab-link span {
        font-size: 0.85rem;
    }
}

/* Innovation Section */
.innovation-section {
    padding: 8rem 0;
    background-color: rgba(65, 94, 104, 0.02);
    position: relative;
    overflow: hidden;
}

.innovation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.innovation-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    background: linear-gradient(90deg, rgb(65, 94, 104) 0%, rgb(146, 235, 219) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    letter-spacing: 0.02em;
}

.innovation-message {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--secondary-color);
}

.innovation-message p {
    margin-bottom: 0.5rem;
}

.innovation-message p:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

/* Innovation Section Responsive */
@media (max-width: 768px) {
    .innovation-section {
        padding: 6rem 0;
    }

    .innovation-title {
        font-size: 2.5rem;
    }

    .innovation-message {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .innovation-section {
        padding: 4rem 0;
    }

    .innovation-title {
        font-size: 2rem;
    }

    .innovation-message {
        font-size: 1.1rem;
    }
}

/* Company Info Table Styles */
.company-info-table {
    margin-top: 2rem;
    margin-bottom: 4rem;
    border: none;
}

.company-info-table th,
.company-info-table td {
    border: none;
    padding: 1.5rem 1rem;
    vertical-align: top;
    line-height: 1.8;
}

.company-info-table th {
    font-weight: 700;
    width: 25%;
    color: var(--primary-color);
    background-color: rgba(146, 235, 219, 0.1);
}

.company-info-table td {
    color: var(--secondary-color);
    font-size: 1.05rem;
}

.company-info-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.company-info-table tr:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .company-info-table th,
    .company-info-table td {
        padding: 1rem;
    }

    .company-info-table th {
        width: 35%;
    }

    .company-info-table td {
        font-size: 0.95rem;
    }
}

/* Company Tabs */
.company-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    list-style: none;
}

.company-tabs li {
    position: relative;
    list-style: none;
}

.company-tab-button {
    position: relative;
    width: 100%;
    min-height: 180px;
    padding: 1.5rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.company-tab-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.company-tab-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.company-tab-subtitle {
    font-size: 1.75rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.company-tab-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
}

.company-tab-button:hover .company-tab-content {
    transform: translateY(-0.25rem);
}

.company-tab-button:hover .company-tab-title {
    opacity: 1;
    transform: translateY(-0.25rem);
}

.company-tab-button:hover .company-tab-subtitle {
    opacity: 1;
    transform: translateY(-0.25rem);
}

.company-tab-button:hover .company-tab-link {
    opacity: 1;
    transform: translateY(0);
}

.company-tab-background {
    display: none;
}

.company-tab-button:hover {
    background: var(--accent-color);
}

.company-tab-button:hover .company-tab-title,
.company-tab-button:hover .company-tab-subtitle,
.company-tab-button:hover .company-tab-link {
    color: white;
}

.company-tab-button.active {
    background: var(--accent-color);
}

.company-tab-button.active .company-tab-title,
.company-tab-button.active .company-tab-subtitle {
    color: white;
}

.company-tab-button.active .company-tab-link {
    display: none;
}

.company-tab-button:active {
    background: var(--primary-color);
}

.company-tab-button:active .company-tab-title,
.company-tab-button:active .company-tab-subtitle,
.company-tab-button:active .company-tab-link {
    color: white;
}

/* Arrow Icon */
.arrow-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    color: var(--primary-color);
}

.company-tab-button:hover .arrow-icon {
    transform: translateX(0.25rem);
    opacity: 1;
}

@media (max-width: 768px) {
    .company-tabs {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin: 2rem 0;
    }

    .company-tab-button {
        min-height: 140px;
    }

    .company-tab-subtitle {
        font-size: 1.5rem;
    }
}

/* Privacy Policy Styles */
.privacy-policy-content {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.privacy-policy-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.privacy-policy-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.privacy-policy-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
}

.privacy-policy-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.privacy-policy-content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-policy-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--secondary-color);
}

.privacy-policy-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.contact-info {
    background: rgba(146, 235, 219, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .privacy-policy-content {
        padding: 1.5rem;
    }

    .privacy-policy-content h2 {
        font-size: 1.75rem;
    }

    .privacy-policy-content h3 {
        font-size: 1.3rem;
    }

    .privacy-policy-content h4 {
        font-size: 1.1rem;
    }
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.table th,
.table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* Company Information Table */
.table.company-info-table {
    margin-top: 2rem;
}

.table.company-info-table th {
    width: 30%;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.table.company-info-table td {
    padding: 1rem;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .table.company-info-table th {
        width: 40%;
    }
}