/*─────────────────────────────────────
  モーダル共通設定
─────────────────────────────────────*/
.rurubu-link {
  width: auto !important;

  @media (max-width: 800px) {
    /* min-height: 45.73vw !important; */
    max-height: 57.73vw !important;
    height: auto !important;
  }
}


.kuruma-link {
  height: auto !important;
}

.l-modal__dialog {
  top: 520px;
}

/* .l-modal {
  position: fixed;
  top: 74px;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: auto; 
  padding-bottom: 6rem;
} */

.l-modal.is-open {
  display: flex;
}

.l-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.l-modal__dialog, .l-modal__content {
  position: relative;
  background: #fff;
  /* border-radius: 8px; */
  max-width: 870px;
  width: 60%;  /*  ここを調整*/
  z-index: 1010;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  margin: 0 auto 20px auto;
}

.l-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 1020;
}

.modal-design__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  overflow-y: auto;
}

.modal-design__body {
  padding: 20px;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  flex-grow: 1;
}

.modal-design__footer {
  padding: 20px;
  margin: 0 auto;
  text-align: center;
}

.modal-design__footer .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #f8cc3c;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
}

body.modal-open {
  overflow-y: hidden;
  width: 100%;
  padding-right: var(--scrollbar-width, 0);
}

.btn--yellow {
  width: 12rem !important;
  height: 4rem !important;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.modal-design__footer .btn--yellow {
  text-indent: 0 !important;
  font-size: 16px !important;
  line-height: 4rem !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #000 !important;
  background-color: #f8cc3c !important;
}

html.modal-open,
body.modal-open {
  height: 100%;
  overflow: hidden;
}

.l-modal {
  overscroll-behavior: none;
}

.l-modal__dialog {
  overscroll-behavior: none;
}

.modal-design__header {
  padding: 0.75rem 1rem 0 1rem;
  display: flex;
  justify-content: center;
  width: 70%;
  margin: 0 auto;
  /* Firefox */
  @-moz-document url-prefix() {
    width: 94%;
  }
  @media (max-width: 800px) {
    flex-direction: column;
    width: 90%;
  }
}

.modal-design__header img {
  width: 70%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
  margin: 0 auto;
  @media (max-width: 800px) {
    width: 100%;
  }
}

.modal-heading {
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.6rem;
}

.modal-heading .heading-no {
  font-size: 2.6rem;
  @media (max-width: 800px) {
    font-size: 2rem;
  }
}

.modal-heading .heading-pref {
  font-size: 1.9rem;
}

.modal-heading .heading-route {
  font-size: 2.6rem;
    @media (max-width: 800px) {
      font-size: 2rem;
    }
}

.heading-rule {
  border: none;
  height: 2px;
  background: #000;
  margin: 8px 0 20px;
}

.modal-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
  @media (max-width: 800px) {
      font-size: 0.95rem;
  }
}

.modal-lead strong {
  font-weight: 700;
}

.modal-section-heading {
  margin: 24px 0 8px;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.3;
  border-bottom: 2px solid #000;
  display: inline-block;
  @media (max-width: 800px) {
    font-size: 1.5rem;
  }
}

.modal-note {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.4;
  @media (max-width: 800px) {
    font-size: 0.95rem;
  }
}

.modal-note-explain {
  margin-top: 1rem;
  padding: 0.25rem;
}

.modal-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.modal-list li {
  position: relative;
  padding-left: 1.1em;
  line-height: 1.5;
}
.modal-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

.modal-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 18px;
  text-align: left;
  @media (max-width: 800px) {
    font-size: 0.95rem;
  }
}

.modal-credit {
  font-size: 0.85rem;
  margin: 0 0 12px;
  text-align: right;
}

.modal-link {
  text-align: right;
}
.modal-link a {
  text-decoration: underline;
  font-weight: 700;
  font-size: 1.3rem;
  @media (max-width: 800px) {
    font-size: 1rem;
  }
}

.modal-heading,
.modal-lead,
.modal-section-heading,
.modal-note,
.modal-list,
.modal-text,
.modal-credit,
.modal-link {
  text-align: left !important;
}

.modal-heading {
  justify-content: flex-start;
}

.modal-info {
  text-align: left !important;
}

.modal-section-heading {
  display: inline-block;
  margin-left: 0;
}

.modal-destination-table {
  width: 100%;
  border-collapse: collapse;
  /* margin: 0 0 24px; */
  font-size: 0.95rem;
}

.modal-destination-table th,
.modal-destination-table td {
  /* padding: 8px 6px; */
  padding: 8px 0;
  text-align: left;
  line-height: 1.5;
}

.modal-destination-table thead th {
  font-weight: 700;
  border-bottom: 2px solid #000;
}

.modal-destination-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid #ccc;
}

.modal-destination-block {
  display: grid;
  grid-template-columns: 1fr 260px;
  grid-template-rows: auto 1fr;
  /* column-gap: 95px; */
  column-gap: clamp(20px, 7vw, 95px); /* ここを調整 */
  /* row-gap: 16px; */
  align-items: start;
  min-height: 19rem;
}

.modal-desc-text {
  grid-column: 1;
  grid-row: 1 / span 2;
  /* width: 90%; */
}

.modal-destination-thumb {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  flex: 0 0 240px;
  max-width: 240px;
  justify-self: start;
  transform: translateX(clamp(-57px, -3vw, -20px));
    @media (max-width: 800px) {
      transform: none;
      justify-self: auto;
    }
}

.modal-destination-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 800px) {
  .modal-destination-block {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    /* row-gap: 24px; */
  }
  .modal-desc-text {
    grid-row: auto;
  }
  .modal-destination-thumb {
    grid-column: 1;
    grid-row: 3;
    flex: 0 0 auto;
    max-width: 240px;
    margin: 0 auto;
  }
}

.l-modal {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: auto; 
  padding-bottom: 6rem;

  @media screen and (min-width: 769px) and (max-width: 1258px) {
    top: 124px;
    padding-bottom: 9rem;
  }

  @media screen and (max-width: 768px) {
    top: 58px;
  }
}

.l-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.l-modal__dialog {
  position: relative;
  top: auto;
  transform: none;
  margin: auto;
}

