/* 1. Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
}

/* 2. Base Typography */
body {
  font-family: 'Open Sans', sans-serif;
  background: #f2f2f2;
  color: #222;
}

/* 3. Header */
.main-banner {
  margin: 0;
  padding: 0;
}
.main-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* 4. Intro Section Background */
.intro-section-bg {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 60px 0;
}
.intro-section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://gigaplus.makeshop.jp/loward/lp/haikyu5/img/back_02.webp');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: -1;
}

/* 5. Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* 6. Intro (PC) */
@media screen and (min-width: 1024px) {
  .intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    z-index: 1;
  }
  .intro-box {
    width: 50%;
  }
  .intro-section-bg {
    position: relative;
  }
}

/* 7. Intro Boxes */
.intro-box {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
}
.intro-box h3 img {
  width: 200px;
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 10px;
}

/* 8. Label Banner */
/* PC譎� */
.label-banner-img {
  display: block;     /* 竊進nline-block繧鍛lock縺ｫ螟峨∴繧� */
  margin-bottom: 12px;
}
.label-banner-img img {
  max-width: 100%;
  height: auto;
  display: block;
}
    
/* 繧ｹ繝槭�譎ゅ□縺代そ繝ｳ繧ｿ繝ｼ蟇�○ */
@media screen and (max-width: 837px) {
  .label-banner-img {
    margin-left: auto;
    margin-right: auto;
    text-align: center;   /* 蠢ｵ縺ｮ縺溘ａ霑ｽ蜉� */
    width: fit-content;   /* 讓ｪ蟷�ｒ荳ｭ霄ｫ縺ｫ蜷医ｏ縺帙ｋ縲ゅ↑縺代ｌ縺ｰ荳崎ｦ� */
  }
  .label-banner-img picture, 
  .label-banner-img img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 9. Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  text-align: center;
}

/* 10. Item Cards */
.item-card {
  max-width: 340px;
  margin: 20px auto;
  background: #fff;
  padding: 20px 15px;
  border-radius: 10px;
  box-shadow: 3px 3px 0 #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 3px solid #222;
  transition: transform 0.2s ease;
}
.item-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 #000;
}
.item-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}
.item-card h3 {
  font-size: 1.1rem;
  margin-top: 12px;
  margin-bottom: 10px;
  font-weight: bold;
  text-align: center;
}
.item-card .buy-button {
  margin-top: auto;
  align-self: center;
}

/* 11. Buy Buttons */
.buy-button {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  background: #ec6800;
  border: 3px solid #000;
  color: #fff;
  font-weight: bold;
  font-family: 'Noto Sans JP', sans-serif;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.buy-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
}

/* 12. Sliders */
.swiper {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}
.swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}
.swiper-button-next,
.swiper-button-prev {
  color: black;
}

/* 13. Item Sections */
.item-section-deku,
.item-section-bakugo,
.item-section-syoto,
.item-section-tomura,
.item-section-otyako {
  position: relative;
  text-align: center;
  padding: 60px 20px;
  color: white;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url('https://gigaplus.makeshop.jp/loward/lp/haikyu5/img/back_dot_wh.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.item-section-deku::before,
.item-section-bakugo::before,
.item-section-syoto::before,
.item-section-tomura::before,
.item-section-otyako::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.75;
}
.item-section-deku::before { background-color: #ff671f; }
.item-section-bakugo::before { background-color: #c43b3b; }
.item-section-syoto::before { background-color: #c5b158; }
.item-section-tomura::before { background-color: #9b4354; }
.item-section-otyako::before { background-color: #f59bbb; }
.item-section-deku > *,
.item-section-bakugo > *,
.item-section-syoto > *,
.item-section-tomura > *,
.item-section-otyako > * {
  position: relative;
  z-index: 1;
}

/* 14. Item Headers */
.item-header h2 {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 10px;
}
.item-header h2 span {
  font-size: 36px;
  display: block;
}
.item-header .subtitle {
  font-size: 16px;
  color: #ccc;
  margin-bottom: 20px;
}

/* 15. Item Content */
.item-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto 20px;
}

/* 16. Character Images */
.character-img {
  position: absolute;
  bottom: -20px;
  height: calc(100px, 15vw, 280px);
  width: auto;
  z-index: 2;
  pointer-events: none;
  object-fit: contain;
}
.character-left { left: -12vw; right: auto; }
.character-right { right: -12vw; left: auto; }
.item-section-deku .character-img.character-right {
  max-width: 200px;
  right: clamp(-80px, -8vw, -120px);
  bottom: 0;
}
.item-section-tomura .character-img.character-right {
  bottom: 70px;
}
.character-img.character-left.uravity-fix { left: -4vw; }

/* 17. Item Info */
.item-info {
  font-size: 16px;
  line-height: 2;
  max-width: 800px;
  margin: 0 auto;
  color: white;
}

/* 18. Novelty Section */
/* 共通 */
.novelty-section {
  position: relative;
  background-color: #fff;
  overflow: hidden;                /* 100vwの横はみ出し対策 */
  padding: clamp(40px, 6vw, 100px) 20px;
  text-align: left;
}

.novelty-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}
.novelty-textbox {
  flex: 1;
  font-family: 'Noto Sans JP', sans-serif;
  color: #222;
}
.novelty-heading { 
  font-size: clamp(1.2rem, 2vw + 1rem, 1.8rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 16px;
}
.novelty-note {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #444;
}
.novelty-img { flex: 1; display: block; }
.novelty-img img { width: 100%; height: auto; display: block; }

/* SP：1列＋右上に背景(飾り) */
@media (max-width: 767px) {
  .novelty-section {
    background-repeat: no-repeat;
    background-position: right 10px top 10px;
    background-size: 40%;
    padding: 40px 16px;
  }
  .novelty-inner { flex-direction: column; text-align: center; }
  .novelty-heading { font-size: 1.1rem; }
  .novelty-note { font-size: 0.8rem; }
  .novelty-img { margin-top: 20px; }
}

  /* テキストは中央寄せの通常幅、画像はその下にフル幅表示したい場合は
     novelty-inner を縦並びにする */
  .novelty-inner { 
    display: block;              /* ← これでテキスト→画像の縦並びに */
    max-width: none; 
  }
  .novelty-textbox {
    max-width: 1100px;
    margin: 0 auto 24px;         /* テキストは中央の1100px幅に収める */
    padding: 0 20px;
    position: relative; 
    z-index: 2;
    text-align: center;  
  }

  /* 画像を画面幅(100vw)に。中央に合わせる“はみ出しテク” */
  .novelty-img--fullbleed {
    display: block;
    width: 70vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
  }
  .novelty-img--fullbleed img {
    display: block;
    width: 100%;
    height: auto;
  }



/* 19. Footer */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
}

/* 20. Responsive */
@media screen and (max-width: 1095px) {
  .character-right { right: -10vw; }
  .character-left { left: -10vw; }
}

@media screen and (max-width: 1010px) {
  .character-right { right: -5vw; }
  .character-left { left: -5vw; }
  .item-section-deku .character-img.character-right { right: -5vw; }
}

@media screen and (max-width: 768px) {
  .character-img.character-left.uravity-fix { left: -2vw; }
  .item-section-deku .character-img.character-right {
    position: absolute;
    right: 0;
    bottom: 0;
    max-width: 120px;
  }
    
}

@media screen and (max-width: 615px) {
  .item-header h2 span {
    font-size: 24px;  /* 蠢�ｦ√↓蠢懊§縺ｦ謨ｰ蛟､隱ｿ謨ｴ */
  }
}
    @media screen and (max-width: 500px) {
  .item-info {
    font-size: 14px;  /* 蠢�ｦ√↓蠢懊§縺ｦ謨ｰ蛟､隱ｿ謨ｴ */
  }
}
     @media screen and (max-width: 345px) {
  .novelty-title { font-size: 2.3rem; } 
}  

/* === NOVELTY 豚アイコンを前面に重ねる（最終勝ち） === */
.novelty-section::after{
  content:"";
  position:absolute;
  background: url("https://gigaplus.makeshop.jp/loward/lp/haikyu5/img/novelty-buta.png")
  no-repeat center / contain;
  opacity: 0.4;   
  pointer-events:none;
  z-index: -1;           /* ← 豚はテキストの下、画像の上 */
  top: 8px;                
  left: 40px;
  width: min(500px, 24vw);
  height: min(500px, 24vw);
}
.novelty-img--fullbleed { position: relative; z-index: 0; }  /* 一番下 */
.novelty-textbox { position: relative; z-index: 2; }         /* 一番上（文字） */


/* --- NOVELTY 重なり順を明示 --- */

/* メイン画像：最背面 */
.novelty-img--fullbleed {
  position: relative;
  z-index: 0;
}

/* テキスト：最前面 */
.novelty-textbox {
  position: relative;
  z-index: 2;
}

/* 豚：文字の下・画像の上 */
.novelty-section::after {
  content:"";
  position:absolute;
  background: url("https://gigaplus.makeshop.jp/loward/lp/haikyu5/img/novelty-buta.png")
              no-repeat center / contain;
  opacity: 0.4;          /* 半透明 */
  pointer-events:none;
  z-index: 1;            /* ← ここが大事！ 文字の下にする */
  top: 20px;
  left: 40px;
  width: min(500px, 24vw);
  height: min(500px, 24vw);
}

/* スマホでは豚を非表示 */
@media (max-width: 767px) {
  .novelty-section::after {
    content: none !important;
  }
}

