/* 埋め込み用リセット: megry reset.css を #megry-section にスコープ */
#megry-section *, #megry-section *::before, #megry-section *::after { box-sizing: border-box; }
#megry-section blockquote, #megry-section dd, #megry-section dl, #megry-section figure,
#megry-section h1, #megry-section h2, #megry-section h3, #megry-section h4,
#megry-section ol, #megry-section p, #megry-section ul { margin: 0; }
#megry-section h1, #megry-section h2, #megry-section h3, #megry-section h4, #megry-section h5, #megry-section h6 { font-family: inherit; font-weight: inherit; font-size: inherit; color: inherit; line-height: inherit; }
#megry-section ol, #megry-section ul { list-style: none; padding: 0; }
#megry-section img { height: auto; vertical-align: top; border: 0; }
#megry-section img, #megry-section picture { max-width: 100%; display: block; }
#megry-section .img img, #megry-section figure img { width: 100%; }
#megry-section a, #megry-section a:hover { color: inherit; text-decoration: none; }
#megry-section button, #megry-section input, #megry-section select, #megry-section textarea { font: inherit; margin: 0; padding: 0; }
#megry-section table { border-collapse: collapse; }

/* 既存の個別調整（維持） */
#megry-section .section-latest-post-container { padding: 3.2rem 0; }
#megry-section .latest-post-article article a figure { margin: 0; }



/* RESORTS.CO.JP */
@media (max-width: 768px) {
    .main-container .main-item {
        width: 100%;
    }
}

/* RESORTS RYUKYU LIST */
.main-container #hotel_list {
  box-shadow: unset;
}

.main-container #hotel_list #data_tables {
  font-size: 12px;
}

/* HOTEL BRAND */
.main-item .hotel-brand-text {
  font-size: 12px;
}

.main-item ul li .uk-card-media-top {
    padding: 20px 40px;
}

.main-item ul li .uk-card-media-top img {
  width: 100%;
  aspect-ratio: 249 / 86;
  object-fit: contain;
  padding: 0;
}

.main-item ul li .uk-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: unset;
  border: 1px solid black;
  border-radius: 10px;
  overflow: hidden;
}

.main-item ul li .uk-card-body > div,
.main-item ul li .uk-card-body > div .uk-card-title,
.main-item ul li .uk-card-body > div .uk-labek {
  font-size: 14px;
}

.main-item ul li .uk-card-body.uk-text-center {
  margin-top: auto;
}

.main-item ul li .card-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 共通パーツ */
html #megry-section{
  font-size: 14px !important;
}

#megry-section a, #megry-section a:hover {
    text-decoration: none !important;
}

/*見出し */
#megry-section .title-13 {
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    color: var(--color-text-002) !important;
}

#megry-section .title-14 {
    margin-bottom: 0.4em !important;
    font-weight: 500 !important;
    font-size: 5.8vw !important;
}

 #megry-section .title-14+.text-01{
  margin: 0 0 1rem !important;
}

@media (min-width: 599px) {
    #megry-section .title-14 {
        font-size: 2rem !important;
    }
}

@media (min-width: 1024px) {
    #megry-section .title-14 {
        font-size: 30px !important;
    }
}


/* ボタン */
#megry-section .btn-03 a{
  -webkit-transition: .3s linear !important;
  transition: .3s linear !important;
}

#megry-section .btn-03 a:hover {
    color: white !important;
    background-color: var(--color-009) !important;
}

#megry-section .btn-03.-alternative a {
    color: white !important;
    background-color: var(--color-009) !important;
}

#megry-section .btn-03.-alternative a:hover {
    color: var(--color-009) !important;
    background-color: white !important;
}

/* カード */
#megry-section .list-post .post-title {
    margin-bottom: clamp(0.6rem, -2.15rem + 11.73vw, 1.7rem) !important;
    font-size: 19px !important;
}

#megry-section .list-post .post-title {
    font-weight: bold !important;
}

#megry-section .section-post-container .list-post article a:hover .post-title{
  text-decoration: underline !important;
}

@media (min-width: 1024px) {
  #megry-section .section-post-container .list-post{
    grid-template-columns: repeat(4, calc((100% - 6rem) / 4)) !important;
  }
  
  #megry-section .list-post .post-title {
      margin-bottom: 1rem !important;
      font-weight: 700 !important;
      font-size: 16px !important;
  }
}

#megry-section .list-post .ver-special .post-title {
    margin-bottom: 0 !important;
}

#megry-section .list-post .post-link--alternative a[href=""],#megry-section .list-post .post-link--alternative a[href="https://www.resorts.co.jp/headless.html?path="]{
  display: none !important;
}

/* ヘッダー */
#megry-section .totop {
    content: unset !important;
    width: auto !important;
    display: unset !important;
    color: inherit !important;
    border: none !important;
    border-radius: unset !important;
    background: none !important;
    bottom: 0 !important;
    right: 0 !important;
    aspect-ratio: unset !important;
}

#megry-section .totop::before,#megry-section .totop::after {
    content: none !important;
}

/* .totop {
    content: unset !important;
    width: auto !important;
    display: unset !important;
    color: inherit !important;
    border: none !important;
    border-radius: unset !important;
    background: none !important;
    bottom: 0 !important;
    right: 0 !important;
    aspect-ratio: unset !important;
}

.totop::before,.totop::after {
    content: none !important;
} */

/* フッター */
#megry-section .footer-nav-heading {
    font-weight: bold !important;
    font-size: 15px !important;
    color: var(--color-text-002) !important;
}

#megry-section .footer-nav-item .list-nav li a:hover {
    text-decoration: underline !important;
}

/* 最新記事 */
#megry-section .latest-post-img-wrap .img{
  height: 100%;
}

@media (min-width: 1024px) {
    #megry-section .latest-post-title .title-13 {
        margin-top: 1.7em !important;
    }
    
    
    #megry-section .latest-post-content .title-12 {
        line-height: 1.15vw !important;
    }
}

/* ビジュアル検索 */
#megry-section .section-post-container.-pattern-black [class^=title]{
    color: var(--color-001) !important;
}

/* 人気記事ランキング */
@media (min-width: 1024px) {
    #megry-section .box-article-ranking .title-article-ranking {
        font-weight: 500 !important;
        font-size: clamp(1.125rem, 1.068rem + 0.24vw, 1.29rem) !important;
        color: #fff !important;
    }
}

/* 沖縄旅行の服装ガイド */
#megry-section .list-clothing-guide-link li a {
    color: white !important;
}

/* 見たまま編集画面用 */
[data-element-id] #megry-section .main-item .uk-table-divider > :not(:first-child) > tr:nth-of-type(n+2) {
  display: none;
}
