.sp {
  display: none !important;
}

.pc {
  display: inherit;
}

.tablet {
  display: inherit;
}

/* ----------------------------
レスポンシブデザイン
※max-widthでしていなので、値が小さいのが一番下になるように設定する
  ---------------------------- */
/* 大型デスクトップ */
html {
  @media screen and (max-width: 1440px) {}

  /* デスクトップ */
  @media screen and (max-width: 1200px) {}

  /* 小型ノートパソコン */
  @media screen and (max-width: 1024px) {

    .tablet {
      display: none !important;
    }
  }

  /* タブレット */
  @media screen and (max-width: 768px) {}

  /* 大きめのスマートフォン */
  @media screen and (max-width: 480px) {

    /* sp,pc表示切り替え */
    .sp {
      display: inherit !important;
    }

    .pc {
      display: none !important;
    }

  }

  /* 小さなスマートフォン */
  @media screen and (max-width: 320px) {}
}

/* ----- */

/*****************************************/
/* ↓↓↓↓初期設定 */
/*****************************************/
body,
pre,
dd,
div,
dl,
dt,
h1,
h2,
h3,
html,
li,
p,
table,
td,
tr,
ul {
  margin: 0;
  padding: 0;
}

html {
  font: var(--fontSize) var(--defaultFont);
  font-weight: normal;
  color: var(--crow);
  line-height: normal;
  overflow: hidden;
  overflow-y: auto;
  background-color: var(--theme);
  scroll-behavior: smooth;
}

body {
  width: 100%;
}

body * {
  box-sizing: border-box;
  user-select: none;
  /* ドラッグ中のカーソルを無効にする */

  /* ブラウザデフォルト打ち消し */
  font-family: inherit;
  flex: auto 0 0;
  width: auto;
  height: auto;
}

img {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
}

pre {
  color: var(--crow);
  text-align: left;
  white-space: pre-wrap;
  line-height: normal;

  /* 長い単語を折り返す */
  word-wrap: break-word;
  /* 長い単語を折り返す（古いブラウザ用） */
  overflow-wrap: break-word;
}

section {
  display: block;
  width: 100%;
  margin: auto;
  overflow: hidden;
}

a {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  overflow-wrap: break-word;
}

.block {
  display: block;
}

a:hover {
  opacity: 1;
}

a.hover {

  &:hover {
    opacity: 0.4;
  }

}

table {
  border-collapse: collapse;
}

th {
  font-weight: normal;
}

ul,
li {
  list-style: none;
}

use {
  display: block;
}

* {
  /* スクロールバーを非表示にする */
  /*IE(Internet Explorer)・Microsoft Edgeへの対応*/
  -ms-overflow-style: none;
  /*Firefoxへの対応*/
  scrollbar-width: none;
}

/* スクロールバーを非表示にする */
/*Google Chrome、Safariへの対応*/
*::-webkit-scrollbar {
  display: none;
}

/* INPUT関連スタイル */
select {
  -webkit-appearance: none;
  /* Safari用 */
  -moz-appearance: none;
  /* Firefox用 */
  appearance: none;
  cursor: pointer;

  /* 標準のブラウザ矢印を非表示に */
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" %3E%3Cpath fill="currentColor" d="M7 10l5 5 5-5H7z" stroke="%23000" stroke-width="2" /%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right var(--gap-xl) center;
  /* 矢印を右側に配置 */
  background-size: var(--gap-xl) var(--gap-xl);
  /* 矢印のサイズ */
  padding-right: calc(var(--gap-xl) + var(--gap-xl));
}

input,
select,
textarea {
  text-align: left;
  font-size: 1rem;
}

input[type="checkbox"] {
  cursor: pointer;
  margin: 0;
  height: 0.8em;
}

input[type="date"] {
  cursor: pointer;
}

input:where([type="email"],
  [type="number"],
  [type="tel"],
  [type="password"],
  [type="text"],
  [type="url"],
  [type="search"],
  [type="date"]),
textarea,
select {
  margin: auto;
  width: 100%;
  padding: var(--ft-lg) var(--ft-xl);
  background-color: var(--bg-input);
  border: none;
  outline: var(--bd-sl-light);
  border-radius: var(--radius);
  font-size: max(10px, 1rem);

  @media screen and (max-width: 480px) {
    padding: 8px 12px;
  }
}

/* オートフィルスタイルのリセット */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  box-shadow: initial;
  -webkit-box-shadow: initial;
  -webkit-text-fill-color: initial;
  /* 背景色を透明にする */
}

/* オートフィルされた場合のスタイルを上書きする */
input:-internal-autofill-selected {
  /* 強制的に背景色を透明に */
  color: var(--crow) !important;
  /* テキストの色も上書き */
}

input:focus-visible:not(.error) {
  outline: var(--bd-sl-light);
}

input[type="time"] {
  width: max-content;
  padding: 4px;
  background-color: var(--paper);
  border: none;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}

textarea {
  width: 100%;
  min-height: 150px;
  max-height: 50dvh;
  /* 最小の高さを設定（必要に応じて調整） */
  height: auto;
  /* 高さを自動調整 */
  resize: vertical;
  /* 縦方向のみリサイズ可能 */
  line-height: 1.5;
  border-radius: var(--radiusCard);
}

/* 色クラス */
.theme {
  color: var(--theme);
}

.danger {
  color: var(--danger) !important;
}

/* disabled関連のスタイル */
.disabled {
  cursor: default !important;
  color: var(--disabled) !important;
}

[disabled] {
  color: var(--disabled) !important;
  cursor: default !important;
  pointer-events: none !important;

  input,
  textarea {
    font-size: 1rem;
    color: var(--crow);
    background-color: var(--bg-paper);
    resize: none;
    min-height: 0;
    height: max-content;
  }
}

/* エラー関連のクラス */
.error {

  &,
  input,
  select,
  textarea {
    background-color: rgba(255, 0, 0, 0.2);
    outline: 1px solid var(--danger);
  }
}


/* ボタン */
button {
  margin: auto;
  padding: 1rem;
  width: 100%;
  padding: var(--gap-md) var(--gap-xl) var(--gap-md) var(--gap-lg);
  background-color: transparent;
  transition: background-color 0.1s;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  line-height: normal;
  border: var(--bd-sl-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;

  svg {
    font-size: 1.3em;
  }
}

a.button {
  text-align: center;
  margin: auto;
  padding: var(--gap-sm) var(--gap-xl);
  width: 100%;
  background-color: transparent;
  transition: background-color 0.1s;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: var(--bd-sl-normal);

  &[disabled] {
    box-shadow: none !important;
    border: none;
    background-color: var(--bg-input);
    color: var(--disabled);
    pointer-events: none;
  }
}

/* flex関連のクラス */
.flex {
  display: flex;
  gap: 0.35em;
  align-items: center;
  white-space: nowrap;
  width: max-content;
}

.flex-center {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.flex-center-end {
  display: flex !important;
  align-items: center !important;
  justify-content: end !important;
}

.flex-center-start {
  display: flex !important;
  align-items: center !important;
  justify-content: start !important;
}

.flexInherit {
  display: inherit;
  flex-direction: inherit;
  align-items: inherit;
  justify-content: inherit;
  gap: inherit;
}

.align-start {
  align-items: start !important;
}

.grid-center {
  display: grid !important;
  place-items: center !important;
}

.flexColumn {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.625em;
}

.shrink {
  flex-shrink: 0;
  /* 縮小しない */
}


/* width関連のクラス */
.w-100 {
  width: 100% !important;
}

.w-content {
  width: max-content !important;
}

/* UX関連 */
.pointer {
  cursor: pointer !important;
}

.cursor_default {
  cursor: default !important;
}


/* margin関連クラス */
.m-auto {
  margin: auto !important;
  width: max-content !important;
}

.m-0 {
  margin: 0 !important;
  width: max-content !important;
}

.m-l {
  margin: auto !important;
  margin-left: 0 !important;
  width: max-content !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 1rem !important;
}

.mt-2 {
  margin-top: 2rem !important;
}

.mt-3 {
  margin-top: 3rem !important;
}

.mt-4 {
  margin-top: 4rem !important;
}

/* padding関連クラス */
.p-0 {
  padding: 0 !important;
}

.p-1 {
  padding: 0.8rem !important;
}

.pl-0 {
  padding-left: 0 !important;
}

.pr-0 {
  padding-right: 0 !important;
}

/* gap関連クラス */
.g-0 {
  gap: 0 !important;
}

.g-1 {
  gap: 0.2rem !important;
}

.g-2 {
  gap: 0.4rem !important;
}

.g-3 {
  gap: 0.6rem !important;
}

.g-4 {
  gap: 0.8rem !important;
}

.g-5 {
  gap: 1rem !important;
}

.g-6 {
  gap: 1.2rem !important;
}

/* ボーダー関連クラス */
.b-0 {
  border: none !important;
}

/* フォント関連クラス */
.t-c {
  text-align: center !important;
}

.t-l {
  text-align: left;
}

.bold {
  font-weight: bold;
}

.small {
  font-size: 0.7em;
}

.font_x1_2 {
  font-size: 1.2em !important;
}

.font_x2 {
  font-size: 2em !important;
}

.ellipsis {
  flex-shrink: 1;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.pageLink {
  display: inline-block;
  text-decoration: underline;

  &:hover {
    color: var(--blue-main);
  }
}

.underline {
  text-decoration: underline;
}

.circle-arrow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--ft-7xl);
  height: auto;
  aspect-ratio: 1;
}

.circle-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: auto;
  display: block;
  background-color: var(--bg-paper);
  border-radius: var(--radius);
}

.circle-arrow img {
  position: absolute;
}

.circle-arrow[data-move="arrow"] img {
  animation: scale-in-out 0.5s ease-in alternate infinite;
}

.circle-arrow[data-move="circle"]::before {
  animation: scale-in-out 0.5s ease-in alternate infinite;
}


@keyframes scale-in-out {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.2);

  }
}

@keyframes slide-in {
  from {
    visibility: hidden;
    top: 100%;
    bottom: -100%;
  }

  to {
    visibility: visible;
    top: 0%;
    bottom: 0%;
  }
}

@keyframes slide-out {
  from {
    visibility: visible;
    top: 0%;
    bottom: 0%;
  }

  to {
    visibility: hidden;
    top: 100%;
    bottom: -100%;
  }
}


@keyframes fade-in {
  from {
    visibility: hidden;
    opacity: 0;
  }

  to {
    visibility: visible;
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    visibility: visible;
    opacity: 1;
  }

  to {
    visibility: hidden;
    opacity: 0;
  }
}