@charset "utf-8";

html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 100%;
}

body,
body *,
body *::before,
body *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: #fff;
  background-color: #000;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}
a {
  display: inline-block;
  color: currentColor;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
img {
  width: 100%;
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
button {
  padding: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  appearance: none;
}

/* 	スクリーンリーダー
---------------------------------------------*/
.visually-hidden:not(:focus-visible) {
  position: absolute;
  border: 0;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

main {
  margin: 60px auto 120px;
}

h1 {
  margin: 20px 0;
  text-align: center;
}

.figure {
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
}

.figure__inner {
  display: flex;
  gap: 80px;
}

.figure-img {
  margin: 40px 0;
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
}

.figure-img__container {
  /* margin: auto; */
  margin-left: 1em;
}

.figure-img h2 {
  padding: 8px 2.5em;
  margin-bottom: 80px;
  clip-path: polygon(28px 0%, 100% 0%, calc(100% - 28px) 100%, 0% 100%);
  background: linear-gradient(
    to right,
    #d61819,
    #d61819 70%,
    rgba(77, 73, 72, 0.3) 88%,
    rgba(77, 73, 72, 0)
  );
}

.figure-img figure {
  position: relative;
}

.figure-img-line {
  height: 2px;
  background-color: #333;
  position: absolute;
  left: 20%;
  right: 20%;
  top: 50%;
  z-index: 1;
  opacity: 0;
}

.figure-img-line::before,
.figure-img-line::after {
  content: "";
  width: 0.5em;
  height: 0.5em;
  border: 2px solid #333;
  position: absolute;
  top: 50%;
  rotate: 45deg;
  transform: translate(-2px, -50%);
}

.figure-img-line::before {
  left: 0;
  border-top: none;
  border-right: none;
}
.figure-img-line::after {
  right: 0;
  border-bottom: none;
  border-left: none;
}

.figure-img-maker {
  width: 16px;
  height: 16px;
  background-color: orange;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  opacity: 0;
  transform: translate(-40%, -50%);
}

/* ラベル */
.figure-img-labelx1,
.figure-img-labelx1-small,
.figure-img-labelx2 {
  position: absolute;
  top: calc(100% - 4px);
  transform: translateX(-50%);
  opacity: 0;
  font-weight: 700;
}

.figure-img-labely1,
.figure-img-labely2 {
  position: absolute;
  right: calc(100% + 4px);
  transform: translateY(-50%);
  opacity: 0;
  font-weight: 700;
}

.figure-x {
  position: absolute;
  left: 50%;
  top: calc(100% + 1em);
  transform: translateX(-50%);
}

.figure-y {
  position: absolute;
  right: calc(100% - 1em);
  top: 50%;
  transform: translate(0, -50%) rotate(-90deg);
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.form {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.form__inner {
  width: 100%;
  display: flex;
  gap: 20px;
}

.form-input {
  flex: 1;
}

.form input {
  padding: 4px 8px;
  width: 100%;
  line-height: 1.4;
}

.form p {
  display: flex;
  flex-direction: column;
}

.form p span {
  padding: 4px 12px;
  line-height: 1.4;
  border: 1px solid #666;
  border-radius: 2px;
  color: #333;
  background-color: #fff;
}

.form .form__error {
  color: red;
  display: none;
}

@media screen and (max-width: 768px) {
  .figure {
    margin-left: revert;
    margin-right: auto;
    width: 95%;
  }

  .figure__inner {
    width: 100%;
    padding-left: 2em;
    flex-direction: column;
    gap: 0;
  }

  .figure-img h2 {
    margin-left: -1.5rem;
    margin-bottom: 30px;
    padding: 8px 1.5em;
    font-size: 1.125rem;
    clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%);
  }

  .figure-img-labelx1,
  .figure-img-labelx1-small,
  .figure-img-labelx2,
  .figure-img-labely1,
  .figure-img-labely2,
  .figure-x,
  .figure-y {
    font-size: 0.875rem;
  }

  .form__inner {
    margin-left: -1.5em;
    flex-direction: column;
    gap: 0;
  }

  .form-input {
    width: 100%;
  }

  .form input {
    width: 100%;
    min-width: 200px;
  }
}
