*,
*::before,
*::after {
  --min-viewport: 375;
  --max-viewport: 800;
  box-sizing: border-box;
  --slope: calc((var(--max-size) - var(--min-size)) / (var(--max-viewport) - var(--min-viewport)));
  --intercept: calc(var(--min-size) - var(--slope) * var(--min-viewport));
  --fluid-size: calc(var(--slope) * 100vw + var(--intercept) / 16 * 1rem);
  --clamp-size: clamp(var(--min-size) / 16 * 1rem, var(--fluid-size), var(--max-size) / 16 * 1rem);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 500;
  line-height: 1.5;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
button,
select,
textarea {
  font: inherit;
  line-height: 1.4;
  appearance: none;
  background-color: transparent;
  border: 0;
  border-radius: 0;
}

button,
[type=button],
[type=submit],
[type=reset] {
  cursor: pointer;
}

select {
  width: 100%;
  overflow: hidden;
  color: var(--black);
}

select,
button {
  line-height: 1.4;
}

::placeholder {
  color: var(--gray);
}

textarea {
  display: block;
  width: 100%;
}

input[type=file]::-webkit-file-upload-button {
  font: inherit;
  color: var(--black);
}

:root {
  --black: #242424;
  --gray: #999;
  --light-gray:#f0f0f0;
  --red: #c00;
}

.container {
  width: min(90%, 800px);
  margin: auto;
}

.header {
  --min-size: 16;
  --max-size: 24;
  font-size: var(--clamp-size);
  line-height: 1;
  text-transform: uppercase;
}
.header__inner {
  --min-size: 15;
  --max-size: 30;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 10px var(--clamp-size);
}

.header-nav {
  --min-size: 10;
  --max-size: 30;
  display: flex;
  flex-wrap: wrap;
  gap: var(--clamp-size);
}

.header-lang {
  padding: 2px 10px;
  border: 1px solid var(--black);
  border-radius: 50px;
}

@media (hover: hover) {
  .header-nav a {
    position: relative;
  }
  .header-nav a::after {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    content: "";
    background: var(--black);
    transition: transform 0.3s;
    transform: scale(0, 1);
    transform-origin: right top;
  }
  .header-nav a:hover::after {
    transform: scale(1, 1);
    transform-origin: left top;
  }
  .header-lang {
    transition: background 0.3s;
  }
  .header-lang:hover {
    background-color: var(--light-gray);
  }
}
@media (max-width: 359px) {
  .header-lang span {
    display: none;
  }
}
@media (min-width: 800px) {
  .header {
    --min-size: 16;
    --max-size: 20;
    font-size: var(--clamp-size);
  }
}
.footer {
  padding: 10px;
  color: #fff;
  text-align: center;
  background-color: var(--black);
}

.section {
  --min-size: 80;
  --max-size: 120;
  padding: var(--clamp-size) 0;
}
.section__title {
  margin-bottom: 1em;
  font-size: var(--clamp-size);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  --min-size: 35;
  --max-size: 45;
}
.section__title::after {
  --min-size: 80;
  --max-size: 100;
  display: block;
  width: var(--clamp-size);
  height: 5px;
  margin-top: 0.5em;
  content: "";
  background-color: var(--black);
}
.section:nth-child(even) {
  background-color: var(--light-gray);
}

.keyvisual {
  display: grid;
  place-items: center;
  height: 60vh;
  min-height: 300px;
  background: url("/assets/img/bg-keyvisual.jpg") no-repeat center center;
  background-size: cover;
}
.keyvisual img {
  width: var(--clamp-size);
  --min-size: 200;
  --max-size: 500;
}

@media (min-width: 1000px) {
  .keyvisual {
    height: 80vh;
  }
}
.about-text {
  line-height: 2.2;
}

.company-list {
  display: grid;
  gap: 2em;
}
.company-list > * {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.company-list h3 {
  padding-bottom: 0.5em;
  margin-bottom: 0.25em;
  font-size: inherit;
  font-weight: 800;
  border-bottom: 1px dotted var(--black);
}

@media (min-width: 1000px) {
  .company-list > * {
    flex-direction: row;
    gap: 1em;
  }
  .company-list h3 {
    flex-shrink: 0;
    width: 6em;
    padding: 0;
    margin: 0;
    border: 0;
  }
  .company-list p {
    padding-left: 1em;
    border-left: 1px dotted var(--black);
  }
  .company-list.--en h3 {
    width: 10em;
  }
}
.contact-note {
  margin-bottom: 2em;
  text-align: right;
}
.contact-note span {
  color: var(--red);
}

.contact-form {
  display: grid;
  gap: 1.5em;
}
.contact-form > * {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}
.contact-form label {
  margin-bottom: 0.25em;
}
.contact-form label span {
  margin-left: 0.5em;
  color: var(--red);
}
.contact-form__button-wrapper {
  display: grid;
  place-items: center;
  width: 100%;
}
.contact-form__button {
  width: min(100%, 500px);
  padding: 15px 15px 15px 30px;
  color: #fff;
  text-align: center;
  letter-spacing: 10px;
  background-color: var(--black);
  border-radius: 50px;
  transition: opacity 0.25s;
}
.contact-form__button:is(:hover, :focus) {
  opacity: 0.8;
}

@media (min-width: 1000px) {
  .contact-form {
    gap: 2em;
  }
  .contact-form > * {
    flex-direction: row;
    gap: 1em;
  }
  .contact-form label {
    flex-shrink: 0;
    width: 9em;
    padding-top: 0.5em;
  }
}
.phpfact-message {
  margin: 30px 0;
  text-align: center;
}

.phpfact-error {
  margin: 30px 0;
  color: var(--red);
  text-align: center;
}

.phpfact-button-wrapper {
  display: grid;
  place-items: center;
  width: 100%;
}

.phpfact-button {
  width: min(100%, 500px);
  padding: 15px;
  color: #fff;
  text-align: center;
  background-color: var(--black);
  border-radius: 50px;
  transition: opacity 0.25s;
}
.phpfact-button:is(:hover, :focus) {
  opacity: 0.8;
}

[type=text],
[type=email],
[type=tel],
textarea,
select {
  padding: 10px;
  background-color: #fff;
  border: 1px solid var(--gray);
}

[type=text],
[type=email],
[type=tel] {
  width: min(100%, 460px);
}

textarea {
  width: 100%;
}

.form__select-wrapper {
  position: relative;
  display: inline-block;
}
.form__select-wrapper::after {
  position: absolute;
  top: 18px;
  right: 12px;
  width: 0;
  height: 0;
  pointer-events: none;
  content: "";
  border-top: 10px solid var(--black);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
}
.form__select-wrapper select {
  padding-right: 30px;
}

.a-scroll-fade-in-left {
  opacity: 0;
}
.a-scroll-fade-in-left.play {
  animation-name: fade-in-left;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.a-scroll-fade-in-up {
  opacity: 0;
}
.a-scroll-fade-in-up.play {
  animation-name: fade-in-up;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  animation-delay: 0.3s;
}

@keyframes fade-in-left {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}