:root{
  --ddrt-blue:  #53F3F5;
  --ddrt-green: #A3FF84;
}

.ddrt-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.ddrt-modal__shade{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease;
}

.ddrt-modal__dialog{
  position: relative;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: #000;
  border: 1px solid #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.22), 0 20px 40px rgba(0,0,0,.55);
  filter: drop-shadow(0 0 8px rgba(255,255,255,.18));
  color: #F5F7FA;
  border-radius: 14px;
  padding: 28px 28px 24px;
  transform: scale(.96) translateY(6px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}

.ddrt-modal.is-open{
  opacity: 1;
  pointer-events: auto;
  padding: 20px;
}
.ddrt-modal.is-open .ddrt-modal__shade{ opacity: 1; }
.ddrt-modal.is-open .ddrt-modal__dialog{
  transform: scale(1) translateY(0);
  opacity: 1;
}

.ddrt-modal__close{
  position: absolute;
  right: 14px;
  top: 12px;
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  line-height: 1;
  font-size: 26px;
  font-weight: 700;
  color: var(--ddrt-green);
  cursor: pointer;
  z-index: 2;
  transition: color .18s ease, transform .1s ease, opacity .2s ease;
}
.ddrt-modal__close:hover{
  color: var(--ddrt-blue);
  opacity: .9;
  transform: scale(1.02);
}

.ddrt-modal h3{ margin: 0 28px 14px 0; font-size: 26px; letter-spacing: .02em; }
.ddrt-modal p, .ddrt-modal ul{ margin: 0 0 12px; line-height: 1.6; }
.ddrt-modal ul{ padding-left: 1.2rem; list-style: disc; }

.ddrt-modal__bg{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .25s ease;
  cursor: pointer;
}
.ddrt-modal.is-open .ddrt-modal__bg{ opacity: 1; }

.ddrt-modal__dialog{ position: relative; overflow: hidden; }
.ddrt-modal__dialog::before{
  content: attr(data-num);
  position: absolute;
  top: -18px;
  right: 12px;
  font-weight: 800;
  font-size: 220px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.35);
  text-stroke: 2px rgba(255,255,255,.35);
  pointer-events: none;
  z-index: 0;
  opacity: .85;
}

.ddrt-modal-img {
  display: block;
  max-width: 100%;
  max-height: 50vh;
  margin: 15px auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  object-fit: contain;
}

/* == Responsive == */
@media (max-width: 768px) {

  .site-header img, .site-footer img {
    max-width: 160px !important;
    height: auto !important;
  }

  .site-footer {
    text-align: center;
    padding: 20px 10px;
  }
  .site-footer p, .site-footer a {
    font-size: 14px;
    line-height: 1.4;
    color: #fff !important;
  }

  .service {
    margin-bottom: 28px;
    padding: 20px;
    text-align: center;
  }
  .service h3 { font-size: 1.3rem; }
  .service p { font-size: 0.95rem; }
  .service .button_dot { font-size: 0.9rem; padding: 8px 14px; }

  .ddrt-modal__dialog {
    width: 95% !important;
    max-width: 95% !important;
    max-height: none;
    height: auto;
    padding: 18px !important;
    border-radius: 10px;
  }
  .ddrt-modal h3 { font-size: 1.2rem !important; }
  .ddrt-modal p, .ddrt-modal ul {
    font-size: 14px !important;
    line-height: 1.4;
  }
  .ddrt-modal-img { max-height: 35vh !important; }

  h1.entry-title, .entry-content h1 {
    font-size: 1.8rem !important;
    line-height: 1.25 !important;
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  .entry-content h2 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
  .entry-content h3 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
  }
  p {
    hyphens: none !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
}

footer {
  background-color: #000000 !important;
}
footer, footer p, footer span { color: #ffffff !important; }
footer a { color: #ffffff !important; text-decoration: none; }
footer a:hover { color: #A3FF84 !important; }
footer .footer-logo img {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}
@media (max-width: 768px) {
  footer { text-align: center; }
  footer .footer-logo img { max-width: 160px !important; height: auto !important; }
  footer p, footer span, footer a { font-size: 14px !important; line-height: 1.4; }
}