﻿@charset "UTF-8";

/**
 * style-home.css
 * 1. 全般・共通セクション設定
 * 2. ヒーローセクション (メインビジュアル)
 * 3. トピックス (カード一覧)
 * 4. アバウト (会社紹介・数字で見る・画像アニメ)
 * 5. ニュース (新着情報)
 * 6. ビジネスギャラリー (事業紹介)
 * 7. ワークス (実績フルスクリーン)
 * 8. CTA (お問い合わせ・採用)
 * 9. レスポンシブ対応 (スマホ専用設定)
 */

/* ==========================================================================
   1. 全般・共通セクション設定
   ========================================================================== */

main {
    padding-top: 0;
}

section {
    padding: 70px 0; 
    background-color: transparent !important;
}

/* セクションヘッダー */
.section-header-left {
    margin-bottom: 40px; 
    text-align: left;
}

.section-header-center {
    margin-bottom: 40px; 
    text-align: center;
}

.en-title {
    display: block;
    font-size: 14px;
    color: var(--color-primary);
    letter-spacing: 0.2em;
    margin-bottom: 5px;
    font-weight: bold;
}

.jp-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
}

.text-white {
    color: var(--color-text-white) !important;
}

/* ==========================================================================
   2. ヒーローセクション (メインビジュアル)
   ========================================================================== */

.hero-overlap {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

/* スライダー背景 */
.hero-bg-slider {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1);
}

.hero-bg-slide.is-active {
    opacity: 1;
    transform: scale(1.08); 
    transition: transform 4.8s linear; 
}

/* シャッターアニメーション */
.hero-shutter {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #111;
    z-index: 10;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.shutter-top {
    top: 0;
    transform: translateY(-100%);
}

.shutter-bottom {
    bottom: 0;
    transform: translateY(100%);
}

.hero-bg-slider.is-animating .shutter-top,
.hero-bg-slider.is-animating .shutter-bottom {
    transform: translateY(0);
}

/* コンテンツ */
.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 2;
}

.hero-content-wrap {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-text-body {
    color: var(--color-text-white);
    max-width: 800px;
}

.hero-label {
    display: inline-block;
    background-color: color-mix(in srgb, var(--color-primary) 70%, transparent);
    color: var(--color-text-white);
    padding: 8px 20px;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
}

.hero-catch {
    font-size: clamp(38px, 5vw, 50px);
    font-weight: 900;
    line-height: 1.3;
    margin: 0 0 20px 0;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.8);
    color: var(--color-text-white);
}

.hero-sub {
    font-size: 17px;
    font-weight: bold;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.8);
    color: var(--color-text-white);
}

/* スクロールダウン表示 */
.scrolldown-parallax {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scrolldown-parallax span:first-child {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--color-text-white); 
    font-weight: bold;
}

.scrolldown-parallax .line {
    display: block;
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scrolldown-parallax .line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-text-white);
    animation: scrollLineDown 2s ease-in-out infinite;
}

@keyframes scrollLineDown {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* ==========================================================================
   3. トピックス (カード一覧)
   ========================================================================== */

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.topics-list li {
    width: calc(25% - 15px);
    display: flex;
    flex-direction: column;
}

.topic-card {
    display: block;
    position: relative;
    aspect-ratio: 6 / 5;
    background-color: var(--color-bg-dark);
    border: none;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.topic-card:hover { box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }

.topic-img {
    margin: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.topic-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.topic-card:hover .topic-img img { transform: scale(1.1); }

/* オーバーレイグラデーション */
.topic-card::after {
    content: '';
    position: absolute;
    inset: 0;
	background: linear-gradient(to top, rgba(1, 64, 153, 0.6) 0%, transparent 50%);
    z-index: 2;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.topic-card:hover::after { opacity: 0.7; }

.topic-card-body {
    position: relative;
    z-index: 3;
    padding: 20px 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.topic-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.topic-more {
    font-size: 12px;
    color: #ffffff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.topic-card:hover .topic-more { opacity: 1; }

.topic-more .css-arrow {
    display: inline-block;
    width: 12px;
    height: 1px;
    background-color: currentColor;
    position: relative;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.topic-more .css-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 6px;
    height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}

.topic-card:hover .topic-more .css-arrow { transform: translateX(5px); }

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999 !important;
    display: none; 
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}

.video-modal-close:hover {
    opacity: 0.7;
}

.video-modal-iframe-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #000;
}

.video-modal-iframe-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.topic-img::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 50%;
    z-index: 3;
    transition: all 0.3s ease;
    pointer-events: none;
}

.topic-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    z-index: 3;
    transition: all 0.3s ease;
    pointer-events: none;
}

.topic-card:hover .topic-img::before {
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.1);
}

.topic-card:hover .topic-img::after {
    transform: translate(-40%, -50%) scale(1.1);
}

/* ==========================================================================
   4. アバウト (会社紹介・数字で見る・画像アニメ)
   ========================================================================== */

.about-flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-text-col, .about-image-col { width: 50%; }

.about-heading {
    font-size: 24px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.about-paragraph {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* 数字で見るハイライト */
.about-highlights {
    display: flex;
    gap: 20px;
    margin: 40px 0 30px;
}

.highlight-card {
    flex: 1;
    background: #fff;
    padding: 25px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-primary);
    text-align: center;
    transition: transform 0.3s ease;
}

.highlight-card:hover { transform: translateY(-5px); }

.highlight-label {
    font-size: 13px;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: 10px;
    display: block;
}

.highlight-main {
    margin: 0;
    color: var(--color-primary);
    line-height: 1;
}

.highlight-num {
    font-size: 42px;
    font-weight: 900;
    font-family: 'Arial Black', sans-serif;
}

.highlight-unit {
    font-size: 16px;
    font-weight: bold;
    margin-left: 4px;
}

.highlight-sub {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    line-height: 1.4;
}

/* 画像出現アニメーション (Reveal Overlay) */
.about-image-normal {
    margin: 0;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    position: relative;
}

.about-image-normal img {
    width: 100%;
    height: auto;
    display: block;
}

.about-image-normal.js-reveal img {
    opacity: 0;
    transition: opacity 0.2s ease 0.2s;
}

.reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-secondary);
    z-index: 2;
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.about-image-normal.is-active img { opacity: 1; }
.about-image-normal.is-active .reveal-overlay { transform: translateX(101%); }

/* ==========================================================================
   5. ニュース (新着情報)
   ========================================================================== */

.section-bg-primary {
    background-color: var(--color-secondary) !important;
    color: var(--color-text-white);
    padding: 40px 0; 
}

.news-flex-container {
    display: flex;
    gap: 60px;
}

.news-left {
    width: 200px; 
    flex-shrink: 0;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-white);
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid var(--color-text-white);
    padding-bottom: 5px;
    margin-top: 20px;
}

.css-arrow-white {
    display: inline-block;
    width: 12px;
    height: 1px;
    background-color: currentColor;
    position: relative;
    margin-left: 8px;
}

.css-arrow-white::after {
    content: '';
    position: absolute;
    right: 0; top: -3px;
    width: 6px; height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}

.news-right { flex-grow: 1; }

/* カテゴリー切り替えボタン */
.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.news-categories a {
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--color-text-white);
    font-size: 13px;
    border-radius: 20px;
}

.news-categories a.active, .news-categories a:hover {
    background-color: var(--color-bg-white);
    color: var(--color-secondary);
}

/* 記事リスト */
.news-list { width: 100%; }
.news-list li { border-top: 1px solid rgba(255,255,255,0.2); }
.news-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.2); }

.news-list a {
    display: flex;
    align-items: center;
    padding: 12px 0;
    color: var(--color-text-white);
    transition: 0.3s;
    gap: 10px;
}

.news-list a:hover { padding-left: 10px; }

.news-list-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 320px;
    flex-shrink: 0;
}

.news-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
}

.category-tag { font-size: 12px; opacity: 0.8; }
.news-list-meta time { font-size: 14px; font-weight: bold; }
.news-title { margin: 0; font-size: 15px; flex-grow: 1; }

/* ==========================================================================
   6. ビジネスギャラリー (事業紹介)
   ========================================================================== */

.business-description {
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.8;
}

.business-gallery-list {
    display: flex;
    width: 100%;
    height: 450px; 
    gap: 10px;
}

.business-gallery-list li {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.business-gallery-list li:hover { flex: 3; }

.business-gallery-list figure { margin: 0; width: 100%; height: 100%; background-color: #000; }


.business-gallery-list img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    filter: grayscale(80%);
    opacity: 0.6;
    transition: 0.6s ease;
}

.business-gallery-list li:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* グラデーションオーバーレイ */
.business-gallery-list a::after {
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(1, 64, 153, 0.9), transparent);
    opacity: 0.8; 
    transition: 0.4s; 
    pointer-events: none; 
}

.business-gallery-list li:hover a::after { opacity: 0.4; }

.business-gallery-list figcaption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: var(--color-text-white);
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
}

.business-gallery-list li:hover figcaption { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   7. ワークス (実績フルスクリーン)
   ========================================================================== */

.works-fullscreen {
	position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    padding: 0 !important;
    background-color: #000;
}

@keyframes zoomOutSlide {
	0% { transform: scale(1.15);}
	100% { transform: scale(1);}
}

.works-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.works-slide.is-active {
	opacity: 1;
	z-index: 2;
	animation: zoomOutSlide 7s linear forwards;
}
.works-slide-overlay { position: absolute; inset: 0; background-color: rgba(0,0,0,0.3); }

/* UI要素 (カウンター・ナビ) */
.works-ui-container {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
	gap: 10px;
}

.works-nav-group {
    display: flex;
    align-items: center;
    gap: 40px;
}

.works-counter-circle {
    width: 250px; height: 250px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-text-white);
    backdrop-filter: blur(3px);
}

.works-counter-text {
    font-size: 50px;
    font-weight: 900;
    display: flex;
    align-items: flex-end;
}

.current-num { color: var(--color-primary); }
.slash, .total-num { font-size: 24px; margin: 0 10px 8px; }

/* ナビボタン */
.works-nav-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    width: 50px; height: 50px;
    color: var(--color-text-white);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    pointer-events: auto;
}

.works-nav-btn.prev-btn { padding-right: 13px; }
.works-nav-btn.next-btn { padding-left: 13px; }
.works-nav-btn:hover { background-color: var(--color-bg-white); color: var(--color-primary); }

.works-btn-wrapper {
    position: relative;
    pointer-events: auto;
    z-index: 15;
}

/* ==========================================================================
   8. CTA (お問い合わせ・採用)
   ========================================================================== */

section.cta-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.cta-flex { display: flex; width: 100%; }

.contact-column, .recruit-column {
    flex: 1;
    padding: 50px 10%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.contact-column { background-color: var(--color-primary); }
.recruit-column { background-color: var(--color-accent); }

.cta-title { color: var(--color-text-white) !important; margin-bottom: 20px; }
.contact-column .en-title, .recruit-column .en-title { color: var(--color-text-white) !important; }
.contact-column .description, .recruit-column .description { color: var(--color-text-white); margin-bottom: 30px; }

.contact-tel-list a {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-text-white);
}

/* ==========================================================================
   9. レスポンシブ対応
   ========================================================================== */
@media (max-width: 768px) {
    /* 共通設定 */
    section { padding: 30px 0 !important; }
    .jp-title { font-size: 24px; }
    
    /* ヒーロー */
    .hero-catch { font-size: 32px; }

    /* トピックス */
    .topics-list li { width: calc(50% - 10px); }
    .topic-card { aspect-ratio: 6 / 5; }

    /* アバウト */
    .about-flex-row { flex-direction: column-reverse; gap: 30px; }
    .about-text-col, .about-image-col { width: 100%; }
    .about-highlights { flex-direction: column; gap: 15px; }

    /* ニュース */
    .news-flex-container { flex-direction: column; gap: 20px; }
    .news-left { width: 100%; }
    .news-list a { flex-direction: column; align-items: flex-start; }
    .news-list-meta { width: 100%; margin-bottom: 10px; }
    .news-arrow { display: none; }

    /* ビジネスギャラリー (縦並びに変更) */
    .business-gallery-list { flex-direction: column; height: auto; }
    .business-gallery-list li { height: 150px; flex: none !important; width: 100%; }
    .business-gallery-list img { filter: grayscale(0%); opacity: 1; }
    .business-gallery-list a::after { opacity: 0.4; }
    .business-gallery-list figcaption {
        opacity: 1; transform: translateY(0);
        left: auto; right: 15px; bottom: 15px; font-size: 18px;
    }

    /* ワークス */
    .works-fullscreen { height: 450px; }
    .works-counter-circle { width: 150px; height: 150px; }
    .works-counter-text { font-size: 30px; }
    .works-btn-wrapper { bottom: 30px; }

    /* CTA */
    .cta-flex { flex-direction: column; }
    .contact-column, .recruit-column { padding: 30px 5%; }
	
	/* ------------------------------
     * ニュースカテゴリの横スクロール化（スマホ用）
     * ------------------------------ */
    .news-categories {
        flex-wrap: nowrap;
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
		padding-top: 2px;
		padding-bottom: 10px;
    }


    .news-categories::-webkit-scrollbar {
        display: none;
    }

    .news-categories li {
        flex-shrink: 0;
    }

    .news-categories a {
		display: inline-block;
        white-space: nowrap;
    }
}