/* エーモンオンラインショップ｜トップページ改修専用CSS
   既存の common.css / style.css / review.css の後に読み込む
   メインビジュアル：動画 + 文字画像 + 下部の白い曲線
*/
.amp-top-movie {
  position: relative;
  width: 100%;
  height: min(55vw, 780px);
  min-height: 470px;
  overflow: hidden;
  background: #ec3028;
  isolation: isolate;
}

.amp-top-movie__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.amp-top-movie__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.amp-top-movie__catch {
  position: absolute;
  top: 14%;
  left: max(7%, calc((100% - 820px) / 2));
  width: clamp(90px, 12vw, 140px);
  height: auto;
  display: block;
}

.amp-top-movie__title {
  position: absolute;
  bottom: 0;
  left: max(7%, calc((100% - 820px) / 2));
  width: clamp(290px, 34vw, 420px);
  height: auto;
  display: block;
}

.amp-top-movie__wave {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: -1px;
  display: block;
  width: 100%;
  height: clamp(80px, 14vw, 175px);
  pointer-events: none;
}

@media screen and (max-width: 767px) {
  .amp-top-movie {
    /* SP動画を縦長で大きく見せる（9:16想定） */
    height: auto;
    aspect-ratio: 9 / 16;
    min-height: 0;
    max-height: none;
  }

  .amp-top-movie__catch {
    top: 10%;
    left: 9%;
    width: clamp(65px, 15vw, 90px);
  }

  .amp-top-movie__title {
    bottom: 1%;
    left: 9%;
    width: min(55vw, 295px);
  }

  .amp-top-movie__wave {
    height: clamp(65px, 17vw, 95px);
  }
}


/* CATEGORY｜PC 2列・SP 1列 */
.amp-top-category__inner {
  width: min(100% - 40px, 1100px);
  margin: 0 auto;
}

.amp-top-category__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.amp-top-category__item {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.amp-top-category__item img {
  display: block;
  width: 100%;
  height: auto;
}

@media screen and (max-width: 767px) {
  .amp-top-category__inner {
    width: calc(100% - 32px);
  }

  .amp-top-category__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* CATEGORY: decorative background must stay behind the banners */
.amp-top-category {
  position: relative;
  isolation: isolate;
}

.amp-top-category__inner {
  position: relative;
  z-index: 2;
}

.amp-top-category__grid,
.amp-top-category__item {
  position: relative;
  z-index: 2;
}

.amp-top-category::before,
.amp-top-category::after {
  z-index: -1;
  pointer-events: none;
}

/* CATEGORYの下に続くCOLUMN背景の斜め装飾が、
   CATEGORYバナーの上に被らないようにセクション単位で前後関係を固定する。 */
.fs-l-pageMain > .amp-top-category {
  position: relative;
  z-index: 3;
}
.fs-l-pageMain > .amp-top-category + .amp-top-bg01 {
  position: relative;
  z-index: 1;
}


/* ABOUT | PC reference layout. Keep legacy service-card styling. */
.amp-top-about.amp-top-about--renewal {
  position: relative;
  z-index: 2;
  padding: 0;
  margin: 0;
  background: #fff;
  color: #222;
  overflow: hidden;
}

.amp-top-about--renewal .amp-top-about__intro {
  position: relative;
  padding: clamp(85px, 9vw, 120px) 20px 0;
  text-align: center;
  background-color: #fff;
  background-image: url("https://amonshop2021.itembox.cloud/item/assets/img/top/renewal/bg_about_pc.png");
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.amp-top-about--renewal .amp-top-about__heading {
  position: relative;
  z-index: 1;
  margin: 0 auto 45px;
  color: #e60012;
}
.amp-top-about--renewal .amp-top-about__heading .amc-heading__title,
.amp-top-about--renewal .amp-top-about__heading .amc-heading__label { color: #e60012; }
.amp-top-about--renewal .amp-top-about__heading .is-about {
  display: inline-block;
  vertical-align: middle;
}
.amp-top-about--renewal .amp-top-about__introInner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}
.amp-top-about--renewal .amp-top-about__text {
  margin: 0 auto;
  padding: 0;
  color: #111;
  font-size: clamp(14px, 1.45vw, 18px);
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
  text-shadow: none;
}
.amp-top-about--renewal .amp-top-about__visual {
  display: block;
  width: clamp(250px, 31vw, 350px);
  max-width: 100%;
  height: auto;
  margin: 28px 12% 0 auto;
}
.amp-top-about--renewal .amp-top-about__services {
  position: relative;
  padding: 42px 20px 55px;
  background: #cee9f4;
  text-align: center;
}
.amp-top-about--renewal .amp-top-about__servicesInner {
  max-width: 1100px;
  margin: 0 auto;
}
.amp-top-about--renewal .amp-top-about__title {
  margin: 0 0 24px;
  color: #111;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}
/* Layout only: the existing .amp-top-about__item / image / label rules
   provide the original visual design for each service card. */
.amp-top-about--renewal .amp-top-about__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  width: min(100%, 720px);
  max-width: 720px;
  margin: 0 auto 38px;
  padding: 0;
  list-style: none;
}
.amp-top-about--renewal .amp-top-about__item {
  width: auto;
  min-width: 0;
  margin: 0;
}
.amp-top-about--renewal .amp-top-about__item a {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}
.amp-top-about--renewal .amp-top-about__more {
  position: relative;
  display: block;
  margin: 0 auto;
}
@media screen and (max-width: 767px) {
  .amp-top-about--renewal .amp-top-about__intro {
    padding: 65px 16px 0;
    background-image: url("https://amonshop2021.itembox.cloud/item/assets/img/top/renewal/bg_about_sp.png");
    background-size: 100% 100%;
  }
  .amp-top-about--renewal .amp-top-about__heading { margin-bottom: 24px; }
  .amp-top-about--renewal .amp-top-about__text {
    font-size: clamp(12px, 3.3vw, 15px);
    line-height: 1.9;
  }
  .amp-top-about--renewal .amp-top-about__pcBreak { display: none; }
  .amp-top-about--renewal .amp-top-about__visual {
    width: min(80%, 330px);
    margin: 20px 0 0 auto;
  }
  .amp-top-about--renewal .amp-top-about__services { padding: 30px 16px 45px; }
  .amp-top-about--renewal .amp-top-about__title { font-size: 19px; margin-bottom: 18px; }
  .amp-top-about--renewal .amp-top-about__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 400px);
    margin-bottom: 28px;
  }
}

/* ABOUT: service card layout correction (legacy absolute sizes/positions reset) */
@media screen and (min-width: 768px) {
  .amp-top-about--renewal .amp-top-about__services {
    padding: 44px 20px 55px;
  }
  .amp-top-about--renewal .amp-top-about__list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: min(100%, 720px);
    max-width: 720px;
    margin: 0 auto 38px;
    align-items: stretch;
  }
}
.amp-top-about--renewal .amp-top-about__servicesInner {
  position: relative;
}
.amp-top-about--renewal .amp-top-about__list {
  position: relative;
  z-index: 1;
}
.amp-top-about--renewal .amp-top-about__item {
  box-sizing: border-box !important;
  position: relative !important;
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: #f1f1f1 !important;
  border: 3px solid #b7bec1;
  border-radius: 9px;
  box-shadow: inset 0 0 0 4px #f1f1f1, inset 0 0 0 5px #c9cdd0;
  overflow: hidden;
}
.amp-top-about--renewal .amp-top-about__item::before,
.amp-top-about--renewal .amp-top-about__item::after,
.amp-top-about--renewal .amp-top-about__item a::before,
.amp-top-about--renewal .amp-top-about__item a::after {
  content: none !important;
  display: none !important;
}
.amp-top-about--renewal .amp-top-about__item > a {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 12px 6px !important;
  color: #222;
  text-decoration: none;
}
.amp-top-about--renewal .amp-top-about__item img {
  position: static !important;
  display: block !important;
  flex: 0 0 auto;
  width: 74px !important;
  max-width: 65%;
  height: 66px !important;
  margin: 0 auto 6px !important;
  object-fit: contain;
  transform: none !important;
}
.amp-top-about--renewal .amp-top-about__itemLabel {
  position: static !important;
  display: block !important;
  flex: 0 0 auto;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  font-weight: 700;
  text-align: center;
  color: #222 !important;
  transform: none !important;
}
.amp-top-about--renewal .amp-top-about__itemLabel span {
  position: static !important;
  display: block !important;
  margin-top: 4px !important;
  font-size: 9px !important;
  line-height: 1.25 !important;
  font-weight: 400;
  color: #222 !important;
  transform: none !important;
}
.amp-top-about--renewal .amp-top-about__more.amc-btn {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 1;
  transform: none !important;
  display: flex !important;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 230px;
  min-height: 52px;
  margin: 0 auto !important;
  background-color: #171717;
  color: #fff;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .amp-top-about--renewal .amp-top-about__item img {
    width: 62px !important;
    height: 57px !important;
  }
  .amp-top-about--renewal .amp-top-about__itemLabel { font-size: 12px !important; }
  .amp-top-about--renewal .amp-top-about__itemLabel span { font-size: 8px !important; }
}

/* ABOUT | 2026-11-17: use the supplied original decorative SVG for the service cards.
   Remove the temporary CSS-drawn border from the preceding adjustment. */
.amp-top-about--renewal .amp-top-about__item {
  background: transparent url("https://amonshop2021.itembox.design/item/assets/img/top/bg-about-icon.svg") center center / 100% 100% no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible;
}
.amp-top-about--renewal .amp-top-about__item > a {
  padding: 15px 10px !important;
}

/* ABOUT -> footer: remove the theme's extra whitespace beneath the last section.
   Only applies to the top page preview so other store pages are unaffected. */
.fs-body-top .fs-l-main,
.fs-body-top .fs-l-pageMain {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.fs-body-top .fs-l-pageMain > .amp-top-about--renewal {
  margin-bottom: 0 !important;
}
/* Footer keeps its original spacing from the existing shop styles.
   Do not override .fs-l-footer margin/padding here. */

/* ABOUT and footer: remove only the theme's external gap on the top page.
   Keep the footer's own padding and internal layout unchanged. */
.fs-body-top .fs-l-footer {
  margin-top: 0;
}

/* ABOUT | SP layout refinement (PC styles remain unchanged) */
@media screen and (max-width: 767px) {
  .amp-top-about--renewal .amp-top-about__intro {
    box-sizing: border-box;
    padding: clamp(65px, 18vw, 92px) 16px 0;
    background-color: #fff;
    background-image: url("https://amonshop2021.itembox.cloud/item/assets/img/top/renewal/bg_about_sp.png");
    background-position: center top;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  .amp-top-about--renewal .amp-top-about__heading {
    margin: 0 auto 40px;
  }

  .amp-top-about--renewal .amp-top-about__introInner {
    width: 100%;
    max-width: 480px;
  }

  .amp-top-about--renewal .amp-top-about__text {
    width: 100%;
    max-width: 36em;
    margin: 0 auto;
    font-size: clamp(12px, 3.35vw, 15px);
    line-height: 1.85;
    overflow-wrap: anywhere;
  }

  .amp-top-about--renewal .amp-top-about__pcBreak {
    display: none;
  }

  .amp-top-about--renewal .amp-top-about__visual {
    display: block;
    width: min(78%, 310px);
    max-width: 100%;
    height: auto;
    margin: 24px 0 0 auto;
  }

  .amp-top-about--renewal .amp-top-about__services {
    padding: 30px 16px 48px;
  }

  .amp-top-about--renewal .amp-top-about__title {
    margin: 0 0 22px;
    font-size: clamp(18px, 4.5vw, 21px);
    line-height: 1.4;
  }

  .amp-top-about--renewal .amp-top-about__list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: min(100%, 400px) !important;
    max-width: 400px;
    margin: 0 auto 30px !important;
    padding: 0 !important;
  }

  .amp-top-about--renewal .amp-top-about__item {
    width: 100% !important;
    min-width: 0;
    aspect-ratio: 1 / 1;
  }

  .amp-top-about--renewal .amp-top-about__item > a {
    padding: 10px 6px !important;
  }

  .amp-top-about--renewal .amp-top-about__item img {
    width: clamp(47px, 14vw, 67px) !important;
    height: clamp(44px, 13vw, 60px) !important;
    max-width: 65%;
    margin-bottom: 6px !important;
  }

  .amp-top-about--renewal .amp-top-about__itemLabel {
    font-size: clamp(11px, 3vw, 13px) !important;
    line-height: 1.25 !important;
  }

  .amp-top-about--renewal .amp-top-about__itemLabel span {
    font-size: clamp(8px, 2.1vw, 10px) !important;
  }

  .amp-top-about--renewal .amp-top-about__more.amc-btn {
    width: min(230px, 80%);
    min-height: 52px;
    margin: 0 auto !important;
  }
}

/* TOPICSのみ背景装飾を非表示（NEW ARRIVALには影響させない） */
.fs-body-top .amp-top-topics-bg-off,
.fs-body-top .amp-top-topics-bg-off .amp-top-bg01,
.fs-body-top .amp-top-topics-bg-off .amp-top-bg02 {
  background-image: none !important;
  background-color: #fff;
}
.fs-body-top .amp-top-topics-bg-off::before,
.fs-body-top .amp-top-topics-bg-off::after,
.fs-body-top .amp-top-topics-bg-off .amp-top-bg01::before,
.fs-body-top .amp-top-topics-bg-off .amp-top-bg01::after,
.fs-body-top .amp-top-topics-bg-off .amp-top-bg02::before,
.fs-body-top .amp-top-topics-bg-off .amp-top-bg02::after {
  background-image: none !important;
}

/* PC: smooth hero wave and reduce the gap between TOPICS and NEW ARRIVAL. */
@media screen and (min-width: 768px) {
  /* Keep the wave entirely inside its SVG viewport; path adjusted in HTML. */
  .amp-top-movie__wave {
    bottom: -1px;
  }

  /* Adjust only the vertical spacing between these two sections. */
  .amp-top-topics-bg-off .amp-top-topix {
    padding-bottom: 35px !important;
  }
}

/* PC visual corrections 2026-11-17
   Keep the hero lettering above the following section and reduce the
   section-to-section gap without relying on dynamically sized topic cards. */
@media screen and (min-width: 768px) {
  .fs-body-top .amp-top-movie {
    isolation: auto;
    overflow: visible;
    z-index: 2;
  }

  .fs-body-top .amp-top-movie__title {
    bottom: 0;
    z-index: 3;
  }
}

/* SP: remove the default page-main inset and tighten TOPICS -> NEW ARRIVAL. */
@media screen and (max-width: 767px) {
  .fs-body-top .fs-l-pageMain {
    padding: 0 !important;
  }
}

/* SP: 縦動画を上下トリミングしてMVの高さを抑える（PCには影響しない） */
@media screen and (max-width: 767px) {
  .fs-body-top .amp-top-movie {
    height: auto;
    aspect-ratio: 100 / 145;
    min-height: 0;
    overflow: hidden;
  }

  .fs-body-top .amp-top-movie__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}

/* ABOUT | SP service cards: match the larger icon and type scale of the original shop. */
@media screen and (max-width: 767px) {
  .amp-top-about--renewal .amp-top-about__item > a {
    padding: 10px 5px !important;
  }
  .amp-top-about--renewal .amp-top-about__item img {
    width: clamp(78px, 23vw, 112px) !important;
    height: clamp(75px, 22vw, 108px) !important;
    max-width: 75% !important;
    margin: 0 auto 5px !important;
  }
  .amp-top-about--renewal .amp-top-about__itemLabel {
    font-size: clamp(14px, 4vw, 19px) !important;
    line-height: 1.15 !important;
  }
  .amp-top-about--renewal .amp-top-about__itemLabel span {
    margin-top: 3px !important;
    font-size: clamp(10px, 2.75vw, 13px) !important;
    line-height: 1.2 !important;
  }
}

/* ABOUT / SP: first two cards - tighten icon-to-label gap, scale down member icon. */
@media screen and (max-width: 767px) {
  .fs-body-top .amp-top-about--renewal .amp-top-about__item.is-free img,
  .fs-body-top .amp-top-about--renewal .amp-top-about__item.is-member img {
    margin-bottom: 0 !important;
  }

  .fs-body-top .amp-top-about--renewal .amp-top-about__item.is-member img {
    width: clamp(52px, 15.33vw, 75px) !important;
    height: clamp(50px, 14.67vw, 72px) !important;
  }
}

/* ABOUT / SP: scale the other three service icons to roughly 2/3.
   Keep the previously adjusted member icon size unchanged. */
@media screen and (max-width: 767px) {
  .fs-body-top .amp-top-about--renewal .amp-top-about__item.is-free img,
  .fs-body-top .amp-top-about--renewal .amp-top-about__item.is-support img,
  .fs-body-top .amp-top-about--renewal .amp-top-about__item.is-support2 img {
    width: clamp(52px, 15.33vw, 75px) !important;
    height: clamp(50px, 14.67vw, 72px) !important;
    margin-bottom: 0 !important;
  }
}

/* ABOUT / SP: lower two cards - make the icon's actual layout box shorter.
   Avoid negative margins that made the label overlap the icon. */
@media screen and (max-width: 767px) {
  .fs-body-top .amp-top-about--renewal .amp-top-about__item.is-support img,
  .fs-body-top .amp-top-about--renewal .amp-top-about__item.is-support2 img {
    width: clamp(52px, 15.33vw, 75px) !important;
    height: clamp(38px, 11vw, 50px) !important;
    margin: 0 auto 12px !important;
    object-fit: contain;
  }
  .fs-body-top .amp-top-about--renewal .amp-top-about__item.is-support .amp-top-about__itemLabel,
  .fs-body-top .amp-top-about--renewal .amp-top-about__item.is-support2 .amp-top-about__itemLabel {
    margin-top: 0 !important;
  }
}

/* 12/1 test: use the original stone-image markup on CATEGORY instead of NEW ARRIVAL. */
.fs-body-top .amp-top-category-bg {
  position: relative;
  background-image: url("https://amonshop2021.itembox.design/item/assets/img/bg-right.png");
  background-position: right top 40%;
  background-repeat: no-repeat;
  background-size: 1600px auto;
}
/* Avoid drawing the same right decoration twice in the nested legacy wrapper. */
.fs-body-top .amp-top-category-bg > .amp-top-bg02 {
  position: relative;
  background-image: none;
}
/* Keep the legacy marble asset behind the banner links. */
.fs-body-top .amp-top-category-bg > .amp-top-bg02 > .amp-top-bg04 {
  pointer-events: none;
}
.fs-body-top .amp-top-category-bg .amp-top-category {
  position: relative;
  z-index: 3;
}
/* Replace the former TOPICS -> NEW ARRIVAL spacing adjustment. */
@media screen and (min-width: 768px) {
  .fs-body-top .amp-top-category-bg { margin-top: -90px; }
}
@media screen and (max-width: 767px) {
  .fs-body-top .amp-top-category-bg { margin-top: -80px; }
}

/* CATEGORY background: keep the stone decoration above the triangle layer (PC/tablet). */
@media screen and (min-width: 600px) {
  .fs-body-top .amp-top-category-bg .amp-top-bg04 {
    z-index: 2;
  }
}

/* COLUMN section: use white instead of the legacy #ededed decoration background. */
.fs-body-top .amp-top-bg03 {
  background-color: #fff;
}

/* Hide the legacy grey diagonal triangle generated by style.css. */
.fs-body-top .amp-top-bg03::before {
  content: none !important;
  display: none !important;
}
