@charset "UTF-8";

/* CSS Document */
/*------------------------------

  標準レイアウト・基本カラー

------------------------------*/
:root {
  --main_color: #6b6b6b;
}

p {
  line-height: 25px;
  text-justify: inter-character;
}

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap");

/*------------------------------

  ヘッダー

------------------------------*/

header .logo img {
  vertical-align: bottom;
  width: 100%;
}

/*------------------------------

	タブメニュー

------------------------------*/
.tabs {
  margin-top: 100px;
}

.tab-header {
  background-color: #e6e6e6; /* グレー帯 */
  border-radius: 50px; /* 丸み */
  display: flex;
  position: relative;
  width: max-content; /* タブ部分だけ背景 */
  margin: 0 auto; /* 中央寄せ */
  backface-visibility: hidden;
}

.tab_item {
  align-items: center;
  border-radius: 50px; /* pill型 */
  background-color: transparent;
  color: #808080;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: bold;
  flex: 1;
  justify-content: center;
  height: 60px;
  line-height: 50px;
  position: relative;
  text-align: center;
  transition: color 0.3s ease;
  z-index: 2;
  width: 250px;
  padding: 0 20px; /* タブ内余白 */
  white-space: nowrap;
  flex: 0 0 250px;
  outline: none;
}

.tab-highlight {
  border-radius: 50px;
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(0);
  transition: transform 0.3s ease;
  will-change: transform;
  z-index: 1;
  width: 250px;
  height: 60px;
}

.tab-highlight.pokayoke {
  background-color: #548966;
}

.tab-highlight.ImageInspection {
  background-color: #d8996f;
}

.tab-highlight.areacatpure {
  background-color: #a571d3;
}

.tab-highlight.digcreader {
  background-color: #d67070;
}

input[name="tab_item"] {
  display: none;
}

.tab-header input:checked + .tab_item {
  color: #fff;
}


.tab-body {
  position: relative;        /* 必要に応じて調整 */
  contain: layout paint;      /* 再描画を局所化 */
}


.tab_content {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tab_content.is-active {
  position: static; /* または position: relative; */
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}



@media screen and (max-width: 896px) {
  .tab_item {
    width: 150px;
    flex: 0 0 150px;     /* ← ここを追加（flex-basis を上書き） */
    min-width: 150px;    /* 念のため */
    max-width: 150px;
    box-sizing: border-box;
  }

  .tab-highlight {
    width: 150px;
    left: 0; /* highlight の transform 位置がある場合は調整してください */
  }
}

@media screen and (max-width: 480px) {
  .tab_item {
    width: 120px;
    flex: 0 0 120px;     /* こちらも同様に */
    min-width: 120px;
    max-width: 120px;
    box-sizing: border-box;
    padding: 0 10px;
  }

  .tab-highlight {
    width: 120px;
  }
}

/*------------------------------

	pagetop

------------------------------*/
.page_top {
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.page_top a {
  background: #333;
  border-radius: 50%;
  color: #fff;
  display: block;
  position: relative;
  text-decoration: none;
  text-align: center;
  width: 50px;
  height: 50px;
}

.page_top a .arrow {
  display: block;
}

.page_top a .arrow::before {
  content: "";
  background: url("../images/arrow_pagetop.svg") no-repeat;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  margin: auto;
}

.page_top a:hover {
  background: #aaa;
  opacity: 1;
  text-decoration: none;
}

.page_top a:hover .arrow::before {
  top: -10px;
}

/*------------------------------

  ページ共通

------------------------------*/
figure img {
  width: 100%;
  vertical-align: bottom;
}

/*---------------------------------

  テキスト

---------------------------------*/
#mainContainer .title h2 {
  padding-bottom: 20px;
}

#mainContainer .txt {
  line-height: 2;
  margin: 50px auto;
  max-width: 900px;
  width: 95%;
  text-align: center;
}

#mainContainer .txt .attention {
  color: #cc0000;
  font-weight: 900;
  line-height: 1.6;
  margin-top: 20px;
}

#mainContainer .txt strong {
  display: block;
  font-size: 1.5em;
  font-weight: 500;
}

#mainContainer .requiredItem {
  color: #cc0000;
  font-size: 12.5px;
  font-weight: 600;
}

#mainContainer .btn {
  margin: 0 auto;
  max-width: 280px;
  text-align: center;
}

#mainContainer .btn a {
  color: #333;
  display: block;
  position: relative;
  padding: 20px 10px;
}

#mainContainer .btn a::after,
#mainContainer .btn a::before {
  content: '';
  display: block;
  position: absolute;
  width: 20%;
  height: 50%;
  border: 2px solid;
  transition: all 0.6s ease;
  border-radius: 2px;
}

#mainContainer .btn a::after {
  bottom: 0;
  right: 0;
  border-top-color: transparent;
  border-left-color: transparent;
  border-bottom-color: #333;
  border-right-color: #333;
}

#mainContainer .btn a::before {
  top: 0;
  left: 0;
  border-bottom-color: transparent;
  border-right-color: transparent;
  border-top-color: #333;
  border-left-color: #333;
}

#mainContainer .btn a:hover {
  opacity: 1;
}

#mainContainer .btn a:hover:after,
#mainContainer .btn a:hover:before {
  width: 103%;
  height: 110%;
}

@media screen and (max-width: 480px) {
  #mainContainer .txt {
    text-align: justify;
  }

  #mainContainer .txt p br {
    display: none;
  }
}

/*---------------------------------

  フォーム

---------------------------------*/
#mainContainer #contact-form {
  margin: 0 auto 100px;
  max-width: 900px;
  width: 95%;
}

#mainContainer #contact-form dl {
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  padding: 20px 0;
}

#mainContainer #contact-form dl dt {
  font-weight: 500;
  width: 30%;
}

#mainContainer #contact-form dl dd {
  width: 70%;
}

#mainContainer #contact-form .form_ft {
  text-align: center;
  margin-top: 50px;
}

#mainContainer #contact-form dl dd p {
  color: #999;
  font-size: 14px;
  margin-top: 5px;
}

@media screen and (max-width: 480px) {
  #mainContainer #contact-form dl {
    border-bottom: 1px solid #eee;
    display: block;
    align-items: center;
    padding: 20px 0;
  }

  #mainContainer #contact-form dl dt {
    margin-bottom: 15px;
    width: 100%;
  }

  #mainContainer #contact-form dl dd {
    width: 100%;
  }
}

/*---------------------------------

  各パーツスタイル

---------------------------------*/
/* 
  テキストエリア
---------------------------------*/
.textarea {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: none;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 0;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  resize: vertical;
  min-height: 100px;
  height: 100px;
  padding: 0.4em 0.8em;
  width: 100%;
}

.textarea:focus {
  border: 1px solid rgba(0, 0, 0, 0.32);
  box-shadow: none;
  outline: none;
}

/*
  テキスト
---------------------------------*/
.text {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: none;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 0;
  color: inherit;
  font-family: inherit;
  font-size: 1em;
  padding: 0.4em 0.8em;
  width: 100%;
}

.text:focus {
  border: 1px solid rgba(0, 0, 0, 0.32);
  box-shadow: none;
  outline: none;
}

.num .text {
  max-width: 200px;
  width: 80%;
}

.text.w250 {
  max-width: 250px;
}

.text.w200 {
  max-width: 200px;
}

.text.w150 {
  max-width: 150px;
}

.text.w100 {
  max-width: 100px;
}

.text.w50 {
  max-width: 50px;
}

input::placeholder {
  color: #999999;
}

/*
  チェックボックス
---------------------------------*/
.check {
  display: none;
}

.check+span {
  cursor: pointer;
  display: inline-block;
  margin: 0 0.2em 0;
  padding: 0 0 0 1.2em;
  position: relative;
}

.check+span::before {
  -webkit-transform: translateY(-50%);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 2px;
  content: "";
  display: block;
  height: 1em;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;
}

.check+span::after {
  -webkit-transform: translateY(-50%) rotate(-45deg);
  border-bottom: 3px solid rgba(0, 0, 0, 0.32);
  border-left: 3px solid rgba(0, 0, 0, 0.32);
  content: "";
  display: block;
  height: 0.6em;
  left: 0;
  margin-top: -0.2em;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  transition: all 0.3s ease 0s;
  width: 1em;
}

.check:checked+span::after {
  opacity: 1;
}

.checkBox {
  margin-bottom: 20px;
}

/* 
  ボタン
---------------------------------*/
button {
  border: 0;
  background-color: transparent;
}

.submit {
  position: relative;
  display: inline-block;
  font-size: 15px;
  width: 280px;
  height: 60px;
  padding: 20px;
  color: #fff;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
  letter-spacing: 0.06em;
  background: linear-gradient(to right, #003e8f, #2d61a6);
  transition: all 0.5s;
  cursor: pointer;
  margin-right: 0;
  z-index: 2;
}

.submit a {
  color: #ffffff;
}

.submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  opacity: 0;
  background: linear-gradient(to right, #0068ee, #2a88e0);
  transition: all 0.3s;
  z-index: -1;
}

.submit:hover::after {
  opacity: 1;
  width: 100%;
  box-shadow: 0 3px 20px rgba(0, 76, 175, 0.35);
}

/*非活性用*/
.submit:disabled {
  position: relative;
  display: inline-block;
  font-size: 15px;
  width: 280px;
  height: 60px;
  padding: 15px 20px;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
  background: linear-gradient(to right, #003e8f, #2d61a6);
  transition: none;
  cursor: auto;
  z-index: 2;
  opacity: 0.3;
}

.submit:disabled::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  opacity: 0;
  background: none;
  transition: none;
  z-index: -1;
}

.submit:disabled:hover::after {
  opacity: 1;
  width: 100%;
  box-shadow: none;
}

/* 訂正 */
.submit_btn.back {
  width: 20%;
  display: block;
  margin-left: 30px;
}

.submit_btn.back .button {
  background: #fff;
  border: #ccc solid 1px;
  color: #ccc;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 15px 20px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  width: 100%;
  height: 60px;
}

.submit_btn.back .button:hover {
  color: #fff;
  background: #aaa;
}

/* チェック */
.btn_wrap {
  display: flex;
  justify-content: center;
  margin: 50px auto 0;
}

@media screen and (max-width: 480px) {
  .btn_wrap {
    display: block;
  }

  .submit_btn.back {
    width: 100%;
    max-width: 200px;
    margin: 20px auto 0;
  }

  .submit_btn.back .button {
    padding: 10px 10px;
    height: auto;
  }
}

/*
  エラー
---------------------------------*/
p.is-error span {
  background: #ffdddd;
  color: #cc0000;
  display: block;
  font-size: 12px;
  line-height: 1;
  padding: 5px;
  margin: 10px 0 0;
}

/*
  個人情報保護方針
---------------------------------*/
.policy {
  border: solid 1px #cccccc;
  font-size: 14px;
  overflow-y: scroll;
  text-align: left;
  height: 180px;
  margin-bottom: 20px;
  padding: 20px;
}

.policy strong {
  color: #035cb3;
  font-weight: 600;
}

small {
  font-size: 85%;
}

.policy ol {
  margin-left: 20px;
}

.policy ol li {
  margin-top: 10px;
}

.policy ol li .info {
  margin-top: 6px;
}
