﻿:root {
    --black: #333333;
    --black-rgb: 51, 51, 51;
    --white: #FAFAFA;
    --white-rgb: 250, 250, 250;
    --gray: #808080;
    --gray-rgb: 128, 128, 128;
    --lightgray: #DCDCDC;
    --lightgray-rgb: 220, 220, 220;
    --blue: #00469C;
    --blue-rgb: 0, 70, 156;
    --lightblue: #DEE4EB;
    --lightblue-rgb: 222, 228, 235;
    --red: #E00000;
    --red-rgb: 224, 0, 0;
    --marker: #C1E0FF;
    --marker-rgb: 193, 224, 255;
    --pdf: #FF0000;
    --pdf-rgb: 255, 0, 0;
    --twitter: #00ACEE;
    --twitter-rgb: 0, 172, 238;
    --instagram: #CF2E92;
    --instagram-rgb: 207, 46, 146;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', 'Noto Sans JP', '游ゴシック Medium', '游ゴシック体', 'Yu Gothic Medium', YuGothic, 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    color: var(--black);
    background-color: var(--white);
}

body.fixed {
    overflow: hidden;
}

a {
    color: var(--blue);
}

a:hover {
    text-decoration: none;
}

.fa-terminal, .fa-link, .fa-twitter, .fa-instagram, .fa-envelope, .fa-map-marker-alt, .fa-caret-right, .fa-file-pdf {
    margin-right: 5px;
}


/* ----------------------------------
ヘッダ
---------------------------------- */
#header {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
    /* overflow: hidden; */
}

/* #header:before{
  content: '';
  background: inherit;
  -webkit-filter: blur(1px);
  -moz-filter: blur(1px);
  -o-filter: blur(1px);
  -ms-filter: blur(1px);
  filter: blur(1px);
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  z-index: -1;
} */

.title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -25%);
    width: 300px;
    height: 150px;
    background: rgba(var(--white-rgb), 0.8);
    text-align: center;
    line-height: 150px;
    font-size: 2em;
    font-family: 'Noto Serif JP', serif;
}

#topbar {
    width: 85vw;
    height: 90px;
    background: var(--white);
    display: flex;
    position: absolute;
    top: 10px;
    border-radius: 20px;
}

#topbar > a {
    display: block;
    width: 31vw;
    text-align: center;
    transition: all 0.3s;
}

#topbar > a:hover {
    opacity: 0.5;
}

.logo {
    height: 90px;
    max-width: 90%;
}

.logo_en {
    width: 50vw;
    max-width: 683px;    height: auto;
    max-height: 225px;
    transform: translate(-50%, -30%);
}

#nav {
    width: 55vw;
}

#menu {
    display: flex;
}

#menu li {
    width: 14vw;
    height: 90px;
    position: relative;
    z-index: 1;
    margin: 0 auto 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    letter-spacing: 1px;
    transition: all 0.3s;
    overflow-y: hidden;
    /* border-left: var(--black) dashed 1px; */
}

#menu li:last-child {
    border-radius: 0 20px 20px 0;
}

#menu li:hover {
    color: var(--blue);
    letter-spacing: 4px;
}

#menu li a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#menu li span {
    font-size: 1.1em;
}

#spmenu, #spmenu_nav {
    display: none;
}

#spmenu_nav .fa-twitter {
    color: var(--twitter);
}

#spmenu_nav .fa-instagram {
    color: var(--instagram);
}

#spmenu_nav.opened {
    transform: translate(35vw);
}

#layer.opened {
    width: 100vw;
    height: 100vh;
    opacity: 1;
    position: fixed;
    z-index: 50;
}

#spmenu_button > span.clicked:nth-of-type(1) {
    transform: rotate(45deg) translateY(10px);
    position: absolute;
    top: 16px;
    right: -2px;
}

#spmenu_button > span.clicked:nth-of-type(2) {
    display: none;
}

#spmenu_button > span.clicked:nth-of-type(3) {
    transform: rotate(-45deg) translateY(-10px);
    position: absolute;
    top: 30px;
    right: -2px;
}

#spmenu_list li {
    height: 10vh;
    border-bottom: solid 1px rgba(var(--gray-rgb), 0.5);
    text-align: left;
    line-height: 10vh;
    margin: 0 2vw 0;
}

#spmenu_list a {
    height: 100%;
    text-decoration: none;
    display: block;
    font-size: 1em;
    color: var(--black);
    padding-left: 5vw;
}


/* ----------------------------------
メイン
---------------------------------- */
/* ローダー */
#loader {
    width: 100vw;
    height: 100vh;
    transition: all 1s;
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner,
.spinner:before,
.spinner:after {
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation: load7 1.8s infinite ease-in-out;
    animation: load7 1.8s infinite ease-in-out;
}
.spinner {
    color: var(--blue);
    font-size: 10px;
    margin: 80px auto;
    position: relative;
    text-indent: -9999em;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}
.spinner:before,
.spinner:after {
    content: '';
    position: absolute;
    top: 0;
}
.spinner:before {
    left: -3.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}
.spinner:after {
    left: 3.5em;
}
@-webkit-keyframes load7 {
    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }
    40% {
        box-shadow: 0 2.5em 0 0;
    }
}
@keyframes load7 {
    0%,
    80%,
    100% {
        box-shadow: 0 2.5em 0 -1.3em;
    }
    40% {
        box-shadow: 0 2.5em 0 0;
    }
}
.loaded {
    opacity: 0;
    visibility: hidden;
}

#main_wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
}

#article_wrapper {
    width: 80vw;
    margin: 0 auto 0;
    order: 2;
    display: flex;
}

#article_wrapper h4 {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: solid var(--black) 2px;
    font-size: 1.2em;
}

/* ----- 記事 ----- */
.article {
    width: calc((80vw - 275px) * 0.97);
    padding-right: 3%;
    margin-right: 3%;
    letter-spacing: 0.1em;
}

.article > h2 {
    font-size: 1.2em;
    margin-bottom: 1em;
    padding-bottom: 5px;
    border-bottom: solid var(--black) 2px;
}

.article > h2:not(:first-child) {
    margin-top: 2.8em;
}

.article > h2::before {
    font-family: "Font Awesome 5 Free";
    content: "\f121";
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    margin-right: 5px;
}

.article > p {
    font-size: 1.1em;
    line-height: 1.4em;
    margin: 1em;
}

.article > p > .marker {
    background: linear-gradient(transparent 70%, var(--marker) 70%);
    font-weight: bold;
    margin-right: 2px;
}

.article > table {
    margin: 1em;
    font-size: 1em;
    line-height: 1.4em;
}

.article > table td {
    border: solid var(--black) 1px;
    padding: 1%;
    vertical-align: middle;
}

.article > table > tbody > tr > td:first-child {
    width: 30%;
    text-align: center;
    color: var(--white);
    background-color: rgba(var(--blue-rgb), 0.8);
}

.gmap {
    display: block;
    margin-top: 5px;
}

.alarm {
    width: 95%;
    border: solid var(--red) 2px;
    border-radius: 15px;
    padding: 2%;
    margin: 0 auto 5%;
    line-height: 1.4em;
    color: var(--red);
    font-size: 0.9em;
}

.alarm > a {
    color: var(--red);
}

.ccpaper {
    display: block;
    width: 100%;
    max-width: 546px;
    margin: 0 auto 0;
    /* border: solid var(--black) 1px; */
}

.openpaper {
    display: block;
    margin: 2% auto 0;
    padding: 10px 15px;
    background-color: rgba(var(--blue-rgb), 0.2);
    border-radius: 15px;
    transition: all 0.7s;
}

.openpaper:hover {
    background-color: rgba(var(--white-rgb), 0.9);
}

.openpaper a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--black);
    transition: all 0.7s;
}

.openpaper .fa-file-pdf {
    color: var(--pdf);
}

.logout input {
    width: 100%;
    border: solid var(--gray) 1px;
    padding: 1em 0;
    border-radius: 3px;
    transition: all 0.2s;
    margin: 0 auto 0;
    display: block;
}

.sitemap a {
    display: block;
    width: 100%;
    padding: 1.5% 1.5% 1.5% 2%;
    margin: 4% 0 2%;
    line-height: 1.8em;
    color: var(--black);
    text-decoration: none;
    background-color: rgba(var(--gray-rgb), 0.1);
    transition: 0.3s;
}

.sitemap a:first-child {
    margin-top: 0;
}

.sitemap a:hover {
    background-color: rgba(var(--lightgray-rgb), 1);
}


/* ----- サイドメニュー ----- */
#sidebar {
    width: 275px;
}

#sidebar > div {
    margin-bottom: 25px;
}

.news {
    max-height: 250px;
    list-style-type: none;
    overflow-y: auto;
    line-height: 1.2em;
    font-size: 0.9em;
}

.news_item {
    padding: 2% 1%;
    border-top: dashed var(--black) 1px;
}

.news_item:last-child {
    border-bottom: dashed var(--black) 1px;
}

.news_item:nth-of-type(odd) {
    background-color: rgba(var(--blue-rgb), 0.3);
}

.logo_sums {
    width: 100%;
}



/* ----- パンくずリスト ----- */
.breadcrumb {
    width: 80vw;
    margin: 10px auto 50px;
    order: 1;
}

.crumb_list {
    display: flex;
    flex-direction: row;
}

.crumb_list > li:not(:last-child)::after {
    content: '>';
    display: inline-block;
    margin: 0 5px;
}


/* ----- 問い合わせフォーム ----- */
.form {
    width: 90%;
    margin: 0 auto 25px;
    border: solid var(--gray) 1px;
}

.form th:not([class='buttoncell']) {
    width: 35%;
    min-width: 190px;
    text-align: right;
}

.form th, .form td {
    font-weight: lighter;
    font-size: 1.0em;
    padding: 25px 20px;
    line-height: 100%;
    vertical-align: middle;
}

.form .label {
    display: block;
}

.form .label:not(:last-child) {
    margin-bottom: 15px;
}

.form input:not([type='radio']), .form textarea, .logform input:not([type='submit']) {
    width: 100%;
    padding: 2%;
    border: var(--gray) solid 1px;
    transition: all 0.1s;
}

.form input:not([type='radio']):focus, .form textarea:focus, .logform input[type='text']:focus, .logform input[type='password']:focus {
    box-shadow: 0 0 5px 3px rgba(var(--blue-rgb), 0.6);
}

.form input[type='radio'] + label{
    padding-left: 20px;
    position:relative;
    margin-right: 20px;
}

.form input[type='radio'] + label::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border: solid var(--gray) 1px;
    border-radius: 50%;
}

.form input[type='radio']:checked + label {
    color: var(--blue);
}

.form input[type='radio']:checked + label::after {
    content: "";
    display: block;
    position: absolute;
    top: 2px;
    left: 2px;
    width: 11px;
    height: 11px;
    background: var(--blue);
    border-radius: 50%;
}

.form textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: var(--white);
    background-color: var(--red);
    font-size: 0.7em;
    padding: 0.3em;
    margin-left: 5px;
}

.form input[type='button'], .logform input[type='submit'] {
    width: 150px;
    border: solid var(--gray) 1px;
    padding: 1em 0;
    border-radius: 3px;
    transition: all 0.2s;
    margin: 0 auto 0;
    display: block;
}

.form input[type='button']:hover, .logform input[type='submit']:hover, .logout input:hover {
    background-color: rgba(var(--lightgray-rgb), 0.9);
}

#success {
    display: none;
    font-size: 1.1em;
    line-height: 1.4em;
    margin: 1em;
    padding: 5%;
    border: solid var(--gray) 1px;
}

#error {
    display: none;
    margin-top: 15px;
    color: var(--red);
    font-size: 1em;
}

/* ----- ログインフォーム ----- */

.logform {
    width: 50%;
    min-width: 30vw;
    margin: 0 auto 25px;
    border: solid var(--gray) 1px;
}

.logform form {
    padding: 5%;
}

.logform input:not([type='submit']) {
    margin: 15px 0 25px 0;
}

/* ----- 上に戻るボタン ----- */
#pagetop {
    /* display: none; */
    position: fixed;
    bottom: 3%;
    right: 3%;
    z-index: 99;
    color: #FFFFFF;
    background-color: rgba(var(--blue-rgb), 0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.4em;
    text-align: center;
}
  
#pagetop:hover {
    background-color: rgba(var(--blue-rgb), 0.3);
}

#pagetop a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

#pagetop a::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f106';
    font-size: 25px;
    color: #FFFFFF;
    position: absolute;
    width: 50%;
    height: 50%;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: auto;
    text-align: center;
}


/* ----------------------------------
フッタ
---------------------------------- */
#footer {
    width: 100%;
    padding: 1% 0;
    background-color: var(--blue);
}

#infobox {
    margin: 0 auto 0;
    width: 85vw;
    text-align: center;
    color: var(--white);
}

#infobox > div {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1%;
}

#infobox > div .logo {
    filter: invert(97%);
} 

#infobox > div > a:hover {
    opacity: 0.5;
}

#contact {
    line-height: 1.6em;
    text-align: left;
    margin-left: 3%;
    color: var(--white);
}

#contact a {
    text-decoration: none;
    color: var(--white);
}

#contact a:hover {
    text-decoration: underline;
}


/* ----------------------------------
メディアクエリ
---------------------------------- */
/* ----- スマートフォン（縦）向け設定 ----- */
@media screen and (max-width: 480px) {
    #header {
        height: 40vh;
    }

    .title {
        height: initial;
        width: 65vw;
        font-size: 1.8em;
        line-height: 20vh;
        transform: translate(-50%, -30%);
    }

    .logo_en {
        transform: translate(-50%, -25%);
    }

    #topbar {
        background-color: var(--blue);
        width: 100%;
        height: 54px;
        position: fixed;
        top: 0;
        z-index: 999;
        border-radius: initial;
    }

    #topbar > a {
        margin: 0 auto 0;
        width: initial;
        height: 100%;
    }

    #topbar .logo {
        max-width: initial;
        height: initial;
        max-height: 100%;
        -webkit-filter: invert(95%);
        -moz-filter: invert(95%);
        -o-filter: invert(95%);
        filter: invert(95%);
    }

    #nav {
        display: none;
    }

    #spmenu {
        display: block;
        width: 35px;
        position: absolute;
        top: 3px;
        right: 3vw;
    }

    #spmenu_button {
        height: 8vh;
        max-height: 54px;
        line-height: 13px;
        cursor: pointer;
        position: relative;
    }

    #spmenu_button span {
        display: inline-block;
        width: 100%;
        border-bottom: solid var(--lightblue) 3px;
        transition: all 0.4s;
    }

    #spmenu_nav {
        display: block;
        position: fixed;
        top: 0;
        z-index: 100;
        transform: translate(100vw);
        width: 100vw;
        height: 100vh;
        padding-top: 54px;
        background-color: var(--white);
        transition: all 0.6s;
    }

    #spmenu_list {
        width: 65vw;
    }

    #layer {
        content: "";
        display: block;
        width: 0;
        height: 0;
        background-color:rgba(0,0,0,0.5);
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;  
    }

    #main_wrapper {
        margin: 0;
    }

    #article_wrapper {
        width: 100vw;
        flex-direction: column;
    }

    #article_wrapper h4 {
        font-size: 1.1em;
    }

    .article, #sidebar {
        width: 97vw;
        padding: 3%;
        margin: 0 auto 0;
    }

    .article > h2 {
        margin-bottom: 0;
        font-size: 1.2em;
    }

    .article > h2:not(:first-child) {
        margin-top: 1.5em;
    }

    .article > p {
        font-size: 1em;
        margin: 0.8em 0;
    }

    .article > div {
        width: 100%;
        margin-top: 2vh;
    }

    .article > table {
        margin-right: 0;
        margin-left: 0;
    }

    .article > table td, .article > table tr, .form td, .form tr, .buttoncell {
        display: block;
        min-width: 100%;
        font-size: 1em;
        padding: 1.5%;
    }
    
    .article > .alarm {
        margin-top: 0;
    }

    /* .ccpaper {
        height: calc(90vw * 273 / 383);
    } */

    .openpaper:hover {
        background-color: rgba(var(--blue-rgb), 0.2);
    }

    .sitemap a {
        text-decoration: underline;
    }

    .form {
        width: 100%;
    }

    .form th {
        padding: 2vh 5vw;
    }

     .form td {
         padding: 0 5vw;
     }

    .form th:not([class='buttoncell']) {
        text-align: left;
        width: 100%;
        min-width: initial;
        display: block;
    }

    .form th br {
        display: none;
    }

    .form .label {
        display: inline-block;
        width: 49%;
    }

    .form input[type='radio'] + label {
        margin: 0;
    }

    .gmap {
        max-height: 40vh;
        width: 95%;
        margin: 5px auto 0;
    }

    .news {
        max-height: 30vh;
    }

    .twitter_box {
        display: none;
    }

    .breadcrumb {
        width: 100vw;
        margin: 0;
    }

    .crumb_list {
        margin: 3%;
    }

    #pagetop {
        width: 13vw;
        height: 13vw;
    }

    #pagetop:hover {
        background-color: rgba(var(--blue-rgb), 0.6);
    }

    #footer small {
        font-size: 0.8em;
    }

    #infobox {
        width: 100%;
    }

    #infobox > div {
        flex-direction: column;
        margin-bottom: 1vh;
    }

}


/* ----- スマートフォン（横）向け設定 ----- */
@media screen and (min-width: 481px) and (max-width: 960px) and (orientation: landscape) {
    #header {
        height: 70vh;
    }

    .title {
        height: initial;
        width: 55vw;
        font-size: 1.8em;
        line-height: 30vh;
        transform: translate(-50%, -25%)
    }

    .logo_en {
        transform: translate(-50%, -30%);
    }

    #topbar {
        background-color: var(--blue);
        width: 100%;
        height: 54px;
        position: fixed;
        top: 0;
        z-index: 999;
        border-radius: initial;
    }

    #topbar > a {
        margin: 0 auto 0;
        width: initial;
        height: 100%;
    }

    #topbar .logo {
        max-width: initial;
        height: initial;
        max-height: 100%;
        -webkit-filter: invert(95%);
        -moz-filter: invert(95%);
        -o-filter: invert(95%);
        filter: invert(95%);
    }

    #nav {
        display: none;
    }

    #spmenu {
        display: block;
        width: 35px;
        position: absolute;
        top: 3px;
        right: 15px;
    }

    #spmenu_button {
        height: 54px;
        line-height: 13px;
        cursor: pointer;
        position: relative;
    }

    #spmenu_button span {
        display: inline-block;
        width: 100%;
        border-bottom: solid var(--lightblue) 3px;
        transition: all 0.4s;
    }

    #spmenu_nav {
        display: block;
        position: fixed;
        top: 0;
        z-index: 100;
        transform: translate(100vw);
        width: 100vw;
        height: 100vh;
        padding-top: 54px;
        background-color: var(--white);
        transition: all 0.6s;
    }

    #spmenu_nav.opened {
        transform: translate(60vw);
    }

    #spmenu_list {
        width: 40vw;
    }

    #layer {
        content: "";
        display: block;
        width: 0;
        height: 0;
        background-color:rgba(0,0,0,0.5);
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;  
    }

    #main_wrapper {
        width: 100%;
        margin-bottom: 5%;
    }

    #article_wrapper {
        width: 95%;
        flex-direction: column;
    }
    
    .article {
        width: 100%;
        margin: 0 0 4%;
        padding: 0;
    }

    .article > h2:not(:first-child) {
        margin-top: 1.8em;
    }

    .openpaper:hover {
        background-color: rgba(var(--blue-rgb), 0.2);
    }

    .sitemap a {
        text-decoration: underline;
    }

    #sidebar {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    #sidebar > div {
        margin: 0;
        width: 48%;
    }

    .news, .twitter_box > iframe {
        max-height: 400px;
    }

    .breadcrumb {
        width: 100%;
        padding: 0 2.5%;
    }

    .breadcrumb {
        margin-bottom: 30px;
    }

    #pagetop {
        width: 10vw;
        height: 10vw;
    }

    #pagetop:hover {
        background-color: rgba(var(--blue-rgb), 0.6);
    }

    #footer {
        width: 100%;
    }

    #infobox {
        width: 97vw;
    }
}


/* ----- タブレット（縦）向け設定 ----- */
@media screen and (min-width: 481px) and (max-width: 960px) and (orientation: portrait) {
    #header {
        width: 100%;
        height: 40vh;
    }

    #topbar {
        background-color: var(--blue);
        width: 100%;
        height: 54px;
        position: fixed;
        top: 0;
        z-index: 999;
        border-radius: initial;
    }

    #topbar > a {
        margin: 0 auto 0;
        width: initial;
        height: 100%;
    }

    #topbar .logo {
        max-width: initial;
        height: initial;
        max-height: 100%;
        -webkit-filter: invert(95%);
        -moz-filter: invert(95%);
        -o-filter: invert(95%);
        filter: invert(95%);
    }

    .title {
        transform: translate(-50%, -30%);
    }

    .sitemap a {
        text-decoration: underline;
    }

    #nav {
        display: none;
    }

    #spmenu {
        display: block;
        width: 35px;
        position: absolute;
        top: 3px;
        right: 20px;
    }

    #spmenu_button {
        height: 8vh;
        max-height: 54px;
        line-height: 13px;
        cursor: pointer;
        position: relative;
    }

    #spmenu_button span {
        display: inline-block;
        width: 100%;
        border-bottom: solid var(--lightblue) 3px;
        transition: all 0.4s;
    }

    #spmenu_nav {
        display: block;
        position: fixed;
        top: 0;
        z-index: 100;
        transform: translate(100vw);
        width: 100vw;
        height: 100vh;
        padding-top: 54px;
        background-color: var(--white);
        transition: all 0.6s;
    }

    #spmenu_nav.opened {
        transform: translate(60vw);
    }

    #spmenu_list {
        width: 40vw;
    }

    #layer {
        content: "";
        display: block;
        width: 0;
        height: 0;
        background-color: rgba(0,0,0,0.5);
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
    }

    #main_wrapper {
        width: 100%;
        margin-bottom: 5%;
    }

    #article_wrapper {
        width: 95%;
        flex-direction: column;
    }
    
    .article {
        width: 100%;
        margin: 0 0 4%;
        padding: 0;
    }

    .article > h2:not(:first-child) {
        margin-top: 1.8em;
    }

    .openpaper:hover {
        background-color: rgba(var(--blue-rgb), 0.2);
    }

    #sidebar {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    #sidebar > div {
        margin: 0;
        width: 32%;
    }

    .news, .twitter_box > iframe {
        max-height: 400px;
    }

    .breadcrumb {
        width: 100%;
        padding: 0 2.5%;
    }

    .breadcrumb {
        margin-bottom: 30px;
    }

    #pagetop:hover {
        background-color: rgba(var(--blue-rgb), 0.6);
    }

    #footer {
        width: 100%;
    }

    #infobox {
        width: 97vw;
    }
}


/* ----- タブレット（横）向け設定 ----- */
@media screen and (min-width: 961px) and (max-width: 1024px) and (orientation: landscape) {
    .article > table td, .article > table tr, .form td, .form tr, .buttoncell {
        display: block;
        min-width: 100%;
        font-size: 0.9em;
    }

    .openpaper:hover {
        background-color: rgba(var(--blue-rgb), 0.2);
    }

    .sitemap a {
        text-decoration: underline;
    }

    #pagetop:hover {
        background-color: rgba(var(--blue-rgb), 0.6);
    }
}
