* {
  box-sizing: border-box;
}
html {
  margin: 0;
  padding: 0;
  background-color: #eee;
  font-family: sans-serif;
  font-size: 16px;
  color: #333;
}
body {
  margin: 0;
  padding: 0;
}
p {
  margin: 0;
  line-height: 1.5;
}
p + p {
  margin-top: 1rem;
}
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
}
/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible;
}
/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none;
}
/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
.hidden {
  display: none !important;
}
.mp0 {
  margin: 0;
  padding: 0;
}
/*
.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  > i {
    font-size: 2rem;
  }
}
*/
.menu {
  position: relative;
  width: 100%;
}
.menu-overlay {
  position: fixed;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  width: inherit;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  /*
    &.opened {
      animation: menu-open 100ms ease forwards;
    }
    &.closed {
      animation: menu-close 100ms ease forwards;
    }
    */
}
.menu-item {
  width: 100%;
}
.menu-item > a {
  display: block;
  width: inherit;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
}
.menu-trigger {
  position: absolute;
  top: 0;
  right: 0;
  width: 3rem;
  height: 3rem;
  /*
    display: flex;
    align-items: center;
    justify-content: center;
    */
  overflow: hidden;
}
.menu-trigger > .icon {
  width: inherit;
  height: inherit;
}
.menu-trigger > .icon:last-child {
  color: #fff;
}
.menu.opened > .menu-overlay {
  animation: menu-open 100ms ease forwards;
}
.menu.opened > .menu-trigger > .icon:first-child {
  display: none !important;
}
.menu.closed > .menu-overlay {
  animation: menu-close 100ms ease forwards;
}
@keyframes menu-open {
  0% {
    visibility: visible;
    transform: scale(0.9, 0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1, 1);
    opacity: 1;
  }
}
@keyframes menu-close {
  0% {
    transform: scale(1, 1);
    opacity: 1;
  }
  100% {
    visibility: hidden;
    transform: scale(0.9, 0.9);
    opacity: 0;
  }
}
fieldset {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}
label,
input,
select,
textarea {
  font-size: 1rem;
}
input[type="text"],
input[type="tel"],
input[type="password"],
textarea {
  margin: 0;
  padding: 0;
  width: 100%;
  border: none;
  outline: none;
  background-color: transparent;
}
textarea {
  resize: none;
}
label {
  display: block;
}
select {
  width: 100%;
  cursor: pointer;
  border: none;
  outline: none;
  background-color: transparent;
}
button {
  display: inline-block;
  outline: none;
  border: 1px solid #1E88E5;
  border-radius: .25rem;
  background-color: #fff;
  margin: 0 .25rem;
  padding: .5rem 2rem;
  color: #1E88E5;
  white-space: nowrap;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
}
button:hover,
button:focus {
  text-decoration: underline;
}
button:active {
  transform: scale(0.98);
}
button.primary {
  background-color: #1E88E5;
  font-weight: bold;
  color: #fff;
}
.form {
  margin: 0;
  padding: 0;
}
.form-field {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: .25rem;
}
.form-label {
  padding: .25rem;
}
.form-label.optional > label::after {
  content: '(任意)';
  margin-left: .25rem;
  font-size: .8rem;
  color: #999;
}
.form-error {
  padding: .25rem;
  background-color: lightpink;
  font-size: 1rem;
  color: #c00;
}
.form-input {
  padding: .25rem;
}
.form-control {
  margin-top: .5rem;
  display: flex;
  justify-content: center;
}
.form + .form {
  margin-top: .5rem;
}
.form-field + .form-field {
  margin-top: .5rem;
}
.form-input + .form-input {
  border-top: 1px solid #ccc;
}
.uploader {
  position: relative;
}
.uploader-preview,
.uploader-control {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.uploader-preview > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}
.layer.contents {
  padding: 3rem .5rem 1rem .5rem;
  overflow: hidden;
}
.layer.menu {
  position: fixed;
  top: 0;
  left: 0;
}
.layer.blocker {
  position: fixed;
  top: 0;
  left: 0;
}
.header-title {
  margin: 0 0 1rem 0;
  text-align: center;
  font-size: 1.5rem;
}
.section + .section {
  margin-top: 1rem;
}
.section-title {
  margin: 0 0 1rem 0;
  border: 2px solid #333;
  padding: .25rem;
  text-align: center;
  letter-spacing: .5rem;
  font-size: 1rem;
}
.blocker {
  width: 100%;
}
.blocker-overlay {
  position: fixed;
  width: inherit;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.05);
}
.tab {
  margin: 1rem 0;
  display: flex;
  overflow: hidden;
}
.tab-item {
  flex: 1;
  background-color: #fff;
  border: 1px solid #1E88E5;
  border-left-width: 0;
}
.tab-item:first-child {
  border-left-width: 1px;
  border-radius: .25rem 0 0 .25rem;
}
.tab-item:last-child {
  border-radius: 0 .25rem .25rem 0;
}
.tab-item.active {
  background-color: #1E88E5;
  color: #fff;
}
.tab-item > a {
  display: block;
  padding: .5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon > i {
  font-size: 2rem;
}
