@charset "UTF-8";

/* ====================================
	共通スタイル
==================================== */
/* セクション */
.section {
  padding-bottom: 10rem;
  overflow: hidden;
}

/* 年代別タブ */
[role="tabpanel"][hidden] {
  display: none;
}

.timeline-contents {
  padding-bottom: 4rem;
}

.timeline-contents__title {
  background: var(--charcoal-gray);
  color: #fff;
  text-align: center;
  padding: 0.6rem;
  font-size: 1.8rem;
  margin-bottom: 3rem;
  font-weight: 300;
}

.timeline-contents__list {
  border-top: 1px solid var(--light-gray);
  padding-block: 2rem;
}

.timeline-contents__list:last-child {
  border-bottom: 1px solid var(--light-gray);
}

.timeline-contents__year {
  font-weight: 400;
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
}

.timeline-contents__ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.timeline-contents__li {
  position: relative;
  padding-left: 1.2em;
  line-height: 1.6;
}

.timeline-contents__li::before {
  content: "";
  position: absolute;
  left: 0.6em;
  top: 0.8em;
  inline-size: 0.4rem;
  height: 0.4rem;
  transform: translateX(-50%) translateY(-50%);
  background-color: #000;
  border-radius: 100%;
}

/* 漢字画像調整 */
.name-img {
  inline-size: auto;
  margin: 0 1px 2px 1px;
}

/* ====================================
	ホバー、マウスポインタが有効なデバイス
==================================== */
@media (hover:hover) and (pointer: fine) {}

/* ====================================
	480px以上専用スタイル
==================================== */
@media screen and (width >=480px) {}

/* ====================================
	768px未満専用スタイル
==================================== */
@media screen and (width <768px) {

  /* 年代ナビ */
  .timeline-nav-top {
    margin-bottom: 4rem;
  }

  .timeline-nav-wrap {
    inline-size: 100vw;
    margin-inline: calc(50% - 50vw);
    padding: 1rem 0 1rem 1rem;
    border-top: solid 2px var(--light-gray);
    border-bottom: solid 2px var(--light-gray);
    overflow-x: auto;
  }

  .timeline-nav {
    display: flex;
    gap: 1rem;
    inline-size: fit-content;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-right: 1rem;
  }

  .timeline-nav button {
    flex: 0 0 auto;
    padding: 0.8rem 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 3px;
    background-color: var(--white-gray);
    transition: background-color .3s ease, color .3s ease;
  }

  .timeline-nav button.active {
    background-color: var(--silver-gray);
    color: #fff;
  }

  .timeline-contents__ul {
    font-size: 1.4rem;
  }
}

/* ====================================
	768px以上専用スタイル
==================================== */
@media screen and (width >=768px) {

	/* フォーカス */
	.timeline-nav button:focus-visible {
		outline-offset: -2px;
	}

  /* セクション */
  .section {
    padding-bottom: 4rem;
  }

  /* 年代ナビ */
  .timeline-nav-top {
    margin-bottom: 4rem;
  }

  .timeline-nav-wrap {
    overflow-x: visible;
  }

  .timeline-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem 0;
    padding-bottom: 1rem;
    white-space: normal;
    background: #fff;
    -webkit-overflow-scrolling: touch;
  }

  .timeline-nav button {
    flex: 0 0 auto;
    inline-size: 151px;
    margin-left: -1px;
    padding: 1rem;
    background: #fff;
    border-left: 1px solid var(--light-gray);
    border-right: 1px solid var(--light-gray);
    /* border-radius: 3px; */
    font-size: 1.4rem;
    font-weight: 300;
    text-align: center;
    position: relative;
    z-index: 0;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .timeline-nav button.active {
    background-color: unset;
    color: #fff;
  }

  .timeline-nav button::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.4rem;
    right: 1.4rem;
    background-color: var(--silver-gray);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .timeline-nav button.active::before {
    opacity: 1;
  }

  .timeline-contents {
    padding-bottom: 12rem;
  }

  .timeline-contents__list {
    border-top: 1px solid var(--light-gray);
    padding-block: 2rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
  }

  .timeline-contents__year {
    flex: 0 0 220px;
  }

  .timeline-contents__list dd {
    flex: 1;
    margin: 0;
  }
}

/* ====================================
	（768px以上）ホバー、マウスポインタが有効なデバイス
==================================== */
@media screen and (width >=768px) and (hover:hover) and (pointer: fine) {

  .timeline-nav button:hover {
    background-color: unset;
    color: #fff;
  }

  .timeline-nav button:hover::before {
    opacity: 1;
  }
}

/* ====================================
	768px以上1080px未満専用スタイル
==================================== */
@media screen and (768px <=width < 1080px) {}

/* ====================================
	1080px未満専用スタイル
==================================== */
@media screen and (width <1080px) {}

/* ====================================
	1080px以上専用スタイル
==================================== */
@media print,
screen and (1080px <=width) {}

/* ====================================
	1200px以上専用スタイル
==================================== */
@media screen and (1200px <=width) {}

/* ====================================
	1280px未満専用スタイル
==================================== */
@media screen and (width <1280px) {}