body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: #333;
    color: #fff;
}

header {
    background-color: rgba(255, 255, 255, 0.1); /* ヘッダーの背景を少し透明な白に */
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
}

.logo a {
    font-size: 1.5em;
    font-weight: bold;
    color: inherit;
    text-decoration: none;
}

.nav {
    /* ハンバーガーメニュー全体を右上に配置 */
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100; /* 他の要素より前面に表示 */
}

/* ここから下がハンバーガーメニューに関するCSS */

/* チェックボックスを非表示にする */
.drawer_hidden {
    display: none;
}

/* ハンバーガーアイコンの設置スペース */
.drawer_open {
    display: flex;
    height: 40px; /* サイズを調整 */
    width: 40px; /* サイズを調整 */
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* ハンバーガーメニューのアイコン */
.drawer_open span,
.drawer_open span:before,
.drawer_open span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background: #fff; /* アイコンの色を白に */
    transition: 0.5s;
    position: absolute;
}

/* 三本線の一番上の棒の位置調整 */
.drawer_open span:before {
    bottom: 8px;
}

/* 三本線の一番下の棒の位置調整 */
.drawer_open span:after {
    top: 8px;
}

/* アイコンがクリックされたら真ん中の線を透明にする */
#drawer_input:checked ~ .drawer_open span {
    background: rgba(255, 255, 255, 0);
}

/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
#drawer_input:checked ~ .drawer_open span::before {
    bottom: 0;
    transform: rotate(45deg);
}

#drawer_input:checked ~ .drawer_open span::after {
    top: 0;
    transform: rotate(-45deg);
}

/* メニューのデザイン */
.nav_content {
    position: fixed;
    top: 0;
    right: -300px; /* 初期状態では画面外に配置 */
    width: 300px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8); /* メニューの背景色 */
    z-index: 99; /* ハンバーガーアイコンより手前に表示 */
    transition: transform 0.3s ease-in-out; /* スライドインアニメーション */
    padding-top: 60px; /* ヘッダーの高さ分だけpadding */
}

#drawer_input:checked ~ .nav_content {
    transform: translateX(-300px); /* メニューを表示 */
}

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

.mokuji {
    color: #fff;
    padding: 20px;
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}

.nav_content li.nav_item a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.2s ease-in-out;
}

.nav_content li.nav_item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* デスクトップ版では非表示にする */
.nav {
    display: none;
}

/* 画面幅が768px以下の場合のスタイル */
@media (max-width: 768px) {
    .global-nav {
        display: block; /* ハンバーガーメニュー表示時はブロック要素にする */
    }

    /* デスクトップ版のナビゲーションを非表示 */
    .global-nav ul {
        display: none;
    }

    /* ハンバーガーメニューを表示 */
    .nav {
        display: block;
    }
}

.main {
    padding: 40px 20px;
}

.hero {
    background-color: rgba(255, 255, 255, 0.05); /* ヒーローセクションの背景を少し透明な白に */
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    color: #eee;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.content {
    max-width: 960px;
    margin: 40px auto;
    padding: 20px;
    background-color: #222;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    color: #fff;
}

.content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #fff;
}

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
}