/* =========================================================
   コーポレートサイト（www.infratec.co.jp）と同じヘッダー・フッター
   寸法・色はコーポレートサイトのテーマ（styles.css・bootstrap）に合わせる。
   図面ダウンロードの CSS とぶつからないよう、クラス名は corp- で始める
   ========================================================= */

.corp-header,
.corp-pagetitle,
.corp-footer {
    font-family: Helvetica, 'YuGothic', 'Yu Gothic', '游ゴシック', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;
    font-weight: 500;
    color: #333;
}

.corp-header ul,
.corp-footer ul,
.corp-footer p { margin: 0; padding: 0; list-style: none; }

.corp-container {
    margin: 0 auto;
    padding: 0 15px;
}
@media (min-width: 768px) { .corp-container { width: 750px; } }
@media (min-width: 992px) { .corp-container { width: 970px; } }

.corp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---------- ヘッダー ---------- */

.corp-header { background: #fff; }

.corp-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.corp-header__brand { display: block; flex: none; }
.corp-header__brand img { display: block; width: 280px; max-width: 60vw; height: auto; }
.corp-header__brand:hover img { opacity: .7; }

.corp-header__search { display: none; }
.corp-header__search input {
    width: 196px;
    height: 30px;
    padding: 6px 12px;
    font: inherit;
    font-size: 14px;
    color: #555;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
.corp-header__search input:focus { border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); }

/* スマホのメニューボタン（bootstrap の navbar-toggle と同じ） */
.corp-header__toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px -15px 10px 0;
    padding: 15px;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.corp-header__toggle:hover,
.corp-header__toggle[aria-expanded="true"] { background: #ddd; }
.corp-header__bar { display: block; width: 22px; height: 2px; background: #888; border-radius: 1px; }

/* グローバルメニュー（パソコン） */
.corp-gnav { display: none; }

/* スマホのメニュー（2列） */
.corp-spnav {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px !important;
    background: #f2f2f2;
}
.corp-spnav[hidden] { display: none; }
.corp-spnav li {
    width: 50%;
    border-top: 1px solid #aaa;
    box-shadow: 0 1px 0 #fff;
}
.corp-spnav a {
    position: relative;
    display: block;
    padding: 12px 16px 12px 10px;
    color: #222;
    font-weight: bold;
    line-height: 1.5;
    text-decoration: none;
}
.corp-spnav a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 7px;
    height: 7px;
    margin-top: -4px;
    border-top: 2px solid #666;
    border-right: 2px solid #666;
    transform: rotate(45deg);
}
.corp-spnav a:hover { background: #ccc; color: #222; text-decoration: underline; }

@media (min-width: 768px) {
    .corp-header__top { margin-top: 20px; margin-bottom: 5px; min-height: 58px; }
    .corp-header__brand img { width: 300px; max-width: none; }
    .corp-header__search { display: block; margin-top: 10px; }
    .corp-header__toggle { display: none; }
    .corp-spnav, .corp-spnav[hidden] { display: none; }

    .corp-gnav { display: flex; }
    .corp-gnav li { width: 12.5%; }
    .corp-gnav a {
        display: block;
        margin-right: 5px;
        padding: 15px 0;
        font-size: 14px;
        line-height: 14px;
        text-align: center;
        color: #000;
        text-decoration: none;
        border-top: 2px solid #ccc;
    }
    .corp-gnav li:last-child a { margin-right: 0; }
    .corp-gnav a:hover { color: #20ace3; border-top-color: #000; }
    .corp-gnav .is-current a { color: #555; font-weight: bold; border-top-color: #000; }
}
@media (min-width: 768px) and (max-width: 992px) {
    .corp-gnav a { letter-spacing: -1px; }
}

/* ページの見出し（青い帯） */
.corp-pagetitle {
    display: block;
    height: 60px;
    margin: 0;
    font-size: 26px;
    line-height: 60px;
    text-align: center;
    color: #fff;
    background: #20ace3;
}
@media (min-width: 768px) {
    .corp-pagetitle { height: 80px; font-size: 30px; line-height: 80px; letter-spacing: .2em; }
}

/* ---------- フッター ---------- */

.corp-footer {
    min-height: 100px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    background: #fff;
    border-top: 1px solid #000;
}

.corp-footer__logo img { display: block; width: 250px; height: auto; margin: 25px auto 10px; }
.corp-footer__copy { margin: 10px 0 !important; color: #666; font-size: 11px; }

.corp-footer__menu { background: #f2f2f2; margin: 0 -15px !important; }
.corp-footer__menu li { border-bottom: 1px solid #ccc; font-size: 13px; text-align: left; }
.corp-footer__menu a { display: block; padding: 10px 15px; color: #000; text-decoration: none; }
.corp-footer__menu a:hover { color: #333; background: #ccc; }

.corp-sp-only { display: inline; }

@media (min-width: 768px) {
    .corp-sp-only { display: none; }
    .corp-footer { padding: 25px 0; text-align: left; }
    .corp-footer__inner { display: flex; flex-wrap: wrap; align-items: flex-start; }
    .corp-footer__company { width: 374px; margin-right: 30px; }
    .corp-footer__logo img { margin: 0 0 10px; }
    .corp-footer__menu {
        flex: 1;
        margin: 4px 0 0 !important;
        text-align: center;
        background: #fff;
        color: #4d4d4d;
    }
    .corp-footer__menu li {
        display: inline;
        margin: 0 10px 0 0;
        padding: 0 10px 0 0;
        border-bottom: 0;
        border-right: 1px solid #000;
        line-height: 2;
    }
    .corp-footer__menu li:first-child { padding-left: 10px; border-left: 1px solid #000; }
    .corp-footer__menu a { display: inline; padding: 0; }
    .corp-footer__menu a:hover { color: #333; background: none; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .corp-footer__company { width: 100%; margin: 0 0 16px; }
    .corp-footer__menu { text-align: left; }
}

/* ページの先頭へ戻るボタン */
.corp-back-to-top {
    position: fixed;
    right: 0;
    bottom: 2em;
    z-index: 20;
    width: 44px;
    height: 44px;
    background: rgba(235, 235, 235, .8);
}
.corp-back-to-top[hidden] { display: none; }
.corp-back-to-top::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 17px;
    width: 9px;
    height: 9px;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    transform: rotate(45deg);
}
.corp-back-to-top:hover { background: rgba(135, 135, 135, .5); }
/* 図面一覧の下のダウンロードバーと重ならないようにする */
.has-download-bar .corp-back-to-top { bottom: 110px; }
