@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    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
*/


/* ========================================
   メインビジュアル下のメニュー（モノトーン版）
======================================== */

/* 既存のヘッダーメニューを非表示 */
.l-header__nav {
    display: none !important;
}

/* メインビジュアル下のメニュー本体 */
.under-mv-menu {
    width: 100%;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.under-mv-menu__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* カスタムメニュー対応：ulとmenuクラス */
.under-mv-menu ul,
.under-mv-menu .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* PC・タブレット（481px以上）でのみgap適用 */
@media (min-width: 481px) {
    .under-mv-menu ul,
    .under-mv-menu .menu {
        gap: 3rem !important;
    }
}

.under-mv-menu li,
.under-mv-menu .menu-item {
    margin: 0;
}

.under-mv-menu a {
    display: block;
    padding: 1.2rem 0.8rem;
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.05em;
    position: relative;
}

/* ホバー時のアンダーライン効果（PC・タブレットのみ） */
@media (min-width: 481px) {
    .under-mv-menu a::after {
        content: '';
        position: absolute;
        bottom: 0.8rem;
        left: 0.8rem;
        right: 0.8rem;
        height: 2px;
        background: #fff;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }
    
    .under-mv-menu a:hover::after {
        transform: scaleX(1);
    }
}

.under-mv-menu a:hover {
    color: #fff;
}

/* タブレット対応（481px〜768px） */
@media (min-width: 481px) and (max-width: 768px) {
    .under-mv-menu ul,
    .under-mv-menu .menu {
        gap: 1.5rem !important;
        font-size: 0.9rem;
    }
    
    .under-mv-menu a {
        padding: 1rem 0.5rem;
    }
}

/* スマホ対応 - 横一列スクロール（480px以下） */
@media (max-width: 480px) {
    .under-mv-menu {
        background: #000 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }
    
    .under-mv-menu__inner {
        padding: 0 !important;
        display: block !important;
    }
    
    /* カスタムメニュー対応：WordPressが自動生成するul要素 */
    .under-mv-menu ul,
    .under-mv-menu .menu,
    .under-mv-menu > .under-mv-menu__inner > ul,
    .under-mv-menu > .under-mv-menu__inner > .menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 0 !important;  /* ← gapを0に */
        min-width: max-content !important;
        padding: 0 10px !important;
        margin: 0 !important;
        list-style: none !important;
        border: none !important;  /* ← 追加 */
    }
    
    .under-mv-menu li,
    .under-mv-menu .menu-item,
    .under-mv-menu ul li,
    .under-mv-menu .menu .menu-item {
        flex-shrink: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;  /* ← 追加 */
        border-left: none !important;  /* ← 追加 */
        border-right: none !important;  /* ← 追加 */
    }
    
    .under-mv-menu a,
    .under-mv-menu li a,
    .under-mv-menu .menu-item a {
        display: block !important;
        padding: 0.8rem 0.5rem !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
        color: #fff !important;
        margin: 0 !important;
        border: none !important;  /* ← 追加 */
    }
    
    /* スマホではアンダーライン効果を完全に無効化 */
    .under-mv-menu a::after,
    .under-mv-menu li a::after,
    .under-mv-menu .menu-item a::after {
        display: none !important;
        content: none !important;
    }
    
    /* スクロールバーのスタイリング（Chrome/Safari） */
    .under-mv-menu::-webkit-scrollbar {
        height: 4px;
    }
    
    .under-mv-menu::-webkit-scrollbar-track {
        background: #1a1a1a;
    }
    
    .under-mv-menu::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 2px;
    }
    
    .under-mv-menu::-webkit-scrollbar-thumb:hover {
        background: #777;
    }
}

/* ========================================
   右上のヘッダーメニューを完全非表示（全パターン対応）
======================================== */

/* パターン1: 基本のグローバルナビ */
.l-header__nav,
.l-header__gnav,
.c-gnav,
header .c-gnav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* パターン2: ヘッダー内のナビゲーション全般 */
.l-header nav,
.l-header .p-globalNav,
.p-globalNav {
    display: none !important;
    visibility: hidden !important;
}

/* パターン3: メニュー系の要素（メインビジュアル下のメニューは除外） */
header nav:not(.under-mv-menu) {
    display: none !important;
}

/* パターン4: 右側のメニューエリア */
.l-header__right,
.l-header__actions {
    display: none !important;
}
/* ========================================
   under-mv-menu 上書き（最終勝ち用）
   目的：
   - スマホ：1行+横スクロール、詰める
   - PC：2段（2列っぽく）に折り返し
======================================== */

/* --- 共通：まず余計な影響を排除 --- */
.under-mv-menu .menu,
.under-mv-menu ul {
  /* SWELL側のgnav系が当たっても勝つように */
  justify-content: center;
}

/* ========== スマホ（〜480px）：1行＋横スクロール、詰める ========== */
@media (max-width: 480px) {
  .under-mv-menu {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* UL側：space-between系を潰して左寄せ固定 */
  .under-mv-menu ul,
  .under-mv-menu .menu {
    display: flex !important;
    flex-wrap: nowrap !important;

    justify-content: flex-start !important; /* ←ここが最重要 */
    align-items: center !important;

    /* gapは効かないケースがあるので column-gap を明示 */
    column-gap: 0.25rem !important; /* 好みで 0〜0.5rem */
    gap: 0.25rem !important;

    padding: 0 8px !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .under-mv-menu li,
  .under-mv-menu .menu-item {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 余白は a の左右paddingで最終調整 */
  .under-mv-menu a {
    padding: 0.85rem 0.35rem !important; /* ←左右を詰める */
    letter-spacing: 0 !important;        /* 文字間が広い原因が letter-spacing の場合に備える */
    white-space: nowrap !important;
  }
}

/* ========== PC（961px〜）：2段に折り返し（2列風） ========== */
@media (min-width: 961px) {
  .under-mv-menu ul,
  .under-mv-menu .menu {
    display: flex !important;
    flex-wrap: wrap !important;           /* 折り返し */
    justify-content: center !important;
    row-gap: 0.2rem !important;           /* 2段間の隙間 */
    column-gap: 1.2rem !important;        /* 左右の隙間 */
  }

  /* 2列にしたい＝各項目を「半分幅」くらいにする */
  .under-mv-menu li,
  .under-mv-menu .menu-item {
    width: calc(50% - 0.6rem) !important; /* 2列 */
    text-align: center;
  }

  /* PCではクリック範囲と見た目を整える */
  .under-mv-menu a {
    display: inline-block;
    padding: 0.9rem 0.6rem;
  }
}
/* ===============================
   PC：1行に収まらない分だけ2行目へ（2行まで想定）
   スマホ：1行固定（横スクロール）
=============================== */

/* PC（例：961px以上）では2行折り返し */
@media (min-width: 961px) {
  .under-mv-menu ul,
  .under-mv-menu .menu {
    display: flex !important;
    flex-wrap: wrap !important;          /* ← 折り返し */
    justify-content: center !important;
    align-items: center !important;

    /* “項目間”の間隔 */
    column-gap: 1.2rem !important;
    row-gap: 0.2rem !important;

    /* 念のため余計な余白を潰す */
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ここが重要：幅を固定しない（50%にしない） */
  .under-mv-menu li,
  .under-mv-menu .menu-item {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* クリック領域は適度に */
  .under-mv-menu a {
    padding: 0.9rem 0.6rem !important;
  }
}
/* スマホ（〜480px）は絶対に折り返さない */
@media (max-width: 480px) {
  .under-mv-menu ul,
  .under-mv-menu .menu {
    flex-wrap: nowrap !important;        /* ← 1行固定 */
    justify-content: flex-start !important;
  }
}

