/* ---------------------------- リセットcss ---------------------------- */
@charset "utf-8";

body,
div,
dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td,
xmp {
  margin: 0;
  padding: 0
}

table {
  border-collapse: collapse;
  border-spacing: 0
}

fieldset,
img {
  border: 0
}

ol,
ul {
  list-style: none
}

caption,
th {
  text-align: left
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal
}

h3 {
  font-size: 70%;
  color: #ff0000;
  font-weight: normal
}

* {
  box-sizing: border-box;
}

body {
  color: #222;
  background-color: #fff;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-size: 100%
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button {
  cursor: pointer;
}

/* ---------------------------- 基本設定 ---------------------------- */
html {
  scroll-behavior: smooth;
}

/* ---------------------------- 指定フォントの適用など ---------------------------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  box-sizing: border-box;
  font-family: 'M PLUS Rounded 1c', 'Noto Serif JP', sans-serif;
  color: #333;
  background-color: #fffaf7;


  margin: 0;
  padding: 0;
}

main {
  flex: 1;
}

html,
body {
  height: auto;
}

/* ---------------------------- ヘッダー ---------------------------- */
header {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/*読み込み完了でフェードイン*/
header.loaded {
  opacity: 1;
}

/*ヘッダー内部コンテナ設定*/
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0;
  padding: 0.5rem 2rem;
  height: 80px;
  /*全体の高さを固定*/
  max-width: 100%;
}

/* ---------------------------- ヘッダーロゴ ---------------------------- */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 150px;
  width: auto;
  display: block;
  margin-left: 0rem;
}

/* ---------------------------- ヘッダーナビゲーション ---------------------------- */
.nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover {
  color: #d37b00;
}

/*pcではナビゲーションにshopボタン非表示*/
.hidden-li {
  display: none;
  background: none;
  border: none;
}

.header-shop-icon {
  width: 60px;
  height: auto;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.26, .54, .32, 1.5);
}

.header-shop-icon:hover {
  transform: translateY(-6px);
}

/* ---------------------------- フッター ---------------------------- */
footer {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  text-align: center;
  padding: 0 0;
  font-size: 1.5rem;
  color: #666;
}

/*　snsリンク topへ戻る処理 ナビゲーション */
.footer-wrapper {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;

  .top-botton-img {
    width: 60px;
    cursor: pointer;
    margin: 0 auto;
    cursor: pointer;
    /* アニメーション用の設定（画像が自然に動く） */
    transition: transform 0.25s cubic-bezier(.26, .54, .32, 1.5);
  }

  /* SNSアイコン並び */
  .sns-wrapper {
    display: flex;
    gap: 1px;

    .sns-icon {
      display: inline-block;
      /* SNSアイコンバウンド調整 */
      cursor: pointer;
      transition: transform 0.25s cubic-bezier(.26, .54, .32, 1.5);
    }

    .sns-icon img {
      width: 70px;
      height: auto;
    }

    /* SNSアイコンバウンド */
    .sns-icon:hover {
      transform: translateY(-6px);
    }
  }


  /* フッターナビゲーション */

  .footer-nav ul {
    display: flex;
    gap: 30px;
    /* ナビ同士の間隔 */
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.2s;
  }

  .footer-nav a:hover {
    color: #d37b00;
  }

  /* ホバー時の動き（バウンド） */
  .top-botton-img:hover {
    transform: translateY(-6px);
  }

  .page-top {

    display: block;
    width: 5rem;

  }

  .top-botton-text {
    display: block;
    padding-top: 0.1px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;

  }

}

.footer-inner {

  background-image: url(../img/footer_img.PNG);
  background-size: contain;
  /* 画像全体を表示 */
  background-repeat: no-repeat;
  background-position: center;
  /* 余白はセンターに寄せる */
  width: 100%;
  aspect-ratio: 2160 / 300;
  /* 画像比率で高さを自動調整 */
  display: block;
  text-align: center;
  /* pタグの文字を中央に */
  padding: 10px 0;
  /* 文字と画像の余白 */
}

/* フッター規約リンク */
.footer-products-list {
  margin-top: 5px;
  text-align: center;

  /* リストを横並びにする */
  .footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;


  }
}

/* コピーライトテキスト */
.copyright-text {
  font-size: 1rem;
}

/* フッター規約リンクスタイル */
.footer-links a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
  color: #d37b00;
}


/* ---------------------------- 　　ヘッダーハンバーガーメニューPC共通設定 ---------------------------- */

/*pcでは非表示*/
.menu-toggle {

  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.26, .54, .32, 1.5);
}

.menu-toggle img {
  width: 40px;
  height: auto;
  display: block;

}

.menu-toggle:hover {
  transform: translateY(-6px);

}

/* ---------------------------- 　　pc用ヘッダーナビゲーション設定 ---------------------------- */
.nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/*チラつき防止*/
footer.loaded {
  opacity: 1;
}

/* ---------------------------- レスポンシブ対応 ---------------------------- */
@media (max-width:768px) {

  /* ヘッダー内を横並びにして左右配置 */
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    position: relative;
  }

  /* ヘッダーロゴの大きさ調整 */
  .logo img {
    height: 80px;
  }


  /*スマホ画面サイズでは非表示*/
  .header-shop-icon {
    display: none;
    background: none;
    border: none;
  }

  /*ヘッダーナビゲーションメニュー(スマホ時)にshopボタン表示*/
  .hidden-li {
    display: block;

  }

  .header-nav-shop-icon {
    width: 50px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(.26, .54, .32, 1.5);

  }

  .header-nav-shop-icon:hover {
    transform: translateY(-6px);
  }


  /* ヘッダーハンバーガーメニューの位置とサイズ */
  .menu-toggle {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: auto;
    cursor: pointer;
    z-index: 20;


  }

  .menu-toggle img {
    width: 100%;
    height: auto;
  }

  /* メニューリストの非表示設定 */
  .nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.98);
    position: absolute;
    top: 70px;
    /* ヘッダーの下に出てくる */
    left: 0;
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    /* ふわっとアニメーション設定 */
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.6s ease;
    transform: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* ハンバーガークリックで表示されるメニュー */
  .nav.active ul {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  /* メニュー項目の見た目 */
  .nav ul li {
    margin: 0.5rem 0;
  }

  /* メニュー内のリンク */
  .nav ul a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
  }

  /*フッターレスポンシブ対応*/
  .footer-wrapper {
    display: flex;
    /* 縦に並べる */
    flex-direction: column;
    align-items: center;
    gap: 20px;

    /* ライン・インスタ画像アイコンサイズ */
    .sns-wrapper .sns-icon img {
      width: 70px;
      /* 幅を30pxに縮小 */
      height: auto;
      /* 高さは自動調整 */
    }



    .top-botton-img {
      width: 45px;
    }

    /* フッターナビゲーションを縦に並べる */
    .footer-nav ul {
      display: flex;
      flex-wrap: wrap;
      /* 複数列にするためにラップ */
      justify-content: center;
      gap: 10px 40px;

      .footer-nav li {
        width: calc(50% - 20px);
        /* 2列にする。gap分を引く */
        text-align: center;
        /* 中央揃え */
        margin-bottom: 10px;
      }
    }
  }

}