@charset "utf-8";

:root {
  --yh-navy: #112240;
  --yh-yellow: #F8E133;
  --yh-soft-yellow: #EABF4B;
  --yh-profile-bg: #F1E2B0;
  --yh-books-bg: #e8daaa;
  --yh-black: #000000;
}

/* -------------------------------------------------------------
   Base & Common
------------------------------------------------------------- */
#company_chronology {
  background-color: #0c1c34 !important;
  /* 背景全体をネイビーに */
  color: #ffffff;
  font-family: 'Noto Sans JP', sans-serif;
  /*letter-spacing: 0.03em;*/
}

#company_chronology main {
  background-color: #0c1c34 !important;
  /* メインもネイビー死守 */
  overflow: hidden;
  padding-bottom: 0 !important;
}

/* 上部背景の黄色侵食を完全にブロックするラッパー */
.p-upper_bg {
  background-color: #0c1c34 !important;
  position: relative;
  width: 100%;
}

.l-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* -------------------------------------------------------------
   Bread Crumbs (Figma Capsule Design)
------------------------------------------------------------- */
.p-bread_crumbs_custom {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  pointer-events: none;
  /* 下の要素のクリックを妨げない */
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  z-index: 10;
}

.p-bread_crumbs_custom .l-inner {
  display: flex;
  justify-content: flex-end;
  /* 右寄せ */
}

.p-bread_crumbs_custom .bread_wrap {
  pointer-events: auto;
  /* ボタン部分はクリック可能に */
  display: inline-flex !important;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 50px !important;
  padding: 8px 24px !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.p-bread_crumbs_custom .bread_wrap a {
  color: #ffffff !important;
  text-decoration: none !important;
  transition: opacity 0.3s ease;
}

.p-bread_crumbs_custom .bread_wrap a:hover {
  opacity: 0.7;
}

.p-bread_crumbs_custom .bread_wrap span {
  margin: 0 8px !important;
  color: #ffffff !important;
  opacity: 0.5;
}

.p-bread_crumbs_custom .bread_wrap em.current {
  font-style: normal !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

/* SP時のパンくずリセット */
@media (max-width: 768px) {
  .p-bread_crumbs_custom {
    position: static;
    pointer-events: auto;
    top: auto;
  }

  .p-bread_crumbs_custom .l-inner {
    justify-content: flex-start;
  }

  .p-bread_crumbs_custom .bread_wrap {
    border: none !important;
    padding: 16px 0 !important;
  }
}

/* -------------------------------------------------------------
   Page Header
------------------------------------------------------------- */
.p-page_header {
  padding: 80px 0 40px;
  /* パンくずと重ならないよう余白調整 */
}

.p-page_title {
  color: #f2c044 !important;
  /* タイトルを確実に黄色に */
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

.p-chronology_top_section {
  background-color: var(--yh-navy);
  padding: 60px 24px 0;
}

.p-chronology_inner {
  margin: 0 auto;
  max-width: 1200px;
}

.p-chronology_title {
  color: var(--yh-yellow);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.p-chronology_nav {
  padding: 64px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}


.p-chronology_nav_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  color: var(--yh-navy);
  transition: background-color 0.3s ease;
}

.p-chronology_nav_item.bg-white {
  background-color: #fff;
}

.p-chronology_nav_item.bg-white:hover {
  background-color: var(--yh-yellow)
}

.p-chronology_nav_item.bg-yellow {
  background-color: var(--yh-yellow);
}

.p-chronology_nav_arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 10px;
  transition: transform 0.3s ease;
  position: relative;
  transition: background-color 0.3s ease;
}

.p-chronology_nav_arrow::after {
  content: "";
  left: 3px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #000000;
  border-right: 2px solid #000000;
  position: absolute;
  top: 50%;
  left: 45%;
  transform: translate(-50%, -50%) rotate(45deg);
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  transition: border-color 0.5s ease;
}

.p-chronology_nav_item.is-current .p-chronology_nav_arrow {
  display: none;
}

.p-chronology_nav_arrow.bg-yellow {
  background-color: var(--yh-yellow);
}

.p-chronology_nav_arrow.bg-white {
  background-color: #fff;
}

.p-chronology_nav_item:hover .p-chronology_nav_arrow.bg-yellow {
  background-color: var(--yh-navy);
}

.p-chronology_nav_item:hover .p-chronology_nav_arrow::after {
  border-top-color: var(--yh-yellow);
  border-right-color: var(--yh-yellow);
}

@media (max-width: 768px) {
  .p-chronology_title {
    font-size: 30px;
  }

  .p-chronology_nav {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
    column-gap: 21px;
    padding: 40px 0;
  }

  .p-chronology_nav_item {
    padding: 12px;
    font-size: 14px;
    line-height: 1.8;
    ;
  }

  .p-chronology_nav_item:last-child {
    grid-column: span 2;
    width: 50%;
    margin: 0 auto;
  }

  .p-chronology_top_section {
    padding: 32px 20px 0;
  }

}

/* -------------------------------------------------------------
   Chronology Table (Note-like legibility)
------------------------------------------------------------- */
.p-chronology_list {
  background-color: var(--yh-soft-yellow);
  color: #111111;
  padding: 84px 0 110px;
}

.list_wrap {
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  color: var(--yh-black);
}

.item {
  display: flex;
  padding: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.item .year {
  width: 220px;
  font-size: 16px;
  font-weight: 500;
  padding-top: 2px;
}

.item .content {
  flex: 1;
}

.item .txt_main {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.item .txt_main a {
  text-decoration: underline;
}

.item .txt_main span {
  display: block;
}

.item .txt_main:has(span) {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item .txt_sub {
  font-size: 14px;
  margin-top: 8px;
  opacity: 0.75;
  font-weight: 500;
  line-height: 1.6;
}

.label_future {
  display: inline-block;
  background: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .p-chronology_list {
    padding: 56px 0;
  }

  .item {
    flex-direction: column;
    padding: 24px 0;
  }

  .item .year {
    width: 100%;
    margin-bottom: 16px;
    font-size: 16px;
  }

  .item .txt_main {
    padding: 0 40px 0 16px;
  }
}