/*-------------------------------------------
全体背景色
-------------------------------------------*/

body {
  background-color: #fffbf7;
}

/*-------------------------------------------
ヘッダー
-------------------------------------------*/

header {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 6%;
  top: 0;
  left: 0;
  right: 0;
}

.navbar-container {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-menu li:last-child {
  margin-right: 0;
}

.site-title a {
  font-family: "Monoton", sans-serif;
  /* Monoton タイトルフォントStyle */
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.2rem, 5vw, 2.5rem);
  line-height: 1px;
  display: block;
}

/*----------　ヘッダー　検索パート　　----------------*/
.search_container {
  box-sizing: border-box;
  margin-right: 10px;
}

.search_container input[type="text"] {
  border-bottom: 1px solid var(--color-main);
  height: 2em;
  width: 245px;
  overflow: hidden;
}

.search_container input[type="text"]:focus {
  outline: 0;
}

.search_container input[type="submit"] {
  cursor: pointer;
  font-family: FontAwesome;
  font-size: 1.3em;
  border: none;
  background: none;
  color: var(--color-main);
  outline: none;
  display: inline-block;
  vertical-align: middle;
}

/*-------------------------------------------
ハンバーガーメニュー
-------------------------------------------*/

.hamburger {
  display: none;
  height: 60px;
  margin-left: auto;
  position: relative;
  z-index: 10;
  width: 60px;
  border: none;
  background-color: transparent;
}

.hamburger.-active .hamburger__line {
  background-color: transparent;
}

.hamburger.-active .hamburger__line::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger.-active .hamburger__line::after {
  top: 0;
  transform: rotate(-45deg);
}

.hamburger.-active .hamburger__text::before {
  content: "閉じる";
}

.hamburger__line {
  display: block;
  height: 2px;
  position: absolute;
  top: 23px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  background-color: var(--color-main);
  transition: 0.4s;
}

.hamburger__line:before,
.hamburger__line:after {
  content: "";
  display: block;
  height: 100%;
  position: absolute;
  width: 100%;
  background-color: var(--color-main);
  transition: inherit;
}

.hamburger__line:before {
  top: -6px;
}

.hamburger__line:after {
  top: 6px;
}

.hamburger__text {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.hamburger__text::before {
  content: "メニュー";
  text-align: center;
  color: var(--color-main);
  font-size: 10px;
  font-weight: 900;
}

.header {
  width: 300px;
}

.header__nav-area {
  position: fixed;
  top: 0;
  left: -100%;
  z-index: 9;
  height: 100vh;
  width: 300px;
  visibility: hidden;
  padding-top: 60px;
  background: linear-gradient(
    to bottom,
    rgba(74, 43, 0, 0.9) 0%,
    rgba(103, 66, 15, 0.9) 50%,
    rgba(133, 96, 45, 0.9) 100%
  );
  transition: 0.4s;
}

.header__nav-area.-active {
  left: 0;
  visibility: visible;
}

.global-navigation {
  padding-top: 40px;
  padding-right: 25px;
  padding-bottom: 120px;
  padding-left: 25px;
}

.global-navigation__list > li {
  padding-bottom: 20px;
  border-bottom: 2px solid #e7e9ee;
}

.global-navigation__list > li + li {
  margin-top: 20px;
}

.global-navigation__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-weight: 900;
  transition: color 0.4s;
  font-size: 0.875rem;
}

.global-navigation__link.-accordion {
  position: relative;
  background: none;
  border: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  padding: 0;
}

.global-navigation__link.-accordion::after {
  content: "";
  display: block;
  height: 12px;
  position: absolute;
  top: 50%;
  right: 5px;
  width: 2px;
  background-color: #fff;
  transform: translateY(-50%);
  transition: transform 0.4s;
}

.global-navigation__link.-accordion::before {
  content: "";
  display: block;
  height: 2px;
  position: absolute;
  top: 50%;
  right: 0;
  width: 12px;
  background-color: #fff;
  transform: translateY(-50%);
}

.global-navigation__link.-active::after {
  transform: translateY(-50%) rotate(-90deg);
}

.accordion {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: 0.4s;
}

.accordion.-active {
  height: auto;
  padding-top: 30px;
  visibility: visible;
}

.accordion__list li {
  font-size: 0.75rem;
}

.accordion__list li + li {
  margin-top: 21px;
}

.accordion__link {
  color: var(--color-main);
}

/*-------------------------------------------
footer
-------------------------------------------*/
footer {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: end;
}

/*-------------------------------------------
サイドナビ（1タブ＋フォーム1本化 用）
-------------------------------------------*/
:root {
  --tab-bg: #4a2b00;
  /* タブ背景色 */
  --tab-text: #fffbf7;
  /* タブ文字色 */
  --panel-bg: #4a2b00;
  /* パネル背景色（＝タブと同系） */
  --panel-text: #fffbf7;
  --panel-accent: #85602d;
  /* チェックボックス色など */
  --panel-link: #fffbf7;
}

/* サイドナビ本体 */
.side-nav {
  position: fixed;
  top: 100px;
  right: 0;
  z-index: 100;
  width: 50px;
  pointer-events: auto;
}

/* タブ本体（縦書き） */
.side-nav .side-tab {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-width: 44px;
  min-height: 120px;
  padding: 30px 6px;
  color: var(--tab-text);
  font-weight: 500;
  text-decoration: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.1em;
  border-radius: 10px 0 0 10px;
  transform-origin: right center;
  transition: transform 0.2s ease, filter 0.2s ease;
  border: 0 solid transparent;
  top: 50px;
  background: var(--tab-bg);
  margin-left: 1px;
}

/* 展開パネル：右のオフセットをタブ幅に合わせて調整 */
.side-nav .index-panel {
  position: absolute;
  right: 50px;
  top: 50px;
  display: block;
  min-width: 37vw;
  max-height: 75vh;
  border-radius: 10px;
  background: linear-gradient(to bottom, #4a2b00 0%, #67420f 50%, #85602d 100%);
  color: var(--panel-text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  padding: 20px 24px;
  overflow-y: auto;
}
.index-panel[hidden] {
  display: none !important;
}

/* 各カテゴリー heading */
.side-nav .searchandfilter h4 {
  border-top: 1px solid #fffbf7;
  border-bottom: 1px solid #fffbf7;
  margin: 0;
  padding: 10px 5px;
}

/* WEBサイト（site_type） */
.side-nav .searchandfilter li:nth-child(1) {
  background: transparent;
}

/* デザイン（design_type） */
.side-nav .searchandfilter li:nth-child(2) {
  background: transparent;
}

/* カラー（color） */
.side-nav .searchandfilter li:nth-child(3) {
  background: transparent;
}

.side-nav .searchandfilter li .cat-item {
  background: transparent;
}

.searchandfilter ul > li > ul:not(.children) {
  padding: 16px 10px;
}

/* チェックボックス行 */
.side-nav .searchandfilter li {
  margin: 6px 0;
}

/* 各チェックボックスの文字 */
.side-nav .searchandfilter label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--panel-text);
  font-weight: 500;
}

/* checkboxの色 */
.side-nav .searchandfilter input[type="checkbox"] {
  accent-color: #FFEA1E;
}

/* 件数：必要なら表示（今は表示したいのでblock）。非表示なら display:none; に */
.side-nav .searchandfilter .sf-count {
  display: inline-block;
  opacity: 0.85;
  margin-left: 4px;
  font-size: 12px;
}

/* 送信ボタン（auto_submit=0 のため表示する） */
.side-nav .searchandfilter input[type="submit"] {
  display: inline-block;
  background: #fffbf7;
  color: var(--tab-bg);
  border: 1px solid var(--tab-bg);
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
}

.side-nav .searchandfilter input[type="submit"]:hover {
  background: var(--tab-bg);
  color: #fffbf7;
  border: 1px solid var(--tab-bg);
}

/* サイドバー内の共通文字色*/
.side-nav .searchandfilter {
  color: var(--panel-text);
}

/*-------------------------------------------
ヘッダー検索フォームのライブサーチ
-------------------------------------------*/
#keywords-search-results {
  display: none;
}

#keywords-search-results.is-active {
  display: block;
  background: #fff;
  border: 1px solid #ddd;
  max-width: 350px;
  max-height: 400px;
  height: auto;
  overflow-y: scroll;
  position: absolute;
  right: 5%;
  top: 130px;
  z-index: 9999;
}
#clear-button {
  display: none;
}

#keywords-search-results #results-list {
  padding: 5px 10px;
  min-width: 350px;
  min-height: 200px;
}

#keywords-search-results #results-list li {
  list-style: none;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

#keywords-search-results #results-lis .result-text {
  font-size: 0.75rem;
}

#keywords-search-results #results-list .result-img {
  width: 100px;
  height: auto;
}

#keywords-search-results #results-list .result-title {
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 5px;
}

/*-------------------------------------------
To Top
-------------------------------------------*/
.to-top {
  display: none;
  width: 50px;
  height: 50px;
  background-color: #4a2b00;
  color: #fffbf7;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 50%;
  position: fixed;
  right: 25px;
  bottom: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: background-color 0.3s ease;
}

.to-top:hover {
  background-color: #85602d;
}

/*-------------------------------------------
レスポンシブ
-------------------------------------------*/

@media (max-width: 768px) {
  header {
    padding-inline: 20px;
    padding-block: 10px;
    height: 100px;
  }

  header .navbar-container {
    margin-left: auto;
    display: none;
  }

  header .pc ul {
    display: none;
  }
}

@media (min-width: 769px) {
  .responsive-nav {
    display: none;
  }
}

/* モバイルメニューのスタイル */
@media (max-width: 992px) {
  header .navbar-container {
    display: none;
  }

  header .hamburger {
    display: block;
  }
  #keywords-search-results.is-active {
    display: none;
  }
  .side-nav .index-panel {
    min-width: 50vw;
    max-height: 70vh;
  }
}
@media (max-width: 480px) {
  .header__nav-area {
    width: 80vw;
  }
  .side-nav .index-panel {
    min-width: 80vw;
    max-height: 70vh;
  }
}