/* ---------------------------------
   サイト基本設定と変数定義
   --------------------------------- */
/* 主要フォント設定 */
body {
    font-family: "Noto Sans JP", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", Sans-Serif;
    color: #333;
    line-height: 1.6;
    background-color: #000; /* ファーストビュー後の背景は黒 (#111)に戻しています */
    overflow-x: hidden;
    
    /* 固定ヘッダーの高さ分、コンテンツ全体を下にずらす */
    /* ヘッダーの高さ (80px) + ラッパーの上下パディング (20px*2) = 120px */
    padding-top: 120px;
}

a { text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; }
* { box-sizing: border-box; }

/* 変数定義 */
:root {
    --base-color: #1A237E; /* ダークネイビー */
    --accent-color: #FFB300; /* オレンジ/イエロー */
    --text-color-light: #fff;
    --text-color-dark: #333;
    --header-height: 80px; /* ヘッダーの高さの目安 */
    --content-margin-pc: 5%; /* PCでの左右余白 */
    --section-gray: #f5f5f5; /* 新しいセクションのグレー背景 */
    --red-line: #D32F2F; /* 区切り線の赤色 */
    --card-yellow-background: #FFD700; /* カードの背景切り替え用黄色 */
}

/* ---------------------------------
   ヘッダーのスタイル (白いナビゲーションバー)
   --------------------------------- */
.header-wrapper {
    /* 固定化 */
    position: fixed; /* ヘッダーを固定 */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0; /* 上下パディング */
    z-index: 50;
}

.header {
    /* 白いナビゲーションバー本体 */
    width: calc(100% - (var(--content-margin-pc) * 2)); /* 左右5%ずつ引いた幅 */
    margin: 0 auto;
    background-color: #fff; /* 背景を白に */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); 
    height: var(--header-height); /* 80px */
    padding: 0 20px; 
    border-radius: 5px; 
    
    /* ロゴとナビゲーションの配置をFlexboxで制御 */
    display: flex;
    justify-content: space-between; /* ロゴを左、ナビを右に */
    align-items: center; /* 垂直中央揃え */
}

.site-logo {
    height: auto; 
    display: flex;
    align-items: center; 
}

.site-logo img {
    height: 40px; 
    filter: none; 
}

.global-nav ul {
    list-style: none;
    /* リスト項目をFlexboxで横並びにする（より確実） */
    display: flex;
    padding: 0; 
}
.global-nav li {
    margin: 0;
}

.global-nav li a {
    color: var(--text-color-dark);
    font-weight: 700;
    padding: 10px 15px;
    font-size: 0.95rem;
    
    /* ホバーエフェクトの設定 */
    opacity: 1; 
    transition: opacity 0.3s, color 0.3s; 
}

.global-nav li a:hover {
    color: #888; /* ホバーでグレーに変更 */
    opacity: 0.5; 
}

.menu-toggle {
    display: none; 
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 100;
    border: none;
    background: none;
    padding: 0;
}

/* モバイルナビゲーション */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 40;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.mobile-nav li a {
    color: var(--text-color-light);
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    padding: 15px 0;
    transition: color 0.3s;
}

.mobile-nav li a:hover {
    color: var(--accent-color);
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-color-light);
    cursor: pointer;
}


/* ---------------------------------
   ファーストビュー (左右分割エリア)
   --------------------------------- */
.first-view {
    position: relative;
    width: 100%;
    /* ヘッダーの下から画面下端までの高さ */
    height: calc(100vh - 120px); 
    display: flex; 
    flex-wrap: nowrap; 
    overflow: hidden;
    margin-bottom: 0; 
}

/* 左パネル: 黒背景 + キャッチコピー/ロゴ */
.left-panel {
    background-color: #000; 
    width: 30%; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-light); 
    z-index: 10;
    padding: 40px;
}

/* 右パネル: メインビジュアル */
.main-visual-panel {
    width: 70%; 
    position: relative;
    height: 100%;
    background-color: #333; 
    overflow: hidden;
}

.main-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.mv-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.mv-image.active {
    opacity: 1; 
}

/* 黒いオーバーレイ */
.main-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25); 
}

.main-content {
    /* コンテンツ全体を左寄せにする */
    display: flex;
    flex-direction: column; 
    align-items: flex-start; /* 左寄せに変更 */
    text-align: left; 
    width: 100%;
    max-width: 500px;
}

.catch-phrase-area {
    width: 100%;
    margin-bottom: 50px;
}

.catch-phrase {
    font-size: 3vw; 
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-color-light);
    letter-spacing: 0.1em;
    /* テキストの折り返しを厳密に制御 */
    word-break: keep-all; 
    overflow-wrap: normal; 
}

.sub-catch {
    font-size: 1vw; 
    margin-bottom: 0;
    font-weight: 400;
    color: #ccc;
    text-align: left; 
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 20px 60px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 30px;
    white-space: nowrap; 
}
.cta-button i {
    margin-right: 10px; /* アイコンとテキストの間に余白 */
}

.cta-button:hover {
    background-color: #FFC138;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

.main-logo-area {
    width: 80%; 
    max-width: 500px;
    margin-bottom: 50px;
}

/* ---------------------------------
   コンテンツセクション (全般)
   --------------------------------- */
.content-section {
    background-color: #000; 
    padding: 80px 0 0; /* 下のパディングはラッパーに任せる */
    margin-top: 0; 
    margin-bottom: 0;
}

.content-container {
    max-width: 90%; /* 画面の90%まで広げる */
    width: 100%;
    margin: 0 auto;
    padding: 0 40px; 
}

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

.section-title {
    font-size: 3rem;
    font-style: italic;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    padding-bottom: 8px;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    padding-bottom: 5px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--red-line); /* 赤い区切り線 */
    display: inline-block; 
}

.section-copy {
	color: #fff;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 900px;
}

/* 事業カードのレイアウトを囲むラッパー（黄色い背景を画面幅100%にする役割） */
.business-cards-wrapper {
    padding: 30px 0 100px; /* 上下のパディング */
    width: 100%;
}


/* 事業カードのグリッドレイアウト */
.business-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    max-width: 90%; /* ★修正を反映 */
    width: 100%;
    margin: 0 auto;
    padding: 0; 
}


.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative; 
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    height: 310px; 
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 30px 20px;
    text-align: center;
}

.card-title {
    font-size: 1.6rem; 
    font-weight: 700;
    margin-bottom: 15px;
    color: #000; 
}

.card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    text-align: left;
}

.card-cta {
    display: inline-block;
    background-color: #000; 
    color: var(--text-color-light);
    padding: 10px 25px;
    margin-top: 15px;
    border-radius: 4px;
    font-weight: 700;
    transition: background-color 0.3s;
}

.card-cta:hover {
    background-color: rgba(0, 0, 0, 0.8); 
}

/* NEWSセクション (お知らせリスト) */
.news-list {
    list-style: none;
    padding: 0;
    padding-bottom: 50px; /* ★修正を適用 */
}
.news-list li {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    padding: 15px 0;
    border-bottom: 1px dashed #ccc;
}
.news-list li:first-child {
    border-top: 1px dashed #ccc;
}
.news-list time {
    flex-shrink: 0;
    font-weight: 700;
    margin-right: 30px;
    color: #fff;
    font-size: 0.95rem;
    width: 120px; /* 日付の幅を固定 */
}
.news-list a {
    color: #fff;
    transition: color 0.3s;
}
.news-list a:hover {
    color: var(--red-line);
}

/* お問い合わせセクションのスタイル */
.contact-section {
    background-color: #000; /* 黒背景 */
    color: var(--text-color-light);
    padding: 100px 0;
    text-align: center;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact-phone {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    margin: 30px 0;
    color: var(--accent-color);
}

/* Instagramバナーのスタイル */
.instagram-section {
    background-image: url('http://sugano-ind.co.jp/wp-content/uploads/bg_01.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 80px 0;
    color: var(--text-color-light);
    text-align: center;
}
.instagram-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 黒いオーバーレイ */
}

.instagram-section .contact-content {
    position: relative;
    z-index: 10;
}
.instagram-section .section-title,
.instagram-section .section-subtitle {
    color: var(--text-color-light);
}

.instagram-section .section-subtitle {
    border-bottom-color: var(--accent-color);
}

.instagram-section .fa-instagram {
    color: #E1306C; /* インスタグラムのブランドカラーを意識 */
}

/* フッタースタイル */
.footer-section {
    background-color: #000;
    color: var(--text-color-light);
    padding: 40px 0;
    text-align: center;
    border-top: 5px solid var(--accent-color); /* アクセントとして上部に黄色い線 */
}
.footer-section p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ---------------------------------
   レスポンシブ対応 (メディアクエリ)
   --------------------------------- */

.sp-only {
    display: none; 
}

@media (max-width: 768px) {
    
    /* ヘッダー全体 (スマホでは余白を小さく) */
    .header-wrapper {
        padding: 10px 0;
    }

    .header {
        width: calc(100% - 40px); 
        height: 60px;
        padding: 0 15px;
    }

    .global-nav {
        display: none; 
    }

    .menu-toggle {
        display: block; 
    }

    /* ファーストビューを縦に積み重ねる */
    .first-view {
        flex-direction: column; 
        height: auto; 
    }

    /* スマホ/タブレットでは再度 100% に戻す */
    .left-panel, .main-visual-panel {
        width: 100%; 
        min-height: 50vh; 
        padding: 40px 20px;
    }

    .left-panel {
        order: 1; 
    }

    .main-visual-panel {
        order: 2; 
    }
    
    .catch-phrase {
        font-size: 8vw; 
        word-break: keep-all;
        white-space: nowrap; 
    }
    
    .sub-catch {
        font-size: 4vw;
    }

    .cta-button {
        white-space: nowrap;
    }

    /* コンテンツセクション */
    .content-container {
        padding: 0 20px;
    }
    
    /* 事業カードのレイアウト */
    .business-cards-wrapper {
        padding: 30px 0;
        /* スマホでは背景グラデーションを黄色に統一 */
        background: var(--card-yellow-background); 
    }
    
    .business-cards {
        grid-template-columns: 1fr; /* スマホでは1列 */
        /* スマホの content-container のパディングを打ち消す */
        padding: 0 20px;
        margin: 0;
    }
    
    .card-image-wrapper {
        height: 250px; /* スマホで縦長になりすぎないように調整 */
    }

    .contact-phone {
        font-size: 1.8rem;
    }
    
    /* NEWSリストの修正 */
    .news-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-list time {
        margin-right: 0;
        margin-bottom: 5px;
    }
}


        /* ---------------------------------
           パンくずリスト
           --------------------------------- */
        .breadcrumb {
            background-color: #000;
            padding: 20px 0;
        }

        .breadcrumb-list {
            display: flex;
            list-style: none;
            padding: 0;
            margin: 0;
            font-size: 0.85rem;
            font-weight: 700;
        }

        .breadcrumb-item {
            display: flex;
            align-items: center;
            color: #999;
        }

        .breadcrumb-item a {
            color: #ccc;
        }

        .breadcrumb-item a:hover {
            color: var(--accent-color);
        }

        .breadcrumb-item::after {
            content: '\f105';
            font-family: 'Font Awesome 6 Free';
            margin: 0 10px;
            font-size: 0.7rem;
            color: #666;
        }

        .breadcrumb-item:last-child {
            color: var(--accent-color);
        }

        .breadcrumb-item:last-child::after {
            display: none;
        }


/* 記事詳細の追加スタイル */
.post-content-inner h2 {
    font-size: 1.5rem;
    border-left: 5px solid var(--accent-color);
    padding-left: 15px;
    margin: 40px 0 20px;
    color: #fff;
}
.post-content-inner p {
    margin-bottom: 25px;
}
.post-content-inner img {
    border-radius: 5px;
    margin: 20px 0;
}
.back-to-list:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}