:root {
  --header-h: 56px;
  --red: #e30;
  --red-dark: #810;
  --ink: #222;
  --gray-dark: #555;
  --white: #fff;
  --gray-light: #899;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 64px;
  }
}

body.scrolled {
  --header-h: 56px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(232, 56, 13, .16);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

img {
  max-width: 100%;
}

a:hover img {
  object-fit: cover;
  transition: transform .5s ease;
  transform: scale(1.03);
}

p,h1,h2,h3{  margin-block-start: 0;
    margin-block-end: 0;
}

ul{ padding-inline-start: 0px;
}

.xscroll {
  scrollbar-width: none;
}

.xscroll::-webkit-scrollbar {
  height: 0;
  width: 0;
}

@keyframes tresIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.page {
  position: relative;
  width: 100%;
  overflow-x: hidden;
  /* clip は hidden と違いスクロールコンテナを作らないので、
     商品ページの .product-info の position: sticky が効く */
  overflow-x: clip;
}

/* ============ HEADER ============ */
/* ロゴSVGは fill が既定で black になるため、color を効かせるには currentColor 指定が必要 */
.logo-svg {
  fill: currentColor;
}

/* .scrolled が付いていないとき: ロゴ・ナビ文字・ハンバーガーを白に */
/* ただし body.header-dark（ヒーロー画像が無い/白いページ用）が付いている場合は
   スクロール前でも白くせず、通常の文字色（黒系）のままにする */
body:not(.scrolled):not(.header-dark) .logo-svg,
body:not(.scrolled):not(.header-dark) .pc-nav-ja,
body:not(.scrolled):not(.header-dark) .pc-nav-en,
body:not(.scrolled):not(.header-dark) .hamburger {
  color: var(--white);
}

body:not(.scrolled):not(.header-dark) .pc-nav-item.mega-active .pc-nav-mark {
  background: var(--white);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}

body.scrolled .site-header {
  background: var(--white);
  border-bottom-color: var(--white);
}

.header-pc {
  display: none;
}

.header-sp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 14px;
}

@media (min-width: 1024px) {
  .header-pc {
    display: block;
  }

  .header-sp {
    display: none;
  }
}

.header-logo {
  display: flex;
  align-items: center;
}

.logo-svg {
  display: block;
  color: var(--ink);
}

.header-pc-bar {
  display: flex;
  align-items: stretch;
  height: var(--header-h);
  transition: height .2s ease;
}

.header-pc-bar .header-logo {
  gap: 14px;
  padding: 0 clamp(20px, 2.4vw, 38px);
  flex: 0 0 auto;
}

.pc-nav {
  display: flex;
  align-items: stretch;
  gap: clamp(16px, 2.4vw, 40px);
  flex: 1 1 auto;
}

.pc-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  padding: 0 2px;
}

.pc-nav-item:hover {
  color: inherit;
}

.pc-nav-ja {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-dark);
  letter-spacing: .02em;
  line-height: 1;
}

.pc-nav-en {
  font-family: 'Gotham', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
  white-space: nowrap;
}

.pc-nav-mark {
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 14px;
  height: 2px;
  background: transparent;
}

.pc-nav-item.mega-active .pc-nav-mark {
  background: var(--ink);
}

.header-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: clamp(88px, 7vw, 104px);
  flex: 0 0 auto;
}

.header-cta-ja {
  font-size: 10px;
  line-height: 1;
  letter-spacing: .02em;
}

.header-cta-en {
  font-family: 'Gotham', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
}

.header-cta-contact {
  background: var(--red);
  color: var(--white);
}

.header-cta-contact:hover {
  background: var(--red-dark);
  color: var(--white);
}

.header-cta-mypage {
  background: var(--ink);
  color: var(--white);
}

.header-cta-mypage:hover {
  background: var(--gray-dark);
  color: var(--white);
}

.mega-panel {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--white);
  box-shadow: 0 20px 34px -22px rgba(0, 0, 0, .22);
  animation: tresIn .16s ease both;
}

.mega-panel.open {
  display: block;
}

.mega-panel-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(22px, 2.2vw, 34px) clamp(20px, 2.4vw, 38px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2vw, 34px);
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mega-col-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
}

.mega-col-heading {
  font-family: 'Gotham', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
}

.mega-col-title-plain {
  font-size: 14px;
  font-weight: 700;
}

.mega-col-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-col-links a {
  font-size: 12.5px;
  color: var(--gray-dark);
  line-height: 1.4;
}

.mega-col-links a:hover {
  color: var(--red);
}

.hamburger {
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 10px 6px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  width: 44px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 26px;
  background: currentColor;
}

/* SP drawer */
.sp-drawer {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 190;
  background: var(--white);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: tresIn .18s ease both;
}

.sp-drawer[hidden] {
  display: none;
}

.sp-drawer-inner {
  padding: 4px 20px 56px;
}

.sp-accordion {
  border-bottom: 1px solid var(--white);
}

.sp-accordion-head {
  appearance: none;
  background: none;
  border: 0;
  width: 100%;
  padding: 17px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.sp-accordion-sign {
  font-size: 16px;
  line-height: 1;
  color: var(--gray-dark);
  width: 16px;
  text-align: center;
}

.sp-accordion-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 2px 18px 20px;
}

.sp-accordion-body[hidden] {
  display: none;
}

.sp-accordion-body a {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
}

.sp-accordion-body a:hover {
  color: var(--red);
}

.sp-drawer-gap {
  height: 20px;
}

.sp-flat-link {
  display: block;
  padding: 17px 2px;
  border-bottom: 1px solid var(--white);
  font-size: 13.5px;
}

.sp-flat-link:hover {
  color: var(--red);
}

.header-spacer {
  height: clamp(40px, 3vw, 50px);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background: #000;
  min-height: min(880px, 100svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--white);
}

.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 18, 20, .34) 0%, rgba(17, 18, 20, .10) 26%, rgba(17, 18, 20, .62) 58%, rgba(17, 18, 20, .92) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(140px, 20vh, 240px) clamp(20px, 3.2vw, 48px) clamp(48px, 7vh, 86px);
  color: var(--white);
  pointer-events: none;
}

.hero-mark {
  display: block;
  width: clamp(390px, 50vw, 600px);
  height: auto;
  margin-bottom: clamp(6px, 1.4vh, 16px);
}

.hero-title {
  margin: 0;
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 11vw, 104px);
  line-height: .96;
  letter-spacing: -.025em;
  max-width: 9em;
}

.hero-subtitle {
  margin: clamp(20px, 3vh, 36px) 0 0;
  font-size: clamp(16px, 4.6vw, 26px);
  font-weight: 700;
  letter-spacing: .02em;
}

.hero-copy {
  margin: clamp(10px, 1.6vh, 16px) 0 0;
  font-size: clamp(11px, 3.1vw, 15px);
  font-weight: 400;
  line-height: 1.95;
  color: rgba(255, 255, 255, .88);
}

/* Shared section layout */
.section {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(28px, 3vw, 40px) clamp(20px, 3vw, 48px) ;
}
.section-ink{
  background: var(--ink);
  color: var(--white);
  max-width: none;
}

.section-ink-inner{
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.section-heading {
  margin: 0 0 clamp(16px, 2vw, 30px);
  padding: 0;
  font-family: 'Gotham', sans-serif;
  font-size: clamp(28px, 2.2vw, 35px);
  font-weight: 700;
  letter-spacing: .04em;
}

.section-subheading {
  margin: 0 0 clamp(13px, 1vw, 24px);
  padding: 0;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: .04em;
}

.banner-box {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 480px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  height: auto;
  margin: 0 auto 1rem;
}

@media (min-width: 1024px) {
  .campaign-card:has(.banner-box + .banner-box) {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: clamp(16px, 2vw, 32px);
    align-items: start;
  }

  .campaign-card:has(.banner-box + .banner-box) .banner-box {
    max-width: none;
    margin: 0;
  }
}

/* ============ PICKUP ============ */
.pickup-card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--white);
  overflow: hidden;
}

.pickup-card img {
  display: block;
  width: 100%;
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  top:0
}

@media (min-width: 1024px) {
  #pickup {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(16px, 2vw, 32px);
  }

  #pickup .section-head {
    width: 100%;
  }

  .pickup-card {
    width: 640px;
    height: 360px;
    max-width: 100%;
    margin: 0;
  }

  .pickup-card img {
    width: 640px;
    max-width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: top center;
    top:-60px;
  }
}

/* CAMPAIGN: 1枚なら中央、2枚なら横並び（767px以下は縦1列） */
.pickup {
  --campaign-gap: clamp(16px, 2vw, 32px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--campaign-gap);
}

 .pickup-card {
  width: calc((100% - var(--campaign-gap)) / 2);
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0;
}

 .pickup-card img {
  top: 0;
  width: 100%;
  height: 100%;
  object-position: center;
}

@media (max-width: 767px) {
  .pickup-card {
    width: 100%;
  }
}

/* ============ SPORTS ============ */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 42vw, 270px), 1fr));
  gap: clamp(4px, .6vw, 10px);
}

.sports-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--ink);
  overflow: hidden;
}

.sports-tile:hover {
  color: var(--white);
}

.sports-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .35s ease, transform .5s ease;
}

.sports-tile:hover img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.sports-tile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .42));
  pointer-events: none;
}

.sports-tile-label {
  position: absolute;
  left: 1vw;
  bottom: 1vw;
  color: var(--white);
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  font-size: clamp(21px, 4vw, 28px);
  line-height: 1.5;
  letter-spacing: -.01em;
}

/* ============ TEAMORDER ============ */
.teamorder-section {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.teamorder-section .section-head {
  max-width: 1600px;
  margin: 0 auto clamp(14px, 1.6vw, 22px);
  padding: 0 clamp(20px, 3.2vw, 48px);
}

.teamorder-scroll {
  display: flex;
  gap: clamp(10px, 1.2vw, 20px);
  overflow-x: auto;
  padding: 0 clamp(20px, 3.2vw, 48px) 8px;
  cursor: grab;
}

.teamorder-scroll.dragging {
  cursor: grabbing;
  user-select: none;
}

.teamorder-card {
  flex: 0 0 auto;
  width: clamp(168px, 44vw, 260px);
  display: block;
}

.teamorder-card img {
  -webkit-user-drag: none;
}

.teamorder-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--white);
  overflow: hidden;
}

.teamorder-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.teamorder-card:hover .teamorder-thumb img {
  transform: scale(1.03);
}

.teamorder-card p {
  margin: 0;
}

.teamorder-en {
  padding-top: 12px;
  font-family: 'Gotham', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .01em;
}

.teamorder-ja {
  font-size: 14px;
  color: var(--ink);
  margin-top: 4px !important;
}

.teamorder-sport {
  font-family: 'Gotham', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--gray-light);
  margin-top: 4px !important;
}

/* ============ TEAMORDER (tabs + grid, sport TOP pages) ============ */
.teamorder-tabs {
  display: flex;
  flex-wrap: wrap;
  overflow-x: auto;
  margin: 0 0 clamp(16px, 2vw, 26px);
}

.teamorder-tab {
  appearance: none;
  background: none;
  border: 0;
  border-left: 1px solid var(--gray-light);
  margin: 0;
  padding: clamp(9px, 1.1vw, 13px) clamp(10px, 1.6vw, 20px);
  font-family: 'Gotham', 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}

.teamorder-tab:first-child {
  border-left: 0;
}

.teamorder-tab.is-active {
  background: var(--ink);
  color: var(--white);
}

.teamorder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 15vw, 220px), 1fr));
  gap: clamp(10px, 1.2vw, 20px) clamp(10px, 1.6vw, 24px);
  margin-bottom: clamp(20px, 2.6vw, 40px);
}

.teamorder-gcard {
  display: block;
}

.teamorder-gcard[hidden] {
  display: none;
}

.teamorder-gcard img {
  -webkit-user-drag: none;
}

.teamorder-gcard p {
  margin: 0;
}

.teamorder-gcard:hover .teamorder-thumb img {
  transform: scale(1.03);
}

.teamorder-gname-ja {
  padding-top: 12px;
  font-size: 14px;
  color: var(--ink);
}

.teamorder-gprice {
  font-size: 14px;
  color: var(--ink);
  margin-top: 4px !important;
}


.teamorder-info {
  background: #ddd;
  padding: 1rem 5px;
  text-align: center;
  font-size: 14px;
  text-decoration: underline;
  margin: 0 auto 2rem;
}

/* ============ ORDER GUIDE ============ */
/* 項目数（ステップ数）の増減に対応できるよう、grid + auto-fill で組む。
   li を増減させるだけでよく、nth-child 等の個別上書きは不要。 */


.orderguide-steps {
  max-width: 1080px;
  display: flex;
  margin:0 auto;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  list-style: none;
}

.orderguide-step{
  flex-basis: 50%;
  padding: 1%;
}

.orderguide-step-image img {
    width: 100%;
}

.orderguide-step-num{
  font-family: 'Gotham' sans-serif;
  font-weight: bold;
  padding: 1rem 0 0 0;
}

.orderguide-step-tit{
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 18px;
}

.orderguide-step-txt {
    margin-bottom: 1rem;
}

@media screen and (min-width:1024px) {
  .orderguide-step{
    flex-basis: 20%;
  }
}

.design-subheading {
    font-family: 'Gotham';
    font-size: clamp(42px, 2.2vw, 42px);
    margin: 1rem 0;
}

.desgin-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 960px;
    width: 100%;
    margin: auto;
}

.design-grid-item  {
    flex-basis: 100%;
    padding: clamp(28px, 3vw, 40px) 0;
}

.design-grid-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    width: 100%;
    max-width: 540px;
}

.design-grid-image img {
    width: 100%;
    max-width: 540px;
}

.fontlist {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: stretch;
    margin: auto;
    max-width: 960px;
}

.font-list-img {
    flex-basis: 100%;
}

@media screen and (min-width:1024px) {
  .design-grid-item  {
    flex-basis: 48%;
}
.font-list-img {
    flex-basis: 33%;
}
}


/* ============ WORKS ============ */
#works,
#custmer {
  padding: clamp(34px, 4.6vw, 80px) 0;
  max-width: none;
}

#works .section-head,
#custmer .section-head {
  max-width: 1600px;
  margin: auto;
  padding: 0 clamp(20px, 3.2vw, 48px);
}

.works-scroll {
  display: flex;
  gap: clamp(10px, 1.2vw, 20px);
  overflow-x: auto;
  padding: 0 0 1rem;
  cursor: grab;
}

.works-scroll.dragging {
  cursor: grabbing;
  user-select: none;
}

.works-card {
  flex: 0 0 auto;
  width: clamp(140px, 38vw, 200px);
  display: block;
}

.works-card img {
  -webkit-user-drag: none;
}

.works-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 10px;
}

.works-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.works-card:hover .works-image img {
  transform: scale(1.03);
}

/* 協賛・サポート活動（#custmer）は記事サムネ（640×335）に合わせて横長に */
#custmer .works-card {
  width: clamp(240px, 64vw, 320px);
}

#custmer .works-image {
  aspect-ratio: 640 / 335;
}

/* 商品ページ（{競技名}/{商品名}/）の作品集は画像を300px四方に */
#gallery .works-card {
  width: 300px;
}

.works-title {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.works-card:hover .works-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ AMBASSADOR ============ */
.ambassador-section {
  background: #000;
  color: var(--white);
  padding: clamp(28px, 3vw, 40px) 0 ;
}

.ambassador-heading {
  font-family: 'Gotham', sans-serif;
  font-size: clamp(42px, 2.2vw, 42px);
  font-weight: 700;
  letter-spacing: .04em;
  padding: 1rem 0;
}

.ambassador-key-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: clamp(32px, 4vw, 68px);
  justify-content: space-between;
  align-items: center;
}

.ambassador-hero-image img {
  display: block;
  margin: auto;
}

.ambassador-text {
  padding: 0 1rem;
}

.ambassador-scroll {
  display: flex;
  gap: clamp(8px, 1vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: clamp(12px, 1.4vw, 22px) clamp(20px, 3.2vw, 48px) 0;
}

.ambassador-card {
  flex: 0 0 auto;
  width: clamp(150px, 42vw, 240px);
  scroll-snap-align: start;
}

.ambassador-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--white);
  overflow: hidden;
}

.ambassador-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.ambassador-card:hover .ambassador-thumb img {
  transform: scale(1.03);
}

/* チームロゴは正方形なので切れないように 1:1 */
.ambassador-card.is-team .ambassador-thumb {
  aspect-ratio: 1 / 1;
}

/* ============ TOPICS ============ */
.topics-list {
  display: flex;
  flex-direction: column;
}

.topics-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(12px, 1.3vw, 18px) 0;
  border-bottom: 1px solid var(--white);
}

.topics-item:hover {
  color: var(--red);
}

.topics-date {
  font-family: 'Gotham', sans-serif;
  font-size: 12px;
  color: var(--gray-dark);
  letter-spacing: .03em;
}

.topics-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ SNS ============ */
.sns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(5px, .7vw, 12px);
  max-width: 1080px;
  width: 100%;
  margin: auto;
}

.sns-tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--white);
  overflow: hidden;
}

.sns-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.sns-tile:hover img {
  transform: scale(1.04);
}

.section-subheading-center {
  font-size: 21px;
  text-align: center;
  font-weight: bold;
}

/* ============ FIXED MENU (SP固定フッターナビ) ============ */
/* 1024px未満では画面下部に常時固定。項目数が増減してもflexが均等割りするので調整不要。 */
.fixed-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  background: var(--ink);
  color: var(--white);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.fixed-menu a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 4px;
  border-left: 1px solid rgba(255, 255, 255, .25);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.fixed-menu a:first-child {
  border-left: 0;
}

.fixed-menu a:hover {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
}

@media (min-width: 1024px) {
  .fixed-menu {
    display: none;
  }
}

/* 商品ページ：元ページの商品別ボタン構成を使うスマホ固定ナビ */
.product-fixed-actions {
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
}

.product-fixed-actions > .product-cta {
  flex: 0 0 auto;
  min-height: 48px;
  margin: 0;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
}

.product-fixed-actions > .product-cta:hover {
  background: var(--white);
  color: var(--ink);
}

.product-fixed-actions-links {
  display: flex;
  width: 100%;
  background: var(--ink);
}

.product-fixed-actions-links a {
  min-height: 44px;
  padding: 8px 4px;
}

@media (max-width: 1023px) {
  body.has-product-fixed-actions {
    padding-bottom: var(--product-fixed-actions-height, calc(116px + env(safe-area-inset-bottom, 0px)));
  }

  body.modal-open .product-fixed-actions {
    visibility: hidden;
    pointer-events: none;
  }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: clamp(26px, 3vw, 46px) clamp(20px, 3.2vw, 48px) clamp(18px, 2vw, 30px);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
}

.footer-logo {
  color: var(--white);
}

.footer-links {
  border-top: 1px solid var(--white);
  padding-top: clamp(18px, 2vw, 26px);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: clamp(10px, 1.4vw, 18px) clamp(14px, 2vw, 28px);
}

.footer-links-sport {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1023px) {
  .footer-links-sport {
    grid-template-columns: 1fr;
  }
}

.footer-sport-col {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 18px);
}

.footer-sport-heading {
  font-weight: 700;
}

.footer-sport-heading-sp {
  display: none;
}

@media (max-width: 1023px) {
  .footer-sport-heading-sp {
    display: block;
  }
}

.footer-links-action {
  border-top: none;
  padding-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 28px);
}

.footer-links a {
  color: var(--white);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .02em;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-copyright {
  margin: clamp(8px, 1.2vw, 18px) 0 0;
  text-align: center;
  font-family: 'Gotham', sans-serif;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--white);
}

/* ===== sports TOP ===== */
.hero.teamorder .hero-mark {
  opacity: .8;
}

/*  button */
.button-black,
.button-white {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid;
  padding: 21px 28px;
  font-size: 14px;
  width: 95%;
  max-width: 400px;
  margin: 1rem auto;
  position: relative;
}

.button-black {
  background: var(--ink);
  color: var(--white);
}

.button-white {
  background: var(--white);
  color: var(--ink);
}

.button-label {
  display: flex;
  align-items:
    baseline;
  gap: 10px;
}

.button-heading {
  font-family: 'Gotham', sans-serif;
  font-size: 16px;
  font-weight: bold;
}

.button-white::after,
.button-black::after {
  content: '→';
  position: absolute;
  right: 14px;
  font-family: 'Gotham', sans-serif;
  font-size: 18px;
}

.button-white:hover {
  background: var(--ink);
  color: var(--white);
  transition: .3s;
}

.button-black:hover {
  background: var(--white);
  color: var(--ink);
  transition: .3s;
}

dl.table-law {
  width: 100%;
  max-width: 768px;
  margin: auto;
}

.table-law dt {
  font-weight: bold;
  color: var(--gray-dark);
  font-size: 12px;
  line-height: 200%;
  padding: 1rem 0;
}

.table-law dd {
  line-height: 200%;
  padding: 0 0 1rem 1rem;
  border-bottom: 1px solid var(--gray-dark);
  margin: 0;
}

.section1080.topics-section {
  max-width: 1080px;
}

.section960 {
  padding: clamp(34px, 4.6vw, 80px) clamp(20px, 3.2vw, 48px);
  max-width: 960px;
  margin: 0 auto;
}



.hidden-sp {
  display: none;
}

.hidden-pc {
  display: inherit;
}

@media (min-width: 768px) {
  .hidden-pc {
    display: none;
  }

  .hidden-sp {
    display: inherit;
  }
}

/* ============ COMPANY / INFO CONTENT ============ */
.content_base {
  position: relative;
  background: var(--white);
  color: var(--ink);
  padding: clamp(34px, 4.6vw, 80px) 0;
}

.content_base+.content_base {
  padding-top: 0;
}

.inner960 {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.2vw, 48px);
}

.title_top {
  margin: 0 0 clamp(20px, 2.6vw, 32px);
  font-family: 'Gotham', sans-serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
}

.title_copy_left {
  margin: clamp(24px, 3vw, 40px) 0 clamp(16px, 2vw, 24px);
  padding-bottom: clamp(12px, 1.6vw, 18px);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  text-align: left;
}

.title_copy_left:first-of-type {
  margin-top: 0;
}

.table_list {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

.table_list th,
.table_list td {
  border-bottom: 1px solid var(--gray-light);
  padding: clamp(20px, 3.4vw, 50px) 5px;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
  vertical-align: top;
}

.table_list th {
  width: clamp(90px, 14vw, 170px);
  color: var(--gray-dark);
  font-weight: 700;
}

.margin_10vw {
  margin-bottom: clamp(32px, 5vw, 64px);
}

.flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
}

.flex_lg6-xs12 {
  flex-basis: 48%;
  width: 48%;
  margin-bottom: clamp(20px, 3vw, 40px);
  padding: 0;
  font-size: 14px;
  line-height: 1.8;
  list-style: none;
}

.hidden_all{
  display: none;
}

.hidden_lg {
  display: none;
}

@media (max-width: 640px) {
  .flex_lg6-xs12 {
    flex-basis: 100%;
    width: 100%;
  }
    .hidden_lg {
    display: unset;
  }
}


.iframewrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.iframewrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ QA ACCORDION (#qa dt/dd) ============ */
#qa dl {
  margin: 0 0 clamp(24px, 3vw, 48px);
}

#qa dl:last-of-type {
  margin-bottom: 0;
}

#qa dt {
  position: relative;
  padding: clamp(14px, 1.8vw, 18px) 36px clamp(14px, 1.8vw, 18px) 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}

#qa dt::before,
#qa dt::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  background: var(--ink);
}

#qa dt::before {
  width: 13px;
  height: 1px;
  transform: translateY(-50%);
}

#qa dt::after {
  width: 1px;
  height: 13px;
  right: 14px;
  transform: translateY(-50%);
}

#qa dt.is-open::after {
  display: none;
}

#qa dt:hover {
  color: var(--red);
}

#qa dd {
  display: none;
  margin: 0;
  padding: clamp(14px, 2vw, 20px) clamp(16px, 2vw, 24px);
  background: #f3f3f3;
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.9;
}

#qa dd.is-open {
  display: block;
}

#qa dd p+p {
  margin-top: 1em;
}

/* ============ SDGS SUB-PAGES (mainvisual banner + copy blocks) ============ */
#mainvisual_bg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}

#mainvisual_bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

.bg_ecology::after {
  background-image: url("/assets/images/sozai-bg-ecology.jpg");
}

.mainvisual_box {
  position: relative;
  width: 100%;
  text-align: center;
}

.inner1080,
.inner640 {
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(20px, 3.2vw, 48px);
}

.inner1080 {
  max-width: 1080px;
}

.inner640 {
  max-width: 640px;
}

.title_copy {
  margin: clamp(24px, 3vw, 40px) 0 clamp(16px, 2vw, 24px);
  padding-bottom: clamp(12px, 1.6vw, 18px);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
  text-align: center;
}

.title_copy:first-of-type {
  margin-top: 0;
}

.margin_b2 {
  margin-bottom: clamp(16px, 2vw, 28px);
}

.margin_b5 {
  margin-bottom: clamp(32px, 5vw, 64px);
}

.text-center, .text_center {
  text-align: center;
}
.text_underline{
  text-decoration: underline;
}

.text_note {
  font-size: 12px;
  color: var(--gray-dark);
}

.flex_lg2_5 {
  flex-basis: 18%;
  width: 18%;
  margin-bottom: clamp(20px, 3vw, 40px);
}

.flex_lg2_5.empty {
  height: 0;
  margin: 0;
  padding: 0;
}

.btn_black {
  max-width: 350px;
  width: 100%;
  margin: 0 auto clamp(16px, 2vw, 28px);
}

.btn_black a {
  position: relative;
  display: block;
  padding: 14px 34px 14px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
  transition: .3s;
}

.btn_black a::after {
  content: '→';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Gotham', sans-serif;
}

.btn_black a:hover {
  background: var(--white);
  color: var(--ink);
}

/* ============ SPORT-SPECIFIC MEGA/DRAWER PANEL (e.g. basketball.html) ============ */
.mega-panel-inner.mega-sport-panel {
  max-width: 1080px;
}

.mega-sport-panel {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 3.2vw, 56px);
}

.mega-sport-menu {
  flex: 0 0 auto;
  width: clamp(200px, 16vw, 240px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mega-sport-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.mega-sport-title:hover {
  color: var(--red);
}

.mega-sport-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-sport-links a {
  font-size: 12.5px;
  color: var(--gray-dark);
  line-height: 1.4;
}

.mega-sport-links a:hover {
  color: var(--red);
}

.mega-sport-alltop {
  padding-top: 14px;
  border-top: 1px solid var(--gray-light);
  font-size: 12.5px;
  color: var(--ink);
}

.mega-sport-alltop:hover {
  color: var(--red);
}

.mega-sport-picks {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 1.2vw, 20px);
}

.mega-sport-picks .mega-sport-pick {
  text-align: center;
}

.mega-sport-picks .mega-sport-pick-thumb {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 4 / 5;
  max-height: 240px;
  margin: 0 auto;
}

.mega-sport-pick {
  display: block;
}

.mega-sport-pick-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--white);
  overflow: hidden;
}

.mega-sport-pick-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.mega-sport-pick:hover .mega-sport-pick-thumb img {
  transform: scale(1.03);
}

.mega-sport-pick p {
  margin: 0;
}

.mega-sport-pick-en {
  padding-top: 10px;
  font-family: 'Gotham', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.mega-sport-pick-ja {
  font-size: 12px;
  color: var(--gray-dark);
  margin-top: 2px !important;
}

.mega-sport-pick-price {
  font-size: 12.5px;
  color: var(--ink);
  margin-top: 4px !important;
}

/* SP drawer variant */
.sp-sport-menu {
  padding-top: 4px;
}

.sp-sport-title {
  display: block;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.sp-sport-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-sport-links a {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
}

.sp-sport-links a:hover {
  color: var(--red);
}

.sp-sport-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.sp-sport-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.sp-sport-cta span {
  font-family: 'Gotham', sans-serif;
}

.sp-sport-cta:hover {
  background: var(--ink);
  color: var(--white);
}

/* ============ SECTION SUBHEADING (small label beside .section-heading) ============ */
.subheading {
  display: inline-block;
  margin-left: clamp(8px, 1vw, 14px);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gray-dark);
  vertical-align: middle;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: 1600px;
  margin: 0 auto .5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-dark);
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb-sep {
  color: var(--gray-light);
}

.breadcrumb-current {
  color: var(--ink);
}

/* ============ PRODUCT DETAIL PAGE ============ */
/* 商品ページ共通コンポーネント。他の商品(item)ページでも使い回せるよう、
   商品固有の情報は個々のマークアップ側に持たせ、CSS側は汎用クラスのみで組む。 */
.product-hero {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(20px, 2.6vw, 40px) clamp(20px, 3.2vw, 48px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
}

/* グリッド内の子は既定で min-width:auto のため、中の表や長いテキストの
   最小内容幅がトラック(延いては同じ列のギャラリー)を押し広げてしまう。
   0にして、はみ出す内容は各要素の中でラップ/スクロールさせる。 */
.product-hero>* {
  min-width: 0;
}

@media (min-width: 1024px) {
  .product-hero {
    grid-template-columns: 7fr 3fr;
    align-items: start;
  }

  /* ギャラリー列(7fr)は画像点数が多く縦に長くなりがちなので、情報パネルを
     追従させて縦の余白が目立たないようにする */
  .product-info {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}

/* PC(1024px以上)はグリッド表示、それ未満はサムネ付きスライダー(.product-gallery-slider)に切り替える */
.product-gallery-grid {
  display: none;
}

@media (min-width: 1024px) {
  .product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(6px, 1vw, 12px);
    list-style: none;
    margin: 0;
    padding: 0;
  }
}

.product-gallery-grid li {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--white);
}

.product-gallery-grid img,
.product-gallery-grid video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-grid li.is-clickable {
  cursor: pointer;
}

.product-gallery-grid li.is-clickable img,
.product-gallery-grid li.is-clickable video {
  transition: transform .5s ease;
}

.product-gallery-grid li.is-clickable:hover img,
.product-gallery-grid li.is-clickable:hover video {
  transform: scale(1.03);
}

/* もっと表示する: 最終列(2列目)の下部に配置。画像が7枚目以降に増えてもこの位置は変わらない */
.product-gallery-more-cell {
  aspect-ratio: auto;
  overflow: visible;
  background: none;
}

.product-gallery-more {
  appearance: none;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.product-gallery-more:hover {
  background: var(--ink);
  color: var(--white);
}

/* ============ PRODUCT GALLERY SLIDER (SP: classic.mhtml の .list01/.list02 相当) ============ */
/* JS(main.js)が .product-gallery-all から複製して組み立てる。1024px以上ではグリッド表示に譲り非表示。 */
.product-gallery-slider {
  display: block;
}

@media (min-width: 1024px) {
  .product-gallery-slider {
    display: none;
  }
}

.product-gallery-slider-main {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-gallery-slider-main::-webkit-scrollbar {
  display: none;
}

.product-gallery-slider-slide {
  flex: 0 0 100%;
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  background: var(--white);
}

.product-gallery-slider-slide img,
.product-gallery-slider-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-slider-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-gallery-slider-thumbs::-webkit-scrollbar {
  display: none;
}

.product-gallery-slider-thumb {
  flex: 0 0 auto;
  width: 52px;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  overflow: hidden;
  cursor: pointer;
}

.product-gallery-slider-thumb.is-active {
  border-color: var(--ink);
}

.product-gallery-slider-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-slider-thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--gray-dark);
  color: var(--white);
  font-size: 12px;
}

/* ============ GALLERY MODAL (画像/動画スライダー) ============ */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(0, 0, 0, .85);
  opacity: 0;
  transition: opacity .3s ease;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal.is-visible {
  opacity: 1;
}

body.modal-open {
  overflow: hidden;
}

.gallery-modal-inner {
  position: relative;
  width: 100%;
  max-width: 720px;
  transform: scale(.96) translateY(12px);
  transition: transform .5s ease;
}

.gallery-modal.is-visible .gallery-modal-inner {
  transform: scale(1) translateY(0);
}

.gallery-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  appearance: none;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.gallery-modal-stage {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 20px);
}

.gallery-modal-main {
  flex: 1 1 auto;
  aspect-ratio: 4 / 5;
  max-height: 70vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-modal-main img,
.gallery-modal-main video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-modal-prev,
.gallery-modal-next {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  appearance: none;
  border: 1px solid var(--white);
  background: none;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
  background: var(--white);
  color: var(--ink);
}

.gallery-modal-thumbs {
  display: flex;
  gap: 8px;
  margin-top: clamp(12px, 2vw, 18px);
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-modal-thumb {
  flex: 0 0 auto;
  width: 52px;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.gallery-modal-thumb.is-active {
  border-color: var(--white);
}

/* 商品写真を 4:5 で作ったページ用（body に .gallery-4x5 を付ける）。
   全商品の写真が 4:5 になったら、上の 3 / 4 を 4 / 5 に変えてこのブロックとクラスを消す。 */
.gallery-4x5 .product-gallery-grid li,
.gallery-4x5 .product-gallery-slider-slide,
.gallery-4x5 .product-gallery-slider-thumb,
.gallery-4x5 .gallery-modal-thumb {
  aspect-ratio: 4 / 5;
}

.gallery-modal-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-modal-thumb-video {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--gray-dark);
  color: var(--white);
  font-size: 13px;
}

.product-info-cat {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--gray-dark);
}

.product-info-title {
  margin: 0 0 clamp(14px, 1.6vw, 20px);
  font-size: 24px;
  font-weight: 700;
}

/* 商品のキャッチコピー（エンタメ商品ページ） */
.product-info-copy {
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-size: 14px;
  line-height: 1.8;
}

.product-info-price {
  font-size: 12px;
  margin: 0 0 1rem;
  font-weight: 700;
}

.product-info-price-num {
  font-family: 'Gotham', sans-serif;
  font-size: 24px;
}

.product-info-price-notice {
  margin-left:20px;
  font-size: 12px;
  color: var(--gray-dark);
}

.product-info-price-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.product-info-price-notice::before{
  font-family: 'Gotham', sans-serif;
  background: var(--ink);
  content:"¥";
  color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-block;
    text-align: center;
    line-height: 20px;
}

.product-info-price-link:hover {
  color: var(--red);
}

.product-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  margin-bottom: 1rem;
}

.product-cta:hover {
  background: var(--white);
  color: var(--red);
  transition: .3s;
}

.product-cta-en {
  font-family: 'Gotham', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}

.product-cta-ja {
  font-size: 16px;
  font-weight: 700;
}

.product-cta-notice {
  margin: 10px 0 clamp(16px, 2vw, 22px);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--gray-dark);
  text-align: center;
}

.product-cta-full {
  display: block;
  margin: 0 0 clamp(20px, 2.6vw, 30px);
  padding: 14px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

.product-cta-full:hover {
  background: var(--white);
  color: var(--ink);
  transition: .3s;
}

.product-cta-full-ja {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.product-cta-full-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.product-sizes {
  margin: 0 0 clamp(16px, 2vw, 22px);
}

.product-sizes-heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.product-sizes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-sizes-list li {
  background: #ddd;
  font-family: 'Gotham', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.product-size-btn {
  appearance: none;
  display: block;
  width: 100%;
  height: 100%;
  padding: 6px 14px;
  border: 0;
  background: none;
  font-family: 'Gotham', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
}

.product-size-btn:hover {
  color: var(--red);
}

.product-schedule {
  display: flex;
  margin: 0 0 10px;
}

.product-schedule-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 6px;
  text-align: center;
  position: relative;
}

.product-schedule-item::after{
  content:'▶';
  position: absolute;
  top:30%;
  display: block;
  right: -5px;
}

.product-schedule-item:last-child::after {
    content: '';
}

.product-schedule-label {
  margin: 0 0 4px;
  font-size: 12px;
}

.product-schedule-value {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.speed-delivery{
  color: var(--red-dark);
}
.speed-delivery-date{
  color: var(--red-dark);
}

.product-schedule-notice {
  margin: 4px 0 clamp(20px, 2.6vw, 28px);
  text-align: center;
  font-size: 11px;
  color: var(--gray-dark);
}

.product-info-table th {
    padding: 10px;
    text-align: left;
    color: var(--gray-light);
    width: 25%;
    font-size: 12px;
}

.product-contacts {
  display: flex;
  gap: 8px;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.product-contacts li {
  flex: 1 1 0;
  min-width: 0;
}

.product-contacts a {
  display: block;
  padding: 12px 4px;
  border: 1px solid var(--ink);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.product-contacts a:hover {
  background: var(--ink);
  color: var(--white);
}

.product-contacts-line {
  background: var(--ink);
  color: var(--white);
}

.product-contacts-line:hover {
  background: var(--white);
  color: var(--ink);
}

.product-detail-copy {
  max-width: 1080px;
  margin: 0 auto clamp(24px, 3vw, 36px);
  font-size: 13.5px;
  line-height: 1.9;
}

.product-detail-notice-link {
  font-weight: 700;
}

.product-detail-notice-link:hover {
  color: var(--red);
}

.product-accordion {
  max-width: 1080px;
  margin: 0 auto 2rem;
  border-top: 1px solid var(--gray-light);
}

.product-accordion-item {
  border-bottom: 1px solid var(--gray-light);
}

.product-accordion-item summary {
  padding: clamp(14px, 1.6vw, 18px) 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-accordion-item summary::-webkit-details-marker {
  display: none;
}

.product-accordion-item summary::after {
  content: '+';
  display: inline-block;
  font-family: 'Gotham', sans-serif;
  font-size: 18px;
  color: var(--gray-dark);
  transition: transform .5s ease;
}

.product-accordion-item[open] summary::after {
  transform: rotate(45deg);
}

.product-accordion-fullorder summary{
  background: var(--red);
  color: var(--white);
}

.product-accordion-body {
  padding: 0 4px clamp(18px, 2.2vw, 26px);
  font-size: 13px;
  line-height: 1.8;
  overflow: hidden;
  transition: max-height .5s ease, opacity .5s ease, transform .5s ease;
}

.product-accordion-body h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.product-accordion-body p {
  margin: 0 0 18px;
}

.product-accordion-body p:last-child {
  margin-bottom: 0;
}

.product-accordion-links {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.product-accordion-links li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
}

.product-accordion-link-btn {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 13px;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

.product-accordion-link-btn:hover {
  color: var(--red);
}

.product-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
  max-width: 1080px;
  margin: 0 auto clamp(30px, 4vw, 50px);
  padding: 0;
  list-style: none;
}

.product-concept-image {
  margin: 0 0 clamp(14px, 1.6vw, 18px);
}

.product-concept-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-concept-heading {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.product-concept-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--gray-dark);
}

.orderflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: 0 0 clamp(24px, 3vw, 36px);
  padding: 0;
  list-style: none;
}

.orderflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.orderflow-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: 'Gotham', sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.orderflow-step-label {
  font-size: 12.5px;
  font-weight: 700;
}

.orderflow-step:not(:last-child) .orderflow-step-num {
  position: relative;
}

.orderflow-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.orderflow-buttons .button-white {
  width: 100%;
  margin: 0;
}

/* ============ INFO MODAL (価格表など、汎用の情報モーダル) ============ */
/* [data-modal-target="id"] のトリガーと #id の .info-modal がペア。
   トリガーやモーダルを増やすだけで他の情報(サイズ表など)にも使い回せる。 */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .3s ease;
}

.info-modal[hidden] {
  display: none;
}

.info-modal.is-visible {
  opacity: 1;
}

.info-modal-inner {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: clamp(24px, 3vw, 40px);
  background: var(--white);
  color: var(--ink);
  transform: scale(.96) translateY(12px);
  transition: transform .5s ease;
}

.info-modal.is-visible .info-modal-inner {
  transform: scale(1) translateY(0);
}

.info-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  appearance: none;
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.info-modal-heading {
  margin: 0 0 clamp(16px, 2vw, 24px);
  padding-right: 32px;
  font-size: 16px;
  font-weight: 700;
}

.info-modal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 13px;
}

.info-modal-table th,
.info-modal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-light);
  text-align: left;
  font-weight: 400;
}

.info-modal-table td {
  text-align: right;
  font-family: 'Gotham', sans-serif;
}

.info-modal-note {
  margin: 0 0 6px;
  font-size: 11.5px;
  color: var(--gray-dark);
}

.info-modal-note:last-child {
  margin-bottom: 0;
}

.info-modal-text {
  margin: 0 0 clamp(16px, 2vw, 22px);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--gray-dark);
}

.info-modal-text a:hover {
  color: var(--red);
}

.info-modal-image {
  margin: 0 0 clamp(20px, 2.6vw, 28px);
}

.info-modal-subheading {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-light);
  font-size: 14px;
  font-weight: 700;
}

.size-table-wrap {
  overflow-x: auto;
  margin: 0 0 clamp(16px, 2vw, 22px);
}

.size-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}

.size-table th,
.size-table td {
  padding: 8px 4px;
  overflow-wrap: anywhere;
  border: 1px solid var(--gray-light);
  text-align: center;
  font-weight: 400;
}

.size-table thead th {
  background: var(--white);
  color: var(--gray-dark);
  font-weight: 700;
}

.size-table tbody th {
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
}

/* ============ MARKING FONT / COLOR MODAL ============ */
.info-modal-fonts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 clamp(24px, 3vw, 32px);
  padding: 0;
  list-style: none;
}

.info-modal-fonts li {
  padding: 10px;
  border: 1px solid var(--gray-light);
  text-align: center;
}

.info-modal-fonts .num {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--gray-dark);
}

.info-modal-fonts .num span {
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.info-modal-fonts .fontImg img {
  display: block;
  width: 100%;
  height: auto;
}

.info-modal-fonts .notice {
  margin: 6px 0 0;
  font-size: 10px;
  color: var(--red);
}

.info-modal-colors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  margin: 0 0 clamp(24px, 3vw, 32px);
  padding: 0;
  list-style: none;
}

.info-modal-colors li {
  display: flex;
  flex-direction: column;
}

.info-modal-colors .color {
  margin: 0;
  aspect-ratio: 4 / 1;
  border: 1px solid var(--gray-light);
}

.info-modal-colors .num {
  order: -1;
  margin: 0 0 6px;
  font-size: 12px;
  text-align: center;
  letter-spacing: -1px;
}

.info-modal-colors .num span {
  display: block;
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.info-modal-logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 clamp(24px, 3vw, 32px);
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .info-modal-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.info-modal-logos li {
  padding: 10px;
  border: 1px solid var(--gray-light);
  text-align: center;
}

.info-modal-logos .num {
  margin: 0 0 8px;
  font-size: 11px;
}

.info-modal-logos .num span {
  font-family: 'Gotham', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.info-modal-logos .logoImg img {
  display: block;
  width: 100%;
  height: auto;
}

.sp-sport-picks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

/* ============ TOP LAYOUT (旧 feedback.css: トップ・バスケTOPのみ, body) ============ */
 .section-head{display:flex;align-items:center;justify-content:space-between;gap:20px}
 .section-intro{line-height:1.8;color:#555;margin-bottom:24px}
 .rail-controls{display:flex;gap:8px;flex-shrink:0}
 .rail-controls button{width:42px;height:42px;border:1px solid #aaa;border-radius:50%;background:transparent;color:inherit;font-size:20px;cursor:pointer}
 .rail-controls button:disabled{opacity:.3;cursor:default}
 .sports-section{padding-top:72px;padding-bottom:72px}
 .sports-section .section-heading{font-size:clamp(30px,4vw,58px);letter-spacing:-.03em;margin-bottom:12px}
 .sports-feature .section-heading{font-size:clamp(28px,2.2vw,35px);letter-spacing:.04em}
 .sports-feature .sports-tile-label p{font-size:14px}
 .sports-feature img, .sports-feature:hover img{filter:blur(8px);transform:scale(1.08);transition:opacity .3s ease}
 .sports-feature img.is-fading{opacity:0}
 .sports-showcase>.rail-controls{grid-column:1/3;grid-row:1;align-self:end;justify-self:end;margin:0 24px 24px 0;position:relative;z-index:2;color:#fff}
 .sports-showcase>.rail-controls button{border-color:rgba(255,255,255,.7)}
 .sports-showcase{--feature:560px;display:grid;grid-template-columns:calc(var(--feature)/2) calc(var(--feature)/2) minmax(0,1fr);align-items:center}
 .sports-feature{grid-column:1/3;grid-row:1;width:var(--feature);height:auto;border-radius:0;aspect-ratio:4/5}
 .sports-rail{grid-column:2/4;grid-row:1;position:relative;z-index:1;display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:24px;min-width:0}
 .sports-rail::-webkit-scrollbar{display:none}
 .sports-rail .sports-tile{flex:0 0 420px;height:auto;scroll-snap-align:start;border-radius:0;aspect-ratio:4/5}
 .sports-tile-label{font-family:Archivo,sans-serif;font-size:clamp(20px,2.5vw,36px);left:24px;bottom:24px;right:16px}
 .sports-tile-label small, .tile-action{display:block;font-family:'Noto Sans JP',sans-serif;font-size:12px;margin:10px 0;letter-spacing:.02em}
 .tile-action{margin-top:22px}
 .supply-section{background:#191919;color:#fff;max-width:none;padding:72px clamp(20px,5vw,80px)}
 .supply-section .teamorder-ja{color:#fff}
 .supply-section .teamorder-thumb{aspect-ratio:1/1}
 .supply-heading{display:flex;align-items:end;justify-content:space-between;gap:32px;margin-bottom:36px;max-width:1440px;margin-inline:auto}
 .supply-heading h2{font-size:clamp(30px,4vw,56px);line-height:1.3;letter-spacing:-.03em}
 .supply-heading p{line-height:1.9;color:#ccc}
 .supply-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;max-width:1440px;margin:auto}
 .supply-image{aspect-ratio:4/3;background:#fff;overflow:hidden;margin-bottom:22px}
 .supply-image img{width:100%;height:100%;object-fit:contain;display:block}
 .supply-card h3{display:flex;justify-content:space-between;gap:10px;font-size:18px}
 .supply-card .eyebrow{color:#bbb}
 .mobile-utility{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-bottom:20px;border-bottom:1px solid #ccc;margin-bottom:20px}
 .mobile-utility a{padding:14px 10px;background:#222;color:#fff;font-weight:700;text-align:center;font-size:12px}
 .campaign-banner{display:block;overflow:hidden}
 .campaign-banner img{width:100%;height:auto;display:block}
 .size-choice p{font-size:12px;line-height:1.8;margin:8px 0}
 .size-choice strong{display:inline-block;margin-right:8px}
 .size-choice small{display:block;line-height:1.8;font-size:11px;margin-top:10px;color:#555}
 .size-choice-buttons{display:flex;gap:6px;flex-wrap:wrap}
 .product-features{margin:24px 0;padding:24px 0;border-top:1px solid #ddd;border-bottom:1px solid #ddd}
 .product-accordion-body .product-features{margin:0;padding:0;border:0}
 .product-features h2{font-size:22px;margin-bottom:18px}
 .feature-material{display:grid;grid-template-columns:90px 1fr;gap:14px;align-items:center;margin-bottom:16px}
 .feature-material img{width:90px;height:100px;object-fit:cover}
 .feature-material h3{font-size:15px;margin-bottom:8px}
 .feature-material p{font-size:12px;line-height:1.8}
 .feature-performance{display:grid;gap:18px}
 .feature-performance h3{font-size:15px;margin-bottom:8px}
 .feature-performance p{font-size:12px;line-height:1.8;margin:0 0 8px}
 .feature-performance .feature-note{font-size:11px;color:#555;margin-bottom:0}
 .product-campaign{margin:24px 0}
 .orderflow-steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 .orderflow-step-label{font-size:clamp(10px,2.6vw,13px);overflow-wrap:anywhere}
 #classicSizeTable{scroll-margin-top:24px}
@media(max-width:767px){ .sports-section{padding-top:42px;padding-bottom:42px;overflow-x:clip} .sports-tile-label{font-size:25px} .supply-section{padding-block:48px} .supply-heading{display:block} .supply-heading p{margin-top:18px} .supply-grid{display:flex;overflow-x:auto;gap:16px;scroll-snap-type:x mandatory;padding-bottom:16px} .supply-card{flex:0 0 82%;scroll-snap-align:start} .section-head{gap:12px} .section-heading{font-size:23px} .rail-controls button{width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){ *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:767px){ .sports-showcase{grid-template-columns:30px minmax(0,1fr)} .sports-feature{grid-column:1/-1;justify-self:start} .sports-rail{grid-column:2/-1;justify-self:start;width:calc(var(--feature) - 30px)} .sports-showcase>.rail-controls{grid-column:1/-1}}

/* Works: サムネ拡大モーダル（.info-modal の見た目を流用） */
.works-modal-inner {
  max-width: min(960px, 100%);
}

.works-modal-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.works-modal-title {
  margin: 12px 0 0;
  font-size: 14px;
}

/* 商品ページのアコーディオン内画像：クリックで拡大（main.js の lightbox） */
.img-lightbox-trigger {
  cursor: zoom-in;
}

/* 一覧では16:9に切り抜いて揃え、クリック/タップで元サイズを表示 */
.product-accordion-body a.luminous,
.product-accordion-body .img-lightbox-trigger {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f4f4;
}

.product-accordion-body a.luminous img,
.product-accordion-body .img-lightbox-trigger img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-lightbox .works-modal-image {
  max-height: 80vh;
}

.img-lightbox .works-modal-title:empty {
  display: none;
}

/* Campaign links in the mobile navigation. */
@media (max-width: 1023px) {
  .sp-drawer a.sp-campaign-link,
  .sp-drawer a.sp-campaign-link:hover {
    background: var(--red);
    padding: 4px 2px;
    color: var(--white);
  }
}

/* エンタメ（/entertainment/ 以下）の商品ページはバナー・CAMPAIGN・ORDER を出さない */
.page-entertainment .campaign-card,
.page-entertainment .banner-box,
.page-entertainment #campaign,
.page-entertainment .orderflow-section {
  display: none;
}

/* ==========================================================================
   注文・お見積もりフォーム（.of-*）／デザインシミュレーター（.sim-*）
   生成元：tmp/order-forms-draft/build.py。各競技のフォーム・シミュレーターで共通に使う
   ========================================================================== */


/* display 指定のある要素でも hidden 属性を優先する（条件表示で使う） */
.of-form [hidden],
.of-done[hidden] {
  display: none !important;
}

/* ---------- hero ---------- */
.of-hero {
  max-width: 1500px;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(28px, 4vw, 56px)) clamp(20px, 3.2vw, 48px) clamp(20px, 2.4vw, 36px);
}

.of-breadcrumb {
  margin: 0;
  font-size: 12px;
  color: var(--gray-dark);
}

.of-hero-en {
  margin: clamp(12px, 1.4vw, 20px) 0 4px;
  font-family: 'Gotham', sans-serif;
  font-size: clamp(28px, 2.2vw, 35px);
  font-weight: 700;
  letter-spacing: .04em;
}

.of-hero h1 {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
}

.of-lead {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.9;
}

.of-draft {
  display: inline-block;
  margin: 16px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- layout ---------- */
.of-layout {
  display: grid;
  gap: clamp(24px, 3vw, 48px);
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.2vw, 48px) clamp(34px, 4.6vw, 80px);
}

@media (min-width: 1000px) {
  .of-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}

.of-form {
  min-width: 0;
}

/* ---------- step ---------- */
.of-step,
.of-item,
.of-field {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.of-step {
  min-width: 0;
  margin: 0 0 clamp(32px, 3.4vw, 52px);
  padding: 0;
  border: 0;
  border-top: 2px solid var(--ink);
}

.of-step > legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: clamp(14px, 1.6vw, 20px) 0 0;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 700;
}

.of-step-body {
  clear: both;
  padding-top: clamp(16px, 1.8vw, 24px);
}

.of-step-num {
  font-family: 'Gotham', sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--red);
}

/* ---------- field ---------- */
.of-field {
  display: grid;
  /* 列幅を親に合わせる（auto だとサイズ欄が中身の幅まで広がって画面からはみ出す） */
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-content: start;
  margin: 0 0 20px;
  min-width: 0;
}

.of-label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.of-req {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  vertical-align: 1px;
}

.of-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray-dark);
}

.of-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.of-link:hover {
  color: var(--red);
}

.of-form input[type="text"],
.of-form input[type="email"],
.of-form input[type="tel"],
.of-form input[type="date"],
.of-form input[type="number"],
.of-form select,
.of-form textarea {
  width: 100%;
  /* 姓・セイ欄（2列の1列ぶん）と同じ長さにそろえる */
  max-width: min(var(--of-input-w), calc((100cqi - var(--of-row-gap)) / 2));
  padding: 12px 14px;
  border: 1px solid var(--gray-light);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.of-form textarea {
  max-width: none;
  resize: vertical;
}

.of-form input:focus,
.of-form select:focus,
.of-form textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
}

.of-form input[type="file"] {
  font-size: 13px;
}

.of-files {
  display: grid;
  gap: 8px;
}

.of-step {
  --of-input-w: 480px;
  --of-row-gap: 20px;
  container-type: inline-size;
}

.of-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 var(--of-row-gap);
  max-width: calc(var(--of-input-w) * 2 + var(--of-row-gap));
}

.of-form .of-row input {
  max-width: none;
}

/* 姓・名が縦に並ぶ幅（スマホ）では、どの欄も横いっぱい */
@container (max-width: 459px) {
  .of-form input[type="text"],
  .of-form input[type="email"],
  .of-form input[type="tel"],
  .of-form input[type="date"],
  .of-form select {
    max-width: none;
  }
}

.of-group {
  min-width: 0;
}

.of-note-large {
  margin: 0 0 18px;
  padding: 6px 0 6px 12px;
  border-left: 3px solid var(--red);
  color: var(--gray-dark);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- chips（ラジオ・チェック） ---------- */
.of-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.of-chip {
  position: relative;
}

.of-chip input,
.of-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.of-chip span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--gray-light);
  background: var(--white);
  font-size: 14px;
  cursor: pointer;
  transition: background .3s, color .3s;
}

.of-chip:hover span {
  border-color: var(--ink);
}

.of-chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.of-chip input:focus-visible + span,
.of-card input:focus-visible + span {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---------- 商品カード ---------- */
.of-cardgroup + .of-cardgroup {
  margin-top: 20px;
}

.of-cardgroup-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-dark);
  letter-spacing: .04em;
}

.of-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: clamp(8px, 1vw, 12px);
  margin-bottom: 12px;
}

.of-card {
  position: relative;
  display: block;
}

.of-card span {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  height: 100%;
  min-height: 72px;
  padding: 14px 48px 14px 16px;
  border: 1px solid var(--gray-light);
  cursor: pointer;
  transition: border-color .3s;
}

.of-card b {
  font-size: 14px;
}

.of-card small {
  font-size: 12px;
  color: var(--gray-dark);
}

.of-card span::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gray-light);
  transform: translateY(-50%);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.of-card:hover span {
  border-color: var(--ink);
}

.of-card input:checked + span {
  border-color: var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: -2px;
}

.of-card input:checked + span::after {
  content: '✓';
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* ---------- 商品ごとのブロック ---------- */
.of-empty {
  margin: 0;
  padding: 20px;
  border: 1px dashed var(--gray-light);
  font-size: 13px;
  color: var(--gray-dark);
  text-align: center;
}

.of-item {
  margin: 0 0 clamp(16px, 2vw, 24px);
  border: 1px solid var(--ink);
}

.of-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px clamp(14px, 2vw, 22px);
  background: var(--ink);
  color: var(--white);
}

.of-item-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.of-item-total {
  font-family: 'Gotham', sans-serif;
  font-size: 14px;
}

.of-item-body {
  padding: 0 clamp(14px, 2vw, 22px);
}

.of-sub {
  padding: clamp(16px, 1.8vw, 22px) 0 2px;
}

.of-sub + .of-sub {
  border-top: 1px solid var(--gray-light);
}

.of-sub-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
}

.of-sub-title span {
  font-family: 'Gotham', sans-serif;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--gray-dark);
}

/* ---------- サイズ別枚数 ---------- */
.of-sizes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  max-width: 760px;
}

.of-size {
  display: grid;
  border: 1px solid var(--gray-light);
}

.of-size-wide {
  grid-column: span 2;
}

.of-size span {
  padding: 6px 4px;
  border-bottom: 1px solid var(--gray-light);
  font-family: 'Gotham', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  text-align: center;
}

.of-form .of-size input[type="number"] {
  max-width: none;
  padding: 10px 4px;
  border: 0;
  text-align: center;
}

/* ---------- 送信 ---------- */
.of-submit {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.of-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.of-agree input {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

button.of-btn {
  margin: 1rem 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.of-done {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--ink);
  font-size: 14px;
  line-height: 1.8;
}

.of-done-title {
  margin: 0 0 6px;
  font-weight: 700;
}

/* ---------- aside ---------- */
.of-aside {
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid var(--ink);
}

@media (min-width: 1000px) {
  .of-aside {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
}

.of-aside-title {
  margin: 0 0 12px;
  font-family: 'Gotham', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
}

.of-summary {
  margin: 0;
  padding: 0;
  list-style: none;
}

.of-summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
  font-size: 13px;
}

.of-summary b {
  font-family: 'Gotham', 'Noto Sans JP', sans-serif;
  white-space: nowrap;
}

.of-summary-empty {
  color: var(--gray-dark);
}

.of-aside-total {
  margin: 12px 0 20px;
  font-size: 14px;
  text-align: right;
}

.of-aside-total b {
  font-family: 'Gotham', sans-serif;
  font-size: 22px;
}

.of-flow {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 16px 0 0;
  border-top: 1px solid var(--gray-light);
  list-style: none;
  font-size: 13px;
}

.of-flow span {
  display: inline-block;
  width: 28px;
  font-family: 'Gotham', sans-serif;
  color: var(--red);
}

.of-aside .of-link {
  font-size: 13px;
}

/* ---------- 確認ダイアログ ---------- */
.of-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--ink);
  color: var(--ink);
}

.of-dialog::backdrop {
  background: rgba(34, 34, 34, .6);
}

.of-dialog-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.of-confirm-items {
  margin: 0 0 16px;
  font-weight: 700;
}

.of-confirm section + section {
  margin-top: 16px;
}

.of-confirm-title {
  margin: 0 0 6px;
  padding: 6px 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
}

.of-confirm dl {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  margin: 0;
  font-size: 13px;
}

.of-confirm dt,
.of-confirm dd {
  margin: 0;
  padding: 7px 10px;
  border-bottom: 1px solid var(--gray-light);
}

.of-confirm dt {
  color: var(--gray-dark);
}

.of-confirm dd {
  white-space: pre-wrap;
  word-break: break-word;
}

.of-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.of-dialog-actions .of-btn {
  width: auto;
  min-width: 220px;
  margin: 0;
}

.of-btn-back {
  padding: 21px 28px;
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.of-btn-back:hover {
  background: var(--ink);
  color: var(--white);
  transition: .3s;
}

/* ---------- 一覧ページ ---------- */
.of-index {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.2vw, 48px) clamp(34px, 4.6vw, 80px);
}

.of-map {
  margin: 0 0 clamp(32px, 3.4vw, 52px);
  padding-top: clamp(14px, 1.6vw, 20px);
  border-top: 2px solid var(--ink);
}

.of-map-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.of-map h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 8px;
  font-size: clamp(16px, 1.4vw, 19px);
}

.of-map h2 span {
  font-family: 'Gotham', sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--red);
}

.of-map-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.of-map-head .button-white {
  width: auto;
  margin: 0;
  padding: 14px 48px 14px 20px;
}

.of-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.of-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}

.of-table th,
.of-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-light);
  text-align: left;
  vertical-align: top;
}

.of-table th {
  border-bottom-color: var(--ink);
  font-size: 12px;
  color: var(--gray-dark);
}

.of-review {
  margin: 12px 0 0;
  padding-left: 1.4em;
  font-size: 14px;
  line-height: 1.9;
}

.of-lead code {
  font-size: 13px;
  word-break: break-all;
}

/* シミュレーターから来たときのお知らせ（デザイン画像つき） */
.of-sim-notice p {
  margin: 0 0 10px;
}

.of-sim-notice img {
  display: block;
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--gray-light);
  background: var(--white);
}

/* ---------- デザインシミュレーター ---------- */
.sim-layout {
  display: grid;
  gap: clamp(20px, 3vw, 48px);
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.2vw, 48px) clamp(34px, 4.6vw, 80px);
}

/* スマホ：イメージを上に固定して、入力しながら見られるようにする */
.sim-preview {
  position: sticky;
  top: var(--header-h);
  z-index: 2;
  margin: 0 calc(clamp(20px, 3.2vw, 48px) * -1);
  padding: 8px clamp(20px, 3.2vw, 48px);
  border-bottom: 1px solid var(--gray-light);
  background: var(--white);
}

.sim-stage svg {
  display: block;
  width: 100%;
  max-height: 34vh;
}

.sim-caution {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--gray-dark);
}

@media (min-width: 1000px) {
  .sim-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }

  .sim-preview {
    top: calc(var(--header-h) + 24px);
    margin: 0;
    padding: clamp(16px, 2vw, 32px);
    border: 1px solid var(--gray-light);
  }

  .sim-stage svg {
    max-height: 62vh; /* 詰めて並べた絵型（縦長になる）でも画面からはみ出さない */
  }

  .sim-caution {
    margin-top: 12px;
    font-size: 12px;
  }
}

/* ---------- 色見本 ---------- */
.sim-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
  gap: 6px;
  max-width: 480px;
}

.sim-swatch {
  position: relative;
}

.sim-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sim-swatch span {
  display: block;
  aspect-ratio: 1;
  border: 1px solid var(--gray-light);
  cursor: pointer;
}

.sim-swatch input:checked + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sim-swatch input:focus-visible + span {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.sim-swatch-name {
  margin: 0;
  font-size: 14px;
}

/* 色の枠（フルオーダーシミュレーターの色選びと同じ形。押すと下に色の一覧が開く） */
.sim-cslots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
}

@media (max-width: 480px) {
  .sim-cslots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sim-cslots > .sim-cfield {
  margin: 0;
}

.sim-cfield > :not(.sim-cslot) {
  display: none !important;
}

.sim-cslot {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .3s;
}

.sim-cslot:hover {
  border-color: var(--ink);
}

.sim-cslot.is-open {
  padding: 7px;
  border: 2px solid var(--ink);
}

.sim-cslot-role {
  font-size: 12px;
  font-weight: 700;
}

.sim-cslot-chip {
  display: block;
  aspect-ratio: 4 / 1;
  border: 1px solid rgba(0, 0, 0, .15);
  background: repeating-linear-gradient(45deg, #fafafa 0 6px, #f0f0f0 6px 12px);
}

.sim-cslot-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.sim-cpop {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.sim-cpop[hidden] {
  display: none;
}

.sim-cpop-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.sim-cpop-close {
  padding: 0 4px;
  border: 0;
  background: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.sim-cpop-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 4px;
}

.sim-cpop-swatch {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #ccc;
  cursor: pointer;
}

.sim-cpop-swatch:hover,
.sim-cpop-swatch:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.sim-cpop-swatch.is-on {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sim-cpop-swatch:disabled {
  opacity: .18;
  outline: none;
  cursor: not-allowed;
}

.sim-cpop-name {
  margin: 8px 0 0;
  font-size: 13px;
}

.sim-cpop .of-hint {
  margin-top: 4px;
}

.sim-text-btn {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.sim-text-btn:hover {
  color: var(--red);
}

/* ---------- 合計・ボタン ---------- */
.sim-total {
  margin: 0 0 24px;
  padding: 16px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--gray-light);
}

.sim-total p {
  margin: 0 0 6px;
  font-size: 14px;
}

.sim-total b {
  font-family: 'Gotham', 'Noto Sans JP', sans-serif;
  font-size: 22px;
}

.sim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

/* シミュレーター専用フォーム：商品・デザインデータの欄はシミュレーターが入れるので見せない */
.of-sim-filled:not(.is-open) {
  display: none;
}

.sim-go-error {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 14px;
  font-weight: bold;
}

/* ---------- 1枚ずつのネーム・ナンバー・サイズ ---------- */
.sim-roster-wrap {
  max-width: 560px;
}

.sim-roster {
  display: grid;
  gap: 12px; /* 1人分（1行）ずつ見分けやすいよう、行の中より広くあける */
}

.sim-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sim-row > * {
  flex: 1 1 0;
  min-width: 0;
}

.sim-row .r-name {
  flex-grow: 2;
}

.sim-form .sim-row input,
.sim-form .sim-row select {
  max-width: none;
  padding: 10px 8px;
}

.sim-row .r-del {
  flex: 0 0 36px;
  border: 1px solid var(--gray-light);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}

.sim-row .r-del:hover {
  border-color: var(--ink);
}

/* 入れない項目・ない部位の列は隠す */
.sim-roster-wrap.no-name .r-name,
.sim-roster-wrap.no-num .r-num,
.sim-roster-wrap.no-top .r-top,
.sim-roster-wrap.no-pants .r-pants {
  display: none;
}

.sim-row-head {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--gray-dark);
}

.sim-row-head .r-del {
  flex: 0 0 36px;
  border: 0;
  background: none;
}

.sim-roster-error {
  color: var(--red);
}

/* スマホ：番号・サイズが1段目、ネームは2段目 */
@media (max-width: 480px) {
  .sim-row-head {
    display: none;
  }

  .sim-row .r-name {
    flex-basis: calc(100% - 42px);
  }

  .sim-roster {
    gap: 14px;
  }

  .sim-row {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-light);
  }
}
