@charset "utf-8";

/**
  * reset
  */

body, p, dl, dt, dd, h1, h2, ul, li, hr, code, form, input, textarea, button {
  margin: unset;
  padding: unset;
}

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


/**
  * base
  */

:root {
  --baseColor: #3c3c43;
  --primaryColor: #3a5ccc;
  --bgColor: #fefefe;
  --whiteColor: #fefefe;
  --grayColor: #c2c2c4;
  --grayBgColor: #f5f5f5;
  --codeColor: #3451b2;
  --codeBgColor: rgba(142, 150, 170, .14);
  --attentionColor: #d5393e;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--baseColor);
  font-size: 1rem;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.8;
  background-color: var(--bgColor);
}

img,
picture * {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6, strong, b {
  font-weight: 700;
}

hr {
  margin-block: 2.5em;
  border: unset;
  border-bottom: 1px solid var(--grayColor);
  height: 0;
}


/**
  * link
  */

a {
  text-decoration: none;
  transition: all 0.3s;
}

a:link,
a:visited {
  color: var(--primaryColor);
  text-decoration: underline;
}

a:hover,
a:active {
  color: var(--baseColor);
  text-decoration: none;
}


/**
  * contents
  */

.wrapper {
  margin: 3em auto;
  width: min(90%, 650px);
}

ul {
  margin-left: 1.5em;
}

code {
  padding: 0.25em;
  color: var(--codeColor);
  font-size: 0.9em;
  background-color: var(--codeBgColor);
  border-radius: 5px;
}

:is(.header, .main) > *:not(h2, :last-child) {
  margin-bottom: 1.5em;
}

h1 {
  margin-bottom: 1em;
  color: var(--primaryColor);
  font-size: 1.5em;
  text-align: center;
}

h2 {
  margin-block: 2.5em 0.5em;
  font-size: 1.35em;
}

.header {
  margin-bottom: 3em;
  padding-bottom: 3em;
  border-bottom: 1px solid var(--grayColor);
}

.back {
  margin-bottom: 2em;
  font-size: 0.85em;
}

.main {
  margin-bottom: 3.5em;
}

#result_area > * + * {
  margin-top: 0.5em;
}

.footer {
  text-align: center;
}

.footer p:has(small) {
  font-size: 0.85em;
}


/**
  * form
  */

textarea, button {
  color: var(--baseColor);
  font-size: 1rem;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.6;
  background-color: transparent;
  border: none;
  border-radius: 0;
  appearance: none;
}

textarea:focus {
  outline: 4px solid var(--primaryColor);
}

textarea {
  padding: 0.25em;
  border-radius: 5px;
  width: 100%;
  height: 10em;
  display: block;
}
.form_area textarea {
  border: 1px solid var(--baseColor);
}
#result_area textarea {
  font-size: 0.9em;
  color: var(--codeColor);
  background-color: var(--codeBgColor);
}

button {
  padding: 0.25em 0.75em;
  color: var(--whiteColor);
  text-align: center;
  background-color: var(--baseColor);
  border-radius: 5px;
  width: fit-content;
  transition: all 0.3s;
  cursor: pointer;
}
button:hover {
  background-color: var(--primaryColor);
}

.form_area:has(+ #result_area *) {
  margin-bottom: 3em;
}

.form_area dl {
  margin-top: 1.5em;
}

.form_area dt {
  margin-bottom: 0.25em;
  font-weight: 700;
}

.form_area dd ul {
  margin-top: 0.5em;
  font-size: 0.8em;
}

.form_area .btn_area {
  margin-top: 1.5em;
  text-align: center;
}
