@charset "UTF-8";

/* ===== 共通スタイル ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  padding: 10px 20px;
  border-radius: 0;
  box-shadow: none;
}

.header-logo {
  position: relative;
  z-index: 3;
  margin-right: 10px;
  width: 120px;
}

.header-logo img {
  width: 100%;
}
header>div{
  width: 87%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}



/* 800px以上のとき浮いて見える */
@media (min-width: 800px) {
  header {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
  }
}

.desktop-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.header_btn1 {
  border-radius: 25px;
  background-color: #666666;
  padding: 4px 5px;
  text-align: center; /* 追加 */
}
.header_btn1 a {
  display: inline-block; /* 追加 */
  color: #666666;
  font-size: 18px;
  width: auto; /* 幅を100%から解除 */
  border-radius: 25px;
  padding: 4px 25px;
  background-color: #ffffff;
}
.header_btn1 img {
  height: 16px;
  margin-left: 3px;
}

.header_btn2 {
  margin-left: 20px;
}

.header_btn2 a {
  display: block;
  color: #ffffff;
  font-size: 18px;
  width: 100%;
  border-radius: 25px;
  background-image: url(../../img/1355802542.jpg);
  background-size: cover;
  padding: 7px 25px;
}

.header_btn3 {
  border-radius: 25px;
  background-image: url(../../img/1355380212.jpg);
  background-size: cover;
  padding: 7px 5px;
  margin-left: 20px;
}

.header_btn3 a {
  color: #478DCB;
  width: 100%;
  border-radius: 25px;
  padding: 3px 25px;
  font-size: 18px;
  background-color: #ffffff;
}

.header-content {
  display: flex;
  justify-content: flex-end;
  width: auto;
  margin-left: auto; /* ← これが右寄せのポイント */
}

/* ===== ハンバーガーメニュー初期状態 ===== */
#menu,
#menu-bar {
  display: none;
}

/* ===== ハンバーガーメニューのバー ===== */
.bar {
  height: 5px;
  width: 100%;
  background-color: #4d4d4d;
  display: block;
  border-radius: 5px;
  transition: 0.3s ease;
}

#bar1 {
  transform: translateY(-4px);
}
#bar3 {
  transform: translateY(4px);
}

/* メニュー（ナビ）初期は右側に隠す */
.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-image: url(../../img/861.jpg);
  background-size: cover;
  background-position: center;
  padding: 10px 20px;
  border-radius: 10px 0 0 10px;
  box-shadow: -3px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 1000;
  display: block;
  overflow-y: auto;
}
.menu_logo{
    width: 120px;
    height: auto;
}
.menu_logo img{
    width: 100%;
}

.nav ul {
  padding: 0;
  list-style: none;
  
}
.nav1{
    margin-top: 50px;
    margin-bottom: 20px;
}

.nav1 li {
  padding: 6px 0;
}

.nav1 a {
  color: rgb(66, 66, 66);
  font-size: 16px;
  text-decoration: none;
}

.nav li a:hover {
  font-weight: bolder;
}

/* メニュー開いた状態 */
.nav.open {
  right: 0;
}



#menu-overlay.show {
  display: block;
  opacity: 1;
}

.nav_btn1 {
  border-radius: 25px;
  background-color: #666666;
  padding: 4px 4px;
  text-align: center; /* 追加 */
  width: 295px;
}
.nav_btn1 a {
  display: inline-block; /* 追加 */
  color: #666666;
  font-size: 18px;
  width: auto; /* 幅を100%から解除 */
  border-radius: 25px;
  padding: 4px 25px;
  background-color: #ffffff;
  text-decoration: none;
}
.nav_btn1 img {
  height: 16px;
  margin-left: 3px;
}



.nav_btn2 {
    border-radius: 25px;
    background-image: url(../../img/1355802542.jpg);
    background-size: cover;
    padding: 7px 25px;
    width: 150px;
    text-align: center;
}

.nav_btn2 a {
    text-decoration: none;
    color: #ffffff;
}

.nav_btn3 {
    width: 150px;
    border-radius: 25px;
    background-image: url(../../img/1355380212.jpg);
    background-size: cover;
    padding: 7px 5px;
}

.nav_btn3 a {
    text-decoration: none;
  color: #478DCB;
  width: 100%;
  border-radius: 25px;
  padding: 3px 38px;
  background-color: #ffffff;
}
.nav_btn4 {
    width: 150px;
    border-radius: 25px;
    background-image: url(../../img/1355380212.jpg);
    background-size: cover;
    padding: 7px 5px;
}

.nav_btn4 a {
    text-decoration: none;
  color: #478DCB;
  width: 100%;
  border-radius: 25px;
  padding: 3px 30px;
  background-color: #ffffff;
}
.nav_flex{
    display: flex;
    width: 100%;
    max-width: 340px;
    justify-content: space-between;
    margin-top: 30px;
}


@media (max-width: 1200px) {

header>div{
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

}


@media (max-width: 800px) {

    .header-logo {
    position: relative;
    z-index: 3;
    width: 120px;
}
  .header-content {
    display: none;
  }

  #menu,
  #menu-bar,
  #menu-overlay {
    display: block;
  }

  #menu-bar {
    width: 45px;
    height: 40px;
    position: absolute;
    right: 20px;
    top: 30px;
    cursor: pointer;
    z-index: 1001;
  }
}

/* ===== ハンバーガーメニュー開閉アニメーション ===== */
.change .bar {
  background-color: #4d4d4d; /* ダークグレーに */
}

.change #bar1 {
  transform: translateY(4px) rotateZ(-45deg);
}

.change #bar2 {
  opacity: 0;
}

.change #bar3 {
  transform: translateY(-6px) rotateZ(45deg);
}

.header_btn1:hover,
.header_btn2:hover,
.header_btn3:hover {
    transform: rotate(-3deg);
}

.to_goods{
    max-width: 200px;
    width: 100%;
}
.to_goods img{
    width: 100%;
}