/* ============================== */
/* reset.css */
/* ============================== */

*,
::before,
::after {
  border: 0;
  box-sizing: border-box;
  min-width: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  line-height: 1.15;
}

body {
  margin: 0;
}

main {
  display: block;
}

p,
table,
blockquote,
address,
pre,
iframe,
form,
figure,
dl {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin-left: 0;
}

hr {
  border-top: 1px solid;
  color: inherit;
  height: 0;
  overflow: visible;
}

pre {
  font-family: monospace, monospace;
  font-size: inherit;
}

address {
  font-style: inherit;
}

a {
  background: transparent;
  color: inherit;
  text-decoration: none;
}

abbr[title] {
  text-decoration: underline dotted;
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: inherit;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

svg,
img,
embed,
object,
iframe {
  vertical-align: bottom;
}

button,
input,
optgroup,
select,
textarea {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border-radius: 0;
  color: inherit;
  font: inherit;
  margin: 0;
  padding: 0;
  text-align: inherit;
  text-transform: inherit;
  vertical-align: middle;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
[type="button"]:disabled,
[type="reset"]:disabled,
[type="submit"]:disabled {
  cursor: default;
}

select:disabled {
  opacity: inherit;
}

option {
  padding: 0;
}

fieldset {
  margin: 0;
  min-width: 0;
  padding: 0;
}

legend {
  padding: 0;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

[type="number"] {
  -moz-appearance: textfield;
}

label[for] {
  cursor: pointer;
}

details {
  display: block;
}

summary {
  display: list-item;
}

[contenteditable]:focus {
  outline: auto;
}

table {
  border-collapse: collapse;
  border-color: inherit;
}

caption {
  text-align: left;
}

td,
th {
  padding: 0;
  vertical-align: top;
}

th {
  font-weight: 700;
  text-align: left;
}

/* ============================== */
/* 基礎構造 */
/* ============================== */

/* ベース */
html {
  color-scheme: light;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

.page-wrapper {
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* 強制改行 */
.clear {
  clear: both;
}

/* 頻出タグまとめて */
.block {
  display: block;
}

.cq {
  container-type: inline-size;
}

.flex-col {
  flex-direction: column;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.inline {
  display: inline;
}

.inline-block {
  display: inline-block;
}

.d-none {
  display: none;
}

.ov-hidden {
  overflow: hidden;
}

/* ポジション系 */
.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

/* アクセシビリティ */
.visually-hidden:not(:focus):not(:active) {
  block-size: 1px;
  border: 0;
  clip-path: inset(50%);
  inline-size: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
}

/* 画像 */
img {
  height: auto;
  max-width: 100%;
  width: auto;
}

/* ============================== */
/* テキスト系 */
/* ============================== */

/* デフォルト設定 */
html {
  font-feature-settings: "palt";
  font-kerning: normal;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 400;
  overflow-wrap: break-word;
  text-size-adjust: 100%;
  word-break: normal;
}

:where(body) {
  font-feature-settings: "palt";
}

:where(table, th, td, time) {
  font-variant-numeric: lining-nums tabular-nums;
}

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-feature-settings: normal;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* 文字配置 */
.center {
  text-align: center;
}

.justify {
  text-align: justify;
}

.right {
  text-align: right;
}

.left {
  text-align: left;
}

/* 強調文字 */
.b,
strong {
  font-weight: bold;
}

/* ============================== */
/* リンク */
/* ============================== */

/* 下線リンク */
.a_underline {
  text-decoration: underline;
}
