@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 3.0.1
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html

    Changelog:
    v1.1.0 - グローバルナビ STINGER8 デザイン再現 CSS 追加
    v1.2.0 - キャッチフレーズをロゴ右横に配置する CSS 追加
    v1.3.0 - サブメニュー icomoon ">" アイコン非表示
    v1.4.0 - SP: gnav をロゴ行下に配置、サブメニュートグル有効化
    v1.5.0 - SP: acc_submenu 連携によるサブメニュートグル実装
    v1.6.0 - SP: トグルボタン全体化・矢印非表示、サブメニュー position:relative 対応
    v1.7.0 - SP: gnav align-items:flex-start、サブメニュー排他制御 JS 追加
    v1.8.0 - SP: Walker v2.0.0 対応（<span> 方式）・サブメニュー position:fixed・2列表示 CSS 追加
    v1.9.0 - PC・SP 共通: is-opened 時 position:fixed を全幅に適用（PC クリック制御対応）
    v2.1.0 - PC ホバー時: position:fixed を適用し JS の top/left 計算と連携
    v2.2.0 - 言語切り替えボタン（#lang-switcher）CSS 追加
    v2.0.0 - 著者プロフィール（About the Author）CSS 追加
    v2.1.0 - 検索ボタン（.c-gnav__s）: SP 非表示・PC スタイル調整
    v3.0.0 - 言語切り替え CSS を css/lang-switcher.css に分離（EN/JA 共通化）
    v3.0.1 - 2026-11-13 版数のみ（js/gnav-sp.js v2.3.0 のキャッシュ対策。gnav-sp.js の ?ver はテーマの版。台帳 E-168）
*/

/* ============================================================
   グローバルナビ - STINGER8 デザイン再現
   対象: .c-gnav（SWELL の header_menu ul）
   ============================================================ */

/* --- メニュー項目（li）--- */
.c-gnav > .menu-item {
    background-color: #2AABDD;
    border-right: 1px solid #fff;
    min-width: 90px;
    height: 48px;
    list-style: none;
    text-align: center;
    display: block;
    z-index: 9;
}

.c-gnav > .menu-item:first-child { border-radius: 6px 0 0 0; }
.c-gnav > .menu-item:last-child  { border-radius: 0 6px 0 0; border-right: none; }

/* --- リンク（a）・子持ち項目ラベル（span）--- */
.c-gnav > .menu-item > a,
.c-gnav > .menu-item > span {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4em;
    color: #fff !important;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    box-sizing: border-box;
}

.c-gnav > .menu-item > a:hover,
.c-gnav > .menu-item > a:focus,
.c-gnav > .menu-item > span:hover { background-color: rgba(0,0,0,0.1); color: #fff !important; }

/* SWELL が追加する .ttl span */
.c-gnav > .menu-item > a .ttl { color: #fff; font-size: 14px; line-height: 1.4em; }

/* --- サブメニュー --- */
.c-gnav .sub-menu li    { background-color: #2AABDD; }
.c-gnav .sub-menu li a  { color: #fff; white-space: nowrap; padding: 0.5em 0.75em; }
.c-gnav .sub-menu li a:hover { background-color: rgba(0,0,0,0.1); }

/* SWELL icomoon の ">" アイコンを非表示 */
.c-gnav .sub-menu a::before { content: none !important; }

/* --- PC ホバー時: position:fixed で viewport 基準に配置（JS が top/left を設定）--- */
@media print, screen and (min-width: 600px) {
    .c-gnav > .menu-item:hover > .sub-menu {
        position: fixed !important;
        transform: none !important;
        z-index: 9999;
    }
}

/* --- is-opened 時: position:fixed で viewport 基準に配置（PC・SP 共通）
 *    top / left は gnav-sp.js が getBoundingClientRect() で動的に設定する
 *    右端はみ出し補正も JS 側で処理 */
.c-gnav > .menu-item > .sub-menu.is-opened {
    position: fixed !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none;
    z-index: 9999;
}

/* --- カテゴリトップアイコン（category_top）--- */
.c-gnav > li.category_top {
    min-width: 44px;
}

.c-gnav > li.category_top > a {
    flex-direction: column;
    gap: 2px;
    padding: 0 4px;
    font-size: 8px;
    line-height: 10px;
}

.c-gnav > li.category_top .svg-inline--fa {
    height: 2.1em;
    margin-bottom: 1px;
}

/* --- 検索ボタン（PC・SP 共通ベース）--- */
.c-gnav__sBtn {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}
.c-gnav__s .icon-search {
    color: #fff !important;
    font-weight: bold;
}

/* --- PC（600px 以上）--- */
@media print, screen and (min-width: 600px) {
    .c-gnav > .menu-item {
        width: 110px;
        height: 42px;
        cursor: pointer;
    }
    .c-gnav > .menu-item > a,
    .c-gnav > .menu-item > span {
        height: 42px;
    }
    .c-gnav > li.category_top { width: 64px; }
    .c-gnav > .menu-item.c-gnav__s { width: 48px; min-width: 48px; }
}

/* --- SP: 横スクロール対応 & gnav 表示 --- */
@media screen and (max-width: 599px) {
    /* ① SWELL が display:none にしている gnav を SP でも表示し、ロゴ行の下に配置 */
    .l-header__inner { display: flex; flex-wrap: wrap; }
    .l-header__gnav {
        display: block !important;
        order: 99;
        width: 100%;
        flex: 0 0 100%;
        padding-left: 0 !important;
    }

    /* ② SP: 検索ボタン非表示・最後の visible li に右上角丸を付与 */
    .c-gnav > .c-gnav__s { display: none !important; }
    .c-gnav > .menu-item:last-child { border-radius: 0; }
    .c-gnav > .menu-item:nth-last-child(2) { border-radius: 0 6px 0 0; border-right: none; }

    /* ③ 横スクロール */
    .c-gnavWrap { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .c-gnavWrap::-webkit-scrollbar { display: none; }
    .c-gnav { flex-wrap: nowrap; align-items: flex-start; }

    /* ④ 子持ちメニュー項目の height を min-height に変更してサブメニュー展開時に縦伸びを許可 */
    .c-gnav > .menu-item {
        height: auto;
        min-height: 48px;
    }
    .c-gnav > .menu-item > a,
    .c-gnav > .menu-item > span {
        height: auto;
        min-height: 48px;
    }

    /* ⑤ SP: サブメニュー 2列表示（15件以上の場合）
     *    STINGER8 オリジナルの column-count: 2 実装を移植 */
    .c-gnav .sub-menu:has( > :nth-child(15) ) {
        column-count: 2;
        width: 100vw;
        max-width: 355px;
    }
    .c-gnav .sub-menu:has( > :nth-child(15) ) li {
        width: 170px;
    }
    .c-gnav .sub-menu:has( > :nth-child(15) ) li:nth-child(2n) {
        border-left: 1px solid #fff;
    }
}

/* ============================================================
   著者プロフィール（About the Author）- STINGER8 デザイン再現
   対象: dl.author（カスタム HTML ウィジェット内）
   ============================================================ */

dl.author { margin: 0 0 18px; padding: 18px; background: #e5f4ff; border-radius: 8px; }
dl.author > dt { position: relative; margin-bottom: 15px; padding: 2px 0; background: none; text-align: left; }
dt.title { font-weight: bold; color: #888888; font-size: 14pt; }
i.pen { color: #2AABDD; }
div.author_img { margin-top: -6px; float: left; margin-right: 16px; }
div.author_info { padding: 0 24px 4px 0; }
span.author_name { font-size: 14pt; font-weight: bold; }
span.author_name_small { font-size: 12pt; }
img.xlogo { background-color: #000; border: 2px solid #000; border-radius: 2px; vertical-align: middle; }
img.ilogo { background-color: #fff; margin-left: 6px; vertical-align: middle; }

/* ============================================================
   ヘッダー ロゴ + キャッチフレーズ - STINGER8 デザイン再現
   parallel_bottom レイアウト + phrase_pos: head_wrap 前提
   元サイト: <img ロゴ> キャッチフレーズテキスト（同一行）
   ============================================================ */

@media (min-width: 960px) {
    /* ロゴエリアを横並び（左揃え）にする */
    .-parallel .l-header__logo {
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        width: auto;
    }

    /*
     * ロゴ左端をパンくずリスト（.l-container）の左端に揃える
     *
     * parallel_bottom では l-header__inner が max-width:100%（全幅）のため
     * l-container の centering が効かない。
     * パンくずの左端 = 50vw - container_size / 2 で算出する。
     *
     * !important : SWELL inline CSS の .-parallel-bottom .l-header__logo { padding: 16px 0 }
     *              (詳細度 0-3-0) を上書きするために必要
     */
    .-parallel-bottom .l-header__logo {
        padding-left: calc(50vw - var(--container_size, 1200px) / 2) !important;
    }

    /* series レイアウトでもロゴ左端をパンくずリストに揃える */
    .-series .l-header__logo {
        padding-left: var(--swl-pad_container, 32px);
    }

    /* グローバルナビの左端をパンくずリストのホームアイコンより左に配置 */
    /* パンくず左端(50vw - container/2) から swl-pad_container(32px) 分さらに左 */
    .-parallel-bottom .l-header__gnav {
        padding-left: calc(50vw - var(--container_size, 1200px) / 2 - var(--swl-pad_container, 32px) + 34px);
    }
    .-parallel-bottom .l-header__gnav .c-gnav {
        justify-content: flex-start;
    }

    /* キャッチフレーズを表示してロゴ右に配置 */
    .-parallel .l-header__logo .c-catchphrase {
        display: block;       /* main.css の display:none を上書き */
        margin-top: 0;
        margin-left: 16px;
        font-size: 16px;
        line-height: 1.4;
        color: inherit;
    }
}
