@charset "UTF-8";
/* --- 基本設定 --- */
* {
  box-sizing: border-box;
}
*::before, *::after {
  pointer-events: none;
}

html {
  scroll-behavior: smooth;
}

@media screen and (min-width: 768px) {
  .sp {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .pc {
    display: none !important;
  }
}

body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0px;
  background-color: #fff;
  font-size: 1.25vw;
  position: relative;
  overflow-x: hidden;
}
@media screen and (max-width: 768px) {
  body {
    font-size: 4vw;
  }
}
body::before {
  content: "";
  background: url(./images/srash.png) no-repeat center center/contain;
  width: 50vw;
  height: 37vw;
  position: fixed;
  top: -2vw;
  right: -7vw;
  z-index: -1;
}
@media screen and (max-width: 768px) {
  body::before {
    width: 100vw;
    height: 76vw;
    top: -2vw;
    right: -1vw;
  }
}
body::after {
  content: "";
  background: url(./images/bg.png) no-repeat bottom center/contain;
  width: 100vw;
  height: 50vw;
  transform: scale(2);
  position: fixed;
  bottom: 20vw;
  left: 0vw;
  z-index: -1;
}
@media screen and (max-width: 768px) {
  body::after {
    height: 10vw;
    transform: scale(5);
    bottom: 18vw;
  }
}

.loading {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999999999;
  transition: 0.4s;
}
.loading.active {
  opacity: 0;
  pointer-events: none;
}

header {
  background: url(./images/header_bg.png) no-repeat bottom center/120%;
  position: relative;
  padding: 1vw 0 1.5vw;
  margin-bottom: 2vw;
}
@media screen and (max-width: 768px) {
  header {
    background: url(./images/header_bg_sp.png) no-repeat bottom center/cover;
    padding: 4vw 0 5vw;
  }
}
header::before {
  content: "";
  background: url(./images/xxx.png) no-repeat center center/contain;
  width: 7.29vw;
  height: 1.51vw;
  position: absolute;
  top: 25%;
  left: 2vw;
  transform: translateY(-50%);
}
@media screen and (max-width: 768px) {
  header::before {
    width: 20%;
    height: 15%;
    top: 20%;
    left: 6vw;
  }
}
header .logo {
  margin: 0 auto;
  width: 7.3vw;
}
@media screen and (max-width: 768px) {
  header .logo {
    width: 22%;
  }
}
header .logo img {
  width: 100%;
}
header h1 {
  margin: 0 auto;
  width: 22.65vw;
}
@media screen and (max-width: 768px) {
  header h1 {
    width: 75%;
  }
}
header h1 img {
  width: 100%;
}
header .ec_btn {
  display: block;
  position: absolute;
  top: 45%;
  right: 2vw;
  transform: translateY(-50%);
  width: 13.28vw;
  transition: 0.4s;
}
@media screen and (max-width: 768px) {
  header .ec_btn {
    display: none;
  }
}
@media screen and (min-width: 768px) {
  header .ec_btn:hover img {
    filter: drop-shadow(0px 0px 10px #2d42ff);
  }
}
header .ec_btn img {
  width: 100%;
  transition: 0.4s;
}

.container {
  max-width: 65.83vw;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .container {
    max-width: 90%;
  }
}

/* --- 検索フォーム --- */
.search-filters {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2列レイアウト */
  gap: 1vw 3vw;
  margin-bottom: 2vw;
}
@media screen and (max-width: 768px) {
  .search-filters {
    display: flex;
    flex-direction: column;
  }
}
.search-filters > div {
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 768px) {
  .search-filters > div {
    margin-top: 4vw;
  }
}
.search-filters .filter-item-freeword {
  grid-column: 1/-1;
  margin-bottom: 1vw;
}
@media screen and (max-width: 768px) {
  .search-filters .filter-item-freeword {
    order: 1; /* フリーワードは1番目 */
  }
}
.search-filters label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
  position: relative;
  padding-left: 1.5vw;
  margin-bottom: 0.5vw;
}
.search-filters label::before {
  content: "";
  background: url(./images/dot.png) no-repeat center center/contain;
  width: 1vw;
  height: 1vw;
  position: absolute;
  left: 0;
  top: 60%;
  transform: translateY(-50%);
}
@media screen and (max-width: 768px) {
  .search-filters label {
    padding-left: 6vw;
    margin-bottom: 2vw;
  }
  .search-filters label::before {
    width: 4vw;
    height: 4vw;
  }
}
.search-filters input[type=text],
.search-filters select {
  padding: 1vw 1.56vw;
  border: none;
  box-shadow: 0px 0px 10px #ccc;
  font-size: 1.25vw;
  outline: none;
}
@media screen and (max-width: 768px) {
  .search-filters input[type=text],
  .search-filters select {
    padding: 4vw 2vw;
    font-size: 4vw;
  }
}
.search-filters .filter-item-reset {
  grid-column: 1/-1;
  text-align: left;
  margin-top: 10px;
}
@media screen and (max-width: 768px) {
  .search-filters .filter-item-reset {
    order: 5; /* 最後 */
  }
}
.search-filters #reset-button {
  background: none;
  border: none;
  font-size: 1vw;
  color: #179cff;
  font-weight: 500;
  cursor: pointer;
  padding: 5px 0;
  text-decoration: none;
  transition: 0.4s;
}
@media screen and (min-width: 768px) {
  .search-filters #reset-button:hover {
    filter: brightness(1.5);
  }
}
@media screen and (max-width: 768px) {
  .search-filters #reset-button {
    font-size: 4vw;
    font-weight: normal;
  }
}

/* --- 企業名/部隊名表示エリア --- */
#company-select-container {
  grid-column: 1/2;
  position: relative;
  z-index: 10;
}
@media screen and (max-width: 768px) {
  #company-select-container {
    order: 2; /* 企業名ボタンは2番目 */
  }
}

#squad-select-container {
  grid-column: 2/3;
  position: relative;
  z-index: 10;
}
@media screen and (max-width: 768px) {
  #squad-select-container {
    order: 4; /* 部隊名はロゴ一覧の後（4番目）にする */
  }
}

/* --- 部隊名ドロップダウン (自作版) --- */
/* ラッパー: 相対配置にして、リストの基準点にする */
#squad-filter-wrapper {
  position: relative; /* 重要 */
  background-color: #212529;
  border-radius: 4px;
  border: 1px solid #444;
  cursor: pointer;
  transition: 0.4s;
  /* アイコン類はそのまま維持 */
}
@media screen and (min-width: 768px) {
  #squad-filter-wrapper:hover {
    filter: brightness(1.5);
  }
}
#squad-filter-wrapper::before {
  content: "";
  background: url(./images/icon_squad.png) no-repeat center center/contain;
  width: 4vw;
  height: 4vw;
  position: absolute;
  left: 2vw;
  top: 50%;
  transform: translateY(-50%);
}
#squad-filter-wrapper::after {
  content: "";
  background: url(./images/arrow_next.png) no-repeat center center/contain;
  width: 1vw;
  height: 1vw;
  filter: brightness(200);
  position: absolute;
  right: 1vw;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}
@media screen and (max-width: 768px) {
  #squad-filter-wrapper::before {
    width: 15vw;
    height: 15vw;
    left: 4vw;
  }
  #squad-filter-wrapper::after {
    width: 3.5vw;
    height: 3.5vw;
    right: 3.5vw;
  }
}

/* 選択中の文字表示エリア */
#squad-active-display {
  color: #fff;
  padding: 1.2vw 1.56vw;
  width: 100%;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media screen and (max-width: 768px) {
  #squad-active-display {
    padding: 4vw 2vw;
  }
}

/* ドロップダウンリスト本体 */
#squad-dropdown-list {
  display: none; /* 初期状態は非表示 */
  position: absolute;
  top: 110%; /* 親要素の少し下に表示 */
  left: 0;
  width: 100%;
  max-height: 300px; /* 長すぎる場合はスクロール */
  overflow-y: auto;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000; /* 最前面に */
  /* スクロールバーのデザイン(任意) */
  scrollbar-width: thin;
}
#squad-dropdown-list::-webkit-scrollbar {
  width: 6px;
}
#squad-dropdown-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

/* ドロップダウンが表示されている時 */
#squad-dropdown-list.show {
  display: block;
}

/* リスト内の各ボタン */
.squad-option-item {
  display: block;
  width: 100%;
  padding: 10px 15px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: 0.2s;
}
@media screen and (min-width: 768px) {
  .squad-option-item:hover {
    background-color: #f0f8ff;
    color: #179cff;
  }
}

/* --- 部隊名のアニメーション用追加CSS (修正版) --- */
/* 1. レイアウト調整 */
.character-card .card-content .squad {
  display: flex;
  align-items: center;
  gap: 0.5em;
  overflow: hidden;
}

/* 2. 「部隊」ラベル */
.character-card .card-content .squad .label {
  flex-shrink: 0;
  font-size: 0.62vw;
}
@media screen and (max-width: 768px) {
  .character-card .card-content .squad .label {
    font-size: 3vw;
  }
}

/* 3. 名前エリアの枠（マスク部分） */
.squad-name-wrapper {
  flex-grow: 1;
  overflow: hidden; /* はみ出しを隠す */
  white-space: nowrap;
  line-height: 1.2;
}

/* 4. スクロールが必要な場合のトラック（レール） */
.squad-name-wrapper.is-scroll .squad-marquee-track {
  display: inline-flex; /* 横並びにする */
  padding-left: 0;
  /* 全体の幅の50%（＝文字セット1個分）だけ左に移動させるアニメーション */
  animation: squad-infinity-loop 10s linear infinite;
}

/* 5. 部隊名本体のスタイル */
.squad-val {
  display: block;
}

/* スクロール時の各テキスト間の余白設定 */
.squad-name-wrapper.is-scroll .squad-val {
  padding-right: 2em; /* 文字と文字の間の隙間を作る */
}

/* 無限ループアニメーション定義 
  0% (開始) -> -50% (ちょうど半分移動したところ)
  2つのテキストが並んでいるため、50%移動するとちょうど2個目の頭が
  1個目の開始位置に来て、見た目上つながって見えます。
*/
@keyframes squad-infinity-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* 企業モック/アクティブ表示の共通スタイル */
#company-active-display,
#company-mock-button {
  position: relative;
  background-color: #212529;
  color: white;
  padding: 1.2vw 1.56vw;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  line-height: 1;
  transition: 0.4s;
}
@media screen and (min-width: 768px) {
  #company-active-display:hover,
  #company-mock-button:hover {
    filter: brightness(1.5);
  }
}
#company-active-display::before,
#company-mock-button::before {
  content: "";
  background: url(./images/icon_company.png) no-repeat center center/contain;
  width: 3vw;
  height: 3vw;
  position: absolute;
  left: 2vw;
  top: 50%;
  transform: translateY(-50%);
}
#company-active-display::after,
#company-mock-button::after {
  content: "";
  background: url(./images/arrow_next.png) no-repeat center center/contain;
  width: 1vw;
  height: 1vw;
  filter: brightness(200);
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}
@media screen and (max-width: 768px) {
  #company-active-display,
  #company-mock-button {
    padding: 4vw 2vw;
  }
  #company-active-display::before,
  #company-mock-button::before {
    width: 10vw;
    height: 10vw;
    left: 4vw;
  }
  #company-active-display::after,
  #company-mock-button::after {
    width: 3.5vw;
    height: 3.5vw;
  }
}

#company-active-display {
  position: relative;
}
#company-active-display img {
  width: 25px;
  height: 25px;
  margin-right: 10px;
  filter: brightness(0) invert(1);
}

/* 企業選択ボタン */
#company-active-display.active::after,
#company-mock-button.active::after {
  transform: translateY(-50%) rotate(270deg);
}

/* 部隊選択ボタン */
#squad-filter-wrapper.active::after {
  transform: translateY(-50%) rotate(270deg);
}

/* --- 部隊名ドロップダウンのスタイル --- */
#squad-filter-wrapper {
  position: relative;
  background-color: #212529;
  border-radius: 4px;
  border: 1px solid #444;
  display: flex;
  align-items: center;
  transition: 0.4s;
}
@media screen and (min-width: 768px) {
  #squad-filter-wrapper:hover {
    filter: brightness(1.5);
  }
}
#squad-filter-wrapper::before {
  content: "";
  background: url(./images/icon_squad.png) no-repeat center center/contain;
  width: 4vw;
  height: 4vw;
  position: absolute;
  left: 2vw;
  top: 50%;
  transform: translateY(-50%);
}
#squad-filter-wrapper::after {
  content: "";
  background: url(./images/arrow_next.png) no-repeat center center/contain;
  width: 1vw;
  height: 1vw;
  filter: brightness(200);
  position: absolute;
  right: 1vw;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}
@media screen and (max-width: 768px) {
  #squad-filter-wrapper::before {
    width: 15vw;
    height: 15vw;
    left: 4vw;
  }
  #squad-filter-wrapper::after {
    width: 3.5vw;
    height: 3.5vw;
    right: 3.5vw;
  }
}

#squad-filter {
  appearance: none;
  color: #fff;
  background-color: transparent;
  padding: 1.2vw 1.56vw;
  border: none;
  width: 100%;
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: bold;
  line-height: 1;
  box-shadow: none;
}
@media screen and (max-width: 768px) {
  #squad-filter {
    padding: 4vw 2vw;
    line-height: 1.1;
  }
}
#squad-filter option {
  color: #333;
  text-align: center;
}

/* --- 2. ロゴボタンのコンテナ (切り替え後) --- */
#company-logo-filter-container {
  grid-column: 1/-1;
  display: none;
  width: 100%;
  gap: 1vw;
  padding: 2vw 3vw;
  background-color: #eee;
  border-radius: 6px;
  z-index: 100;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
@media screen and (max-width: 768px) {
  #company-logo-filter-container {
    order: 3;
    grid-template-columns: 1fr 1fr;
  }
}
#company-logo-filter-container .company-logo-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
}
@media screen and (max-width: 768px) {
  #company-logo-filter-container .company-logo-button:nth-child(5) {
    grid-column: 1/-1;
  }
}
#company-logo-filter-container .company-logo-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.4s;
}
@media screen and (min-width: 768px) {
  #company-logo-filter-container .company-logo-button img:hover {
    filter: brightness(2);
  }
}
#company-logo-filter-container .company-logo-button span {
  font-size: 14px;
}

/* --- 50音と並べ替えのコンテナ --- */
.gojuuon-sort-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
@media screen and (max-width: 768px) {
  .gojuuon-sort-container {
    display: block;
  }
}

hr {
  background-color: #eaeaea;
  height: 2px;
  border: none;
  margin: 30px 0;
  position: relative;
  overflow: visible;
  width: 110%;
  margin-left: -5%;
}
@media screen and (max-width: 768px) {
  hr {
    width: 90%;
    margin: 30px auto;
  }
}
hr::before, hr::after {
  content: "";
  background: url(./images/hr_deco.png) no-repeat center center/contain;
  width: 1vw;
  height: 1vw;
  position: absolute;
  top: -0.5vw;
}
@media screen and (max-width: 768px) {
  hr::before, hr::after {
    width: 4vw;
    height: 4vw;
    top: -2vw;
  }
}
hr::before {
  left: -1vw;
}
@media screen and (max-width: 768px) {
  hr::before {
    left: -4vw;
  }
}
hr::after {
  right: -1vw;
}
@media screen and (max-width: 768px) {
  hr::after {
    right: -4vw;
  }
}

#gojuuon-filter {
  display: flex;
  gap: 0.5vw;
  flex-wrap: nowrap;
}
@media screen and (max-width: 768px) {
  #gojuuon-filter {
    overflow-x: auto;
    padding: 2vw 0;
    gap: 2vw;
    scrollbar-width: none; /* Firefox用 */
    -ms-overflow-style: none; /* IE/Edge用 */
  }
  #gojuuon-filter::-webkit-scrollbar {
    display: none; /* Chrome/Safari用 */
  }
}
#gojuuon-filter button {
  padding: 0.5vw 0.75vw;
  font-size: 0.9vw;
  border: none;
  box-shadow: 0px 0px 5px #ccc;
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  display: inline-block;
  transition: 0.4s;
}
@media screen and (min-width: 768px) {
  #gojuuon-filter button:hover {
    filter: brightness(0.9);
  }
}
@media screen and (max-width: 768px) {
  #gojuuon-filter button {
    white-space: nowrap;
    font-size: 3.6vw;
    padding: 2vw 4vw;
  }
}
#gojuuon-filter button.active {
  background-color: #179cff;
  color: white;
  font-weight: bold;
}

#custom-scrollbar {
  display: none; /* PCでは表示しない */
}
@media screen and (max-width: 768px) {
  #custom-scrollbar {
    display: block;
    width: 100%;
    height: 3px; /* バーの高さ */
    background: #f0f0f0; /* 背景色 */
    border-radius: 3px;
    margin-top: 3px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
  }
}

#custom-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #179cff; /* つまみの色 */
  border-radius: 3px;
  width: 0; /* JSで計算して幅を決定します */
  transition: transform 0.1s ease-out; /* なめらかに動くように */
}

/* --- 昇順/降順ボタン --- */
#sort-control {
  display: flex;
  align-items: center;
  border-radius: 4px;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  #sort-control {
    margin-left: auto;
    width: 30vw;
    margin-top: 3vw;
  }
}
#sort-control button {
  font-size: 0.93vw;
  background: none;
  border: none;
  padding: 4px 8px;
  color: #555;
  cursor: pointer;
  font-weight: bold;
  transition: 0.4s;
}
@media screen and (max-width: 768px) {
  #sort-control button {
    font-size: 4vw;
    padding: 0;
  }
}
#sort-control button.active-sort {
  background-color: transparent;
  color: #179cff;
}
@media screen and (min-width: 768px) {
  #sort-control button:hover {
    background-color: #f0f0f0;
  }
}
#sort-control .separator {
  color: #a0a0a0;
  padding: 0 5px;
  font-size: 1vw;
  font-weight: bold;
}
@media screen and (max-width: 768px) {
  #sort-control .separator {
    padding: 0 5px;
    font-size: 3vw;
    font-weight: bold;
  }
}

/* --- キャラクターリスト --- */
#character-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(50px, 1fr));
  gap: 1vw;
}
@media screen and (max-width: 768px) {
  #character-list {
    grid-template-columns: repeat(2, minmax(50px, 1fr));
    gap: 3vw;
  }
}

.character-card-link {
  text-decoration: none;
  color: inherit;
}

.character-card {
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0px 0px 15px #ccc);
}
@media screen and (min-width: 768px) {
  .character-card:hover .chara_img img {
    transform: scale(1.1);
  }
}
.character-card .chara_img {
  object-fit: cover;
  -webkit-mask-image: url("./images/img_frame.png");
  mask-image: url("./images/img_frame.png");
  mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center;
  width: 100%;
  height: auto;
}
.character-card .chara_img img:not(.company-logo) {
  transition: 0.4s;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.character-card .company-logo {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 3vw;
  height: 3vw;
  object-fit: contain;
  z-index: 10;
}
@media screen and (max-width: 768px) {
  .character-card .company-logo {
    width: 12vw;
    height: 12vw;
  }
}
.character-card .card-content {
  background: url(./images/text_box.png) no-repeat center center/contain;
  padding: 1.5vw 0.75vw;
  flex-grow: 1;
  margin-top: 0.2vw;
}
@media screen and (max-width: 768px) {
  .character-card .card-content {
    padding: 4.5vw 3vw;
  }
}
.character-card .card-content h2 {
  margin: 0;
  color: #fff;
  font-size: 0.83vw;
}
@media screen and (max-width: 768px) {
  .character-card .card-content h2 {
    font-size: 4vw;
  }
}
.character-card .card-content .squad {
  margin: 0;
  color: #fff;
  font-size: 0.73vw;
  white-space: nowrap;
}
@media screen and (max-width: 768px) {
  .character-card .card-content .squad {
    font-size: 3.5vw;
  }
}
.character-card .card-content .squad span {
  font-size: 0.62vw;
}
@media screen and (max-width: 768px) {
  .character-card .card-content .squad span {
    font-size: 3.1vw;
  }
}

#no-result-message {
  text-align: center;
  padding: 40px 20px;
  color: #3e3f43;
  display: none;
  font-size: 1.1em;
}
@media screen and (max-width: 768px) {
  #no-result-message {
    font-size: 3.6vw;
  }
}

#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
@media screen and (max-width: 768px) {
  #pagination {
    gap: 4px;
    margin-top: 40px;
  }
}

#pagination button {
  padding: 1vw;
  font-size: 0.83vw;
  background: none;
  cursor: pointer;
  border: none;
}
@media screen and (max-width: 768px) {
  #pagination button {
    font-size: 4vw;
    padding: 2vw;
  }
}
@media screen and (min-width: 768px) {
  #pagination button:hover {
    color: #179cff;
  }
}
#pagination button img {
  height: 1vw;
}
@media screen and (max-width: 768px) {
  #pagination button img {
    height: 3.5vw;
  }
}

#pagination button.active {
  color: white;
  background: url(./images/pager_bg.png) no-repeat center center/contain;
  font-weight: bold;
}

/* --- 追加CSS: SP用上部ページネーション --- */
#pagination-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px; /* 上の要素との間隔 */
  margin-bottom: 20px;
}

/* 既存のボタンデザインを適用 */
#pagination-top button {
  padding: 2vw;
  font-size: 4vw;
  background: none;
  cursor: pointer;
  border: none;
}

#pagination-top button.active {
  color: white;
  background: url(./images/pager_bg.png) no-repeat center center/contain;
  font-weight: bold;
}

#pagination-top button img {
  height: 3.5vw;
}

footer {
  background: #1a1a16;
  padding: 2vw 0;
  position: relative;
  margin-top: 5vw;
}
@media screen and (max-width: 768px) {
  footer {
    padding: 5vw 0;
    margin-top: 10vw;
  }
}
footer .sp {
  text-align: center;
}
footer .sp p {
  font-size: 3.5vw;
  color: #fff;
}
footer .sp .ec_btn {
  display: block;
}
footer .sp .ec_btn img {
  width: 80%;
}
footer small {
  color: #fff;
  font-size: 0.83vw;
  text-align: center;
  display: block;
}
@media screen and (max-width: 768px) {
  footer small {
    font-size: 3.2vw;
    margin-top: 10vw;
  }
}
footer .logo {
  width: 9.37vw;
  margin: 0 auto;
  margin-top: 2vw;
}
@media screen and (max-width: 768px) {
  footer .logo {
    width: 30%;
    margin-top: 5vw;
  }
}
footer .logo a {
  display: inline-block;
}
footer .logo a img {
  width: 100%;
}
footer .totop {
  width: 16.25vw;
  margin: 0 auto;
  position: absolute;
  top: -2.7vw;
  right: 0vw;
}
footer .totop::before {
  content: "";
  background: url(./images/totop_text.png) no-repeat center center/contain;
  width: 7vw;
  height: 4vw;
  position: absolute;
  top: -0.5vw;
  right: 4vw;
  z-index: 2;
  transition: 0.4s;
}
@media screen and (min-width: 768px) {
  footer .totop:hover::before {
    opacity: 0.5;
  }
}
@media screen and (max-width: 768px) {
  footer .totop {
    position: fixed;
    top: 90%;
    right: 2%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
  }
  footer .totop::before {
    content: none;
  }
  footer .totop.is-show {
    opacity: 1;
    pointer-events: auto;
  }
}
footer .totop a {
  display: inline-block;
}
footer .totop a img {
  width: 100%;
}/*# sourceMappingURL=style.css.map */