/* ==============================================
   ファミリー詳細 (family-detail.html) ページ専用スタイル
   ============================================== */

/* ─── ヒーロー + プロフィールカード コンテナ ── */

.fd-hero-container {
  position: relative;
  /* ヒーロー(640px) + フロートカードがはみ出す下部余白(200px) */
  padding-bottom: 200px;
}

/* ─── 背景画像エリア ─────────────────────────── */

.fd-hero-bg {
  position: relative;
  height: 640px;
  overflow: hidden;
}

.fd-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.fd-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.10) 45%,
    rgba(0,0,0,0.52) 100%
  );
  pointer-events: none;
}

/* ─── パンくず ────────────────────────────────── */

.fd-breadcrumb {
  position: absolute;
  top: 44px;
  left: 48px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 1px;
  z-index: 5;
}

.fd-breadcrumb a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.15s;
}

.fd-breadcrumb a:hover { color: #fff; text-decoration: underline; }

.fd-breadcrumb svg { flex-shrink: 0; opacity: 0.7; }

/* ─── プロフィール浮動カード ─────────────────── */
/* ヒーロー下端 (640px) をまたいで下方にはみ出す  */

.fd-profile-float {
  position: absolute;
  /* paddingBottomの分だけ下から配置 → 常にヒーロー下部に張り付く */
  bottom: 0;
  left: 86px;
  display: flex;
  align-items: flex-end;
  gap: 36px;
  z-index: 10;
}

/* 顔写真カード */
.fd-photo-card {
  width: 297px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  background: #e0e0e0;
}

.fd-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* アスリート情報 */
.fd-athlete-meta {
  padding-bottom: 4px;
}

.fd-flag-wrap {
  margin-bottom: 14px;
}

.fd-flag-wrap img {
  min-height: 42px;
  width: auto;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  display: block;
}

.fd-athlete-name {
  font-size: 36px;
  font-weight: 700;
  /*color: #fff;*/
  color: #333;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

.fd-athlete-sport {
  font-size: 16px;
  font-weight: 500;
  /*color: rgba(255,255,255,0.92);*/
  color: #333;
  margin-bottom: 22px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ナビゲーション矢印 */
.fd-nav-arrows {
  display: flex;
  gap: 8px;
}

.fd-arrow-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  padding: 0;
}

.fd-arrow-btn:hover {
  background: rgba(255,255,255,0.2);
  border-color: #fff;
  transform: scale(1.08);
}

.fd-arrow-btn:active {
  transform: scale(0.95);
}

/* ─── 戻るリンクバー ─────────────────────────── */

.fd-back-bar {
  padding: 20px 86px 0;
}

.fd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: gap 0.2s ease, color 0.15s;
}

.fd-back-link:hover {
  color: #444;
  gap: 4px;
}

.fd-back-link svg { flex-shrink: 0; transition: transform 0.2s ease; }
.fd-back-link:hover svg { transform: translateX(-3px); }

/* ─── プロフィールデータ ─────────────────────── */

.fd-profile-section {
  padding: 36px 48px 60px;
}

.fd-profile-inner {
  max-width: 913px;
  margin: 0 auto;
}

.fd-profile-table {
  width: 100%;
  border-collapse: collapse;
}

.fd-profile-table tbody tr {
  border-bottom: 1.5px solid #272727;
}

/*.fd-profile-table tbody tr:first-child {*/
/*  border-top: 1.5px solid #272727;*/
/*}*/

.fd-profile-table th {
  padding: 22px 0;
  font-size: 20px;
  font-weight: 400;
  color: #000;
  text-align: left;
  width: 260px;
  vertical-align: middle;
  letter-spacing: 1.2px;
}

.fd-profile-table td {
  padding: 22px 0 22px 104px;
  font-size: 20px;
  font-weight: 400;
  color: #000;
  vertical-align: middle;
  letter-spacing: 1.2px;
}

/* ─── おすすめ商品 ─────────────────────────────── */
/* ─── おすすめ商品 ───────────────────────────── */

.fd-recommended {
  padding: 56px 48px 72px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}

.fd-rec-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 36px;
}

.fd-rec-grid {
  /*display: grid;*/
  /*grid-template-columns: repeat(3, 1fr);
  gap: 24px;*/
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
}
.fd-rec-grid .swiper-father{
  width:100%;
  height:100%;
  position: relative;
}
.fd-rec-grid .swiper{
  width:calc(100% - 20px - 76px);
  height:100%;
}
.fd-rec-grid .swiper-slide{
  width:100%;
  height:100%;
}
.fd-rec-grid .swiper-button-prev::after,
.fd-rec-grid .swiper-button-next::after {
  display: none;
}

.fd-rec-grid .swiper-button-prev {
  width: 48px;
  height: 48px;
  background-image: url(../img/9ee08c53-f92e-42da-862d-0667a9d4c7b8.svg);
  transform: rotate(180deg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  left: 0;
}

.fd-rec-grid .swiper-button-next {
  width: 48px;
  height: 48px;
  background-image: url(../img/5a3c77fd-1e24-44d4-8364-585cd8bb8c03.svg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  right: 0;
}
/* 推薦カード共通スタイル */
.fd-rec-grid .pl-card {
  width:100%;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.fd-rec-grid .pl-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  border-color: #000;
}

.fd-rec-grid .pl-card-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  z-index: 2;
  min-height: 32px;
}

.fd-rec-grid .pl-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.fd-rec-grid .pl-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-top: 40px;
  overflow: hidden;
}

.fd-rec-grid .pl-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.fd-rec-grid .pl-card:hover .pl-card-image img {
  transform: scale(1.06);
}

.fd-rec-grid .pl-card-info {
  padding: 0 16px 18px;
}

.fd-rec-grid .pl-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
}

.fd-rec-grid .pl-card-sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.fd-rec-grid .pl-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.fd-rec-grid .pl-price-sale {
  font-size: 17px;
  font-weight: 700;
  color: #b80000;
}

.fd-rec-grid .pl-price-strike {
  font-size: 13px;
  color: #bbb;
  text-decoration: line-through;
}

.fd-rec-grid .pl-card-swatches {
  display: flex;
  gap: 6px;
}

.fd-rec-grid .pl-card-swatches img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #eee;
}

/* 商品カード */
.fd-prod-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #b5b5b5;
  border-radius: 10px;
  overflow: hidden;
  width: 297px;
  flex-shrink: 0;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.fd-prod-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
  transform: translateY(-5px);
  border-color: #000;
}

.fd-prod-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  z-index: 2;
  min-height: 35px;
}

.fd-prod-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
}

.fd-prod-image {
  height: 158px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-top: 44px;
  overflow: hidden;
}

.fd-prod-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.fd-prod-card:hover .fd-prod-image img {
  transform: scale(1.06);
}

.fd-prod-body {
  padding: 8px 21px 18px;
}

.fd-prod-name {
  font-size: 20px;
  font-weight: 500;
  color: #000;
  margin-bottom: 4px;
  white-space: nowrap;
}

.fd-prod-sub {
  font-size: 14px;
  color: #8e8e8e;
  font-weight: 500;
  margin-bottom: 6px;
}

.fd-prod-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.fd-price-sale {
  font-size: 20px;
  font-weight: 700;
  color: #b80000;
}

.fd-price-strike {
  font-size: 16px;
  color: #aaa;
  text-decoration: line-through;
}

.fd-prod-swatches {
  display: flex;
  gap: 8px;
}

.fd-prod-swatches img {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid #eee;
}
/* 推薦カード共通スタイル */
.fd-rec-grid .fd-card {
  width:100%;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.fd-rec-grid .fd-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  border-color: #000;
}

.fd-rec-grid .fd-prod-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  z-index: 2;
  min-height: 32px;
}


.fd-rec-grid .fd-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-top: 40px;
  overflow: hidden;
}

.fd-rec-grid .fd-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.fd-rec-grid .fd-card:hover .pl-card-image img {
  transform: scale(1.06);
}

.fd-rec-grid .fd-card-info {
  padding: 0 16px 18px;
}

.fd-rec-grid .fd-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
}

.fd-rec-grid .fd-prod-sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}



/* タグ */
.fd-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 10px;
  line-height: 1;
  white-space: nowrap;
}

.fd-tag-outline {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.fd-badge-sale {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff3a3a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  width: 45px;
  height: 45px;
  border-radius: 99px;
}

/* ナビゲーション アクティブ */
.nav-active {
  font-weight: 700 !important;
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
}

/* ─── レスポンシブ ─────────────────────────────── */

@media (max-width: 1280px) {
  .fd-profile-float { left: 48px; }
  .fd-back-bar { padding-left: 48px; }
}

@media (max-width: 1024px) {
  .fd-hero-bg { height: 560px; }
  .fd-hero-container { padding-bottom: 160px; }

  .fd-photo-card {
    width: 240px;
    height: 240px;
  }

  .fd-athlete-name { font-size: 28px; }
}

@media (max-width: 768px) {
  .fd-hero-bg { height: 440px; }
  .fd-hero-container { padding-bottom: 130px; }

  .fd-profile-float {
    left: 20px;
    gap: 20px;
  }

  .fd-photo-card {
    width: 160px;
    height: 160px;
  }

  .fd-athlete-name { font-size: 22px; }
  .fd-athlete-sport { font-size: 13px; margin-bottom: 14px; }

  .fd-flag-wrap img { min-height: 32px; }

  .fd-arrow-btn { width: 40px; height: 40px; }

  .fd-back-bar { padding: 16px 20px 0; }

  .fd-profile-section { padding: 28px 20px 48px; }
  .fd-profile-table th { font-size: 15px; width: 120px; }
  .fd-profile-table td { font-size: 15px; padding-left: 28px; }

  .fd-recommended { padding: 48px 20px 64px; }
  .fd-rec-title { font-size: 26px; }
  .fd-rec-grid { gap: 16px; }
  .fd-prod-card { width: 260px; }
}

@media (max-width: 540px) {
  .fd-hero-bg { height: 360px; }
  .fd-hero-container { padding-bottom: 100px; }

  .fd-photo-card {
    width: 120px;
    height: 120px;
  }

  .fd-athlete-name { font-size: 18px; }
  .fd-flag-wrap { margin-bottom: 8px; }
  .fd-flag-wrap img { min-height: 24px; }
  .fd-athlete-sport { margin-bottom: 10px; font-size: 12px; }
  .fd-arrow-btn { width: 34px; height: 34px; }
  .fd-arrow-btn svg { width: 16px; height: 16px; }

  .fd-profile-table th { font-size: 13px; }
  .fd-profile-table td { font-size: 13px; }

  .fd-rec-grid { flex-direction: column; align-items: center; }
  .fd-prod-card { width: 100%; max-width: 320px; }
}
