@charset "UTF-8";
@import url("grid.css");

:root { 
    /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color: #666;
    --linkhover-color: #999;
    --border-color: #ccc;
    --white-color: #fff;
}

body { 
    font-family: "Noto Sans JP", sans-serif;
}

html {
    scroll-behavior: smooth;
}

.spacer {
    padding: 5rem 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    display: block;
    color: var(--link-color);
    text-decoration: none;
}

a:hover { 
    color: var(--linkhover-color);
}

a img:hover {
    opacity: 0.8;
}

.underline {
    border-bottom: 3px solid var(--base-color);
    padding-bottom: 0.5rem;
}

.center {
    text-align: center;
}

table {
    text-align: center;
    width: 100%;
}

.more-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    text-decoration: none;
}

/* ヘッダー */
.head {
    display: flex;
    flex-direction: row;
    padding-top: 1rem;
    justify-content: left;
}

.head h1 {
    padding: 1rem 0;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 3rem;
    text-align: center;
}

.en_title {
    font-size: 2.18rem;
    font-weight: 500;
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: right;
    list-style: none;
    margin-top: -7rem;
}

nav li {
    display: block;
    flex: 0 0 10px;
}

nav li a {
    text-decoration: none;
    text-align: right;
}

nav a {
    padding: 1rem 0 0 2rem;
}

nav a:hover {
    text-decoration: underline;
}

section {
    margin-top: -5rem;
}

@media screen and (min-width:768px) {
    /* PC時はMENUボタンを非表示 */
    #open, #close {
        display: none !important;
    }
    #navi {
        display: block !important;
    }
}

@media screen and (max-width:768px) {
    .head {
        flex-direction: column;
        text-align: left;
        margin-bottom: 20px;
    }
    .telbox {
        margin-left: 0;
        text-align: center;
    }
    .head #open, #close {
        position: absolute;
        top: 28px;
        right: 12px;
    }
    nav ul {
        flex-direction: column;
    }
    nav li {
        padding-top: 0;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0;
    }
    #open {
        display: block;
        background: url(../img/button.png) no-repeat;
        background-size: contain;
        width: 50px;
        height: 50px;
        border: none;
        position: absolute;
        top: 20px;
        right: 12px;
    }
    #close {
        display: block;
        background: url(../img/button2.png) no-repeat;
        background-size: contain;
        width: 50px;
        height: 50px;
        border: none;
        position: absolute;
        top: 20px;
        right: 12px;
    }
    #navi {
        display: none;
    }
}

/* メイン画像 */
.mainimg {
    text-align: center;
    margin: 1rem 0 0 0;
}

/* メインコンテンツ */
main {
    margin: 5rem 0;
}

/* キャッチタイトル */
h2.catch {
    text-align: center;
    color: var(--link-color);
    font-size: 3rem;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 3rem;
}

h3 {
    font-size: 2.7rem;
    font-weight: 500;
    margin-bottom: 3rem;
    line-height: 1.5;
}

h4 {
    font-size: 2.2rem;
    font-weight: 500;
    margin-top: 10rem;
}

h5 {
    font-size: 2.2rem;
    font-weight: 500;
}

figcaption {
    text-align: center;
    margin-top: 1rem;
}

figcaption.p-thumb {
    font-size: 1.5rem;
    margin-top: 1rem;
}

#lab_logo {
    margin: 0 auto;
    max-width: 100px;
}

li.content-list {
    list-style-type: disc;
    font-size: small;
}

/* フッター */
footer {
    background-color: var(--white-color);
    padding: 3rem 0;
}

footer h5 {
    border-bottom: 1px solid var(--border-color);
}

/* コピーライト */
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--white-color);
}

.copyright a {
    color: var(--base-color);
    text-decoration: none;
    display: inline-block;
}

.contact {
    text-align: center;
    margin-top: 5rem;
}

/* ページトップへ戻るボタン */
#pagetop {
    position: fixed;
    bottom: 15px;
    right: 15px;
}

#pagetop a {
    display: block;
    background: var(--link-color);
    color: var(--white-color);
    width: 50px;
    padding: 10px 5px;
    text-align: center;
}

#pagetop a:hover {
    background: var(--linkhover-color);
}

/* パンくずリスト */
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;    
}

.breadcrumb li {
    list-style-type: none;
}

.breadcrumb li a {
    display: inline-block;
    color: var(--link-color);
}

@media (max-width:768px) {
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
