@charset "utf-8";

/**
  * reset
  */

body, p, dl, dt, dd, h1, h2, h3, h4, h5, h6, menu, ul, ol, li, figure, figcaption, form {
  margin: 0;
  padding: 0;
}

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


/**
  * base
  */

:root {
  --baseColor: #3c3c43;
  --subColor: #3a5ccc;
  --whiteColor: #fefefe;
  --bgColor: #fefefe;
  --grayColor: #eee;
  --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.6;
  background-color: var(--bgColor);
}

hr {
  margin-block: 1.75em;
  border: none;
  border-bottom: 1px solid var(--grayColor);
  position: relative;
}


/**
  * link
  */

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

a:link, a:visited {
  color: var(--subColor);
  border-bottom: 1px solid var(--subColor);
}

a:hover, a:active {
  color: var(--baseColor);
  border-bottom-color: transparent;
}

a:hover img {
  opacity: 0.85;
}


/**
  * contents
  */

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

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

.form_area {
  margin-bottom: 2em;
}

.footer {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid var(--grayColor);
}

.footer p {
  text-align: center;
}

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

h1 {
  margin-bottom: 1em;
  font-size: 1.75em;
}

h2 {
  margin: 2.5em 0 1em;
  font-size: 1.35em;
}

p {
  margin-bottom: 1.5em;
}

code {
  padding: 0.2em 0.35em;
  font-size: 0.9em;
  background-color: var(--grayColor);
  border-radius: 5px;
}

pre {
  margin: 0;
  padding: 0.5em;
  background-color: var(--grayColor);
  border-radius: 5px;
  width: 100%;
}

pre > code {
  padding: 0;
  font-size: 1em;
  background-color: transparent;
  border-radius: 0;
  overflow-x: auto;
  display: block;
}

dd + dt {
  margin-top: 1.5em;
}

dd:has(input) {
  display: flex;
  align-items: center;
}

dd input {
  width: calc(100% - 0.5em - 80px);
}

dd button {
  margin-left: 0.5em;
  width: 80px;
}

ul {
  margin-left: 1.5em;
}

.generate_area {
  padding: 1em;
  background-color: var(--grayColor);
  border-radius: 5px;
  position: relative;
}

.generate_area p {
  margin-bottom: 0;
  white-space: nowrap;
  overflow-x: auto;
}

.generate_area p::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.generate_area p::-webkit-scrollbar-track {
  background-color: var(--grayColor);
  border-radius: 5px;
}

.generate_area p::-webkit-scrollbar-thumb {
  background-color: var(--baseColor);
  border-radius: 5px;
}

.generate_area p::-webkit-scrollbar-thumb:hover {
  opacity: 0.85;
}

.generate_area code {
  font-family: inherit;
}

.generate_area button {
  font-size: 0.85em;
  width: auto;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
}

p.error {
  color: var(--attentionColor);
}

.form_area p.error {
  margin-top: 0.5em;
  font-weight: 700;
}


/**
  * form
  */

input, button {
  margin: 0;
  padding: 0;
  color: var(--baseColor);
  font-size: 1rem;
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif, 'Noto Color Emoji';
  line-height: 1.4;
  background: none;
  border: none;
  border-radius: 0;
  appearance: none;
}

input {
  padding: 0.5em;
  background-color: var(--grayColor);
  border-radius: 5px;
  width: 100%;
}

input:focus {
  box-shadow: 0 0 0 2px var(--subColor);
}

button {
  padding: 0.5em;
  color: var(--bgColor);
  background-color: var(--baseColor);
  border-radius: 5px;
  transition: all 0.3s;
}
button:hover {
  background-color: var(--subColor);
  cursor: pointer;
}
