@charset "UTF-8";

/* --- 1. ベース設定 --- */
:root {
    --color-main: #333333;
    --color-accent: #E60012;
    --color-bg: #FFFFFF;
    --color-bg-sub: #F4F5F7;
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-jp);
    color: var(--color-main);
    line-height: 1.8;
    background-color: var(--color-bg);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { width: 100%; height: auto; display: block; }

/* --- 2. ヘッダー --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
    color: #fff;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 40px;
    color: var(--color-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo { font-family: var(--font-en); font-weight: 700; font-size: 24px; letter-spacing: 1px; }
.logo span { color: var(--color-accent); }

/* --- 初期状態（スクロール前） --- */

/* 白ロゴ：表示する */
.logo-white {
    display: block;
}
/* カラーロゴ：隠しておく */
.logo-color {
    display: none;
}

/* --- スクロール後 (.scrolled がついた時) --- */

/* 白ロゴ：隠す */
.header.scrolled .logo-white {
    display: none;
}
/* カラーロゴ：表示する */
.header.scrolled .logo-color {
    display: block;
}


.nav-menu { display: flex; gap: 30px; }
.nav-menu a { font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.menu-toggle { display: none; font-size: 24px; cursor: pointer; }

/* --- 3. ヒーローエリア --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 動画を画面いっぱいに広げてトリミングする設定 */
    object-fit: cover; 
    
    z-index: -2;
}

.hero::before { /* 黒フィルター */
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.hero-content { z-index: 3; position: relative; }
.hero-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 20px; line-height: 1.5; }
.hero-content p { font-size: 1.2rem; font-family: var(--font-en); letter-spacing: 2px; margin-bottom: 40px; }

.btn-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #fff;
    color: #fff;
    font-size: 14px;
    letter-spacing: 2px;
}
.btn-outline:hover { background: var(--color-accent); border-color: var(--color-accent); }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
    z-index: 3;
}

.copy-sp {
    display: none;
}

/* --- 4. コンテンツ共通 --- */
.section { padding: 100px 20px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-title {
    font-family: var(--font-en);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-main);
    position: relative;
}
.section-title::after {
    content: ''; display: block; width: 40px; height: 3px;
    background: var(--color-accent); margin: 15px auto 0;
}

.img_sizeclear {
    width: auto;       /* 横幅いっぱいの強制を解除し、本来のサイズにする */
    /* width: 200px;      ← もしサイズを指定したい場合は数値を入れる */
    
    max-width: 100%;   /* スマホからはみ出ないようにする保険 */
    height: auto;      /* 高さは自動調整 */
    margin: 0 auto 20px; /* 中央揃え（左右auto）＆ 下に20pxの余白 */
}


/* --- 5. パララックス共通設定 --- */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
    color: #fff;
    text-align: center;
    padding: 140px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-section::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.parallax-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

/* 個別の背景画像 */
.bg-vision { background-image: url('../z_images/pala_01.png'); }
.bg-eco { background-image: url('../z_images/pala_02.png'); }


/* --- 6. Products --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.product-card {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.card-img { height: 220px; background-position: center; background-size: cover; transition: transform 0.4s; }
.product-card:hover .card-img { transform: scale(1.05); }

.img-1 { background-image: url('/z_images/1.png'); }
.img-2 { background-image: url('/z_images/2.png'); }
.img-3 { background-image: url('/z_images/3.png'); }
.img-4 { background-image: url('/z_images/4.png'); }
.img-5 { background-image: url('/z_images/5.png'); }
.img-6 { background-image: url('/z_images/6.png'); }
.img-7 { background-image: url('/z_images/7.png'); }
.img-8 { background-image: url('/z_images/8.png'); }
.img-9 { background-image: url('/z_images/9.png'); }
.img-10 { background-image: url('/z_images/10.png'); }
.img-11 { background-image: url('/z_images/11.png'); }
.img-12 { background-image: url('/z_images/12.png'); }
.img-13 { background-image: url('/z_images/13.png'); }
.img-14 { background-image: url('/z_images/14.png'); }
.img-15 { background-image: url('/z_images/15.png'); }
.img-16 { background-image: url('/z_images/16.png'); }
.img-17 { background-image: url('/z_images/17.png'); }
.img-18 { background-image: url('/z_images/18.png'); }
.img-19 { background-image: url('/z_images/19.png'); }
.img-20 { background-image: url('/z_images/20.png'); }
.img-21 { background-image: url('/z_images/21.png'); }
.img-22 { background-image: url('/z_images/22.png'); }
.img-23 { background-image: url('/z_images/23.png'); }
.img-24 { background-image: url('/z_images/24.png'); }
.img-25 { background-image: url('/z_images/25.png'); }
.img-26 { background-image: url('/z_images/26.png'); }
.img-27 { background-image: url('/z_images/27.png'); }
.img-28 { background-image: url('/z_images/28.png'); }
.img-29 { background-image: url('/z_images/29.png'); }

.card-body { padding: 30px; }

/* --- 7. Footer --- */
.footer { background: #1a1a1a; color: #fff; padding: 60px 20px 20px; text-align: center; }
.copyright { font-size: 12px; color: #888; margin-top: 40px; }
.footer-img {
    width: auto;       /* 横幅いっぱいの強制を解除し、本来のサイズにする */
    /* width: 200px;      ← もしサイズを指定したい場合は数値を入れる */
    
    max-width: 100%;   /* スマホからはみ出ないようにする保険 */
    height: auto;      /* 高さは自動調整 */
    margin: 0 auto 20px; /* 中央揃え（左右auto）＆ 下に20pxの余白 */
}

/* --- フッターリンクのスタイル --- */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* リンク同士の間隔 */
    margin-bottom: 30px; /* 下（社名）との余白 */
    padding: 0;
}

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

.footer-links a {
    font-size: 13px;
    color: #ccc; /* 少しグレーにして控えめに */
    opacity: 0.8;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: #fff;
    text-decoration: underline;
}



/* --- 8. トップへ戻るボタン --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-5px); background-color: #c4000f; }

/* --- Animations & Mobile --- */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* --- Mobile (Responsive & Menu) --- */
@media (max-width: 768px) {
    .header { padding: 15px 20px 15px 5px !important; }
    .hero-content h1 { font-size: 2rem; }
    .section { padding: 60px 20px; }
    .parallax-section { padding: 100px 20px; }
    .footer-links {
        flex-direction: column; /* 縦並びにする */
        gap: 15px;
    .menu-toggle.menu-open {
        color: #333 !important; /* 強制的にダークグレーにする */
    }
}
/* スマホ表示ではPC用を隠して、スマホ用を表示する */
    .copy-pc {
        display: none;
    }
    .copy-sp {
        display: block; /* または inline */
    }
    .header.scrolled {
        padding: 15px 20px 15px 5px !important; 
    }

    /* ハンバーガーアイコン */
    .menu-toggle {
        display: block;
        z-index: 1100;
        cursor: pointer;
        transition: 0.3s;
        position: relative;
    }

    /* モバイルメニュー（右側スライド・白背景・上寄せ） */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        
        width: 60%;
        height: 100vh;
        
        background: rgba(255, 255, 255, 0.95); /* 少し濃くしました */
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
        
        /* ★変更点1：上寄せにする */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* 上に詰める */
        align-items: center;
        padding-top: 100px; /* 上部の余白（閉じるボタンと重ならないように） */
        
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        
        z-index: 1000;
        visibility: visible;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* ★変更点2：メニュー項目の枠設定 */
    .nav-menu li {
        opacity: 0;
        transform: translateX(20px);
        transition: 0.4s ease;
        
        width: 80%; /* 横幅いっぱいにせず、少し余白を持たせる */
        text-align: center;
        /* 細かいドット線 (#cccは薄いグレー) */
        border-bottom: 1px dotted #ccc; 
    }
    
    /* 一番上の線も入れたい場合は以下のコメントアウトを外してください */
    /* .nav-menu li:first-child { border-top: 1px dotted #ccc; } */

    .nav-menu a {
        font-size: 16px; /* 文字サイズを少し調整 */
        color: #333;
        display: block;
        padding: 20px 0; /* 上下のクリックエリアを広げる */
        font-weight: 700;
        letter-spacing: 1px;
    }

    /* アニメーション遅延 */
    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.4s; }
}

/* --- Scroll Fade In Animation --- */

/* 1. 初期状態：透明にして、少し下にずらしておく */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px); /* 30px下に配置 */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* 0.8秒かけて変化 */
}

/* 2. 表示状態：不透明にして、元の位置に戻す */
.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* （オプション）順番に表示させるための遅延設定 */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }


/* =========================================
   下層ページ (Company) 用の追加スタイル
   ========================================= */

/* --- ページヘッダー (共通) --- */
.page-header {
    position: relative;
    height: 400px; /* 動画より少し高さを抑える */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../z_images/header_company.png'); /* オフィス等の静止画 */
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.page-header::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 黒フィルター */
    z-index: -1;
}

.page-header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.page-header-content p {
    font-size: 1rem;
    letter-spacing: 1px;
}

/* --- パンくずリスト --- */
.breadcrumbs {
    padding: 20px;
    font-size: 14px;
    color: #666;
}
.breadcrumbs a { text-decoration: underline; color: #888; }
.breadcrumbs span { font-weight: bold; }


/* --- 会社概要テーブル (Definition List) --- */
.profile-table {
    border-top: 1px solid #ddd;
    max-width: 900px;
    margin: 0 auto;
}

.profile-table dl {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ddd;
}

.profile-table dt {
    width: 25%;
    padding: 20px;
    background-color: #f9f9f9;
    font-weight: bold;
    display: flex;
    align-items: center; /* 上下中央 */
}

.profile-table dd {
    width: 75%;
    padding: 20px;
    background-color: #fff;
    line-height: 1.8;
}

/* スマホ対応: 縦並びにする */
@media (max-width: 768px) {
    .profile-table dt { width: 100%; background: #eee; padding: 10px 20px; }
    .profile-table dd { width: 100%; padding: 15px 20px; }
}


/* --- グループ企業 (カード) --- */
.group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.group-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    transition: 0.3s;
}

.group-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--color-accent);
}

.group-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-left: 4px solid var(--color-accent);
    padding-left: 10px;
}

.group-card p { font-size: 0.9rem; color: #666; margin-bottom: 5px; }
.group-card .small { font-size: 0.8rem; color: #999; margin-top: 10px; }


/* --- マップ (Map) --- */
.bg-map {
    background-image: url('https://images.unsplash.com/photo-1577086664693-894553052526?auto=format&fit=crop&w=1950&q=80'); /* 名古屋の街並み等の画像 */
}
.map-container {
    width: 100%;
    margin-top: 20px;
}


/* --- 売上推移テーブル --- */
.sales-table-wrapper {
    max-width: 600px;
    margin: 0 auto;
    overflow-x: auto; /* スマホでは横スクロール */
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.sales-table th, .sales-table td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
}

.sales-table th {
    background-color: #333;
    color: #fff;
    font-weight: normal;
}
/* --- グループ企業セクションの追加スタイル --- */
.group-category-title {
    font-size: 1.4rem;
    margin-bottom: 30px;
    border-left: 5px solid #333;
    padding-left: 15px;
    color: #333;
}

/* カード内の役割（地区名など） */
.group-card .role {
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 8px;
    font-size: 0.9rem;
}
/* =========================================
   個人情報保護方針 (Privacy Policy) 用スタイル
   ========================================= */

/* コンテンツエリアの幅制限（読みやすくする） */
.privacy-content {
    max-width: 800px; /* 記事のように幅を絞る */
    margin: 0 auto;
}

/* ポリシーのヘッダー文章 */
.policy-header {
    text-align: center;
    margin-bottom: 60px;
}

.policy-header .lead-text {
    font-size: 1rem;
    line-height: 2;
    color: #666;
}

/* 各項目（セクション） */
.policy-item {
    margin-bottom: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    /* ほんのり影をつけてカード風にする */
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); 
    border: 1px solid #eee;
}

/* 項目の見出し */
.policy-item h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
    border-left: 5px solid var(--color-accent); /* 赤い縦線 */
    padding-left: 15px;
    line-height: 1.4;
}

/* 本文テキスト */
.policy-item p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.policy-item p:last-child {
    margin-bottom: 0;
}

/* 番号付きリスト */
.policy-item ol {
    margin: 20px 0 20px 20px;
    padding-left: 20px;
    color: #444;
}

.policy-item ol li {
    margin-bottom: 10px;
    list-style-type: decimal; /* 数字リスト */
}

/* PC/SPでの改行制御クラス */
@media (max-width: 768px) {
    .pc-only { display: none; }
    .sp-only { display: block; }
    
    .policy-item { padding: 20px; } /* スマホでは内側の余白を少し減らす */
}
@media (min-width: 769px) {
    .sp-only { display: none; }
}
/* --- FOVA Group セクション --- */
.fova-wrapper {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
}

.fova-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #ddd; /* 点線で区切る */
}

.fova-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    letter-spacing: 1px;
}

.fova-header p {
    color: #666;
    line-height: 1.8;
}
/* --- 2列×2行レイアウト用のグリッド --- */
.fova-grid-2x2 {
    display: grid;
    /* PCでは強制的に2列（1fr 1fr）にする */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* スマホ表示の時は1列（縦並び）にする */
@media (max-width: 768px) {
    .fova-grid-2x2 {
        grid-template-columns: 1fr;
    }
}

.fova-item {
    background: #fcfcfc;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
}

.fova-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.fova-item h4 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    color: #333;
}

/* FOVAテックのタイトルだけアクセントカラーにする場合 */
.fova-tech-title {
    color: var(--color-accent) !important;
}

.fova-item p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}