/*
  CSSの`@import`は、複数ファイルの読み込みが遅いなどの理由で非推奨になっている
  ここでは1つのファイルだけを読み込む目的で使用することにする

  複数ファイルを読み込む場合は、

  - Sassの`@use`を使う
  - Frontmaterで複数のCSSファイルを指定できるようにする

  などの代替案を検討すること
*/
@import url("/assets/css/markdown.css");

@media screen and (min-width: 960px) {
  main.issuances {
    --max-article-width: 100%;
  }
}

.markdown {
  line-height: 1.7;
  color: inherit;
}

.markdown h1 {
  margin: 0 auto;
  font-size: 1.3em;
}

.markdown h2 {
  width: 100%;
  text-align: left;
  font-size: 1.15em;
}

.markdown h3 {
  width: 100%;
  margin-bottom: -1em;
  font-size: 1em;
}

.markdown img {
  max-height: 20em;
  object-fit: contain;
}
@media screen and (min-width: 520px) {
  .markdown img {
    max-width: 450px;
  }
}

/* -----------------------------------------------------------------
発行実績一覧
----------------------------------------------------------------- */

.issuance-items {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  row-gap: 15px;
  column-gap: 15px;
}

.issuance-item > a {
  height: 100%;
  padding: 10px;
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: center;
  column-gap: 10px;
  text-decoration: none;
  border-radius: 10px;
  border: 1.5px solid #eee;
}
.issuance-item > a:hover {
  border: 1.5px solid oklch(65% 0.15 245);
}

.issuance-item .company-name {
  font-size: 14px;
  font-weight: bold;
}

.issuance-item .industry-type {
  font-size: 10px;
  color: #999;
}

.issuance-item figure {
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  transition: box-shadow 0.2s;
}

.issuance-item img {
  max-width: 100%;
  max-height: 40px;
  pointer-events: none;
}

/* -----------------------------------------------------------------
発行実績個別ページ
----------------------------------------------------------------- */

.issuance > section {
  all: unset;
}
.issuance > .issuance-header,
.issuance > section,
.issuance > .footnotes {
  width: 100%;
  max-width: 40em;
  margin: 0 auto;
}

.issuance > section {
  display: flex;
  flex-direction: column;
  row-gap: 1em;
  font-size: 14px;
  word-wrap: break-word;
}
@media screen and (min-width: 520px) {
  .issuance > section {
    font-size: 16px;
  }
}

.issuance > .issuance-header {
  display: grid;
  grid-template-rows: 150px auto;
  place-items: center;
  border-radius: 10px;
  border: 1.5px solid #ddd;
}
@media screen and (min-width: 520px) {
  .issuance > .issuance-header {
    grid-template-rows: 200px auto;
  }
}

.issuance-header h2 {
  grid-row: 2;
  width: 100%;
  padding: 0.5em;
  font-size: 18px;
  border-top: 1.5px solid #ddd;
}

.issuance-header figure {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 20px;
}

.issuance-header img {
  max-width: 75%;
  max-height: 100%;
  pointer-events: none;
}
@media screen and (min-width: 520px) {
  .issuance-header img {
    max-width: 50%;
  }
}

.issuance_summary {
  display: block;
}

.issuance_summary > tbody {
  display: grid;
}
@media screen and (min-width: 520px) {
  .issuance_summary > tbody {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    column-gap: 1em;
  }
}

.issuance_summary tr {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-auto-rows: 55px;
  column-gap: 0.5em;
  border-bottom: 1px solid #ddd;
}

.issuance_summary th,
.issuance_summary td {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 14px;
  font-weight: normal;
}

.issuance_summary th {
  text-align: left;
  color: #666;
}

.issuance_summary th span {
  display: block;
  font-size: 12px;
  font-weight: normal;
  color: #999;
}

.issuance_summary td {
  text-align: right;
}

.issuance_summary td span {
  display: block;
  font-size: 12px;
  color: #999;
}

.issuance_summary span > a {
  font-weight: 700;
}

.issuance-summary-note {
  width: fit-content;
  margin-top: 10px;
  display: block;
  font-size: 12px;
}

.issuance section > h3 {
  padding-block: 0.2em;
  padding-left: 0.5em;
  border-radius: 2px 5px 5px 2px;
  font-size: 1.2em;
  letter-spacing: 0.5px;
  background-color: hsl(204, 100%, 95%);
  border-left: 0.3em solid var(--blue-2024);
}

.footnotes {
  margin-bottom: 20px;
  padding: 15px;
  font-size: 14px;
  background-color: #eee;
  border-radius: 5px;
}
@media screen and (min-width: 520px) {
  .footnotes {
    font-size: 16px;
  }
}
