@charset "utf-8";
/* style.css — スタイル詳細（フォトギャラリーの写真詳細） */

/* 長い英数字（URL など）でも枠からはみ出さないようにする */
.p-wrap { overflow-wrap: anywhere; }

/* ---------- 上段: 写真 | スタイル名・タグ・コメント ---------- */
.p-style-top { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 0 28px; align-items: start; }
.p-style-top__body { min-width: 0; }
.p-style-top__name { padding-bottom: 8px; border-bottom: 2px solid var(--c-primary); color: var(--c-heading); font-size: 20px; font-weight: bold; line-height: 1.45; word-break: break-word; }
.p-style-top__sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 12px; }
.p-style-top__by { min-width: 0; font-size: 12px; color: #555; }
.p-style-top__by a { font-weight: bold; }
.p-style-top__by span { margin-left: 2px; color: var(--c-sub); font-size: 11px; }
.p-style-top__comment { padding: 0 2px; line-height: 1.85; word-break: break-word; }
.p-style-top__body .c-coupon { margin-bottom: 6px; }
.p-style-top__more { font-size: 12px; text-align: right; }

/* 長さ・カラー・イメージ・メニュー内容 */
.p-style-info td { vertical-align: middle; }
.p-style-info .c-chips { display: inline-flex; vertical-align: middle; }
.p-style-info a.c-chip { border: 1px solid var(--c-border); background: #fff; color: var(--c-link); line-height: 20px; white-space: normal; }
.p-style-info a.c-chip:hover { border-color: var(--c-primary); background: var(--c-primary-pale); color: var(--c-primary-dark); }
.p-style-info__gender { margin-right: 8px; color: var(--c-sub); font-size: 12px; }

/* ---------- 写真（大きい表示 + サムネ切替） ---------- */
.p-style-gallery { min-width: 0; }
.p-style-gallery__main { border: 1px solid var(--c-border); }
.p-style-gallery__badge { position: absolute; left: 0; top: 0; padding: 2px 10px; background: rgba(61, 52, 46, .82); color: #fff; font-family: var(--font-latin); font-size: 11px; font-weight: bold; letter-spacing: .08em; line-height: 20px; }
.p-style-gallery__count { position: absolute; right: 8px; bottom: 8px; padding: 0 8px; border-radius: 10px; background: rgba(0, 0, 0, .5); color: #fff; font-family: var(--font-latin); font-size: 11px; line-height: 20px; }
.p-style-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }  /* 写真は最大6枚。4枚を超えたら折り返す */
.p-style-gallery__thumbs li { flex: 0 0 76px; }
.p-style-gallery__note { margin-top: 6px; font-size: 11px; }
.p-style-gallery__thumb { display: block; width: 100%; padding: 2px; border: 2px solid transparent; border-radius: 3px; background: none; text-align: center; }
.p-style-gallery__thumb .c-thumb { border: 1px solid var(--c-border-light); }
.p-style-gallery__thumb:hover .c-thumb img { opacity: .86; }
.p-style-gallery__thumb-label { display: block; margin-top: 3px; color: var(--c-sub); font-family: var(--font-latin); font-size: 10px; font-weight: bold; letter-spacing: .06em; line-height: 1.4; }
.p-style-gallery__thumb.is-current { border-color: var(--c-primary); }
.p-style-gallery__thumb.is-current .p-style-gallery__thumb-label { color: var(--c-primary-dark); }

/* ---------- モデル情報（全選択肢を並べ、該当だけ強調） ---------- */
.p-style-fit th, .p-style-fit td { vertical-align: middle; }
.p-style-fit__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.p-style-fit__opts li { min-width: 62px; padding: 0 10px; border: 1px solid var(--c-border-light); border-radius: 3px; font-size: 12px; line-height: 24px; text-align: center; }
.p-style-fit__opts .is-off { background: #faf8f6; color: #b3aaa2; }
.p-style-fit__opts .is-on { border-color: var(--c-primary); background: var(--c-primary); color: #fff; font-weight: bold; }
.p-style-fit__legend { display: inline-block; margin-right: 2px; padding: 0 6px; border-radius: 2px; background: var(--c-primary); color: #fff; font-weight: bold; line-height: 16px; }

/* ---------- スタイリスト情報 ---------- */
.p-style-stylist { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--c-border); background: #fff; }
.p-style-stylist__photo { flex: 0 0 96px; align-self: flex-start; border: 1px solid var(--c-border-light); }
.p-style-stylist__body { flex: 1; min-width: 0; }
.p-style-stylist__role { display: inline-block; margin-bottom: 3px; padding: 0 7px; border: 1px solid var(--c-border); border-radius: 2px; background: var(--c-bg-soft); color: #6b5f56; font-size: 11px; line-height: 18px; }
.p-style-stylist__name { font-size: 16px; font-weight: bold; line-height: 1.4; }
.p-style-stylist__catch { margin-top: 5px; color: var(--c-heading); font-weight: bold; line-height: 1.55; }
.p-style-stylist__meta { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 5px; color: #666; font-size: 12px; }
.p-style-stylist__actions { flex: 0 0 220px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.p-style-stylist__actions .c-btn--primary { width: 100%; min-height: 42px; font-size: 14px; }
.p-style-stylist__na { width: 100%; padding: 5px 8px; border: 1px solid var(--c-border-light); border-radius: 3px; background: var(--c-bg-soft); color: var(--c-sub); font-size: 11px; line-height: 1.5; text-align: center; word-break: keep-all; }
.p-style-stylist--col .p-style-stylist__actions { flex-basis: 190px; }

/* ---------- フッター ---------- */
.p-style-foot { margin-top: 32px; text-align: center; }
.p-style-foot__catalog { min-width: 320px; min-height: 44px; }
.p-style-foot__back { margin-top: 14px; font-size: 12px; }

@media (max-width: 767px) {
  .p-style-top { display: block; }
  .p-style-gallery { max-width: 320px; margin: 0 auto 16px; }
  .p-style-gallery__thumbs { justify-content: center; }
  .p-style-gallery__thumbs li { flex-basis: 72px; }
  .p-style-top__name { font-size: 18px; }
  .p-style-top__sub { flex-wrap: wrap; }
  .p-style-top__by { font-size: 13px; }

  .p-style-info th { width: 7.6em; white-space: nowrap; }
  .p-style-fit th { width: 4.6em; white-space: nowrap; }
  .p-style-fit__opts { gap: 5px; }
  .p-style-fit__opts li { min-width: 50px; padding: 0 7px; line-height: 26px; }

  .p-style-stylist { flex-wrap: wrap; gap: 12px; padding: 12px; border-radius: 6px; }
  .p-style-stylist__photo { flex-basis: 84px; }
  .p-style-stylist__body { flex: 1 1 0; }
  .p-style-stylist__meta { font-size: 13px; }
  .p-style-stylist__actions,
  .p-style-stylist--col .p-style-stylist__actions { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; }
  .p-style-stylist__actions .c-btn--primary { flex: 1 1 100%; min-height: 44px; }
  .p-style-stylist__na { flex: 1 1 100%; font-size: 12px; }

  .p-style-foot__catalog { width: 100%; min-width: 0; }
  .p-style-foot__back { font-size: 13px; }
}
