body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #f6f6f6;
  padding: 20px;
}

.form-container {
  max-width: 1200px;
  background: white;
  padding: 25px;
  margin: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.l-header-logo {
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

h3 {
  text-align: center;
  margin-bottom: 20px;
}

fieldset {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
  padding: 15px;
}

legend {
  font-weight: bold;
  padding: 0 10px;
}

.form-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 1.5rem 0rem;
  border-bottom: 1px solid #ddd;
}

.form-row-long-wrapper {
  padding: 1.5rem 0rem;
  border-bottom: 1px solid #ddd;
}

.form-row:last-child {
  margin-bottom: 0px;
  border-bottom: none;
}

.form-row label,
.form-row-long-header label,
.form-row .label-dummy {
  width: 230px;
  font-weight: bold;
}

.form-row label.radio-label {
  width: auto;
}

.form-row input,
.form-row select {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-row select {
  width: 100%;
  max-width: 100%;
}

.form-right-row:not(:last-of-type) {
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

textarea {
  width: 100%;
  max-width: 100%;
  resize: vertical;
  box-sizing: border-box;
  padding: 0.5em;
}

.required-message {
  text-align: center;
  color: #ff0000;
  margin-bottom: 5px;
}
.required-mark {
  color: #ff0000;
  font-size: 150%;
}


.direction-column {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.direction-column label {
  font-weight: normal;
}


.direction-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 10px;
}

.direction-row label {
  width: 15%;
  font-weight: normal;
}

.margin-top {
  margin-top: 1.5rem;
}


.top-text {
  font-size: 14px;
  color: #555;
}

.bottom-text {
  font-size: 14px;
  color: #ff0000;
}

.bottom-text-limit{
  font-size: 14px;
  color: #555;
}

.border-bottom-none {
  margin-bottom: 0px;
  border-bottom: none;
}


.checkbox-group {
display: grid;
grid-template-columns: repeat(2, 1fr); /* 2列に均等配置 */
gap: 6px 6px;
align-items: stretch;
}

.full-width {
  justify-content: center;
}

.long-label {
  display: block;
}

.margin-under-long-label {
  margin: 1.5rem;
  margin-bottom: 0;
}

.white-space-pre {
  white-space: pre-wrap;
}

.link {
  word-break: break-all;
}

.industryDetail label {
  margin-bottom: 0.6rem;
}


.company {
  margin-top: 15px;
}

.company label,
.checkbox-group label,
.margin-under-long-label label {
  font-weight: normal;
  width : 100%;
}

.custom-select {
  position: relative;
  display: inline-block;
  /* width: 200px; */
  width: 100%;
  font-family: sans-serif;
  margin-top: 10px;
  overflow: visible;
}

.selected {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px 30px 8px 8px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
}

.selected::after {
  content: "";
  position: absolute;
  top: 30%;
  right: 4px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  pointer-events: none;
}

.selected.placeholder {
  color: #888;
}

.options {
  display: none;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  z-index: 9999;
  max-height: 300px;
  overflow: scroll;
  overflow-x: hidden;
}

.option {
  padding: 8px;
  white-space: pre-line;
  cursor: pointer;
  border-top: 1px solid #eee;
}

.option:first-child {
  border-top: none;
}

.option:hover {
  background-color:rgb(0, 103, 205);
  color: #fff
}


/* 希望日 */
input[type="date"],
select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  font-size: 16px;
  box-sizing: border-box;

  /* iOS対策 */
  color: black;
  background: white;
}
input[type="date"] {
  appearance: none;
  height: 1em;
}
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

#error-firstDate,
#error-firstTime,
#error-secondDate,
#error-secondTime,
#error-thirdDate,
#error-thirdTime {
  min-height: 20px;
}

.direction-row #firstDate, #secondDate, #thirdDate {
  margin-right: 5rem;
}

/* 問い合わせ */
.info-container {
  max-width: 1200px;
  background: white;
  padding: 25px;
  margin: auto;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  text-align: center;
}

/* 規約 */
.terms-container {
  width: 100%;
  height: 140px;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow-y: scroll;
  margin: 5px 0px;
  background-color: #fafafa;
  padding: 8px;
  box-sizing: border-box;
}

.terms-text {
  font-size: 14px;
  line-height: 1.4;
}

.bottom-message {
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 12px;

}



button {
  padding: 10px 20px;
  background-color: #E0481D;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: #b1280b;
}

button:disabled {
  background-color:#d02f0d;
  cursor: default;
  opacity: .65;
}

.back-button{
  background-color: #808080;
}
.back-button:hover {
  background-color: #696969;
}

.display-none{
  display: none;
}


/* 画面全体を覆うオーバーレイ */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 大きめのスピナー */
.loading-spinner-large {
  border: 6px solid #f3f3f3;
  border-top: 6px solid rgb(100, 100, 100);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

.word-break-all {
  word-break: break-all;
}

.responsive-keep-row label {
  flex-shrink: 0;
}

/* アニメーション定義 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* レスポンシブ対応 */
@media screen and (max-width: 930px) {
  .responsive-keep-row label{
    width: auto;
  }

  .pre-responsive-column {
    flex-direction: column;
    align-items: stretch;
  }
  .pre-responsive-column label {
    width: 100%;
    margin-top: 5px;
  }

}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .form-row,
  .direction-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-row label,
  .form-row .label-dummy {
    width: 100%;
    margin-bottom: 5px;
  }

  .responsive-keep-row {
    flex-direction: row;
    align-items: center;
  }
  .responsive-keep-row label{
    width: auto;
    margin-bottom: 0px;
  }

  .checkbox-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .margin-under-long-label {
  margin: 0px;
  }

  /* sendBtnを上に */
  #sendBtn {
    order: 1;
  }

  /* backBtnを下に */
  #backBtn {
    order: 2;
  }

  .pc-only {
    display: none;
  }
}


/* 完了画面、エラー画面*/
.message-body {
  background-color: #ffffff;
}

.message-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.message {
  text-align: center;
  margin-bottom: 60px;
  white-space: pre-wrap;
}

.l-inner {
  text-align: center;
}

.l-footer-copy {
  margin: 28px auto 0;
  display: inline-block;
  font-size: 10px;
  line-height: 1.6;
}

.form-container a,
.info-container a {
  color: #E0481D;
}

.form-container a:hover,
.info-container a:hover {
  opacity: .75;
}
