body {
  color: #222;
  font-family: sans-serif;
  line-height: 1.5;
}
a {
  color: #0069ff;
}
img {
  max-width: 100%;
  vertical-align: top;
}
ul {
  list-style: none;
}

/* ヘッダー */
.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;
  margin-bottom: -17px;
}
.jumbotron__inner {
  position: relative; /* position: absolute;を使用するキャッチコピーの起点とするための指定 */
  max-width: 1230px; /* 最大のコンテンツ幅 */
  height: 100%;
  /* 下の2つのプロパティで左右中央寄せに */
  margin-right: auto;
  margin-left: auto;
}
.jumbotron__title {
  position: absolute;
  top: 50%;
  left: 0;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: calc(
    1.81818vw + 14.18182px
  ); /* スクリーンサイズを縮小した際、ガクッとならず自然にフォントサイズを切り替える */
  line-height: 1.5;
  transform: translateY(-50%);
}
@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 {
    left: 50%;
    width: 90%;
    padding: 15px;
    font-size: 1.25rem;
    text-align: center;
    transform: translate(-50%, -50%);
  }
}

/* コンテンツエリア */
.accordion {
  background-color: #efefef;
  padding-bottom: 20px;
}

.accordion__body + .accordion__title {
  /* 2つ目以降のタイトルに設定 */
  margin-top: 20px; /* アコーディオンが開かれていない状態でも確実に上下の余白を確保 */
}

.accordion__btn {
  position: relative;
  /* 下の2つのプロパティはbutton要素に対する調整スタイル */
  display: block; /* ブロックボックスとする。デフォルトはinline-block */
  width: 100%; /* デフォルトはauto */
  padding: 10px 40px 10px 15px;
  background-color: #777;
  border: 2px solid #777;
  color: #fff;
  font-size: 1.125rem;
  text-align: left;
  cursor: pointer; /* クイッカブルな要素であることを明示 */
  transition: 0.25s;
}

.accordion__btn::before {
  /* before疑似要素を利用したセレクターでは、プラス・マイナスアイコン両方の横棒を生成 */
  content: ""; /* 疑似要素を空の状態で生成 */
  /* 下の3つのプロパティによって、右から15px、天地中央の位置に配置 */
  position: absolute;
  top: 50%;
  right: 15px;
  /* 下の4つのプロパティで実際に横棒を描画 */
  display: block;
  width: 20px;
  height: 2px;
  background-color: currentColor;
  transform: translateY(
    -50%
  ); /* 要素の半分の大きさだけ上方向にずらすことで、天地中央に */
}

.accordion__btn::after {
  /* after疑似要素を利用したセレクターでは、プラスアイコンの縦棒を生成 */
  content: ""; /* 疑似要素を空の状態で生成 */
  /* 下の3つのプロパティによって、右上から24px、天地中央の位置に配置 */
  position: absolute;
  top: 50%;
  right: 24px;
  /* 下の4つのプロパティで実際に縦棒を描画 */
  display: block;
  width: 2px;
  height: 20px;
  background-color: currentColor;
  transform: translateY(
    -50%
  ); /* 要素の半分の大きさだけ上方向にずらすことで、天地中央に */
}

.accordion__btn:focus,
.accordion__btn:hover {
  background-color: #fff;
  color: #777;
}

.accordion__btn--active::after {
  /* タイトルがアクティブ時(アコーディオンが開かれた状態)の指定 */
  content: none; /* 疑似要素が生成されなくなるため、縦棒が消えて横棒だけが残る　→　マイナスアイコンになる */
}

.accordion__body {
  /* display: none;がかかっている要素はmarginの値の算出がされないため、
    アコーディオンが開かれていない限り、上下の要素がくっついてしまう */
  display: none; /* アコーディオンのコンテンツ部分は初期状態では閉じられている(非表示) */
  padding: 15px;
  border: 1px solid #ddd;
  background-color: #fff;
}

.accordion__body > *:first-child {
  /* css-wipeではスタイリングなし */
}

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

.accordion__body--active {
  display: block;
}

.accordion__body:target {
  /* 別ページのリンクから特定のタイトルに飛んできた時、そのコンテンツを表示 */
  display: block;
}

.accordion__text {
  margin-bottom: 20px;
}

.btn {
  display: inline-block; /* これにより親の段落のtext-alignの値を継承されることで、ボタンの揃えのためにCSSをいちいち書く必要がない */
  width: 300px; /* 長いテキストが入ったときに改行させたくなえれば「min-width」を使用する ※改行しない代わりにボタンの横幅が伸びる */
  max-width: 100%; /* スクリーンサイズが狭くなった際にボタンが見切れないように、横幅の最大値は親のボックスに従うようにする */
  padding: 20px 10px; /* テキストの上下の余白、左右の余白。これにより長いテキストが入ってもボタン外にあふれない */
  background-color: #e25c00; /* ボタンの色 */
  border: 2px solid transparent; /* ホバー時に上下・左右それぞれにボーダー文の2pxが追加される。transparentは透明を意味 */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  color: #fff; /* 文字の色 */
  font-size: 1.125rem; /* remの基準となるルート要素(通常はhtml要素)のfont-sizeは16px。そのため、1.125rem → 18px */
  text-align: center; /* 段落で指定する文字揃え ※ボタンの位置もこれに従う */
  text-decoration: none;
  transition: 0.25s;
}

.btn:focus,
.btn:hover {
  /* カーソルをボタンに合わせている時(ホバー時) */
  background-color: #fff;
  border-color: currentColor; /* 万が一文字色が変わってもボーダー色もそれに合わせ自動的に変わる */
  color: #e25c00;
}

.media {
  display: flex; /* 画像とテキストを横並び、かつ、天地中央揃えに */
  align-items: center;
}

@media screen and (max-width: 768px) {
  .media {
    display: block;
  }
}

.media__img-wrapper {
  /* スクリーンサイズを縮小した際に画像、テキストの両方を自然に縮小させるための指定 */
  flex: 0 1 27.58333%; /* flex-grow flex-shrink flex-bias */
  /* スクリーンサイズを縮小した際に合わせて縮小する余白を指定 */
  margin-right: 3.33333%;
}

.media__img {
  width: 100%;
}

/* フッター */
.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;
}
