/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* モバイルの自動拡大は100%に */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 見出しや本文系 */
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

/* セクショニング要素 */
body,
main,
nav,
menu,
header,
footer,
section,
article,
aside,
figure,
figcaption {
  display: block;
  margin: 0;
  padding: 0;
}

/* 画像・メディア */
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

/* テーブル */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

caption,
th {
  text-align: left;
}

/* フォーム：フォント継承＆素の見た目に */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

input,
textarea {
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

input[type="search"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-appearance: textfield;
  min-width: 0;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
}

/* details/summary */
summary {
  display: block;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

/* タイポ */
address {
  font-style: normal;
}

a:not([class]) {
  -webkit-text-decoration-skip: ink;
  text-decoration-skip-ink: auto;
  color: inherit;
}

/* アクセシビリティ */
:focus,
:focus-visible {
  outline: 2px solid var(--focus-ring, #2684ff);
  outline-offset: 2px;
}

/* 脚注のズレ */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* 動きを減らすユーザー配慮 */
@media (prefers-reduced-motion: reduce) {
  * {
    -webkit-animation-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/*----------------------------------------
  form reset
----------------------------------------*/
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* テキスト入力・検索フォームなど */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
}

/* 検索フォーム特有の装飾を無効化 */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* テキストエリアのリサイズをリセット */
textarea {
  resize: vertical;
}

/* numberのスピンボタンを削除 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* selectの矢印削除 */
select::-ms-expand {
  display: none;
}

/* ボタン類 */
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -moz-appearance: none;
  appearance: none;
  -webkit-appearance: none;
}

/* disabled時 */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* checkbox, radioの初期化 */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

/* file input */
input[type="file"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: none;
}

/* placeholderカラー統一 */
::-webkit-input-placeholder {
  color: #aaa;
  opacity: 1;
}

::-moz-placeholder {
  color: #aaa;
  opacity: 1;
}

:-ms-input-placeholder {
  color: #aaa;
  opacity: 1;
}

::-ms-input-placeholder {
  color: #aaa;
  opacity: 1;
}

::placeholder {
  color: #aaa;
  opacity: 1;
}
