/* =========================
   リセット・共通
========================= */

html {
  overflow-x: hidden;
}

:root {
  --color-accent: #42b5bd;
  --thumbnail-width: 180px;
  --thumbnail-height: 180px;
  --font-family-default: "Hiragino Kaku Gothic ProN", "Meiryo", "Yu Gothic", sans-serif;
}


img.thumbnail {
    width: var(--thumbnail-width);
    height: var(--thumbnail-height);
    min-width: var(--thumbnail-width);
    min-height: var(--thumbnail-height);
    max-width: var(--thumbnail-width);
    max-height: var(--thumbnail-height);
}

a,
a:hover,
a:visited,
a:active {
  text-decoration: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-default);
  line-height: 1.6;
  background: #fafafa;
  color: #5a5a60;
  align-items: center;
  width: 100%;
  overflow-x: hidden;
}

a {
  color: #42b5bd;
}

a:hover {
  opacity: 0.85;
}

section {
  padding: 48px 40px;
}

h1, h2 {
  text-align: center;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}


/* =========================
   ヘッダー
========================= */

.hero {
  padding-bottom: 16px;
}

.icon {
  text-align: center;
}

.icon img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;

}


/* =========================
   横スクロール棚
========================= */


.item-text {
  display: flex;
  flex-direction: column;
  font-size: smaller;
}

.works {
  padding-bottom: 12px;
}

.carousel {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  padding-bottom: 8px;
  border-radius: 4px;
  padding: 0;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}


.carousel-wrap {
  position: relative;
  margin: 24px auto 0;
  max-width: 100%;
  padding: 0 52px;
  overflow: visible;
}


.card {
  width: var(--thumbnail-width);
  min-width: var(--thumbnail-width);
  max-width: var(--thumbnail-width);
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  border-radius: 4px; 
  overflow: hidden;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.card p {
  margin-top: 8px;
  font-size: 14px;
}

.price {
  margin-top: 4px;
  align-self: flex-end;
  color: #bf2932;
  font-weight: bold;
  font-size: small;
}

.image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
}

.image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.image-wrap img.main {
  opacity: 1;
  transform: translate(0, 0);
  z-index: 2;
}

.image-wrap img.hover {
  opacity: 0;
  z-index: 1;
}

.card:hover .image-wrap img.main {
  transform: translate(-6px, -6px); 
  opacity: 0;
}

.card:hover .image-wrap img.hover {
  opacity: 1;
}


/* =========================
   カルーセル操作ボタン
========================= */

:is(.button-prev, .button-next) {
  position: absolute;
  top: 90px;
  transform: translateY(-50%);
  z-index: 10;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 20px;
  user-select: none;
  padding: 6px 10px;

  & i {
    color: var(--color-accent);
    font-size: 1.2em;
  }
}
/* 左ボタン */
.button-prev {
  left: 6px;

}

/* 右ボタン */
.button-next {
  right: 6px;
}

/* =========================
   下段
========================= */
.link .sns {
  height: 1em;
  vertical-align: middle;
  display: inline-block;
  margin-top: -1px; /* ±1〜2pxで微調整 */
}


.bot {
  border-top: 1px solid #999999;
  margin-top: 10px;
  text-align: center;
  align-items: center;
}

.tools {
  border-top: 1px solid #999999;
  margin-top: 10px;
}

.bot .sns {
  height: 1em;
  vertical-align: middle;
  display: inline-block;
  margin-top: -1px; /* ±1〜2pxで微調整 */
}

.bot-card {
  width: 240px;
  margin: 0 auto;
  text-align: center;
  border-radius: 4px; /* ← 追加（cardと同じ値） */
  
}

.bot-card img {
  width: 240px;
  aspect-ratio: 1 / 1;
  background: #000;
  object-fit: cover;
  text-align: center;
  align-items: center;
  border-radius: 4px; /* ← 追加（cardと同じ値） */
}

.free {
  color: #bf2932;
  font-weight: bold;
}

.fanbox {
    text-align: center;
    font-size: small;


}

.link {
    text-align: center;
    font-size: medium;
}

/* =========================
   スマホ
========================= */

@media (max-width: 600px) {

  section {
    padding: 32px 16px;
  }

  .carousel-wrap {
    width: 100%;
    padding: 0 40px;
    overflow: visible;
  }

  .carousel {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .button-prev {
    left: 4px;
  }

  .button-next {
    right: 4px;
  }
}