
.wrapper { background-color: #F0F3F5; }

.wp-download-page { width: 75%; }
.wp-download-container {
  background-color: #FFFFFF;
  margin-top: 80px;
  margin-bottom: 40px;
  padding-right: 15px;
  width: 100%;
}


.wpd-row {
  display: flex;
  align-items: stretch;
}
.wpd-left, .wpd-right { 
    float: none; 
}
.wpd-left {
  display: flex;
  padding-left: 0;
  padding-right: 10px;
}
.wpd-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wpd-right {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
}
.wpd-right .wpd-input,
.wpd-right .wpd-confirm-box,
.wpd-right .wpd-recaptcha-box,
.wpd-right .wpd-submit {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.wpd-right .input-label { text-align: left; display: block; }

.wpd-right .wpd-input input,
.wpd-right .wpd-input textarea { text-align: left; }

.wpd-alert {
  text-align: center;
  font-size: 18px;
  color: #9F1F24;
  font-family: "Noto Sans JP", sans-serif !important;
  font-weight: 600;
  font-feature-settings: "palt";
  margin-bottom: 10px;
}

.require-span {
    color: #FFFFFF;
    font-size: 12px;
    background-color: #9F1F24;
    padding: 0px 7px 0px 7px;
    border-radius: 5px;
    font-weight: normal !important;
    display: inline-block;
    font-family: "Noto Sans JP", sans-serif !important;
    font-feature-settings: "palt";
    margin-left: 10px;
    height: 20px;
    line-height: 18px;
}
.require-span-input { position: relative; top: -1px; }

.input-label {
    color: #3B4043 !important;
    font-size: 16px;
    font-weight: normal !important;
    font-family: "Noto Sans JP", sans-serif !important;
    font-feature-settings: "palt";
}

.wpd-input { margin-bottom: 20px; }
.wpd-form-input { position: relative; }
.wpd-input input,
.wpd-input textarea {
  background-color: #F7F8F8 !important;
  border: 1px solid #CDD6DD !important;
  border-radius: 5px !important;
  background-image: none !important;
  padding-left: 10px !important;
  font-size: 16px !important;
  color: #3B4043 !important;
  font-family: "Noto Sans JP", sans-serif !important;
  font-feature-settings: "palt";
}

.wpd-input textarea { resize: auto; }
.wpd-input input { height: 45px; }
.wpd-input input:focus, .wpd-input textarea:focus { border: 1px solid #9F1F24 !important; }
.wpd-input input:-webkit-autofill,
.wpd-input input:-webkit-autofill:hover,
.wpd-input input:-webkit-autofill:focus {
  background-color: #F7F8F8 !important;
  -webkit-box-shadow: 0 0 0px 1000px #F7F8F8 inset;
  transition: background-color 5000s ease-in-out 0s;
}

.wpd-input input.invalid-input:-webkit-autofill,
.wpd-input input.invalid-input:-webkit-autofill:hover,
.wpd-input input.invalid-input:-webkit-autofill:focus {
  background-color: #fff4f4 !important;
  -webkit-box-shadow: 0 0 0px 1000px #fff4f4 inset;
  transition: background-color 5000s ease-in-out 0s;
}
.wpd-input .invalid-input { border: 1px solid #9F1F24 !important; background-color: #fff4f4 !important; }

.invalid-message {
    font-size: 12px !important;
    color: #9F1F24 !important;
    font-family: "Noto Sans JP", sans-serif !important;
    font-feature-settings: "palt";
}

.invalid-warning {
  background-color: #9F1F24; color: #FFFFFF; width: 16px !important; height: 16px !important;
  border-radius: 50%; position: absolute; top: 15px; right: 15px; text-align: center; display: none;
  font-weight: bold; font-size: 12px; padding-left: 1px;
}

.span-position {
    position: absolute;
}

/* Recaptcha & submit */
.wpd-recaptcha, .wpd-submit {
  display: flex;
  justify-content: center;
}

.wpd-submit {
  margin-top: 15px;
  font-family: "Noto Sans JP", sans-serif !important;
  font-feature-settings: "palt";
}

.wpd-button {
  background-color: #9F1F24 !important;
  box-shadow: none !important;
  width: 300px;
  font-size: 16px !important;
  margin-bottom: 10px;
  display: inline-block;
  text-align: center;
  color: #FFFFFF !important;
  text-decoration: none !important;
  border-radius: 5px;
  padding: 20px 16px;
  line-height: 1.2;
  cursor: pointer;
}

.wpd-button:hover,
.wpd-button:focus,
.wpd-button:active {
  color: #FFFFFF !important;
  text-decoration: none !important;
  background-color: #8b1a1e !important;
}

/* Confirm + recaptcha */
.wpd-recaptcha-box { text-align: center; margin: 24px 30px 0 30px; }

.wpd-confirm {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
  justify-content: center;
}

.wpd-confirm-text {
  font-family: "Noto Sans JP", sans-serif !important;
  font-feature-settings: "palt";
  color: #000000;
}

.wpd-confirm-text a,
.wpd-confirm-text a:visited,
.wpd-confirm-text a:hover,
.wpd-confirm-text a:active { color: #000000; text-decoration: underline; }
.wpd-confirm-text .require-span { margin-left: 8px; }
/* removed .wpd-recaptcha-required - unused */

/* Checkbox */
.wpd-confirm-box {
  text-align: center;
}

.wpd-checkbox {
  display: block;
  position: relative;
  padding-left: 24px;
  margin: 0 8px 12px 0;
  font-size: 22px;
}

.wpd-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.wpd-checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  border: 1px solid #CDD6DD;
  border-radius: 5px;
  cursor: pointer;
}

.wpd-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.wpd-checkbox input:checked ~ .wpd-checkmark:after {
  display: block;
}

.wpd-checkbox .wpd-checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #9F1F24;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.wpd-right .wpd-input { margin-bottom: 10px; }

/* Download complete card */
.wpd-sendok-card {
  padding: 48px 0 56px;
  margin: 0 auto;
  text-align: center;
  color: #3B4043;
  line-height: 1.6;
}

.wpd-sendok-card * {
  font-family: "Noto Sans JP", sans-serif !important;
  font-feature-settings: "palt";
}

.wpd-lead {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.5;
  font-weight: 700;
}

.wpd-note {
  font-size: 12px;
  margin: 0 auto 40px;
  text-align: left;
  display: inline-block;
}

.wpd-small-note {
  font-size: 12px;
  color: #9F1F24;
  margin: 0 auto 10px;
  text-align: left;
  font-weight: 500;
  display: inline-block;
}

.wpd-sendok-actions {
  margin: 32px 0 24px;
}

.wpd-sendok-footer-link {
  margin-top: 16px;
}

/* Secondary link button */
.wpd-sendok-secondary {
  display: inline-block;
  padding: 16px 80px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid #3B4043;
  border-radius: 4px;
  color: #3B4043;
  text-decoration: none;
}
.wpd-sendok-secondary:hover,
.wpd-sendok-secondary:focus { background:#3B4043; color:#FFFFFF; text-decoration:none; }

/* Spacing wrappers */
.wpd-sendok-actions { margin: 50px 0 40px; }
.wpd-sendok-footer-link { margin-top: 12px; }

/* Constrain action button width consistently */
.wpd-sendok-card .wpd-button { min-width: 260px; }

.wpd-header-spacer { height: 70px; }

.wpd-hero-inner {
  position: relative;
  padding-left: 0;
  padding-right: 0;
}

.wpd-hero-inner > img {
  display: block;
  width: 75%;
  height: auto;
  margin-left: auto;
}

.wpd-sendok-overlay img {
  width: auto;
  max-width: 75%;
  height: auto;
  display: block;
}

.wpd-sendok-overlay {
  position: absolute;
  left: 20%;
  bottom: 7%;
}

.wpd-sendok-overlay-label {
  display: inline-block;
  position: relative;
  background: #ffffff;
  width: 45%;
  padding: 3px 10px;
  text-align: right;
  transform: translateY(-8px);
}
.wpd-sendok-overlay-label:after {
  position: absolute;
  content: "";
  background: #ffffff;
  top: 0;
  bottom: 0;
  right: 0;
  left: -1000px;
}

.wpd-sendok-overlay-label span {
  display: inline-block;
  position: relative;
  color: #9F1F24;
  font-size: 18px;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  font-feature-settings: "palt";
  z-index: 1;
}

/* Download item box */
.wpd-download-item {
  width: 260px;
  margin-bottom: 40px;
  padding: 20px 30px;
  background: #f1f1f1;
  border: 1px solid #eee;
  border-radius: 3px;
  text-align: left;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

/* Thumbnail inside download card */
.wpd-download-thumb {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 2px;
  margin: 10px 0 18px;
}

/* Title */
.wpd-download-title {
  font-size: 16.5px;
  font-weight: bold;
  margin-bottom: 18px;
  color: #333;
  line-height: 1.5;
}

/* Button */
.wpd-download-btn {
  display: block;
  width: 100%;
  padding: 8px 0;
  background: #ffffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  color: #444;
  text-align: center;
  text-decoration: none;
  line-height: 1.4;
}

.wpd-download-btn:hover {
  background: #bebebe;
  color: #444 !important;
}

.wpd-download-btn_text {
  display: inline-block;
  vertical-align: middle;
}

.wpd-download-btn_icon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 16px;
  margin-left: 15px;
  filter: invert(60%) brightness(0.4);
}
.wpd-download-item a:focus, a:hover{
  color: #444;
}

/* Responsive breakpoints */
@media (max-width: 1439.98px) {
  .wpd-right .wpd-recaptcha-box,.wpd-right .wpd-confirm-box {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 991.98px) {
  .wp-download-page {
    width: 80%; padding: 0 5px;
  }

  .wp-download-container {
    margin-top: 70px; margin-bottom: 5px;
  }

  .wpd-header-spacer {
    height: 54px;
  }

  .wpd-hero-inner {
    overflow-x: hidden;
    overflow-y: visible;
  }

  .wpd-hero-inner > img {
    width: 138%;
    max-width: none;
    transform: translateX(10%);
  }

  .wpd-sendok-card {
    padding: 40px 35px 40px;
  }

  .wpd-sendok-overlay {
    left: 3%;
    bottom: 7%;
  }

  .wpd-sendok-overlay img {
    max-width: 80%;
  }

  .wpd-sendok-overlay-label {
    width: 48%;
    transform: translateY(-4px);
  }

  .wpd-sendok-overlay-label span {
    font-size: 16px;
  }
}

@media (max-width: 768.98px) {
  .wpd-lead { text-align: left; }
  .wp-download-page { width: 90%; padding: 0 5px; }
  .wp-download-container { margin-top: 70px; margin-bottom: 5px; }
}

@media (max-width: 576.98px) {
  .wpd-right .wpd-input,
  .wpd-right .wpd-recaptcha-box,
  .wpd-right .wpd-confirm-box,
  .wpd-right{
    margin-left: 0;
    margin-right: 0;
  }
  .wpd-submit .wpd-button {
    width: 80%;
    padding: 25px 20px;
    font-size: 22px !important;
    font-weight: 800 !important;
    border-radius: 6px;
    box-sizing: border-box;
  }
}

@media (max-width: 480.98px) {
  .wpd-right .wpd-input, .wpd-right 
  .wpd-recaptcha-box, .wpd-right .wpd-confirm-box {
    margin-left: 20px; margin-right: 20px;
  }
  .recaptcha-box { transform: scale(0.85); transform-origin: 0 0; }
}

@media (max-width: 349.98px) {
  .wpd-right .wpd-input, .wpd-right
  .wpd-recaptcha-box, .wpd-right .wpd-confirm-box {
    margin-left: 12px; margin-right: 12px;
  }
}

@media (max-width: 991.98px) {
  .wp-download-container {
    padding: 0 0 10px;
    margin-top: 100px;
    margin-bottom: 40px;
  }
  .wpd-row {
    display: block;
  }

  .wpd-left,
  .wpd-right {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .wpd-left {
    margin-bottom: 30px;
    display: block;
  }

  .wpd-banner {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .wpd-right {
    margin-top: 0;
    padding: 24px 24px;
  }
}
