@charset "UTF-8";

.history-listunit {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 0 30px;
}
@media only screen and (max-width: 768px) {
  .history-listunit {
    grid-template-columns: 1fr;
  }
}
.history-content {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 19;
}

.history-content > .ttl {
  margin-bottom: 20px;
  padding: 10px;
  display: grid;
  place-content: center;
  color: #e83828;
  font-family: "Zen Maru Gothic", Sans-serif;
  font-size: 20px;
  font-style: 500;
  line-height: 1.5;
  border-radius: 100px;
  background-color: #fef8f7;
}
.history-content > .ttl.-prof {
  color: #fff;
  background-color: #e83828;
}
@media only screen and (max-width: 768px) {
  .history-content {
    margin-bottom: 40px;
  }
}
.history-list {
  margin: 0;
  padding-left: 20px;
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 2/19;
}
.history-list::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 5px;
  width: 1px;
  height: calc(100% - 20px);
  background-color: #e83828;
}
.history-list > li {
  margin-bottom: 10px;
  position: relative;
}
.history-list > li::before {
  content: "";
  display: grid;
  place-content: center;
  position: absolute;
  top: 10px;
  left: -20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e83828;
}
.history-list > li:empty::before {
  content: none;
}
@media only screen and (max-width: 768px) {
  .history-list > li:empty {
    display: none;
  }
}
.history-img {
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  visibility: hidden;
  opacity: 0;
  z-index: 100;
}
.history-def {
  margin-left: 15px;
  padding: 8px 15px;
  font-size: 14px;
  position: relative;
  border-radius: 4px;
  background-color: #f5f5f5;
}
.history-def > .year {
  color: #e83828;
  font-weight: 700;
}
.history-def > .detail {
  margin: 0;
}
.history-def > .detail > p {
  margin: 0;
}
.history-def > .img {
  margin: 20px auto 0;
  width: 100%;
  max-width: 400px;
}
.history-def > .img:not(:last-child) {
  margin-bottom: 10px;
}
.history-def > .img > img {
  width: 100%;
  height: auto;
}
.history-def::after {
  content: "";
  position: absolute;
  top: 10px;
  left: -13px;
  width: 13px;
  height: 15px;
  background-color: #f5f5f5;
  -webkit-clip-path: polygon(0 50%, 100% 0, 100% 100%);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
@media (hover: hover) {
  .history-def > .img {
    margin: 0;
    position: absolute;
    top: 90%;
    left: 20px;
    width: 100%;
    /*height: 150px;*/
    visibility: hidden;
    opacity: 0;
    z-index: 100;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
  }
  .history-def > .img > img {
    max-width: none;
    /*
    height: 100%;
    width: auto;
    */
    width: 100%;
    height: auto;
  }
  .history-def:hover > .img {
    visibility: visible;
    opacity: 1;
  }
}
.history-content.-prof .history-def {
  background-color: #ecedfa;
}
.history-content.-prof .history-def > .detail {
  font-size: 1.1428571429em;
  font-weight: 700;
}

.history-master {
  padding: 10px;
  border-radius: 10px;
  /*border: 1px solid var(--e-global-color-astglobalcolor1);*/
  background-color: #fef8f7;
}
.history-master  .history-list {
  padding-left: 0;
}
.history-master .history-list > li::before {
  content: none;
}
.history-master  .history-list::before {
  content: none;
}
.history-master .history-def {
  margin-left: 0;
  background-color: #fff;
}
.history-master .history-def::after {
  content: none;
}
.history-master .history-def > .detail:not(:last-child) {
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
}

.history-main {
  display: flex;
  gap: 20px;
}
.history-main .history-master {
  width: 25.42372881%;
}
@media only screen and (max-width: 768px) {
  .history-main{
    display: block;
  }
  .history-main .history-master {
    display: none;
  }
}

.history-main .history-listunit {
  flex: 1;
}
/*
.history-content:first-child .history-list {
  display: block;
}
.history-content:first-child .history-list > li:empty {
  display: none;
}
.history-content:first-child .history-def > .img {
  position: static;
  visibility: visible;
  opacity: 1;
  aspect-ratio: 25/30;
}
.history-content:first-child .history-def > .img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
*/
