/* OEM Page Styles */
.oem-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* セクション1: 公募の目的 */
.oem-section--purpose {
  background: linear-gradient(135deg, rgba(255, 248, 240, 0.9) 0%, rgba(255, 240, 230, 0.9) 100%);
  padding: 60px 0;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: 80px;
  position: relative;
}

.oem-section--purpose::before {
  content: "募集の目的";
  position: absolute;
  top: -40px;
  left: 10px;
  width: 150px;
  height: 40px;
  background-color: #ff6600;
  border-radius: 8px 8px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

/* セクション2: 事務SOLの説明 */
.oem-section--product {
  background: linear-gradient(135deg, rgba(240, 248, 255, 0.9) 0%, rgba(230, 240, 255, 0.9) 100%);
  padding: 60px 0;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: 80px;
  position: relative;
}

.oem-section--product::before {
  content: "事務SOLとは";
  position: absolute;
  top: -40px;
  left: 217px;
  width: 150px;
  height: 40px;
  background-color: #2196f3;
  border-radius: 8px 8px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

/* セクション3: OEMパートナーに提供できるリソース */
.oem-section--resources {
  background: linear-gradient(135deg, rgba(250, 240, 255, 0.9) 0%, rgba(245, 230, 255, 0.9) 100%);
  padding: 60px 0;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: 80px;
  position: relative;
}

.oem-section--resources::before {
  content: "サポート";
  position: absolute;
  top: -40px;
  left: 425px;
  width: 150px;
  height: 40px;
  background-color: #9c27b0;
  border-radius: 8px 8px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

/* セクション4: 選考方法について */
.oem-section--selection {
  background: linear-gradient(135deg, rgba(240, 255, 240, 0.9) 0%, rgba(230, 255, 230, 0.9) 100%);
  padding: 60px 0;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: 80px;
  position: relative;
}

.oem-section--selection::before {
  content: "審査";
  position: absolute;
  top: -40px;
  left: 633px;
  width: 150px;
  height: 40px;
  background-color: #4caf50;
  border-radius: 8px 8px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

/* セクション5: 申し込み・問い合わせフォーム */
.oem-section--form {
  background: linear-gradient(135deg, rgba(245, 245, 245, 0.9) 0%, rgba(235, 235, 235, 0.9) 100%);
  padding: 60px 0;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-top: 80px;
  margin-bottom: 70px;
  position: relative;
}

.oem-section--form::before {
  content: "申込・問合";
  position: absolute;
  top: -40px;
  left: 820px;
  width: 150px;
  height: 40px;
  background-color: #607d8b;
  border-radius: 8px 8px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
}

.oem-section__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.oem-section__title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.oem-section__title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ff6600;
}

.oem-section__content {
  margin-bottom: 30px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.8);
}

/* セクション1: 公募の目的 */
.oem-section--purpose .oem-section__content {
  border-left: 4px solid #ff6600;
}

/* セクション2: 事務SOLの説明 */
.oem-section--product .oem-section__content {
  border-left: 4px solid #2196f3;
}

/* セクション3: OEMパートナーに提供できるリソース */
.oem-section--resources .oem-section__content {
  border-left: 4px solid #9c27b0;
}

/* セクション4: 選考方法について */
.oem-section--selection .oem-section__content {
  border-left: 4px solid #4caf50;
}

.oem-section__text {
  font-size: 20px;
  line-height: 1.8;
  color: #333;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-bottom: 50px;
}

.oem-section__text-highlight {
  color: #e74c3c;
  font-weight: bold;
}

.oem-section__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.oem-section__list-item {
  position: relative;
  padding-left: 20px;
  margin-bottom: 25px;
  font-size: 20px;
  line-height: 1.8;
}

.oem-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.oem-form__title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  position: relative;
  padding-bottom: 15px;
}

.oem-form__title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ff6600;
}

.oem-form__group {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

.oem-form__label {
  font-size: 18px;
  text-align: left;
  margin-bottom: 4px;
}

.oem-form__required {
  display: inline-block;
  padding: 2px 8px;
  font-size: 14px;
  color: #e74c3c;
  background-color: transparent;
  border: 1px solid #e74c3c;
  flex-shrink: 0;
  width: 40px;
}

.oem-form__label-container {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.oem-form__input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  font-size: 18px;
  transition: border-color 0.3s;
  height: 40px;
  box-sizing: border-box;
}

.oem-form__textarea {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  font-size: 18px;
  transition: border-color 0.3s;
  height: 150px;
  resize: vertical;
  box-sizing: border-box;
}

.oem-form__input:focus {
  border-color: #ff6600;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.oem-form__select,
.oem-form__textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  font-size: 18px;
  transition: border-color 0.3s;
}

.oem-form__textarea:focus {
  border-color: #ff6600;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.oem-form__radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
  flex: 1;
}

.oem-form__radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  cursor: pointer;
}

.oem-form__radio-text {
  position: relative;
  padding-left: 30px;
}

.oem-form__radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.oem-form__radio-text:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.oem-form__radio-label input[type="radio"]:checked + .oem-form__radio-text:before {
  border-color: #ff6600;
  background-color: #ff6600;
}

.oem-form__radio-label input[type="radio"]:checked + .oem-form__radio-text:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
}

.oem-form__radio-label:hover input[type="radio"] + .oem-form__radio-text:before {
  border-color: #ff6600;
}

.oem-form__submit {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 30px auto 0;
  padding: 15px 0;
  background: #ff6600;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.oem-form__submit:hover {
  background: #e55c00;
  transform: translateY(-2px);
}

.oem-form__submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.oem-section__icons {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 30px;
}

.oem-section__icon-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.oem-section__icon {
  width: 80px;
  height: 80px;
  background-color: #ff6600;
  padding: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.oem-section__icon-content {
  text-align: left;
}

.oem-section__icon-text {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0 0 8px 0;
  text-align: center;
}

.oem-section__icon-description {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.oem-form__input::placeholder,
.oem-form__textarea::placeholder {
  color: #999;
  font-size: 14px;
  opacity: 1;
}

.oem-section__icon-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.oem-list-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oem-list-title {
  font-weight: bold;
  font-size: 20px;
  color: #333;
}

.oem-section__icon-row .oem-section__text {
  margin: 0; /* 上下の余白を一旦リセット */
}

.oem-section__list-item.with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;  /* デフォルトの余白を無効に */
}

@media screen and (max-width: 992px) {
  .oem-section--purpose,
  .oem-section--product,
  .oem-section--resources,
  .oem-section--selection,
  .oem-section--form {
    padding: 40px 0;
  }

  .oem-section--purpose::before,
  .oem-section--product::before,
  .oem-section--resources::before,
  .oem-section--selection::before,
  .oem-section--form::before {
    width: 150px;
    font-size: 18px;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 768px) {
  .oem-section--purpose::before,
  .oem-section--product::before,
  .oem-section--resources::before,
  .oem-section--selection::before,
  .oem-section--form::before {
    width: 140px;
    font-size: 18px;
    height: 40px;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
  }

  .oem-section__icon-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .oem-section__icon-row .oem-section__icon {
    margin-bottom: 3px; /* 画像下に余白を */
  }

  .oem-section__icon-row .oem-section__text,
  .oem-section__icon-row .oem-list-title {
    text-align: center;
  }

  .oem-list-title {
    font-size: 16px;
    margin-bottom: 8px; /* タイトルとテキストの間隔を広げる */
  }

  .oem-form__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 15px;
  }

  .oem-form__required {
    order: 1;
  }

  .oem-form__label-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .oem-form__required {
    display: none;
  }

  .oem-form__label::after {
    content: "必須";
    display: inline-block;
    padding: 2px 5px;
    font-size: 13px;
    color: #e74c3c;
    background-color: transparent;
    border: 1px solid #e74c3c;
  }

  .oem-form__radio-group {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .oem-form__radio-text {
    font-size: 13px;
  }

  .oem-form__submit {
    font-size: 18px;
  }

  .oem-form__input,
  .oem-form__textarea {
    width: 100%;
  }

  /* テキストエリアの必須マークを非表示 */
  .oem-form__group:has(.oem-form__textarea) .oem-form__label::after {
    display: none;
  }

  .oem-form__group:has(.oem-form__textarea) .oem-form__required {
    display: none;
  }

  .oem-section__icons {
    flex-direction: column;
    gap: 30px;
  }

  .oem-section__icon-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .oem-section__icon {
    width: 60px;
    height: 60px;
    padding: 12px;
  }

  .oem-section__icon-text {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .oem-section__icon-description {
    font-size: 14px;
  }
}

@media screen and (max-width: 576px) {
  .oem-section--purpose::before,
  .oem-section--product::before,
  .oem-section--resources::before,
  .oem-section--selection::before,
  .oem-section--form::before {
    width: 140px;
    font-size: 18px;
    height: 40px;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.oem-description {
  padding: 25px 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.1) 100%);
  position: relative;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.oem-description::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.1));
}

.oem-description::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.1));
}

.oem-description__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.oem-description__text {
  font-size: 20px;
  line-height: 1.6;
  color: #333;
  text-align: center;
  font-weight: 500;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.8);
}

@media screen and (max-width: 768px) {
  .oem-description {
    padding: 20px 0;
  }

  .oem-description__text {
    font-size: 16px;
    padding: 0 15px;
  }
}

.oem-form__privacy {
  margin: 30px 0;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.oem-form__privacy-text {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 15px;
  text-align: center;
}

.oem-form__privacy-text a {
  color: #2196f3;
  text-decoration: underline;
}

.oem-form__privacy-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-top: 15px;
}

.oem-form__privacy-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1px #616161 solid;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.oem-form__privacy-check input[type="checkbox"]:checked {
  background-color: #444;
  border-color: #444;
}

.oem-form__privacy-check input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.oem-form__privacy-check-text {
  font-size: 16px;
  color: #333;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .oem-form__privacy {
    margin: 20px 0;
    padding: 15px;
  }

  .oem-form__privacy-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .oem-form__privacy-check input[type="checkbox"]:checked::after {
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
  }
}

.oem-form__errors {
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .oem-form__errors {
    font-size: 13px;
  }
}

@media screen and (min-width: 769px) {
  .oem-form__group {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
  }

  .oem-form__label {
    margin-bottom: 0;
  }

  .oem-form__label-container {
    display: flex;
    align-items: flex-start;
  }

  .oem-form__required {
    margin-right: 10px;
    margin-top: 8px;
    text-align: center;
  }

  .oem-form__radio-group {
    display: flex;
    gap: 20px;
  }

  .oem-form__radio-label {
    display: flex;
    align-items: center;
  }
}