/* ベース */
body {
  font-family: sans-serif;
}

/* レイアウト */
img {
  max-width: 100%;
  height: auto;
}
ul {
  list-style: none;
}
main {
  background-color: #efefef;
}
.ly_cont {
  /* 左中央揃えのための指定 */
  max-width: 1200px;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* ヘッダー */
.caution-text {
  color: #d40152;
}

.header {
  padding-top: 20px;
  border-bottom: 1px solid #ddd;
}
.header__inner {
  margin-right: auto; /* 中央寄せ */
  margin-left: auto; /* 中央寄せ */
}
.header-utilities {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.level1-heading {
  padding: 30px 10px; /* テキストの上下の余白、左右の余白。見出しモジュールに関しては相対値のemでなく計算が容易な固定値のpxを使用する */
  background: linear-gradient(#777, rgba(0, 0, 0, 0));
  color: #fff; /* 文字の色 */
  font-size: 2rem; /* remの基準となるルート要素(通常はhtml要素)のfont-sizeは16px。そのため、2rem → 32px */
  text-align: center; /* 段落で指定する文字揃え ※見出しの位置もこれに従う */
}

.level1-heading__inner {
  font-family: SimSun;
  position: relative;
  display: inline-block; /* これにより親の段落のtext-alignの値を継承されることで、見出しの揃えのためにCSSをいちいち書く必要がない */
  transform: translateY(
    -20%
  ); /* テキストと下線をセットとして天地中央揃えに見えるよう調整。これをしないと下寄りに見えてしまう */
}

.level1-heading__inner::after {
  /* after疑似要素を使用して下線を生成 */
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%; /* 下線の起点をテキストの中央に設定 */
  width: 80px;
  height: 1px;
  background-color: currentColor;
  transform: translateX(-50%); /* 下線を対象要素(下線)の半分の大きさ分(50%)、左に寄せる(マイナス) */
}
.header-nav {
  display: flex;
  justify-content: space-around;
  margin-left: -40px;
  margin-right: -5px;
  max-width: 100%;
  box-sizing: content-box;
}
.nav__image {
  width: 50px;
}
.header-nav__item {
  flex-grow: 1;
  text-align: center;
}
.header-nav__item:last-child .header-nav__link::after {
  content: none;
}
.header-nav__link {
  position: relative;
  display: block;
  border-bottom: 4px solid transparent;
  color: #222;
  text-decoration: none;
  transition: 0.25s;
}
.header-nav__link:focus,
.header-nav__link:hover {
  border-bottom-color: #e25c00;
}
.header-nav__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 20px;
  background-color: #ddd;
  transform: translateY(-50%);
}

.jumbotron {
  height: calc(
    69.44444vw + -233.33333px
  ); /* スクリーンサイズを縮小した際、高さも縮み縦横比が維持されるようvwの相対比を指定 */
  background-position: center center;
  background-size: cover;
  margin-top: -16px;
}

.jumbotron__inner {
  position: relative; /* position: absolute;を使用するキャッチコピーの起点とするための指定 */
  max-width: 1230px; /* 最大のコンテンツ幅 */
  height: 100%;
  /* 下の2つのプロパティで左右中央寄せに */
  margin-right: auto;
  margin-left: auto;
}

.jumbotron__title {
  position: absolute;
  top: 20%;
  right: 0;
  padding: 40px;
  background-color: rgba(37, 37, 37, 0.75);
  color: #fff;
  font-size: calc(
    1.81818vw + 14.18182px
  ); /* スクリーンサイズを縮小した際、ガクッとならず自然にフォントサイズを切り替える */
  line-height: 1.5;
  transform: translateY(-50%);
}

.jumbotron__title-en {
  position: absolute;
  top: 30%;
  right: 0;
  padding: 40px;
  color: #7fcfe7;
  font-size: calc(
    1.81818vw + 14.18182px
  ); /* スクリーンサイズを縮小した際、ガクッとならず自然にフォントサイズを切り替える */
  line-height: 1.5;
  transform: translateY(-50%);
  font-weight: 200; /* ultra slim */
  font-style: italic;
}

@media screen and (min-width: 1200px) {
  /* 「コンテンツ幅以上であれば」というメディアクエリを追加し、高さとフォントサイズが大きくなり続けることを防ぐ */
  .jumbotron {
    height: 600px;
  }

  .jumbotron__title {
    font-size: 2.25rem;
  }
}

@media screen and (max-width: 768px) {
  .jumbotron {
    height: 300px;
  }

  .jumbotron__title {
    top: 15%;
    left: 50%;
    width: 90%;
    padding: 15px;
    font-size: 1.25rem;
    text-align: center;
    transform: translate(-50%, -50%);
  }

  .jumbotron__title-en {
    top: 24%;
    left: 50%;
    width: 90%;
    padding: 15px;
    font-size: 1.25rem;
    text-align: center;
    transform: translate(-50%, -50%);
  }
}

.beach-en {
  color: #ffffff81;
  font-style: italic;
}

/* コンテンツエリア */
.pager {
  /* 左右中央揃えにしつつ、横幅がコンテンツエリアをはみ出す場合は水平スクロールを行う */
  display: flex;
  overflow-x: auto; /* ページャーの横幅がコンテンツ幅を超えた場合水平スクロールにする */
}

.pager__inner {
  /* 左右中央揃えにしつつ、横幅がコンテンツエリアをはみ出す場合は水平スクロールを行う */
  display: flex; /* ページャーの項目をそれぞれ横並びにする */
  margin-right: auto;
  margin-left: auto;
}

.pager__inner > *:last-child {
  margin-right: 0;
}

.pager__item {
  margin-right: 30px; /* ページャーの左右の余白 */
}

.pager__link {
  /* display~justify-contentプロパティは「数字を左右・天地中央揃えで配置する」ことを表す */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px; /* ページャーの幅 */
  height: 40px; /* ページャーの高さ */
  border: 1px solid currentColor;
  color: #e25c00;
  text-decoration: none;
  transition: 0.25s;
}

.pager__link:focus,
.pager__link:hover {
  background-color: #e25c00;
  color: #fff;
  opacity: 0.75;
}

.pager__link--active {
  /* アクティブな要素に対する指定　※今回はspan要素 */
  background-color: #e25c00;
  color: #fff;
  pointer-events: none; /* ホバーやフォーカス、クリックなどのポインター関連のイベントの対象外にする */
}

.accordion__cards {
  width: 90%; /* これを指定しないと、カード部分は横幅いっぱいに広がる */
  /* 下の2つのプロパティで左右中央揃えにする */
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 10px; /* 後続のコンテンツ(今回はCTAエリア)との余白確保 → 10px + 30px */
  padding-top: 10px;
}

.card {
  background-color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  padding-top: 10px;
}

.card__img-wrapper {
  position: relative; /* 下でposition: absolute;を使用するため、画像の起点がこの要素となるよう指定している */
  /* 画像の表示領域としての高さを確保。下でposition: absolute;を使用するため、heightでは高さをうまく確保できない */
  padding-top: 56.25%; /*画像の縦横比はおおよそ16:9になる */
  overflow: hidden; /* 画像のトリミングのために使用 */
}

.changeable {
  /* ホバー時に切り替わる画像 */
}

.changeable .active {
  opacity: 0;
}

.changeable:hover .active {
  opacity: 1;
}

.card__img {
  /* width以外のプロパティは画像を天地中央でトリミングするためのテクニック */
  /* これらのテクニックにより、今後想定しないサイズの画像が使用されても、ある程度までは自動で天地中央揃えでトリミングできる */
  position: absolute;
  top: 50%;
  width: 100%; /* 横幅いっぱいに表示させる */
  transform: translateY(-50%);
}

.card__img-wrapper:focus,
.card__img-wrapper:hover {
  transform: scale(1.5); /* 拡大 */
}

.card__body {
  padding: 15px;
}

.card__body > *:last-child {
  margin-bottom: 0;
}

.card__title {
  margin-bottom: 5px;
  font-size: 1.125rem;
  font-weight: bold;
}

.card__text {
  color: #777;
}

.card--link {
  display: block;
  color: currentColor;
  text-decoration: none;
  transition: 0.25s;
}

.card--link .card__title,
.card--link .card__text {
  transition: 0.25s;
}

.card--link:focus,
.card--link:hover {
  opacity: 0.75;
}

.card--link:focus .card__title,
.card--link:focus .card__text,
.card--link:hover .card__title,
.card--link:hover .card__text {
  color: #e25c00;
  text-decoration: underline;
}

.cards {
  display: flex;
  flex-wrap: wrap;
}

.cards--col3 {
  margin-bottom: 0px;
}

.cards--col3 > .cards__item {
  /* 各カードに対する指定 */
  width: 31.707%;
  margin-right: 2.43902%; /* カラム右側の余白 */
  /* 上下のガター確保のためのスタイリング */
  margin-bottom: 30px; /* 各カードに対する指定 */
}

.cards--col3 > .cards__item:nth-of-type(3n) {
  /* セレクターに付加しているnth-of-type疑似クラスを3n(3の倍数)として指定 */
  margin-right: 0; /* 最終列のカラム落ち防止 */
}

@media screen and (max-width: 768px) {
  /* メディアクエリ適用時 */
  /* 「col3」のモディファイアを含まない　→　メディアクエリ適用時は必ず1カラムにするため */
  .cards > .cards__item {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }
}

.after-icon::after {
  display: inline-block; /* これにより親の段落のtext-alignの値を継承されることで、ボタンの揃えのためにCSSをいちいち書く必要がない */
  margin-left: 0.3em; /* アイコンの左側の余白 */
  margin-right: 0.3em; /* アイコンの右側の余白 */
  color: #e25c00; /* 文字の色 */
  font-family: "Font Awesome 5 Free";
  font-weight: 900; /* Font Awesomeのアイコンを表示させるための指定 */
}
.after-icon--chevron-right::after {
  /* 三角形の1辺がないような矢印は「chevron」と呼ばれる */
  content: "";
  width: 0.375em;
  height: 0.375em;
  border-top: 0.125em solid #e25c00; /* 右向き矢印のベース */
  border-right: 0.125em solid #e25c00; /* 右向き矢印のベース */
  /* 上2行で描画したボーダーを傾けることで、右向きの矢印にする。
  rotate (45deg)だけで左向きの矢印にできるが、テキストに対して若干下寄りになるため、
  天地中央揃えにするためにtranslateY (-30%)を加える */
  transform: rotate(45deg) translateY(-30%);
}

/* フッター */
.footer {
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: #222;
}
.footer--border-top-gray {
  border-top: 1px solid #777;
}
.footer__inner {
  margin-right: auto; /* 中央寄せ */
  margin-left: auto; /* 中央寄せ */
}
.footer-nav {
  display: flex;
  justify-content: space-around;
  margin-left: -40px;
  margin-right: -5px;
  max-width: 100%;
  box-sizing: content-box;
}
.footer-nav__item {
  flex: 1;
  text-align: center;
}
.footer-nav__item > *:last-child {
  margin-bottom: 0;
}
.footer-nav__item:last-child .footer-nav__link::after {
  content: none;
}
.footer-nav__link {
  position: relative;
  display: block;
  padding-top: 15px;
  padding-bottom: 15px;
  margin-bottom: 10px;
  color: #fff;
  text-decoration: none;
}
.footer-nav__link:focus,
.footer-nav__link:hover {
  text-decoration: underline;
}
.footer-nav__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 15px;
  background-color: currentColor;
  transform: translateY(-50%);
}
.footer-copyright {
  display: block;
  color: #ddd;
  font-size: 12px;
  text-align: center;
}
.img-flex {
  display: flex;
}

/* 個別画像ローディングオーバーレイ（Three.js版） */
.image-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff; /* 完全な白背景 */
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05); /* 内側にほんのり影を落とす */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.image-loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Three.js を挿入するための枠 */
.cube-box {
  width: 60px;
  height: 60px;
}
