/* =========================
   Autumn Maple Glow
   ========================= */

:root{
  --text: rgba(78, 36, 18, .95);
  --muted: rgba(110, 62, 38, .72);
  --line: rgba(226, 155, 92, .30);
  --card: rgba(255,255,255,.50);
  --card2: rgba(255,255,255,.40);
  --shadow: 0 18px 55px rgba(160, 86, 32, .22);
  --radius: 22px;
  --accent1: #d96c2f;
  --accent2: #f39a3d;
  --accent3: #ffd27a;
  --accent4: #b6462b;
}

html{
  height: 100%;
  box-sizing: border-box;
  font-family: "M PLUS Rounded 1c", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 62.5%;
  scroll-behavior: smooth;
}
*, *::before, *::after{ box-sizing: inherit; }

body{
  min-height: 100%;
  margin: 0 auto;
  max-width: 880px;
  padding: 84px 14px 24px;
  color: var(--text);
  overflow-x: hidden;
}

/* 秋空＋夕暮れっぽい背景 */
body::before{
  content:"";
  position: fixed;
  inset: -30vh -30vw;
  z-index: -3;
  pointer-events:none;
  background:
    radial-gradient(900px 520px at 50% 18%, rgba(255,244,220,.65), transparent 58%),
    radial-gradient(850px 620px at 18% 20%, rgba(255,210,150,.42), transparent 62%),
    radial-gradient(900px 680px at 85% 18%, rgba(214,104,53,.28), transparent 62%),
    linear-gradient(180deg, #fff3dd 0%, #ffd8a1 38%, #f5a75b 68%, #cd6a31 100%);
  filter: saturate(108%) contrast(104%);
}

/* 背景の落ち葉 */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events:none;
  background-image:
    radial-gradient(8px 10px at 50px 60px, rgba(214,104,53,.32) 45%, transparent 55%),
    radial-gradient(7px 9px at 170px 120px, rgba(244,162,69,.28) 45%, transparent 55%),
    radial-gradient(10px 12px at 100px 220px, rgba(182,70,43,.26) 45%, transparent 55%),
    radial-gradient(8px 10px at 260px 180px, rgba(255,203,110,.24) 45%, transparent 55%),
    radial-gradient(9px 11px at 320px 40px, rgba(214,104,53,.24) 45%, transparent 55%);
  background-size: 360px 300px;
  opacity: .55;
  animation: leafBack 20s linear infinite;
}
@keyframes leafBack{
  0%{ transform: translateY(-20vh) translateX(0) rotate(0deg); }
  100%{ transform: translateY(120vh) translateX(35px) rotate(220deg); }
}

/* 前面の葉 */
.snow-front{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events:none;
  background-image:
    radial-gradient(12px 14px at 70px 90px, rgba(214,104,53,.70) 45%, transparent 55%),
    radial-gradient(10px 12px at 260px 160px, rgba(243,154,61,.64) 45%, transparent 55%),
    radial-gradient(11px 13px at 150px 300px, rgba(182,70,43,.66) 45%, transparent 55%),
    radial-gradient(10px 12px at 420px 240px, rgba(255,210,122,.54) 45%, transparent 55%),
    radial-gradient(9px 11px at 560px 80px, rgba(214,104,53,.56) 45%, transparent 55%);
  background-size: 680px 580px;
  opacity: .68;
  animation: leafFront 28s linear infinite;
}
@keyframes leafFront{
  0%{ transform: translateY(-25vh) translateX(0) rotate(0deg); }
  100%{ transform: translateY(130vh) translateX(-50px) rotate(-260deg); }
}

/* メインカード */
.main{
  background: var(--card);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
  padding: 14px;
}
.main::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: var(--radius);
  pointer-events:none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.28) 0%,
    rgba(255,255,255,0) 35%,
    rgba(255,255,255,.16) 100%
  );
}
.main::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: var(--radius);
  pointer-events:none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.52),
    inset 0 0 18px rgba(255,245,230,.18);
}

/* 固定ヘッダー */
.fixed-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    90deg,
    rgba(255,250,244,0.84),
    rgba(255,226,192,0.76),
    rgba(235,141,79,0.72)
  );
  border-bottom: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 10px 30px rgba(90,50,20,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 14px;
}
.fixed-header > *{ position: relative; z-index: 1; }

.fixed-header::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(60px 28px at 16% 34%, rgba(255,230,180,.20) 0%, rgba(255,230,180,0) 72%),
    radial-gradient(80px 32px at 52% 26%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 72%),
    radial-gradient(60px 28px at 84% 40%, rgba(255,190,120,.16) 0%, rgba(255,190,120,0) 72%);
  animation: autumnGlow 12s ease-in-out infinite;
}
@keyframes autumnGlow{
  0%{ transform: translateX(0); }
  50%{ transform: translateX(-4px); }
  100%{ transform: translateX(0); }
}

/* 戻るボタン */
.b-back-button a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(240,190,130,.82);
  box-shadow: 0 6px 14px rgba(180,110,50,.18), inset 0 1px 0 rgba(255,255,255,.88);
  transition: transform .12s ease, box-shadow .12s ease;
  text-decoration: none;
}
.b-back-button a:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(180,110,50,.24), inset 0 1px 0 rgba(255,255,255,.92);
}
.fixed-header .b-back-button img{ height: 30px; width: auto; }

/* 週ボタン */
.weekmenu{
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.weekbutton{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,249,240,.94), rgba(255,226,190,.88));
  border: 1px solid rgba(238,176,112,.82);
  color: var(--text);
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(180,110,50,.16), inset 0 1px 0 rgba(255,255,255,.90);
  transition: transform .12s ease, background .12s ease;
}
.weekbutton:hover{
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(255,252,246,.98), rgba(255,235,205,.94));
}

/* ロゴ */
.logo-center img{
  height: 34px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(160,86,32,.18));
}

/* テーブル */
.main table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255,255,255,.52);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(230,160,90,.32);
  box-shadow: 0 14px 42px rgba(120,70,28,.12);
  margin: 18px 0;
}
.main table td{
  border-bottom: 1px solid rgba(230,160,90,.22);
}
.main table tr:last-child td{ border-bottom: 0; }

/* 週見出し */
.main table tr.week td{
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(182,70,43,.90),
    rgba(217,108,47,.88),
    rgba(255,210,122,.84)
  );
  color: rgba(88, 35, 12, .98);
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  letter-spacing: .06em;
  padding: 14px 12px;
  font-size: 1.8rem;
  scroll-margin-top: 86px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
.main table tr.week td::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.18;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,.35) 45%, transparent 90%);
}

.productDate{
  width: 6rem;
  background: rgba(255,255,255,.76);
  color: rgba(180,85,28,.96);
  font-weight: 900;
  font-size: 1.3rem;
  padding: 10px 12px;
  white-space: nowrap;
  text-align: center;
}
.product{
  background: rgba(255,255,255,.74);
  color: var(--text);
  font-size: 1.4rem;
  padding: 10px 12px;
  line-height: 1.55;
}

/* 注意文 */
.infoBottom{ padding: 8px 0 18px; }
.infoBottom p{
  margin: 0;
  color: var(--muted);
  font-size: 1.2rem;
  text-align: center;
}

footer{
  text-align: center;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 800;
  padding: 18px 10px 6px;
}

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

@media (hover:hover){
  .main table{
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .main table:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 55px rgba(120,70,28,.16);
  }
}

/* スライド */
.slideshow-container{
  position: relative;
  max-width: 100%;
}
.mySlides{ display: none; }
.fade{ animation: fadeEffect 2s ease; }
@keyframes fadeEffect{
  from{ opacity: .4; }
  to{ opacity: 1; }
}
.mySlides img{
  width: 100%;
  display: block;
  border-radius: 14px;
}

/* 矢印 */
.prev,
.next{
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px;
  color: #fff;
  font-size: 2.4rem;
  font-weight: bold;
  background: rgba(110,52,22,0.34);
  border-radius: 50%;
  user-select: none;
  z-index: 10;
}
.prev{ left: 10px; }
.next{ right: 10px; }
.prev:hover,
.next:hover{ background: rgba(110,52,22,0.56); }

/* ドット */
.pagenation{ text-align: center; }
.dot{
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background: rgba(140,70,28,.20);
  border-radius: 50%;
  display: inline-block;
  transition: transform .12s ease, background .12s ease;
}
.dot:hover{ transform: scale(1.1); }
.dot.active{ background: rgba(140,70,28,.58); }

@media (max-width: 600px){
  body{ padding: 78px 10px 18px; }
  .fixed-header{ height: 60px; padding: 8px 10px; }
  .logo-center img{ height: 30px; }

  .weekmenu{
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 0 6px;
  }
  .weekmenu::-webkit-scrollbar{ display: none; }
  .weekbutton{ flex: 0 0 auto; padding: 6px 10px; font-size: 1.2rem; }

  .productDate{ width: 5.4rem; font-size: 1.2rem; }
  .product{ font-size: 1.3rem; }

  .main table tr.week td{
    font-size: 1.6rem;
    padding: 12px 10px;
  }
}

@media (prefers-reduced-motion: reduce){
  body::after,
  .snow-front{
    animation: none !important;
  }
  .fade{ animation: none !important; }
  .main table:hover{ transform: none; }
}