:root {
  --color-gray: #d3d3d3;
  --color-white: #fff;
  --color-black: #000;
  --color-red: #e74c3c;
  --color-slategray: #708090;

  --z-index-bg: -10;
  --z-index-main: 1;
  --z-index-fixed-btn: 100;
  --z-index-header: 1000;
  --z-index-footer: 1000;
  --z-index-loading: 9999;
}

html {
  overflow-y: auto;
}

body {
  font-family: "游ゴシック体", "Yu Gothic", "YuGothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #222222;
  overflow-x: hidden;
}

/* ローディング */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-background);
  z-index: var(--z-index-loading);
  transition: opacity 0.8s, visibility 0.8s;
  opacity: 1;
  visibility: visible;
}

#loading.is-loaded {
  opacity: 0;
  visibility: hidden;
}

.loadding-anime {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%);
}

/*デザイン上非表示*/
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*画像のレスポンシブ*/
.responsive img {
  width: 100%;
  height: auto;
  display: block;
}

/*ホバーエフェクト*/
.img-hover {
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.img-hover:hover {
  filter: brightness(1.2);
}

/*PC・スマホ切り替え*/
.pc {
  display: block;
}

.sp {
  display: none;
}

/*NEWアイコン*/
.new-icon {
  animation: blinking 0.8s ease-in-out infinite alternate;
}

@keyframes blinking {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#all-wrap {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  min-height: 100vh;
}

#main-wrap {
  position: relative;
  padding: 64px 0 70px;
  z-index: var(--z-index-main);
  flex: 1;
}

.bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: var(--z-index-bg);
}

.bg-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.bg-img.is-active {
  opacity: 1;
  pointer-events: auto;
}

.no-transition {
  transition: none !important;
}

/*固定リンク*/
.btn-fixed {
  position: fixed;
  bottom: 10px;
  z-index: var(--z-index-fixed-btn);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-fixed.show {
  opacity: 1;
  pointer-events: auto;
}

.btn-to-top {
  right: 0;
}

/**************************************/
/* header */
#header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: URL(../image/common/dssb2_header.png) no-repeat center/cover;
  z-index: var(--z-index-header);
}

.header-inner {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  font-size: 22px;
  color: var(--color-white);
}

.header-logo a {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}

.global-nav ul {
  display: flex;
  gap: 30px;
}

.global-nav a {
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}
.global-nav a:hover {
  color: var(--color-red);
}

.global-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

.global-nav ul li {
  position: relative;
}

.global-nav .new-icon {
  position: absolute;
  width: 44px;
  top: -12px;
  right: -20px;
}

/* ハンバーガーボタン */
.hamburger-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1100;
}

.hamburger-btn span {
  display: block;
  position: absolute;
  left: 5px;
  width: 30px;
  height: 2px;
  background-color: #333;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn span:nth-child(1) {
  top: 10px;
}
.hamburger-btn span:nth-child(2) {
  top: 19px;
}
.hamburger-btn span:nth-child(3) {
  top: 28px;
}

/* ハンバーガーボタンがアクティブな時（×印） */
.hamburger-btn.is-active span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-active span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/**************************************/
/* footer */
#footer-wrap {
  z-index: var(--z-index-footer);
  background: URL(../image/common/dssb2_footer.png) no-repeat center/cover;
}

.footer-inner {
  max-width: 1197px;
  margin: 0 auto;
  padding: 2% 0;
}

.footer-link-wrap {
  display: flex;
  max-width: 369px;
  width: 30%;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
}

/*Xロゴ*/
.footer-link-wrap a:nth-child(1) {
  max-width: 67px;
  width: 18%;
}

/*SSBロゴ*/
.footer-link-wrap a:nth-child(2) {
  max-width: 269px;
  width: 72%;
}

.footer-link-wrap + .footer-link-wrap {
  margin-left: 10%;
}

.footer-link-wrap a:hover {
  opacity: 0.7;
}

/*権利表記*/
.footer-copyright-wrap {
  margin: 1% auto 0;
}

/**************************************/
/* アコーディオンメニュー */
.accordion-list .accordion-btn {
  display: block;
  position: relative;
  width: 318px;
  margin: 21px auto 0;
  cursor: pointer;
}

.accordion-list .accordion-btn::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  transition: transform 0.3s ease;
}
.accordion-list .accordion-btn.is-active::after {
  transform: translateY(-50%) rotate(45deg);
}

.accordion-list .accordion-content {
  display: none;
}

/**************************************/
/*タブ*/
.tab-btn {
  transition: transform 0.2s ease-in-out;
}

.tab-btn.is-active {
  filter: brightness(1.1);
}

.tab-contents-item {
  display: none;
}

.tab-contents-item.is-active {
  display: block;
}

.contents-wrap {
  max-width: 960px;
  width: 96%;
  margin: 0 auto;
}

.contents-wrap + .contents-wrap {
  margin-top: 50px;
}

.contents-wrap h2 {
  max-width: 515px;
  width: 52%;
  margin: 0 auto;
}

.contents-item h3 {
  margin: 30px 0 0;
}

.contents-item + .contents-item {
  margin-top: 30px;
}

.contents-img-list {
  display: flex;
  width: 98%;
  margin: 10px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}

.contents-img-list li {
  width: 33%;
}

.contents-img-list li + li {
  margin-left: 0.5%;
}

.contents-text {
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.5;
}

.contents-img-list + .contents-text {
  margin-top: 46px;
}

/* ポップアップ矢印変更 */
.fancybox-slide--image {
  padding: 44px 60px;
}

/* 左矢印 */
.fancybox-navigation .fancybox-button--arrow_left {
  background: url("../image/common/left.png") no-repeat center center;
  background-size: contain;
}

/* 右矢印 */
.fancybox-navigation .fancybox-button--arrow_right {
  background: url("../image/common/right.png") no-repeat center center;
  background-size: contain;
}

/* 矢印ボタン共通設定 */
.fancybox-navigation .fancybox-button {
  width: 46px;
  height: 77px;
  padding: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* デフォルトSVG非表示 */
.fancybox-navigation .fancybox-button svg {
  display: none;
}

/*共通ポップアップリスト*/
.popup-list {
  display: grid;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.popup-list li {
  position: relative;
  padding-bottom: 5px;
  font-size: 20px;
  color: var(--color-white);
  transition: color 0.3s;
}

.popup-list li:hover {
  color: var(--color-red);
}

.popup-list li a {
  display: block;
  width: 100%;
}

.popup-list li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.popup-list li:hover::after {
  transform: scaleX(1);
}

.popup-thumb {
  position: absolute;
  width: 150px;
  height: auto;
  border: 2px solid var(--color-white);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  pointer-events: none;
  display: none;
}

/*ヘッダーをハンバーガーメニューに*/
@media (max-width: 1000px) {
  .hamburger-btn {
    display: block; /* スマホで表示 */
  }

  .global-nav {
    position: absolute;
    top: 64px; /* ヘッダーの高さ */
    left: 0;
    width: 100%;
    text-align: center;
    background: var(--color-slategray);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);

    /* アコーディオンのためのスタイル */
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.5s ease, visibility 0.5s ease;
  }

  .global-nav.is-active {
    max-height: 500px; /* メニューの高さに合わせて調整 */
    visibility: visible;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .global-nav li {
    border-bottom: 1px solid #f0f0f0;
  }

  .global-nav li:last-child {
    border-bottom: none;
  }

  .global-nav a {
    display: block;
    padding: 15px 20px;
    width: 100%;
  }

  .global-nav a::after {
    display: none; /* スマホでは下線アニメーションなし */
  }
}

@media screen and (max-width: 414px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }

  .contents-text {
    font-size: 18px;
    line-height: 1.4;
  }

  /*ポップアップ矢印*/
  .fancybox-navigation .fancybox-button {
    display: none;
  }

  .fancybox-slide--image {
    padding-left: 0;
    padding-right: 0;
  }

  /*固定リンク*/
  .btn-to-yoyaku {
    width: 98px;
  }

  .btn-to-top {
    width: 50px;
  }
}
