/*
Theme Name: Nakamoto Urban Design
Author: Saijo Toru
Description: 株式会社中本都市設計オリジナルWordPressテーマ
Version: 1.0.1
*/

body {
    font-family: sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* ==========================================================================
   修正版：ヘッダーナビゲーション デザイン（デバイス端配置）
   ========================================================================== */

   .site-header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ヘッダー全体：背景は指定せず、高さのみ固定 */
.site-header {
    width: 100%;
    height: 80px; /* ヘッダーの高さ */
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
}

/* トップページ：ヘッダーをメインビジュアル上に重ねる */
body.home .site-header {
    position: fixed;
}
body.home .header-logo-zone a {
    color: #ffffff;
}

/* 【PC】画面の一番左端：ロゴ（背景透明） */
.header-logo-zone {
    padding-left: 20px; /* デバイス左端からの最小限の余白 */
    height: 100%;
    display: flex;
    align-items: center;
    background: transparent; /* 背景は完全に透明 */
}
.header-logo-zone a {
    color: #333333; /* 背景が透明なので、とりあえず見えやすい黒（必要に応じて変更してください） */
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* 【PC】画面の右側一式をまとめるゾーン */
.header-right-zone {
    display: flex;
    align-items: center;
    height: 100%;
}

/* グローバルメニュー：ここだけに「濃いグレー背景」を敷く */
.global-nav {
    background-color: #333333; /* 濃いグレー */
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 30px; /* メニュー左右の余白 */
}
.main-menu-list {
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center;
}
.main-menu-list li {
    margin-left: 15px;
    margin-right: 15px;
}
.main-menu-list li a {
    color: #ffffff; /* テキスト白色 */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}
.main-menu-list li a:hover {
    color: #a5b4fc;
}

/* お問い合わせボタン：グレー背景の外に独立、完全な四角形、グラデーション */
.contact-square-btn {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); /* ブルー・紫グラデーション */
    color: #ffffff !important;
    text-decoration: none;
    height: 100%; /* ヘッダーの高さ（80px）いっぱいの四角形 */
    padding: 0 35px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.3s;
    border-radius: 0; /* 💡 丸みをゼロにして完全な四角形に */
}
.contact-square-btn:hover {
    opacity: 0.9;
}

/* スマホ用アクションエリア（初期状態は非表示） */
.sp-action-zone {
    display: none;
}

/* ==========================================================================
   スマートフォン表示（1024px以下）
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .site-header {
        height: 70px;
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    body.home .site-header {
        background-color: transparent;
        box-shadow: none;
    }

    .header-logo-zone a {
        color: #333333;
    }

    body.home .header-logo-zone a {
        color: #ffffff;
    }

    body.home .sp-contact-icon {
        color: #ffffff;
    }

    body.home .hamburger-menu span {
        background-color: #ffffff;
    }

    /* 右側の塊をスマホでは全画面ドロワーに変更 */
    .header-right-zone {
        position: fixed;
        top: 70px;
        left: 100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: #333333; /* 開いたメニュー内は濃いグレー */
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 0 0 0;
        transition: left 0.4s ease;
    }
    
    .header-right-zone.is-open {
        left: 0;
    }

    .global-nav {
        background: transparent; /* スマホ内ではメニュー単体のグレー背景は不要 */
        height: auto;
        width: 100%;
        padding: 0;
    }
    .main-menu-list {
        flex-direction: column;
        width: 100%;
    }
    .main-menu-list li {
        margin: 0 0 20px 0;
        text-align: center;
    }
    .main-menu-list li a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }

    /* スマホメニュー内のボタンは押しやすいように少し調整 */
    .contact-square-btn {
        width: 80%;
        height: 55px;
        justify-content: center;
        border-radius: 4px; /* スマホ画面内だけ少し馴染ませる（四角のままなら0でOK） */
        margin-top: 20px;
    }

    /* スマホ右側エリア（ロゴに対する右側配置） */
    .sp-action-zone {
        display: flex;
        align-items: center;
        gap: 24px;
        padding-right: 20px;
    }

    /* スマホ用メールアイコン（白背景ならグレー、黒背景なら白に調整してください） */
    .sp-contact-icon {
        color: #333333;
        font-size: 1.5rem;
        text-decoration: none;
    }

    /* ハンバーガーメニュー */
    .hamburger-menu {
        background: none;
        border: none;
        width: 28px;
        height: 22px;
        position: relative;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #333333; /* 三本線 */
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* ハンバーガーバツ印化 */
    .hamburger-menu.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

/* ==========================================================================
   トップページ：メインビジュアル（ファーストビュー）デザイン
   ========================================================================== */

.main-visual {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background-color: #1a1a1a;
}

/* 動画・静止画を包むブロック */
.mv-block {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* ビデオ要素：画面いっぱいに比率を保ってトリミング表示 */
.mv-block video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 横長・縦長問わず隙間なくカバー */
    position: relative;
    z-index: 1;
    transition: opacity 0.8s ease; /* 10秒終了時に0.8秒かけてフワッと静止画に変える */
}

/* 💡 ビデオの後ろ（背景）にあらかじめ静止画(.png)を全く同じサイズで仕込んでおく仕組み */
.mv-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
/* PC用の背景に mv-pc.png を指定 */
.is-pc::before {
    background: url('images/mv-pc.png') no-repeat center center / cover;
}
/* SP用の背景（画像が用意されるまでは共通でもOK） */
.is-sp::before {
    background: url('images/mv-pc.png') no-repeat center center / cover;
}

/* 動画の上に薄い黒のフィルターを敷き、白い文字をさらに読みやすくする */
.main-visual::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25); /* 黒25%の透明フィルター。不要なら0にするか削除してください */
    z-index: 2;
}

/* 💡 白文字キャッチコピーの配置エリア */
.mv-copy-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* フィルターや動画よりも前面に表示 */
    display: flex;
    align-items: center; /* 縦方向の中央に配置 */
    padding-left: 8%;    /* 画面左端から少し内側に寄せる（余白） */
}

.mv-copy-inner {
    max-width: 1200px;
    color: #ffffff; /* 💡 完全に白文字 */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* 文字の後ろに綺麗な影をつけて視認性を確保 */
}

/* 日本語キャッチコピー */
.mv-copy-ja {
    font-size: 2.6rem; /* 文字の大きさ（適宜調整してください） */
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 20px;
    letter-spacing: 0.05em; /* 文字と文字の間隔を少し広げて知的な印象に */
}

/* 英語キャッチコピー */
.mv-copy-en {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.08em;
    opacity: 0.9; /* 英語をほんの少しだけ透過させて、日本語との主従関係を作ります */
}

/* -----------------------------------------
   PCとスマホの表示切り替え（レスポンシブ）
   ----------------------------------------- */
/* 通常（PCサイズ）はPC用を表示、SP用を非表示 */
.is-pc { display: block; }
.is-sp { display: none; }

/* 画面幅が1024px以下（スマホ・タブレットサイズ）になったとき */
@media screen and (max-width: 1024px) {
    .main-visual {
        height: 100vh;
        height: 100svh;
    }
    .is-pc { display: none; }
    .is-sp { display: block; }
    
    /* スマホ用に文字サイズを小さく最適化 */
    .mv-copy-container {
        padding-left: 5%;
        padding-right: 5%;
    }
    .mv-copy-ja {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    .mv-copy-en {
        font-size: 0.9rem;
    }
}