﻿:root {
  --green: #009944;
  --green50: #80cca1;
  --red: #ff0000;
}

* {
  box-sizing: border-box;
}

.wrapper {
  width: 960px;
  margin: 0 auto;
}

h3 {
  margin-bottom: 45px;
}

.red {
  color: var(--red);
}

.font0-7 {
  font-size: 0.7rem;
}

#mailform {
  width: 100%;
}

.inline-block {
  display: inline-block;
}

.w30 {
  flex-basis: 30%;
}

.w50 {
  flex-basis: 50%;
}

.w100 {
  flex-basis: 100%;
}

.ww100 {
  width: 100%;
}

/* 必須アイコン */
.required {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  padding: 1px 10px;
  margin-left: 5px;
  border-radius: 5px;
  background-color: #009944;
}

/* 境界線 */
hr {
  flex-basis: 100%; /* flex コンテナ内でも横幅いっぱい */
  border: none;
  border-top: 1px solid #ccc;
  width: 100%;
}

/* =========================================================
///// ヘッダー
========================================================= */
header {
  display: flex;
  align-items: center;
  height: 135px;
  margin-bottom: 1rem;
}

header h1 :hover {
  cursor: pointer;
  opacity: 0.5;
}

header img {
  width: clamp(300px, 50vw, 485px);
}

/* =========================================================
///// 採用情報
========================================================= */
.apply {
  margin-bottom: 2rem;
}

input {
  border: 1px solid #000;
  height: 2rem;
  flex: 1;
  border-radius: 5px;
}

select {
  width: fit-content;
  padding: 0 1rem;
  border-radius: 5px;
}

textarea {
  border-radius: 5px;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto; /* 幅を自動に */
  height: auto; /* 高さを自動に */
  flex: unset; /* 不要な flex リセット */
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 0 10%;
}

.form-contents {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.form-row label {
  max-width: 220px;
  width: 100%;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
}

.form-row .radio-item {
  display: flex; /* 横並び */
  align-items: center; /* ラジオと文字を上下中央揃え */
  gap: 8px;
}

.form-row .input-item {
  width: 100%;
  flex: 1;
  background-color: antiquewhite;
}

.form-row .item-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.education-inner {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
}

.work-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row .form-contents .source {
  display: flex;
  align-items: center;
  gap: 8px;
}

#motivation,
#self_pr,
#job_description,
#message {
  flex: 1; /* 空いた幅をすべて使って伸びる */
}

.form-buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.form-buttons input {
  padding: 5px 20px;
  margin: 0 1rem;
  cursor: pointer;
  background-color: #ccc;
  transition: 0.5s;
  border: none;
}

.form-buttons input:hover {
  color: #fff;
  background-color: var(--green);
}

/* =========================================================
///// サンクスページ
========================================================= */
.thanks {
  text-align: center;
  margin: 120px 0;
  line-height: 2;
  position: relative;
}

.thanks .title {
  font-size: clamp(24px, 1rem + 1.5vw, 40px);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 2rem;
}

.thanks::before {
  content: "";
  width: 500px;
  height: 500px;
  display: block;
  background-image: url(../images/thanks_logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 10%;
  z-index: -10;
}

.thanks p {
  font-size: clamp(16px, 1rem + 0.4vw, 20px);
  padding: 0 20px;
}

/* =========================================================
///// hpトップへ移動
========================================================= */
.hptop {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
}

.hptop p {
  color: #fff;
  font-weight: 700;
  width: fit-content;
  padding: 0.5rem 1rem;
  background-color: var(--green);
  border-radius: 10px;
  transition: 0.5s;
}

.hptop p:hover {
  opacity: 60%;
}

/* =========================================================
///// レスポンシブ
========================================================= */
@media screen and (max-width: 600px) {
  .form-row {
    gap: 10px;
  }

  .form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
  }

  .education-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* =========================================================
///// サンクスページ
========================================================= */
  .thanks {
    margin: 5rem 0;
    line-height: 2;
    position: relative;
  }

  .thanks::before {
    width: 400px;
    height: 400px;
  }
}
