/* ============================================
   BEST5（レディース）ページ（PC）
   ファイル: style_best5.css
   ※ BEST20（style_best.css）と同じ考え方・同じ文字設定。違うのは順位ブロックのレイアウトだけ。

   【レイアウトの考え方】
   ・全体は横幅100%。画像の幅・位置・余白はすべて%指定
     （デザインカンプの幅=659 を基準に実測した値）。
   ・ページは次のブロックを縦に並べる。
       bs_top  : 冒頭（ロゴ画像・導入文）
       bs_item : 各順位（5位、4位 … 1位）。全順位が同じレイアウト
         （画像が右・数字が左・小さい写真2枚が左下・文章が右下）
   ・対談ではないので、名前（bs_nm）はなし。本文は p.bs_tx 1つ。
   ・順位ブロックは「グリッドの1マスに全部重ねる」方式（BEST20と同じ）。
       文章が長くなると、ブロックの高さが自然に伸びる。
   ============================================ */

@charset "utf-8";

.bs_wrap {
  background: #fff;
  width: 100%;
  overflow: hidden;      /* 右端フルブリード画像のはみ出し防止 */
  color: #000;
}

.bs_wrap img {
  display: block;
  height: auto;
}

/* p・h2 の余白リセット（:where で優先度を最小にして、後ろの個別の margin が効くようにする） */
.bs_wrap :where(p, h2) {
  margin: 0;
  padding: 0;
}

.bs_wrap a {
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s;
}
.bs_wrap a:hover { opacity: 0.4; }


/* ============ フォント（BEST20と同じ） ============ */

/* 商品一覧リンクの「›」 */
.bs_arrow {
  font-family: "source-han-sans-japanese", sans-serif;
  font-weight: 300;
  font-style: normal;
}

/* 英語の数字タイトル・サブタイトル */
.bs_num,
.bs_en {
  font-family: "adobe-garamond-pro", "EB Garamond", serif;
  font-weight: 400;
  font-style: normal;
}

/* 日本語の文章 */
.bs_tx,
.bs_ttl,
.bs_banner,
.bs_prod {
  font-family: "fot-tsukumin-pr6n", "zen-old-mincho", "Zen Old Mincho", sans-serif;
  font-weight: 300;
  font-style: normal;
}


/* ============ 文字サイズ・行間（BEST20と同じ） ============ */

/* 本文（導入文・各順位の文章） */
.bs_talks {
  font-size: min(1.2vw, 16px);
}
.bs_tx {
  line-height: 2;
  letter-spacing: 0.07em;
}

/* 項目見出し（「長く愛せる、冬のコート」など） */
.bs_ttl {
  font-size: min(2.1vw, 26px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
  white-space: nowrap;    /* 長い見出しは HTML の <br> で改行する */
}

/* 順位の数字（大きな英字） */
.bs_item {
  --bs-num: min(20.52vw, 340px);
}
.bs_num {
  font-size: var(--bs-num);
  line-height: 1;
}
.bs_en {
  font-size: min(1.48vw, 25.6px);   /* 数字の大きさに合わせた比率（数字の 8%） */
  letter-spacing: 0.1em;
  line-height: 1.2;
  white-space: nowrap;
  /* 数字との間隔。マイナスの値を大きくするほど近づく
     ※ 数字の文字サイズに連動（-0.08 ＝ 数字の高さの8%ぶん上へ） */
  margin-top: calc(var(--bs-num) * -0.08);
  /* 英語名の左端を、数字の左端にそろえる（数字の左側の余白ぶん右へ寄せる）。
     そろわないときは 0.04 の値を調整（大きくすると右へ） */
  margin-left: calc(var(--bs-num) * 0.04);
}
/* 商品情報 */
.bs_prod {
  font-size: min(1.05vw, 14px);
  line-height: 1.8;
  letter-spacing: 0.05em;
}


/* ============ a : 冒頭 ============ */

.bs_top {
  padding-top: 7.3%;
}

/* ロゴ画像（中央） */
.bs_top_img {
  width: 600px;
  margin: 0 auto;
}

/* 導入文（中央ぞろえ・2行） */
.bs_lead {
  margin-top: 2.5%;
  text-align: center;
}
.bs_lead .bs_tx {
  text-align: center;
}


/* ============ b : 順位ブロック ============
   グリッドの1マス（1行1列）に、全要素を重ねる。
   位置は margin-top / margin-left（%）で指定。 */

.bs_item {
  display: grid;
  grid-template-columns: 100%;
  width: 100%;
}

/* ブロックの最小の高さ（幅に対する%）。文章が長くなれば自動で伸びる */
.bs_item::before {
  content: "";
  grid-area: 1 / 1;
  padding-top: 117%;
}

.bs_item > * {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
}

/* ブロック同士の間隔 */
.bs_top + .bs_item { margin-top: 28%; }     /* 導入文 → 5位 */
.bs_item + .bs_item { margin-top: 16.7%; }  /* 5位 → 4位 ... */
.bs_item:last-child { margin-bottom: 16.7%; }

/* 大きな画像（右） */
.bs_main {
  justify-self: end;
  width: 54.8%;
  margin-top: 0;
}

/* 順位の数字＋英語サブタイトル（左・大きな画像の下端にそろえる） */
.bs_head {
  justify-self: start;
  text-align: left;
  margin-top: 34.5%;
  margin-left: 3%;
}

/* 文章の列（見出し → 本文 → 商品） */
.bs_col {
  margin-top: 65.2%;
  margin-left: 52.5%;
  width: 34%;
}
/* 本文は2つの <p> に分けてある（間に写真を入れるため、スマホ用）。
   PCでは同じ1つの文章に見えるよう、横並び(inline)でつなぐ */
.bs_body .bs_tx { display: inline; }

/* 見出しと本文の間 */
.bs_col .bs_talks {
  margin-top: 1.4em;
}

/* 小さい写真2枚（左下）
   幅は、ページ全体の幅に対する割合を、この枠の幅（32%）で割った値 */
.bs_subs {
  width: 32%;
  margin-top: 67.1%;
}
.bs_subs img {
  width: 89.06%;           /* 1枚目：ページ幅の28.5%。左端ぴったり */
}
.bs_subs img + img {
  width: 71.56%;           /* 2枚目：ページ幅の22.9% */
  margin-left: 28.44%;     /* ページ幅の9.1%ぶん右へずらす */
  margin-top: 0.94%;       /* 1枚目との間（わずか） */
}

/* 商品（右寄せのテキスト ＋ 商品画像） */
.bs_prod {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8%;
  padding-right: 3.5%;
  margin-top: 5.5em;
}
.bs_prod_txt {
  text-align: right;
  line-height: 1.8;      /* 品番が折り返したときの、1つの文の中の行間（小さくすると詰まる） */
  margin-top: 2em;      /* 商品名2行を下げる量。値の半分だけ下がる（大きくするほど下へ） */
}
/* 「商品名」と「商品一覧はこちら」を別のブロックにして、間隔だけ別に設定する */
.bs_prod_txt a {
  display: block;
}
/* 2つのリンクの間の <br> だけ非表示にする（リンクの中の <br> は、そのまま改行として効く） */
.bs_prod_txt > br {
  display: none;
}
.bs_prod_txt a + a,
.bs_prod_txt a + br + a {
  margin-top: 1em;       /* 商品名と「商品一覧はこちら」の間隔（大きくするほど広がる） */
}
/* 「一覧はこちら」が2つ以上あるとき、一覧と一覧の間だけの間隔（小さくするほど狭まる） */
.bs_prod_txt a + a + a,
.bs_prod_txt a + br + a + a,
.bs_prod_txt a + br + a + br + a {
  margin-top: 0.3em;
}
/* 商品画像のリンク（<a> で囲んだ画像）。class がなくても、.bs_prod の直下の <a> に効く */
.bs_prod_img,
.bs_prod > a {
  flex: none;
  width: 26%;
  display: block;
}
.bs_prod_img img,
.bs_prod > a img {
  width: 100%;
}


/* ============ ページ最下部のリンクバナー（BEST20と同じ） ============
   「掲載アイテム一覧」「Men Best20」の2本。中央 */
.bs_foot {
  margin: 14.5% 0 14%;            /* 上：5位〜1位の最後との間 / 下：ページの終わりまで */
}
.bs_wrap .bs_banner {
  display: block;
  width: 45%;                   /* バナーの横幅。小さくすると左右に余白ができる */
  margin: 0 auto;
  box-sizing: border-box;
  padding: 15px 0;                /* バナーの高さ（上下の余白）。大きくするほど高くなる */
  border: 1px solid #000;
  font-size: min(1.5vw, 18px);
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-align: center;
}
.bs_wrap .bs_banner + .bs_banner {
  margin-top: 2.4%;               /* バナー同士の間隔 */
}


/* ============ PC／スマホの出し分け ============ */
.bs_wrap .bs_sp_only { display: none; }   /* スマホ専用の要素：PCでは非表示 */
.bs_wrap .bs_sp_br   { display: none; }   /* スマホ専用の改行 */


/* ============================================
   スマホ（980px以下）
   文字サイズはpx固定（BEST20のスマホと同じ）
   ============================================ */
@media only screen and (max-width: 980px) {
	

  /* --- 出し分け --- */
  .bs_wrap .bs_pc_only { display: none; }
  .bs_wrap .bs_sp_only { display: block; }
  .bs_wrap .bs_sp_br   { display: inline; }

  /* --- 文字を少し濃く見せる（BEST20と同じ） --- */
  /* --- Androidで商品画像の上に出る薄い線への対策 ---
     ふち取り(text-stroke)を商品ブロック全体ではなく、品番の文字(.bs_prod_txt)だけに付ける。
     画像は別レイヤーで描画させて、縮小時の継ぎ目の線を消す */
  .bs_wrap .bs_tx,
  .bs_wrap .bs_prod_txt {
    -webkit-text-stroke: 0.2px #000;
  }

  /* --- 本文（BEST20の対談と同じ大きさ） ---
     <p> は smartpn.css の p{12px} が直接効くので、.bs_tx に直接指定 */
  .bs_wrap .bs_talks { font-size: 15px!important; }
  .bs_wrap .bs_tx {
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 0.07em;
  }

  /* --- TOP（ロゴ・導入文） --- */
  .bs_wrap .bs_top { padding-top: 0; }
  .bs_wrap .bs_sp_logo { width: 60%; margin: 10% auto 0 auto; }   /* ロゴの横幅。画像の余白に合わせて調整 */
  .bs_wrap .bs_lead {
    width: 85%;
    margin: 100px auto 100px;
  }
  .bs_wrap .bs_lead .bs_tx { text-align: left; }

  /* --- 順位ブロック：縦に積む（グリッドをやめる） --- */
  .bs_wrap .bs_item {
    display: flex;
    flex-direction: column;
    --bs-num: min(40vw, 230px);          /* 数字の大きさ */
  }
  .bs_wrap .bs_item > * { align-self: stretch; }
  .bs_wrap .bs_item::before { display: none; }
  .bs_wrap .bs_top + .bs_item { margin-top: 33%; }
  .bs_wrap .bs_item + .bs_item { margin-top: 38%; }
  .bs_wrap .bs_item:last-child { margin-bottom: 25%; }

  /* 文章の列は枠をなくして、並び順(order)を直接指定する
     数字 → 大きな画像 → 見出し → 本文 → 小さい写真2枚 → 商品 */
  .bs_wrap .bs_item .bs_col { display: contents; }
  .bs_wrap .bs_item .bs_head  { order: 1; }
  .bs_wrap .bs_item .bs_main  { order: 2; }
  .bs_wrap .bs_item .bs_ttl   { order: 3; }
  .bs_wrap .bs_item .bs_talks { display: contents; }   /* 本文の枠もなくして、2つの <p> を直接並べる */
  .bs_wrap .bs_item .bs_talks .bs_tx:first-child { order: 4; }   /* 本文 前半 */
  .bs_wrap .bs_item .bs_subs  { order: 5; }                      /* 小さい写真2枚 */
  .bs_wrap .bs_item .bs_talks .bs_tx:last-child  { order: 6; }   /* 本文 後半 */
  .bs_wrap .bs_item .bs_prod  { order: 7; }

  /* 数字＋英語名（中央） */
  .bs_wrap .bs_item .bs_head {
    margin: 0 0 12%;
    text-align: center;
  }
  .bs_wrap .bs_item .bs_en {
    font-size: min(4.3vw, 22px);
    white-space: normal;
    margin: calc(var(--bs-num) * -0.12) 0 0;   /* 数字との間隔（マイナスで近づく） */
  }

  /* 大きな画像 */
  .bs_wrap .bs_item .bs_main {
    width: 100%;
    margin: 30px auto;
  }

  /* 見出し（中央） */
  .bs_wrap .bs_item .bs_ttl {
    font-size: 25px;
    -webkit-text-stroke: 0.3px #000;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    margin: 15% 0 8% 0;
  }

  /* 本文（横幅85%） */
  .bs_wrap .bs_item .bs_talks .bs_tx {
    display: block;
    width: 85%;
    margin: 7% auto 0;
    text-align: left;
  }
  .bs_wrap .bs_item .bs_talks .bs_tx:last-child { margin-top: 16%; }   /* 写真との間隔 */

  /* 小さい写真2枚（PCと同じ見せ方：1枚目は左、2枚目は右へずらす） */
  .bs_wrap .bs_item .bs_subs {
    display: block;
    width: 100%;
    margin: 16% 0 0;
  }
  .bs_wrap .bs_item .bs_subs img { width: 76%; margin-left: 3.5%; }
  .bs_wrap .bs_item .bs_subs img + img {
    width: 63%;
    margin-left: 33.5%;
    margin-top: 1%;
  }

  /* --- 商品：画像 → 品番テキスト → 一覧ボタン（中央・縦）BEST20と同じ --- */
  .bs_wrap .bs_item .bs_prod {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    margin-top: 15%;
    font-size: 14px;
    line-height: 1.6;
  }
  .bs_wrap .bs_item .bs_prod_img { width: 50%; }
  .bs_wrap .bs_item .bs_prod_img img { transform: translateZ(0); }
  .bs_wrap .bs_item .bs_prod_txt {
    width: 100%;
    font-size: 14px;
    margin: 0.6em 0 0;
    text-align: center;
    line-height: 1.6;
  }
  .bs_wrap .bs_item .bs_prod_txt .bs_list {
    display: block;
    width: 85%;
    margin: 13.5% auto 0;
    box-sizing: border-box;
    padding: 2.5% 0;
    border: 1px solid #333;
    font-size: 14px;
    letter-spacing: 0.15em;
    line-height: 1.6;
    text-align: center;
  }
  .bs_wrap .bs_item .bs_prod_txt .bs_list ~ .bs_list { margin-top: 3%; }
  .bs_wrap .bs_item .bs_prod_txt .bs_arrow { display: none; }

  /* --- ページ最下部のリンクバナー --- */
  .bs_wrap .bs_banner {
    width: 85%;
    padding: 2.5% 0;
    border-color: #333;
    font-size: 14px;
    letter-spacing: 0.15em;
    line-height: 1.6;
  }
  .bs_wrap .bs_banner + .bs_banner { margin-top: 3%; }
  .bs_wrap .bs_foot { margin: 150PX 0 250PX 0; }
}
