/* =====================================
   kabuyomu CSS
===================================== */
/* =========================
   Base / Reset
========================= */
.kabu-section figure {
  margin: 0;
}
.kabu-space {
  margin-top: 20px;
}
.kabu-divider {
  border-top: 1px solid #ddd;
  margin: 40px 0;
}
/* =========================
   Layout
========================= */
.kabu-section {
  margin-bottom: 64px;
}
.kabu-section > *:first-child {
  margin-top: 0;
}
.kabu-section > *:last-child {
  margin-bottom: 0;
}
/* 既存CSS対策 */
.kabu-section p + p {
  margin-top: 0;
}
.kabu-pc {
  display: block;
}
.kabu-sp {
  display: none;
}
/* =========================
   Anchor
========================= */
.kabu-anchor {
  position: relative;
}
.kabu-anchor::before {
  content: "";
  display: block;
  height: 150px;
  margin-top: -150px;
  pointer-events: none;
}
/* =========================
   TOC
========================= */
.kabu-toc {
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}
.kabu-toc--type1,
.kabu-toc--type2 {
  border: 1px solid #c6e0eb;
  background: #eef8fc;
  border-radius: 8px;
  padding: 25px;
}
.kabu-toc__heading {
  font-weight: 700;
  font-size: 18px;
}
.kabu-toc__list,
.kabu-toc__sublist {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.kabu-toc--type1 .kabu-toc__item + .kabu-toc__item {
  margin-top: 8px;
}
.kabu-toc--type2 .kabu-toc__item + .kabu-toc__item {
  margin-top: 16px;
}
.kabu-toc--type2 .kabu-toc__sublist {
  margin-top: 4px;
  margin-left: 1.2em;
}

.kabu-toc--type2 .kabu-toc__subitem + .kabu-toc__subitem {
  margin-top: 2px;
}
.kabu-toc__link {
  color: #004d99;
  text-decoration: underline;
  transition: opacity 0.2s ease-out;
}
.kabu-toc__link:hover {
  opacity: 0.6;
}
.kabu-toc--type2 > .kabu-toc__list > .kabu-toc__item > .kabu-toc__link {
  font-weight: 700;
  display: inline-block;
  margin-bottom: 6px;
}
.kabu-toc__sublist .kabu-toc__link {
  font-weight: 400;
}
/* =========================
   Author
========================= */
/* #author {
  margin-top: -60px;
  padding-top: 150px;
} */
#author {
  position: relative;
}
#author::before {
  content: "";
  display: block;
  height: 150px;
  margin-top: -150px;
  pointer-events: none;
}

.kabu-author {
  margin-bottom: 80px;
}
.kabu-author__link {
  font-size: 12px;
  color: #4c4c4c;
  text-decoration: underline;
  transition: opacity 0.2s ease-out;
}
.kabu-author__link:hover {
  opacity: 0.6;
}
/* =========================
   List
========================= */
.kabu-list {
  margin: 0 0 24px;
  padding-left: 0;
  position: relative;
  z-index: 1;
}
.kabu-list li {
  position: relative;
  margin-bottom: 8px;
}
.kabu-list li:last-child {
  margin-bottom: 0;
}
.kabu-list--dotted li {
  padding-left: 16px;
}
.kabu-list--dotted li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}
.kabu-list--ordered li {
  padding-left: 20px;
}
.kabu-list--ordered li::before {
  position: absolute;
  top: 0;
  left: 0;
}
.kabu-list--ordered li:nth-child(1)::before { content: "①"; }
.kabu-list--ordered li:nth-child(2)::before { content: "②"; }
.kabu-list--ordered li:nth-child(3)::before { content: "③"; }
.kabu-list--ordered li:nth-child(4)::before { content: "④"; }
.kabu-list--ordered li:nth-child(5)::before { content: "⑤"; }
.kabu-list--check li {
  padding-left: 20px;
}
.kabu-list--check li::before {
  content: "✔";
  position: absolute;
  top: 0;
  left: 0;
}
.kabu-list--kome li {
  position: relative;
  padding-left: 20px;
}
.kabu-list--kome li::before {
  content: "※";
  position: absolute;
  left: 0;
  top: 0;
}
.kabu-list--ordered-kome li {
  position: relative;
  padding-left: 28px;
  counter-increment: kabu-kome;
}
.kabu-list--ordered-kome {
  counter-reset: kabu-kome;
}
.kabu-list--ordered-kome li::before {
  content: "※" counter(kabu-kome);
  position: absolute;
  left: 0;
  top: 0;
}
/* =========================
   Youtube（埋め込み）
========================= */
.kabu-video {
  max-width: 100%;
}
.kabu-video__thumb {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.kabu-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kabu-video__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}
.kabu-video__thumb:has(iframe)::after {
  display: none;
}
.kabu-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  background: #ff0000;
  border: none;
  border-radius: 12px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.kabu-video__play:hover {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.1);
}
.kabu-video__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.kabu-video__thumb iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}
/* =========================
   Box
========================= */
.kabu-box {
  margin: 24px 0;
}
.kabu-box--gray {
  border: 1px solid #ccc;
  background: #fafafa;
  padding: 20px;
}
.kabu-box > *:last-child {
  margin-bottom: 0;
}
.kabu-box .kabu-list {
  margin: 0;
}
/* =========================
   Heading
========================= */
.kabu-heading {
  font-weight: 700;
  line-height: 1.4;
}
.kabu-heading--lv2 {
  font-size: 22px;
  margin: 32px 0 16px;
}
.kabu-heading--lv3 {
  font-size: 18px;
  margin: 28px 0 12px;
}
.kabu-heading--lv4 {
  font-size: 16px;
  margin: 24px 0 12px;
}
/* =========================
   Text
========================= */
.kabu-text {
  font-size: 16px;
  line-height: 1.8;
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}
.kabu-text--xl {
  font-size: 20px;
}
.kabu-text--l {
  font-size: 18px;
}
.kabu-text--m {
  font-size: 16px;
}
.kabu-text--s {
  font-size: 14px;
}
.kabu-text--xs {
  font-size: 12px;
}
.kabu-mb-0 { margin-bottom: 0px; }
.kabu-mb-s { margin-bottom: 10px; }
.kabu-mb-m { margin-bottom: 20px; }
.kabu-mb-l { margin-bottom: 40px; }
.kabu-text--red {
  color: #ff0000;
}
.kabu-text--left {
  text-align: left;
}
.kabu-text--center {
  text-align: center;
}
.kabu-text--right {
  text-align: right;
}
.kabu-text--small {
  font-size: 12px;
  color: #666;
}
.kabu-text--link {
  color: #e60000;
  text-decoration: underline;
}
/* =========================
   Figure Block
========================= */
.kabu-figure-block {
  margin-top: 48px;
}
.kabu-figure-block > *:last-child {
  margin-bottom: 0;
}
.kabu-figure-block .kabu-figure + .kabu-figure {
  margin-top: 48px;
}
.kabu-figure {
  text-align: center;
}
.kabu-figure + .kabu-figure {
  margin-top: 24px;
}
.kabu-text + .kabu-figure {
  margin-top: 24px;
}
.kabu-figure__title {
  font-size: 18px;
  margin-bottom: 8px;
}
.kabu-figure + .kabu-text {
  margin-top: 24px;
}
.kabu-figure__image {
  max-width: 100%;
  height: auto;
}
.kabu-figure__caption {
  font-size: 14px;
  line-height: 1.5;
  color: #666;
  margin-top: 8px;
  text-align: left;
}
/* =========================
   Link
========================= */
.kabu-link {
  padding-right: 12px;
  color: #d70d18;
  text-decoration: underline;
  position: relative;
  background-repeat: no-repeat;
  background-position: right center;
  position: relative;
  z-index: 1;
}
@media print, only screen and (min-width: 1025px) {
  .kabu-link {
    transition: opacity 0.2s ease-out;
    backface-visibility: hidden;
  }
  .kabu-link:hover {
    opacity: 0.6;
  }
}
.kabu-link[target="_blank"] {
  padding-right: 25px;
  margin-right: 4px;
  background-image: url(/kabuyomu/img/common/icon_window.png);
  background-size: 17px auto;
}
.kabu-link--pdf {
  padding-right: 23px;
  background-image: url(/kabuyomu/img/common/icon_pdf.png);
  background-size: 15px auto;
}
/* =========================
   Table
========================= */
.kabu-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.kabu-table th {
  background: #fafafa;
  padding: 16px;
  text-align: center;
  border: 1px solid #ccc;
  font-weight: 700;
  vertical-align: top;
}
.kabu-table td {
  padding: 16px;
  border: 1px solid #ccc;
}
.kabu-table td,
.kabu-table th {
  vertical-align: middle;
}
/* =========================
   会社情報
========================= */
.kabu-company {
  border: 2px solid #e60012;
  border-radius: 16px;
  padding: 40px 48px;
  background: #fff;
}
.kabu-company__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: left;
}
.kabu-company__logo img {
  max-width: 160px;
}
.kabu-company__info {
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
}
.kabu-company__item {
  margin: 0 0 8px !important;
}
.kabu-company__item:last-child {
  margin-bottom: 0;
}
/* =========================
   Stock
========================= */
.kabu-stock {
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
.kabu-stock__title {
  font-weight: 700;
  margin-bottom: 12px;
}
.kabu-stock__body {
  margin-bottom: 16px;
}
.kabu-stock .kabu-figure-block {
  margin-top: 24px;
}
/* =========================
   Existing (grid)
========================= */
.c-grid.col03 {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.c-grid.col03 > .c-grid__item {
  width: calc((100% - 30px) / 3);
}
/* =========================
   Responsive
========================= */
@media (max-width: 768px) {
  .p-article__body,
  .p-article__title,
  .p-article__date {
    padding: 0 15px;
  }
  .kabu-section {
    margin-bottom: 40px;
  }
  .kabu-toc {
    margin-bottom: 40px;
  }
  .kabu-author {
    margin-bottom: 48px;
  }
  .kabu-toc__link {
    line-height: 1.7;
  }
  .kabu-toc--type1,
  .kabu-toc--type2 {
    padding: 20px;
  }
  .kabu-toc__heading {
    font-size: 16px;
  }
  .kabu-toc__list, .kabu-toc__sublist {
    margin: 10px 0 0;
  }
  .kabu-toc--type1 .kabu-toc__item + .kabu-toc__item {
    margin-top: 10px;
  }
  .kabu-toc__sublist {
    margin-top: 8px;
    margin-left: 1.6em;
    padding-left: 4px;
  }
  .kabu-toc--type2 .kabu-toc__sublist {
    margin-top: 8px;
    margin-left: 0.5em;
  }
  .kabu-toc--type2 .kabu-toc__item + .kabu-toc__item {
    margin-top: 14px;
  }
  .kabu-toc--type2 .kabu-toc__subitem + .kabu-toc__subitem {
    margin-top: 8px;
  }
  .kabu-list {
    margin: 0 0 12px;
  }
  .kabu-list li {
    margin-bottom: 4px;
  }
  .kabu-box--gray {
    padding: 14px;
  }
  .kabu-figure-block {
    margin-top: 24px;
  }
  .kabu-text {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
  }
  .kabu-heading--lv2 {
    font-size: 18px;
  }
  .kabu-heading--lv3 {
    font-size: 16px;
  }
  .kabu-heading--lv4 {
    font-size: 14px;
  }
  .kabu-text--xl {
    font-size: 18px;
  }
  .kabu-text--l {
    font-size: 16px;
  }
  .kabu-text--m {
    font-size: 14px;
  }
  .kabu-text--s {
    font-size: 12px;
  }
  .kabu-text--xs {
    font-size: 11px;
  }
  .kabu-figure__title {
    font-size: 16px;
  }
  .kabu-figure__caption {
    font-size: 12px;
  }
  .kabu-link {
    padding-right: 11px;
    background-size: 7px auto;
  }
  .kabu-link[target="_blank"] {
    padding-right: 16px;
    background-size: 12px auto;
    margin-right: 2px; 
  }
  .kabu-link--pdf {
    padding-right: 16px;
    background-size: 11px auto;
  }
  .kabu-table th,
  .kabu-table td {
    padding: 6px;
    font-size: 13px;
  }
  .kabu-company {
    padding: 24px;
  }
  .kabu-company__inner {
    flex-direction: column;
    gap: 16px;
  }
  .kabu-pc {
  display: none;
  }
  .kabu-sp {
  display: block;
  }
  .c-heading.c-heading--s {
    font-size: 16px;
  }
  .c-grid.col03 > .c-grid__item {
    width: 100%;
    margin: 0;
  }
}