/**
 * Versyne Noir風デザイン - リセットCSS
 * ネオプラズマ株式会社専用
 *
 * 用途: ブラウザデフォルトスタイルのリセット
 * ベース: normalize.css + カスタムリセット
 */

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

/* ============================================
   Document
   ============================================ */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* HERO画像を完全にぴったり配置するため */
  margin: 0 !important;
  padding: 0 !important;
}

/* ============================================
   Sections
   ============================================ */
body {
  margin: 0;
  font-family: var(--np-font-family-primary);
  font-size: var(--np-font-size-base);
  font-weight: var(--np-font-weight-normal);
  line-height: var(--np-line-height-normal);
  color: var(--np-color-text-primary);
  background-color: var(--np-color-bg-primary);
  text-rendering: optimizeLegibility;
}

/* ============================================
   Grouping content
   ============================================ */
main {
  display: block;
}

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

p, blockquote, pre,
address, hr,
ol, ul, dl,
dd, figure {
  margin: 0;
}

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

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

pre {
  font-family: var(--np-font-family-code);
  font-size: 1em;
}

/* ============================================
   Text-level semantics
   ============================================ */
a {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  transition: color var(--np-transition-fast);
}

a:hover {
  color: var(--np-color-text-dark);
}

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

b, strong {
  font-weight: var(--np-font-weight-bold);
}

code, kbd, samp {
  font-family: var(--np-font-family-code);
  font-size: 1em;
}

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;
}

/* ============================================
   Embedded content
   ============================================ */
img {
  border-style: none;
  max-width: 100%;
  height: auto;
  display: block;
}

svg {
  display: inline-block;
  vertical-align: middle;
}

/* ============================================
   Forms
   ============================================ */
button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, input {
  overflow: visible;
}

button, select {
  text-transform: none;
}

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

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

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

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
  resize: vertical;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

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

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

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

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

/* ============================================
   Interactive
   ============================================ */
details {
  display: block;
}

summary {
  display: list-item;
  cursor: pointer;
}

/* ============================================
   Misc
   ============================================ */
template {
  display: none;
}

[hidden] {
  display: none;
}

/* ============================================
   Accessibility
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ============================================
   Focus Visible (アクセシビリティ対応)
   ============================================ */
:focus-visible {
  outline: var(--np-focus-outline-width) solid var(--np-focus-outline-color);
  outline-offset: var(--np-focus-outline-offset);
}

/* フォーカス時のデフォルトアウトラインを削除（:focus-visibleがある場合） */
:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background-color: var(--np-color-accent-orange);
  color: var(--np-color-text-white);
}

::-moz-selection {
  background-color: var(--np-color-accent-orange);
  color: var(--np-color-text-white);
}
