.page-template-page-recruit-interview .p-firstView-page__bg {
  background: url(../img/recruit/fv-bg.jpg) no-repeat center center/cover;
}

@media screen and (max-width: 575px) {
  .page-template-page-recruit-interview .p-firstView-page__bg {
    background: url(../img/recruit/fv-bg_sp.jpg) no-repeat center center/cover;
  }
}

.p-interview {
  padding: 60px 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .p-interview {
    padding: 50px 0 90px;
  }
}

.p-interview .p-interview__content {
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid #cebe91;
}

@media (min-width: 768px) {
  .p-interview .p-interview__content {
    padding: 0px 25px;
  }
}

/* .p-interview .p-interview__content h2 {
  padding: 5px 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: bold;
  font-size: 24px;
  letter-spacing: 0.05em;
  line-height: calc(34 / 24);
  border-bottom: 4px solid #b4d34e;
}

@media (min-width: 768px) {
  .p-interview .p-interview__content h2 {
    padding: 15px 0;
    font-size: 30px;
    line-height: calc(38 / 30);
  }
}

.p-interview .p-interview__content p {
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 30px;
}

@media (min-width: 768px) {
  .p-interview .p-interview__content p {
    font-size: 18px;
    line-height: calc(30 / 18);
  }
} */

.p-interview .content-preview {
  padding: 35px 20px 0;
  position: relative;
}

/* パスコードセクション */
.p-interview .passcode-section {
  position: relative;
  z-index: 2;
}

.p-interview .passcode-section::after {
  content: "";
  width: 1000px;
  height: calc(100% + 200px);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: linear-gradient(to bottom, transparent, #fff 100px, #fff 100%);
  z-index: -1;
}

.p-interview .passcode-wrap {
  max-width: 658px;
  margin: 10px auto;
  background: #fff;
  border: 1px solid #06c755;
  border-radius: 20px;
  padding: 25px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .p-interview .passcode-wrap {
    padding: 50px 45px 35px;
  }
}

.p-interview .p-interview__content .passcode-message {
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  line-height: calc(30 / 18);
}

@media (min-width: 768px) {
  .p-interview .p-interview__content .passcode-message {
    font-size: 20px;
    line-height: calc(30 / 20);
  }
}

.p-interview .p-interview__content .passcode-line {
  margin-bottom: 20px;
  padding: 75px 0 25px;
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 0.05em;
  line-height: calc(30 / 18);
  text-align: center;
  color: #fff;
  background-color: #06c755;
  border-radius: 40px;
  position: relative;
}

@media (min-width: 768px) {
  .p-interview .p-interview__content .passcode-line {
    max-width: 522px;
    margin: 0 auto 20px;
    padding: 25px 0 25px 105px;
    text-align: left;
    border-radius: 60px;
  }
}

.p-interview .p-interview__content .passcode-line img {
  width: 40px;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .p-interview .p-interview__content .passcode-line img {
    width: 50px;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
  }
}

.p-interview .p-interview__content .passcode-line .sp-only {
  display: block;
}

@media (min-width: 768px) {
  .p-interview .p-interview__content .passcode-line .sp-only {
    display: none;
  }
}

.p-interview .passcode-form {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.p-interview .passcode-inputs {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.p-interview .passcode-digit {
  width: 35px;
  height: 50px;
  padding: 0;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  border: 1px solid #bebebe;
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
}

.p-interview .passcode-digit:focus {
  border-color: #bebebe;
  box-shadow: 0 0 0 3px rgba(206, 190, 145, 0.15);
  background: #fff;
}

.p-interview .passcode-digit:not(:placeholder-shown) {
  border-color: #bebebe;
  background: #fff;
}

.p-interview .passcode-digit.error {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.05);
  animation: shake 0.5s ease-in-out;
}

.p-interview .passcode-digit.success {
  border-color: #27ae60;
  background: rgba(39, 174, 96, 0.05);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* エラーメッセージ */
.p-interview .error-message {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 10px;
  padding: 10px 15px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.p-interview .error-message.show {
  opacity: 1;
}

/* ローディングメッセージ */
.p-interview .loading-message {
  color: #333;
  font-size: 14px;
  margin-top: 10px;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid #bebebe;
  border-radius: 4px;
  text-align: center;
}

.p-interview .loading-message span {
  display: inline-block;
  animation: loading-pulse 1.5s ease-in-out infinite;
}

@keyframes loading-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* セッション通知 */
.session-notice {
  width: calc(100% - 30px);
  background: rgba(206, 190, 145, 0.1);
  border: 1px solid rgba(206, 190, 145, 0.3);
  border-radius: 6px;
  padding: 15px 20px;
  margin: 20px auto -40px;
  color: #8b7355;
  font-size: 14px;
  text-align: center;
  position: relative;
}

.session-notice::before {
  content: "🔓";
  margin-right: 8px;
}

.session-clear-btn {
  background: transparent;
  border: 1px solid #cebe91;
  color: #cebe91;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.3s ease;
}

.session-clear-btn:hover {
  background: #cebe91;
  color: white;
}

.p-interview .content-full {
  padding: 35px 20px 35px;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.p-recruit .p-recruit__btn {
  max-width: 360px;
  margin: 20px auto 0;
  display: block;
}

@media (min-width: 768px) {
  .p-recruit .p-recruit__btn {
    max-width: 500px;
    margin-top: 40px;
  }
}
