/* ここのCSSだけモバイル表示を先に作っているので、メディアクエリが逆になっている点に注意！ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0.25rem;
  scroll-behavior: smooth;
}

@media (min-width: 961px) {
  br {
    display: none;
  }
}

#contents section {
  position: relative;
  border-radius: 0;
  min-height: 40vh;
}

picture,
img {
  width: 100%;
}

#top {
  padding: 0 !important;
}

.top-img-link-box {
  display: inline-block;
  width: 100%;
}

.top-img-link-box:hover {
  opacity: 0.9;
}

.introduction-box {
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pattern {
  width: 100%;
  height: 50%;
  display: grid;
  justify-items: center;
  grid-template-columns: 50% 50%;
}

.pattern p {
  height: 90%;
  border: solid 1px black;
}

/* .transition[data-visible="false"] {
  opacity: 0;
  transform: translateY(20px);
} */

.transition {
  opacity: 1;
  transition: all 0.5s;
}

.side-padding {
  padding: 0 0.5rem;
}

.sinpai-container {
  width: 100%;
}

.sinpai-row {
  width: 100%;
  padding: 0 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sinpai-container .sinpai-row:last-child {
  flex-direction: row-reverse !important;
}

.sinpai-row>.img-box {
  width: 110px;
}

@media (min-width: 961px) {
  .sinpai-row {
    width: 100%;
    gap: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sinpai-row>.img-box {
    width: 200px;
  }

  .sinpai-container .sinpai-row:first-child {
    margin-bottom: 0 !important;
  }

  .sinpai-row>.img-box {
    width: 150px;
  }
}

.onayami-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 0 0.5rem;
}

.onayami-box p {
  text-align: center;
}

.order-flow>li {
  text-align: center;
  position: relative;
  margin-bottom: 1.5rem;
}

.order-flow>li::after {
  position: absolute;
  content: " ";
  display: block;
  left: calc(50% - 3px);
  transform: rotate(-45deg);
  border-bottom: solid 3px black;
  border-left: solid 3px black;
  height: 10px;
  width: 10px;
}

.order-flow>li:last-child::after {
  display: none;
}

.pattern-example-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.pattern-example {

  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
}

.pattern-example>.img-box {
  flex-grow: 1;
  max-width: 300px;
}

.pattern-example>.pattern-example-text-box {
  flex-grow: 3;
}

@media (min-width: 961px) {
  @supports (display: grid) {
    .pattern-example-container {
      display: grid;
      grid-template-columns: 40% 40%;
      padding: 0 0.5rem;
      gap: 1.25rem;
    }

    .pattern-example>.img-box {
      height: 400px;
    }
  }

  .pattern-example {
    max-height: 200px !important;
    display: flex;
    flex-direction: row;
  }

  .pattern-example .img-box {
    width: 25%;
  }
}

.naradeha-p {
  text-align: center;
}

.howto-bundle-container {
  padding: 0 0.5rem;
}

.bundle {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.bundle-part-box {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

@media (max-width: 961px) {
  .bundle-part-box {
    width: unset;
  }
}

.bundle-part-box .img-box {
  width: 50%;
  aspect-ratio: 61/75;
  margin-bottom: 1rem;
}

:root {
  --plus-size-px: 25px;
}

.plus-box {
  position: relative;
  height: var(--plus-size-px);
  width: var(--plus-size-px);
}

.plus-part {
  background-color: black;
  display: block;
  left: 9px;
  position: absolute;
  width: calc(var(--plus-size-px) / 3);
  height: var(--plus-size-px);
}

.plus-box .plus-part:first-child {
  top: 0;
  transform: rotate(-90deg);
}

.plus-box .plus-part:last-child {
  top: 0;
}

.packing-img-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 0.5rem;
}

@media (min-width:960px) {
  .packing-img-box {
    width: 40%;
  }
}

.howto-bundle-paragraph-box {
  text-align: left;
}

@media (min-width:960px) {
  .howto-bundle-paragraph-box {
    text-align: center;
  }
}


.free-shipping {
  margin-top: 1rem;
  text-align: center !important;
}


/* 対象カタログ一覧部 */
/* max-width指定 */
.catalog-lineup-content {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 960px;
}

.catalog-items {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  align-items: center;
  gap: 0.25rem 2.5rem;
}

.catalog-item-box {
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 220px;
  min-height: 260px;
  z-index: 5;
}

.catalog-item-box>.img-box {
  width: 200px;
}

.catalog-item-spacer {
  width: 100%;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 50%;
  color: white;
  background-color: rgb(165 134 202);
  font-size: 40px;
  transform: rotate(20deg);
}

@media (max-width:960px) {
  .catalog-lineup-content {
    padding: 0 0.25rem;
    width: 100%;
  }

  .catalog-items {
    gap: 0.25rem;
  }

  .catalog-item-box {
    max-width: 240px;
    width: calc(100% / 2 - 0.5rem);
  }

  .catalog-item-box>.img-box {
    width: 100%;
  }

  .catalog-item-spacer {
    font-size: calc(30vw/5);
  }

  .side-padding {
    padding: 0 0.5rem;
  }
}