/*
   Technogram トップページ専用スタイル
 */

.home {
    background-color: #000000;
}

.home body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

html {
    scroll-behavior: smooth;
}

body:not(.page-loaded) .techno-main-visual {
    opacity: 0;
}

body.page-loaded .techno-main-visual {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.techno-section-title,
.techno-section-lead,
.techno-service-card,
.techno-case-stat-item,
.techno-report-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.techno-section-title.is-visible,
.techno-section-lead.is-visible,
.techno-service-card.is-visible,
.techno-case-stat-item.is-visible,
.techno-report-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* FVコンテンツは即座に表示 */
.techno-mv-content * {
    opacity: 1 !important;
    transform: none !important;
}

.techno-section.is-active {
    transition: all 0.3s ease;
}

.home .l-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    max-width: 100% !important;
}

.home #wrapper,
.home .l-wrapper,
.home .l-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.techno-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.techno-cta-wrap {
    margin-top: 50px;
}

/*
   メインビジュアル
 */
.techno-main-visual {
    width: 100vw;
    height: 100vh;
    min-height: 700px;
    background-color: #333;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -80px;
    padding: 100px 20px;
}

.techno-mv-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.techno-mv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.techno-mv-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
}

.techno-mv-content h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    line-height: 1.4;
    color: #fff;
    animation: fadeInUp 0.8s ease-out;
}

.techno-mv-subcopy {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #fff;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.techno-mv-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/*
   ボタンスタイル
 */
.techno-btn {
    display: inline-block;
    padding: 15px 40px;
    min-width: 200px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1em;
    border: 2px solid transparent;
}

.techno-btn-fv {
    background-color: #000;
    color: #fff;
    border: 2px solid #fff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.techno-btn-fv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transition: left 0.3s ease;
    z-index: -1;
}

.techno-btn-fv:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.techno-btn-fv:hover::before {
    left: 0;
}

.techno-btn-white {
    background-color: #fff;
    color: #333;
    border: 2px solid #ccc;
}

.techno-btn-white:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.techno-btn-dark {
    background-color: #333;
    color: #fff;
}

.techno-btn-dark:hover {
    background-color: #555;
}

/*
   共通セクションスタイル
 */
.techno-section {
    padding: 80px 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
    background-color: #f5f5f5;
}

.techno-section-alt {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    color: #ffffff;
}

.techno-section-dark {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
    color: #ffffff;
}

.techno-section-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 60px;
    text-align: left;
    line-height: 1.3;
}

.techno-section-subtitle-jp {
    display: block;
    font-size: 0.5em;
    font-weight: normal;
    margin-top: 10px;
}

.techno-section-lead {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 50px;
    color: #cccccc;
}

.techno-section-alt .techno-section-lead {
    color: #cccccc;
}

.techno-section-dark .techno-section-title {
    color: #ffffff;
}

.techno-section-dark .techno-section-subtitle-jp {
    color: #cccccc;
}

.techno-section-alt .techno-section-title {
    color: #ffffff;
}

.techno-section-alt .techno-section-subtitle-jp {
    color: #cccccc;
}

.techno-section-alt .techno-case-logo-title {
    color: #aaaaaa;
}

.techno-section-report {
    padding-bottom: 80px;
    margin-bottom: 0;
}

.techno-section-report .techno-section-title {
    color: #000000;
}

.techno-section-report .techno-section-subtitle-jp {
    color: #333333;
}

.techno-section-report .techno-section-lead {
    color: #555555;
}

/*
   アニメーション定義
 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/*
   プレースホルダー
 */
.techno-img-placeholder {
    position: relative;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.techno-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.techno-placeholder-text {
    position: absolute;
    color: #999;
    font-size: 1em;
    font-weight: bold;
    z-index: 1;
    pointer-events: none;
    display: none;
}

/*
   Serviceセクション
 */
.techno-service-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 0;
}

.techno-service-card {
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease-out;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.techno-service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15);
    border-color: #666;
}

.techno-service-card .techno-img-placeholder {
    aspect-ratio: 4/3;
}

.techno-service-card:hover .techno-img-placeholder img {
    transform: scale(1.05);
}

.techno-service-card .techno-img-placeholder img {
    transition: transform 0.3s ease;
}

.techno-service-content {
    padding: 30px;
}

.techno-service-card-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.techno-service-card-subtitle {
    font-size: 1em;
    margin-bottom: 15px;
    color: #ffffff;
}

.techno-service-card-desc {
    font-size: 0.9em;
    line-height: 1.7;
    color: #ffffff;
    margin-bottom: 20px;
}

.techno-service-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    border-bottom: 2px solid #555;
    padding-bottom: 4px;
}

.techno-service-card:hover .techno-service-link {
    color: #aaaaaa;
    border-bottom-color: #888;
}

/*
   CASEセクション
 */
.techno-case-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.techno-case-stat-item {
    position: relative;
    overflow: hidden;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.techno-img-placeholder-stat {
    aspect-ratio: 3/2;
    background-color: #2a2a2a;
}

.techno-case-logo-title {
    text-align: center;
    font-size: 1em;
    line-height: 1.8;
    color: #aaaaaa;
    margin-bottom: 50px;
    animation: fadeIn 0.6s ease-out;
}

/* 2列スクロールアニメーション */
.techno-logo-marquee-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 60px;
    background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
    padding: 40px 0;
    border-radius: 8px;
}

.techno-logo-marquee {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.techno-logo-marquee:last-child {
    margin-bottom: 0;
}

.techno-logo-marquee-track {
    display: flex;
    gap: 30px;
    width: fit-content;
}

.techno-logo-marquee-item {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.techno-logo-marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes marqueeLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.techno-logo-marquee-left .techno-logo-marquee-track {
    animation: marqueeLeft 60s linear infinite;
}

.techno-logo-marquee-right .techno-logo-marquee-track {
    animation: marqueeRight 60s linear infinite;
}

/*
   REPORTセクション
 */
.techno-report-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 0;
}

.techno-report-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease-out;
}

.techno-report-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.techno-report-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.techno-img-placeholder-square {
    aspect-ratio: 16/9;
}

.techno-report-card .techno-img-placeholder img {
    display: block;
}

.techno-report-card figcaption {
    display: none;
}

.techno-report-content {
    padding: 25px;
}

.techno-report-category {
    font-size: 0.85em;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 10px;
}

.techno-report-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.5;
    color: #000000;
}

.techno-report-desc {
    font-size: 0.9em;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.techno-report-link {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.techno-report-card:hover .techno-report-link {
    color: #0066cc;
}

.techno-report-cta-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 60px;
}

.techno-report-link-button {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.techno-report-link-button:hover {
    color: #0066cc;
}

/* スライダーコンテナ（SP用） */
.techno-report-slider-container {
    position: relative;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

/* スライダーナビゲーション（デフォルトは非表示） */
.techno-report-slider-nav {
    display: none;
}

/*
   CONTACT + DOWNLOADセクション
 */
.techno-section-split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: 0;
}

.techno-split-item {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    min-height: 400px;
    transition: transform 0.3s ease;
}

.techno-split-item:hover {
    transform: scale(1.02);
}

.techno-split-item .techno-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.techno-split-item .techno-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.techno-split-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.techno-split-item:hover .techno-split-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

.techno-split-content {
    text-align: center;
    color: #ffffff;
    z-index: 2;
}

.techno-split-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.techno-split-title {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
}

.techno-split-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.techno-split-item:hover .techno-split-icon-circle {
    transform: translateX(5px);
}

.techno-split-arrow {
    font-size: 1.5em;
    font-weight: bold;
    color: #000000;
}

.techno-split-subtitle-small {
    font-size: 1.1em;
    margin: 0;
    line-height: 1.4;
}

/*
   レスポンシブデザイン
 */
@media (max-width: 768px) {
    .techno-main-visual {
        width: 100vw;
        height: 100vh;
        min-height: 600px;
        margin-top: -70px;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 80px 20px;
    }
    
    .techno-mv-content {
        padding: 0 20px;
        width: 100%;
    }
    
    .techno-mv-content h1 {
        font-size: 1.8em;
    }
    
    .techno-mv-subcopy {
        font-size: 0.95em;
    }
    
    .techno-mv-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
        padding: 0;
    }
    
    .techno-btn {
        padding: 12px 30px;
        font-size: 0.9em;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .techno-section {
        padding: 60px 0;
        width: 100vw;
    }
    
    .techno-section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }
    
    .techno-section-lead {
        font-size: 1em;
        margin-bottom: 40px;
    }
    
    .techno-logo-marquee-item {
        width: 150px;
        height: 100px;
        padding: 15px;
    }
    
    .techno-service-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .techno-case-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    /* SP時: レポートグリッドをスライダーに */
    .techno-report-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        gap: 0 !important;
        margin-bottom: 30px;
        transition: transform 0.3s ease;
        position: relative;
        touch-action: pan-x;
    }
    
    .techno-report-card {
        transition: opacity 0.3s ease;
        touch-action: pan-x;
    }
    
    /* スライダーナビゲーション（SP時のみ表示） */
    .techno-report-slider-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    /* スライダーボタン */
    .techno-slider-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: #333;
        color: #fff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .techno-slider-btn:hover {
        background-color: #555;
        transform: scale(1.1);
    }
    
    .techno-slider-btn:active {
        transform: scale(0.95);
    }
    
    .techno-slider-btn:disabled {
        background-color: #ccc;
        cursor: not-allowed;
        opacity: 0.5;
    }
    
    /* ドットインジケーター */
    .techno-slider-dots {
        display: flex;
        gap: 8px;
    }
    
    .techno-slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ccc;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .techno-slider-dot.active {
        background-color: #333;
        width: 24px;
        border-radius: 4px;
    }
    
    .techno-section-split {
        grid-template-columns: 1fr;
    }
    
    .techno-split-item {
        min-height: 300px;
    }
    
    .techno-split-title {
        font-size: 2em;
    }
    
    .techno-split-icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .techno-report-link-button {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .techno-main-visual {
        min-height: 500px;
    }
    
    .techno-mv-content h1 {
        font-size: 1.5em;
    }
    
    .techno-logo-marquee-item {
        width: 120px;
        height: 80px;
        padding: 10px;
    }
    
    .techno-logo-marquee-track {
        gap: 20px;
    }
}
