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

h2{
    margin: 50px 0;
}

.logo img{
    padding: 10px 0 0 10px;
}

.main-header nav {
    display: block;
}

.menu-toggle {
    display: none; /* PC版では非表示 */
}

.top-section {
    width: 100%;
    overflow: hidden; /* 画像がはみ出しても表示させない */
}

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

.hero-text {
    position: absolute; /* 親要素を基準に配置 */
    top: 35%; /* 親要素の上から50%の位置 */
    left: 50%; /* 親要素の左から50%の位置 */
    transform: translate(-50%, -50%); /* 要素の中心を基準に位置を調整 */
    text-align: center;
    color: #fff; /* 文字色を白に */
    width: 100%;
}

.hero-text p {
    font-size: 2.0rem; /* キャッチコピーのフォントサイズ */
    font-weight: 600;
}

.top-section {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.main-header{
    display: flex;
    justify-content:space-between;
}


.main-header nav{
    height: 100px;
    background-color: white;
}

.main-header nav ul {
    display: flex;
    justify-content: flex-end; /* 右寄せ */
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0 50px;
    list-style: none; /* リストの点を消す */
}

.main-header nav li a {
    text-decoration: none;
    color: #385669;
    font-weight: 600;
    padding: 0 15px;
}

.main-header nav li a:hover {
    color: #b7b6b6;
}


/* 動画セクション */
.video-container {
    display: flex;
    position: relative;
    transition: transform 0.5s ease-in-out; /* スライドのアニメーションを滑らかにする */
    /* width: 30%;  コンテナの幅を親要素の80%に設定 */
    max-width: 900px; /* コンテナの最大幅を設定 */
    gap: 40px; /* 動画と動画の間に20pxの空白を入れる */
}

.video-container video {
    flex-shrink: 0;
    width: 100%;
    height: auto; /* 高さを自動で調整し、縦横比を維持 */
}

.video-section{
    margin: 100px 0;
}

.video-slider-wrapper {
    padding-left: 20px; /* 必要に応じて左に余白を追加 */
    width: 30%; /* スライダー全体を画面幅の80%に制限 */
}


.video-nav {
    display: flex;
    justify-content: center;
    gap: 10px; /* 丸と丸の間隔 */
    margin-top: 20px;
}

.video-nav-wrapper {
    max-width: 900px; /* コンテナの最大幅と合わせる */
    margin: 20px auto 0; /* 上に余白、左右は自動で中央に */
}

.nav-dot {
    width: 12px;
    height: 12px;
    background-color: #ccc; /* 通常時の色 */
    border-radius: 50%; /* 丸にする */
    cursor: pointer; /* マウスを乗せたときに指のマークにする */
    transition: background-color 0.3s; /* 色の切り替わりを滑らかにする */
}

.nav-dot.active {
    background-color: #555555; /* アクティブ時の色 */
}

.video-section h2,.drone-use-cases h2,.pilot-message h2 {
    /* 文字を中央に配置 */
    text-align: center;

    /* 背景を青色に設定 */
    background-color: #1270A0; 

    /* 文字色を白に設定（背景が青だと文字が見えにくくなるため） */
    color: #fff;

    /* 見出しに余白を追加して、見た目を整える */
    padding: 10px; 
}

.use-case-item {
    display: flex; /* 親要素をFlexコンテナにして横並びにする */
    align-items: center; /* 子要素を垂直方向に中央揃え */
    /* width: 48%;  */
    /* margin: 10px; */
}

.use-case-item img {
    /* 画像をアイテムの左側に配置 */
    width: 50%; /* 画像の幅を半分にする */
    height: auto;
    object-fit: cover;
}

.use-case-content {
    /* テキスト部分を右側に配置 */
    width: 50%; /* テキスト部分の幅を半分にする */
    padding: 20px;
}

.use-case-item.building {
    /* 子要素（画像とuse-case-content）の並びを反転させる */
    flex-direction: row-reverse;
}

.more-link {
    display: inline-block; /* リンクをブロック要素のように扱う */
    margin-left: auto; 
    margin-top: 15px;
    padding: 5px 20px; /* 内側の余白を設定 */
    color: #1270A0; /* 青色の文字 */
    border: 2px solid #1270A0; /* 2pxの青い枠線 */
    border-radius: 50px; /* 角を大きく丸くして横長の丸にする */
    text-decoration: none; /* 下線を非表示に */
    position: relative;
    transition: all 0.3s ease; /* ホバー時のアニメーション効果 */
}

.more-link::after {
    content: " ▶"; /* 疑似要素として ▶ を挿入 */
    font-size: 1em;
    transition: margin-left 0.3s ease;
}

.more-link:hover {
    color: #fff; /* ホバー時は文字を白色に */
    background-color: #1270A0; /* ホバー時は背景を青色に */
}

.more-link:hover::after {
    margin-left: 5px; /* ホバー時に右に少しずらすアニメーション効果 */
}
.text-content{
    display: flex;
    flex-direction: column;
    /* align-items: flex-start; これで子要素が左寄せのままになります。 */
   padding: 20px; 
}

h3 {
  border-left: 5px solid #E63E00; /* 5pxの太さ、実線、オレンジ色 */
  padding-left: 10px; /* 左側のボーダーとテキストの間に余白を入れる */
  margin-bottom: 30px;
  font-size: 25px;
}

/* お問い合わせセクション全体 */
.contact-section {
    padding: 50px 0;
    max-width: 800px;
    margin: 0 auto;
}

/* h2見出しのスタイル */
.contact-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

/* フォーム全体のスタイル */
.contact-section form {
    display: flex;
    flex-direction: column;
}

/* 各フォーム項目のコンテナ（ラベルと入力欄） */
.contact-section form div {
    margin-bottom: 20px;
}

/* ラベルのスタイル */
.contact-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

/* 入力欄（input, textarea）のスタイル */
.contact-section input,
.contact-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* テキストエリアの高さ調整 */
.contact-section textarea {
    min-height: 150px;
    resize: vertical; /* 縦方向のみリサイズ可能に */
}


/* 送信ボタンのスタイル */
.contact-section button {
    padding: 15px 30px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}

.contact-section button:hover {
    background-color: #0056b3;
}

.submit-button{
    max-width: 300px;
    margin: 0 auto;
}

footer {
    background-color: #385669; /* 指定された色 */
    color: #fff; /* テキストを白色に */
    text-align: center; /* テキストを中央寄せ */
    font-size: 14px; /* フォントサイズを小さくする */
    margin-top: 30px;
    padding: 5px;
}

/* ここからsp版 */

@media screen and (max-width: 768px) {

    .main-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .main-header .logo img {
        height: 70px; /* SP版の高さに調整 */
    }

    .menu-toggle {
        display: block; /* スマホ版では表示 */
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px 20px;
    }

    .icon-bar {
        display: block;
        position: absolute;
        top: 0; /* 各線の初期位置 */
        width: 25px;
        height: 3px;
        background-color: #385669;
        margin: 5px 0;
        border-radius: 2px;
        transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }

    .hamburger-icon {
        position: relative;
        width: 25px;
        height: 25px; /* 親要素の高さも調整 */
    }

    .icon-bar.top { top: 0; }
    .icon-bar.middle { top: 11px; } /* 線の太さ+マージンで調整 */
    .icon-bar.bottom { top: 22px; }

    .menu-toggle.is-open .icon-bar.top {
        transform: rotate(45deg);
        top: 11px;
    }

    .menu-toggle.is-open .icon-bar.middle {
        opacity: 0; /* 中央の線を非表示 */
    }

    .menu-toggle.is-open .icon-bar.bottom {
        transform: rotate(-45deg);
        top: 11px;
    }
    
    .main-header nav {
        display: none; /* 初期状態では非表示 */
        position: absolute;
        top: 70px; /* ヘッダーの高さに合わせて調整 */
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 10;
    }

    .main-header nav.is-open {
        display: block; /* JavaScriptでこのクラスを付与して表示する */
    }

    .main-header nav ul {
        flex-direction: column;
        padding: 20px;
    }

    .top-section {
        height: 90vh; 
    }

    .top-image{
        height: auto; /* 画面の高さに応じて調整 */
    }

    .hero-text{
        top: 50%;
    }

    .hero-text p {
        font-size: 1.2rem; /* スマホ向けにフォントサイズを小さく */
    }

    .video-section{
        margin: 30px 0;
    }

    .video-slider-wrapper {
        width: 100%; /* スマホ画面幅いっぱいに広げる */
        padding: 0 10px; /* 左右に余白 */
        overflow-x: scroll; /* 👈 横スクロールを可能にする */
        -webkit-overflow-scrolling: touch; /* 👈 iOSでスムーズなスクロールを有効にする */
    }

    .video-container {
        gap: 10px; /* ギャップを小さくする */

    }

    .video-container video {
        /* width: calc((100% - 10px * 3) / 4); ギャップに合わせて幅を調整 */
        max-height: 150px;
        width: 90vw;
    }

    .text-content{
        margin-left: 10px;
    }

    .text-content h3{
        /* border: none; */
        margin: 15px 0;
    }

    .use-case-item {
        flex-direction: column; /* 縦並びにする */
        width: 100%; /* 幅いっぱいに広げる */
        margin-bottom: 20px;
    }

    .use-case-item.building {
        flex-direction: column; /* 逆にする設定を解除 */
    }

    .use-case-item img, .use-case-item .text-content {
        width: 100%; /* 画像とテキストを幅いっぱいに広げる */
        padding: 0;
    }

    .contact-section {
        max-width: 100%; /* 幅を解除 */
        padding: 0 20px; /* 左右に余白 */
    }

}

/* ここからsubページ */

/* ヒーローセクション（トップ画像とタイトル）のスタイル */
.hero-section {
    position: relative; /* 子要素を絶対配置するための基準点 */
    width: 100%;
    height: 300px; /* お好みの高さに調整してください */
    overflow: hidden; /* 画像がはみ出さないように */
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をセクション全体にフィットさせ、トリミング */
    object-position: center; /* 画像の中心を基準に表示 */
}

.page-title {
    position: absolute; /* 親要素（.hero-section）を基準に配置 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* 要素の中心を正確に配置 */
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* 文字を読みやすくするための影 */
    font-size: 2.5rem;
    white-space: nowrap; /* タイトルが折り返されないように */
}

/* メインコンテンツエリアのスタイル */
.page-content {
    max-width: 960px;
    margin: 2rem auto; /* 上下に余白、左右は自動で中央寄せ */
    padding: 0 1rem;
}

/* ニュースセクションのスタイル */
.news-topic-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.news-topic-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block; /* 下線がテキストの幅に合わせるように */
}

.news-list {
    display: grid;
    gap: 1.5rem; /* ニュース項目間のスペース */
}

.news-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none; /* 最後の項目は下線なし */
}

.news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.news-item a {
    text-decoration: none; /* リンクの下線を非表示に */
    color: #3498db;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: #2980b9; /* ホバー時の色変更 */
}

.news-summary {
    font-size: 1rem;
    color: #555;
}

/* スマートフォン向けのレスポンシブ対応 */
@media (max-width: 768px) {
    .hero-section {
        height: 200px; /* 小さい画面では高さを低く */
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-content {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }

    .news-topic-section {
        padding: 1.5rem 1rem;
    }
}