
/* 全体の余白とパディングをリセット */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: #001f3f; /* 全体の文字色をネイビーに統一 */
}

/* ヘッダーのスタイル */
header {
    padding: 2.5px 10px;
    background-color: transparent;
    color: #001f3f;
    height: 100px; /* ヘッダーの高さを調整して、テキストが隠れないようにする */
}

.header-content {
    display: flex;
    align-items: center; /* ヘッダー内のテキストを垂直中央に配置 */
    justify-content: space-between; /* 左右にテキストとロゴを配置 */
    position: relative;
    height: 100%; /* ヘッダー全体をカバー */
}

/* 社名テキスト */
header h1 {
    margin: 0;
    font-size: 36px; /* 社名の文字サイズを大きく */
    text-align: left;
    font-family: 'Yu Gothic', 'Noto Sans JP', sans-serif; /* 社名のフォントを游ゴシックに変更 */
}

header .small-text {
    font-size: 18px; /* 合同会社のフォントサイズも大きく */
}

/* 「庄内地域全般で施工対応」のスタイル */
.service-area {
    font-size: 12px; /* テキストサイズ */
    color: #001f3f;
    position: relative;
    padding-right: 100px; /* 右側に余白を追加 */
    padding-bottom: 2px; /* 下線を削除 */
}

/* 担当者直通のテキストと電話番号のスタイル */
.contact-info {
    font-size: 12px; /* 元のサイズに戻す */
    color: #001f3f;
    margin-top: 5px;
}

.contact-info .phone-number {
    font-size: 16px; /* 電話番号のフォントサイズ */
    font-weight: bold; /* 太字 */
}

/* 営業時間のスタイル */
.business-hours {
    font-size: 12px;
    color: #001f3f;
    margin-top: 5px;
    border-bottom: none;
    text-decoration: none;
}

/* ロゴのスタイル */
.logo {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 80px;
    height: auto;
}

/* 動画の親要素の余白とパディングをリセット */
#video {
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

#video video {
    display: block;
    width: 100%;
    height: auto;
}

/* テキストセクションのスタイル */
#text {
    padding: 20px;
    background-color: #f4f4f4;
    text-align: center;
    color: #001f3f;
}

.vertical-text {
    display: inline-block;
    writing-mode: vertical-rl;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    line-height: 1.5;
    transform: none;
    text-align: center;
    vertical-align: top;
    color: #001f3f;
}

/* 画像セクションのスタイル */
#images {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 20px 0;
    background-color: transparent;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#images .responsive-image {
    width: 25%;
    height: auto;
    border: 0;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

/* サービスセクションのスタイル */
#services {
    padding: 40px 20px;
    background-color: #fff;
    text-align: center;
    color: #001f3f;
}

#services h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #001f3f;
}

/* サービスグリッドのスタイル */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* サービスアイテムのスタイル */
.service-item {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.service-item a {
    display: block;
    color: white;
    text-decoration: none;
}

.service-item a:hover p {
    background-color: rgba(0, 0, 0, 0.7);
}

.service-item p {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    margin: 0;
}

/* 追加の動画セクションのスタイル */
#additional-video {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 0;
    overflow: hidden;
}

#additional-video video {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

/* 縦書きナビゲーションテキストセクションのスタイル */
#vertical-navigation {
    text-align: center;
    padding: 20px 0;
    background-color: #f4f4f4;
}

#vertical-navigation .vertical-text {
    display: inline-block;
    writing-mode: vertical-rl;
    font-size: 15px;
    line-height: 3.5;
    transform: none;
    color: #001f3f;
}

#vertical-navigation .vertical-text a {
    color: #001f3f;
    text-decoration: none;
}

#vertical-navigation .vertical-text a:hover {
    color: #555;
}

/* フッターのスタイル */
footer {
    text-align: center;
    padding: 10px 20px;
    background-color: transparent;
    color: #001f3f;
}

footer p {
    margin: 5px 0;
    font-size: 10px;
}

footer .small-text {
    font-size: 20px;
    margin-bottom: 30px;
}

footer .large-text {
    font-size: 23px;
}
