@charset "utf-8";
/* CSS Document */
body {
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-family: "Kiwi Maru", serif;
  font-weight: 400;
  font-style: normal;
  color: #3f3203;
}
/*カート*/
.hero-ui {
   display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  width: 100%;
}
.header-icons {
  display: flex;
  align-items: center;
  padding-right: 80px;
}
.left-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.header-icons {
  display: flex;
  align-items: center;
}
/* カート */
.cart-btn img {
  width: 50px;
  display: block;
}
.cart-btn {
  position: relative; /* 数字の基準 */
  display: inline-block;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  background: #d9534f;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  border-radius: 50%;
  display: none;          /* ← 最初は非表示 */
  align-items: center;
  justify-content: center;
  line-height: 18px;
}

/* ===== ハンバーガーボタン ===== */
#menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 10000;
  width: 28px;
  height: 22px;
}
#menu-btn img {
  width: 48px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#menu-btn:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}
/* ===== メニュー本体 ===== */
#menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #EFE5CA;
  padding: 80px 30px;
  transition: right 0.4s ease;
  z-index: 9999;
}
#menu.active {
  right: 0;
}
/*▼切り替え*/
.arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  transition: transform 0.3s ease;
}
.has-sub.active .arrow {
  transform: rotate(90deg);
}
/*スライドショー*/
#graphic {
  position: relative;
  width: 100%;
  height: 60vh;          /* 好きな高さに調整 */
  overflow: hidden;
}
#graphic ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#graphic li {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease, transform 0.9s ease; /* ← ゆっくり */
}
#graphic li.now {
  opacity: 1;
  z-index: 1;
}
#graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* 全体表示 */
  display: block;
}
/* ===== メニューリスト ===== */
#menu ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#menu li {
  margin-bottom: 22px;
}

/* メインメニューのaタグ */
#menu > ul > li > a {
  text-decoration: none;
  font-size: 16px;
  color: #5c4a2f;
  position: relative;
  display: block; /* リンクの領域を横いっぱいに広げる */
  line-height: 1.2; /* 高さを固定してガタつき防止 */
}

/* ホバー時の元の文字（Categoryなど）の処理 */
#menu > ul > li > a:hover {
  color: rgba(92, 74, 47, 0); /* 元の文字を完全に透明にする */
}

/* 矢印（span）もホバー時に透明にする */
#menu > ul > li > a:hover .arrow {
  opacity: 0;
}

/* ホバー後に表示される文字（data-hover） */
#menu > ul > li > a::after {
  content: attr(data-hover);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  color: #5c4a2f; /* 透明にならず、しっかり色を指定 */
  opacity: 0; /* 最初は隠す */
  pointer-events: none; /* ホバーの邪魔をしない */
  transition: opacity 0.5s ease;
  white-space: nowrap; /* 折り返しを防止 */
  transform: translateX(-3px);
}

/* ホバーした時に data-hover を表示 */
#menu > ul > li > a:hover::after {
  opacity: 1;
}

/* ===== サブメニュー（変更なし：そのまま維持） ===== */
#menu .sub-menu {
  list-style: none;
  margin-left: 0;
  padding-left: 25px;
  max-height: 0;
  overflow: hidden;
  margin-top: 10px;
  border-left: 2px solid #d8c9a2;
  transition: max-height 0.4s ease;
}

#menu .sub-menu a {
  font-size: 13px;
  color: #8a7a5a;
  display: block;
}

#menu .has-sub.active .sub-menu {
  max-height: 500px; /* 少し余裕を持たせました */
}
/* --- ホバー時、またはサブメニューが開いている時（active）の共通設定 --- */

/* 1. 元の文字（Category）を透明にする */
#menu > ul > li:hover > a,
#menu > ul > li.has-sub.active > a {
  color: transparent !important;
}

/* 2. 矢印（▶）を透明にする */
#menu > ul > li:hover > a .arrow,
#menu > ul > li.has-sub.active > a .arrow {
  opacity: 0;
}

/* 3. 日本語（商品一覧▼）を表示する */
#menu > ul > li:hover > a::after,
#menu > ul > li.has-sub.active > a::after {
  opacity: 1 !important;
  visibility: visible;
}
/*ロゴ*/
#logo {
  position: relative;
  z-index: 2; /* 前に出すために必要 */
  padding: 10px 10px 0 10px;
  margin: 0;
}
.catch {
  margin: 0;
  padding: 0 45px;
  font-size: 10px;
  font-weight: bold;
  color: #B08323;
}
/*フッター*/
footer{
  background-color: #3F3203;
  text-align: center;
  width: 100vw;
  color: #ffffff;
}
/* フッター全体 */
#sub {
  padding: 20px 0;
}
/* 横並び＋中央 */
.footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0;
  margin: 0;
}
/* 共通 */
.footer-menu li {
  position: relative;
}
.footer-menu a,
.sub-toggle2 {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 0;
}
/* サブメニュー */
.sub-menu2 {
  list-style: none;
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #3F3203;
  padding: 10px 0;
  min-width: 160px;
  /* 初期は閉じる */
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}
/* 開いた状態 */
.has-sub2.open .sub-menu2 {
  opacity: 1;
  max-height: 300px;
}
/* サブメニュー中 */
.sub-menu2 li a {
  display: block;
  padding: 6px 15px;
  font-size: 13px;
  text-align: center;
}
/* 矢印アニメ */
.arrow2 {
  display: inline-block;
  transition: transform 0.3s ease;
}
.has-sub2.open .arrow2 {
  transform: rotate(90deg);
}
address {
  max-width: 380px;   /* 中央の箱の幅（調整OK） */
  margin: 0 auto;     /* フッター中央に配置 */
  text-align: left;   /* 中の文字だけ左揃え */
  padding: 20px;
  font-size: 14px;
}
/*メイン*/
#main {
  max-width: 700px;
  margin: 0 auto;
  background-color: #e9b77b;
}
#more {
  display: block;
  width: 100px;
  margin-left: auto;
}
#more img {
  transition: transform 0.5s ease, opacity 0.5s ease;
  width: 70px;
}
#more img:hover {
  transform: translateY(6px);
  opacity: 0.6;
}
#rank {
margin: 0;
padding-left: 10px;
padding-top: 30px;
}
#rank img {
  width: 450px;
}
.product-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 600px;
  margin: 0 auto;
}

/* 表示枠 */
.slider-window {
  width: 600px;           /* 表示したい横幅 */
  overflow: hidden;
}

/* 横に並べる */
.slider-track {
  display: flex;
  gap: 5px;
}

/* 商品 */
.slider-track li {
  list-style: none;
  flex: 0 0 180px;
}

.slider-track img {
  width: 100%;
  display: block;
  border-radius: 10px;
}
.image-wrap {
  position: relative; /* 基準 */
  padding-top: 50px;
}

.image-wrap img {
  width: 500px;
  display: block;
}
.image-wrap .text {
  position: absolute;   /* 重ねる */
  bottom: 100px;
  left: 400px;
  color: #fff;
  font-size: 13px;
  background: rgba(0,0,0,0.4);
  padding: 10px 20px;
  border-radius: 4px;
}
.image-wrap .text .stlong {
  font-size: 20px;
}
/*フェードイン*/
.fade-target {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* 表示されたら */
.fade-target.is-show {
  opacity: 1;
  transform: translateY(0);
}
/*菓子パン*/
#sweets {
  padding-left: 10px;
  padding-top: 40px;
}
.sweets {
  display: grid;
  width: 500px;
  height: 960px;
  grid-template-columns: auto auto;
  grid-template-rows: 1fr 1fr 1fr;
  text-align: center;
  margin: 0 auto;
}
.sweets1 {
  grid-column: 1/3;
  grid-row: 1/2;
}
.sweets2 {
  grid-row: 2/3;
  grid-column: 1/2;
}
.sweets3 {
  grid-row: 2/3;
  grid-column: 2/3;
}
.sweets4 {
  grid-row: 3/4;
  grid-column: 1/2;
}
.sweets5 {
  grid-row: 3/4;
  grid-column: 2/3;
}
.sweets2:hover,
.sweets3:hover,
.sweets4:hover,
.sweets5:hover {
  opacity: 0.5;
  transform: scale(0.95);
}
#bread {
  padding-left: 10px;
  padding-top: 40px;
}
.bread {
  display: grid;
  width: 500px;
  height: 960px;
  grid-template-columns: auto auto;
  grid-template-rows: 1fr 1fr 1fr;
  text-align: center;
  margin: 0 auto;
}
.bread1 {
  grid-column: 1/3;
  grid-row: 1/2;
}
.bread2 {
  grid-row: 2/3;
  grid-column: 1/2;
}
.bread3 {
  grid-row: 2/3;
  grid-column: 2/3;
}
.bread4 {
  grid-row: 3/4;
  grid-column: 1/2;
}
.bread5 {
  grid-row: 3/4;
  grid-column: 2/3;
}
.bread2:hover,
.bread3:hover,
.bread4:hover,
.bread5:hover {
  opacity: 0.5;
  transform: scale(0.95);
}
#Gift {
  padding-left: 10px;
  padding-top: 40px;
}
.Gift {
  display: grid;
  width: 500px;
  height: 960px;
  grid-template-columns: auto auto;
  grid-template-rows: 1fr 1fr 1fr;
  text-align: center;
  margin: 0 auto;
}
.Gift1 {
  grid-column: 1/3;
  grid-row: 1/2;
}
.Gift2 {
  grid-row: 2/3;
  grid-column: 1/2;
}
.Gift3 {
  grid-row: 2/3;
  grid-column: 2/3;
}
.Gift4 {
  grid-row: 3/4;
  grid-column: 1/2;
}
.Gift5 {
  grid-row: 3/4;
  grid-column: 2/3;
}
.Gift2:hover,
.Gift3:hover,
.Gift4:hover,
.Gift5:hover {
  opacity: 0.5;
  transform: scale(0.95);
}
/*カートページ*/
.cart {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}
.cart-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cart-empty {
  text-align: center;
  color: #777;
}
.cart-summary {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  text-align: right;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #999;
}
/* 左側（商品名＋数量） */
.cart-left {
  display: flex;
  align-items: center;
  gap: 30px;
}
/* 商品名 */
.item-name {
  min-width: 180px; /* ← ここが超重要 */
}

/* 数量操作 */
.qty-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 120px;     /* ← 数量ブロックを固定 */
  justify-content: center;
}
.qty-control button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.qty-control img {
  width: 25px;
}
/* 数量の数字 */
.item-qty {
  width: 30px;      /* 数字の横幅固定 */
  text-align: center;
  font-size: 16px;
}
/* 右側（金額＋削除） */
.cart-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
/* 金額 */
.item-price {
  min-width: 80px;
  text-align: right;
}
.cart-right button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.cart-right img {
  width: 50px;
}
.checkout-btn {
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 12px;
}
.checkout-btn img {
  width: 150px;
}
.remove:hover,
.plus:hover,
.minus:hover {
  opacity: 0.5;
  transform: scale(0.95);
}
/*カートページここまで*/
/*菓子パンページここから*/
.content {
  background-image: url("../image/Online/border.png");
  background-repeat: no-repeat;
  background-position: center center;
  padding-bottom: 50px;
}
#content_page {
  margin: 0 auto;
  text-align: center;
}
.content_image {
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 10px 0;
}
.content_image figure {
  margin: 0;
}
.content_image figure a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.content_image figure img {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.content_image figure a:hover img {
  opacity: 0.5;
  transform: scale(0.95);
}

