@charset "utf-8";

/* ヒストリー */
.history__wrapper {
  width: 100%;
  padding: 130px 30px 60px;
}

@media only screen and (min-width: 768px) {
  .history__wrapper {
    max-width: 745px;
    margin: 0 auto;
    padding: 130px 0 60px;
  }
}

.history__wrapper h2 {
  margin-bottom: 60px;
  font-size: 34px;
  line-height: 1.6;
  color: #002F51;
  text-align: center;
}

.history__wrapper h2 span:nth-of-type(2) {
  padding: 0 5px;
  border-top: 1px solid #002F51;
  border-bottom: 1px solid #002F51;
  font-size: 54px;
}

.history__wrapper h2 span:nth-of-type(3) {
  font-size: 14px;
}

.history__inner, 
.history__inner .timeline {
  position: relative;
}

.history__inner .ship {
  width: 33px;
  position: -webkit-sticky;
  position: sticky;
  top: 200px;
  left: 0;
  z-index: 10;
}

@media only screen and (min-width: 768px) {
  .history__inner .ship {
    left: 50%;
    transform: translateX(-50%);
  }
}

.history__inner section:nth-of-type(n+2) {
  margin-top: -60px;
}

.history__inner .timeline > div {
  padding-bottom: 30px;
}

.history__inner .timeline > div:first-of-type {
  padding-bottom: 0;
}

.history__inner .timeline > div:last-of-type {
  padding-bottom: 60px;
}

@media only screen and (min-width: 768px) {
  .history__inner .timeline > div {
    width: 50%;
  }
}

.history__inner .timeline .timeline-year h3 {
  position: relative;
  margin: 0 0 0 40px;
  font-size: 60px;
  line-height: 1.8;
  color: #002F51;
  letter-spacing: 5px;
}

@media only screen and (max-width: 767px) {
  .history__inner .timeline .timeline-year h3::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -34px;
    transform: translateY(-50%);
    width: 21px;
    height: 21px;
    background: #002F51;
    border: 1px solid #002F51;
    border-radius: 50%;
  }
}

@media only screen and (min-width: 768px) {
  .history__inner .timeline .left-year {
    text-align: right;
  }

  .history__inner .timeline .left-year h3 {
    margin: 0 24px 0 0;
  }

  .history__inner .timeline .left-year h3::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -34px;
    transform: translateY(-50%);
    width: 21px;
    height: 21px;
    background: #002F51;
    border: 1px solid #002F51;
    border-radius: 50%;
  }

  .history__inner .timeline .right-year {
    margin-left: 50%;
    text-align: left;
  }

  .history__inner .timeline .right-year h3 {
    margin: 0 0 0 23px;
  }

  .history__inner .timeline .right-year h3::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -34px;
    transform: translateY(-50%);
    width: 21px;
    height: 21px;
    background: #002F51;
    border: 1px solid #002F51;
    border-radius: 50%;
  }
}

.history__inner .timeline .timeline-event dl {
  position: relative;
  margin: 0 0 0 40px;
  padding: 20px 0;
  display:  grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

@media only screen and (max-width: 767px) {
  .history__inner .timeline .timeline-event dl::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -3px;
    z-index: -1;
    transform: translateY(-50%) rotate(45deg);
    width: 15px;
    height: 15px;
  }

  .history__inner .timeline .timeline-event dl::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -31px;
    z-index: 5;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: #ffffff;
    border: 1px solid #002F51;
    border-radius: 50%;
  }
}

.history__inner .timeline .timeline-event dt {
  padding: 0 10px;
  font-size: 16px;
  line-height: 1.8;
}

.history__inner .timeline .timeline-event dd {
  padding: 0 10px;
  font-size: 12px;
  line-height: 1.8;
}

@media only screen and (min-width: 768px) {
  .history__inner .timeline .timeline-event.japan {
    margin-left: 50%;
  }

  .history__inner .timeline .timeline-event.ships.top01 {
    margin-top: 30px;
  }

  .history__inner .timeline .timeline-event.ships.top02 {
    margin-top: 60px;
  }

  .history__inner .timeline .timeline-event.ships.top03 {
    margin-top: 20px;
  }

  .history__inner .timeline .timeline-event.japan.top01 {
    /*margin-top: -106px;*/
    margin-top: -113px;
  }

  .history__inner .timeline .timeline-event.japan.top02 {
    /*margin-top: -156px;*/
    margin-top: -145px;
  }

  .history__inner .timeline .timeline-event.japan.top03 {
    margin-top: -30px;
  }

  .history__inner .timeline .timeline-event.japan.top04 {
    margin-top: -178px;
  }

  .history__inner .timeline .timeline-event.japan.top05 {
    /*margin-top: -124px;*/
    margin-top: -99px;
  }

  .history__inner .timeline .timeline-event.japan.top06 {
    /*margin-top: -135px;*/
    margin-top: -113px;
  }

  .history__inner .timeline .timeline-event.japan.top07 {
    /*margin-top: -135px;*/
    margin-top: -99px;
  }

  .history__inner .timeline .timeline-event.japan.top08 {
    /*margin-top: -135px;*/
    margin-top: -113px;
  }

  .history__inner .timeline .timeline-event.ships dl {
    margin: 0 24px 0 0;
  }

  .history__inner .timeline .timeline-event.japan dl {
    margin: 0 0 0 23px;
  }

  .history__inner .timeline .timeline-event.ships dl::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -3px;
    z-index: -1;
    transform: translateY(-50%) rotate(45deg);
    width: 15px;
    height: 15px;
  }

  .history__inner .timeline .timeline-event.japan dl::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -3px;
    z-index: -1;
    transform: translateY(-50%) rotate(45deg);
    width: 15px;
    height: 15px;
  }

  .history__inner .timeline .timeline-event.ships dl::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -31px;
    z-index: 5;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: #ffffff;
    border: 1px solid #002F51;
    border-radius: 50%;
  }

  .history__inner .timeline .timeline-event.japan dl::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -31px;
    z-index: 5;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: #ffffff;
    border: 1px solid #002F51;
    border-radius: 50%;
  }

  .history__inner .timeline .timeline-event.japan.top01 dl::after, 
  .history__inner .timeline .timeline-event.japan.top02 dl::after, 
  .history__inner .timeline .timeline-event.japan.top04 dl::after, 
  .history__inner .timeline .timeline-event.japan.top05 dl::after, 
  .history__inner .timeline .timeline-event.japan.top06 dl::after, 
  .history__inner .timeline .timeline-event.japan.top07 dl::after, 
  .history__inner .timeline .timeline-event.japan.top08 dl::after {
    opacity: 0;
  }

  .history__inner .timeline .timeline-event dt {
    padding: 0 10px 0 20px;
  }

  .history__inner .timeline .timeline-event dd {
    padding: 0 20px 0 10px;
  }
}

.history__inner .timeline .ships dl, 
.history__inner .timeline .ships dl::before {
  background: #002F51;
}

.history__inner .timeline .ships dt {
  color: #ffffff;
}

.history__inner .timeline .ships dd {
  border-left: 1px solid #ffffff;
  color: #ffffff;
}

.history__inner .timeline .japan dl, 
.history__inner .timeline .japan dl::before {
  background: #EFF5FA;
}

.history__inner .timeline .japan dt {
  color: #002F51;
}

.history__inner .timeline .japan dd {
  border-left: 1px solid #002F51;
  color: #002F51;
}

.history__inner .timeline .timeline-column {
  margin: 0 0 0 40px;
}

.history__inner .timeline .timeline-column > div {
  width: 84.84%;
}

.history__inner .timeline .timeline-column > div img {
  box-shadow: 0px 7px 3px -3px #cccccc;
}

/* 2025.03.13 add */
.history__inner .timeline .timeline-column > div a {
  position: relative;
  display: block;
}

.history__inner .timeline .timeline-column > div a::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: .2s ease-in-out;
}

.history__inner .timeline .timeline-column > div a:hover::after {
  top: 7px;
  opacity: 1;
}

.history__inner .timeline .timeline-column > div a img {
  position: relative;
  top: 0;
  transition: .2s ease-in-out;
}

.history__inner .timeline .timeline-column > div a:hover img {
  top: 7px;
  box-shadow: 0px 0px 0px 0px #cccccc;
}
/* -------------------- */

.history__inner .timeline .timeline-column .thumb-img01 {
  margin: 0 auto;
}

.history__inner .timeline .timeline-column .thumb-img02 {
  margin: 0 auto 0 0;
}

.history__inner .timeline .timeline-column .thumb-img03 {
  margin: 0 0 0 auto;
}

@media only screen and (min-width: 768px) {
  .history__inner .timeline .timeline-column > div {
    width: 80.34%;
  }

  .history__inner .timeline .timeline-column .thumb-img02, 
  .history__inner .timeline .timeline-column .thumb-img03 {
  margin: 0 auto;
  }

  .history__inner .timeline .timeline-column.column-box01 {
    margin: -20px 0 0 0;
    padding: 0 24px 0 0;
  }

  .history__inner .timeline .timeline-column.column-box02 {
    margin: -100px 0 0 50%;
    padding: 0 0 60px 24px;
  }

  .history__inner .timeline .timeline-column.column-box03 {
    margin: -30px 0 0 0;
    padding: 0 24px 0 0;
  }

  .history__inner .timeline .timeline-column.column-box04 {
    margin: -140px 0 0 50%;
    padding: 0 0 30px 24px;
  }

  .history__inner .timeline .timeline-column.column-box05 {
    margin: -30px 0 0 0;
    padding: 0 24px 30px 0;
  }

  .history__inner .timeline .timeline-column.column-box06 {
    margin: 0 0 0 50%;
    padding: 0 0 30px 24px;
  }

  .history__inner .timeline .timeline-column.column-box07 {
    margin: -110px 0 0 50%;
    padding: 0 0 30px 24px;
  }
}

.history__inner .timeline .vertical-left-year, 
.history__inner .timeline .vertical-right-year {
  display: none;
}

.history__inner .timeline .border-line {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: -1;
  width: 1px;
  height: 0;
  background-color: #002F51;
}

@media only screen and (min-width: 768px) {
  .history__inner .timeline .vertical-left-year {
    display: block;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    font-size: 120px;
    color: rgba(0, 47, 81, 0.05);
    position: absolute;
    top: 50%;
    left: -90px;
    transform: translateY(-50%);
    z-index: -1;
  }

  .history__inner .timeline .vertical-right-year {
    display: block;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    font-size: 120px;
    color: rgba(0, 47, 81, 0.05);
    position: absolute;
    top: 50%;
    right: -90px;
    transform: translateY(-50%);
    z-index: -1;
  }

  .history__inner .timeline .border-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.history__msg {
  margin: 60px auto;
  text-align: center;
}

.history__msg p {
  font-size: 24px;
  line-height: 1.8;
  color: #002F51;
}


/* カテゴリリンク */
.content .category__wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0 30px 60px;
}

.content .category__wrapper ul {
  display: grid;
  place-items: center;
}

.content .category__wrapper ul.col3 {
  grid-template-columns: repeat(3, 1fr);
}

.content .category__wrapper ul.col4 {
  grid-template-columns: repeat(4, 1fr);
}

.content .category__wrapper li img {
  width: 78px;
}

@media only screen and (min-width: 768px) {
  .content .category__wrapper {
    max-width: 600px;
  }

  .content .category__wrapper li img {
    width: 105px;
  }
}


/* バナー */
.bnr__wrapper1 {
  width: calc(100% - 60px);
  margin: 0 auto;
  padding: 0 0 60px;
}

.bnr__wrapper2 {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 60px;
}

@media only screen and (min-width: 768px) {
  .bnr__wrapper1 {
    max-width: 500px;
  }

  .bnr__wrapper2 {
    max-width: 600px;
  }
}


/* アニメーション */
.fadeInUp {
  opacity: 0;
  transform: translate(0, 50px);
  transition: 1.5s;
}

.fadeInUp.active {
  opacity: 1;
  transform: translate(0, 0);
}

.fadeInLeftSlide {
  opacity: 0;
  transform: translate(-30px, 0);
  transition: 1.5s;
}

.fadeInLeftSlide.active {
  opacity: 1;
  transform: translate(0, 0);
}

.fadeInRightSlide {
  opacity: 0;
  transform: translate(30px, 0);
  transition: 1.5s;
}

.fadeInRightSlide.active {
  opacity: 1;
  transform: translate(0, 0);
}

.fadeInSlide {
  opacity: 0;
  transform: translate(-50px, 0);
  transition: 4s;
}

.fadeInSlide.active {
  opacity: 1;
  transform: translate(10px, 0);
}

.pukapuka {
  animation: pukapuka 3s infinite ease-in-out;
}

@keyframes pukapuka {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(10px);
  }
}

.blink {
  animation: blinking 1.5s ease-in-out infinite alternate;
}

@keyframes blinking {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}