/* 
html5doctor.com Reset Stylesheet v1.6.1 改良版
Last Updated: 2025-11-02
Base: Richard Clark - http://richclarkdesign.com 
改良: 西川 綾さん制作環境向け（Flex対応・リスト統一）
*/

/* 全要素リセット */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}

/* ベース */
body {
  line-height: 1;
}

/* HTML5要素をブロック化 */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* リスト（全UL・OL対象） */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 引用符リセット */
blockquote, q {
  quotes: none;
}
blockquote::before, blockquote::after,
q::before, q::after {
  content: '';
  content: none;
}

/* リンク */
a {
  margin: 0;
  padding: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
  text-decoration: none; /* デフォルト下線を削除 */
  color: inherit;        /* 親要素の色を継承 */
}

/* 強調系 */
ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}
mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}
del {
  text-decoration: line-through;
}
abbr[title], dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

/* テーブル */
table {
  border-collapse: collapse;
  border-spacing: 0;
}
caption, th, td {
  text-align: left;
  font-weight: normal;
  vertical-align: middle;
}

/* 区切り線 */
hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cccccc;
  margin: 1em 0;
  padding: 0;
}

/* フォーム */
input, select {
  vertical-align: middle;
}

/* 画像：Flex対応 + 親幅に合わせて縮小 */
img {
  max-width: 100%;
  height: auto;
  display: block;  /* インライン隙間防止 */
  flex-shrink: 0;  /* ✅ Flex内での画像潰れ防止 */
}

/* ボックスサイズを統一 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ボタンのデフォルト装飾を消す */
button {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
