@charset "utf-8";

* {
  color: #333;
  box-sizing: border-box;
}

body {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 40px;
}

a {
  color: #333;
  text-decoration: none;
  display: block;
}
a:hover {
  text-decoration: underline;
}
.submit {
  display: block;
  width: fit-content;
  height: fit-content;
  outline: none;
  border: none;
  border-radius: 0;
  padding: 8px 20px;
  transition: 0.2s;
}
.submit:hover,
.submit:focus {
  background: #333;
  color: #fff;
}

h1 {
  font-size: 28px;
  font-weight: bold;
}
h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 2em;
}

header {
  display: flex;
  width: 100%;
  height: 150px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
header a {
  transition: 0.2s;
  width: fit-content;
  height: fit-content;
  padding: 8px 20px;
}
header a:hover {
  color: #fff;
  background: #333;
  text-decoration: none;
}
header nav ul {
  display: flex;
  gap: 20px;
}

/* TOP */
#contents {
  margin-bottom: 150px;
}

#contents .content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  border-bottom: 1px solid #dfdfdf;
  min-height: 60px;
  padding-inline: 20px;
  gap: 20px;
  margin-bottom: 10px;
}
#contents .content h3 {
  font-weight: bold;
  font-size: 20px;
  line-height: 1.2;
}
#contents .content p {
  font-size: 18px;
}
#contents .content .action {
  display: flex;
  gap: 20px;
}

/* INSERT */
form input {
  border: 1px solid transparent;
  border-bottom-color: #dfdfdf;
  min-width: 300px;
  width: fit-content;
  line-height: 2;
  font-size: 18px;
  display: block;
  outline: none;
  padding: 8px;
  font-weight: bold;
}
form input:focus {
  border-bottom-color: #333;
}

.container,
#txt,
#textMetrics {
  font: inherit;
  font-weight: bold;
}

#textMetrics {
  display: inline-block;
  position: absolute;
  height: 0;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

form textarea {
  outline: none;
  font-size: 16px;
  font-weight: bold;
  padding: 8px;
  border-radius: 0;
  margin-bottom: 1em;
  border-color: #dfdfdf;
}
form textarea:focus {
  border-color: #333;
}
