@charset "UTF-8";
#history {
  background-attachment: fixed;
  background-image: url("../img/history/bg-header.jpg");
  background-color: #222;
  background-repeat: no-repeat;
  background-position: center top;
  position: relative;
}
@media screen and (max-width: 768px) {
  #history {
    background-size: 100%;
  }
}
#history .bg-text {
  background-size: 100% auto;
  padding-top: 4.375rem;
  background-image: url("../img/history/bg-ttl-text.png");
  background-repeat: no-repeat;
  background-position: center center;
  color: #fff;
}
@media screen and (max-width: 768px) {
  #history .bg-text {
    background-size: auto 110px;
  }
}
#history .bg-text h1 {
  font-weight: 600;
  font-size: clamp(3.125rem, 2.273rem + 3.64vw, 5rem);
  text-align: center;
  letter-spacing: 0.2em;
  line-height: 1.2;
}
@media screen and (min-width: 481px) and (max-width: 1024px) {
  #history .bg-text h1 {
    padding: 0 3.75rem;
  }
}
@media screen and (max-width: 480px) {
  #history .bg-text h1 {
    font-size: 2.25rem;
  }
}
#history .bg-text h1 .char {
  display: inline-block;
  will-change: transform, opacity;
}
#history .bg-text p {
  text-align: center;
}
#history .bg-text p::after {
  content: "";
  display: block;
  width: 1px;
  height: 50px;
  background: #fff;
  margin: 8px auto 0;
  transform: scaleY(0);
  transform-origin: top;
  animation: lineGrow 0.8s ease-out forwards;
}
@media screen and (max-width: 768px) {
  #history .bg-text p::after {
    height: 30px;
  }
}
@keyframes lineGrow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
#history .group-name-box {
  background: #222;
  text-align: center;
  font-size: 1.125rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  color: #fff;
}
@media screen and (max-width: 768px) {
  #history .group-name-box {
    font-size: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}
#history .chapter-name-box {
  padding: 2rem 0;
  text-align: center;
  background-color: #eee;
}
@media screen and (max-width: 768px) {
  #history .chapter-name-box {
    padding: 1.5rem 0;
  }
}
#history .chapter-name-box p {
  font-size: 1.125rem;
}
@media screen and (max-width: 768px) {
  #history .chapter-name-box p {
    font-size: 1rem;
  }
}
#history .chapter-name-box h2 {
  font-size: 2rem;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  #history .chapter-name-box h2 {
    font-size: 1.25rem;
  }
}
#history .term-link-box ul {
  display: flex;
  justify-content: center;
  background: #000;
  color: #fff;
  align-items: center;
  padding: 2rem 0;
}
@media screen and (max-width: 768px) {
  #history .term-link-box ul {
    padding: 1.25rem 0;
  }
}
#history .term-link-box ul li {
  padding-right: 0.5rem;
  font-size: 1.25rem;
  font-weight: 400;
  height: 3rem;
  position: relative;
  cursor: pointer;
}
@media screen and (max-width: 768px) {
  #history .term-link-box ul li {
    height: 2.5rem;
    font-size: 1rem;
    font-weight: 400;
  }
}
#history .term-link-box ul li:hover {
  color: var(--primary-color);
}
#history .term-link-box ul li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
}
#history .term-link-box ul li::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
  z-index: 1;
}
#history .term-link-box ul li:hover::before {
  width: 100%;
}
#history .term-link-box ul li:not(:hover)::before {
  width: 0;
}
#history .term-link-box ul li.active {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.4;
}
@media screen and (max-width: 768px) {
  #history .term-link-box ul li.active {
    font-size: 1.25rem;
  }
}
#history .term-link-box ul li.active::after {
  background: var(--primary-color);
  height: 2px;
}
#history .term-link-box ul li.active::before {
  display: none;
}

.contents-wrapper {
  background: #fff;
  padding-top: 3.5rem;
  padding-bottom: 7.125rem;
  overflow: visible;
}
@media screen and (max-width: 1024px) {
  .contents-wrapper {
    padding-top: 2rem;
    padding-bottom: 0;
  }
}
.contents-wrapper .content-box {
  margin-left: auto;
  margin-right: auto;
  max-width: 67.5rem;
  display: flex;
  align-items: flex-start;
  gap: 5rem;
  position: relative;
  overflow: visible;
  margin: 0 auto;
  min-height: 100%;
}
@media screen and (max-width: 1024px) {
  .contents-wrapper .content-box {
    flex-direction: column;
    gap: 0;
    min-height: auto;
  }
}
.contents-wrapper .content-box article {
  flex: 1;
  max-width: 780px;
  order: 2;
  margin-bottom: 6.25rem;
}
@media screen and (max-width: 1024px) {
  .contents-wrapper .content-box article {
    width: 86%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    order: 1;
  }
}
.contents-wrapper .content-box article .page-nav-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "back period next";
  align-items: center;
  padding: 2rem 0;
  column-gap: 1rem;
}
.contents-wrapper .content-box article .page-nav-box a.back {
  grid-area: back;
  position: relative;
  text-align: center;
  font-size: 1rem;
  color: #222;
  text-decoration: none;
  padding: 16px 50px 0 50px;
}
.contents-wrapper .content-box article .page-nav-box a.back::before {
  content: "";
  position: absolute;
  top: 70%;
  left: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 1px;
  background: #ddd;
}
.contents-wrapper .content-box article .page-nav-box a.back::after {
  content: "";
  position: absolute;
  top: 70%;
  left: 0;
  transform: translateY(-50%) scaleX(0);
  transform-origin: right;
  width: 40px;
  height: 1px;
  background: #000;
  transition: transform 0.3s ease;
}
.contents-wrapper .content-box article .page-nav-box a.back:hover::after {
  transform: translateY(-50%) scaleX(1);
}
.contents-wrapper .content-box article .page-nav-box a.next {
  grid-area: next;
  position: relative;
  text-align: center;
  font-size: 1rem;
  color: #222;
  text-decoration: none;
  padding: 16px 50px 0 50px;
}
.contents-wrapper .content-box article .page-nav-box a.next::before {
  content: "";
  position: absolute;
  top: 70%;
  right: 0;
  transform: translateY(-50%);
  width: 40px;
  height: 1px;
  background: #ddd;
}
.contents-wrapper .content-box article .page-nav-box a.next::after {
  content: "";
  position: absolute;
  top: 70%;
  right: 0;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left;
  width: 40px;
  height: 1px;
  background: #000;
  transition: transform 0.3s ease;
}
.contents-wrapper .content-box article .page-nav-box a.next:hover::after {
  transform: translateY(-50%) scaleX(1);
}
.contents-wrapper .content-box article .page-nav-box .period {
  grid-area: period;
}
.contents-wrapper .content-box article .page-nav-box .period p {
  font-size: 0.875rem;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  text-align: center;
}
.contents-wrapper .content-box article .page-nav-box .period .ad-no {
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--primary-color);
}
@media screen and (max-width: 768px) {
  .contents-wrapper .content-box article .page-nav-box {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "back next" "period period";
    row-gap: 1rem;
    column-gap: 1rem;
  }
  .contents-wrapper .content-box article .page-nav-box a.back,
  .contents-wrapper .content-box article .page-nav-box a.next {
    width: 100%;
    padding: 8px 0;
  }
  .contents-wrapper .content-box article .page-nav-box .period {
    width: 100%;
    margin-top: 0.5rem;
    background-color: #efefef;
    padding: 1rem 0;
  }
  .contents-wrapper .content-box article .page-nav-box .period p {
    font-size: 1rem;
  }
  .contents-wrapper .content-box article .page-nav-box .period .ad-no {
    font-size: 1.875rem;
  }
}
.contents-wrapper .content-box .h1-box {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 3rem;
}
@media screen and (max-width: 768px) {
  .contents-wrapper .content-box .h1-box {
    transform: scale(0.8);
    transform-origin: top left;
    width: 125%;
  }
}
.contents-wrapper .content-box .h1-box .term-no {
  width: 3.375rem;
  height: 3.375rem;
  min-width: 3.375rem;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 2.25rem;
  text-align: center;
  vertical-align: middle;
}
.contents-wrapper .content-box .h1-box h1 {
  font-size: 2rem;
  padding-left: 1.5rem;
  line-height: 1.3;
  font-weight: 500;
}
@media screen and (max-width: 768px) {
  .contents-wrapper .content-box .h1-box h1 {
    font-size: clamp(1.75rem, 1.511rem + 1.02vw, 2rem);
  }
}
.contents-wrapper .content-box h2 {
  border-left: 4px solid var(--primary-color);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  font-size: clamp(1.25rem, 1.136rem + 0.48vw, 1.5rem);
  font-weight: 500;
}
.contents-wrapper .content-box p {
  line-height: 2;
  font-size: clamp(1rem, 0.917rem + 0.17vw, 1.125rem);
  margin-bottom: 1.125rem;
  text-align: justify;
}
.contents-wrapper .content-box p + h2 {
  margin-top: 3.375rem;
}
@media screen and (max-width: 768px) {
  .contents-wrapper .content-box p {
    font-size: 1.0625rem;
  }
}
.contents-wrapper .content-box:last-child {
  padding-bottom: 5rem;
}
@media screen and (max-width: 768px) {
  .contents-wrapper .content-box:last-child {
    padding-bottom: 0;
  }
}
.contents-wrapper .content-box .image-box-h,
.contents-wrapper .content-box .image-box-v {
  margin: 2.5rem auto;
  max-width: 480px;
}
.contents-wrapper .content-box .image-box-h p,
.contents-wrapper .content-box .image-box-v p {
  font-size: 0.875rem;
  text-align: left;
}
.contents-wrapper .content-box .image-box-v {
  max-width: 370px;
}
.contents-wrapper .content-box .photo-wrapper-h2 {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
}
@media screen and (max-width: 768px) {
  .contents-wrapper .content-box .photo-wrapper-h2 {
    flex-direction: column;
    gap: 0;
  }
}
.contents-wrapper .content-box .photo-wrapper-h2 .image-box-h,
.contents-wrapper .content-box .photo-wrapper-h2 .image-box-v {
  flex: 0 0 50%;
}
@media screen and (max-width: 768px) {
  .contents-wrapper .content-box .photo-wrapper-h2 .image-box-h + .image-box-h {
    margin-top: 0;
  }
}
@media screen and (max-width: 768px) {
  .contents-wrapper .content-box .photo-wrapper-h2 .image-box-v + .image-box-v {
    margin-top: 0;
  }
}
.contents-wrapper .content-box p.out-caption {
  margin-top: -2.7em;
  font-size: 0.875rem;
  text-align: left;
}

/* ========== Sidebar Navigation ========== */
.hitory-side-nav {
  flex: 0 1 20rem;
  order: 1;
  margin-top: 3.5rem;
  position: sticky;
  top: 40px;
  align-self: flex-start;
  z-index: 10;
}
@media screen and (max-width: 1024px) {
  .hitory-side-nav {
    width: 100%;
  }
}
.hitory-side-nav .dropdown-menu {
  list-style: none;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  z-index: 10;
  /* 影や区切り線など任意 */
  border: 1px solid #ddd;
}
.hitory-side-nav .dropdown-menu li {
  position: relative;
  /* open */
  /* Child ul */
  /* 親メニューボタン */
}
.hitory-side-nav .dropdown-menu li.open > .menu-btn::after {
  opacity: 0;
}
.hitory-side-nav .dropdown-menu li ul {
  display: none;
  padding-left: 1rem;
}
.hitory-side-nav .dropdown-menu li ul li {
  counter-increment: num;
  position: relative;
  padding-left: 2em;
  margin: 0.3rem 0;
  /* li自体にhoverがかかったときにbeforeも色を変える */
}
.hitory-side-nav .dropdown-menu li ul li::before {
  content: counter(num) ". ";
  position: absolute;
  left: 0;
  top: 4px;
  color: #222;
  font-family: "Roboto" !important;
  font-weight: bold;
}
@media screen and (max-width: 768px) {
  .hitory-side-nav .dropdown-menu li ul li::before {
    left: 8px;
    top: 8px;
  }
}
.hitory-side-nav .dropdown-menu li ul li a {
  display: block;
  padding: 0.2rem 0;
  font-size: 1rem;
  color: var(--font-base);
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
@media screen and (max-width: 768px) {
  .hitory-side-nav .dropdown-menu li ul li a {
    padding: 0.5rem 0;
  }
}
.hitory-side-nav .dropdown-menu li ul li a:hover {
  text-decoration: underline;
  color: var(--primary-color);
}
.hitory-side-nav .dropdown-menu li ul li a.active {
  font-weight: bold;
  color: var(--primary-color);
}
.hitory-side-nav .dropdown-menu li ul li:hover::before {
  color: var(--primary-color);
}
.hitory-side-nav .dropdown-menu li ul li.current::before,
.hitory-side-nav .dropdown-menu li ul li.current a {
  color: var(--primary-color);
}
.hitory-side-nav .dropdown-menu li .menu-btn {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 0.8rem 2.5rem 0.8rem 0.8rem;
  border-top: 1px solid #ddd;
  background: #eee;
  cursor: pointer;
  transition: background 0.2s ease;
  /* ＋/−ボタン */
  /* 横棒 */
  /* 縦棒 */
}
@media screen and (max-width: 768px) {
  .hitory-side-nav .dropdown-menu li .menu-btn {
    padding: 1rem 3.5rem 1rem 1rem;
  }
}
.hitory-side-nav .dropdown-menu li .menu-btn:hover {
  background: #ddd;
}
.hitory-side-nav .dropdown-menu li .menu-btn .cat-name {
  display: inline-block;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.hitory-side-nav .dropdown-menu li .menu-btn .cat-period {
  display: inline-block;
  font-size: 0.85rem;
  font-family: "Roboto" !important;
}
.hitory-side-nav .dropdown-menu li .menu-btn .cat-period::before {
  content: " ( ";
}
.hitory-side-nav .dropdown-menu li .menu-btn .cat-period::after {
  content: " )";
}
.hitory-side-nav .dropdown-menu li .menu-btn .cat-title {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.25rem;
}
.hitory-side-nav .dropdown-menu li .menu-btn::before, .hitory-side-nav .dropdown-menu li .menu-btn::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  background: #222;
  transition: 0.2s ease;
}
@media screen and (max-width: 768px) {
  .hitory-side-nav .dropdown-menu li .menu-btn::before, .hitory-side-nav .dropdown-menu li .menu-btn::after {
    right: 1rem;
  }
}
.hitory-side-nav .dropdown-menu li .menu-btn::before {
  width: 12px;
  height: 2px;
  transform: translateY(-50%);
}
.hitory-side-nav .dropdown-menu li .menu-btn::after {
  width: 2px;
  height: 12px;
  transform: translateY(-50%);
  right: calc(0.8rem + 5px);
}
@media screen and (max-width: 768px) {
  .hitory-side-nav .dropdown-menu li .menu-btn::after {
    right: calc(1rem + 5px);
  }
}

/* スマホレイアウト */
@media (max-width: 768px) {
  .contents-wrapper {
    flex-direction: column;
    padding-top: 0;
  }
  .contents-wrapper article {
    order: 2;
  }
  .contents-wrapper .hitory-side-nav {
    width: 100%;
    order: 2;
  }
  .contents-wrapper .hitory-side-nav .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
  }
  .contents-wrapper .hitory-side-nav .dropdown-menu li ul {
    padding-left: 0.5rem;
  }
}
body,
.fullscreen-container {
  overflow: visible;
}/*# sourceMappingURL=history.css.map */