/* 全体的な設定 */
:root {
    --primary-color: #0067c0;
    --secondary-color: #0057a4;
    --accent-color: #4ca3ff;
    --dark-color: #1d1f28;
    --light-color: #f8f9fa;
    --text-color: #222;
    --light-text: #f8f9fa;
    --muted-color: #7a7c87;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: #fff;
    --gradient-primary: linear-gradient(135deg, #0067c0, #4ca3ff);
    --gradient-dark: linear-gradient(135deg, #1d1f28, #373a47);
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --box-shadow: 0 10px 30px rgba(0, 103, 192, 0.1);
    --box-shadow-hover: 0 15px 35px rgba(0, 103, 192, 0.2);
    --card-padding: 30px;
    --section-spacing: 120px;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: #fafafa;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container-fluid {
    padding: 0 2rem;
}

.btn {
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    box-shadow: 0 10px 20px rgba(76, 163, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(76, 163, 255, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    transition: all 0.4s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.section-title {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.section-title p {
    color: var(--muted-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-spacing {
    padding: var(--section-spacing) 0;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

/* アニメーション */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeInUp { animation-name: fadeInUp; }
.fadeInLeft { animation-name: fadeInLeft; }
.fadeInRight { animation-name: fadeInRight; }

/* ヘッダー */
header {
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* ヒーローセクション上のヘッダースタイル */
.header-on-hero {
    background-color: rgba(255, 255, 255, 0.95); /* より濃い背景色 */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* コンテンツセクション上のヘッダースタイル */
.header-on-content {
    background-color: rgba(255, 255, 255, 0.8); /* 半透明の背景色 */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

/* ロゴスタイル */
.logo-container {
    display: flex;
    align-items: center;
    height: 40px;
}

.logo-symbol {
    height: 40px;
    width: auto;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.logo-text {
    height: 25px;
    width: auto;
    transition: all 0.3s ease;
    transform: translateY(2px); /* テキストロゴを少し下に移動 */
}

.navbar-nav .nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-color);
    padding: 10px 20px;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    opacity: 0;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after {
    width: calc(100% - 40px);
    opacity: 1;
}

.language-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-weight: 500;
    height: 100%;
    padding: 10px 15px;
}

.language-toggle i {
    font-size: 1.2rem;
    line-height: 1;
    position: relative;
    top: 1px;
    color: var(--text-color);
}

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    min-width: 200px;
    margin-top: 10px;
}

.dropdown-item {
    font-weight: 500;
    padding: 8px 20px;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    margin-bottom: 5px;
}

.dropdown-item:hover {
    background-color: rgba(0, 103, 192, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 言語切り替えアイコンの下線を非表示にする */
.navbar-nav .language-toggle::after {
    display: none;
}

/* 言語切り替えドロップダウンのcaret調整 */
.language-toggle.dropdown-toggle::after {
    margin-left: 0.255em;
    vertical-align: middle;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    z-index: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transition: transform 0.1s linear;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* パララックス効果のベース設定 */
.parallax-bg {
    background-attachment: fixed;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* パーティクルスタイル設定 */
.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(0) translateX(20px); }
    75% { transform: translateY(20px) translateX(10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero-label {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(0, 103, 192, 0.5);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1rem;
    animation: fadeInUp 1s ease;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 800;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title span {
    color: var(--accent-color);
    display: block;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-btns {
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-btn-primary {
    margin-right: 15px;
    min-width: 180px;
    text-align: center;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    min-width: 180px;
    text-align: center;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    animation: fadeInUp 1s ease 0.8s both;
    width: 30px;
    z-index: 5;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    left: -15px;
    margin: 0 auto;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollAnim 2s infinite;
}

@keyframes scrollAnim {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* 企業理念 */
.philosophy-section {
    position: relative;
    padding: var(--section-spacing) 0;
    background-color: white;
    overflow: hidden;
}

.philosophy-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 103, 192, 0.05), rgba(76, 163, 255, 0.05));
    z-index: 0;
    will-change: transform;
    transition: transform 0.1s linear;
}

.philosophy-content {
    position: relative;
    z-index: 1;
}

.philosophy-intro {
    margin: 40px 0;
}

.philosophy-divider {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.philosophy-divider::before, 
.philosophy-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 1px;
    width: 100px;
    background: var(--gradient-primary);
}

.philosophy-divider::before {
    left: calc(50% - 140px);
}

.philosophy-divider::after {
    right: calc(50% - 140px);
}

.philosophy-divider span {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 0 20px;
    position: relative;
}

.philosophy-divider span sup {
    font-size: 1.5rem;
    top: -0.9em;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.philosophy-pentagon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin: 20px auto 120px;
    max-width: 1400px;
    min-height: 400px;
}

/* カードを横一列に配置し、高さを統一 */
.philosophy-card {
    position: relative;
    width: 280px;
    min-height: 320px;
    border-radius: var(--border-radius);
    overflow: hidden;
    perspective: 1000px;
    z-index: 2;
    transition: all 0.5s ease;
    margin: 0 15px;
    display: flex;
    flex: 1 1 0;
}

.philosophy-card-inner {
    background-color: white;
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    box-shadow: var(--box-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 1;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.philosophy-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 103, 192, 0.02), rgba(76, 163, 255, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.philosophy-number {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(0, 103, 192, 0.1);
    line-height: 1;
    transition: all 0.4s ease;
}

.philosophy-card:hover .philosophy-card-inner {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.philosophy-card:hover .philosophy-card-bg {
    opacity: 1;
}

.philosophy-card:hover .philosophy-number {
    transform: scale(1.2);
    color: rgba(0, 103, 192, 0.15);
}

.philosophy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 18px;
    color: white;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.philosophy-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 18px;
    transition: all 0.4s ease;
    z-index: -1;
}

.philosophy-card:hover .philosophy-icon {
    transform: translateZ(20px);
}

.philosophy-card:hover .philosophy-icon::before {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 103, 192, 0.2);
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    transition: all 0.4s ease;
    position: relative;
}

.philosophy-card:hover h3 {
    transform: translateZ(15px);
    color: var(--primary-color);
}

/* テキスト表示を調整 */
.philosophy-card p {
    color: var(--muted-color);
    transition: all 0.4s ease;
    position: relative;
    margin-bottom: 0;
    margin-top: 10px;
    line-height: 1.6;
    flex-grow: 1;
}

.philosophy-card:hover p {
    transform: translateZ(10px);
}

/* レスポンシブ調整 */
@media (max-width: 1400px) {
    .philosophy-pentagon {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .philosophy-card {
        margin: 15px;
        flex: 0 0 280px;
    }
}

@media (max-width: 991px) {
    .philosophy-pentagon {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        min-height: auto;
        margin-bottom: 50px;
    }
    
    .philosophy-card {
        width: 280px;
        margin: 15px;
        flex: 0 0 280px;
    }
}

@media (max-width: 767px) {
    .philosophy-card {
        width: 100%;
        max-width: 320px;
        min-height: 280px;
        margin: 10px;
        flex: 0 0 100%;
    }
    
    /* ヒーローセクション調整 */
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-label {
        font-size: 0.9rem;
        padding: 6px 16px;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.3rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        min-width: 100%;
    }
    
    .hero-btn-primary {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .hero-btn-secondary {
        margin-bottom: 10px;
    }
    
    .scroll-arrow {
        width: 24px;
        height: 40px;
    }
}

/* 小さいスマートフォン向け */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 100px 0 70px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* タブレット表示調整 */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 160px 0 120px;
    }
}

/* ナビゲーション表示調整 */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-nav {
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px;
        text-align: center;
    }
}

/* 位置を正確に調整 - 上書き */
@media (min-width: 992px) {
    .philosophy-pentagon {
        min-height: 400px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
    }
    
    .philosophy-card-center,
    .philosophy-card-top-left,
    .philosophy-card-top-right,
    .philosophy-card-bottom-left,
    .philosophy-card-bottom-right {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
        margin: 0 15px;
        flex: 1;
    }
}

/* サービスセクション */
.services-section {
    position: relative;
    padding: var(--section-spacing) 0;
    background-color: #f9fafb;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(0, 103, 192, 0.08), transparent 400px);
    z-index: 0;
    will-change: transform;
    transition: transform 0.1s linear;
}

.services-content {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: var(--card-padding);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    opacity: 0.2;
    border-radius: 0 0 0 100%;
    transition: all 0.3s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-card:hover::after {
    transform: scale(1.2);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    border-radius: 16px;
    background: var(--primary-color);
    color: white;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(10deg);
    background: var(--accent-color);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--muted-color);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    margin-top: auto;
    font-size: 0.95rem;
    line-height: 1.6;
}

.learn-more-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.learn-more-link i {
    margin-left: 5px;
    transition: all 0.3s ease;
}

.learn-more-link:hover i {
    transform: translateX(5px);
}

/* 技術セクション */
.tech-section {
    position: relative;
    padding: var(--section-spacing) 0;
    background-color: white;
    overflow: hidden;
}

.tech-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 163, 255, 0.05), rgba(0, 103, 192, 0.05));
    z-index: 0;
    will-change: transform;
    transition: transform 0.1s linear;
}

.tech-content {
    position: relative;
    z-index: 1;
}

.tech-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
}

.tech-item {
    position: relative;
    padding: 30px;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.tech-item img {
    max-width: 80%;
    max-height: 70px;
    transition: all 0.3s ease;
}

.tech-item:hover img {
    transform: scale(1.1);
}

.tech-name {
    margin-top: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.tech-popup {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background-color: white;
    border-radius: var(--border-radius-sm);
    padding: 20px;
    width: 280px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.tech-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background-color: white;
}

.tech-item:hover .tech-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(20px);
}

.tech-popup h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: center;
}

.tech-popup ul {
    margin: 0;
    padding-left: 20px;
}

.tech-popup li {
    color: var(--muted-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* 会社情報セクション */
.company-section {
    position: relative;
    padding: var(--section-spacing) 0;
    background-color: #f9fafb;
    overflow: hidden;
}

.company-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 103, 192, 0.08), transparent 400px);
    z-index: 0;
    will-change: transform;
    transition: transform 0.1s linear;
}

.company-content {
    position: relative;
    z-index: 1;
}

.company-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.company-info {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.company-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.company-row:last-child {
    border-bottom: none;
}

.company-label {
    width: 35%;
    padding: 20px;
    background-color: rgba(0, 103, 192, 0.05);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.company-value {
    width: 65%;
    padding: 20px;
    line-height: 1.5;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    box-shadow: var(--box-shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

/* お問い合わせセクション */
.contact-section {
    position: relative;
    padding: var(--section-spacing) 0;
    background: var(--gradient-dark);
    color: white;
    overflow: hidden;
}

.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    will-change: transform;
    transition: transform 0.1s linear;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.contact-title h2 {
    color: white;
}

.contact-title p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 40px;
    max-width: 600px;
    margin: 50px auto 0;
}

.contact-card h3 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.contact-form .form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 103, 192, 0.1);
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-submit {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
    font-size: 1rem;
}

/* お問い合わせボタン */
.contact-button-container {
    max-width: 600px;
    margin: 50px auto 0;
}

.btn-contact {
    font-size: 1.2rem;
    padding: 15px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.contact-note a {
    color: var(--accent-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-note a:hover {
    color: white;
    text-decoration: underline;
}

/* フッター */
.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
}

.philosophy-card-top-left,
.philosophy-card-top-right,
.philosophy-card-bottom-left,
.philosophy-card-bottom-right,
.philosophy-card-center {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
}

/* 接続線は非表示 */
.philosophy-pentagon-lines {
    display: none;
}

/* モバイル用カルーセルスタイル */
#philosophyCarousel {
    max-width: 320px;
    margin: 0 auto 60px;
}

#philosophyCarousel .philosophy-card {
    width: 100%;
    margin: 0 auto;
    flex: none;
    height: auto;
    min-height: 320px;
}

#philosophyCarousel .philosophy-card-inner {
    box-shadow: none; /* モバイル表示では影を非表示 */
}

#philosophyCarousel .philosophy-card:hover .philosophy-card-inner {
    transform: none;
    box-shadow: none; /* ホバー時も影を非表示 */
}

#philosophyCarousel .carousel-control-prev,
#philosophyCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    position: absolute;
}

#philosophyCarousel .carousel-control-prev:hover,
#philosophyCarousel .carousel-control-next:hover {
    opacity: 0.8;
    background-color: transparent;
}

#philosophyCarousel .carousel-control-prev-icon,
#philosophyCarousel .carousel-control-next-icon {
    filter: invert(51%) sepia(86%) saturate(2980%) hue-rotate(193deg) brightness(96%) contrast(101%);
    width: 25px;
    height: 25px;
}

/* philosophy-card-bgの高さに合わせて垂直中央に配置 */
@media (max-width: 767px) {
    #philosophyCarousel .carousel-control-prev,
    #philosophyCarousel .carousel-control-next {
        top: calc(50% - 20px); /* philosophy-card-bgの高さに応じて調整 */
    }
}

#philosophyCarousel .carousel-control-prev {
    left: -50px;
}

#philosophyCarousel .carousel-control-next {
    right: -50px;
}

#philosophyCarousel .carousel-indicators {
    bottom: -40px;
}

/* モバイル表示時のインジケーターの位置調整 */
@media (max-width: 767px) {
    #philosophyCarousel .carousel-indicators {
        bottom: -55px; /* -40pxから-55pxに変更してカードとの間隔を広げる */
    }
}

#philosophyCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 103, 192, 0.3);
    border: none;
    margin: 0 5px;
}

#philosophyCarousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
}

/* カルーセルのスワイプ対応 */
@media (max-width: 767px) {
    .carousel-inner {
        overflow-y: hidden;
        overflow-x: hidden; /* visibleからhiddenに変更 */
    }
    
    .philosophy-section {
        padding-bottom: 60px;
    }
    
    #philosophyCarousel .carousel-item {
        transition: transform 0.6s ease-in-out;
    }
    
    /* フェードアニメーションを無効化し、通常のスライド移動に変更 */
    .carousel-fade .carousel-item {
        opacity: 1; /* フェードを無効化 */
        display: block;
        position: absolute;
        left: 0;
        transform: translateX(100%);
        transition: transform 0.6s ease-in-out;
    }
    
    .carousel-fade .carousel-item.active {
        transform: translateX(0);
    }
    
    .carousel-fade .carousel-item.active + .carousel-item {
        transform: translateX(100%);
    }
    
    .carousel-fade .carousel-item.active ~ .carousel-item {
        transform: translateX(100%);
    }
    
    /* 右から左へのスライドアニメーション */
    .carousel-fade .carousel-item-prev:not(.carousel-item-end) {
        transform: translateX(-100%);
    }
    
    .carousel-fade .carousel-item-next:not(.carousel-item-start) {
        transform: translateX(100%);
    }
    
    .carousel-fade .active.carousel-item-start {
        transform: translateX(-100%);
    }
    
    .carousel-fade .active.carousel-item-end {
        transform: translateX(100%);
    }
}

/* 技術セクションのモバイル用カルーセル */
#techCarousel {
    max-width: 320px;
    margin: 0 auto 60px;
}

#techCarousel .tech-item {
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#techCarousel .tech-item img {
    max-width: 120px;
    margin-bottom: 20px;
}

#techCarousel .tech-name {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

#techCarousel .tech-desc {
    text-align: center;
    display: block;
    position: relative;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 10px;
    margin-top: 10px;
}

#techCarousel .tech-desc h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: none;
}

#techCarousel .tech-desc p {
    color: var(--muted-color);
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
}

#techCarousel .carousel-control-prev,
#techCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

#techCarousel .carousel-control-prev {
    left: -50px;
}

#techCarousel .carousel-control-next {
    right: -50px;
}

#techCarousel .carousel-control-prev:hover,
#techCarousel .carousel-control-next:hover {
    opacity: 0.8;
    background-color: transparent;
}

#techCarousel .carousel-control-prev-icon,
#techCarousel .carousel-control-next-icon {
    filter: invert(51%) sepia(86%) saturate(2980%) hue-rotate(193deg) brightness(96%) contrast(101%);
    width: 25px;
    height: 25px;
}

#techCarousel .carousel-indicators {
    bottom: -40px;
}

/* モバイル表示時のインジケーターの位置調整 */
@media (max-width: 767px) {
    #techCarousel .carousel-indicators {
        bottom: -55px; /* -40pxから-55pxに変更してカードとの間隔を広げる */
    }
    
    /* 技術セクションの下部余白も調整 */
    .tech-section {
        padding-bottom: 80px;
    }
}

#techCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 103, 192, 0.3);
    border: none;
    margin: 0 5px;
}

#techCarousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    width: 12px;
    height: 12px;
}

@media (max-width: 400px) {
    #techCarousel .carousel-control-prev {
        left: -35px;
    }
    
    #techCarousel .carousel-control-next {
        right: -35px;
    }
}

/* 会社情報セクションのレスポンシブ調整 */
@media (max-width: 991px) {
    .company-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-container {
        height: 350px;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .company-row {
        flex-direction: column;
    }
    
    .company-label, 
    .company-value {
        width: 100%;
    }
    
    .company-label {
        padding: 15px 20px 5px;
        background-color: transparent;
        color: var(--primary-color);
        border-bottom: none;
    }
    
    .company-value {
        padding: 5px 20px 15px;
    }
    
    .map-container {
        height: 300px;
        margin-top: 30px;
        padding: 0;
        background-color: white;
    }
}

/* ヒーロー背景スライダーのスタイル */
#heroBgCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#heroBgCarousel .carousel-inner,
#heroBgCarousel .carousel-item {
    width: 100%;
    height: 100%;
}

#heroBgCarousel .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease-out;
    object-fit: cover;
}

#heroBgCarousel .carousel-item.active .parallax-bg {
    transform: scale(1);
}

/* フェードエフェクトの強化 */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity .8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* メディアクエリ */
@media (max-width: 991.98px) {
    .logo-container {
        height: 35px;
    }
    
    .logo-symbol {
        height: 35px;
    }
    
    .logo-text {
        height: 22px;
        transform: translateY(1.5px); /* モバイル表示時は少し調整 */
    }
}

/* 言語ドロップダウンのモバイル対応調整 */
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: rgba(255, 255, 255, 0.95);
        border: none;
        box-shadow: none;
        display: none;
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block;
    }
    
    .navbar-nav .dropdown-item {
        text-align: center;
        padding: 10px;
    }
    
    .navbar-nav .language-toggle {
        display: flex;
        justify-content: center;
        padding: 12px 16px;
    }
    
    .navbar-nav .nav-item.dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* 技術セクションのカルーセルも横スライド */
@media (max-width: 767px) {
    #techCarousel .carousel-item {
        transition: transform 0.6s ease-in-out;
    }
    
    /* フェードを無効化し、通常のスライド移動に変更 */
    #techCarousel.carousel-fade .carousel-item {
        opacity: 1;
        display: block;
        position: absolute;
        left: 0;
        transform: translateX(100%);
        transition: transform 0.6s ease-in-out;
    }
    
    #techCarousel.carousel-fade .carousel-item.active {
        transform: translateX(0);
    }
    
    #techCarousel.carousel-fade .carousel-item.active + .carousel-item {
        transform: translateX(100%);
    }
    
    #techCarousel.carousel-fade .carousel-item.active ~ .carousel-item {
        transform: translateX(100%);
    }
    
    /* 右から左へのスライドアニメーション */
    #techCarousel.carousel-fade .carousel-item-prev:not(.carousel-item-end) {
        transform: translateX(-100%);
    }
    
    #techCarousel.carousel-fade .carousel-item-next:not(.carousel-item-start) {
        transform: translateX(100%);
    }
    
    #techCarousel.carousel-fade .active.carousel-item-start {
        transform: translateX(-100%);
    }
    
    #techCarousel.carousel-fade .active.carousel-item-end {
        transform: translateX(100%);
    }
}


