/* ========================================
   コスチューム専門アフィリエイト - 艶やか・女性向けカラー
   SEO・AEO・モバイルファースト
   ======================================== */

/* --- デザインシステム（艶やか・女性が気になる色調） --- */
:root {
  /* 配色：ローズゴールド・シャンパン・ブラッシュ */
  --color-bg: #fdf7f5;
  --color-bg-card: #ffffff;
  --color-surface: #faf0ed;
  --color-border: #ecdde2;
  --color-text: #4a3f43;
  --color-text-muted: #8b7a80;
  --color-accent: #c4958a;
  --color-accent-soft: #f0e2e0;
  --color-pink-soft: #fceef0;
  --color-cta: #b87a7a;
  --color-cta-hover: #9d6565;
  --color-link: #a67070;
  --color-link-hover: #8b5a5a;
  --color-glow: rgba(184, 122, 122, 0.15);
  --color-logo: linear-gradient(135deg, #9d6565 0%, #b87a7a 50%, #c4958a 100%);

  /* フォント */
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;

  /* 余白・サイズ */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --container-max: 960px;
  --header-h: 56px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 2px 16px rgba(74, 63, 67, 0.08);
  --shadow-hover: 0 8px 28px rgba(74, 63, 67, 0.12);
  --shadow-card: 0 4px 20px rgba(184, 122, 122, 0.08);
}

/* --- 18歳確認（初回のみ表示） --- */
.p-age-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(253, 247, 245, 0.55) 0%, rgba(250, 240, 237, 0.5) 50%, rgba(240, 226, 224, 0.45) 100%);
  backdrop-filter: blur(6px);
  padding: var(--space-lg);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.p-age-gate--verified {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.p-age-gate__inner {
  max-width: 360px;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--color-border);
}
.p-age-gate__logo {
  margin-bottom: var(--space-xl);
}
.p-age-gate__logo-img {
  display: block;
  width: auto;
  max-width: 200px;
  height: 40px;
  object-fit: contain;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .p-age-gate__logo-img {
    max-width: 240px;
    height: 48px;
  }
}
.p-age-gate__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 var(--space-md);
  line-height: 1.5;
}
.p-age-gate__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 var(--space-xl);
}
.p-age-gate__btn {
  display: inline-block;
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-cta);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}
.p-age-gate__btn:hover {
  background: var(--color-cta-hover);
}

/* --- リセット・ベース --- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--color-link); text-decoration: none; }
a:hover { color: var(--color-link-hover); text-decoration: underline; }

/* --- レイアウト --- */
.l-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.l-main {min-height: calc(100vh - var(--header-h) - 180px); }

/* --- TOP メインビジュアル（フルサイズ） --- */
.p-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  line-height: 0;
  margin-top: 0;
  margin-bottom: var(--space-2xl);
}
.p-hero picture {
  display: block;
  width: 100%;
}
.p-hero__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  background: var(--color-surface);
}

/* --- ヘッダー --- */
.p-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 var(--color-glow);
}
.p-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.p-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.p-header__logo:hover { text-decoration: none; opacity: 0.95; }
.p-header__logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}
@media (min-width: 768px) {
  .p-header__logo-img {
    height: 48px;
    max-width: 260px;
  }
}
/* ハンバーガーボタン（スマホのみ表示） */
.p-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text);
  border-radius: var(--radius);
  transition: background 0.2s ease;
}
.p-header__hamburger:hover { background: var(--color-surface); }
.p-header__hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.p-header.is-open .p-header__hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.p-header.is-open .p-header__hamburger-bar:nth-child(2) {
  opacity: 0;
}
.p-header.is-open .p-header__hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.p-header__nav { display: flex; gap: var(--space-lg); }
.p-header__nav a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.p-header__nav a:hover { color: var(--color-cta); }

@media (max-width: 767px) {
  .p-header__hamburger { display: flex; }
  .p-header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    box-shadow: var(--shadow-hover);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: visibility 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    z-index: 99;
  }
  .p-header.is-open .p-header__nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .p-header__nav a {
    display: block;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    border-radius: var(--radius);
  }
  .p-header__nav a:hover { background: var(--color-surface); }
}

@media (min-width: 768px) {
  .p-header__nav {
    display: flex;
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    padding: 0;
    box-shadow: none;
    border-bottom: none;
    background: transparent;
    backdrop-filter: none;
  }
  .p-header__nav a { padding: 0; }
  .p-header__nav a:hover { background: transparent; }
}

/* --- フッター（信頼要素・プライバシー） --- */
.p-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0 var(--space-xl);
  margin-top: var(--space-2xl);
}
.p-footer__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); }
.p-footer__trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.p-footer__trust h3 { font-size: 0.8125rem; color: var(--color-text); margin-bottom: var(--space-sm); }
.p-footer__copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}
.p-footer__copy a { color: var(--color-text-muted); }

/* --- 見出し（SEO・階層） --- */
.h1 { font-size: 1.5rem; font-weight: 600; margin: 0 0 var(--space-lg); font-family: var(--font-serif); }
.h2 { font-size: 1.25rem; font-weight: 600; margin: var(--space-xl) 0 var(--space-md); }
.h3 { font-size: 1.0625rem; font-weight: 600; margin: var(--space-md) 0 var(--space-sm); }
@media (min-width: 768px) {
  .h1 { font-size: 1.75rem; }
  .h2 { font-size: 1.375rem; }
}

/* --- カード（商品・カテゴリ） --- */
.c-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.c-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.c-card__img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: var(--color-surface);
}
.c-card__img--placeholder {
  min-height: 160px;
  background: linear-gradient(145deg, var(--color-surface) 0%, var(--color-accent-soft) 100%) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23c4958a' stroke-width='1.2' opacity='0.6'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center center no-repeat;
}
.c-card__img-wrap {
  display: block;
  overflow: hidden;
}
.c-card__img-wrap:hover .c-card__img { opacity: 0.92; }
.c-card__img-wrap .c-card__img { transition: opacity 0.2s ease; }
.c-card--product .c-card__body { padding: var(--space-md); }
.c-card--product .c-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: var(--space-sm) 0 var(--space-md);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-card__cta { margin-top: var(--space-sm); }
.c-card__cta .c-cta { width: 100%; font-size: 0.875rem; padding: var(--space-sm) var(--space-md); min-height: 40px; }
.c-card__body { padding: var(--space-md); }
.c-card__title { font-size: 1rem; font-weight: 600; margin: 0 0 var(--space-xs); line-height: 1.4; }
.c-card__title a { color: var(--color-text); }
.c-card__title a:hover { color: var(--color-cta); text-decoration: none; }
.c-card__meta { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: var(--space-sm); }

/* --- 商品グリッド --- */
.p-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}
@media (min-width: 600px) {
  .p-product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .p-product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- CTAボタン（購入・詳細） --- */
.c-cta {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-cta);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease;
  text-decoration: none;
  min-height: 48px;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.c-cta:hover { background: var(--color-cta-hover); color: #fff; text-decoration: none; }
.c-cta--large { padding: var(--space-lg) var(--space-2xl); font-size: 1.0625rem; min-height: 52px; }

/* --- 商品詳細ページ --- */
.p-product-detail { max-width: 900px; margin: 0 auto; }
.p-product-detail__main {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}
@media (min-width: 600px) {
  .p-product-detail__main { grid-template-columns: 1fr 1fr; align-items: start; }
}
.p-product-detail__img-wrap { width: 100%; }
.p-product-detail__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.p-product-gallery { width: 100%; }
/* --- 商品詳細：カルーセル（複数画像切り替え） --- */
.p-product-carousel { width: 100%; }
.p-product-carousel__main {
  position: relative;
  width: 100%;
  margin-bottom: var(--space-md);
}
.p-product-carousel__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  touch-action: pan-y;
}
.p-product-carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.p-product-carousel__slide:not([hidden]) {
  position: relative;
  opacity: 1;
  visibility: visible;
}
.p-product-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-product-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.p-product-carousel__btn:hover {
  background: #fff;
  box-shadow: var(--shadow-hover);
}
.p-product-carousel__btn--prev { left: var(--space-sm); }
.p-product-carousel__btn--next { right: var(--space-sm); }
.p-product-carousel--single .p-product-carousel__btn { display: none; }
.p-product-carousel__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-sm);
}
.p-product-carousel__thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  flex-shrink: 0;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.p-product-carousel__thumb:hover { opacity: 0.9; }
.p-product-carousel__thumb.is-active { border-color: var(--color-cta); }
.p-product-carousel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-product-carousel__counter {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
  text-align: center;
}
.p-product-gallery__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.p-product-gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.p-product-detail__info .h1 { margin-top: 0; }
.p-product-detail__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-cta);
  margin: var(--space-sm) 0 var(--space-md);
}
.p-product-detail__price-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: var(--space-xs) 0 var(--space-md);
}
.p-product-detail__section { margin-top: var(--space-xl); }
.p-product-detail__section-ttl {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}
.p-product-detail__desc-lead {
  font-size: 0.9375rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}
.p-product-detail__desc-body {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.p-product-detail__spec {
  margin-top: var(--space-lg);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
}
.p-product-detail__spec-ttl {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
}
.p-product-detail__spec-txt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.6;
}
.p-product-detail__table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
  margin-top: var(--space-sm);
}
.p-product-detail__table th,
.p-product-detail__table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}
.p-product-detail__table th {
  width: 28%;
  color: var(--color-text-muted);
  font-weight: 500;
}
.p-product-detail__table td { color: var(--color-text); }
.p-product-detail__desc {
  margin: var(--space-lg) 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.8;
}
.p-product-detail__cta { margin-top: var(--space-xl); }
.p-product-detail__note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}
.c-card__price {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-cta);
  margin-top: var(--space-xs);
}

/* --- パンくず（SEO） --- */
.p-breadcrumb {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}
.p-breadcrumb a { color: var(--color-text-muted); }
.p-breadcrumb a:hover { color: var(--color-cta); }
.p-breadcrumb span { margin: 0 var(--space-xs); }

/* --- カテゴリ一覧（トップ用） --- */
.p-category-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
@media (min-width: 500px) {
  .p-category-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .p-category-list { grid-template-columns: repeat(4, 1fr); }
}
.p-category-list .c-card {
  display: flex;
  flex-direction: column;
}
.p-category-list .c-card__img-wrap {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(145deg, var(--color-surface) 0%, var(--color-accent-soft) 100%);
}
.p-category-list .c-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.p-category-list .c-card:hover .c-card__img {
  transform: scale(1.05);
}
.p-category-list .c-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.p-category-list .c-card__title {
  font-size: 0.9375rem;
  margin-bottom: var(--space-xs);
}
.p-category-list .c-card__meta {
  font-size: 0.8125rem;
  margin-top: 0;
}

/* --- 注意書き（18歳未満等） --- */
.p-notice {
  background: var(--color-pink-soft);
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius);
  padding: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: var(--space-lg) 0;
}

/* --- ユーティリティ --- */
.u-text-center { text-align: center; }
.u-mt-lg { margin-top: var(--space-lg); }
.u-mb-lg { margin-bottom: var(--space-lg); }
.u-mb-md { margin-bottom: var(--space-md); }
.u-mb-xl { margin-bottom: var(--space-2xl); }
.u-mb-xl:last-child { margin-bottom: 0; }

/* --- リード文（TOP） --- */
.p-lead {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}
@media (min-width: 768px) {
  .p-lead { font-size: 1.0625rem; }
}

/* --- TOP カテゴリセクション --- */
.p-top-category { padding-top: var(--space-md); }
.p-top-category .h2 { margin-top: 0; }

/* --- CTA アウトライン（セカンダリ） --- */
.c-cta--outline {
  background: transparent;
  color: var(--color-cta) !important;
  border: 2px solid var(--color-cta);
}
.c-cta--outline:hover {
  background: var(--color-cta);
  color: #fff !important;
}

/* --- FAQ（AEO用） --- */
.p-faq__list { max-width: 720px; }
.p-faq__item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}
.p-faq__item:first-child { padding-top: 0; }
.p-faq__q {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--color-text);
}
.p-faq__a {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
}

/* --- 商品詳細の注意書き --- */
.p-product-detail__note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}
