/* 2026 JAきみつ 味楽囲おびつ店 マザー牧場出張直売会ページ本文のスタイル
   ヘッダー・フッターは公式サイトの official/css/{reset,layout}.css をそのまま使う。
   公式の reset.css はスマホ幅で html の文字サイズを 1px にするため、ここでは rem を使わず px で指定する。
   産直市場の雰囲気を出すため、クラフト紙・木箱・黒板の看板・手書きPOPを使い、
   配色はみかんのオレンジ・たまごの黄・さつまいもの紫・葉の緑・お米のクリーム。 */
.jk {
  --mikan: #f08a1c;
  --mikan-deep: #c96a0c;
  --egg: #f4c542;
  --imo: #9b3d6e;
  --leaf: #4f8a2b;
  --leaf-deep: #3a6b1f;
  --wood: #c9965a;
  --wood-deep: #a8743d;
  --bark: #5e3a17;
  --kraft: #ecdcc0;
  --kraft-deep: #d6bf98;
  --cream: #fffaf0;
  --board: #2f3b33;
  --chalk: #f6f1e4;
  --text: #3b2e22;
  /* クラフト紙の地 */
  --paper: radial-gradient(rgba(94, 58, 23, .07) 1px, transparent 1.5px) 0 0 / 6px 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
  word-break: auto-phrase;
}
.jk *, .jk *::before, .jk *::after { box-sizing: border-box; }
/* 公式 reset.css の line-height:160% は px に固定されて引き継がれるため、倍率で指定し直す */
.jk :where(p, li, dt, dd, div, span, h4, figure, figcaption, section) { line-height: 1.85; }
.jk img { max-width: 100%; height: auto; display: block; }
.jk a { color: var(--mikan-deep); }
.jk h2, .jk h3, .jk h4, .jk strong, .jk b { font-weight: bold; }
.jk figure { margin: 0; }
.jk ul, .jk ol, .jk dl, .jk dd { list-style: none; margin: 0; padding: 0; }
.jk-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.jk-nowrap { white-space: nowrap; }
.jk-sp { display: none; }

/* 見出しなどの丸ゴシック */
.jk-hero-title, .jk-hero-kicker, .jk-hero-stamp, .jk-sec-title .ja, .jk-big, .jk-count b,
.jk-crate-name, .jk-market-item p, .jk-pop, .jk-closing-copy, .jk-lead {
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 900;
}
/* 手書き風 */
.jk-hero-copy, .jk-board dt, .jk-pop-small, .jk-pop-unit {
  font-family: "Yomogi", "Zen Maru Gothic", sans-serif;
  font-weight: 400;
}

/* 本文エリア(公式の #contents 内) */
#contents.jk { box-sizing: border-box; padding: 20px 20px 64px; }
.jk .blueTit01 { margin-bottom: 10px; line-height: 1.5; }

.jk-meta { display: flex; align-items: center; justify-content: space-between; margin: 0 0 18px; font-size: 13px; }
.jk-badge { background: #e57a95; color: #fff; padding: 1px 12px; }
.jk-meta time { color: #888; font-weight: bold; }

/* ===== メインビジュアル ===== */
.jk-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bark);
  aspect-ratio: 16 / 9;
}
.jk-hero-photo { position: absolute; inset: 0; }
#contents.jk .jk-hero-photo img { width: 100%; height: 100%; } /* 公式の #wrapper img { height:auto } に勝たせる */
.jk-hero-photo img { object-fit: cover; object-position: 50% 45%; animation: jk-zoom 14s ease-out both; }
.jk-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(60, 30, 8, .78) 0%, rgba(60, 30, 8, .5) 42%, rgba(60, 30, 8, 0) 70%);
  pointer-events: none;
}
.jk-hero-text {
  position: absolute;
  z-index: 2;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
}
/* 黒板の小さな看板 */
.jk-hero-kicker {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 20px;
  border-radius: 6px;
  background: var(--leaf);
  font-size: 17px;
  letter-spacing: 2px;
  box-shadow: 0 3px 0 var(--leaf-deep);
}
.jk-hero-title {
  margin: 0;
  font-size: 66px;
  line-height: 1.2;
  letter-spacing: 6px;
  text-shadow: 0 3px 14px rgba(40, 20, 5, .5);
}
.jk-hero-copy { margin: 6px 0 0; font-size: 25px; letter-spacing: 2px; text-shadow: 0 2px 8px rgba(40, 20, 5, .7); }

/* 右上のみかん色の丸シール */
.jk-hero-stamp {
  position: absolute;
  z-index: 3;
  top: 26px;
  right: 26px;
  width: 136px;
  height: 136px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb35c, var(--mikan) 55%, var(--mikan-deep));
  color: #fff;
  font-size: 17px;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25), inset 0 0 0 4px rgba(255, 255, 255, .35);
  transform: rotate(8deg);
  animation: jk-bob 3.2s ease-in-out infinite;
}
.jk-hero-stamp::before {
  /* へたと葉 */
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 34px;
  height: 18px;
  margin-left: -4px;
  border-radius: 0 100% 0 100%;
  background: var(--leaf);
  transform: rotate(-12deg);
}
.jk-hero-stamp-date { font-size: 34px; line-height: 1.05; letter-spacing: 1px; }
.jk-hero-stamp-date small { font-size: 15px; margin-left: 2px; }
.jk-hero-note {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 8px;
  margin: 0;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
@keyframes jk-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes jk-bob { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-6px); } }

.jk-intro {
  margin: 28px auto 0;
  max-width: 680px;
  text-align: center;
  font-size: 16px;
}
.jk-intro strong { color: var(--bark); }
.jk-intro .jk-hl { color: var(--mikan-deep); background: linear-gradient(transparent 66%, rgba(244, 197, 66, .45) 66%); }

/* ===== もくじ(クラフト紙の値札) ===== */
.jk-index { margin: 30px 0 8px; }
.jk-index ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.jk-index li { --c: var(--mikan); }
.jk-index li:nth-child(2) { --c: var(--imo); }
.jk-index li:nth-child(3) { --c: var(--leaf); }
.jk-index a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 12px;
  background: var(--paper), var(--kraft);
  border-bottom: 4px solid var(--c);
  box-shadow: 0 4px 0 var(--kraft-deep);
  color: var(--bark);
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.jk-index a::after { content: "▼"; font-size: 9px; color: var(--c); }
.jk-index svg { flex: none; width: 22px; height: 22px; fill: var(--c); }
.jk-index a:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--kraft-deep); }

/* ===== セクション見出し(木の看板) ===== */
.jk-sec { margin-top: 68px; scroll-margin-top: 20px; }
.jk-sec-title { position: relative; margin: 0 0 30px; text-align: center; }
.jk-sec-title::before {
  /* 左右にのびる、ロープ */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  margin-top: -2px;
  background: repeating-linear-gradient(135deg, var(--wood) 0 5px, var(--wood-deep) 5px 8px);
  border-radius: 2px;
  opacity: .6;
}
.jk-label {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 44px 10px;
  border-radius: 10px;
  background:
    repeating-linear-gradient(180deg, rgba(94, 58, 23, .08) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, #d8a86a, var(--wood));
  box-shadow: 0 4px 0 var(--wood-deep), 0 0 0 6px #f6f6f6;
}
/* 看板の釘 */
.jk-label::before, .jk-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #eee, #777);
}
.jk-label::before { left: 14px; }
.jk-label::after { right: 14px; }
.jk-sec-title .ja { color: #fff; font-size: 30px; line-height: 1.3; letter-spacing: 3px; text-shadow: 0 2px 0 var(--wood-deep); }
.jk-sec-title .en { color: var(--bark); font-size: 12px; font-weight: bold; letter-spacing: 3px; line-height: 1.6; }

/* ===== 開催概要(黒板) ===== */
.jk-board {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 40px 30px;
  border-radius: 10px;
  background: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.5px) 0 0 / 5px 5px, var(--board);
  border: 12px solid var(--wood);
  box-shadow: inset 0 0 0 2px var(--wood-deep), 0 8px 0 var(--wood-deep), 0 14px 24px rgba(94, 58, 23, .2);
  color: var(--chalk);
}
.jk-count {
  position: absolute;
  top: -26px;
  right: 24px;
  margin: 0;
  padding: 6px 20px;
  border-radius: 999px;
  background: var(--mikan);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 3px 0 var(--mikan-deep);
  transform: rotate(3deg);
}
.jk-count[hidden] { display: none; }
.jk-count b { margin-left: 6px; font-size: 22px; line-height: 1.2; }
.jk-board-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 2px dashed rgba(246, 241, 228, .3);
}
.jk-board-list > div:last-child { border-bottom: 0; }
.jk-board dt {
  padding: 2px 0;
  border-radius: 6px;
  border: 2px solid rgba(246, 241, 228, .75);
  color: var(--egg);
  font-size: 20px;
  text-align: center;
  letter-spacing: 2px;
}
.jk-board dd { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.jk-big { font-size: 34px; line-height: 1.3; letter-spacing: 1px; }
.jk-big small { font-size: 18px; }
.jk-big i { font-style: normal; font-size: 22px; margin: 0 6px; color: var(--egg); }
.jk-chip {
  padding: 1px 14px;
  border-radius: 999px;
  background: var(--mikan);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
}
.jk-sub { font-size: 14px; color: rgba(246, 241, 228, .8); }

/* ===== すくい取り・詰め放題(木箱) ===== */
.jk-lead { margin: -8px 0 26px; text-align: center; font-size: 20px; color: var(--bark); }
.jk-lead strong { color: var(--mikan-deep); }
.jk-crates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.jk-crate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 10px 0;
  border-radius: 14px 14px 6px 6px;
  background: var(--paper), var(--cream);
  box-shadow: 0 0 0 3px var(--kraft);
  text-align: center;
  overflow: hidden;
}
.jk-anim .jk-crate:nth-child(2) { transition-delay: .1s; }
.jk-anim .jk-crate:nth-child(3) { transition-delay: .2s; }
.jk-anim .jk-crate:nth-child(4) { transition-delay: .3s; }
.jk-crate-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c, var(--leaf));
  color: #fff;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
}
.jk-crate > .jk-crate-no { position: absolute; top: 12px; left: 12px; }
#contents.jk .jk-crate-icon { width: 150px; height: 150px; margin: 0 0 2px; object-fit: contain; transition: transform .4s; } /* 公式の #wrapper img に勝たせる */
.jk-crate:hover .jk-crate-icon { transform: translateY(-6px) rotate(-6deg); }
.jk-crate-name { margin: 0 0 14px; color: var(--bark); font-size: 17px; line-height: 1.4; }
.jk-crate-name span { display: block; color: var(--c); font-size: 26px; }
/* 下の木箱の板 */
.jk-crate::after {
  content: "";
  align-self: stretch;
  height: 34px;
  margin: 0 -10px;
  background:
    linear-gradient(90deg, var(--wood-deep) 0 6px, transparent 6px calc(100% - 6px), var(--wood-deep) calc(100% - 6px)),
    linear-gradient(180deg, transparent 0 15px, var(--wood-deep) 15px 18px, transparent 18px),
    linear-gradient(180deg, #d8a86a, var(--wood));
}

/* ===== 直売コーナー ===== */
.jk-market {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px 34px;
  border-radius: 20px;
  background:
    repeating-linear-gradient(90deg, rgba(79, 138, 43, .12) 0 22px, rgba(255, 255, 255, 0) 22px 44px),
    #f7fbef;
  box-shadow: inset 0 0 0 3px rgba(79, 138, 43, .25);
}
.jk-market-items { display: grid; gap: 16px; }
.jk-market-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(79, 138, 43, .2);
}
.jk-market-item svg { flex: none; width: 70px; height: 70px; }
.jk-market-item p { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--bark); font-size: 22px; line-height: 1.4; }
.jk-market-item .jk-crate-no { flex: none; }
/* 手書きのPOP */
.jk-pop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 190px;
  margin: 0;
  border-radius: 50%;
  background: var(--egg);
  color: var(--bark);
  text-align: center;
  line-height: 1;
  box-shadow: 0 6px 0 #d4a521;
  transform: rotate(-6deg);
}
.jk-pop-small { font-size: 22px; line-height: 1.2; }
.jk-pop b { font-size: 72px; line-height: 1; color: var(--leaf-deep); }
.jk-pop-unit { font-size: 20px; line-height: 1.2; }
.jk-note-box {
  margin: 20px auto 0;
  max-width: 640px;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--paper), var(--kraft);
  text-align: center;
  font-weight: bold;
  color: var(--bark);
}
.jk-caution { margin: 40px 0 0; text-align: center; font-size: 14px; color: #776655; }

/* ===== 締め ===== */
.jk-closing {
  position: relative;
  margin-top: 40px;
  padding: 40px 24px 36px;
  border-radius: 24px;
  text-align: center;
  background: var(--paper), var(--kraft);
}
.jk-closing > p { margin: 0 0 16px; }
.jk-closing-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 10px; }
.jk-closing-row svg { width: 64px; height: 64px; animation: jk-hop 2.4s ease-in-out infinite; }
.jk-closing-row svg:nth-child(2) { animation-delay: .2s; }
.jk-closing-row svg:nth-child(3) { animation-delay: .4s; }
.jk-closing-row svg:nth-child(4) { animation-delay: .6s; }
.jk-closing-row svg:nth-child(5) { animation-delay: .8s; }
@keyframes jk-hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }
.jk-ai-note { margin: 10px 0 0; text-align: center; font-size: 11px; color: #776655; }
.jk-closing .jk-closing-copy { margin-bottom: 18px; color: var(--mikan-deep); font-size: 30px; line-height: 1.4; letter-spacing: 2px; }
.jk-btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  background: var(--leaf);
  color: #fff !important;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--leaf-deep);
  transition: transform .15s, box-shadow .15s;
}
.jk-btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--leaf-deep); }

/* ===== スクロールでふわっと表示(JS が使えるときだけ) ===== */
.jk-anim .jk-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.jk-anim .jk-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .jk *, .jk *::before, .jk *::after { animation: none !important; transition: none !important; }
}

/* ===== スマホ ===== */
@media screen and (max-width: 768px) {
  #contents.jk { padding: 14px 14px 48px; }
  .jk { font-size: 14px; }
  .jk-sp { display: inline; }

  .jk-hero { aspect-ratio: 4 / 5; border-radius: 18px; }
  .jk-hero::after { background: linear-gradient(180deg, rgba(60, 30, 8, 0) 30%, rgba(60, 30, 8, .6) 62%, rgba(60, 30, 8, .88) 100%); }
  .jk-hero-text { left: 0; right: 0; top: auto; bottom: 30px; transform: none; text-align: center; }
  .jk-hero-kicker { font-size: 13px; padding: 4px 14px; }
  .jk-hero-title { font-size: 42px; letter-spacing: 3px; }
  .jk-hero-copy { font-size: 18px; }
  .jk-hero-stamp { width: 104px; height: 104px; top: 18px; right: 16px; font-size: 13px; }
  .jk-hero-stamp-date { font-size: 26px; }
  .jk-hero-note { font-size: 10px; bottom: 6px; right: 10px; }

  .jk-intro { font-size: 15px; text-align: left; }
  .jk-intro br { display: none; }

  .jk-index ul { grid-template-columns: 1fr; gap: 8px; }
  .jk-index a { padding: 11px 8px; font-size: 14px; }
  .jk-index svg { width: 18px; height: 18px; }

  .jk-sec { margin-top: 52px; }
  .jk-sec-title { margin-bottom: 22px; }
  .jk-label { padding: 10px 30px 8px; }
  .jk-label::before { left: 10px; }
  .jk-label::after { right: 10px; }
  .jk-sec-title .ja { font-size: 21px; letter-spacing: 1px; }
  .jk-sec-title .en { font-size: 10px; }

  .jk-board { padding: 30px 16px 18px; border-width: 8px; }
  .jk-count { top: -22px; right: 12px; font-size: 13px; }
  .jk-count b { font-size: 19px; }
  .jk-board-list > div { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
  .jk-board dt { justify-self: start; padding: 0 14px; font-size: 16px; }
  .jk-big { font-size: 25px; }
  .jk-big small { font-size: 15px; }

  .jk-lead { font-size: 17px; margin-top: -4px; }
  .jk-crates { grid-template-columns: 1fr 1fr; gap: 12px; }
  .jk-crate { padding-top: 22px; }
  #contents.jk .jk-crate-icon { width: 112px; height: 112px; }
  .jk-crate-name { font-size: 14px; }
  .jk-crate-name span { font-size: 21px; }
  .jk-crate::after { height: 26px; }

  .jk-market { grid-template-columns: 1fr; padding: 20px 14px 24px; gap: 18px; justify-items: center; }
  .jk-market-items { width: 100%; gap: 10px; }
  .jk-market-item { padding: 10px 12px; gap: 10px; }
  .jk-market-item svg { width: 52px; height: 52px; }
  .jk-market-item p { font-size: 17px; gap: 8px; }
  .jk-pop { width: 150px; height: 150px; order: -1; }
  .jk-pop b { font-size: 56px; }
  .jk-pop-small, .jk-pop-unit { font-size: 17px; }
  .jk-note-box { font-size: 14px; text-align: left; }
  .jk-note-box br { display: none; }

  .jk-closing { padding: 30px 14px 28px; }
  .jk-closing-row { gap: 4px; }
  .jk-closing-row svg { width: 48px; height: 48px; }
  .jk-closing .jk-closing-copy { font-size: 23px; letter-spacing: 1px; }
  .jk-btn { padding: 13px 24px; font-size: 14px; }
}
