@charset "utf-8";
/* CSS Document */

.nav-item, 
.nav-item .btn-menu .flex {
  display: flex;
}
.nav-item .btn-menu .flex li {
  list-style: none;
}
.nav-item .dropdown > a,
.nav-item .btn-menu .flex li a {
  font-size: 12px;
  line-height: 1;
  display: block;
  text-align: center;
  width: 100px;
  padding: 8px 0;
  margin-right: 10px;
  border: 2px solid #FF91AA;
}
.nav-item .dropdown > a:hover,
.nav-item .btn-menu .flex li a:hover {
  color: #ffffff;
  background: #FF91AA;
}

/* --- マウスオーバーメニューの制御 --- */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -65px;
  background: #FF91AA url("../img/common/arrow_pulldown.webp") no-repeat center top;
  background-size: 100% 9px;
  /*color: #333;*/
  list-style: none;
  padding: 20px 10px 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 20;
  width: 230px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  
  /* 初期状態は非表示 */
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  transform: translateY(10px);
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li {
  font-size: 12px;
  line-height: 1;
  text-align: center;
  width: 100px;
  color: #ffffff;
}
.dropdown-menu li a {
  color: #6B7588;
  font-weight: 500;
  background: #ffffff;
  display: block;
  text-decoration: none;
  padding: 8px 0;
}
.dropdown-menu li a:hover {
  background: #FFD3DD;
}

.header-brand__sns {
  display: none;
}

@media (max-width: 1280px) {
  .nav-item {
    display: block;
  }
  .nav-item .btn-menu {
    margin-bottom: 20px;
  }
  .nav-item .btn-menu .flex {
    justify-content: space-between;
    column-gap: 10px;
    max-width: 320px;
    margin: 0 auto;
  }
  .nav-item .btn-menu .flex li {
    width: calc(50%);
  }
  .nav-item .btn-menu .flex li a {
    color: #F77287;
    font-size: 14px;
    width: 100%;
    padding: 7px 0;
    border: 1px solid #F77287;
    border-radius: 9999px;
  }
  .nav-item .dropdown > a {
    display: none;
  }
  .dropdown-menu {
    background-image: none;
    justify-content: space-between;
    width: auto;
    max-width: 320px;
    padding: 10px;
    margin: 0 auto 20px;
    position: relative;
    top: auto;
    left: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0);
  }
  .dropdown-menu li {
    width: calc(50% - 5px);
  }
  
  .header-brand__sns {
    display: block;
  }
}

/* 検索バーの初期状態（隠す） */
.search_item {
  position: relative;
}

.search_item button {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  margin-left: 10px;
}
.search_item button img {
  height: 30px;
  width: auto;
}
.search_item button span {
  color: #6B7588;
  font-size: 12px;
}

.search-bar {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background-color: rgba(0,0,0,0.5);
  padding: 5px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
  z-index: 20;
  
  /* 初期状態：上に隠れて透明 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s ease; /* 0.3秒で滑らかに動く */
}

/* 表示された時の状態 */
.search-bar.is-open::before {
  content: "";
  display: block;
  height: 10px;
  width: 100%;
  background: url("../img/common/arrow_search.webp") no-repeat center;
  position: absolute;
  top: -10px;
  right: -120px;
}
.search-bar.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-bar input {
  width: 100%;
  
  padding: 5px 10px;
  font-size: 12px;
  /*border: 1px solid #ccc;*/
  border: none;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
  
  background: #ffffff url("../img/common/btn_search.svg") no-repeat;
  background-position: right 10px center;
  background-size: auto 70%;
}

@media (max-width: 1280px) {
  .header-navbar__inner {
    padding-top: 70px;
  }
  .search_item {
    width: 100%;
    position: absolute;
    top: 20px;
  }
  .search_item button {
    display: none;
  }
  .search-bar {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    width: calc(100% - 60px);
    padding: 0;
    box-shadow: 0 10px 15px rgba(0,0,0,0);
  }
  .search-bar input {
    font-size: 14px;
    max-width: auto;
    width: 100%;
    padding: 10px;
    border-radius: 0;
    border: 1px solid #707070;
  }

}

/* ----- 検索結果 ----- */
.blk_result {
  display: flex;
  justify-content: center;
}

/* 検索結果コンテナの幅を100%にする */
.gcsc-branding, 
.gsc-control-cse {
  padding: 0 !important;
  width: 100% !important;
}

/* スマホ等で検索結果のフォントサイズや余白を調整 */
@media screen and (max-width: 768px) {
  .gsc-result {
    padding: 10px 20px !important;
  }
  .gs-title {
    font-size: 16px !important;
  }
}


/* --- ここから追記 --- */
@media (max-width: 1280px) {
  .header-toggle {
    /* 要素を縦並びの中央揃えにする */
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* ボタンのサイズと余白の調整 */
    width: 60px; 
    height: 65px;
    gap: 8px; /* 線と文字の間隔 */

    /* 文字のスタイル */
    color: #ffffff;
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase; /* 小文字で書いても大文字にする場合 */
  }

  /* 既存の before/after の位置がずれる場合の補正 */
  .header-toggle span {
    position: relative;
    margin-top: 8px; /* 三本線全体を少し上にずらして文字とのバランスを取る */
  }
  .header-toggle span:last-of-type {margin-bottom: 10px;}

  /* 線の位置を絶対配置で微調整（元の translateY を上書き） */
  .header-toggle span::before {
    transform: translateY(-10px) !important;
  }
  .header-toggle span::after {
    transform: translateY(10px) !important;
  }

  /* オープン時のバツ印の調整（中央で交差させる） */
  .header-toggle.is-open span::before {
    transform: rotate(-45deg) !important;
    width: 30px !important; /* 元の 40px だとはみ出す場合があるので調整 */
    left: 0 !important;
  }
  .header-toggle.is-open span::after {
    transform: rotate(45deg) !important;
    width: 30px !important;
    left: 0 !important;
  }
}
/* --- ここまで追記 --- */



