@charset "UTF-8";

/* =======  基本設定  ======= */
body {
    background-color: #edf1f4;
    margin: auto;
}

/* =======  コンテナーの設定  ======= */
.container {
    display: grid;
    margin: auto;
    min-height: 100vh;
    width: 75%;
    /* max-width: 800px; */
    grid-template-columns: 100%;
    grid-template-rows: auto auto auto auto;
    gap: 0px;
    grid-template-areas:
        "header"
        "main"
        "card-container"
        "footer";
}

.header {
    grid-area: header;
}

.main {
    grid-area: main;
    width: 100%;
}

.card-container {
    grid-area: card-container;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0px;
    align-items: center;
}

.footer {
    grid-area: footer;
}


/* =======  更新履歴のデザイン  ======= */
p.infobox {
    padding: 10px;
    height: 6.3em;
    overflow: auto;
}

.infobox span {
    color: #064d67;
    font-weight: bold;
    margin-right: 10px;
}

/* =======  フォント設定  ======= */
html {
    font-size: 62.5%;
}

* {
    font-family: "Arial", "Meiryo", sans-serif;
    color: #2d2d2d;
    font-size: medium;
    line-height: 180%;
}

h1 {
    font-size: 3rem;
    text-align: center;
    padding: 20px 0;
}

h2 {
    font-size: 2.5rem;
    border-bottom: 1px solid;
    padding: 15px 0 0 5px;
    margin: 15px -3px;
}

h3 {
    font-size: 1.8rem;
    padding: 10px 0 0 5px;
    margin: 10px -3px;
}

/* =======  リンク設定  ======= */
a:link {
    color: #446382;
    padding: 5px;
}

a:visited {
    color: #344b93;
}

a:hover {
    color: #ffffff;
    background-color: #446382;
}

/* =======  レスポンシブデザイン ======= */
@media screen and (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        /* 画面幅が狭い時に1カラムにする */
        width: 75%;
        margin: 0 auto;
        grid-template-areas:
            "header"
            "main"
            "card-container"
            "footer";
    }

    .card-container {
        grid-template-columns: auto;
        width: 100%;
        margin: auto;
    }

    * {
        font-size: 1.4rem;
    }

    h1 {
        font-size: 2.5rem;
        padding: 15px 0;
    }

    h2 {
        font-size: 2rem;
    }
}

/* =======  その他のスタイル  ======= */
ul {
    padding-left: 10px;
    list-style-type: none;
}

dt {
    padding: 0;
    margin: 0 5px 0 15px;
    width: 20%;
    float: left;
}

dd::before {
    content: "：";
    color: #898989;
}

@media screen and (max-width: 768px) {
    dt {
        margin: 0 5px;
        width: 100%;
        background: #fff;
    }

    dd {
        margin: 5px 15px;
        padding: 5px;
        border-left: 2px solid #7fb7da;
    }

    dd::before {
        content: none;
    }
}

/* =======  セクションデザイン  ======= */
section {
    margin: 20px 10px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    section {
        margin: 20px 0px;
        padding: 20px;
    }
}

/* =======  フッターデザイン  ======= */
.footer {
    margin-bottom: 50px;
}


/* =======  3本線ボタンデザイン  ======= */

#menuButton {
    position: fixed;
    /* 画面上で固定 */
    top: 50px;
    left: 50px;
    width: 48px;
    height: 36px;
    background: #edf1f4;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


.sidebar {
    position: fixed;
    top: -20px;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: #ebebeb;
    color: white;
    padding: 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 1000;
}

/* 左右矢印 */
.arrow-left {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 10px;
    border-left: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
}

.arrow-right {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin: 0 10px;
    border-left: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(225deg);
}

#closeButton {
    background: none;
    border: none;
    color: #333;
    font-size: 50px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    z-index: 999;
    display: none;
}

.menu-visible {
    transform: translateX(0);
}

.hidden {
    display: none;
}


@media screen and (max-width: 768px) {
    #menuButton {
        top: 20px;
        left: 20px;
    }

    .hamburger {
        width: 32px;
        height: 24px;
    }

    #closeButton {
        top: 4px;
    }

    .sidebar {
        width: 40%;
        padding: 20px 10px;
    }
}

/* カレンダーまわり */
.calendar-container {
    width: 300px;
    margin: 20px auto;
    text-align: center;
}

table.calendar {
    border-collapse: collapse;
    width: 100%;
}

table.calendar th,
table.calendar td {
    width: 14%;
    height: 40px;
    text-align: center;
}

.has-article {
    background-color: #446382;
}

.has-article a {
    color: #ffffff;
    text-decoration: none;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}