/*!
 * ress.css（customized for MAYA KAWAMOTO Portfolio）
 * Base: v3.0.1
 * MIT License
 */

/* =================================================================
   # Global selectors
   ================================================================= */

html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  word-break: normal;
  scroll-behavior: smooth;
}

*, ::before, ::after {
  box-sizing: inherit;
  background-repeat: no-repeat;
}

* {
  margin: 0;
  padding: 0;
}

/* =================================================================
   # Typography & Elements
   ================================================================= */

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #333;
  background-color: #fff;
}

article, aside, footer, header, nav, section, main {
  display: block;
}

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

p {
  margin: 0;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border: none;
  vertical-align: bottom;
}

a {
  color: inherit;
  text-decoration: none;
  background-color: transparent;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* =================================================================
   # Forms
   ================================================================= */

button,
input,
optgroup,
select,
textarea {
  font: inherit;
  color: inherit;
  margin: 0;
  border: none;
  background: none;
  outline: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  background: none;
  color: inherit;
}

button:disabled,
[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

textarea {
  resize: vertical;
  overflow: auto;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: none;
}

select::-ms-expand {
  display: none;
}

/* =================================================================
   # Media elements
   ================================================================= */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

iframe {
  border: none;
}

/* =================================================================
   # Accessibility & Misc
   ================================================================= */

[hidden] {
  display: none !important;
}

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

b, strong {
  font-weight: bolder;
}

sub, sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub { bottom: -.25em; }
sup { top: -.5em; }

hr {
  height: 0;
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 2em 0;
}

/* =================================================================
   # Cursor / Interaction
   ================================================================= */

[aria-busy="true"] { cursor: progress; }
[aria-controls] { cursor: pointer; }
[aria-disabled] { cursor: default; }

/* =================================================================
   # Utility: smooth fade-in body
   ================================================================= */

body {
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.loaded {
  opacity: 1;
}