:root {
  --bg: #0C0C0D;
  --ink: #FFF9F5;
  --max: 1180px;
  --pad: clamp(2.5rem, 8vw, 9rem);
  --serif: "Noto Serif Thai", serif;
  --sans: "Prompt", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* background: var(--ink); */
  background-color: #fff;
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

main {
  margin: 0;
  padding: var(--chrome-header-offset, 5.5rem) var(--chrome-pad, var(--pad)) 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  font-family: "Epunda Slab", serif;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.06em;
  margin: 0;
}

h4 {
  font-family: var(--sans);
}

p {
  margin: 0;
}

/* —— Title —— */

.title {
  width: 95%;
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-bottom: 12px;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}

.title h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #222;
}

.title h4 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(14px, 3vw, 20px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #222;
}

.allthai-index {
  width: 100%;
  margin: 60px auto 100px;
  color: #4c5864;
}

/* —— ブンチュ選手 —— */

.bun {
  width: 90%;
  max-width: 1200px;
  margin: 100px auto 0;
    /* display: grid; */
  /* display: flex;
  justify-content: center;
  grid-template-columns: 1fr; */
    /* gap: 60px 25px; */
}
.bun .at-name {
  height: 40px;
  margin: 0 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(25px, 1.7vw, 30px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #333;
  text-align: center;
  border-bottom: 1px solid #969696;
}

.bun01 {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 25px;
}



.bun img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  border-radius: 3px;
}

.bun01 li {
  grid-column: 2;
  width: 120%;
  /* justify-content: center; */
  justify-self: center;
}

.bun li > div {
  width: 100%;
}

/* —— 3人の選手 —— */

.mwt {
  width: 90%;
  max-width: 1200px;
  margin: 100px auto 0;
}

.mwt01 {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 25px;
}

.mwt li {
  width: 100%;
}

.mwt li > div {
  width: 100%;
}

.mwt .at-name {
  height: 40px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 1.5vw, 24px);
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #333;
  text-align: center;
  border-bottom: 1px solid #969696;
}

.mwt img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  border-radius: 3px;
}


/* —— AllThailand優勝者 —— */

/* .list01 > p::after{
    content: "";
    position: absolute;
    left: calc(-1 * max(var(--pad), (100vw - var(--max)) / 2));
    bottom: 0;
    width: 28vw;
    height: 1px;
    background: #ffffff;
} */


ul, li {
  list-style: none;
  padding: 0;
}

.allthai-index {
  width: 100%;
  margin: 100px auto;
  color: #4C5864;
}


/* .list01 li {
    width: 22%;
    margin: 0 1% 60px;
    position: relative;
}
.list01 {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
} */

.list01 {
  width: 90%;
  max-width: 1200px;
  margin: 100px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px 25px;
}

.list01 li {
  width: 100%;
  margin: 0;
}

.list01.js-reveal li {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.list01.js-reveal li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.list01 li > div {
  width: 100%;
}

.list01 .at-name {
  position: relative;
  margin: 0 0 8px;
  /* padding-bottom: 8px; */
  font-size: clamp(13px, 1.2vw, 17px);
  /* line-height: 1.4; */
  letter-spacing: 0.05em;
  color: #333;
  height: 40px;

  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  border-bottom: 1px solid #969696;
}

.list01 img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  border-radius: 3px;
}

.list01 img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
}
















/* —— Float cart —— */
.float-cart {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 45;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.float-cart img {
  width: 28px;
  height: auto;
  object-fit: contain;
}

.float-cart:hover {
  opacity: 0.75;
}



/* Responsive */

@media (max-width: 768px) {
  .list01 {
    width: 90%;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 12px;
  }

  .list01 .at-name {
    font-size: 12px;
  }



  .mwt01 {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .mwt01 .at-name {
    font-size: 24px;
  }



  .bun01 {
    grid-template-columns: 1fr;
  }
  .bun01 li {
    grid-column: 1;
    width: 100%;
  }

  .bun01 .at-name {
    font-size: 24px;
  }

  .is-visible .at-name {
    font-size: 18px;
  }

}

@media (max-width: 480px) {
  .list01 {
    grid-template-columns: 1fr;
  }

  .sp-only {
    display: block;
  }
  .pc-only {
    display: none;
  }
}

@media (min-width: 481px) {
    .sp-only {
    display: none;
  }
  .pc-only {
    display: block;
  }
}