@charset "euc-jp";

html, body {
  overflow-x: hidden !important; /* 念のため保険 */
}

#page-wrapper {
  position: relative;
}
#wrapper {
  padding-top: 1em;
}
.container {
  max-width: 900px;
}

textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
  border: 1px solid #ccc;
  background-color: #fff;
}

textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus {
  outline: 0;
  outline: thin dotted \9;
  border-color: rgba(82, 168, 236, 0.8);
}


.muted {
  color: #999;
}

body {
  color: #000000;
  background-color: #fff;
  background-image: url(https://img.shop-pro.jp/tmpl_img/69/bg.gif);
}

a {
  color: #1c479a;
}
  a:hover {
    color: #5e5e5e;
  }

a.muted:hover,
a.muted:focus {
  color: #808080;
}

.text-warning {
  color: #c09853;
}

a.text-warning:hover,
a.text-warning:focus {
  color: #a47e3c;
}

.text-error {
  color: #b94a48;
}

a.text-error:hover,
a.text-error:focus {
  color: #953b39;
}

.text-info {
  color: #3a87ad;
}

a.text-info:hover,
a.text-info:focus {
  color: #2d6987;
}

.text-success {
  color: #468847;
}

a.text-success:hover,
a.text-success:focus {
  color: #356635;
}

.btn-01 {
  border: 1px solid #1c479a;
  background-color: #1c479a;
  color: #fff;
  *background-color: #1c479a;
}

h2 {
  margin: 30px 0;
  text-align: center;
}
  .ttl-h2 {
    position: relative;
  }
  .ttl-h2:before {
    position: absolute;
    top: 50%;
    z-index: -1;
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ccc;
    content: "";
  }
  .ttl-h2 span {
    padding: 0 2em;
    background-color: #fff;
  }

.btn-01 {
  border: 1px solid #1c479a;
  background-color: #1c479a;
  color: #fff;
  *background-color: #1c479a;
}

.btn-01:hover,
.btn-01:focus,
.btn-01:active,
.btn-01.active,
.btn-01.disabled,
.btn-01[disabled] {
  border: 1px solid #d8d8d8;
  background-color: #d8d8d8;
  color: #fff;
  *background-color: #d8d8d8;
}

.btn-02 {
  border: 1px solid #1c479a;
  background-color: #1c479a;
  color: #4d4d4d;
  *background-color: #1c479a;
}

.btn-02:hover,
.btn-02:focus,
.btn-02:active,
.btn-02.active,
.btn-02.disabled,
.btn-02[disabled] {
  border: 1px solid #d8d8d8;
  background-color: #d8d8d8;
  color: #4d4d4d;
  *background-color: #d8d8d8;
}
.product-order-num input {
  border-color: #1c479a;
}

/*
 * web font
 */

/* Google Fonts: Noto Serif JP に変更 */
body, 
.google-font, 
#page-wrapper, 
#header-wrapper, 
#footer-wrapper, 
#container {
  font-family: "Noto Serif JP", serif !important;
  font-weight: 400;
  
}

  .ph_nmb{
  font-family:'Arial';
    font-weight: 500 !important;
  }

.google-font {
  letter-spacing: 0.05em; /* 日本語向けに少し狭く */
  font-weight: 400;
  font-family: "Noto Serif JP", serif;
  text-transform: none; /* 日本語では大文字変換を無効化 */
}
.google-font.fwb {
  font-weight: 700;
}

/*
 * icon
 */
.icon-b,
.icon-w {
  display: inline-block;
  width: 16px;
  height: 16px;
  *display: inline;
  *zoom: 1;
}
.icon-b {
  background-image: url(https://img.shop-pro.jp/tmpl_img/69/icon16_b.png);
}
.icon-w {
  background-image: url(https://img.shop-pro.jp/tmpl_img/69/icon16_w.png);
}
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min--moz--device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
  .icon-b,
  .icon-w {
    -webkit-background-size: 368px 320px;
    background-size: 368px 320px;
  }
  .icon-lg-b,
  .icon-lg-w {
    -webkit-background-size: 552px 480px;
    background-size: 552px 480px;
  }
  .icon-b {
    background-image: url(https://img.shop-pro.jp/tmpl_img/69/icon16_2x_b.png);
  }
  .icon-w {
    background-image: url(https://img.shop-pro.jp/tmpl_img/69/icon16_2x_w.png);
  }
  .icon-lg-b {
    background-image: url(https://img.shop-pro.jp/tmpl_img/69/icon24_2x_b.png);
  }
  .icon-lg-w {
    background-image: url(https://img.shop-pro.jp/tmpl_img/69/icon24_2x_w.png);
  }
}
.icon-cart { background-position: -176px -64px; }
.icon-user { background-position: -208px -0px; }
.icon-adduser { background-position: -240px -0px; }
.icon-logout { background-position: -32px -80px; }
.icon-login { background-position: -48px -80px; }
/* icon large */
.icon-twitter { background-position: -144px -264px; }
.icon-facebook { background-position: -192px -264px; }
.icon-instagram { background-position: -168px -288px; }
.icon-youtube { background-position: -191px -240px; }
.icon-mail { background-position: -96px -0px; }
.icon-lg-w.icon-cart { background-position: -264px -96px; }
.icon-lg-w.icon-chevron_up { background-position: -0px -216px; }
.icon-lg-w.icon-chevron_down { background-position: -528px -192px; }

.icon-lg-b,
.icon-lg-w {
  width: 24px;
  height: 24px;
  display: inline-block;
  *display: inline;
  *zoom: 1;
}
.icon-lg-b {
  background-image: url(https://img.shop-pro.jp/tmpl_img/69/icon24_b.png);
}
.icon-lg-w {
  background-image: url(https://img.shop-pro.jp/tmpl_img/69/icon24_w.png);
}


/*
 * header
 */
#header-wrapper {
  margin-bottom: 4em;
}
.header-link a {
  color: #4d4d4d;
}
.header-link a:hover {
  text-decoration: none;
  opacity: 0.7;
}

/* header-line-nav */
.header-line-nav li {
  padding-top: 5px;
}
  .header-line-nav a {
    cursor: pointer;
  }
  .header-line-nav span {
    float: left;
    padding-left: 4px;
    font-size: 12px;
    line-height: 1.5em;
  }
  .header-line-nav .icon-b,
  .header-line-nav .icon-w {
    float: left;
  }
.view-cart {
  position: relative;
  top: -6px;
  padding-top: 0 !important;
}
.btn-viewcart {
  padding: 1px 15px 0 13px;
  -webkit-border-radius: 3em;
  -moz-border-radius: 3em;
  border-radius: 3em;
}

/* header logo */
.shop-name {
  clear: both;
  margin: 2em 0;
  text-align: center;
  font-size: 24px;
}
.shop-description {
  font-size: 12px;
  font-weight: normal;
  color: #4d4d4d;
}

/* header global nav */
#header-global-nav {
  margin: 1.8em 0;
  text-align: center;
  font-size: 16px;
}
  #header-global-nav li {
    margin: 0 1em;
  }

/* incart delivery */
.incart-delivery {
  float: right;
}
  .incart-delivery ul {
    margin: 0;
    padding: 10px 12px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background-color: #d9edf7;
    color: #31708f;
    list-style: none;
    font-size: 12px;
  }

/* slider */
.slider {
  margin-top: 2em;
  padding: 0 .1%;
  position: relative;
}
.bx-viewport {
  -moz-box-shadow: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  left: 0 !important;
  border: none !important;
}
#slider div {
  width: 100% !important;
}

/*
 * product list
 */

.prd-lst-unit {
  margin-bottom: 60px;
  padding: 0 30px;
  text-align: center;
}
.prd-lst-img {
  display: block;
  margin: 0 auto 1em;
}
.prd-lst-span {
  display: block;
  margin: .3em 0;
  font-size: 16px;
  color:#1c479a !important;
}
.prd-lst-name {
  font-size: 22px;
  font-weight:600;
}
.prd-lst-price {
  color: #abaaaa;
}
.prd-lst-regular {
  text-decoration: line-through;
}
.prd-lst-discount {
  color: #b81717;
}

/* product list sort */
.prd-lst-sort {
  margin: 3em 0;
  color: #888;
  text-align: center;
  font-size: 12px;
}

/* prduct list pager */
.prd-lst-pager {
  text-align: center;
}
.prd-lst-pos b {
  font-size: 18px;
  font-weight: normal;
}

/*
 * product
 */
.product-image-thumb img {
  border: 2px solid #fff;
}
.thumb-active img {
  border: 2px solid #1c479a;
}


/*
 * footer
 */

.footer_logo{
height:63px !important;
  width:auto !important;
  padding:22px 0 32px;
}

#footer-wrapper {
  padding-top: 3em;
}
.footer-primary {
  border-right: 1px solid #e7e7e7;
}

/* footer nav */
.footer-nav {
  list-style: none;
  margin: 0;
}
  .footer-nav li {
    margin: .8em 0;
  }
.footer-primary {
  padding: .3em 0;
}
  .footer-primary li {
    margin-right: 25px;
    margin-left: 5px;
  }
  .footer-primary a {
    color: #4d4d4d;
  }
  .freepage-nav {
    margin-right: 10%;
    margin-bottom: 1.5em;
    padding-bottom: .8em;
    border-bottom: 1px solid #e7e7e7;
  }
.footer-secondary {
  padding: .3em 0;
  font-size: 12px;
}
  .footer-secondary li {
    margin-left: 10%;
  }
  .footer-secondary li:before {
    margin-right: 4px;
    color: #abaaaa;
    content: "-";
  }
  .footer-secondary a {
    color: #abaaaa;
  }

/* social icon */
.social-nav {
  text-align: center;
  margin: 2em 0;
}

/* copyright */
.copyright {
  margin: 3em 0 2em;
  color: #abaaaa;
  text-align: center;
  font-size: 12px;
}
.powered {
  display: block;
  margin: .5em auto 0;
  width: 180px;
  height: auto;
}

/* pagetop */
#pagetop {
  position: fixed;
  right: 0;
  bottom: 100px;
  display: none;
  z-index:9999;
}
.btn-pagetop {
  display: block;
  padding: .8em .4em .8em .5em;
  -webkit-border-radius: 3px 0 0 3px;
  -moz-border-radius: 3px 0 0 3px;
  border-radius: 3px 0 0 3px;
}


@media (max-width: 980px) {
  #base_gmoWrapp,
  #gmo_CMSPbar {
    overflow: hidden;
    min-width: 100% !important;
    width: 100% !important;
  }
  .container {
    max-width: 900px;
    width: 90%;
  }
}
@media (max-width: 768px) {
  #wrapper {
    padding-top: 3em;
  }
  .container {
    width: auto;
  }
  .header-dropdown {
    position: absolute;
    top: 0;
    z-index: 200;
    width: 100%;
    border-bottom: 1px solid #dbdbdb;
    background-color: #fff;
  }
  .header-dropdown.affix {
    position: fixed;
  }
    .header-dropdown .dropdown-nav li {
      border-bottom: 1px solid #dbdbdb;
      text-align: center;
    }
    .header-dropdown .dropdown-nav a {
      display: block;
      padding: 10px;
    }
    .header-dropdown .btn-dropdown {
      padding-left: 34px;
      font-size: 16px;
      line-height: 1.6;
    }
    .header-dropdown .btn-dropdown-close {
      opacity: 0.4;
    }
  .view-cart {
    position: static;
  }
    .view-cart a {
      background-color: #1c479a;
      color: #fff;
    }
    .view-cart span {
      display: block;
      width: 130px;
      margin: 0 auto;
    }
    .view-cart .icon-w {
      float: left;
      margin-top: -2px;
    }
  .incart-delivery {
    padding-top: 20px;
    float: none;
  }
  .prd-lst-sort {
    font-size: 14px;
  }
  .footer-primary,
  .footer-secondary {
    padding: 0;
    border: none;
  }
  .footer-nav {
    margin: 0;
    padding: 0;
    border-bottom: 3px double #e7e7e7;
  }
    .footer-primary .footer-nav:first-child {
      border-top: 3px double #e7e7e7;
    }
  .footer-nav li {
    margin: 0;
    font-size: 14px;
    border-top: 1px solid #e7e7e7;
  }
    .footer-nav li:first-child {
      border-top: none;
    }
  .footer-nav li:before {
    display: none;
  }
  .footer-nav a {
    display: block;
    padding: 1em;
    color: #4d4d4d;
  }
  .footer-nav a:hover {
    text-decoration: none;
  }
  .icon-b,
  .icon-w {
    display: inline-block;
    width: 24px;
    height: 24px;
    *display: inline;
    *zoom: 1;
  }
  .icon-b {
    background-image: url(https://img.shop-pro.jp/tmpl_img/69/icon24_b.png);
  }
  .icon-w {
    background-image: url(https://img.shop-pro.jp/tmpl_img/69/icon24_w.png);
  }
  .icon-cart { background-position: -264px -96px; }
  .icon-list { background-position: -288px -144px; }
  .icon-chevron_thin_up { background-position: -192px -216px; }
  @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min--moz--device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx) {
    .icon-b,
    .icon-lg-b {
      background-image: url(https://img.shop-pro.jp/tmpl_img/69/icon24_2x_b.png);
    }
    .icon-w,
    .icon-lg-w {
      background-image: url(https://img.shop-pro.jp/tmpl_img/69/icon24_2x_w.png);
    }
    .icon-b,
    .icon-w {
      -webkit-background-size: 552px 480px;
      background-size: 552px 480px;
    }
  }
}
@media (max-width: 480px) {
  .ttl-h2 span {
    padding: 0 10px;
    font-size: 14px;
  }
  .prd-lst-unit {
    margin-bottom: 30px;
    height: auto !important;
  }
}

/* IE用 */
.ie_wrapper.container {
  width: 900px;
  overflow: auto;
}


/*追記*/

:root{
  --cm-topbar-h: 50px;     /* 上の青帯の高さ */
  --cm-header-h: 70px;     /* 白いメニュー帯の高さ */
  --cm-header-h-sp: 64px;  /* SPのメニュー帯高さ */
  --cm-accent: #1f4ea1;    /* 青帯カラー */
  --cm-inner-max: 1200px;  /* 内側最大幅 */
  --cm-edge-pad: 40px;     /* ロゴ・カートの端からの距離 */
  --cm-hover-bg: #000;     /* hover時／現在地背景色 */
}

/* ========== 上部 青帯 ========== */
#cm-topbar{
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  height: var(--cm-topbar-h);
  background: var(--cm-accent);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 9998;
  font-family: "Noto Serif JP", serif !important;
  font-size: 14px;
/*  letter-spacing: .03em; */
}
#cm-topbar p{
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight:700;
}

/* ========== 白帯 ヘッダー外側 ========== */
#cm-header{
  position: fixed;
  top: var(--cm-topbar-h);
  left: 50.4%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  height: var(--cm-header-h);
  background: #fff;
  border-bottom: 1px solid #eee;
  z-index: 9999;
}

/* ========== ヘッダー内側ラッパー ========== */
#cm-header .cm-header__inner{
  height: 100%;
  margin: 0 auto;
  padding-left: var(--cm-edge-pad);
  padding-right: var(--cm-edge-pad);
  box-sizing: border-box;

  display: grid;
  grid-template-columns: auto 1fr auto; /* ロゴ／メニュー／カート */
  align-items: center;
  column-gap: 24px;

  font-family: "Noto Serif JP", serif !important;
}

/* ========== 下コンテンツを押し下げる余白 ========== */
#cm-header-spacer{
  height: 10px;
}

/* ========== ロゴ ========== */
#cm-header_logo .logo_image{
  display: block;
  height: 63px;
  width: auto;
}

/* ========== グローバルナビ（中央） ========== */
#cm-global_menu{
  justify-self: center;
  height: 100%;
  margin-left: -217px;
}
#cm-global_menu .cm-menu{
  display: flex;
  align-items: stretch;        /* 子aを縦方向100%に */
  justify-content: center;
  gap: 0;                      /* 隣同士ベタ付け */
  height: 102%;
  list-style: none;
  margin: 0;
  padding: 0;
}
#cm-global_menu .cm-menu__item{
  height: 100%;
}
#cm-global_menu .cm-menu__item a{
  display: block;
  font-size:16px;
  font-weight:500;
  height: 100%;
  line-height: var(--cm-header-h);
  padding: 0 25px;
  text-decoration: none;
  color: #222 !important;
 /* letter-spacing: .05em; */
  transition: background .2s ease, color .2s ease;
  border-radius: 0;
  background: transparent;
}

/* hover／現在ページの背景反転 */
#cm-global_menu .cm-menu__item a:hover,
#cm-global_menu .cm-menu__item a.is-current,
#cm-global_menu .cm-menu__item a[aria-current="page"]{
  background: var(--cm-hover-bg);
  color: #fff !important;
}

/* ========== カート（右端） ========== */
.cm-cart{
  justify-self: end;
}
.cm-cart .btn-cart{
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  text-decoration: none;
  color: #fff !important;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color:#000;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cm-cart .btn-cart:hover{
  background: #d0d0d0;
  color: #fff !important;
  border-color: #d0d0d0;
}
.cm-cart .icon-cart{ font-size: 16px; }
.cm-cart .cart-count{ font-size: 13px; }

/* ========== ハンバーガーボタン ========== */
.cm-drawer-btn{
  display: none;
  position: relative;
  width: 28px;
  height: 22px;
  cursor: pointer;
}
.cm-drawer-btn span{
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #222;
}
.cm-drawer-btn span:nth-child(1){ top: 0; }
.cm-drawer-btn span:nth-child(2){ top: 10px; }
.cm-drawer-btn span:nth-child(3){ bottom: 0; }

/* ========== スマホ表示 ========== */
@media (max-width: 1300px){
  #cm-header{
    height: var(--cm-header-h-sp);
  }
  #cm-header-spacer{
    height: calc(var(--cm-topbar-h) + var(--cm-header-h-sp));
  }

  .cm-header__inner{
    padding-left: var(--cm-edge-pad);
    padding-right: var(--cm-edge-pad);
    column-gap: 12px;
  }

  .cm-drawer-btn{
    display: inline-block;
  }

  /* ドロワーメニュー展開 */
  #cm-global_menu{
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--cm-topbar-h) + var(--cm-header-h-sp));
    background: #fff;
    border-top: 1px solid #eee;
    padding: 6px 0;
    height: auto;
  }
  #cm-global_menu.active{
    display: block;
  }

  #cm-global_menu .cm-menu{
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
  }
  #cm-global_menu .cm-menu__item{
    height: auto;
    border-top: 1px solid #222;
  }
  #cm-global_menu .cm-menu__item a{
    height: auto;
    line-height: 1.5;
    padding: 12px var(--cm-edge-pad);
    text-align: left;
  }

  .cm-cart .btn-cart{
    height: 34px;
    padding: 0 8px;
  }
}

/* ===== ロゴの上下余白を消す ===== */
#cm-header_logo h1 {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

/* 現在開いているページのタブを青に */
#cm-global_menu .cm-menu__item a.is-current,
#cm-global_menu .cm-menu__item a[aria-current="page"] {
  color: #fff !important;
}

/* hover時は黒のまま（既存を保持） */
#cm-global_menu .cm-menu__item a:hover {
  background: #000;
  color: #fff !important;
}

/* ==========================================================
   SPドロワーメニュー（1300px以下のみ）
   右スライド／黒背景／幅300px／背景オーバーレイ
   ========================================================== */

#cm-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9997;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#cm-nav-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width:1300px) {
  /* ハンバーガーを右寄せ */
  .cm-drawer-btn {
    display: inline-block;
    position: absolute;
    right: var(--cm-edge-pad);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
  }

  /* ドロワーメニュー右スライド */
  #cm-global_menu {
    display: block;
    position: fixed;
    top: calc(var(--cm-topbar-h) + var(--cm-header-h-sp));
    right: -300px; /* 非表示時 */
    width: 300px;
    height: calc(100vh - (var(--cm-topbar-h) + var(--cm-header-h-sp)));
    background: #0c0c0c;
    color: #fff;
    z-index: 9998;
    border-left: 1px solid rgba(255,255,255,0.1);
    transition: right 0.3s ease;
    padding: 20px 0;
    overflow-y: auto;
  }
  #cm-global_menu.active {
    right: 0;
  }

  /* 閉じるボタン */
  #cm-nav-close {
    display: block;
    position: fixed;
    top: calc(var(--cm-topbar-h) + 10px);
    right: 15px;
    z-index: 10001;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
  }

  /* リスト調整 */
  #cm-global_menu .cm-menu {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  #cm-global_menu .cm-menu__item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  #cm-global_menu .cm-menu__item a {
    display: block;
    color: #fff !important;
    padding: 16px 24px;
    background: transparent;
    font-size: 16px;
  }
  #cm-global_menu .cm-menu__item a:hover {
    background: #000;
    color: #fff !important;
  }

  /* bodyスクロール防止 */
  body.cm-nav-open {
    overflow: hidden;
    touch-action: none;
  }
}

/* ===== 右端からのスライドに統一（1300px以下だけ上書き） ===== */
@media (max-width:1300px){
  /* 以前の left/right 指定を無効化して、右端基準で出し入れ */
  #cm-global_menu{
    position: fixed !important;
    top: calc(var(--cm-topbar-h) + var(--cm-header-h-sp)) !important;
    right: 0 !important;       /* 右端に固定 */
    left: auto !important;     /* もし以前の left:0 が生きていても無効化 */
    width: 300px !important;   /* ご指定どおり幅300px */
    height: calc(100vh - (var(--cm-topbar-h) + var(--cm-header-h-sp))) !important;
    background: #0c0c0c !important;
    border-left: 1px solid rgba(255,255,255,.1);
    overflow-y: auto;
    /* ★ ここがポイント：右の外に退避 → activeで0に */
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 9998;
    padding: 20px 0;
  }
  #cm-global_menu.active{
    transform: translateX(0);
  }

  /* オーバーレイと×ボタンはそのままでもOK。位置だけ最終調整 */
  #cm-nav-close{
    position: fixed;
    top: calc(var(--cm-topbar-h) + 10px);
    right: 15px;
    z-index: 10001;
    display: block;
  }

  /* ハンバーガーを右上に固定（既に設定済みなら不要） */
  .cm-drawer-btn{
    position: absolute;
    right: var(--cm-edge-pad);
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    z-index: 10000;
  }
}

@media (max-width:1300px){
  /* ドロワーメニュー本体 */
  #cm-global_menu{
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 300px !important;
    height: 100vh !important;                /* ← 高さMAX */
    background: #0c0c0c !important;
    color: #fff !important;
    z-index: 99999 !important;               /* ← 一番上に */
    transform: translateX(100%);
    transition: transform .35s ease;
    border-left: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto;
    padding-top: 70px;                       /* ← ×ボタンの分だけ上に余白 */
    box-sizing: border-box;
  }
  #cm-global_menu.active{
    transform: translateX(0);
  }

  /* ×ボタン */
  #cm-nav-close{
    display: block !important;
    position: fixed !important;
    top: 20px;
    right: 20px;
    z-index: 100000;                         /* ← メニューより上 */
    width: 32px;
    height: 32px;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity .2s;
  }
  #cm-nav-close:hover{
    opacity: 0.7;
  }

  /* ハンバーガーボタン（右上固定） */
  .cm-drawer-btn{
    position: absolute;
    right: var(--cm-edge-pad);
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    z-index: 100000; /* ← ×よりは下でOK */
  }

  /* メニューリスト */
  #cm-global_menu .cm-menu{
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  #cm-global_menu .cm-menu__item{
    border-bottom: 1px solid #222;
  }
  #cm-global_menu .cm-menu__item a{
    display: block;
    color: #fff !important;
    padding: 18px 24px;
    font-size: 13px;
    text-decoration: none;
  }
  #cm-global_menu .cm-menu__item a:hover{
    background: #000;
  }

  /* 背景オーバーレイ */
  #cm-nav-overlay{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99998;
    opacity: 0;
    transition: opacity .25s ease;
  }
  #cm-nav-overlay.active{
    display: block;
    opacity: 1;
  }

  /* 背景スクロール防止 */
  body.cm-nav-open{
    overflow: hidden;
    touch-action: none;
  }
}

/* ×ボタン：初期は非表示、開いた時だけ表示 */
#cm-nav-close{
  display: none !important;  /* ← ここ変更 */
  position: fixed !important;
  top: 20px;
  right: 20px;
  z-index: 100000;
  width: 32px;
  height: 32px;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
#cm-nav-close.active{
  display: block !important;  /* ← メニュー開いたときだけ出現 */
}
#cm-nav-close:hover{
  opacity: 0.7;
}


@media (max-width:780px){
#cm-topbar p {
    white-space: wrap;
  font-size:12px;
  text-align:center;
}
