@charset "UTF-8";
/* 基本設定 */
body {
  margin: 0;
  font-family: sans-serif;
}

/*------------------------------ ヘッダー全体 ------------------------------*/
.header {
  position: sticky;
  top: 0;
  background-color: #fff;
  color: #322B29;
  padding: 15px 0;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.5);
  z-index: 10;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*max-width: 1792px;*/
  margin: 0 64px;
}

/* ロゴ */
.header-logo {
  width: 100%;
  font-size: 24px;
  font-weight: bold;
  color: #322B29;
  text-decoration: none;
}
.header-logo img, .header-logo p {
  display: inline-block;
  vertical-align: middle;
}
.header-logo img {
  width: 40%;
  min-width: 180px;
}
.header-logo p {
  font-size: 0.7em;
  margin-left: 5px;
}

/* メニュー＆SNSアイコン */
.header-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

/* ナビゲーションメニュー */
.nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}
.nav-menu ul li {
  margin-left: 20px;
}
.nav-menu a {
  color: #322B29;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  transition: .3s;
}

nav ul li a::after {
  content: '';
  display: block;
  height: 1px;
  width: 80%;
  background: #79D68F;
  position: absolute;
  bottom: 0;
  left: 10%;
  transform: scale(0, 1);
  transition: .3s;
}

nav ul li a:hover {
  color: #79D68F;
}

nav ul li a:hover::after {
  transform: scale(1, 1);
}

.header-shop-icon {
  display: flex;
  width: 25%;
  justify-content: center;
  align-items: center;
}
.header-shop-icon img {
  width: 100%;
}
.header-shop-icon a {
  text-decoration: none;
  margin: 10px;
}

/* ハンバーガーメニュー（初期状態では非表示） */
.menu-toggle {
  display: none;
}

.hamburger-menu {
  display: none;
  /* PCでは非表示 */
  cursor: pointer;
  width: 25px;
  height: 21px;
  position: relative;
  z-index: 1100;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #322B29;
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
}

/* 3本線の位置を調整 */
.hamburger-line:nth-child(1) {
  top: 0;
}

.hamburger-line:nth-child(2) {
  top: 9px;
}

.hamburger-line:nth-child(3) {
  top: 18px;
}

/*------------------------------ フッター ------------------------------*/
footer {
  margin: 0 64px 64px;
}
footer p {
  font-size: 0.7em;
}

.footer-container {
  margin: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #322B29;
  text-decoration: none;
}
.footer-logo img {
  width: 100%;
}
.footer-logo p {
  font-size: 14px;
  margin-bottom: 10px;
}

/* フッターメニュー */
.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}
.footer-nav ul li {
  padding: 0 20px;
}

.footer-nav a {
  color: #322B29;
  text-decoration: none;
  font-size: 16px;
}

/* コピーライト */
.copylight {
  margin-top: 64px;
}

/* ------------------------------ レスポンシブ対応 (960px以下) ------------------------------ */
@media (max-width: 960px) {
  .header-container {
    margin: 0 32px;
  }

  .header-logo p {
    margin: 0;
    font-size: 0.55em;
  }

  .header-logo img {
    width: 45%;
    max-width: 180px;
    min-width: 0;
  }

  /* ハンバーガーメニューを表示 */
  .hamburger-menu {
    display: block;
  }

  /* チェックが入った時のハンバーガーメニューの変化（×印&白に変更） */
  .menu-toggle:checked ~ .hamburger-menu .hamburger-line {
    background-color: #fff;
  }

  .menu-toggle:checked ~ .hamburger-menu .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
  }

  .menu-toggle:checked ~ .hamburger-menu .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .hamburger-menu .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
  }

  /* PC用のナビゲーションを非表示に */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 65%;
    /* メニューの幅 */
    height: 100vh;
    background-color: #79D68F;
    padding-top: 80px;
    padding-left: 30px;
    /* 初期状態では画面外（右側）に隠す */
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    /* スライドのアニメーション */
    z-index: 1000;
  }
  .nav-menu ul {
    flex-direction: column;
  }
  .nav-menu ul li {
    margin: 0;
    padding: 15px 0;
    border: none;
  }
  .nav-menu a {
    color: #fff;
    font-size: 0.9em;
  }

  .header-shop-icon {
    display: none;
  }

  /* sp版メニュー展開時のオーバーレイ（背景） */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    /* 通常時は非表示 */
    z-index: 999;
    transition: .2s;
  }

  /* チェックが入った時にメニューを画面内に表示 */
  .menu-toggle:checked ~ .nav-menu {
    transform: translateX(0);
  }

  /* チェックボックスがONになったらオーバーレイを表示 */
  .menu-toggle:checked ~ .overlay {
    display: block;
  }

  /* 背景固定用（JavaScriptでこのクラスをbodyに付与する） */
  body.body-fixed {
    overflow: hidden;
  }

  /* ------------------------------ フッター（sp版） ------------------------------ */
  footer {
    margin: 0 32px 64px;
  }
  footer p {
    font-size: 0.5em;
  }

  .footer-container {
    display: block;
  }

  .footer-logo img {
    width: 60%;
    max-width: 250px;
  }

  .footer-nav ul {
    margin: 20px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .footer-nav ul li {
    padding: 0;
  }
}
