/* コラム記事ページ（設計書5章）用のCSS。 #535
 *
 * 読み込むのは「コラム」カテゴリの投稿の記事ページだけ（functions.php の add_custom_scripts()）。
 * 本文の中の見た目は assets/css/sakeuru-entry.css（.com の本文用CSS。.sakeuru-entry の中だけに効く）が受け持つ。
 * このファイルは、記事ページの外枠（パンくず・タイトル・日付・監修者・アイキャッチ・固定ボタン）と、
 * .com の記事ページで本文に当たっていた基本の字組み（article / .post-content）を .sakeuru-entry に写したもの。
 *
 * body の下の余白（固定ボタンのぶんの 72px）は、固定ボタンを出す記事だけに効かせるため、
 * ここには書かない（functions.php の add_custom_scripts() が wp_add_inline_style で足す）。
 */

/* パンくず（設計書5章の nav.breadcrumb-box）。#536 で footer.php のパンくず
 * （breadcrumb-navxt の bcn_display）を全ページで外したため、サイト共通の .breadcrumb-box
 * （白背景・中央寄せ）ではなく、記事の上に置く形にしている。 */
.sakeuru-breadcrumb {
  background-color: transparent;
  font-size: 13px;
  margin-bottom: 20px;
  padding-bottom: 0;
  padding-top: 0;
  text-align: left;
}
.sakeuru-breadcrumb .breadcrumb a:hover {
  text-decoration: underline;
}
.sakeuru-breadcrumb .current-item {
  font-weight: 700;
}

/* 記事の外枠 */
.sakeuru-article {
  background-color: #fff;
  padding: 40px;
}

.sakeuru-article__title {
  color: #181818;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}

.sakeuru-article__date {
  color: #888;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.sakeuru-article__supervisor {
  color: #181818;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.sakeuru-article__top {
  height: auto;
  margin-bottom: 24px;
  max-width: 100%;
  width: 100%;
}

/* 本文の基本の字組み。.com の記事ページで本文に当たっていた
 * article{color:#515151;letter-spacing:0;line-height:1.8;text-align:justify} と
 * .post .post-content p / h2{margin-bottom:2rem}、.post-content img{padding:2rem 0} を、
 * .net の基準（html 16px）に合わせて px に直したもの。 */
.sakeuru-entry {
  color: #515151;
  letter-spacing: 0;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-ideograph;
}
.sakeuru-entry p {
  margin-bottom: 20px;
}
/* .com は stocklab.min.css の .post .post-content h2{margin-bottom:2rem} が
 * .ttl-theme-04/.ttl-theme-05/.ttl-theme-06 の margin（2rem 0 1.6rem）の下の余白を
 * 上書きし、h2 の下は 20px になる（.com の詳細度は h2 の規則が上）。
 * .net では .ttl-theme-04 等を .sakeuru-entry で限定したぶん詳細度が上がり（0,2,0）、
 * .sakeuru-entry h2（0,1,1）に勝って下が 16px になるため、記事の外枠から限って
 * 詳細度を上げ、.com と同じ結果（h2 の下は 20px）にする。 */
.sakeuru-article .sakeuru-entry h2 {
  margin-bottom: 20px;
}
/* .com は stocklab.min.css の article h4{margin-bottom:1.4rem}（要素2つ＝0,0,2）が、
 * 記事ごとのCSS（ACF の css。h4{margin:0 auto;width:300px}＝0,0,1）の下の余白を
 * 上書きして 14px になる。一方 .ttl-theme-05 などのクラス（0,1,0）が付いた h4 は、
 * その margin（2rem 0 1.6rem）が勝って下は 16px のまま（25733）。
 * .net の記事ごとのCSSは .sakeuru-entry h4（0,1,1）として後ろに出るため、同じ詳細度では
 * 負ける。.com の article h4 と同じ「要素を2つ使う」形（0,1,2）にして、
 * 記事ごとのCSSより上・.ttl-theme-* より下になるようにする（.com と同じ順位）。
 * 左右の auto（記事本文の容器の幅で決まる値）は .com と容器幅が違うため合わせない。 */
article .sakeuru-entry h4 {
  margin-bottom: 14px;
}
.sakeuru-entry a {
  color: #181818;
}
.sakeuru-entry a:hover {
  text-decoration: underline;
}
.sakeuru-entry img {
  height: auto;
  max-width: 100%;
}
.sakeuru-entry table {
  border-collapse: collapse;
}

/* 画面下の固定ボタン（設計書5章。fixed_button が true の記事で出す）。
 * リンク先は .com の無料査定フォーム（設計書5章・No.3）。 */
.sakeuru-fixed-cta {
  background-color: rgba(24, 24, 24, 0.95);
  bottom: 0;
  left: 0;
  padding: 8px 12px;
  position: fixed;
  right: 0;
  z-index: 100;
}
.sakeuru-fixed-cta__button {
  background-color: #dcb301;
  border-radius: 6px;
  color: #fff;
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  padding: 12px 20px;
  text-align: center;
}
.sakeuru-fixed-cta__button:hover {
  opacity: 0.8;
}

@media screen and (max-width: 767px) {
  .sakeuru-article {
    padding: 20px 16px 28px;
  }
  .sakeuru-article__title {
    font-size: 20px;
    margin-bottom: 12px;
  }
  .sakeuru-article__supervisor {
    margin-bottom: 16px;
  }
  .sakeuru-entry p {
    margin-bottom: 16px;
  }
  .sakeuru-fixed-cta__button {
    font-size: 15px;
    padding: 10px 16px;
  }
}

/* #536：記事ページの買取サイトのサイドバー（「お酒買取の流れ」「超お手軽LINE査定」「店舗一覧」）を
 * 出さないことにした（要件1-2・設計書 4-1。サイドバーは 301 する買取下層ページと LINE 査定への
 * リンクを持ち、.net に残さないもののため）。1カラムで中央に置く。
 * .main-wrapper は style.css で margin-left: 3.75rem・max-width: 873px のため、上書きする。 */
.sakeuru-single .main-wrapper {
  margin-left: auto;
  margin-right: auto;
}

