/* Offline archive preview adapter: observed theme structure with static archive-only behavior. */
.archive-theme .archive-theme__article-layout::after {
  clear: both;
  content: " ";
  display: table;
}

.p-entry__body figure.wp-block-image.article-image-unit {
  margin: .75rem 0 3rem;
}

.p-entry__body figure.wp-block-image.article-image-unit img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.p-entry__body aside.article-official-info {
  background: #f7f7f7;
  border-left: 3px solid #dd9399;
  box-sizing: border-box;
  margin: 1.5rem 0;
  max-width: 100%;
  padding: 14px 18px;
  width: 100%;
}

.p-entry__body aside.article-official-info p {
  margin: 0;
}

.p-entry__body aside.article-official-info a {
  overflow-wrap: anywhere;
}

.archive-theme__article-sidebar .p-widget-list__ranking .p-widget-list__item-rank {
  background: #000;
  color: #fff;
}

.archive-theme__mobile-menu {
  display: none;
  position: relative;
  z-index: 20;
}

.archive-theme__menu-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  list-style: none;
  min-height: 44px;
  padding: 8px 12px;
}

.archive-theme__menu-toggle::-webkit-details-marker {
  display: none;
}

.archive-theme__footer-posts {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  height: auto !important;
  width: 100% !important;
  max-width: 100%;
  overflow: visible !important;
  transform: none !important;
}

.archive-theme__footer-posts > .archive-theme__footer-post {
  display: block !important;
  height: 480px;
  min-width: 0;
  width: auto !important;
  max-width: none;
  margin: 0 !important;
  flex: none !important;
}

.archive-theme__footer-post .p-article-slider__item-thumbnail {
  height: 480px;
  overflow: hidden;
}

.archive-theme__footer-post .p-hover-effect__image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-theme .p-page-header__title {
  color: #fff;
}

.archive-theme .p-page-header::before {
  background: rgba(0, 0, 0, .2);
}

.archive-theme .p-breadcrumb__inner.c-breadcrumb__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0 .35rem;
  height: auto;
  line-height: 1.5;
  min-height: 58px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.archive-theme .p-breadcrumb__item {
  display: inline-flex;
  flex: 0 1 auto;
  list-style: none;
  max-width: 100%;
  min-width: 0;
}

.archive-theme .p-breadcrumb__item > a,
.archive-theme .p-breadcrumb__item > span {
  overflow-wrap: anywhere;
}

.archive-theme .archive-theme__pager {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.archive-theme .archive-theme__pager > .p-pager__item {
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  box-sizing: border-box;
  color: #000;
  display: inline-flex;
  font-size: 14px;
  height: 45px;
  justify-content: center;
  line-height: 1;
  margin: 0 5px 5px 0;
  min-width: 45px;
  padding: 0 5px;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
}

.archive-theme .archive-theme__pager > a.p-pager__item:hover,
.archive-theme .archive-theme__pager > .p-pager__item[aria-current="page"],
.archive-theme .archive-theme__pager > .p-pager__item--current {
  background: #e69096;
  color: #fff;
}

@media (min-width: 1201px) {
  .archive-theme .l-header__logo--pc {
    display: block;
    margin-bottom: 18px;
    padding-top: 62px;
    text-align: center;
  }

  .archive-theme .l-header__logo--pc > a {
    display: inline-block;
  }

  .archive-theme .l-header__logo--pc img {
    display: block;
    height: auto;
    margin-inline: auto;
    max-width: 100%;
  }

  .archive-theme .l-header__bar-inner {
    position: relative;
  }

  .archive-theme .l-header__bar-inner > .p-social-nav {
    z-index: 30;
  }

  .archive-theme .l-header__bar-inner > .archive-theme__search-icon {
    pointer-events: none;
    z-index: 30;
  }

  .archive-theme .archive-theme__desktop-nav {
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 20;
  }

  .archive-theme .archive-theme__desktop-nav .archive-theme__nav-list {
    align-items: stretch;
    bottom: auto !important;
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: center;
    left: 0 !important;
    margin: 0;
    min-height: 60px;
    pointer-events: none;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 100%;
    z-index: 21 !important;
  }

  .archive-theme .archive-theme__desktop-nav .archive-theme__nav-list > li {
    line-height: 60px;
    pointer-events: auto;
    margin: 0 17.5px;
    position: relative;
  }

  .archive-theme .archive-theme__desktop-nav .archive-theme__nav-list > li > a {
    display: block;
  }

  .archive-theme .archive-theme__desktop-nav .archive-theme__nav-list .sub-menu {
    background: #fff;
    display: block;
    left: 100%;
    opacity: 0 !important;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translate3d(0, -6px, 0);
    visibility: hidden !important;
    z-index: 22;
  }

  .archive-theme .archive-theme__desktop-nav .archive-theme__nav-list > li > .sub-menu {
    left: 0;
    top: 100%;
  }

  .archive-theme .archive-theme__desktop-nav .archive-theme__nav-list li:hover > .sub-menu,
  .archive-theme .archive-theme__desktop-nav .archive-theme__nav-list li:focus-within > .sub-menu {
    opacity: 1 !important;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    visibility: visible !important;
  }
}

@media (max-width: 1200px) {
  .archive-theme .l-header {
    position: relative;
    z-index: 1000;
  }

  .archive-theme .l-header__bar-inner {
    align-items: center;
    box-sizing: border-box;
    display: grid;
    gap: 0;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: 61px;
  }

  .archive-theme .l-header__bar-inner > .p-social-nav,
  .archive-theme .l-header__bar-inner > .archive-theme__search-icon {
    display: none;
  }

  .archive-theme .l-header__bar-inner > .l-header__logo--mobile {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    display: block;
    flex: 0 0 auto;
    line-height: 1;
    margin: 0;
    max-width: 156px;
    min-width: 0;
    padding: 0;
    position: relative;
    width: 100%;
  }

  .archive-theme .l-header__bar-inner > .l-header__logo--mobile img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
  }

  .archive-theme .archive-theme__desktop-nav {
    display: none;
  }

  .archive-theme__mobile-menu {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .archive-theme .l-header__bar-inner > .archive-theme__mobile-menu {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    margin: 8px 0 0;
  }

  .archive-theme .archive-theme__mobile-menu > .archive-theme__menu-toggle {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    font-size: 0;
    height: 44px;
    justify-content: center;
    line-height: 0;
    min-height: 44px;
    padding: 0;
    position: relative;
    width: 44px;
  }

  .archive-theme .archive-theme__mobile-menu > .archive-theme__menu-toggle::before,
  .archive-theme .archive-theme__mobile-menu > .archive-theme__menu-toggle::after {
    background: currentColor;
    border-radius: 1px;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    top: 50%;
    width: 20px;
  }

  .archive-theme .archive-theme__mobile-menu > .archive-theme__menu-toggle::before {
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
    transform: translate(-50%, -50%);
  }

  .archive-theme .archive-theme__mobile-menu > .archive-theme__menu-toggle::after {
    display: none;
  }

  .archive-theme .archive-theme__mobile-menu[open] > .archive-theme__menu-toggle::before {
    box-shadow: none;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .archive-theme .archive-theme__mobile-menu[open] > .archive-theme__menu-toggle::after {
    display: block;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .archive-theme .archive-theme__mobile-menu > .archive-theme__menu-toggle:focus-visible {
    outline: 2px solid #222;
    outline-offset: 2px;
  }

  .archive-theme__mobile-menu[open] {
    z-index: 1002;
  }

  .archive-theme .archive-theme__mobile-menu[open] > .archive-theme__menu-toggle {
    background: #222;
    color: #fff;
    position: fixed;
    right: calc(8px + env(safe-area-inset-right, 0px));
    top: calc(8px + env(safe-area-inset-top, 0px));
    z-index: 1002;
  }

  .archive-theme .archive-theme__mobile-menu[open] > .archive-theme__menu-toggle:focus-visible {
    outline-color: #fff;
    outline-offset: -2px;
  }

  .archive-theme__mobile-menu > .archive-theme__drawer {
    background: #222;
    border: 0;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .24);
    box-sizing: border-box;
    display: none !important;
    height: auto;
    left: auto;
    max-height: 100vh;
    max-height: 100dvh;
    max-width: calc(100vw - 44px);
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: calc(60px + env(safe-area-inset-top, 0px)) 0 calc(16px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    transform: none !important;
    width: min(80vw, 320px);
    z-index: 1001;
  }

  .archive-theme__mobile-menu[open] > .archive-theme__drawer {
    display: block !important;
  }

  .archive-theme__drawer-list {
    display: block !important;
    height: auto !important;
    list-style: none;
    max-height: none !important;
    margin: 0;
    overflow: visible !important;
    padding: 0;
    position: static !important;
    width: 100% !important;
  }

  .archive-theme__drawer-item {
    background: #222;
    border-bottom: 1px solid #444;
    display: block;
    float: none;
    line-height: 1.5;
    margin: 0 !important;
    position: static !important;
  }

  .archive-theme__drawer-toggle,
  .archive-theme__drawer-link {
    align-items: center;
    background: #222;
    box-sizing: border-box;
    color: #fff;
    display: flex;
    min-height: 44px;
    line-height: 1.5;
    padding: 10px 16px;
    text-decoration: none;
    white-space: normal;
    width: 100%;
  }

  .archive-theme .archive-theme__drawer .archive-theme__drawer-link,
  .archive-theme .archive-theme__drawer .archive-theme__drawer-link:visited,
  .archive-theme .archive-theme__drawer .archive-theme__drawer-link:hover,
  .archive-theme .archive-theme__drawer .archive-theme__drawer-link:focus,
  .archive-theme .archive-theme__drawer .archive-theme__drawer-link:active {
    background: #222;
    color: #fff;
  }

  .archive-theme .archive-theme__drawer .archive-theme__drawer-link:focus-visible,
  .archive-theme .archive-theme__drawer .archive-theme__drawer-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
  }

  .archive-theme__drawer-toggle {
    color: #fff;
    cursor: pointer;
    list-style: none;
  }

  .archive-theme__drawer-toggle::-webkit-details-marker {
    display: none;
  }

  .archive-theme__drawer-toggle::after {
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    content: "";
    flex: 0 0 auto;
    height: 7px;
    margin-left: auto;
    transform: rotate(45deg);
    width: 7px;
  }

  .archive-theme__drawer-group[open] > .archive-theme__drawer-toggle::after {
    transform: rotate(225deg);
  }

  .archive-theme__drawer-link--all {
    color: #fff;
    opacity: .78;
  }

  .archive-theme__drawer-sublist {
    background: #222;
    height: auto;
    list-style: none;
    margin: 0;
    max-height: none;
    overflow: visible;
    padding: 0 0 0 12px;
    position: static !important;
    width: auto;
  }

  .archive-theme__drawer-group:not([open]) > .archive-theme__drawer-sublist {
    display: none;
  }

  .archive-theme__drawer-group[open] > .archive-theme__drawer-sublist {
    display: block;
  }
}

@media (max-width: 767px) {
  .archive-theme__footer-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-theme__footer-posts > .archive-theme__footer-post,
  .archive-theme__footer-post .p-article-slider__item-thumbnail {
    height: 295px;
  }
}

@media (max-width: 480px) {
  .archive-theme__footer-posts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  body.archive-theme[data-current-article] .archive-theme__article-layout > .l-primary {
    margin-top: 0;
  }

  body.archive-theme[data-current-article] .archive-theme__article-layout > .l-secondary {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    width: 88.8888%;
  }

  body.archive-theme[data-current-article] .p-breadcrumb__inner.c-breadcrumb__inner {
    display: flex;
    flex-wrap: nowrap;
    height: 50px;
    line-height: 50px;
    list-style: none;
    margin-bottom: 0;
    margin-top: 0;
    min-height: 50px;
    overflow: hidden;
    padding-left: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.archive-theme[data-current-article] .p-breadcrumb__item:not(:last-child) {
    flex: 0 0 auto;
  }

  body.archive-theme[data-current-article] .p-breadcrumb__item:last-child {
    flex: 0 1 auto;
    min-width: 0;
  }

  body.archive-theme[data-current-article] .p-breadcrumb__item:last-child > a,
  body.archive-theme[data-current-article] .p-breadcrumb__item:last-child > span {
    display: block;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
