@charset "utf-8";
@charset "UTF-8";

/* 共通初期化 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: all 0.3s ease;
  background-color: #f7f7f7;
}
.header.shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); /* optional */
}
body {
  transition: background-color 0.2s ease;
}
body.non-scroll {
  background-color: #f7f7f7 !important;
}
body.non-scroll .header {
  background-color: #f7f7f7 !important;
}

.header__inner {
  width: 100%;
  margin: 0 auto;
  padding: 20px 2vw 20px var(--side-padding);
  display: flex;
  justify-content: space-between;
  background-color: #f7f7f7;
  transition: background-color 0.3s ease;
}
.header__inner.shadow {
  border-bottom: 1px solid var(--color-border-gray);
}
body.non-scroll .header .header__inner {
  background-color: #f7f7f7 !important;
}

/* ロゴ */
.header .logo a {
  display: block;
  width: 27vw;
  min-width: 200px;
  max-width: 600px;
  transition: width 0.3s ease;
}
.header.shadow .logo a {
  width: 23vw;
  min-width: 200px;
  max-width: 500px;
}
.header #site-logo {
  width: 100%;
  height: auto;
  display: block;
  transition: width 0.3s ease;
}

/* スマホ */
@media (max-width: 960px) {
  .header__inner {
    position: relative;
    z-index: 1150;
    padding: 15px var(--side-padding) 8px;
  }
  .header .logo a {
    display: block;
    width: 63vw;
    min-width: 190px;
    max-width: 450px;
  }
  .header.shadow .logo a {
    width: 47vw;
    min-width: 180px;
    max-width: 400px;
  }
  .header .header__inner.shadow .logo a {
    width: 47vw;
    min-width: 180px;
    max-width: 400px;
  }
}

/* ハンバーガー */
.hamburger {
  width: 3.5%;
  height: 3.5%;
  min-width: 56px;
  position: fixed;
  top: 3.5%;
  right: 2%;
  cursor: pointer;
  z-index: 1200;
}
.hamburger__icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}
.hamburger .open-icon {
  opacity: 1;
  visibility: visible;
}
.hamburger.open .open-icon {
  opacity: 0;
  visibility: hidden;
}

/* ×アイコン */
.hamburger .close-icon {
  opacity: 0;
  visibility: hidden;
}
.hamburger.open .close-icon {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 960px) {
  .hamburger {
    width: 12%;
    height: auto;
    min-width: 40px;
    top: 20px;
    right: 2.3%;
  }
}

/* オーバーレイ共通 */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000; /* ← 背景 */
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* 表示時 */
.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
  display: block;
}

/* メニュー本体はスクロール可能にする */
#menuPanel {
  overflow-y: auto;
  max-height: 100dvh;
}

/* メニュー本体 */
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100dvh;
  background: #f7f7f7;
  z-index: 1050;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 開いた時 */
.menu-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* PC */
@media (min-width: 961px) {
  .menu-panel {
    left: auto;
    width: 500px;
  }
}

/* 内部コンテンツ */
.menu-panel__inner {
  padding: 130px 30px 40px;
  height: 100%;
  position: relative;
  z-index: 1060;
}

.menu-panel p {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}
.menu__tags {
  margin-bottom: 64px;
}
.menu__tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 10px;
  padding: 0;
  margin: 12px 0;
  list-style: none;
  max-height: 11em;
  overflow-y: hidden;
}
.menu__tags li {
  line-height: 1;
}
.menu__tags li a {
  display: inline-block;
  padding: 8px 10px;
  font-size: 1.3rem;
  color: #333;
  border: 1px solid #333;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  line-height: 1;
}
/* PC時のみ */
@media (min-width: 960px) {
  .menu__tags li a:hover {
    color: #fff;
    background-color: #333;
  }
}

.menu-panel p.category-title {
  border-bottom: 1px solid var(--color-border-gray);
  padding-bottom: 16px;
  margin-bottom: 0;
}
.category-list {
  list-style: none;
  margin: 0;
}

.category-list li {
  padding: 18px 8px 16px;
  border-bottom: 1px solid var(--color-border-gray);
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #333;
}

.cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 15px;
  transition: transform 0.3s ease;
}

.category-list li:hover .cat-dot {
  transform: scale(1.5);
}

.cat-text {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: flex-start; /* 左寄せにしたい場合 */
  margin-right: auto;
}

.cat-label {
  font-family: 'Nunito Sans';
  font-weight: 700;
  font-style: normal !important;
  font-size: 2.6rem;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.cat-name {
  font-size: 1.1rem;
  color: #333;
  margin-right: auto;
  line-height: 1.2;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.cat-arrow {
  width: 30px;
}

.menu__nav li {
  margin-bottom: 12px;
}
.menu__nav a {
  text-decoration: none;
  font-size: 1.1rem;
  color: #333;
  transition: 0.2s;
}

/* SPは非表示にしてもOK */
/* スマホ */
@media (max-width: 960px) {
  .menu-overlay {
    display: none !important;
  }
  .menu-panel__inner {
    padding: 27% var(--side-padding) 0;
  }
  .menu-panel p {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  .menu__tags ul {
    gap: 12px 9px;
    margin: 12px 0;
    max-height: 10em;
  }
  .menu__tags li a {
    padding: 7px 8px;
    font-size: 1.2rem;
  }
  .cat-dot {
    margin-right: 10px;
  }
  .cat-text {
    gap: 6px;
  }
  .cat-label {
    font-size: 2.3rem;
  }
  .cat-name {
    margin-top: 4px;
  }
}

/* 検索 */
input:focus,
textarea:focus,
select:focus {
  outline: 2px #333 solid;
  outline-offset: -1px;
}
#common_search_area {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 10px;
}
#common_search_area form {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
#common_search_area .search_div {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  position: relative;
}
#common_search_area input {
  border: none;
  background-color: #fff;
  padding: 10px 35px 10px 20px;
  border-radius: 30px;
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--color-border-gray);
}
input::placeholder {
  font-size: 1.5rem;
  color: #bbb;
}
#common_search_area .search-submit {
  display: none;
}
#common_search_area #submit {
  background: url('https://amazeplus7.itembox.design/item/amepla_top/images/search-icon.png') no-repeat center center;
  background-size: 16px 16px;
  border: none;
  width: 30px;
  height: 30px;
  position: absolute;
  right: 1%;
  cursor: pointer;
  margin-right: 5px;
}
@media (max-width: 960px) {
  input::placeholder {
    font-size: 1.4rem;
  }
}
