/*
Theme Name: Lightning Child
Template: lightning-master
Text Domain: lightning-child
Description: Lightning Child Theme
Author:
Version: 1.0.0
*/

/* ========================================
   テーマカラー設定（本番環境と同じ）
   ======================================== */
:root {
    --vk-color-primary: #4f962e;
}

/* ========================================
   グローバルナビゲーション サブメニュー
   ======================================== */

/* サブメニューのスタイルはグローバルナビゲーションセクションで設定 */

/* ========================================
   ボタン表示制御
   ======================================== */

/* 下のボタンを消したいところで消す */
@media (max-width: 781px) {
    .largebtns {
        display: none !important;
    }
}

/* 上のボタンを消す */
.wp-block-buttons.is-content-justification-center .minibtn {
    display: none;
}

/* 上のボタンを出したいところで出す */
@media (max-width: 781px) {
    .wp-block-buttons.is-content-justification-center .minibtn {
        display: block;
    }
}

/* 画面が小さいとき上のボタンの下に余白をつける */
@media (max-width: 600px) {
    .wp-block-buttons.is-content-justification-center .minibtn {
        display: block;
        margin-bottom: 80px;
    }
}

/* ========================================
   画像エフェクト
   ======================================== */

/* 画像をホバーで暗く */
.bright:hover {
    filter: brightness(90%);
}

/* ========================================
   レイアウト
   ======================================== */

.site-body {
    width: 70%;
    margin: 0 auto;
}

/* ロゴのスタイル（h1/div両対応） */
.site-header-logo {
    margin: 0 !important;
    padding: 0 !important;
    font-size: inherit;
    font-weight: normal;
    line-height: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

.site-header-logo a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100%;
}

.site-header-logo img {
    width: auto !important;
    height: 75% !important;
    max-height: none !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

.site-header--layout--nav-float .site-header-container {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ========================================
   スライダー
   ======================================== */

.ltg-slide-text-title {
    font-size: 3rem;
    letter-spacing: .2rem;
}

/* ========================================
   グローバルナビゲーション
   ======================================== */

.global-nav-list > li .global-nav-name {
    font-size: 1.2rem;
    display: block;
    width: 100%;
    white-space: nowrap;
}

.global-nav-list > li .global-nav-name:hover {
    color: rgb(90, 188, 206);
}

/* サブメニュー項目のフォントサイズ（本番v14と同じに） */
.global-nav .sub-menu .menu-item a,
.global-nav-list .sub-menu li a {
    font-size: 1.1rem !important;
}

/* ========================================
   サイトマップ
   ======================================== */

.sitemap-title {
    font-size: 1.6rem;
    color: #444;
}

.sitemap-content {
    margin-left: 10%;
    display: flex;
}

.sitemap-items a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #444;
}

.sitemap-items a:hover {
    color: rgb(90, 188, 206);
}

.sitemap-item {
    margin-bottom: .6rem;
}

.relation {
    margin-top: .6rem;
    min-width: 100%;
}

.relation a {
    color: #444;
}

.relation a:hover {
    color: rgb(90, 188, 206);
}

/* ========================================
   フォントサイズ
   ======================================== */

p {
    font-size: 1.2rem;
}

h2 {
    font-size: 2rem;
}

li {
    font-size: 1.2rem;
}

.breadcrumb-list li {
    font-size: .9rem;
}

table td {
    font-size: 1.2rem;
}

/* ========================================
   その他
   ======================================== */

.borderbox {
    border: solid 2px;
}

/* コピーライトを消す */
.site-footer-copyright p:nth-child(2) {
    display: none;
}

iframe {
    width: 100%;
}

.page-header {
    background-color: rgb(90, 188, 206);
}

/* ========================================
   レスポンシブ対応
   ======================================== */

@media (max-width: 990px) {
    .site-header--layout--nav-float .site-header-container {
        height: auto;
        min-height: 70px;
        flex-direction: column;
        padding: 10px 15px;
    }

    .site-header-container {
        flex-direction: column;
        padding: 10px 15px;
    }

    .site-header-logo {
        margin-bottom: 10px !important;
    }

    .site-header-logo img {
        height: auto !important;
        max-height: 60px !important;
        width: auto !important;
    }

    .global-nav {
        width: 100%;
        justify-content: center;
    }

    .global-nav-list {
        justify-content: center;
        flex-wrap: wrap;
    }

    .ltg-slide-text-caption {
        font-size: 1rem;
    }

    .sitemap-container {
        text-align: center;
    }

    .sitemap-content {
        display: flex;
        justify-content: center;
        margin-left: 0;
    }
}

@media (max-width: 800px) {
    .site-body {
        width: 90%;
        margin: 0 auto;
    }

    .ltg-slide-text-title {
        font-size: 2rem;
        letter-spacing: .1rem;
    }
}

@media (max-width: 425px) {
    .site-body {
        width: 100%;
        margin: 0 auto;
    }

    .ltg-slide-text-title {
        font-size: 1.5rem;
        letter-spacing: .1rem;
    }
}

@media (max-width: 330px) {
    .site-body {
        width: 100%;
        margin: 0 auto;
    }

    .ltg-slide-text-title {
        font-size: 1.4rem;
        letter-spacing: .1rem;
    }
}
