/* ===========================================
   FV Latest News - bottom right overlay
   =========================================== */
.p-fv-news {
  position: absolute;
  bottom: 130px;
  right: 30px;
  z-index: 10;
  max-width: 560px;
  width: 100%;
}
.p-fv-news__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 14px 22px;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.3s;
  border-radius: 4px;
}
.p-fv-news__link:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
}
.p-fv-news__row1 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.p-fv-news__label {
  background: #fff;
  color: #00479d;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.p-fv-news__date {
  flex-shrink: 0;
  opacity: 0.8;
  font-size: 12px;
}
.p-fv-news__cat {
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 11px;
  flex-shrink: 0;
}
.p-fv-news__title {
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 2px;
}
@media (max-width: 767px) {
  .p-fv-news {
    bottom: 60px;
    right: 20px;
    left: 20px;
    max-width: none;
    width: auto;
  }
  .p-fv-news__link {
    padding: 10px 14px;
    font-size: 12px;
    border-radius: 4px;
  }
  .p-fv-news__cat { display: none; }
}

/* ===========================================
   NEW badge for news list items
   =========================================== */
.p-article04__new {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 2px;
  margin-right: 10px;
  flex-shrink: 0;
  line-height: 1.4;
}

/* SP: News list - 2-line layout */
@media (max-width: 767px) {
  .p-article04__inner {
    flex-wrap: wrap;
    height: auto;
    line-height: 1.6;
    padding: 10px 15px;
  }
  .p-article04__date {
    margin-right: 8px;
  }
  .p-article04__title {
    flex-basis: 100%;
    white-space: normal;
    overflow: visible;
    line-height: 1.5;
    margin-top: 2px;
  }
  .p-article04__new {
    margin-right: 6px;
  }
  .p-article04__inner .p-cat {
    font-size: 10px;
    line-height: 20px;
    padding: 0 6px;
    height: 20px;
    box-sizing: border-box;
  }
}

/* ===========================================
   Contact Form (row6) Design
   =========================================== */
.tcd-pb-row.row6 .wpcf7-form {
  max-width: 720px;
  margin: 0 auto;
}
.tcd-pb-row.row6 .wpcf7-form > p {
  margin-bottom: 22px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  line-height: 1.8;
}
.tcd-pb-row.row6 .wpcf7-form label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-text,
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-email,
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-tel,
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-textarea,
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-select {
  width: 100%;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  color: #333;
  background: #f9fafb;
  margin-top: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-text:focus,
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-email:focus,
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-tel:focus,
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-textarea:focus,
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-select:focus {
  border-color: #00479d;
  box-shadow: 0 0 0 3px rgba(0, 71, 157, 0.1);
  outline: none;
  background: #fff;
}
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-textarea {
  min-height: 180px;
  resize: vertical;
}
/* Checkbox */
.tcd-pb-row.row6 .wpcf7-checkbox .wpcf7-list-item,
.tcd-pb-row.row6 .wpcf7-acceptance .wpcf7-list-item {
  display: inline-block;
  margin-right: 20px;
  margin-top: 8px;
}
.tcd-pb-row.row6 .wpcf7-checkbox input[type="checkbox"],
.tcd-pb-row.row6 .wpcf7-acceptance input[type="checkbox"] {
  accent-color: #00479d;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}
.tcd-pb-row.row6 .wpcf7-list-item-label {
  font-size: 14px;
  vertical-align: middle;
}
/* Submit button */
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-submit {
  display: block;
  width: 280px;
  margin: 30px auto 0;
  padding: 16px 0;
  background: #00479d;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.tcd-pb-row.row6 .wpcf7-form-control.wpcf7-submit:hover {
  background: #003578;
  transform: translateY(-1px);
}
/* Validation */
.tcd-pb-row.row6 .wpcf7-not-valid-tip {
  color: #e53935;
  font-size: 12px;
  margin-top: 4px;
}
.tcd-pb-row.row6 .wpcf7-response-output {
  text-align: center;
  border-radius: 4px;
  padding: 12px;
  font-size: 14px;
}
.tcd-pb-row.row6 .wpcf7-acceptance a {
  color: #00479d;
  text-decoration: underline;
}
@media (max-width: 767px) {
  .tcd-pb-row.row6 .wpcf7-form {
    padding: 0 10px;
  }
  .tcd-pb-row.row6 .wpcf7-form-control.wpcf7-submit {
    width: 100%;
  }
  .tcd-pb-row.row6 .wpcf7-checkbox .wpcf7-list-item {
    display: block;
    margin-right: 0;
  }
}
