/* Layout overrides (legacy look via style.css) */

#page {
  display: flow-root;
}

.category-panel__group {
  display: flow-root;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
  fill: currentColor;
}

.site-header__inner {
  overflow: visible;
  min-height: 46px;
}

.site-header__inner .site-header__user-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.2;
  text-align: center;
}

.site-header a.site-header__user-link,
.site-header a.site-header__user-link:link,
.site-header a.site-header__user-link:visited {
  color: #fff;
}

.site-header a.site-header__user-link:hover {
  color: orange;
}

.site-header a.site-header__user-link:hover .icon {
  fill: orange;
}

.site-header + #page {
  margin-top: 20px;
}

.site-header__inner .site-header__user-icon {
  display: flex;
  justify-content: center;
  width: 100%;
}

.site-header__inner .site-header__user-icon .icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: #fff;
}

.site-header__inner .site-header__user-label {
  display: block;
  width: 100%;
  font-size: 11px;
  text-align: center;
  color: inherit;
}

.breadcrumb .breadcrumb__trail {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  list-style: none;
}

.breadcrumb .breadcrumb__trail > li {
  flex: 0 0 auto;
}

.pagination-wrap {
  display: flow-root;
  margin-bottom: 12px;
  min-height: 2.6em;
}

.pagination-wrap .pagination {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  float: none;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0 0 5px;
  text-align: right;
}

.pagination-wrap .pagination > li {
  float: none;
  flex: 0 0 auto;
  border: 1px solid #ccc;
  border-radius: 2px;
  margin-right: 0;
}

.pagination-wrap .pagination > li.total {
  border: none;
  font-size: 11px;
  line-height: 3.4em;
}

.pagination-wrap .pagination > li a,
.pagination-wrap .pagination > li em {
  display: block;
  font-size: 12px;
  height: 2.4em;
  line-height: 2.4em;
  padding: 0 0.9em;
  text-decoration: none;
  background: #fff;
}

.pagination-wrap .pagination > li em {
  background: #eee;
}

.pagination-wrap .pagination > li a:hover {
  background: #f3f3f3;
}

.history-strip {
  clear: both;
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid #e5e5e5;
}

.history-strip__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.history-strip ul.history-strip__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0 0 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  white-space: normal;
}

.history-strip ul.history-strip__track::-webkit-scrollbar {
  display: none;
}

.history-strip li.history-strip__item {
  flex: 0 0 88px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  display: block;
  overflow: visible;
  scroll-snap-align: start;
  background: transparent;
}

.history-strip__card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.history-strip__card:hover .history-strip__name,
.history-strip__card:focus-visible .history-strip__name {
  color: orangered;
}

.history-strip__img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f4f8;
  border: 1px solid #e8e8e8;
}

.history-strip__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #333;
  white-space: normal;
  word-break: break-word;
}

@media (min-width: 769px) {
  .history-strip li.history-strip__item {
    flex-basis: 100px;
  }

  .history-strip__img {
    width: 100px;
    height: 100px;
  }
}

.team-detail__gallery {
  padding: 3px;
  border: 2px solid #eee;
  box-sizing: border-box;
  margin-bottom: 10px;
  background: #fff;
}

.photo-scroller {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.photo-scroller__slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  margin: 0;
  text-align: center;
}

.photo-scroller__slide img {
  display: block;
  width: 100%;
  max-height: min(70vh, 405px);
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  background: #f5f5f5;
}

.photo-scroller__caption {
  font-size: 13px;
  color: #555;
  padding: 8px 10px 10px;
  text-align: left;
}

.photo-scroller__thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 4px 4px;
  -webkit-overflow-scrolling: touch;
}

.photo-scroller__thumb {
  flex: 0 0 auto;
  display: block;
  border: 2px solid #ddd;
  line-height: 0;
}

.photo-scroller__thumb img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.photo-scroller__slide:target {
  outline: 2px solid orangered;
  outline-offset: -2px;
}

.photo-scroller__thumb:focus-visible {
  border-color: orangered;
}

.qa__list .qa__q-icon {
  position: absolute;
  top: -4px;
  left: -45px;
  display: block;
  line-height: 0;
}

.qa__list .qa__q-icon .icon-qa-q {
  width: 38px;
  height: 38px;
  fill: #790000;
}

.user-voice-page {
  padding-bottom: 40px;
}

.user_voice_box {
  border: 1px solid #ccc;
  border-radius: 8px;
  margin: 0 auto 16px;
  padding: 0;
  background: #fff;
  max-width: 100%;
  overflow: hidden;
}

.user_voice_box h2 {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #ccc;
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
}

.user_voice_box--request h2 {
  background: #8cff8c;
}

.user_voice_box--support h2 {
  background: #d4ebff;
}

.user_voice_box--dev h2 {
  background: #ffe9b8;
}

.user_voice_box .body_date {
  margin: 8px 14px 0;
  text-align: right;
  font-size: 13px;
  color: #777;
}

.user_voice_box .body_txt {
  margin: 8px 14px 14px;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.user_voice_arrow {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
  line-height: 0;
}

.user_voice_arrow .icon {
  width: 32px;
  height: 32px;
  fill: #888;
}

.voices-teaser h2 {
  font-size: 16px;
  line-height: 1.35;
}

.voices-teaser ul {
  list-style: none;
  padding: 0 10px;
  margin: 0 0 12px;
}

.voices-teaser li a {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  line-height: 1.45;
}

.voices-teaser li:last-child a {
  border-bottom: none;
}

.voices-teaser li a:hover {
  color: orangered;
}

.voices-teaser .rei {
  display: block;
  padding: 0 12px 12px;
}

.page__aside .aside-nav .u-mobile-only .icon {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 2px;
}

.favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.2;
  color: #444;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.favorite-btn .icon-fav {
  width: 22px;
  height: 22px;
  fill: #aaa;
  transition: fill 0.2s, transform 0.2s;
}

.favorite-btn.is-on {
  border-color: orangered;
  background: #fff4ee;
  color: #c2410c;
}

.favorite-btn.is-on .icon-fav {
  fill: orangered;
}

.favorite-btn.is-pulse {
  animation: favorite-btn-pulse 0.35s ease;
}

@keyframes favorite-btn-pulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  #page {
    padding: 0 8px 16px;
    max-width: 100%;
  }

  #page-main,
  .page__aside {
    width: 100%;
    float: none;
  }

  .page__aside {
    margin-top: 16px;
  }
}

@media (min-width: 769px) {
  #page {
    width: 880px;
    margin: 0 auto;
    padding: 0;
  }

  #page-main {
    width: 550px;
    float: left;
  }

  .page__aside {
    width: 300px;
    float: right;
    margin-top: 0;
  }
}

@media (min-width: 769px) {
  .page--one-column #page-main {
    width: auto;
    float: none;
  }
}

.notfound-message__title {
  text-align: center;
  font-size: 32px;
  font-weight: normal;
  margin-bottom: 30px;
}

.flash-message {
  border: 1px solid #f0c36d;
  background: #fff8e1;
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 16px;
}

.ad-unit {
  margin: 24px 0;
}

.team-list li.ad-unit {
  border: none;
  padding: 0;
  background: none;
}
