:root {
  --default-light-color: hsl(0, 0%, 58%);
  --default-border: hsla(0, 0%, 0%, 10%);

  --ghost-white: rgba(249, 250, 251, 1);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  /*
    Figmaでの表示とブラウザでのレンダリングを比較したときに、見出し文字の太さがちょっと滲んでしまう。
    以前から両者の差を埋めておきたいと考えていましたが、今回初めて導入してみます
    良さそうであれば、全ページに展開する
    https://ics.media/entry/230830/
  */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(:not(.markdown) > section) {
  row-gap: 55px;
}
@media screen and (min-width: 960px) {
  :where(:not(.markdown) > section) {
    row-gap: 95px;
  }
}

.note {
  color: var(--default-light-color);
}

/* ----------------------------------------
CONVERSION SECTION
---------------------------------------- */

.conversion-section {
  --blue-2024: hsl(203, 100%, 54%);
}

/* ----------------------------------------
PAGE HEADER
---------------------------------------- */

.navigation-and-cover {
  /*
    .cover セクションと同じ位置にパンくずリストをオーバーレイ表示させたい。
    そのために .navigation-and-cover でラップし、1行1列のCSS Gridを作成。
    両方を同じ座標に配置することで実現させている。

    absolute配置などと比較して、重ね合わせる両方の要素を画面幅に応じて伸縮させるような実装が簡単に実現できる
  */
  display: grid;
  grid-template-columns: 100%; /* パンくずリストのellipsisを有効するために、1frではなく100%を使っている */
}

.page-header {
  grid-row: 1;
  grid-column: 1;

  color: var(--semi-black);
  background: var(--white);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 20px;
}
@media screen and (min-width: 520px) {
  .page-header {
    --max-article-width: 1000px;

    row-gap: 2em;
    padding-top: 30px;
    padding-inline: max(40px, calc((100vw - var(--max-article-width)) / 2));
  }
}

.page-header > .breadcrumbs {
  width: 100%;
}

/* ----------------------------------------
COVER
---------------------------------------- */

.cover {
  grid-row: 1;
  grid-column: 1;

  padding-block: 72px;
  row-gap: 5em;
}
@media screen and (min-width: 520px) {
  .cover {
    padding-top: 107px;
  }
}

.cover > h1 {
  width: 155px;
  height: 186px;
  background-image: url("/assets/images/repackage_bond/logo.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
@media screen and (min-width: 520px) {
  .cover > h1 {
    width: 100%;
    height: 277px;
  }
}

.cover > h1 > span {
  display: none;
}

.cover-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 37px;
}

.catchphrase_and_introduction {
  display: flex;
  flex-direction: column;
  row-gap: 30px;
}

.catchphrase {
  line-height: 1.5;
  font-size: 26px;
  font-weight: bold;
  text-align: center;
}

.introduction {
  text-align: center;
  line-height: 1.7;
  font-size: 16px;
}

.cover .concept_image {
  width: 260.5px;
  height: 322px;
  background-image: url("/assets/images/repackage_bond/concept_mobile.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
@media screen and (min-width: 520px) {
  .cover .concept_image {
    width: min(100%, 620px);
    height: 128px;
    background-image: url("/assets/images/repackage_bond/concept_pc.png");
  }
}

.cover .note {
  padding: 0;
  text-align: center;
  line-height: 1.7;
  border: none;
}

/* ----------------------------------------
おまとめ債の特徴
---------------------------------------- */

.features {
  padding-block: 75px;
}
@media screen and (min-width: 960px) {
  .features {
    padding-top: 105px;
    padding-bottom: 195px;
  }
}

.features h2 {
  display: flex;
  column-gap: 0.4em;
  color: hsl(203, 100%, 54%);
}

.features h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 40px;
  background-image: url("/assets/images/repackage_bond/icon.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.features ul {
  counter-reset: count 0;

  display: grid;
  grid-template-columns: minmax(auto, 400px);
  row-gap: 3.5em;
}
@media screen and (min-width: 960px) {
  .features ul {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8em;
    row-gap: 5.5em;
  }
}

.feature_item {
  counter-increment: count 1;

  display: grid;
  grid-template-rows: subgrid;
  justify-items: center;
  grid-row: span 3;
  row-gap: 0;
  /*
    平松さんデザインによると、画像の上下で異なるgapサイズになることが想定されている。
    これを実現するため、gap ではなく.image_wrapper側のpaddingを使って実装する。
    したがって、ここの row-gap は0を指定。
  */
}

.feature_item header {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  row-gap: 1.2em;
}

.feature_item header::before {
  content: "特徴" counter(count, decimal);
  display: block;
  padding: 2px 20px;
  border-radius: 100px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.05em;
  background-color: hsl(203, 100%, 54%);
  color: white;
}

.feature_item h3 {
  align-content: center;
  text-align: center;
  line-height: 1.35;
  font-size: 22px;
  color: hsl(203, 100%, 54%);
}

.feature_item .image_wrapper {
  width: 100%;
  padding-block: 20px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
@media screen and (min-width: 520px) {
  .feature_item .image_wrapper {
    padding-top: 23px;
    padding-bottom: 35px;
  }
}

.feature_item img {
  width: 190px;
  align-self: center;
}
@media screen and (min-width: 520px) {
  .feature_item img {
    width: auto;
  }

  .maxHeight_138 {
    max-height: 138px;
  }
  .maxHeight_142 {
    max-height: 142px;
  }
  .maxHeight_148 {
    max-height: 148px;
  }
  .maxHeight_158 {
    max-height: 158px;
  }
}

.feature_item .description_and_note {
  display: flex;
  flex-direction: column;
  row-gap: 0.5em;
}
@media screen and (min-width: 960px) {
  .feature_item .description_and_note {
    align-items: center;
  }
}

.feature_item .description {
  max-width: 19em;
  font-size: 15px;
  line-height: 1.73;
}
@media screen and (min-width: 960px) {
  .feature_item .description {
    max-width: 25em;
    text-align: center;
  }
}

/* -----------------------------------------------------------------
RISKS
----------------------------------------------------------------- */

.risks {
  padding-block: 75px;
}
@media screen and (min-width: 960px) {
  .risks {
    padding-block: 105px;
  }
}

.risks {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--default-border);
  background-color: var(--ghost-white);
}

.risks h2 {
  font-size: 18px;
  font-weight: 700;
  color: hsl(203, 100%, 54%);
}
@media screen and (min-width: 520px) {
  .risks h2 {
    font-size: 1.6em;
  }
}

.risks .description {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  text-align: left;
  line-height: 1.6;
  font-size: 15px;
}

.risks .description ul {
  padding-inline-start: 1.5em;
}

.risks .description li {
  list-style-type: disc;
}
.risks .description li:nth-child(n + 2) {
  margin-top: 1.25em;
}
