@charset "UTF-8";

h1 {
    background-color:green;
    color:whitesmoke;
    font-size:140%;
    padding: 0.5rem 2rem;
    border-left: 10px solid #000;
}
h2 {
    background-color:limegreen;
    font-size: 120%;
    padding: 0.5rem 1rem;
}

h3 {
    position: relative;
    z-index: -10;
    padding: 1rem 0.5rem;
}

h3:after {
    position: absolute;
    z-index: -10;
    left: 0;
    width: 100%;
    height: 4px;
    content: '';
    background-image: -webkit-gradient(linear, right top, left top, from(#30cfd0), to(#330867));
    background-image: -webkit-linear-gradient(right, #30cfd0 0%, #330867 100%);
    background-image: linear-gradient(to left, #30cfd0 0%, #330867 100%);
    bottom: 0;
}

h3:before {
    top: 0;
}

main {
    max-width:960px;
    margin-left:auto;
    margin-right:auto
}

td {
    border-style:solid;
    border-width:thin;
}

/* トップメニュー */
#logo img {
    max-width:250px;
    margin-right:10px;
}

nav {
    text-align: right;
}
nav ul {
    margin:0;
    padding:10px 10px;
    right: 0px;
    top: 0px;
}
nav li {
    list-style:none;
    display:inline-block;
    padding: 0 10px;
}
nav li:not(:last-child){
    border-right:2px solid #ddd;
}
nav a{
    text-decoration:none;
    color:#333;
}
nav a.current{
    color:limegreen;
    border-bottom:2px solid limegreen;
}
nav a:hover {
    color:#f7cb4d;
    border-bottom: 2px solid #f7cb4d;
}

/* おしらせ段組み */
div.main_article {
    float: left;
    width: 75%;
}
div.archive_menu {
    float: right;
    width: 20%;
}


/* フッター */
footer {
    clear: both;
    text-align: center;
}
footer a {
    color: white;
    text-decoration: none;
}
footer div.call_number {
    background:#002200;
}
footer table {
    border-style:none;
    margin-left:auto;
    margin-right:auto;
}
footer div.address_bar {
    background:#4e454a;
    color:whitesmoke;
    padding:10px;
}

#container {
    width: 600px;
    height: 30px;
    display: flex;
    flex-direction: row;
    margin-left:auto;
    margin-right:auto;
    padding:1em 1em;
}
#item1 {
    width: 220px;
    height: 30px;
    background:white;
    border-radius:10px;
    padding:0.1em 0.1em;
}
#item2 {
    width: 170px;
    height: 30px;
    padding:0em 0.1em;
    font-size:120%;
    color:white;
    text-align:center;
}
#item3 {
    width: 210px;
    height: 30px;
    padding:0.1em 0em;
    color:white;
}


/* iframe */
iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.responsive-iframe {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.responsive-iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* タブレット向け設定 */
@media screen and (max-width: 1024px) {
    #logo img {
        max-width:100%;
        margin-right:0px;
    }

    nav {
        width: 100%;
        height: 70px;
        position: relative;
        background: #f6f6f6;
    }

    .drawer {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
        height: 70px;
        padding: 0 1em;
    }

    .menu ul li a {
        display:block;
        font-weight: bold;
        padding: 1em;
        border-bottom: 1px dotted #ccc;
        color: #333;
        text-decoration: none;
    }

    .menu ul li a:hover {
        background-color: rgba(0,0,0,0.5);
        color: orange;
    }

    .menu {
        text-align: center;
        background-color:rgba(255,255,255,0.9);
        transition: 0.5s ease; /* 滑らかに表示 */
        -webkit-transform: translateX(-105%);
        transform: translateX(-105%); /* 左に隠しておく */
    }

    .menu.open {
        -webkit-transform: translateX(0%);
        transform: translateX(0%); /* 中身を表示（右へスライド） */
    }

    .Toggle {
        display: block;
        position: relative;
        width: 42px;
        height: 42px;
        cursor: pointer;
        z-index: 4;
        right:15px;
    }

    .Toggle span {
        display: block;
        position: absolute;
        width: 50px;
        border-bottom: solid 4px #333;
        -webkit-transition: .35s ease-in-out;
        -moz-transition: .35s ease-in-out;
        transition: .35s ease-in-out;
    }

    .Toggle span:nth-child(1) {
        top:5px;
    }

    .Toggle span:nth-child(2) {
        top: 18px;
    }

    .Toggle span:nth-child(3) {
        top: 32px;
    }

    .Toggle.active span:nth-child(1) {
        top:18px;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .Toggle.active span:nth-child(2),
    .Toggle.active span:nth-child(3) {
        top:18px;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    /* おしらせ段組み */
    div.main_article {
        float: none;
        width: 100%;
    }
    div.archive_menu {
        float: none;
        width: 100%;
    }

    #container {
        width: 240px;
        height: 90px;
        display: flex;
        flex-direction: column;
        vertical-align:bottom ;
        margin-left:auto;
        margin-right:auto;
        padding:1em 1em;
        font-size:120%;
    }
    #item1 {
        width: 240px;
        height: 30px;
        background:white;
        border-radius:10px;
        padding:0em 0.1em;
    }
    #item2 {
        width: 240px;
        height: 30px;
        font-size:120%;
        color:white;
    }
    #item3 {
        width: 240px;
        height: 30px;
        color:white;
        font-size:90%;
    }

}

/* スマートフォン向け設定 */
@media screen and (max-width: 540px) {
    img {
        width: 100%;
    }

    #logo img {
        max-width:100%;
        margin-right:0px;

    }

    nav {
        width: 100%;
        height: 70px;
        position: relative;
        background: #f6f6f6;
    }

    .drawer {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
        height: 70px;
        padding: 0 1em;
        z-index:10;
    }

    .menu ul li a {
        display:block;
        font-weight: bold;
        padding: 1em;
        border-bottom: 1px dotted #ccc;
        color: #333;
        text-decoration: none;
    }

    .menu ul li a:hover {
        background-color: rgba(0,0,0,0.5);
        color: orange;
    }

    .menu {
        text-align: center;
        background-color:rgba(255,255,255,0.9);
        transition: 0.5s ease; /* 滑らかに表示 */
        -webkit-transform: translateX(-105%);
        transform: translateX(-105%); /* 左に隠しておく */
    }

    .menu.open {
        -webkit-transform: translateX(0%);
        transform: translateX(0%); /* 中身を表示（右へスライド） */
        z-index:10;
    }

    .Toggle {
        display: block;
        position: relative;
        width: 42px;
        height: 42px;
        cursor: pointer;
        z-index: 10;
        right:15px;
    }

    .Toggle span {
        display: block;
        position: absolute;
        width: 50px;
        border-bottom: solid 4px #333;
        -webkit-transition: .35s ease-in-out;
        -moz-transition: .35s ease-in-out;
        transition: .35s ease-in-out;
    }

    .Toggle span:nth-child(1) {
        top:5px;
    }

    .Toggle span:nth-child(2) {
        top: 18px;
    }

    .Toggle span:nth-child(3) {
        top: 32px;
    }

    .Toggle.active span:nth-child(1) {
        top:18px;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }

    .Toggle.active span:nth-child(2),
    .Toggle.active span:nth-child(3) {
        top:18px;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        transform: rotate(45deg);
    }

    /* おしらせ段組み */
    div.main_article {
        float: none;
        width: 100%;
    }
    div.archive_menu {
        float: none;
        width: 100%;
    }

    /* フッターの連絡先表示を立て並びに変える */

    .table-transpose {
        writing-mode: vertical-lr;
        border-collapse: collapse;
    }

    .table-transpose th,
    .table-transpose td {
        writing-mode: horizontal-tb;
        padding: 1px;
        text-align: center;
    }

}

