.shop-page {
  background: var(--cream);
}

.shop-main {
  overflow: hidden;
  background: var(--cream);
}

.shop-grid {
  display: grid;
  grid-template-columns:
    minmax(calc(var(--side-width) + 32px), 1fr)
    minmax(0, 900px)
    minmax(24px, 1fr);
}

.shop-grid > * {
  grid-column: 2;
  min-width: 0;
}

.shop-hero {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: var(--brown);
}

.shop-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(43, 28, 20, 0.08), transparent 38%, rgba(43, 28, 20, 0.08));
  pointer-events: none;
}

.shop-hero-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
}

.shop-hero-title {
  position: absolute;
  z-index: 2;
  top: 69.5%;
  left: 0;
  right: 0;
  display: grid;
  align-content: center;
  height: 174px;
  padding: 0 24px;
  color: var(--brown);
  background: rgba(255, 252, 245, 0.6);
  border-top: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2px solid rgba(255, 255, 255, 0.8);
  text-align: center;
  transform: translateY(-50%);
}

.shop-hero-title span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: 44px;
  line-height: 1;
}

.shop-hero-title span,
.shop-hero-title h1 {
  /* 文字の外側に2pxの白40%の縁取り（strokeは内外に半分ずつ乗るため4px指定） */
  -webkit-text-stroke: 4px rgba(255, 255, 255, 0.4);
  paint-order: stroke fill;
}

.shop-hero-title h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 400;
  line-height: 1.1;
}

.shop-overview {
  position: relative;
  min-height: 380px;
  padding: 8px 0 42px;
  isolation: isolate;
}

.shop-overview::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../image/store-page/wheat-pattern-a1-transparent.webp") center / cover no-repeat;
  opacity: 0.1;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.shop-overview-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 585px;
  justify-content: space-between;
  gap: 30px;
  align-items: start;
}

.shop-overview-copy {
  align-self: center;
  padding-top: 44px;
}

.shop-overview-copy p,
.shop-story-body p,
.shop-chappy-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
}

.shop-overview-copy p {
  line-height: 2.2;
}

.shop-overview-gallery {
  display: grid;
  grid-template-columns: 285px 300px;
  gap: 0;
  align-items: start;
}

.shop-overview-gallery img {
  width: 100%;
  height: 306px;
  object-fit: cover;
}

.shop-overview-gallery img:first-child {
  object-position: center;
  margin-top: 54px;
}

.shop-overview-gallery img:last-child {
  object-position: 78% center;
}

.shop-story-row {
  padding: 0;
}

.shop-story-row#concept {
  padding: 0 0 40px;
}

.shop-story-row#commitment {
  padding: 40px 0 60px;
}

.shop-story-row#signature {
  padding: 60px 0 120px;
}

.shop-story-inner {
  position: relative;
  display: grid;
  grid-template-areas: "copy media";
  grid-template-columns: minmax(0, 330px) minmax(0, 500px);
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.shop-story-row--reverse .shop-story-inner {
  grid-template-areas: "media copy";
}

.shop-story-inner--commitment {
  grid-template-columns: minmax(0, 500px) minmax(0, 326px);
  gap: 30px;
  justify-content: space-between;
}

.shop-story-copy {
  grid-area: copy;
}

.shop-story-copy h2,
.shop-chappy-copy h2 {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.4;
}

#concept .shop-story-copy h2,
#concept .shop-story-tagline {
  text-align: center;
}

#signature .shop-story-inner {
  grid-template-columns: minmax(0, 260px) minmax(0, 550px);
}

#signature .shop-story-copy {
  align-self: start;
  margin-top: 75px;
}

.shop-story-tagline {
  margin: 2px 0 28px;
  color: var(--berry);
  font-size: 15px;
  font-weight: 700;
}

.shop-story-body {
  margin-top: 28px;
}

.shop-story-body p {
  line-height: 1.875;
}

.shop-story-media {
  position: relative;
  grid-area: media;
  height: 560px;
  margin: 0;
  overflow: visible;
}

.shop-story-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-story-media--concept .shop-story-photo {
  object-position: 54% center;
}

.shop-story-row--reverse .shop-story-photo {
  object-position: 50% center;
}

.shop-story-media--signature .shop-story-photo {
  object-position: 48% center;
}

.shop-peek {
  position: absolute;
  z-index: 1;
  width: 124px;
  height: auto;
  pointer-events: none;
}

.shop-peek--left {
  left: -38px;
  bottom: 26px;
  width: 88px;
  transform: rotate(-40deg);
  transform-origin: 50% 50%;
}

.shop-peek--right {
  top: -84px;
  right: 20px;
  width: 100px;
  height: 130px; /* 下1/3は写真の裏に隠れる。飛び出しの勢いで浮いても切れ目が見えないようにする */
  object-fit: cover;
  object-position: top;
}

/* ひょっこりアニメーション：写真の陰に隠した状態から定位置へ */
.shop-peek--left.will-peek {
  transform: translateX(95px) rotate(-40deg);
}

.shop-peek--right.will-peek {
  transform: translateY(90px);
}

.shop-peek--left.is-peeked {
  transform: translateX(0) rotate(-40deg);
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.shop-peek--right.is-peeked {
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .shop-peek--left.is-peeked,
  .shop-peek--right.is-peeked {
    transition: none;
  }
}

.shop-story-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.shop-story-heading img {
  width: 102px;
  height: 128px;
  object-fit: contain;
}

.shop-paw {
  pointer-events: none;
}

.shop-paw--middle {
  position: absolute;
  top: -68px;
  right: 134px;
  width: 116px;
  opacity: 0.12;
  transform: rotate(16deg);
}

.shop-chappy {
  padding: 50px 0 90px;
  color: #fff;
  background: #5a483d;
}

.shop-chappy-inner {
  display: grid;
  grid-template-columns: 485px minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.shop-chappy-figure {
  position: relative;
  display: grid;
  justify-items: center;
}

.shop-chappy-character {
  width: 420px;
  height: 420px;
  margin: 0 auto;
  object-fit: contain;
}

.shop-chappy-anim-toggle {
  position: absolute;
  bottom: -42px;
  left: calc(50% - 10px);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateX(-50%);
  border: 1px solid rgba(246, 235, 214, 0.45);
  border-radius: 50%;
  background: rgba(246, 235, 214, 0.1);
  color: rgba(246, 235, 214, 0.9);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.shop-chappy-anim-toggle:hover {
  background: rgba(246, 235, 214, 0.22);
}

.shop-chappy-copy {
  max-width: 390px;
}

.shop-chappy-copy p {
  line-height: 1.8;
}

.shop-chappy-copy h2 {
  margin-bottom: 32px;
  color: #fff;
  text-align: center;
}

.shop-chappy-copy p {
  color: #fff;
}

.shop-gift {
  padding: 82px 0 103px;
}

.shop-gift-inner {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 500px);
  justify-content: space-between;
  gap: 0 30px;
  align-items: center;
}

.shop-gift-copy {
  grid-area: auto;
  grid-column: 1;
  grid-row: 1;
}

.shop-story-heading--gift {
  align-items: center;
  gap: 12px;
  margin-left: -15px;
}

.shop-story-heading--gift h2 {
  font-size: 38px;
}

.shop-story-heading--gift img {
  width: 85px;
  height: 130px;
}

.shop-gift-media {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.shop-gift-media img {
  width: 100%;
  height: 558px;
  object-fit: cover;
  object-position: center;
}

.shop-gift-action {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  margin-top: 83px;
  margin-left: 77px;
}

.shop-gift-action .bread-button {
  min-height: 64px;
  padding: 10px 60px;
  box-shadow: none;
}

.shop-paw--cta {
  position: absolute;
  right: -271px;
  bottom: -85px;
  width: 114px;
  opacity: 0.12;
  transform: rotate(14deg);
}

@media (max-width: 1040px) {
  .shop-grid {
    grid-template-columns: minmax(28px, 1fr) minmax(0, 960px) minmax(28px, 1fr);
  }

  .shop-hero {
    height: 500px;
  }

  .shop-hero-image {
    object-position: 52% center;
  }

  .shop-story-inner,
  .shop-gift-inner {
    grid-template-columns: minmax(0, 320px) minmax(0, 470px);
    gap: 54px;
  }

  #signature .shop-story-inner {
    grid-template-columns: minmax(0, 320px) minmax(0, 470px);
  }

  #signature .shop-story-copy {
    align-self: center;
    margin-top: 0;
  }

  .shop-story-heading--gift {
    margin-left: 0;
  }

  .shop-gift-action {
    margin-left: 0;
  }

  .shop-overview-inner {
    grid-template-columns: minmax(0, 310px) minmax(0, 1fr);
  }

  .shop-overview-gallery {
    grid-template-columns: 1.05fr 1fr;
  }

  .shop-chappy-inner {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 60px;
  }

  .shop-chappy-character {
    width: 300px;
    height: 320px;
  }

}

@media (max-width: 820px) {
  .shop-grid {
    grid-template-columns: 22px minmax(0, 1fr) 22px;
  }

  .shop-hero {
    height: 470px;
  }

  .shop-hero-title {
    top: 58%;
  }

  .shop-hero-title h1 {
    font-size: 42px;
  }

  .shop-overview {
    padding: 48px 0 68px;
  }

  .shop-overview-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .shop-overview-copy {
    max-width: 560px;
    padding-top: 0;
  }

  .shop-overview-gallery {
    margin-top: 0;
  }

  .shop-overview-gallery img {
    height: 220px;
  }

  .shop-story-row,
  .shop-story-row#concept,
  .shop-story-row#commitment,
  .shop-story-row#signature {
    padding: 68px 0;
  }

  .shop-story-inner,
  .shop-story-row--reverse .shop-story-inner,
  #signature .shop-story-inner {
    grid-template-areas:
      "copy"
      "media";
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }

  .shop-story-copy {
    max-width: 560px;
  }

  .shop-story-copy h2,
  .shop-chappy-copy h2 {
    font-size: 32px;
  }

  .shop-story-media {
    height: min(620px, 112vw);
  }

  .shop-story-media--concept {
    width: calc(100% - 36px);
    margin-left: 36px;
  }

  .shop-peek--left {
    left: -38px;
  }

  .shop-peek--right {
    top: -64px;
    right: 16px;
    width: 80px;
    height: 102px;
  }

  .shop-story-media--signature {
    margin-top: 26px;
  }

  .shop-chappy-figure {
    margin-bottom: 44px;
  }

  .shop-paw--middle {
    top: -48px;
    right: 28px;
  }

  .shop-chappy {
    padding: 76px 0;
  }

  .shop-chappy-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .shop-chappy-character {
    width: 230px;
    height: 290px;
  }

  .shop-chappy-copy {
    max-width: 560px;
    margin: 0 auto;
  }

  .shop-gift {
    padding: 82px 0 110px;
  }

  .shop-gift-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .shop-gift-copy,
  .shop-gift-media,
  .shop-gift-action {
    grid-column: 1;
  }

  .shop-gift-copy {
    grid-row: 1;
  }

  .shop-gift-media {
    grid-row: 2;
  }

  .shop-gift-action {
    grid-row: 3;
  }

  .shop-gift-media img {
    height: min(520px, 112vw);
  }

  .shop-gift-action {
    margin-top: 34px;
  }

  .shop-paw--cta {
    right: -80px;
  }
}

@media (max-width: 560px) {
  .shop-grid {
    grid-template-columns: 18px minmax(0, 1fr) 18px;
  }

  .shop-hero {
    height: 440px;
  }

  .shop-hero-image {
    object-position: 58% center;
  }

  .shop-hero-title {
    padding: 18px 18px 21px;
  }

  .shop-hero-title span {
    font-size: 22px;
  }

  .shop-hero-title h1 {
    font-size: 34px;
  }

  .shop-overview-copy p,
  .shop-story-body p,
  .shop-chappy-copy p {
    font-size: 14px;
    line-height: 1.9;
  }

  .shop-overview-gallery img {
    height: 150px;
  }

  .shop-story-row {
    padding: 68px 0;
  }

  .shop-story-copy h2,
  .shop-chappy-copy h2 {
    font-size: 28px;
  }

  .shop-story-tagline {
    font-size: 13px;
  }

  .shop-story-body {
    margin-top: 20px;
  }

  .shop-story-media {
    height: 420px;
  }

  .shop-story-media--concept {
    width: calc(100% - 32px);
    margin-left: 32px;
  }

  .shop-peek {
    width: 96px;
  }

  .shop-peek--left {
    left: -25px;
    bottom: 18px;
    width: 58px;
  }

  .shop-peek--right {
    top: -50px;
    right: 12px;
    width: 60px;
    height: 78px;
  }

  .shop-story-heading {
    gap: 8px;
  }

  .shop-story-heading img {
    width: 70px;
    height: 84px;
  }

  .shop-chappy-character {
    width: 190px;
    height: 240px;
  }

  .shop-chappy-copy {
    text-align: left;
  }

  .shop-chappy-copy h2 {
    text-align: center;
  }

  .shop-story-heading--gift img {
    width: 66px;
    height: 84px;
  }

  .shop-gift-media img {
    height: 380px;
  }

  .shop-paw--middle,
  .shop-paw--cta {
    width: 52px;
  }

  .shop-paw--cta {
    right: 4px;
    bottom: -70px;
  }
}
