/* ==========================================================================
   リセット・ベーススタイル
   ========================================================================== */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin and padding */
* {
  margin: 0;
  padding: 0;
}

/* Prevent font size inflation */
html {
  scroll-behavior: smooth;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

html:focus-within {
  scroll-behavior: smooth;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
  margin-inline-start: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  font-family: "Noto Sans JP", Helvetica Neue, Arial, Hiragino Sans, Hiragino Kaku Gothic ProN, BIZ UDPGothic, Meiryo, sans-serif;
  text-rendering: optimizeSpeed;
  font-weight: 400;
  line-height: 1.8;
  font-size: 1rem;
  color: #000000;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* ==========================================================================
   リンク・ナビゲーション
   ========================================================================== */

a {
  text-decoration: none;
  color: #000000;
  text-decoration-skip-ink: auto;
}

a:hover {
  transition: color ease 0.3s;
}

/* Remove list styles on ul, ol elements */
ul,
ol {
  list-style: none;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* ==========================================================================
   メディア要素
   ========================================================================== */

img,
picture {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   フォーム要素
   ========================================================================== */

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font: inherit;
}

textarea {
  font-family: "Noto Sans JP", Helvetica Neue, Arial, Hiragino Sans, Hiragino Kaku Gothic ProN, BIZ UDPGothic, Meiryo, sans-serif;
  font-size: 1rem;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

input[type="button"] {
  display: block;
  border: none;
}

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

button {
  cursor: pointer;
  padding: 0;
  border: none;
  background: none;
}

/* ==========================================================================
   アクセシビリティ・ユーザビリティ
   ========================================================================== */

[aria-busy="true"] {
  cursor: progress;
}

[aria-controls] {
  cursor: pointer;
}

[aria-disabled="true"] {
  cursor: default;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/* ==========================================================================
   その他の要素
   ========================================================================== */

main {
  display: block;
}

table {
  border-collapse: collapse;
}
