:root {
  --color-gray: #d3d3d3;
  --color-white: #fff;
  --color-black: #000;
  --color-red: #e74c3c;
  --color-slategray: #708090;
  --color-link: #b0c4de;

  --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;
  --z-index-top-menu: 2000;
}

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: #fff;
}

/*デザイン上非表示*/
.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);
}

/*選択中は判定なし*/
a.is-active {
  pointer-events: none;
}

/*PC・スマホ切り替え*/
.pc {
  display: block;
}

.sp {
  display: none;
}
/******************/

#all-wrap {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  min-height: 100vh;
  /*background: URL(../image/common/dsr_portal_bg3.png) no-repeat center/cover;*/
}

#main-wrap {
  position: relative;
  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;
  pointer-events: none;
}
/**************************************/
/* header */
#header-wrap {
  width: 100%;
  height: 108px;
  margin: 0 auto;
  background: URL(../image/common/dsr_portal_header02.png) no-repeat;
  background-size: cover;
  background-position: bottom center;
  z-index: var(--z-index-header);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  height: 100%;
}

.header-title {
  max-width: 728px;
  margin: 0 auto;
}

.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: #555;
}

.global-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #333;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

/* ハンバーガーボタン */
.hamburger-btn {
  display: none;
  position: relative;
  width: 61px;
  height: 60px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1100;
}

/**************************************/
/* footer */
#footer-wrap {
  z-index: 1000;
  background: URL(../image/common/dsr_portal_footer02.png) no-repeat center/cover;
}

.footer-inner {
  padding: 2% 0;
}

.footer-link-wrap {
  display: flex;
  max-width: 369px;
  width: 96%;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
}

/*固定リンク*/
.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;
}

/*Xロゴ*/
.footer-link-wrap a:nth-child(1) {
  max-width: 67px;
  width: 18%;
}

/*SSBロゴ*/
.footer-link-wrap a:nth-child(2) {
  max-width: 243px;
  width: 66%;
}

.footer-link-wrap a:hover {
  opacity: 0.7;
}

/**************************************/
/* アコーディオンメニュー */
.accordion-list .accordion-btn {
  position: relative;
  width: 200px;
  margin: 0 auto;
  padding: 15px 40px 15px 20px;
  background: #1f2937;
  cursor: pointer;
  border-top: 1px solid #374151;
}

.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; /* JSで開閉を制御 */
  margin-top: 20px;
  /*padding: 20px;*/
  /*background: #111827;*/
  /*border-top: 1px solid #374151;*/
}

/**************************************/
/*タブメニュー*/
.tab-contents-item {
  display: none;
}

.tab-contents-item.is-active {
  display: block;
}

.contents-wrap {
  max-width: 1080px;
  width: 96%;
  margin: 0 auto;
}

/**************************************/
/*メニュー*/
.top-menu {
  max-width: 985px;
  width: 98%;
  margin: 0 auto;
  aspect-ratio: 985/91;
  background: URL(../image/common/dsr_portal_menu02.png) no-repeat center/cover;
}

.top-menu ul {
  display: flex;
  max-width: 793px;
  width: 80%;
  height: 100%;
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
}

.top-menu ul li:nth-child(1) {
  width: 17%;
  aspect-ratio: 132/50;
}

.top-menu ul li:nth-child(2) {
  width: 24%;
  aspect-ratio: 192/50;
}

.top-menu ul li:nth-child(3) {
  width: 29%;
  aspect-ratio: 228/50;
}

.top-menu ul li:nth-child(4) {
  width: 20%;
  aspect-ratio: 165/50;
}

.top-menu-text {
  display: none;
}

/**************************************/
.contents-wrap + .contents-wrap {
  margin-top: 50px;
}

.contents-wrap h2 {
  max-width: 602px;
  width: 60%;
  margin: 0 auto;
}

.contents-item + .contents-item {
  margin-top: 30px;
}

/**************************************/
/*トピックス*/
.topics-list {
  display: flex;
  max-width: 1290px;
  margin: 50px auto 0;
  /*justify-content: space-between;*/
  justify-content: center;
}

.topics-list li {
  width: 33%;
}

@media screen and (max-width: 414px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }

  /**************************************/
  #all-wrap {
    background: URL(../image/common/dsr_portal_bg3_sp.png) no-repeat center/cover;
  }

  /**************************************/
  /*header*/
  #header-wrap {
    height: 60px;
    background: URL(../image/common/dsr_portal_header02_sp.png) no-repeat;
  }

  .header-title {
    width: 96%;
  }

  /**************************************/
  /* footer */
  #footer-wrap {
    background: URL(../image/common/dsr_portal_footer02_sp.png) no-repeat center/cover;
  }

  /**************************************/
  /*ハンバーガーメニュー*/
  .menu-wrap {
    position: fixed;
    top: 0;
    right: 0;
    z-index: var(--z-index-top-menu);
  }

  .hamburger-btn {
    display: block; /* スマホで表示 */
  }

  .top-menu {
    position: absolute;
    /*top: 70px;*/ /* ヘッダーの高さ */
    width: 100vw;
    right: 0;
    background: #000;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    aspect-ratio: auto;

    /* アコーディオンのためのスタイル */
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0.3s ease;
  }

  .top-menu.is-active {
    max-height: 500px; /* メニューの高さに合わせて調整 */
    visibility: visible;
  }

  .top-menu ul {
    width: 200px;
    flex-direction: column;
    gap: 0;
    padding: 2em 0;
    text-align: center;
    font-size: 24px;
  }

  .top-menu li:last-child {
    border-bottom: none;
  }

  .top-menu a {
    display: block;
    padding: 15px 20px;
    width: 100%;
  }

  .top-menu a::after {
    display: none; /* スマホでは下線アニメーションなし */
  }

  .top-menu-text {
    display: block;
  }

  .top-menu ul img {
    display: none;
  }

  .top-menu ul li:nth-child(1),
  .top-menu ul li:nth-child(2),
  .top-menu ul li:nth-child(3),
  .top-menu ul li:nth-child(4) {
    width: 100%;
    aspect-ratio: auto;
  }

  .top-menu ul li a.is-active {
    color: var(--color-slategray);
  }

  /**************************************/
  .topics-list li {
    width: 100%;
  }
}
