/* ============================================
   BEST20 ページ（PC）
   ファイル: style_best.css

   【レイアウトの考え方】
   ・全体は横幅100%。画像の幅・位置・余白はすべて%指定。
     （デザインカンプの幅=952 を基準に実測した値）
   ・ページは次のブロックを縦に並べる。
       bs_top  : 冒頭（集合写真・3人のプロフィール・導入の対談）
       bs_item : 各順位（20位、19位 …）
   ・順位ブロック（bs_item）は2種類のレイアウトを交互に繰り返す。
       bs_item--a : 画像が左・数字が右（20位、18位、16位 …）
       bs_item--b : 画像が右・数字が左（19位、17位、15位 …）
     → HTML は順位ごとにコメントで区切ってあるので、
        次の順位は、直前のブロックをコピーして、中身（数字・文章・画像名）だけ書き換える。
   ・順位ブロックの中は「グリッドの1マスに全部重ねる」方式。
       各要素の位置は margin（上・左）と width の%で指定。
       文章（bs_col）が長くなると、ブロックの高さが自然に伸びるので、
       次の順位とは重ならない。
   ・文字サイズは vw ベース（min() で上限のみ）。
     画面幅に比例して拡縮するので、行数・改行位置がカンプと揃う。
   ============================================ */

@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; }


/* ============ フォント ============ */

/* 対談の名前部分 */
.bs_nm {
  font-family: "fot-cezanne-pron", sans-serif;
  font-weight: 500;
  font-style: normal;
}

/* プロフィールの名前・所属、商品一覧リンクの「›」 */
.bs_name,
.bs_role,
.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_prof_txt,
.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;
}


/* ============ 文字サイズ・行間 ============ */

/* 対談の本文 */
.bs_talks {
  font-size: min(1.2vw, 16px);
}
.bs_tx {
  line-height: 2;
  letter-spacing: 0.07em;
}
.bs_nm {
  font-size: min(1.1vw, 16px);
  line-height: 2.1;
  letter-spacing: 0.05em;
}

/* 対談：名前（左）＋文章（右）。1人ごとに1行あける */
.bs_talk {
  display: flex;
}
/* 間にスマホ用スライダー（.bs_slider）が入っていても効くよう、~（以降の兄弟）で指定 */
.bs_talk ~ .bs_talk {
  margin-top: 2em;
}
/* 名前の幅（＝名前とテキストの間の広さ）。序文とランキングで別々に設定できる。
   値を大きくするほどテキストが右へ離れる */
.bs_top_talks { --bs-nm-w: 9%; }    /* 序文（冒頭の対談） */
.bs_col .bs_talks { --bs-nm-w: 9%; } /* ランキング内の対談 */
.bs_nm {
  flex: 0 0 var(--bs-nm-w, 9%);
}
.bs_tx {
  flex: 1;
}

/* 項目見出し（「軽さを極めて〜」など） */
.bs_ttl {
  font-size: min(2.1vw, 26px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
  white-space: nowrap;
}

/* 順位の数字（大きな英字） */
.bs_item {
  /* 「20」の文字サイズ。画面幅1728px（16インチMacBook Proの標準）で 320px。
     vw = 320 ÷ 画面幅 × 100（1536px→20.83vw / 1920px→16.67vw）
     min(…, 320px) で、それより広い画面では 320px のまま大きくならない */
  --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 で以前より少し離れる）
     ※ 数字の文字サイズに連動（-0.08 ＝ 数字の高さの8%ぶん上へ） */
  margin-top: calc(var(--bs-num) * -0.08);
}
/* 商品情報 */
.bs_prod {
  font-size: min(1.05vw, 14px);
  line-height: 1.8;
  letter-spacing: 0.05em;
}


/* ============ PC / スマホの出し分け ============
   ※ サイト共通の pc_only / sp_only と衝突しないよう、bs_ 付きの専用名にしている */
.bs_wrap .bs_sp_only { display: none; }   /* スマホ専用の要素：PCでは非表示 */
.bs_wrap .bs_sp_br   { display: none; }   /* スマホ専用の改行 */
.bs_wrap .bs_slider  { display: none; }   /* スマホ用スライダー：PCでは非表示 */


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

.bs_top {
  padding-top: 3.68%;
}

.bs_top_img {
  width: 96.64%;
  margin-left: 1.79%;
}

/* 3人のプロフィール */
.bs_profs {
  display: flex;
  justify-content: space-between;
  width: 79.31%;
  margin: 4.1% 0 0 9.03%;
}

.bs_prof {
  flex: 0 0 28.34%;
}

.bs_prof_head {
  display: flex;
  align-items: flex-end;
}
.bs_prof_head img {
  flex: none;
  width: 43%;
}
.bs_prof_name {
  margin-left: 4.7%;
}
.bs_name {
  font-size: min(1.1vw, 17px);
  line-height: 1.5;
  letter-spacing: 0.05em;
}
.bs_role {
  font-size: min(0.85vw, 11px);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-top: 0.3em;
}
.bs_prof_txt {
  font-size: min(1.05vw, 13px);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-top: 1.9em;
}

/* 導入の対談 */
.bs_top_talks {
  width: 700px;
  margin: 8.93% 0 0 26.68%;
}


/* ============ 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: 130%;
}

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

/* ブロック同士の間隔 */
.bs_top + .bs_item { margin-top: 23.5%; }   /* 冒頭 → 20位 */
.bs_item + .bs_item { margin-top: 8%; }  /* 20位 → 19位 ... */

/* 大きな画像 */
.bs_main {
  width: 54.7%;
  margin-top: 0;
}

/* 順位の数字＋英語サブタイトル */
.bs_head {
  margin-top: 26.8%;
}

/* 文章の列（見出し → 対談 → 商品） */
.bs_col {
  margin-top: 62.6%;
  /* 文章が長い順位でも、次の順位との間が詰まらないようにする最低限の余白。
     （短い順位は「ブロックの最小の高さ」で余白ができるが、長い順位はできないため）
     大きくするほど順位と順位の間が広がる */
  margin-bottom: 12.5%;
}
.bs_col .bs_talks {
  margin-top: 5em;
}

/* 小さい写真2枚（縦に積む） */
.bs_subs {
  width: 22%;
  margin-top: 63.1%;
}
.bs_subs img {
  width: 100%;
}
.bs_subs img + img {
  margin-top: 1.83%;
}

/* 商品（右寄せのテキスト ＋ 商品画像） */
.bs_prod {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 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%;
}


/* ============ ページ最下部のリンクバナー ============
   「掲載アイテム一覧」「Women Best5」の2本。横幅はページ幅の約70%・中央 */
.bs_foot {
  margin: 2% 0 14%;
}
.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%;               /* バナー同士の間隔 */
}


/* ============ レイアウトA：画像が左・数字が右（20位 / 18位 / 16位 …） ============ */

.bs_item--a .bs_main {
  justify-self: start;
}

.bs_item--a .bs_head {
  justify-self: end;
  text-align: right;
  margin-right: 4.3%;
}
.bs_item--a .bs_en {
  margin-right: 0.8vw;
}

.bs_item--a .bs_col {
  margin-left: 5%;
  width: 34%;
}

.bs_item--a .bs_subs {
  margin-left: 68.07%;
}

.bs_item--a .bs_prod {
  padding-right: 2.6%;
}


/* ============ レイアウトB：画像が右・数字が左（19位 / 17位 / 15位 …） ============ */

.bs_item--b::before {
  padding-top: 132%;
}

.bs_item--b .bs_main {
  justify-self: end;
  width: 54.83%;
}

.bs_item--b .bs_head {
  justify-self: start;
  text-align: left;
  margin-left: 5.15%;
}
/* 英語名の左端を、数字の左端にそろえる。
   数字の左側の余白（字形ごとに違う）ぶんだけ右へ寄せる。
   そろわないときは 0.04 / 0.11 の値を調整（大きくすると右へ） */
.bs_item--b .bs_en {
  margin-left: calc(var(--bs-num) * 0.04);   /* 数字が「0」で始まる順位（09〜01位） */
}
.bs_item--b .bs_en--1 {
  margin-left: calc(var(--bs-num) * 0.11);   /* 数字が「1」で始まる順位（19・17・15・13・11位） */
}

.bs_item--b .bs_col {
  margin-left: 56%;
  width: 34%;              /* 右端に約5%の余白（56% + 39% = 95%） */
}

.bs_item--b .bs_subs {
  margin-left: 9.03%;
}

.bs_item--b .bs_prod {
  padding-right: 0%;
}


/* ==================================================================
   スマホ（980px以下）
   ・PCと同じHTMLを使い、ここで並び順・サイズを組み替える。
   ・文字サイズは vw ＋ 上限（min）。画面幅に比例して拡縮する。
   ・カンプ幅 446px を基準に実測した値。
   ================================================================== */
@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; }


  /* --- TOP（ロゴ・集合写真） --- */
  .bs_wrap .bs_top { padding-top: 0; }
  .bs_wrap .bs_sp_logo  { width: 70%; margin: 12% auto 5%; }
  .bs_wrap .bs_sp_photo { width: 100%; margin: 10% 0 0; }


  /* --- 3人のプロフィール（縦に並べる） --- */
  .bs_wrap .bs_profs {
    display: block;
    width: 89%;
    margin: 10.8% auto 0;
  }
  .bs_wrap .bs_prof { width: 100%; }
  .bs_wrap .bs_prof + .bs_prof { margin-top: 15%; }   /* プロフィール同士の間隔 */
  .bs_wrap .bs_prof_head img { width: 30.8%; }
  .bs_wrap .bs_prof_name { margin-left: 3.3%; }
  .bs_wrap .bs_name { font-size: 16px; }
  .bs_wrap .bs_role { font-size: 12px; }
  .bs_wrap .bs_prof_txt {
    font-size: 13px;            /* プロフィール文 */
    line-height: 1.5;
    margin-top: 2.1em;
  }


  /* --- 文字を少し濃く見せる（フォントが細い L だけのため、ふちを少し太らせる） ---
     0.2〜0.4px で調整。大きいほど濃い。不要なら 0 に */
  /* --- Androidで商品画像の上に出る薄い線への対策 ---
     ふち取り(text-stroke)を商品ブロック全体ではなく、品番の文字(.bs_prod_txt)だけに付ける。
     画像は別レイヤーで描画させて、縮小時の継ぎ目の線を消す */
  .bs_wrap .bs_tx,
  .bs_wrap .bs_prof_txt,
  .bs_wrap .bs_prod_txt {
    -webkit-text-stroke: 0.2px #000;
  }


  /* --- 対談（序文・ランキング共通：横幅90%） --- */
  /* スマホはpx固定（端末の幅で大きさが変わらない） */
  .bs_wrap .bs_talks { font-size: 15px!important; }   /* 対談の本文 .bs_tx */
  .bs_wrap .bs_nm    { font-size: 15px!important; }   /* 対談の名前 */
  /* 本文は <p> なので、サイト共通CSS(smartpn.css)の p{font-size:12px} が直接効いてしまう。
     親(.bs_talks)の指定は届かないため、.bs_tx に直接指定する */
  .bs_wrap .bs_tx { 
	  font-size: 14px;
	  line-height: 1.6;
    letter-spacing: 0.07em;
	}   /* 対談の本文 */

  /* 名前と本文の1行目の高さをそろえる（名前と本文で文字サイズ・行間が違うため、ずれて見える）。
     align-items: baseline ＝ 1行目の文字の下端（ベースライン）でそろえる */
  .bs_wrap .bs_talk { align-items: baseline; }
  .bs_wrap .bs_nm   { line-height: 1.6; }

  /* 序文の対談。--bs-nm-w ＝ 名前の幅（名前とテキストの間の広さ） */
  .bs_wrap .bs_top_talks {
    --bs-nm-w: 14.3%;
    width: 90%;
    margin: 25.6% auto 0;
  }
  /* ランキング内の対談 */
  .bs_wrap .bs_col .bs_talks {
    --bs-nm-w: 14.3%;
  }


  /* --- 順位ブロック：グリッドをやめて縦に積む --- */
  .bs_wrap .bs_item {
    display: flex;                       /* 縦に積み、数字＋英語名(.bs_head)を先頭に持ってくる */
    flex-direction: column;
    --bs-num: min(40vw, 230px);          /* 数字の大きさ */
  }
  .bs_wrap .bs_item > * { align-self: stretch; }   /* PC用の align-self:start を打ち消す */
  .bs_wrap .bs_item .bs_head { order: -1; }
  .bs_wrap .bs_item::before { display: none; }
  .bs_wrap .bs_top + .bs_item { margin-top: 33%; }
  .bs_wrap .bs_item + .bs_item { margin-top: 33%; }
  .bs_wrap .bs_item:last-child { margin-bottom: 25%; }

  /* 数字＋英語名（中央） */
  .bs_wrap .bs_item .bs_head {
    margin: 0 0 11.5%;
    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: 94%;
    margin: 0 auto;
  }

  /* 文章の列 */
  .bs_wrap .bs_item .bs_col {
    width: auto;
    margin: 0;
  }
  .bs_wrap .bs_item .bs_ttl {
    font-size: 25px;
    -webkit-text-stroke: 0.3px #000;   /* 太さ。0.4〜0.8pxで調整（大きいほど太い）。不要なら 0 */
    white-space: normal;
	line-height: 1.3;
    margin: 13.9% 0 0 5%;
  }
  .bs_wrap .bs_item .bs_col .bs_talks {
    width: 90%;
    margin: 10.5% auto 0;
  }
  /* スライダーの次の発言は、上の余白をスライダー側で持つ */
  .bs_wrap .bs_talks .bs_slider + .bs_talk { margin-top: 0; }

  /* PC用の小さい写真2枚は、スマホではスライダーに置き換える */
  .bs_wrap .bs_item .bs_subs { display: none; }


  /* --- 対談の間のスライダー（2枚切り替え） --- */
  .bs_wrap .bs_slider {
    display: block;
    position: relative;
    width: 85%;               /* 対談の幅(90%)に対して。画面全体の約72% */
    margin: 19% auto 23.5%;     /* 上：前の文章との間 / 下：ドットぶんを含めた次の文章との間 */
  }
  .bs_wrap .bs_slider img {
    display: block;
    width: 100%;
    height: auto;
  }
  /* ドット（細い線） */
  .bs_wrap .bs_slider .slick-dots {
    position: absolute;
    bottom: -67px;
    left: -0.7%;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
  }
  .bs_wrap .bs_slider .slick-dots li {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: 0 10px;
    padding: 0;
    cursor: pointer;
  }
  .bs_wrap .bs_slider .slick-dots li button {
    display: block;
    width: 20px;
    height: 20px;
    padding: 5px;
    font-size: 0;
    line-height: 0;
    color: transparent;
    border: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
  }
  .bs_wrap .bs_slider .slick-dots li button:before {
    content: "";
    position: absolute;
    top: -34px;
    left: 0;
    width: 30px;
    height: 1px;
    background: #000;
    opacity: .25;
  }
  .bs_wrap .bs_slider .slick-dots li.slick-active button:before {
    opacity: .75;
  }


  /* --- 商品：画像 → 品番テキスト → 一覧ボタン（中央・縦） --- */
  .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;            /* <p> なので smartpn.css の p{12px} に負けないよう、ここにも指定 */
    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; }     /* 上：1位との間 / 下：ページの終わりまで */
}
