/* ========== RESET SECTION ========== */
/* 基本初期化：余白、装飾、ボックスサイズ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* HTML5要素をブロック化（IE対策） */
article, aside, footer, header, nav, section, main, figure, figcaption {
  display: block;
}

/* 基本設定 */
html, body {
  height: 100%;
  font-size: 100%;
  font-family: sans-serif;
  vertical-align: baseline;
  line-height: 1;
  background-color: #fff;
  color: #212529;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* テキスト関連の初期化 */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
figure, figcaption {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

/* リスト関連 */
ul, ol {
  list-style: none;
}

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

/* メディア要素 */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

/* フォーム要素の初期化 */
input,
button,
select,
textarea {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  vertical-align: middle;
  appearance: none;
  border-radius: 0;
}

/* aリンク */
a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
}

/* 強調 */
strong {
  font-weight: bold;
}

/* clearfix */
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* スクロールバー最小化（オプション） */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 4px;
}

/* ========== REBOOT SECTION ========== */
/* ベースボディ */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  background-color: #fff;
  color: #212529;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* 見出し */
h1, h2, h3, h4, h5, h6 {
  font-weight: 100;
  font-size: 1em;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

/* テキスト */
p {
  margin-bottom: 1em;
}

/* リスト */
/*ul, ol {
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
}*/

/* テーブル再定義 */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  /*padding: 0.75em;
  text-align: left;
  border-bottom: 1px solid #dee2e6;*/
}

/* ボタン整形 */
button {
  display: inline-block;
  /*padding: 0.5em 1em;
  background-color: #007bff;
  color: #fff;
  border-radius: 4px;
  border: none;
  cursor: pointer;*/
  transition: background-color 0.2s ease;
}

/* 入力要素 */
input,
textarea,
select {
  width: 100%;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #66afe9;
  outline: none;
}

/* フォームラベル */
label {
  display: inline-block;
  margin-bottom: 0.5em;
  font-weight: 500;
}

/* コード */
pre,
code {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 0.95em;
  background-color: #f8f9fa;
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

/* レスポンシブ画像 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
