body {
  background-color: var(--white);
}

.contact-section:not(:last-of-type) {
  padding-bottom: 0;
}

.contact-container {
  max-width: 450px;
  margin: 0 auto;
}

.contact-links {
  display: none;
}

.basic-title--framed {
  margin-bottom: 34px;
  color: #0082a0;
  padding: 8px 32px;
  max-width: 304px;
  width: 100%;
}

.basic-title--framed::before,
.basic-title--framed::after {
  background-image: url(/wp-content/themes/okinawa-jtb/images/common/frame-3.svg);
}

/* Accordion */
.accordion {}

.accordion__item {
  position: relative;
}

.accordion__header {
  padding: 16px;
  padding-left: min(16px, max(6px, calc(16px + 50vw - 180px)));
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  color: #005064;
  background-color: var(--white);
}

@media (max-width: 360px) {
  .accordion__header {
    font-size: 0.875rem;
  }
}

/* .accordion__header:hover {
  background: #f8f9fa;
} */

.accordion__header::after {
  content: "";
  display: block;
  width: 11px;
  height: 6px;
  background-image: url(/wp-content/themes/okinawa-jtb/images/common/icon-arrow-down.svg);
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.accordion__header--active {
  border-bottom: 1px solid #707070;
}

.accordion__header--active::after {
  transform: scaleY(-1);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  border-bottom: 1px solid #707070;
}

.accordion__content--active {
  max-height: 1000px;
  border-bottom: none;
}

.accordion__buttons {
  padding: 16px;
  display: grid;
  gap: 25px;
  grid-template-columns: 1fr;
  justify-content: center;
}

/* Buttons */
.accordion__buttons .button {
  display: block;
  width: 256px;
  /* height: 48px; */
  min-height: 48px;
  height: auto;
  padding: 14px;
  background: white;
  border: 1px solid #3cc8d2;
  border-radius: 8px;
  color: #000;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  margin: 0 auto;
}

.button:last-child {
  margin-bottom: 0;
}

.button--dots {
  color: #333;
  border-color: #ddd;
  font-size: 20px;
  font-weight: bold;
}

.button--dots:hover {
  background: #333;
  color: white;
}

/* Modal */
.modal {
  position: relative;
  margin: 0 auto;
  max-height: 0;
  display: none;
  opacity: 0;
  width: 78.93vw;
  max-width: 296px;
  z-index: 1000;
  background-color: #fff;
  margin-top: 0;
  transition: all 0.5s;
  pointer-events: none;
}

.modal::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  height: 14px;
  width: 10px;
  background-image: url(/wp-content/themes/okinawa-jtb/images/common/checkmark.png);
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1001;
}

.modal--active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  margin-top: 25px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal__content {
  background: white;
  width: 100%;
  max-width: 320px;
  padding: 20px;
  text-align: center;
  border: 1px solid #707070;
  border-radius: 8px;
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal__close:hover {
  background: #f0f0f0;
  color: #333;
}

.modal__service {
  background: #4facfe;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
  display: inline-block;
}

.modal__department {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.modal__divider {
  width: 60px;
  height: 2px;
  background: #4facfe;
  margin: 15px auto 20px;
}

.modal__phone {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.modal__hours {
  font-size: 12px;
  color: #666;
  margin-bottom: 25px;
}

.modal__form-button {
  background: white;
  border: 2px solid #ff4757;
  color: #ff4757;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.modal__form-button:hover {
  background: #ff4757;
  color: white;
}

.modal__service-button {
  background: white;
  border: 2px solid #4facfe;
  color: #4facfe;
  padding: 15px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  margin-top: 20px;
}

.modal__service-button:hover {
  background: #4facfe;
  color: white;
}

.link {
  width: 100%;
  max-width: 235px;
}

@media (min-width: 768px) {
  .basic-title--framed {
    margin-bottom: 66px;
    padding: 8px 44px;
  }

  .contact-container {
    max-width: 1084px;
    box-sizing: content-box;
  }

  .contact-links {
    display: grid;
    padding: 100px 20px 0;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: min(56.5px, max(20px, calc(56.6px + 25vw - 250px)));
    row-gap: 30px;
    justify-content: center;
    max-width: 1159px;
    width: 100%;
    margin: 0 auto;
  }

  .contact-link {
    position: relative;
    padding: 0 20px 13px 11.5px;
    border-bottom: 1px solid #707070;
    font-size: 1rem;
    font-weight: 700;
    font-weight: 700;
    color: #0082a0;
  }

  .contact-link::after {
    content: "";
    width: 11px;
    height: 6px;
    position: absolute;
    display: block;
    top: 50%;
    transform: translateY(-50%);
    right: 12px;
    background-image: url(/wp-content/themes/okinawa-jtb/images/common/icon-arrow-down.svg);
    background-size: contain;
    background-repeat: no-repeat;
  }

  .accordion {
    display: flex;
    flex-direction: column;
    gap: 70px;
  }

  .accordion__header {
    border-bottom: none;
    margin-bottom: 30px;
  }

  .accordion__header::after {
    display: none;
  }

  .accordion__content {
    max-height: 1000px;
    overflow: visible;
    transition: max-height 0.3s ease;
    border-bottom: none;
    box-sizing: content-box;
  }

  .accordion__buttons {
    display: grid;
    width: 100%;
    flex-wrap: wrap;
    grid-template-columns: repeat(auto-fit, 256px);
    /* justify-content: center; */
    justify-content: flex-start;
    column-gap: 20px;
    row-gap: 16px;
    padding: 0;
  }

  .accordion__button {
    display: block;

    position: relative;
    overflow: visible;
  }

  .accordion__buttons .button {
    display: block;
  }

  .accordion__header {
    font-size: 1.25rem;
    line-height: 1.45;

    padding: 0;
  }

  @media (min-width: 1200px) {
    .accordion__header {
      text-align: left;
    }
  }

  .modal--active {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    max-height: 1000px;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    margin-top: 25px;
    bottom: 60px;
  }

  .modal--active::before {
    bottom: -9px;
    top: auto;
    transform: scaleY(-1);
  }

  .accordion__buttons .button {
    padding-top: 0;
    padding-bottom: 0;
  }

  .basic-title--framed {
    width: fit-content;
    max-width: none;
  }
}