/* 全体の背景を紫のグラデーションに設定 */
body {
    background: linear-gradient(to bottom right, #663399, #9b59b6);
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: #fff; /* 文字色を白に設定 */
    font-family: Arial, sans-serif; /* フォントファミリーを設定 */
}

/* ヘッダーの設定 */
header {
    width: 100%;
    margin: 0;
    padding: 20px 0;
    background: linear-gradient(to bottom right, #663399, #9b59b6);
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

header h1 {
    margin: 0;
    font-size: 24px;
    text-align: left;
    padding-left: 20px;
}

header #logo {
    margin: 10px 0;
}

header address {
    font-style: normal;
    margin: 10px 0;
    position: fixed;
    right: 20px;
    top: 20px;
    background: rgba(255, 255, 255, 0.2); /* 背景を半透明の白に設定 */
    padding: 10px;
    border-radius: 5px;
    color: #fff; /* 文字色を白に設定 */
}

header .menu-toggle {
    display: none;
}

/* フッターの設定 */
footer {
    width: 100%;
    margin: 0;
    padding: 10px 0;
    background: linear-gradient(to bottom right, #663399, #9b59b6);
    color: #fff;
    text-align: center;
    box-sizing: border-box;
}

/* メインの設定 */
main {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* wrapperの設定 */
.wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ナビゲーションの設定 */
#side_navi ul {
    list-style: none;
    padding: 0;
}

#side_navi ul li {
    margin: 5px 0;
}

#side_navi ul li a {
    display: block;
    color: #fff; /* デフォルトの文字色を白に設定 */
    text-decoration: none;
    padding: 10px;
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s; /* スムーズな色変化のためのトランジション */
}

#side_navi ul li a:hover {
    color: #e0c3fc; /* 同系色の明るい紫色に設定 */
    background-color: #5a2a80; /* 同系色の濃い紫色に設定 */
}

/* グローバルナビの設定 */
#g_navi ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

#g_navi ul li {
    flex: 1;
    text-align: center;
    margin: 5px 0;
}

#g_navi ul li a {
    display: block;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

#g_navi ul li a:hover {
    background-color: #5a2a80;
}

#g_navi {
    display: none;
}

#g_navi.open {
    display: flex;
}

#menu-toggle,
#close-menu {
    display: none;
}

/* メインビジュアルの設定 */
#mainvisual {
    width: 100%;
    height: 300px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
}

#mainvisual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ２カラムレイアウトの設定 */
.content-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

#main_contents {
    flex: 2; /* メインコンテンツの幅を設定 */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.2); /* 背景を半透明の白に設定 */
    margin-right: 10px; /* カラム間のマージンを設定 */
}

#side_contents {
    flex: 1; /* サイドコンテンツの幅を設定 */
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.2); /* 背景を半透明の白に設定 */
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 20px;
    }

    header address {
        position: static;
        text-align: center;
    }

    header .menu-toggle {
        display: inline-block;
        background: none;
        border: none;
        font-size: 24px;
        color: #fff;
    }

    #g_navi {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #663399;
    }

    #g_navi ul {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #g_navi ul li {
        text-align: left;
        padding: 10px;
    }

    #g_navi.open {
        display: flex;
    }

    #mainvisual {
        height: auto;
    }

    .content-container {
        flex-direction: column;
    }

    #main_contents, #side_contents {
        margin-right: 0;
    }

    #menu-toggle {
        display: inline-block;
    }

    #close-menu {
        display: block;
    }
}

/* PCビューでのナビゲーションメニューを表示 */
@media screen and (min-width: 769px) {
    #g_navi {
        display: block; /* デスクトップビューでの表示 */
    }

    #g_navi ul {
        display: flex;
    }

    #menu-toggle, #close-menu {
        display: none;
    }
}
