/* =====================
   タイムライン全体のコンテナ
===================== */
/* =====================
   メインビジュアル
===================== */
#main-visual {
    display: flex;
    column-gap: 40px;
    margin-bottom: 64px;
    position: relative;
}
#custom_about_image {
      width: 75%;
    max-width: 1080px;
    margin: 4rem 0 0 auto;
}
#custom_about_image .pc-image img {
    width: 100%;
    margin: 0 0 0 auto;
    position: static;
    display: block;
}
/* =====================
   h2要素
===================== */
.column-block-editor h2 {
    text-shadow: 0px 0px 15px rgba(61, 56, 38, 0.45);
    font-family: var(--font-shippori);
    font-size: 2.5rem!important;
    line-height: var(--line-height-base);
    color: var(--color-text);
    font-weight: 700;
    padding: 0;
    background-color: transparent;
    padding-left: 5rem;
    margin-top: 24rem!important;
    margin-bottom: 0;
}
#milestones-container-kyobunkwan .column-block-editor h2,
#milestones-container-publishing .column-block-editor h2 {
    text-shadow: none;
    font-family: var(--font-shippori);
    font-size:1.875rem!important;
    line-height: var(--line-height-base);
    color: var(--color-text);
    font-weight: 700;
    padding: 0;
    background-color: transparent;
    padding-left: 5rem;
    margin-top: 12.5rem!important;
    margin-bottom: 5rem;
}
/* =====================
   各タイムライン要素
===================== */
.custom_about_milestones {
    display: grid;
    grid-template-columns: 145px 1fr;
    column-gap: 103px;
    margin-bottom: 64px;
    position: relative;
    width: 100%;
    max-width: 1088px;
    margin: 0 auto 3rem;
}

.custom_about_milestones:last-child {
  margin-bottom: 0;
}

/* 年代（左側） */
.custom_about_milestones .era {
  font-family: var(--font-notosan);
  text-align: left;
  position: relative;
  z-index: 1;
}

.custom_about_milestones .era p {
    font-family: var(--font-notosan);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-green-base);
    line-height: 1.4;
    margin: 0;
}

.custom_about_milestones .era span {
  font-size:1rem;
  font-weight: 400;
  color: var(--color-green-base);
  display: block;
  margin-top: 0.25rem;
}
.custom_about_milestones .era span.bold {
    font-size: 1.5rem;
    font-weight: 500;
}
.custom_about_milestones .era span.margin {
    margin: 0.25rem 0 0.5rem;
}
/* ドットの下に縦線を追加 */
.custom_about_milestones .era::before {
  content: "";
  position: absolute;
  right: calc(-3rem + 4px);
  top: calc(1rem + 4px);
  width: 1px;
  height: calc(100% + 3rem);
  background-color: var(--color-border-line);
  z-index: 1;
}

/* 最後の要素は線を引かない */
.custom_about_milestones:last-child .era::before {
  display: none;
}
/* 緑のドット（::after で描画） */
.custom_about_milestones .era::after {
    content: "";
    position: absolute;
    right: -3rem;
    top: 0.7rem;
    width: 9px;
    height: 9px;
    background-color: var(--color-green-base);
    border-radius: 50%;
    z-index: 2;
}

/* 説明文（右側） */
.custom_about_milestones .caption {
  position: relative;
  z-index: 1;
}

.custom_about_milestones .caption p {
  font-family: var(--font-notosan);
  font-size: 1rem;
  font-weight: 400;
  color: #3D3826;
  line-height: 1.8;
  margin: 0;
}
#index p{
  width: 100%;
  max-width: 1088px;
  margin: 0 auto 3rem;
  font-size: 13px;
}
#milestones-container-kyobunkwan {
  width: 85%;
  margin: 0 auto;
}
/* =====================
   SP対応（〜767px）
===================== */
@media (max-width: 767px) {
  .custom_about_milestones {
    grid-template-columns: 91px 1fr;
    column-gap: 4rem;
    margin-bottom: 48px;
  }
    #main-visual {
    display: block;
    width: 100%;
  }
    #custom_about_image {
        width: 100%;
        max-width: 1080px;
        margin: 2rem 0 0 auto;
        justify-self: end;
    }
  #custom_about_image .sp-image img {
      width: 100%;
      min-width: 353px;
      margin: 0 0 0 auto;
      padding: 0 0 0 1rem;
      position: static;
      display: block;
      box-sizing: border-box;
  }
  #milestones-container-kyobunkwan,  
  #milestones-container-publishing {
    width: 90%;
    margin: 0 auto;
  }
  #milestones-container-kyobunkwan .column-block-editor h2, 
  #milestones-container-publishing .column-block-editor h2 {
      font-size: 1.5rem!important;
      color: var(--color-text);
      font-weight: 700;
      padding: 0;
      padding-left: 0;
      margin-top: 4.5rem!important;
      margin-bottom: 3rem;
  }

  .custom_about_milestones .era p {
    font-size: 1.25rem;
    letter-spacing: 0;
    font-weight: 500;
  }
  
  .custom_about_milestones .era span {
    font-size: 0.875rem;
    margin-top: 0.5rem;
  }
  .custom_about_milestones .era span.bold {
    font-size: 20px;
  }
  .column-block-editor h2 {
      font-size: 1.75rem!important;
      padding-left: 1rem;
      margin-top: 4.5rem!important;
  }
  /* ドットの位置調整 */
  .custom_about_milestones .era::after {
    right: -2rem;
    top: 0.6rem;
  }
  
  .custom_about_milestones .caption p {
    font-size: 0.875rem;
    line-height: 1.7;
  }
  .custom_about_milestones .era::before {
    content: "";
    position: absolute;
    right: calc(-2rem + 4px);
    top: calc(0rem + 1rem);
    width: 1px;
    height: calc(100% + 3rem);
    background-color: var(--color-border-line);
    z-index: 1;
  }
  #index p{
    font-size: 11px;
  }
}

/* =====================
   タブレット対応（768px〜1099px）
===================== */
@media (min-width: 768px) and (max-width: 1099px) {
  #custom_about_image .sp-image img {
      width: 90%;
      min-width: 353px;
  }
  .custom_about_milestones {
    grid-template-columns: 100px 1fr;
    column-gap: 30px;
  }
  
  .custom_about_milestones .era::after {
    right: -16px;
  }
  .custom_about_milestones .era::before {
      right: calc(-1rem + 4px);
  }
  .custom_about_milestones,
  #index {
    width: 90%;
  }
  #milestones-container-kyobunkwan {
    width: 85%;
    margin: 0 auto;
  }
}