/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ボディとフォント */
body {
    font-family: Arial, sans-serif;
    background-color: white;
    color: black;
    line-height: 1.6;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: black;
    padding: 20px 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-shadow: none; /* 境界線を目立たなくする */
}

header .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: 20px;
}

header .logo img {
    width: 40px; /* 画像のサイズを調整 */
    margin-right: 10px; /* Apealとの間隔を調整 */
    margin-left: 0px;
}

header .logo h1 {
    font-size: 24px;
    font-weight: bold;
}

#menu-icon {
    width: 20px;
    cursor: pointer;
}

#close-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff; /* 白色 */
    cursor: pointer;
    z-index: 1100;
}

/* メニュー */
.menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #333;
    color: #fff;
    transition: 0.3s;
    padding-top: 60px;
    z-index: 1000;
}

.menu.active {
    left: 0;
}

.menu ul {
    list-style: none;
    padding: 0;
}

.menu ul li {
    padding: 8px 16px;
    text-align: left;
}

.menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.menu ul li a:hover {
    border-bottom: 2px solid white;
}

/* セクション */
.section {
    padding: 60px 0px;
    max-width: 1200px;
    margin: 0 auto;
}

.center {
    text-align: center;
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

p {
    font-size: 1.2em;
    color: #666;
}

/* キャッチフレーズ */
#catchphrase {
    padding-top: 100px;
}

/* 動画コンテナ */
.video-container {
    text-align: center;
    margin-bottom: 60px;
}

video {
    width: 100%;
    height: 100%; /* 横幅いっぱいに広げ、縦のサイズは自動で調整 */
}

/* コンテンツのレイアウト */
.content-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.left-photo, .right-photo {
    max-width: 48%;
    height: auto;
}

.left-content, .right-content {
    max-width: 48%;
}

.left-content h2, .right-content h2 {
    font-size: 1.8em; /* すべてのh2の文字サイズを統一 */
    margin-bottom: 15px;
}

.right-content p {
    font-size: 1.2em;
    color: #666;
}

/* 経営陣のギャラリー */
.team-gallery {
    display: flex;
    overflow-x: scroll;
    gap: 10px;
}

.team-gallery img {
    width: 300px; /* 画像を少し大きく表示 */
    height: auto;
}

/* フッター */
footer {
    background-color: white;
    color: black;
    text-align: center;
    padding: 20px;
}

.section h2{
   margin-left: 20px;
   font-size: 1.8em;
}

/* --- 問い合わせフォームのデザイン --- */
.contact-form-section {
    padding-top: 100px; /* ヘッダーの高さ分余白を追加 */
    text-align: center;
}

.contact-form-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
}

form#contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
}

form#contact-form label {
    font-weight: bold;
    font-size: 1.1em;
}

form#contact-form input,
form#contact-form textarea {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* テキストエリア（お問い合わせ内容）は広めに */
form#contact-form textarea {
    height: 150px;
    resize: vertical;
}

form#contact-form button {
    background-color: #333;
    color: white;
    font-size: 1.2em;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form#contact-form button:hover {
    background-color: #555;
}

@media (max-width: 768px) {
    /* ヘッダー */
    header .logo {
        flex-direction: row;
        align-items: center;
    }

    header .logo img {
        margin-right: 10px;
        width: 20px; /* 画像サイズ調整 */
    }

    header .logo h1 {
        font-size: 20px; /* 小さな画面でのテキストサイズ調整 */
    }

    /* メニューの表示位置 */
    .menu {
        left: -100%;
    }

    .menu.active {
        left: 0;
    }
/* 動画セクション */
    .video-container {
        width: 100%; /* スマホで動画サイズが崩れないように */
    }

    /* セクションのレイアウト */
    .content-container {
        flex-direction: column; /* スマホで縦並び */
        align-items: center;
    }

    /* コンテンツ */
    .left-photo, .right-photo {
        max-width: 100%; /* 画像の幅を調整 */
        margin-bottom: 30px;
        margin-top: 30px
    }

    /* テキスト */
    .left-content, .right-content {
        max-width: 100%;
        text-align: center;
    }

    /* キャッチフレーズ */
    #catchphrase {
        padding-top: 100px; /* スマホでの余白調整 */
    }
    #catchphrase h2, #about h2 {
        font-size: 1.3em; /* フォントサイズを小さく */
        margin-bottom: 20px;
    }

    /* コンテンツのテキスト */
    .left-content p, .right-content p {
        font-size: 1.2em; /* パソコンより小さく調整 */
    }
}