@charset "utf-8";

:root {
    --main-color: #98537f;
    --gradation-color: #98537f;
    --gradation-deg: 0deg;
    --second-color: #0f304a;
    --accent-color: #ccc32c;
    --text-color: #5a4f4a;
}


/* --------------------------------
   Reset
-------------------------------- */
* {
    margin: 0;
    padding: 0;
}

/* --------------------------------
   html, body, #wrapper, #main 
-------------------------------- */

html,
body {
    font-family: 'Roboto', "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro",
        "ヒラギノ角ゴ Pro W3", 'Noto Sans JP', 游ゴシック体, "Yu Gothic",
        YuGothic, Meiryo, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    color: var(--text-color);
    background: #fff;
    text-align: justify;
    text-justify: inter-ideograph;
    height: 100%;
}

/* main以外の部分にflex（縦並び）を適用してフッターを最下部に固定 */
body {
    display: flex;
    flex-direction: column;
}

#wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#main {
    flex: 1;
}

/* --------------------------------
   General
-------------------------------- */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    outline: none;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.century {
    font-family: Century;
}

.br-sp {
    display: none;
}

.post-password-form {
    margin-top: 30px;
}


/* --------------------------------
   Layout（PC）
-------------------------------- */
#main {
    max-width: 1050px;
    width: 100%;
    margin: 40px auto 0;
}

#main article {
    padding 15px 0;
}

/* --------------------------------
   Visual Area
-------------------------------- */

.pr {
    position: relative;
}

.visualarea {
    width: 100%;
    margin: 0 auto;
}

.flexslider {
    margin-bottom: 0 !important;
}

.metaslider .flex-control-nav {
    bottom: -77px !important;
}

.ts {
    display: none;
}

/* --------------------------------
   Link / List 
-------------------------------- */
#main a {
    text-decoration: none;
    color: #4169e1;
}

#main a:hover {
    color: #00a3db;
    text-decoration: underline;
}

#main ul,
ol {
    padding-left: 1.5em;
    margin-bottom: 15px;
}

ul.m7 li {
    margin-bottom: 7px;
}

ol li {
    margin-bottom: 10px;
}

ul.icon {
    padding-left: 0 !important;
}

ul.icon li {
    list-style: none;
}

ul.icon li::before {
    content: '\f138';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 5px;
}

ul.list {
    padding-left: 0 !important;
    margin-bottom: 30px;
}

ul.list li {
    list-style: none;
    border-bottom: 1px dotted #999;
    padding: 10px 0;
}

ul.list li:first-child {
    border-top: 1px dotted #999;
}

/* --------------------------------
   Form
-------------------------------- */
input,
textarea {
    box-sizing: border-box;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    font-family: "メイリオ";
    font-size: 18px;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #bbb;
}

input[type="text"] {
    width: 265px;
}

input[type="email"] {
    width: 500px;
}

input[type="password"] {
    width: 150px;
}

textarea {
    width: 500px;
    height: 100px;
}

input[type="submit"] {
    padding: 5px;
    border-radius: 3px;
    margin-top: 15px;
}


/* --------------------------------
   Header
-------------------------------- */
#language {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
}

#language img {
    width: 100%;
}

/* --------------------------------
   Navigation（PC）
-------------------------------- */
#humberger {
    display: none;
}

#menuarea {
    width: 100%;
    height: 50px;
    background: var(--second-color);
}

#drawernav {
    width: 1200px;
    height: 50px;
    background: linear-gradient(var(--gradation-deg), var(--main-color), var(--gradation-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

#drawernav ul {
    width: 1050px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding-left: 0;
}

#drawernav ul li {
    list-style: none;
}

#drawernav ul li a {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding-bottom: 15px;
    text-decoration: none;
}

#drawernav ul li a:hover,
#drawernav ul li.current-menu-item > a {
    color: var(--accent-color);
}

/* Submenu – PC */
.menu-item-has-children {
    position: relative;
    cursor: pointer;
}

.sub-menu {
    display: none !important;
    position: absolute;
    z-index: 10;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    width: 180px !important;
    --base: var(--main-color);
    background: color-mix(in srgb, var(--base) 50%, white);
    padding: 0;
}

.menu-item-has-children:hover .sub-menu {
    display: block !important;
}

.sub-menu > .menu-item:not(:last-child) {
    border-bottom: 1px dotted #fff;
}

.sub-menu > .menu-item a {
    display: block;
    padding: 0.9em 0.5em 0.5em;
    color: #fff;
    box-sizing: border-box;
    text-align: center;
}

.sub-menu > .menu-item a:hover {
    color: var(--accent-color);
}

/* --------------------------------
   Headings
-------------------------------- */
h2 {
    font-size: 32px;
    color: var(--second-color);
    margin: 30px 0;
    padding-left: .7em;
    border-left: 7px solid var(--main-color);
}

h3 {
    font-size: 26px;
    color: var(--main-color);
    margin: 30px 0 15px;
    padding: .25em 0;
    position: relative;
}

h3::after {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(to right, rgb(from var(--main-color) r g b / 1), rgb(from var(--main-color) r g b / 0));
}

h4 {
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    margin: 5px 0;
}

.mid1 {
    font-size: 1.1em;
    font-weight: bold;
}

.mid2 {
    font-size: 1.4em;
    font-weight: bold;
}


.lar {
    font-size: 1.5em;
    font-weight: bold;
}

.huge {
    font-size: 2em;
    font-weight: bold;
}

/* --------------------------------
   Main Article
-------------------------------- */
#main article p {
    margin-bottom: 15px;
}

#main article figure {
    margin-bottom: 15px;
}

#main article figcaption {
    text-align: center;
}

#main article table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--main-color);
    margin-bottom: 15px;
    box-sizing: border-box;
}

#main article table tr:nth-child(odd) {
    --base: #ebeff3;
    background: color-mix(in srgb, var(--base) 10%, white);
}

#main article th,
#main article td {
    border: 1px solid var(--main-color);
    padding: .5em;
}

#main article #information {
    width: 100%;
    height: 500px;
    overflow-y: scroll;
}

#main article #information li {
    margin-right: 1em;
}

#main article #map {
    width: 100%;
    margin-bottom: 15px;
}

#main article #map iframe {
    width: 100%;
    height: 350px;
}

/* --------------------------------
   Blog
-------------------------------- */
.blog-item {
    display: flex;
    width: 100%;
}

.blog-left {
    width: 150px;
    margin-right: 30px;
}

.blog-left img {
    max-width: 150px !important;
}

/* --------------------------------
   Banner
-------------------------------- */
.banner {
    display: flex;
    flex-wrap: wrap;
    margin-top: 80px;
    gap: 15px;
}

/* --------------------------------
   Footer
-------------------------------- */
footer {
    border-top: 1px solid var(--second-color);
    margin-top: 80px;
    background: #fff;
    color: var(--text-color);
}

#footerarea {
    display: flex;
    align-items: center;
    padding: 30px 0;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

#footerleft {
    width: 58%;
    margin-right: 2%;
    text-align: left;
}

#footerright {
    width: 40%;
}

#footerright iframe {
    width: 100%;
    height: 260px;
}

footer address.en {
    margin-top: 20px;
}

address {
    font-style: normal;
}

#copy {
    font-size: 12px;
    padding: 20px 0;
    text-align: center;
    color: #fff;
    background: var(--second-color);
}

#gototop {
    position: fixed;
    bottom: 3px;
    right: 10px;
}

#gototop img {
    width: 50px;
    height: 50px;
}

/* --------------------------------
   Tablet（～1200px）
-------------------------------- */
@media screen and (max-width: 1200px) {

    /* Layout調整：Tablet  */
    #main {
        width: 100%;
        max-width: 100%;
        margin-top: 0;
    }

    #main article {
        padding: 20px;
        box-sizing: border-box;
    }

    /* ヘッダー：Tablet  */


    #language {
        width: 80px;
        right: 70px;
        display: flex;
    }

    /* メイン画像調整：Tablet */
    .visualarea {
        max-width: 100%;
        width: 100%;
    }

    .visualarea img {
        object-fit: cover;
        height: 500px !important;
    }

    .metaslider .flex-control-nav {
        bottom: -27px !important;
    }

    .pc {
        display: none;
    }

    .ts {
        display: block;
    }

    #main article table th,
    #main article table td {
        padding: 0.3em;
    }

    #main article #information {
        height: 350px;
    }

    /* ブログ調整：Tablet */
    .blog-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
        padding: 10px 0;
        border-bottom: 1px solid #ddd;
    }

    .blog-left {
        width: 150px;
        margin-right: 15px;
    }

    .blog-left img {
        width: 150px !important;
    }

    /* Submenu調整：Tablet */
    .sub-menu {
        display: block;
        position: static;
        transform: none;
        width: 100%;
        background: #fff;
    }

    .sub-menu > .menu-item:not(:last-child) {
        border-bottom: none;
    }

    .sub-menu > .menu-item a {
        display: inline;
    }

    .sub-menu > .menu-item a:hover {
        color: var(--accent-color);
    }

    /* 見出し調整：Tablet */
    h2 {
        font-size: 28px;
        margin-top: 20px;
    }

    h3 {
        font-size: 22px;
    }

    /* banner調整：Tablet */
    .banner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* フッター調整：Tablet */
    #footerarea {
        max-width: 1200px;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 20px 15px;
        box-sizing: border-box;
    }

    #footerleft {
        text-align: left;
        width: 100%;
        margin: 0 0 20px;
    }

    #footerright {
        width: 100%;
    }

    #copy {
        padding: 20px 0;
    }

    /* br-sp 表示 */
    .br-sp {
        display: inline;
    }

    /* メニュー調整：tablet */
    #menuarea {
        height: 0;
    }

    /* ドロワー基準位置 */
    #wrapper {
        position: relative;
        left: 0;
        transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
    }

    #drawernav {
        position: fixed;
        z-index: 1;
        top: 0;
        right: -245px;
        width: 240px;
        height: 100%;
        background: #ffffff;
        box-shadow: -3px 0px 3px -1px rgba(0, 0, 0, 0.6);
        color: var(--text-color);
        padding-top: 40px;
        transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
        border-left: 1px solid var(--main-color);
        overflow-y: auto;

    }

    #drawernav ul {
        display: none;
    }

    #humberger {
        display: block !important;
        width: 25px;
        padding: 20px 5px;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    #icon-bar1,
    #icon-bar2,
    #icon-bar3 {
        height: 2px;
        background: var(--text-color);
        display: block;
        margin-bottom: 6px;
        transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
    }

    .fixed-content {
        right: inherit;
        width: 100%;
        transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
    }

    #overlay {
        z-index: -1;
        opacity: 0;
        background: #ffffff;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        position: fixed;
        transition: all 400ms cubic-bezier(1.000, 0.000, 0.000, 1.000);
    }

    body.drawer-opened #wrapper {
        left: -240px;
    }

    body.drawer-opened .fixed-content {
        left: -240px;
    }

    body.drawer-opened #drawernav {
        right: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 55px;
    }

    /* ドロワーメニュー全体で縦方向の間隔を均等にする */
    body.drawer-opened #drawernav ul {
        list-style: none;
        padding-left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    body.drawer-opened #drawernav ul li {
        width: 100%;
        height: auto;
        text-align: center;
    }

    body.drawer-opened #drawernav ul li:first-child {
        margin-top: 15px;
    }

    /* 子メニューも均等に並べる */
    body.drawer-opened #drawernav ul li ul {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }

    body.drawer-opened #drawernav ul li ul li {
        width: 100%;
        height: auto;
        text-align: center;
    }

    /* サブメニュー行 */
    body.drawer-opened #drawernav ul li ul li a {
        font-size: 12px;
    }

    body.drawer-opened #drawernav ul li a {
        color: var(--text-color);
    }

    body.drawer-opened #drawernav ul li a:hover,
    body.drawer-opened #drawernav ul li.current-menu-item > a {
        color: var(--accent-color);
    }

    body.drawer-opened #humberger {
        position: fixed;
        right: 10px;
        width: 25px;
        padding: 20px 10px;
        cursor: pointer;
        margin-right: 0;
        z-index: 2;
    }

    body.drawer-opened #humberger #icon-bar1,
    body.drawer-opened #humberger #icon-bar2,
    body.drawer-opened #humberger #icon-bar3 {
        background: var(--text-color);
    }

    body.drawer-opened #humberger #icon-bar1 {
        transform: translate(0, 8px) rotate(45deg);
    }

    body.drawer-opened #humberger #icon-bar2 {
        opacity: 0;
    }

    body.drawer-opened #humberger #icon-bar3 {
        transform: translate(0, -8px) rotate(-45deg);
    }

    body.drawer-opened #overlay {
        z-index: 0;
        opacity: 0.3;
        left: -240px;
    }
}

/* --------------------------------
   Smartphone（～768px）
-------------------------------- */
@media screen and (max-width: 768px) {

    /* 全体フォント調整調整：Smartphone */
    html,
    body {
        font-size: 15px;
        line-height: 1.6;
    }

    /* 余白調整：Smartphone */

    #main article {
        padding: 15px;
    }

    /* フォーム調整：Smartphone */
    input[type="text"],
    input[type="email"] {
        width: 100%;
    }

    input[type="password"] {
        width: 200px;
    }

    textarea {
        width: 100%;
        height: 150px;
    }

    /* ヘッダー：Smartphone */

    #language {
        width: 60px;
        top: 22px;
        right: 65px;
        display: flex;
        align-items: center;
    }

    #language img {
        width: 100%;
    }

    #humberger {
        display: block !important;
        width: 25px;
        padding: 10px 5px;
        cursor: pointer;
    }

    /* メイン画像調整：Tablet */
    .visualarea img {
        object-fit: cover;
        height: 300px !important;
    }

    /* ブログ調整：Smartphone */
    .blog-item {
        flex-direction: column;
        padding: 15px 0;
    }

    .blog-left {
        width: 150px;
        margin: 0 auto;
        text-align: center;
    }

    .blog-left img {
        max-width: 150px !important;
        height: auto;
    }

    /* アクセスの地図：Smartphone */
    #main article #map iframe {
        height: 250px;
        width: 100%;
    }

    /* info（お知らせ）高さ調整：Smartphone */
    #main article #information {
        height: 300px;
    }

    /* 見出し調整：Smartphone */
    h2 {
        font-size: 24px;
        border-left-width: 5px;
        margin-top: 20px;
    }

    h3 {
        font-size: 20px;
        margin-top: 20px;
    }

    h4 {
        font-size: 16px;
    }

    /* スマホ専用改行 */
    .br-sp {
        display: inline;
    }

    /* バナー */
    .banner {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* 各バナーを2列にする */
    .banner a {
        width: calc(50% - 4px);
        /* gapの半分を差し引き、安全に2列化 */
        display: block;
    }

    /* 画像は枠にフィット */
    .banner a img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* フッター */
    #footerarea {
        padding: 15px 15px 7px;
        box-sizing: border-box;
    }

    #footerleft {
        width: 100%;
        text-align: left;
        margin-bottom: 15px;
    }

    footer address.en {
        margin-top: 15px;
    }

    #footerright {
        width: 100%;
    }

    #copy {
        font-size: 11px;
        padding: 15px 0;
    }
}
