/* --------------------------------------------------------------
  PAGE HEADER
---------------------------------------------------------------- */
@media screen and (max-width: 699px) {
  .page-hero {
    overflow: visible;
  }

  .page-hero__image {
    right: -15%;
    width: 100vw;
    max-width: 100vw;
    margin-top: 1em;
    margin-inline: calc(50% - 50vw);
  }
}

@media screen and (max-width: 499px) {
  .page-hero__image {
    right: -10%;
  }
}


#virtualtour .page-hero {
  margin-block: 7em;
}


/* --------------------------------------------------------------
  SHOPS / 運航船舶紹介
---------------------------------------------------------------- */
.ship-list {
  width: 90%;
  margin: auto;

  display: grid;
  margin-block-end: 4em;
}

.ship-list article {
  margin-block-end: 10em;
}

.ship-list article .ship-header {
  display: flex;
  align-items: center;
  gap: 2em;
  margin-block-end: 1.5em;
}
.ship-list article .ship-header h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: .04em;
}
.ship-list article .ship-header h2 > span{
  display: block;

  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;

  font-size: 15px;
  font-weight: 400;
  color: var(--color-primary);
}
.ship-list article .ship-visual {
  width: 100%;
  max-width: 740px;
  margin: auto;
}
.ship-list article .ship-visual img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 40px;
}

.ship-header .btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .55em 3em;
  border: 1.5px solid var(--color-primary);
  color: var(--color-text);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 400;
  font-size: 12px;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.ship-header .btn:hover{
  background: var(--color-primary);
  color: #fff;
}

/* ============================================================
  「国内初採用の環境技術」ブロック
============================================================ */
.shop-info h3 {
  text-align: center;
  margin: 0 0 1em 0;
  font-size: 24px;
  font-weight: 800;
  color: var(--color-corporate);
  letter-spacing: 2px;
}
.shop-info .highlight {
  margin: 0 0 1.2em;
  color: var(--color-primary);
  font-weight: 400;
  font-size: 18px;
}
.ship-tech {
  width: 80%;
  margin: auto;
}
.ship-tech ul {
  margin-block-end: 4em;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px,2.2vw,22px) clamp(24px,3vw,40px);
  font-size: 14px;
}
.ship-tech li strong {
  font-size: 15px;
  display: inline-block;
  margin-bottom: .25em;
  font-weight: 700;
}

.shop-info {
  margin-block-start: 1.5em;
}
.shop-info .button {
  width: 90%;
  padding-block: 14px;
}

.ship-specs {
  width: 80%;
  margin: 2em auto 0;
}
.ship-specs dl {
  margin-inline: 5%;
  display: grid;
  grid-template-columns: 10em 1fr;
  gap: 0;
  border-bottom: 1px solid #5E9CFF;
  font-size: 14px;
}
.ship-specs dt,
.ship-specs dd {
  padding-block: 1em;
  border-top: 1px solid #5E9CFF;
}

.ship-specs dd {
  line-height: 1.8;
}
.ship-specs dd strong {
  display: inline-block;
  margin-bottom: .25em;
  font-weight: 700;
}

.bnr-tour {
  position: relative;
  display: block;
  width: 73%;
  margin: auto;
}

.bnr-tour img {
  display: block;
  transition: opacity .3s ease;
}

.bnr-tour img.hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.bnr-tour:hover img.hover {
  opacity: 1;
}


@media screen and (max-width: 699px) {
  #ships .page-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
  #ships .page-hero__image {
    top: -40px;
    right: -40%;
    max-width: 350px;

    top: 0;
    right: -10%;
    max-width: 100%;
  }


  .ship-list {
    width: 90%;
  }

  .ship-list article {
    margin-block-end: 5em;
  }

  .ship-list article .ship-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }
  .ship-list article .ship-header h2 {
    font-size: 40px;
  }

  .ship-list article .ship-visual img {
    border-radius: 11px;
  }

  .ship-header .btn{
    margin-top: 0;
  }
  .shop-info h3 {
    font-size: 18px;
    text-align: left;
    margin: 1em 0;
  }
  .shop-info .highlight {
    font-size: 18px;
  }

  .ship-tech {
    width: 100%;
  }
  .ship-tech ul{
    grid-template-columns: 1fr;
    gap: 1.5em;
  }
  .ship-specs {
    width: 100%;
  }
  .ship-specs dl {
    margin-inline: 0;
  }

  .bnr-tour {
    width: 100%;
  }
}



/* --------------------------------------------------------------
  VIRTUAL TOUR / RO-RO船 解体新書
---------------------------------------------------------------- */
.virtualtour_header h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-corporate);
}
.virtualtour_header h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-corporate);
}
.virtualtour_header p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.virtualtour_header a {
  display: block;
  margin-block: 2em;
  transition: 0.3s ease;
}
.virtualtour_header a:hover {
  opacity: 0.7;
}


.virtualtour_loop {
  margin-block-start: 10em;
}
.infinite-scroll {
  display: flex;
  width: 100%;
  overflow: hidden;
}
.infinite-scroll__container {
  display: flex;
  flex-shrink: 0;
}
.infinite-scroll__img-wrap {
  flex-shrink: 0;
  width: 300px;
  height: auto;
}

@keyframes loop {
  0% {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes loop2 {
  0% {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200%);
  }
}

.infinite-scroll__container:first-child {
  animation: loop 80s -40s linear infinite;
}
.infinite-scroll__container:last-child {
  animation: loop2 80s linear infinite;
}


@media screen and (max-width: 699px) {
  .virtualtour_header h2 {
    font-size: 24px;
  }
  .virtualtour_header h3 {
    font-size: 22px;
  }
  .virtualtour_header a {
    margin-block: 2em;
  }

  .virtualtour_loop {
    margin-block-start: 4em;
  }
  .infinite-scroll__img-wrap {
    width: 210px;
  }
}



/* --------------------------------------------------------------
  PORTS & ROUTES / 主要港と基本航路図
---------------------------------------------------------------- */
.ports-lead {
  width: 70%;
  margin: 0 auto 0 0;
}
.ports-lead h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-corporate);
  margin-block-end: 1em;
}

.ports-body {
  margin-block-start: 8em;
}

.tabs input[type="radio"] {
  display: none;
}
.tabs__contents {
  padding-block-start: 4em;
}
.tabs__content {
  display: none;
}

.tabs__buttons {
  display: flex;
}


/* 各タブに下線をつける */
.tabs__button {
  flex: 1 1 0;
  border: solid 1px var(--color-text);
  border-bottom: solid 1px var(--color-text);
  border-radius: 10px 10px 0 0;
  padding: 15px 0;
  text-align: center;
  font-size: 22px;
  font-weight: 500;
  background: var(--color-offwhite);
  cursor: pointer;
  transition: background-color .3s ease;
  position: relative;
}
.tabs__button:focus-visible {
  outline: solid 2px var(--color-corporate);
  outline-offset: 2px;
}

#tabs-1:checked ~ .tabs__buttons > label[for="tabs-1"],
#tabs-2:checked ~ .tabs__buttons > label[for="tabs-2"],
#tabs-3:checked ~ .tabs__buttons > label[for="tabs-3"]{
  background: transparent;
  border-bottom-color: transparent;
  position: relative;
  z-index: 1;
  margin-bottom: -1px;
}

#tabs-1:checked ~ .tabs__contents #tabs-content-1,
#tabs-2:checked ~ .tabs__contents #tabs-content-2,
#tabs-3:checked ~ .tabs__contents #tabs-content-3 {
  display: block;
  animation: tabs-fade-in .5s ease-in-out forwards;
}
@keyframes tabs-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.map {
  width: 70%;
  max-width: 750px;
  margin-inline: auto;
}
.map__route {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 5em;
}
.map__label {
  position: relative;
  padding-inline: 1.5em;
  font-weight: 500;
}
.map__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  width: 1em;
  height: 1em;
}

/* 種別カラー */
.map__label--type2::before {
  background: #FF8730;
}
.map__label--type3::before {
  background: #0075FF;
}



@media screen and (max-width: 699px) {
  .ports-lead {
    width: 100%;
    margin: 0 auto;
  }
  .ports-body {
    margin-block-start: 5em;
  }

  .tabs__button {
    font-size: 12px;
  }

  .map {
    width: 100%;
  }
  .map__route {
    margin-top: 1em;
    flex-wrap: wrap;
    gap: .5em;
  }
}