/* 共通リセットの影響をコンテンツ内で調整 */
.mall-yarn-page {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-align: left;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
section {
  margin: 0;
  padding: 0;
}

p {
  margin: 1em 0;
  padding: 0;
}

.mall-yarn-page [id] {
  scroll-margin-top: calc(var(--texture-nav-height, 112px) + var(--texture-nav-top, 0px) + 20px);
}

.mall-yarn-page {
  --paper: #f1efe9;
  --ink: #2c302a;
  --muted: #74776d;
  --line: #c8c9bd;
  --accent: #515d46
}

.mall-yarn-page * {
  box-sizing: border-box
}

.mall-yarn-page {
  margin: 0;
  color: var(--ink);
  font-family: Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  -webkit-font-smoothing: antialiased
}

.mall-yarn-page a {
  color: inherit;
  text-decoration: none
}

.mall-yarn-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.mall-yarn-page .eyebrow {
  font-size: 10px;
  letter-spacing: .17em;
  font-weight: 600
}

.mall-yarn-page .intro {
  text-align: center;
  padding: 50px 24px 40px
}

.mall-yarn-page .intro h2 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.7;
  margin: 25px 0
}

.mall-yarn-page .intro p {
  font-size: 13px;
  line-height: 2.4;
  letter-spacing: .05em
}

.mall-yarn-page .sp {
  display: none
}

.mall-yarn-page .texture-nav {
  position: sticky;
  top: var(--texture-nav-top, 65px);
  z-index: 2;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px;
  margin: 0 auto 110px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.mall-yarn-page .texture-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 23px 15px;
  border-right: 1px solid var(--line);
  transition: background .2s
}

.mall-yarn-page .texture-nav a:last-child {
  border: 0
}

.mall-yarn-page .texture-nav a:hover,
.mall-yarn-page .texture-nav a.active {
  background: #e0e3d8
}

.mall-yarn-page .texture-nav img {
  width: 57px;
  height: 64px
}

.mall-yarn-page .texture-nav span:not(.nav-num) {
  font-family: inherit;
  font-size: 17px
}

.mall-yarn-page .texture-nav small {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 9px;
  margin-top: 8px
}

.mall-yarn-page .nav-num {
  font-size: 10px;
  align-self: flex-start
}

.mall-yarn-page .texture-nav b {
  margin-left: auto;
  font-weight: 400
}

.mall-yarn-page .collection {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 110px
}

.mall-yarn-page .section-heading {
  display: flex;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--ink);
  padding: 30px 0
}

.mall-yarn-page .number {
  font-family: Georgia, serif;
  font-size: 60px;
  font-style: italic;
  color: var(--accent)
}

.mall-yarn-page .section-heading h2 {
  font-family: inherit;
  font-size: 40px;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 7px 0 10px
}

.mall-yarn-page .section-heading p {
  font-size: 12px;
  margin: 0
}

.mall-yarn-page .count {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: .1em
}

.mall-yarn-page .material {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e6e5dd;
  margin-bottom: 42px
}

.mall-yarn-page .material-img {
  height: 370px;
  position: relative;
  overflow: hidden
}

.mall-yarn-page .material-img img {
  transform: scale(1.13)
}

.mall-yarn-page .material-img>span {
  position: absolute;
  bottom: 18px;
  left: 20px;
  color: white;
  font-size: 9px;
  letter-spacing: .17em;
  text-shadow: 0 1px 4px #333
}

.mall-yarn-page .material-copy {
  padding: 60px 45px;
  align-self: center
}

.mall-yarn-page .material-copy h3 {
  font-size: 24px;
  line-height: 1.7;
  font-weight: 500;
  margin: 20px 0
}

.mall-yarn-page .material-copy p {
  font-size: 13px;
  line-height: 2.1
}

.mall-yarn-page .text-link {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  padding: 20px 0 10px;
  max-width: 220px
}

.mall-yarn-page .products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px
}

.mall-yarn-page .collection:nth-of-type(4) .products {
  grid-template-columns: repeat(3, 1fr)
}

.mall-yarn-page .product-img {
  position: relative;
  aspect-ratio: 4/5;
  background: #e6e5dd;
  overflow: hidden
}

.mall-yarn-page .product-img img {
  transition: opacity .4s, transform .6s
}

.mall-yarn-page .product-img .alternate {
  position: absolute;
  inset: 0;
  opacity: 0
}

.mall-yarn-page .product:hover .alternate {
  opacity: 1
}

.mall-yarn-page .product:hover img {
  transform: scale(1.025)
}

.mall-yarn-page .product-img>span {
  position: absolute;
  bottom: 18px;
  right: 16px;
  background: var(--paper);
  font-size: 9px;
  letter-spacing: .1em;
  padding: 12px 15px
}

.mall-yarn-page .product>p {
  font-size: 13px;
  line-height: 1.8;
  margin: 19px 0 13px
}

.mall-yarn-page .product-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px
}

.mall-yarn-page a:focus-visible {
  outline: 2px solid #515d46;
  outline-offset: 4px
}

@media(max-width:1150px) {

  .mall-yarn-page .texture-nav,
  .mall-yarn-page .collection {
    margin-left: 5%;
    margin-right: 5%
  }

  .mall-yarn-page .texture-nav a {
    gap: 8px
  }

  .mall-yarn-page .texture-nav span:not(.nav-num) {
    font-size: 14px
  }

  .mall-yarn-page .material-copy {
    padding: 35px
  }
}

@media(max-width:700px) {

  .mall-yarn-page {
    --texture-nav-top: 0px;
  }

  .mall-yarn-page .intro h2 {
    font-size: 24px;
    letter-spacing: .1em
  }

  .mall-yarn-page .intro p {
    font-size: 11px;
    line-height: 2.3
  }

  .mall-yarn-page .sp {
    display: block
  }

  .mall-yarn-page .texture-nav {
    display: grid;
    margin-bottom: 70px
  }

  .mall-yarn-page .texture-nav a {
    position: relative;
    min-width: 0;
    padding: 24px 5px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    gap: 5px
  }

  .mall-yarn-page .texture-nav img {
    width: 25px;
    height: 36px;
    flex-shrink: 0
  }

  .mall-yarn-page .texture-nav span:not(.nav-num) {
    min-width: 0;
    font-size: clamp(8px, 2.2vw, 14px);
    line-height: 1.4;
    overflow-wrap: anywhere
  }

  .mall-yarn-page .texture-nav small {
    font-size: clamp(7px, 1.6vw, 9px);
    margin-top: 4px
  }

  .mall-yarn-page .nav-num {
    position: absolute;
    top: 7px;
    left: 5px;
    font-size: 8px
  }

  .mall-yarn-page .texture-nav b {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px
  }

  .mall-yarn-page .collection {
    padding-bottom: 65px
  }

  .mall-yarn-page .section-heading {
    gap: 16px;
    padding: 23px 0
  }

  .mall-yarn-page .number {
    font-size: 43px
  }

  .mall-yarn-page .section-heading h2 {
    font-size: 27px
  }

  .mall-yarn-page .section-heading .eyebrow {
    font-size: 7px
  }

  .mall-yarn-page .section-heading p {
    font-size: 10px
  }

  .mall-yarn-page .count {
    font-size: 8px
  }

  .mall-yarn-page .material {
    grid-template-columns: 1fr;
    margin-bottom: 25px
  }

  .mall-yarn-page .material-img {
    height: 270px
  }

  .mall-yarn-page .material-copy {
    padding: 30px 25px 35px
  }

  .mall-yarn-page .material-copy h3 {
    font-size: 21px;
    margin: 15px 0
  }

  .mall-yarn-page .material-copy p {
    font-size: 12px
  }

  .mall-yarn-page .products,
  .mall-yarn-page .collection:nth-of-type(4) .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 15px
  }

  .mall-yarn-page .product-img>span {
    font-size: 7px;
    padding: 8px;
    right: 8px;
    bottom: 10px
  }

  .mall-yarn-page .product>p {
    font-size: 11px;
    margin: 12px 0 9px
  }

  .mall-yarn-page .product-bottom {
    font-size: 9px
  }
}

@media(prefers-reduced-motion:reduce) {
  .mall-yarn-page * {
    transition: none !important
  }
}

/* FV：PC / SP 画像切り替え。画像全体を比率どおり表示 */

.mall-yarn-page .fv-banner h1 {
  margin: 0;
  font-size: 0
}

.mall-yarn-page .fv-banner picture {
  display: block
}

.mall-yarn-page .fv-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain
}

/* タブ切り替え：ボタンの既存デザインは維持 */
.mall-yarn-page .collection[hidden] {
  display: none !important;
}

.mall-yarn-page .texture-nav [role="tab"] {
  cursor: pointer;
}