/* 変数定義 */
:root {
    --primary-color: #0e0e52;
    --primary-dark: #080838;
    --primary-light: #1a1a7a;
    --secondary-color: #ff3e55;
    --secondary-dark: #cc1f35;
    --secondary-light: #ff6b78;
    --accent-color: #00e5ff;
    --accent-dark: #00b5cc;
    --accent-light: #80f2ff;
    --text-color: #f4f4f8;
    --text-light: #ffffff;
    --text-muted: rgba(244, 244, 248, 0.7);
    --dark-color: #111;
    --dark-overlay: rgba(17, 17, 17, 0.85);
    --dark-overlay-light: rgba(17, 17, 17, 0.6);
    --light-color: #f8f8f8;
    /* トランジション */
    --transition-slow: 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    --transition-medium: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: 0.3s ease;
    --transition-bounce: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    /* スクロール効果用 */
    --scroll-hue1: 220;
    --scroll-hue2: 180;
    --mouse-x: 50%;
    --mouse-y: 50%;
    /* サービスエフェクト用 */
    --service-opacity: 0;
    --service-color: rgba(0, 0, 0, 0);
}

/* 全体設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    font-weight: 200;
}

    body.loaded {
        opacity: 1;
    }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.75rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 2rem;
    letter-spacing: -0.005em;
}

h4 {
    font-size: 1.5rem;
    letter-spacing: 0;
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition-fast);
    position: relative;
}

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

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

    a:hover::after {
        width: 100%;
    }

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-fast);
}

.scrolling-down header {
    /* 固定表示のためコメントアウト 
    transform: translateY(-100%); 
    */
}

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

header h1 {
    margin: 0;
    font-size: 2rem;
    position: relative;
}

    header h1 a {
        color: var(--text-color);
        text-decoration: none;
    }

        header h1 a::after {
            display: none;
        }

    header h1::before {
        content: '';
        position: absolute;
        width: 30px;
        height: 3px;
        background-color: var(--secondary-color);
        bottom: -5px;
        left: 0;
        transition: var(--transition-medium);
    }

    header h1:hover::before {
        width: 100%;
    }

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-color);
    white-space: nowrap;
    word-break: keep-all;
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
}

    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .mobile-menu-toggle:hover span:nth-child(1) {
        width: 80%;
    }

    .mobile-menu-toggle:hover span:nth-child(2) {
        width: 60%;
    }

    .mobile-menu-toggle:hover span:nth-child(3) {
        width: 100%;
    }

/* トップセクション */
#top {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* グラデーション背景 */
.gradient-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    background: linear-gradient(45deg, var(--primary-dark), var(--dark-color));
    opacity: 0.6;
    mix-blend-mode: multiply;
}

/* 浮遊する装飾要素 */
.floating-accent {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    z-index: 1;
    animation: float 15s ease-in-out infinite alternate;
    pointer-events: none;
}

.accent-1 {
    width: 300px;
    height: 300px;
    background-color: var(--accent-color);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.accent-2 {
    width: 200px;
    height: 200px;
    background-color: var(--secondary-color);
    bottom: 15%;
    right: 15%;
    animation-delay: 5s;
}

.accent-3 {
    width: 150px;
    height: 150px;
    background-color: var(--primary-light);
    top: 60%;
    left: 25%;
    animation-delay: 10s;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

    .video-background::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient( 135deg, hsla(var(--scroll-hue1), 70%, 20%, 0.6) 0%, hsla(var(--scroll-hue2), 70%, 10%, 0.4) 100% ), radial-gradient( circle at var(--mouse-x) var(--mouse-y), transparent 0%, rgba(0, 0, 0, 0.5) 70% );
        mix-blend-mode: color-dodge;
        transition: background 0.5s ease;
    }

    .video-background video {
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        object-fit: cover;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.top-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    margin: 0 auto;
}

.top-subtitle {
    font-size: 1rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.3s;
}

.top-title {
    font-size: 6rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.6s, glow 3s ease-in-out infinite alternate;
    background: linear-gradient(90deg, var(--text-color) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5), 0 0 20px rgba(0, 229, 255, 0.3), 0 0 30px rgba(0, 229, 255, 0.1);
}

.top-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.9s;
}

.top-content .button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem auto 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.2s;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s forwards 1s, float 2s ease-in-out infinite;
    z-index: 2;
    cursor: pointer;
}

.scroll-down-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
    margin-top: 0.5rem;
    position: relative;
}

    .scroll-down-arrow::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        width: 6px;
        height: 6px;
        background-color: var(--text-color);
        border-radius: 50%;
        transform: translateX(-50%);
        animation: scrollDownAnim 2s infinite, glowPulse 2s infinite alternate;
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
    }

@keyframes scrollDownAnim {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 20px rgba(0, 229, 255, 0.4);
    }
}

/* メインコンテンツ */
main {
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 0 2rem;
}

/* サービス紹介 */
.service, .company {
    width: 100vw; /* ビューポートの幅いっぱいに */
    margin-left: calc(-50vw + 50%); /* コンテナを超えて拡張 */
    margin-right: calc(-50vw + 50%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 0; /* 上下のみパディング */
    overflow: hidden;
    background-color: var(--dark-overlay);
    backdrop-filter: blur(5px);
    margin-top: 20vh;
    margin-bottom: 20vh;
    border-radius: 0; /* 角丸なし */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: background-color 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateY(50px);
}

    .service.active, .company.active {
        opacity: 1;
        transform: translateY(0);
    }

    .service:hover, .company:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    /* コンテンツ幅の制約を維持 */
    .service-inner, .company .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        position: relative;
    }

.service-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service.even .service-content {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

    .service-text.active {
        opacity: 1;
        transform: translateY(0);
    }

.service-tagline {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-left: 20px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

    .service-tagline::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 10px;
        height: 2px;
        background-color: var(--accent-color);
    }

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .feature:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 10px var(--accent-color);
        background-color: rgba(0, 229, 255, 0.05);
    }

    .feature i {
        color: var(--accent-color);
        margin-right: 0.5rem;
        text-shadow: 0 0 10px var(--accent-color);
    }

.service-image {
    flex: 1;
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, opacity 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 0, 0, 0.2);
}

.service.even .service-image {
    transition-delay: 0.1s;
}

.service-image.active {
    opacity: 1;
    transform: translateY(0);
}

.service-image:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 255, 0.3);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.service-image:hover .image-overlay {
    opacity: 1;
}

.image-actions {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.service-image:hover .image-actions {
    transform: translateY(0);
}

.service h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    font-weight: 200;
    letter-spacing: 0.05em;
    word-break: keep-all;
    hyphens: auto;
}

    .service h2::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
        transition: width var(--transition-medium);
    }

.service:hover h2::after {
    width: 100%;
}

.service p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 200;
    color: var(--text-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 装飾的な形状の位置調整 */
.service-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 62, 85, 0.1);
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
}

.service.odd .service-shape {
    top: -150px;
    left: calc(50% - 750px - 150px); /* 中央からの相対位置 */
}

.service.even .service-shape {
    bottom: -150px;
    right: calc(50% - 750px - 150px); /* 中央からの相対位置 */
    background-color: rgba(0, 229, 255, 0.1);
}

/* サービス番号の位置修正 */
.service-number {
    position: absolute;
    top: 0;
    right: calc(50% - 600px); /* コンテンツ領域の端に合わせる */
    font-size: 12rem;
    font-weight: 100;
    opacity: 0.03;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    z-index: -1;
    font-family: 'Jost', sans-serif;
}

.button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
}

    .button:hover {
        background-color: var(--secondary-color);
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 10px var(--accent-color);
        color: var(--light-color);
    }

    .button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transform: translateX(-100%);
        transition: all 0.6s ease;
        z-index: -1;
    }

    .button:hover::before {
        transform: translateX(100%);
        left: 100%;
    }

a.button::after {
    display: none;
}

.button.outline {
    background-color: transparent;
    border: 1px solid rgba(0, 229, 255, 0.5);
    color: var(--text-color);
    box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1), 0 0 10px rgba(0, 229, 255, 0.1);
}

    .button.outline:hover {
        border-color: var(--secondary-color);
        background-color: transparent;
        box-shadow: inset 0 0 15px rgba(255, 62, 85, 0.2), 0 0 15px rgba(255, 62, 85, 0.2);
    }

/* LINEボタン専用スタイル */
.line-button {
    background-color: transparent;
    border: 1px solid #06C755;
    color: #fff;
    box-shadow: inset 0 0 10px rgba(6, 199, 85, 0.2), 0 0 10px rgba(6, 199, 85, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .line-button:hover {
        background-color: #06C755;
        border-color: #06C755;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(6, 199, 85, 0.5);
        color: #fff;
    }

    .line-button i {
        margin-right: 6px;
        font-size: 1.2em;
    }

/* ボタンスタイル */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        gap: 1.2rem;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

        .button-group .button {
            width: 100%;
            text-align: center;
            padding: 1rem;
            margin: 0;
            border-radius: 8px;
        }
}
/* メッセージボード価値提案セクション用スタイル */
.value-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.value-point {
    display: flex;
    align-items: center;
    background-color: rgba(0, 229, 255, 0.05);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .value-point:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 10px var(--accent-color);
        background-color: rgba(0, 229, 255, 0.1);
    }

    .value-point i {
        color: var(--accent-color);
        margin-right: 0.75rem;
        text-shadow: 0 0 10px var(--accent-color);
        font-size: 1.2rem;
    }

.quote-box {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent-color);
    position: relative;
}

    .quote-box::before {
        content: '\f10d';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: -15px;
        left: 10px;
        font-size: 1.5rem;
        color: var(--accent-color);
        opacity: 0.2;
    }

    .quote-box blockquote {
        font-style: italic;
        font-size: 1.1rem;
        line-height: 1.7;
        margin: 0;
        color: var(--text-light);
    }

.line-button {
    background-color: transparent;
    border: 1px solid #06C755;
    color: #fff;
    box-shadow: inset 0 0 10px rgba(6, 199, 85, 0.2), 0 0 10px rgba(6, 199, 85, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .line-button:hover {
        background-color: #06C755;
        border-color: #06C755;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(6, 199, 85, 0.5);
        color: #fff;
    }

    .line-button i {
        margin-right: 6px;
        font-size: 1.2em;
    }

@media (max-width: 768px) {
    .value-points {
        flex-direction: column;
    }

    .value-point {
        width: 100%;
    }

    .quote-box {
        padding: 1rem;
    }
}
/* スクロールインジケーターの位置を適切に維持 */
.scroll-indicator {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-color);
    font-size: 1.5rem;
    z-index: 10;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.5);
        transform: translateX(-50%) scale(1);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 229, 255, 0);
        transform: translateX(-50%) scale(1.05);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0);
        transform: translateX(-50%) scale(1);
    }
}

/* 会社情報 */
.company {
    background-color: rgba(14, 14, 82, 0.8);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-divider {
    width: 60px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 1.5rem auto 0;
    position: relative;
}

    .section-divider::before,
    .section-divider::after {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        top: 50%;
        transform: translateY(-50%);
        background-color: var(--accent-color);
    }

    .section-divider::before {
        left: -10px;
    }

    .section-divider::after {
        right: -10px;
    }

.company-content {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.company-text {
    flex: 1;
}

.mission-vision {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.mission, .vision {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .mission:hover, .vision:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .mission h3, .vision h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: var(--accent-color);
    }

/* 会社統計情報 */
.company-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 180px;
    flex: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

    .stat-card.active {
        opacity: 1;
        transform: translateY(0);
    }

    .stat-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 229, 255, 0.2);
    }

.counter {
    font-size: 3rem;
    font-weight: 200;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: 'Jost', sans-serif;
}

.stat-title {
    font-size: 1rem;
    color: var(--text-muted);
}

/* フッター */
footer {
    background: linear-gradient(to bottom, var(--dark-color) 0%, var(--primary-dark) 100%);
    position: relative;
    padding: 4rem 0 2rem;
    z-index: 3;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info {
    flex: 1;
    min-width: 250px;
}

    .footer-info h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

.contact-info {
    margin: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

    .contact-item i {
        width: 20px;
        margin-right: 1rem;
        color: var(--accent-color);
    }

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

    .footer-links h4 {
        margin-bottom: 1.5rem;
        font-size: 1.2rem;
    }

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

    .footer-links li {
        margin-bottom: 0.8rem;
    }

.footer-newsletter {
    flex: 1;
    min-width: 250px;
}

.newsletter-form {
    margin-top: 1rem;
    display: flex;
}

    .newsletter-form input {
        flex: 1;
        padding: 0.8rem 1rem;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 4px 0 0 4px;
        color: var(--text-color);
        font-size: 1rem;
    }

    .newsletter-form button {
        padding: 0.8rem 1.5rem;
        background-color: var(--accent-color);
        color: var(--dark-color);
        border: none;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .newsletter-form button:hover {
            background-color: var(--secondary-color);
        }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

        .social-links a:hover {
            background-color: var(--secondary-color);
            transform: translateY(-5px);
        }

        .social-links a::after {
            display: none;
        }

        /* SNS固有のカラーでホバー効果を強化 */
        .social-links a.twitter:hover {
            background-color: #1DA1F2;
        }

        .social-links a.facebook:hover {
            background-color: #4267B2;
        }

        .social-links a.instagram:hover {
            background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
        }

        .social-links a.youtube:hover {
            background-color: #FF0000;
        }

        .social-links a.line:hover {
            background-color: #06C755;
        }

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* スクロールプログレスバー */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease;
    overflow: hidden;
}

.scroll-progress-glow {
    position: absolute;
    top: -2px;
    left: 0;
    width: 20px;
    height: 8px;
    background: #fff;
    filter: blur(5px);
    border-radius: 50%;
    opacity: 0.7;
    pointer-events: none;
}

/* ページ最適化 */
.content-ready {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 229, 255, 0.5), 0 0 20px rgba(0, 229, 255, 0.3), 0 0 30px rgba(0, 229, 255, 0.1);
    }

    to {
        text-shadow: 0 0 20px rgba(0, 229, 255, 0.7), 0 0 30px rgba(0, 229, 255, 0.5), 0 0 40px rgba(0, 229, 255, 0.3), 0 0 50px rgba(0, 229, 255, 0.1);
    }
}

/* レスポンシブデザインの調整 */
@media (max-width: 1200px) {
    .service-number {
        right: 2rem;
    }

    .service.odd .service-shape {
        left: -150px;
    }

    .service.even .service-shape {
        right: -150px;
    }
}

@media (max-width: 992px) {
    .service-content,
    .service.even .service-content,
    .company-content {
        flex-direction: column;
    }

    .service-image {
        margin-top: 2rem;
    }
}
/* スマートフォン向け基本改善 - 既存のCSSに追加 */

/* モバイル基本設定 */
@media (max-width: 768px) {
    /* 基本フォントサイズ調整 */
    body {
        font-size: 16px;
    }

    /* 見出しサイズの調整 */
    .led-content-wrapper h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .led-content-wrapper h2 {
        font-size: 1.7rem;
        margin: 2rem 0 1rem;
    }

    .led-content-wrapper h3 {
        font-size: 1.4rem;
        margin: 1.5rem 0 0.8rem;
    }

    /* コンテンツ余白の調整 */
    .led-content-wrapper {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    /* 導入テキスト */
    .intro-text {
        font-size: 1.1rem;
        padding: 1rem;
        margin: 1.5rem 0;
    }

    /* 用語カードの改善 */
    .glossary-terms {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .glossary-term {
        padding: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .glossary-term-title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .glossary-term p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* テーブルのスクロール対応 */
    .category-table-container,
    .comparison-table-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1.5rem 0;
    }

    .category-table,
    .comparison-table {
        min-width: 650px; /* テーブルの最小幅を確保 */
    }

    /* フロー図の改善 */
    .flow-diagram {
        flex-direction: column;
        gap: 2rem;
    }

    .flow-step {
        width: 100%;
        margin: 0.5rem 0;
    }

        .flow-step:not(:last-child)::after {
            content: '↓';
            position: absolute;
            left: 50%;
            top: 100%;
            transform: translateX(-50%);
            margin-top: 0.5rem;
        }

    /* 検索ボックスの改善 */
    .glossary-search {
        flex-direction: column;
        gap: 0.8rem;
    }

        .glossary-search input {
            padding: 0.8rem;
        }

        .glossary-search button {
            width: 100%;
        }

    /* 索引の改善 */
    .glossary-index {
        padding: 0.8rem 0.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        margin: 1.5rem 0;
        position: sticky;
        top: 60px;
        z-index: 100;
    }

        .glossary-index a {
            padding: 0.5rem 0.8rem;
            font-size: 0.85rem;
            white-space: nowrap;
            flex: 0 0 auto;
        }

    /* ヒント・注意ボックスの改善 */
    .hint-box,
    .caution-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }

        .hint-box h4,
        .caution-box h4 {
            font-size: 1.1rem;
        }

    /* CTAセクションの改善 */
    .led-cta-section {
        padding: 2rem 1rem;
        margin-top: 3rem;
    }

        .led-cta-section h2 {
            font-size: 1.6rem;
        }

    .led-cta-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

        .led-cta-buttons .button {
            width: 100%;
            text-align: center;
            padding: 0.8rem;
        }

    /* トップに戻るボタンの位置調整 */
    .back-to-top {
        right: 1rem;
        bottom: 1rem;
        width: 3rem;
        height: 3rem;
    }

    /* 用語説明の可読性向上 */
    .glossary-term {
        background-color: rgba(255, 255, 255, 0.08);
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    /* モバイルメニュー改善 */
    nav.active {
        width: 85%;
        max-width: 300px;
    }

    nav ul li a {
        display: block;
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* フッターの改善 */
    .footer-content {
        gap: 1.5rem;
    }

    .footer-links,
    .footer-newsletter {
        min-width: 100%;
    }
}

/* さらに小さな画面（スマートフォン縦向き）用 */
@media (max-width: 480px) {
    /* ヘッダー調整 */
    header h1 {
        font-size: 1.4rem;
    }

    /* 見出し調整 */
    .led-content-wrapper h1 {
        font-size: 1.8rem;
    }

    .led-content-wrapper h2 {
        font-size: 1.5rem;
    }

    .led-content-wrapper h3 {
        font-size: 1.3rem;
    }

    /* 用語カード調整 */
    .glossary-term {
        padding: 1rem;
    }

    .glossary-term-title {
        font-size: 1.1rem;
    }

    /* アイコンサイズ調整 */
    .term-icon {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
    }

    /* ボタン調整 */
    .button {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }
}

/* アクセシビリティ向上のための追加スタイル */
.glossary-term:focus-within {
    outline: 2px solid var(--accent-color);
}

.glossary-index a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* コンテンツブロックの読みやすさ向上 */
.led-section {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .led-section:last-child {
        border-bottom: none;
    }

/* テキスト行間の調整 */
.led-content-wrapper p {
    line-height: 1.8;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

/* ダークモード対応強化 */
@media (prefers-color-scheme: dark) {
    .led-content-wrapper {
        background-color: rgba(17, 17, 17, 0.85);
    }

    .glossary-index {
        background-color: rgba(17, 17, 17, 0.95);
    }
}

/* 目に優しい設定 */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    .service, .company {
        margin-top: 10vh;
        margin-bottom: 10vh;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        border-radius: 0;
        padding: 4rem 0;
    }

    .service-inner {
        padding: 0 1.5rem;
    }

    /* モバイル用ナビゲーション */
    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(17, 17, 17, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-medium);
        z-index: 999;
    }

        nav.active {
            right: 0;
        }

        nav ul {
            flex-direction: column;
            align-items: center;
            gap: 2rem;
            padding: 2rem;
        }

            nav ul li a {
                font-size: 1.2rem;
                display: block;
                padding: 0.5rem 1rem;
            }

    /* トップタイトルサイズ調整 */
    .top-title {
        font-size: 3.5rem;
    }

    /* ヘッダーロゴサイズ調整 */
    header h1 {
        font-size: 1.5rem;
        margin-right: 1rem;
    }

    /* サービスセクションタイトル調整 */
    .service h2 {
        font-size: 2.2rem;
        letter-spacing: 0.02em;
        line-height: 1.2;
        width: 100%;
    }

    .service-text {
        width: 100%;
    }
}

/* style.cssに追加するCSSコード */
@media (max-width: 768px) {
    /* ナビゲーションのz-index値を上げる */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(17, 17, 17, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1005; /* 重要: 値を上げる */
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

        /* メニューアクティブ時の位置を明確に */
        nav.active {
            right: 0;
        }

        /* メニューのリストスタイル改善 */
        nav ul {
            flex-direction: column;
            align-items: center;
            width: 100%;
            padding: 2rem;
        }

            nav ul li {
                width: 100%;
                text-align: center;
                margin-bottom: 0.5rem;
            }

                nav ul li a {
                    font-size: 1.2rem;
                    display: block;
                    padding: 0.8rem 1rem;
                    width: 100%;
                }
}
/* LINEボタン固定表示 */
.line-button-fixed {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 99;
}
/* LED実装技術比較のスタイル */
.desktop-view, .mobile-view {
    margin: 2rem 0;
}

/* デスクトップ/モバイル表示切り替え */
@media (max-width: 768px) {
    .desktop-view {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-view {
        display: none;
    }
}

/* スマホ用カード表示のスタイル */
.mobile-comparison {
    position: relative;
}

.swipe-hint {
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    background-color: rgba(0, 229, 255, 0.05);
    padding: 0.5rem;
    border-radius: 4px;
    animation: pulse 2s infinite;
}

.mobile-comparison-slider {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.comparison-card {
    flex: 0 0 280px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .comparison-card:hover,
    .comparison-card:focus {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

.comparison-header {
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 0.8rem 1rem;
    font-weight: 500;
    text-align: center;
    font-size: 1.1rem;
}

.comparison-item {
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

    .comparison-item:last-child {
        border-bottom: none;
    }

.comparison-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.comparison-value {
    font-weight: 300;
    color: var(--text-light);
}

.comparison-card:nth-child(2) .comparison-header {
    background-color: var(--accent-light);
}

.comparison-card:nth-child(3) .comparison-header {
    background-color: var(--secondary-color);
}

.comparison-card:nth-child(4) .comparison-header {
    background-color: var(--secondary-light);
}

.check-icon {
    color: var(--accent-color);
}

.cross-icon {
    color: var(--secondary-color);
}
/* ページトップへ戻るボタン */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Cookieポリシー通知 */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    display: none;
}

.cookie-notice.show {
    transform: translateY(0);
}

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

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

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .line-button-fixed {
        bottom: 80px;
        right: 10px;
    }
    
    .back-to-top {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

/* メニュートグルボタンのz-indexを上げる */
.mobile-menu-toggle {
    z-index: 1010;
}
