@charset "utf-8";

/* -----ここから下に記述してください----- */
/* -----------------------------
  共通設定
----------------------------- */
html {
  visibility: hidden;
}
html.wf-active {
  visibility: visible;
}
body {
  color: #333;
}
body.no-scroll {
  overflow: hidden;
}
button{
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}
a {
  text-decoration: none;
}
img {
  width: 100%;
  display: block;
}
@keyframes rotate {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg); }
}
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.contents {
  display: flex;
  font-family: 'Gentium Basic';
}
.sp-on {
  display: none;
}

/* -----------------------------
  サイドバー
----------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 20%;
  height: 100vh;
  padding: 30px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.title a {
  font-size: 46px;
  font-family: 'EB Garamond';
  font-weight: bold;
  background-image: linear-gradient(90deg, #247fff, #db2ffb);
  -webkit-background-clip:text;
  -webkit-text-fill-color: transparent;
}
.logo {
  width: 40px;
  margin: 0 auto;
}
.countries {
  margin-top: 100px;
}
.countries-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.countries-list a {
  font-size: 22px;
  color: #333;
}
.sns {
  margin-top: auto;
}
.sns-list {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.sns-list li {
  width: 25px;
}

/* -----------------------------
  トップページ＿メインコンテンツ
----------------------------- */
.main-contents {
  position: relative;
  margin-left: 20%;
  width: 100%;
  height: 100vh;
}
.places-list {
  display: flex;
  flex-wrap: wrap;
}
.places-list li {
  width: calc(100% / 4);
  height: 50vh;
  overflow: hidden;
}
.places-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s;
  transform: scale(1);
  backface-visibility: hidden;
}
.places-list a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1;
}
.places-list a::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  transition: opacity 0.5s;
  opacity: 1;
  z-index: 1;
}
.places-list li.is-active a::before,
.places-list li:hover a::before {
  opacity: 0;
}
.places-list li.is-active img,
.places-list li:hover img {
  transform: scale(1.1);
}

/* -----------------------------
  詳細ページ
----------------------------- */
.place {
  display: flex;
  height: 100vh;
  padding: 30px;
}
.place-img {
  width: 45%;
  height: 100%;
}
.place-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.place-info {
  display: flex;
  flex-direction: column;
  width: calc(100% - 45%);
  margin-top: 20px;
  padding: 0 7% 3% 7%;
}
.place-title {
  font-size: 40px;
  text-align: center;
}
.place-title span {
  padding-bottom: 5px;
  border-bottom: 2px solid #c026df;
}
.place-item {
  margin: 40px 0;
  max-height: calc(100% - 30vh);
  overflow: auto;
}
.place-item dt {
  font-size: 26px;
  font-weight: bold;
  border-left: 3px solid #333;
  margin: 30px 0 10px 0;
  padding-left: 15px;
}
.place-item dd {
  font-size: 20px;
  line-height: 1.8;
}
/* ボタン */
.btn-wrap {
  text-align: center;
}
.btn {
  position: relative;
  display: inline-block;
  width: 300px;
  padding: 15px 0;
  color: #fff;
  font-size: 20px;
  background-color: #9c1a82;
  text-align: center;
  border-radius: 5px;
  margin-bottom: 10px;
  overflow: hidden;
  z-index: 1;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform 0.5s;
  background-color: #80176b;
  z-index: -1;
}
.btn--arrow {
  position: relative;
}
.btn--arrow::after {
  content: "";
  position: absolute;
  right: 7%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: translateY(-50%) translateX(0) rotate(45deg);
  transition: transform 0.5s;
}
/* PCだけhover */
@media (hover: hover) {
  .btn:hover::before {
    transform-origin: left top;
    transform:  scale(1, 1);
    transition: transform 0.5s;
  }
  .btn:hover::after {
    transform: translateY(-50%) translateX(6px) rotate(45deg);
  }
}
/* -----------------------------
  ローダー
----------------------------- */
.loader-wrap {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  animation: fadeOut 0.4s linear 0.4s 1 forwards;
}
.loader {
  position: relative;
  width: 100px;
  height: 100px;
}
.ring {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.ring-1 {
  width: 100px;
  height: 50px;
  border-radius: 100px 100px 0 0;
  border: 2px solid #c026df;
  border-bottom: none;
  animation: rotate 2s linear infinite;
  transform-origin: 50% 100%;
}
.ring-2 {
  width: 80px;
  height: 40px;
  top: 50px;
  border-radius: 0 0 80px 80px;
  border: 2px solid #c026df;
  border-top: none;
  animation: rotate 2s linear infinite reverse;
  transform-origin: 50% 0%;
}
.ring-3 {
  width: 60px;
  height: 30px;
  top: 50px;
  border-radius: 0 0 60px 60px;
  border: 2px solid #c026df;
  border-top: none;
  animation: rotate 1s linear infinite;
  transform-origin: 50% 0%;
}

/* ==============================================
  レスポンシブ
============================================== */
@media screen and (max-width: 768px) {
  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }
  button:active,
  a:active {
    opacity: 0.5;
  }
  #page-index .countries-list a:active {
    transform: translateX(-50%) scale(0.95);
    transition: none;
  }
  .contents {
    display: block;
  }
  .sp-on {
    display: block;
  }
/* -----------------------------
  【SP】サイドバー_トップページ
----------------------------- */
  .sidebar {
    width: 100%;
    z-index: 10;
  }
  #page-index .countries-list {
    position: absolute;
    height: 30px;
    width: 100%;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  #page-index .countries-list li a {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    opacity: 0;
    transition: all 0.4s linear 0s;
    display: block;
    z-index: -1;
    pointer-events: none;
  }
  #page-index .countries-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #4972fa;
    display: block;
    transition: all 0.2s linear 0.4s;
  }
  #page-index .countries-list li.is-active a {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
  }
  #page-index .countries-list li.is-active a::after {
    width: 100%;
  }
  #page-index .sns {
    margin-bottom: 100px;
  }
/* -----------------------------
  【SP】トップページ＿メインコンテンツ
----------------------------- */
  .main-contents {
    margin-left: 0;
    width: 100%;
  }
  .places-list {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .places-list li {
    width: 100%;
    height: 100vh;
    flex-shrink: 0; 
  }
  [data-slide] {
    position: absolute;
    z-index: 10;
    top: 45%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
  }
  [data-slide="prev"] {
    left: 10px;
    display: none;
  }
  [data-slide="next"] {
    right: 10px;
  }
/* -----------------------------
  【SP】サイドバー_詳細ページ
----------------------------- */
  #page-place .sidebar {
    flex-direction: row;
    height: 45px;
    background: #fff;
    padding: 0;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
  }
  #page-place .title a {
    font-size: 24px;
  }
  #page-place .logo {
    display: none;
  }
  #page-place .nav {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    height: 45px;
    background: #f3f3f3;
    box-shadow: 1px 1px 2px #ccc inset;
  }
  #page-place .countries-list {
    position: static;
    transform: none;
    flex-direction: row;
    align-items: center;
    height: 100%;
    gap: 0;
    overflow: scroll;
  }
  #page-place .countries-list li {
    height: 100%;
  }

  #page-place .countries-list a {
    position: static;
    transform: none;
    color: #333;
    opacity: 1;
    z-index: 10;
    font-size: 18px;
    display: flex;
    align-items: center;
    height: 100%; 
    padding: 0 20px;
  }
  #page-place a:active {
    opacity: 0.5;
    transition: none;
  }
  #page-place .sns {
    margin-top: 0;
  }

/* -----------------------------
  【SP】詳細ページ
----------------------------- */
  .place {
    flex-direction: column;
    padding: 0;
    margin: 90px 0 50px 0;
    height: auto;
  }
  .place-img {
    width: auto;
    height: 580px;
  }
  .place-info {
    width: auto;
  }
}

/* ==============================================
  【PC】トップページ＿アニメーション追加
============================================== */
@media screen and (min-width: 769px) {
  .places-list {
    position: relative;
    height: 100vh;
    display: block;
  }
  .places-list li {
    position: absolute;
    transition: all 1.7s ease-in-out;
    top: 50%;
    left: 50%;
  }
  .places-list.loading a::before {
    opacity: 0;
  }
  .places-list li:nth-child(odd) {
    transform: translate(-50%, -50%) rotate(-180deg);
  }
  .places-list li:nth-child(even) {
    transform: translate(-50%, -50%) rotate(180deg);
  }
  /*上列の指定 アニメーションして回転が0へ向かう*/
  .places-list li.pos1,
  .places-list li.pos2,
  .places-list li.pos3,
  .places-list li.pos4 {
    top: 0;
    transform: translate(0, 0) rotate(0);
  }
  .places-list li.pos1 {left: 0;}
  .places-list li.pos2 {left: 25%;}
  .places-list li.pos3 {left: 50%;}
  .places-list li.pos4 {left: 75%;}

  /*下列の指定* アニメーションして回転が0へ向かう*/
  .places-list li.pos5,
  .places-list li.pos6,
  .places-list li.pos7,
  .places-list li.pos8 {
    bottom: 0;
    transform: translate(0, 0) rotate(0);
  }
  .places-list li.pos5 {left: 0;}
  .places-list li.pos6 {left: 25%;}
  .places-list li.pos7 {left: 50%;}
  .places-list li.pos8 {left: 75%;}
  .places-list li img {
    backface-visibility: inherit;
  }

}