/* スマホ（基準） */
html {
    font-size: 14px;
}

/* タブレット以上 */
@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

/* PC以上 */
@media (min-width: 1024px) {
    html {
        font-size: 16px;
    }
}


/* =========================================================
   モバイル（〜767px）
========================================================= */
:root {
    --header-height: 8vh;
    --header-padding-left: 2vw;
    --corporate-logo-width: 65px;
    --corporate-logo-height: 50px;
    --corporate-image-color: #E5030F;
    --corporate-logo-sidelength: 6vh;
}

/* トランジション */
.transition-03s {
    transition: all 0.3s;
}

/* 文字間隔 */
.letter-spacing-3px {
    letter-spacing: 3px;
}

/* VKのモバイルナビゲーションメニューボタンを非表示にする */
#vk-mobile-nav-menu-btn {
    display: none !important;
}

/* ヘッダー */
.site-header {
    background: white !important;
    width: 100%;
    padding: 8px 0;
    position: relative !important;
    z-index: 2000;
}

/* ヘッダーコンテナ */
.site-header .site-header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: var(--header-padding-left);
    height: var(--header-height);
}

/* 企業ロゴ */
.site-header .site-header-container .site-logo-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;

    /* ロゴは必要な幅だけ確保、ナビゲーションは残りのスペースを埋める */
    flex: 0 0 auto;
}

/* ロゴと企業名を横並びにする */
.site-header .site-header-container .site-logo-wrapper a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1vw;
    width: max-content;
}

/* ロゴ画像 */
.site-header .site-header-container .site-logo-wrapper img {
    width: var(--corporate-logo-sidelength);
    height: var(--corporate-logo-sidelength);
    max-height: none;
}

/* 企業名 */
.site-header .site-header-container .site-logo-wrapper .site-corporate-name {
    font-size: 28px;
    color: #090909;
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 2px;
}

/* ヘッダーナビゲーション */
.site-header .site-header-container .header-nav-wrapper {
    display: none;
}

/* サイドバー（SNSリンク） */
.site-header .sidebar {
    display: none;
}

/* ヒーローイメージ */
.site-body .site-body-container .home-cover-image {
    margin: 0 !important;
    width: 100vw !important;
    height: 30vh !important;
}

/* ヒーローイメージの画像をコンテナいっぱいに表示 */
body.home .site-body .site-body-container .wp-block-image.home-cover-image img {
    height: 100% !important;
}

/* ページヘッダー */
.page-header {
    display: none;
}

#breadcrumb span {
    font-size: 0.9rem;
}

.site-body {
    color: #333;
}

/* サブセクション（パンくずリストなど） */
.site-body .site-body-container {
    display: flex;
    flex-direction: row;
    justify-content: center;

}

/* メインセクションの幅をコンテンツに合わせて調整 */
.site-body .site-body-container .main-section {
    width: max-content;
}

/* エントリー本文を中央に配置 */
.site-body .site-body-container .main-section .entry-body {
    width: calc((100vw - var(--sidebar-width)) * 0.6) !important;
}

/* 区切り線を非表示にして、コンテンツを中央に配置 */
.site-body .site-body-container .main-section .entry-body .wp-block-separator {
    display: none;
}

/* サブセクションを非表示にして、コンテンツを中央に配置 */
.site-body .site-body-container .sub-section {
    display: none;
}

.site-body .site-body-container .main-section .company-info-table td {
    padding: 15px 30px;
    font-size: 1rem;
}

.site-body .site-body-container .main-section .company-info-table td:first-child {
    font-weight: bold;
    background-color: #E9E9E9;
}


/* =========================================================
   タブレット（768px〜1024px）
========================================================= */
@media (min-width: 768px) {
    :root {
        --header-height: 13vh;
        --global-nav-height: 8vh;
        --global-nav-gap: 4vw;
        --sidebar-width: 70px;
        --sns-icon-sidelength: 35px;
        --sns-icon-gap: 50px;
        --corporate-logo-sidelength: 7vh;
    }

    /* Header */
    .site-header {
        padding: 0;
    }

    /* Header container */
    .site-header .site-header-container {
        max-width: none !important;
        width: calc(100vw - var(--sidebar-width));
        margin-left: 0;
        margin-right: var(--sidebar-width);
    }

    /* Header nav wrapper */
    .site-header .site-header-container .header-nav-wrapper {
        display: flex;
        flex-direction: column-reverse;
        justify-content: space-between;
        align-items: right;
        position: relative;
        margin-left: 5vw;
        padding-right: 2vw;

        /* ロゴは必要な幅だけ確保、ナビゲーションは残りのスペースを埋める */
        flex: 1 1 auto;
    }

    .site-header .site-header-container .header-nav-wrapper .global-nav {
        display: flex;
    }

    /* Contact buttons (mail / tel) */
    .site-header .site-header-container .header-nav-wrapper .header-nav-contact-box {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 1vw;
        white-space: nowrap;
    }

    /* Mail button */
    .site-header .site-header-container .header-nav-wrapper .header-nav-contact-box .mail_bt {
        background-color: var(--corporate-image-color);
        padding: 10px 20px;
        border-radius: 0 0 7px 7px;
    }

    .site-header .site-header-container .header-nav-wrapper .header-nav-contact-box .mail_bt a {
        color: white;
    }

    /* Tel button */
    .site-header .site-header-container .header-nav-wrapper .header-nav-contact-box .tel_bt a {
        color: var(--corporate-image-color);
        font-weight: bold;
        font-size: 16px;
    }

    /* Tel icon */
    .site-header .site-header-container .header-nav-wrapper .header-nav-contact-box .tel_bt a i.icon-phone::before {
        font-family: "Font Awesome 5 Free";
        content: "\f095";
    }

    /* Global nav */
    .site-header .site-header-container .header-nav-wrapper .global-nav {
        height: var(--global-nav-height);
        margin: 0;
        justify-content: flex-end;
        align-items: center;
    }

    .site-header .site-header-container .header-nav-wrapper .global-nav .global-nav-list {
        gap: var(--global-nav-gap);
        margin: 0;
    }

    .site-header .site-header-container .header-nav-wrapper .global-nav .global-nav-list li a {
        padding: 0;
    }

    .site-header .site-header-container .header-nav-wrapper .global-nav .global-nav-list li a strong {
        color: #3c3c3c;
        font-size: 15px !important;
        font-weight: bold !important;
        letter-spacing: 1px;
    }

    /* Hero image */
    .site-body .site-body-container .home-cover-image {
        width: calc(100vw - var(--sidebar-width)) !important;
        height: calc(100vh - var(--header-height)) !important;
    }

    /* Sidebar */
    .site-header .sidebar {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        width: var(--sidebar-width);
        height: 100vh;
        background-color: white;
        z-index: 1000;
        gap: 8px;
    }

    .site-header .sidebar .sns-link {
        display: flex;
        flex-direction: column;
        gap: var(--sns-icon-gap);
    }

    .site-header .sidebar .sns-link .sns-icon img {
        width: var(--sns-icon-sidelength);
        height: var(--sns-icon-sidelength);
    }

    body.home .site-header .sidebar a {
        color: black !important;
    }

    /* Body margin for sidebar */
    .site-body {
        margin-right: var(--sidebar-width) !important;
    }
}

/* =========================================================
   PC（1400px〜）
========================================================= */
@media (min-width: 1400px) {
    :root {
        --sidebar-width: 90px;
    }
}