@charset "UTF-8";
.heritage-header {
  margin: 65px 0 0;
}

.heritage-title {
  text-align: center;
}

@media screen and (max-width: 768px) {
  .heritage-header {
    margin: 28px 0 0;
  }
}

.heritage-main {
  display: flex;
  justify-content: center;
  column-gap: 64px;
  margin: 110px 0 0;
  padding: 0 64px;
}

.heritage-main figure {
  width: 47.5%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
}

.heritage-main figure img {
  width: 100%;
}

.heritage-main .heritage-text {
  flex: 1;
}

.heritage-main .heritage-text .heritage-subtitle {
  color: var(--main-color-orange);
}

.heritage-main .heritage-text .heritage-subtitle + p {
  margin: 46px 0 0;
  font-size: 1.125em;
  font-weight: 500;
}

.heritage-main .heritage-text p + p {
  margin: 33px 0 0;
  font-size: 1em;
}

@media screen and (max-width: 768px) {
  .heritage-main {
    flex-direction: column;
    row-gap: 38px;
    margin: 27px 0 0;
    padding: 0 16px;
  }

  .heritage-main figure {
    width: 100%;
  }

  .heritage-main .heritage-text .heritage-subtitle {
    text-align: center;
  }

  .heritage-main .heritage-text .heritage-subtitle + p {
    margin: 20px 0 0;
    font-size: 1em;
  }

  .heritage-main .heritage-text p + p {
    margin: 19px 0 0;
    font-size: 0.875em;
  }
}

.heritage-links {
  width: 100%;
  margin: 118px 0 0;
  padding: 73px 120px 70px;
  background: url('../images/top/about-bg.jpg') center center no-repeat;
}

.heritage-links ul {
  display: flex;
  column-gap: 64px;
}

.heritage-links ul li {
  width: calc(50% - 28px);
}

.heritage-links ul li .link-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  background-color: #fff;
}

.heritage-links ul li .link-panel .link-panel-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 39px 40px;
  flex: 1;
}

.heritage-links ul li .link-panel .link-panel-text p {
  margin: 0;
  color: var(--main-color-black);
}

.heritage-links ul li .link-panel .link-panel-text p:first-child {
  font-size: 1.75em;
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: 600;
}

.heritage-links ul li .link-panel .link-panel-text p:last-child {
  display: block;
  position: relative;
  margin: 24px 0 0;
  font-size: 1.125em;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  transition: color 0.3s ease;
}

.heritage-links ul li .link-panel .link-panel-text p:last-child span {
  display: block;
  position: absolute;
  top: 50%;
  left: 92px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  overflow: hidden;
}

.heritage-links ul li .link-panel .link-panel-text p:last-child span::before,
.heritage-links ul li .link-panel .link-panel-text p:last-child span::after {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background: url('../images/icon_outer.png') center center / cover no-repeat;
  content: "";
  transition: all 0.3s ease;
}

.heritage-links ul li .link-panel .link-panel-text p:last-child span::before {
  top: 100%;
  left: -21px;
}

.heritage-links ul li .link-panel .link-panel-text p:last-child span::after {
  left: 0;
}

.heritage-links ul li .link-panel .link-panel-image {
  width: 100%;
  overflow: hidden;
}

.heritage-links ul li .link-panel .link-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

@media screen and (min-width: 769px) {
  .heritage-links ul li .link-panel:hover .link-panel-text p:last-child {
    color: var(--main-color-orange);
  }

  .heritage-links ul li .link-panel:hover .link-panel-text p:last-child span::before,
  .heritage-links ul li .link-panel:hover .link-panel-text p:last-child span::after {
    background: url('../images/icon_outer_orange.png') center center / cover no-repeat;
  }

  .heritage-links ul li .link-panel:hover .link-panel-text p:last-child span::before {
    top: 50%;
    left: 0;
  }
  
  .heritage-links ul li .link-panel:hover .link-panel-text p:last-child span::after {
    top: 0%;
    left: 22px;
  }

  .heritage-links ul li .link-panel:hover .link-panel-image img {
    transform: scale(1.05);
  }
}
@media screen and (max-width: 768px) {
  .heritage-links {
    margin: 55px 0 0;
    padding: 34px 24px 36px;
  }

  .heritage-links ul {
    flex-direction: column;
    row-gap: 28px;
  }

  .heritage-links ul li {
    width: 100%;
  }

  .heritage-links ul li .link-panel .link-panel-text {
    padding: 19px 24px 26px;
  }

  .heritage-links ul li .link-panel .link-panel-text p {
    margin: 0;
    color: var(--main-color-black);
  }

  .heritage-links ul li .link-panel .link-panel-text p:first-child {
    font-size: 1.375em;
  }

  .heritage-links ul li .link-panel .link-panel-text p:last-child {
    margin: 23px 0 0;
    font-size: 1em;
  }

  .heritage-links ul li .link-panel .link-panel-text p:last-child span {
    left: 80px;
  }
}

/* パンくず */
.breadcrumb {
  margin: 0;
}
