/* static/css/style.css */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
}

.language-toggle {
    background: none;
    border: none;
    color: #0b0b0b;
    padding: 10px 5px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    position: relative;
    margin-left: 20px;
}

.language-toggle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000000;
    transition: width 0.3s ease;
}

.language-toggle:hover {
    color: #000000;
}

.language-toggle:hover::after {
    width: 100%;
}

.language-toggle span:first-child {
    margin-right: 5px;
}

#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1.2s ease-out;
    opacity: 1;
}

.splash-content {
    text-align: center;
    position: relative;
}

.splash-logo {
    width: 140px;
    height: 110px;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.splash-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 3px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.splash-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mainContent {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 40px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin-left: 20px;
    position: relative;
}

.nav-item a {
    text-decoration: none;
    color: #0b0b0b;
    padding: 10px 5px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000000;
    transition: width 0.3s ease;
}

.nav-item a:hover {
    color: #000000;
}

.nav-item a:hover::after {
    width: 100%;
}

.dropdown-content {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    min-width: 400px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.dropdown-content a {
    color: #000000;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    width: calc(50% - 10px);
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    margin: 5px;
}

.nav-item:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Main Section Styles */
.main-section {
    padding: 80px 40px;
    background-color: #ffffff;
    min-height: 60vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: #000000;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Footer Styles */
.footer {
    padding: 60px 40px 30px;
    font-size: 14px;
    color: #ffffff;
    background: #000000;
}

.footer__navi-heading {
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    font-size: 16px;
}

.footer__logo {
    display: inline-block;
    margin-bottom: 25px;
}

.footer__navi {
    list-style: none;
    padding: 0;
}

.footer__navi li {
    margin-bottom: 12px;
}

.footer__navi a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer__navi a:hover {
    color: #ffffff;
}

.footer__address {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #cccccc;
    font-weight: 300;
}

.footer__address a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__address a:hover {
    color: #ffffff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

hr {
    height: 1px;
    border: 0;
    border-top: 1px solid #333333;
    margin: 30px 0;
}

.copyright {
    text-align: center;
    color: #999999;
    font-size: 13px;
    font-weight: 300;
}

.copyright a {
    color: #cccccc;
    text-decoration: none;
}

@media (min-width: 768px) {
    .md-flex {
        display: flex;
    }

    .md-justify-between {
        justify-content: space-between;
    }

    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg-flex {
        display: flex;
    }
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tech-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.tech-image {
    height: 300px;
    background-color: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
}

.tech-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tech-content {
    padding: 25px;
}

.tech-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #000;
}

.tech-content p {
    color: #666;
    margin-bottom: 20px;
    min-height: 80px;
}

.tech-details {
    font-size: 0.9rem;
    color: #888;
}

/* Card Styles */
.card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    height: 100%;
}

.card-content {
    padding: 24px;
}

/* Button Styles */
.button {
    display: inline-block;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #333;
}

.button-outline {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
}

.button-outline:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000;
}

/* Page Sections */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    padding: 15px 40px;
    background-color: #f9f9f9;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #000;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb-current {
    font-weight: 500;
    color: #000;
}

/* Inner Pages */
.page-header {
    background-color: #f5f5f5;
    padding: 60px 40px;
    text-align: center;
}

.page-header-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.feature-section {
    padding: 80px 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-block {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-text {
    color: #666;
    font-size: 0.9rem;
}

.content-section {
    padding: 60px 40px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.content-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.content-image img {
    width: 100%;
    height: auto;
}

.content-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-text p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
}

.quote-section {
    background-color: #f9f9f9;
    padding: 60px 40px;
}

.quote-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.quote-author {
    font-weight: 600;
    color: #000;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #eee;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: 50px;
    width: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    margin-left: 50%;
}

.timeline-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-year {
    position: absolute;
    top: 0;
    right: -55px;
    width: 110px;
    text-align: center;
    background-color: #000;
    color: #fff;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
}

.timeline-item:nth-child(even) .timeline-year {
    right: auto;
    left: -55px;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-text {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
        margin-left: 0;
    }

    .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: 0;
        right: auto;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 0.8rem;
        padding: 0;
    }
}

/* About Page Specific */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .vision-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.vision-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.vision-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.vision-card p {
    color: #666;
    line-height: 1.7;
}

/* Business Pages Specific */
.case-studies {
    margin-top: 60px;
}

.case-study {
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 40px;
}

.case-study:last-child {
    margin-bottom: 0;
}

.case-study-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.case-study-logo {
    width: 80px;
    height: 80px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.case-study-logo img {
    width: 60%;
    height: auto;
}

.case-study-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.case-study-category {
    color: #999;
    font-size: 0.9rem;
}

.case-study-content {
    color: #666;
    line-height: 1.7;
}

.business-section {
    padding: 60px 0;
}

.business-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Info */
.contact-info {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.contact-info-item {
    margin-bottom: 20px;
}

.contact-info-item h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-info-item p {
    color: #666;
}

.contact-map {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 40px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mb-8 {
    margin-bottom: 32px;
}

.mb-10 {
    margin-bottom: 40px;
}

.mb-16 {
    margin-bottom: 64px;
}

.p-6 {
    padding: 24px;
}

.p-8 {
    padding: 32px;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.rounded-lg {
    border-radius: 8px;
}

.text-gray-600 {
    color: #666;
}

.text-sm {
    font-size: 14px;
}

.text-lg {
    font-size: 18px;
}

.text-xl {
    font-size: 20px;
}

.text-2xl {
    font-size: 24px;
}

.font-medium {
    font-weight: 500;
}

.font-light {
    font-weight: 300;
}

.flex {
    display: flex;
}

.gap-4 {
    gap: 16px;
}

.gap-8 {
    gap: 32px;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.w-full {
    width: 100%;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.space-y-2>*+* {
    margin-top: 8px;
}

.space-y-3>*+* {
    margin-top: 12px;
}

.space-y-4>*+* {
    margin-top: 16px;
}

.space-y-6>*+* {
    margin-top: 24px;
}

/* 4. スプラッシュ画面の画像を事前に非表示にしないための対策 */
/*.splash-logo {
/*    width: 140px;
/*    height: 110px;
/*    aspect-ratio: 140 / 110;
/*    /* アスペクト比の固定 */
/*    content-visibility: auto;
/*    /* レンダリングの最適化 */
/* static/css/style.css */

#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    /* 水平中央 */
    align-items: center;
    /* 垂直中央 */
    z-index: 9999;
}

.splash-content {
    display: block;
    /* Firefoxでの計算を安定させるためblockに変更 */
    width: 100%;
    /* 親の幅いっぱいに広げる */
    text-align: center;
    /* 中身のインライン要素を中央へ */
}

.splash-logo {
    display: block;
    /* block要素化 */
    width: 140px;
    /* 幅を厳格に固定 */
    height: auto;
    aspect-ratio: 140 / 110;
    /* 読み込み前の領域確保 */
    margin: 0 auto 30px auto;
    /* 左右のautoマージンで中央寄せを確定 */

    /* アニメーション中の位置ズレ防止 */
    opacity: 0;
    transform: translateY(0);
    animation: fadeIn 1s ease-out forwards;
}

/* 画像のプレースホルダー色を設定し、空白時間を視覚的に埋める */
.tech-card {
    background-color: #f0f0f0;
    /* 画像が出る前のグレー背景 */
    min-height: 300px;
}