/*
 * 読みもの系（特集記事本文，ニュース本文，サイト内説明文等）は背景を白にする
 */
body {
  background: #fff !important;
}

#news-wrapper {
  /* make it grow to fill the screen, even when waiting for loading */
  width: 100vw;
}

#news-main-content {
  /* Ideal width even on larger screens, and allows to center on tablet size */
  max-width: 50rem;
}

#ranking-sidebar {
  width: 20rem;
}

fb\:like span {
  display: inline-block !important;
}

#row {
  width: auto;
}

.news_title {
  margin: 16px auto 4px;
}

.news-links {
  text-align: right;
}

.post_head .pull-right {
  display: flex;
  flex-direction: column;
  text-align: right;
  margin-bottom: 0px;
}

.news_title .subtitle {
  display: block;
  font-weight: normal;
  font-size: 16px;
  font-size: 1rem;
  white-space: nowrap;
  text-align: justify;
  color: #707070;
  width: 100%;
  margin: 0;
}

.post_divider {
  height: 1px;
}

.news {
  margin: 8px 0;
  position: relative;
  border-bottom: 1px solid #ccc;
  padding-bottom: 32px;
}

.post_time p {
  font-size: 16px;
  font-size: 1rem;
  line-height: 1.25em;
  color: #707070;
  margin-bottom: 16px;
  text-align: right;
  text-decoration: none;
}
.news header.news_title a {
  color: black;
  font-size: 30px;
  font-size: 1.875rem;
  font-family: Roboto, "Hiragino Kaku Gothic ProN", HiraKakuPro-W3, Meiryo,
    "ＭＳ Ｐゴシック", sans-serif;
  line-height: 1.25em;
  display: block;
}
.news header.news_title a:hover {
  color: #1e6506;
}
.news_tags {
  font-size: 13px;
  font-size: 0.8125rem;
  margin: 8px 0;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
}

.news .news_body {
  margin: 1em auto;
  width: 96%;
  text-align: justify;
}
.news p.photo {
  text-align: center;
}
.news .news_body p {
  font-size: 16px;
  font-size: 1rem;
  line-height: 1.75em;
  color: #303030;
  margin-bottom: 1em;
  word-break: normal;
  line-break: loose;
}

.news .news_body a {
  color: #303030;
}
.news .news_body a:hover {
  text-decoration: none;
}
.news_body .photo img {
  max-width: 100%;
}

.news .news_body a img:hover {
  opacity: 0.95;
}

.post_content {
  margin: 8px 0px 16px 0px;
  position: relative;
  margin-bottom: 3em;
}

#center .post_content h4 {
  background: none;
  height: auto;
}

.post_content .clear {
  height: 0px;
  clear: both;
}

.post_title {
  text-decoration: none;
  font-size: 30px;
  font-size: 1.875rem;
  font-family: Roboto, "Hiragino Kaku Gothic ProN", HiraKakuPro-W3, Meiryo,
    "ＭＳ Ｐゴシック", sans-serif;
  line-height: 1.25;
  display: block;
}

.post_title a {
  font-weight: normal;
  color: #303030;
}

.post_time p {
  font-size: 16px;
  font-size: 1rem;
  line-height: 1.25em;
  color: #707070;
  margin-bottom: 16px;
  text-align: right;
  text-decoration: none;
}

.post_body {
  font-size: 16px;
  font-size: 1rem;
  line-height: 1.75em;
  font-feature-settings: normal;
  margin-bottom: 1em;
  word-break: normal;
  line-break: loose;
  text-align: justify;
  margin-top: 1em;
}

.post_body .right {
  text-align: right;
}
.post_body .left {
  text-align: left;
}
.post_body .center {
  text-align: center;
}

.post_body p {
  font-size: 16px;
  font-size: 1rem;
  line-height: 1.75em;
  font-feature-settings: normal;
  margin-bottom: 1em;
  word-break: normal;
  line-break: loose;
  text-align: justify;
  margin-top: 1em;
}

.post_body p .right {
  text-align: right;
}
.post_body p .left {
  text-align: left;
}
.post_body p .center {
  text-align: center;
}

.post_body p a {
  color: #0277bd;
}

.post_body .photo {
  text-align: center;
}
.post_body .photo img {
  max-width: 100%;
}
.post_body center img {
  max-width: 100%;
}

.post_body img {
  max-width: 100%;
}
.post_body p img {
  max-width: 100%;
}

.post_body .header {
  margin: 1.5rem 0;
  font-size: 18px; font-size: 1.125rem;
  font-weight: bold;
  font-family: Roboto, "Hiragino Kaku Gothic ProN", HiraKakuPro-W3, Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  font-feature-settings: "palt";
  letter-spacing: normal !important;
  line-height: 1.25;
  padding: 6px 0 6px 0;
  color: #0277bd;
  text-align: left !important;
  border-bottom: 2px solid #0277bd;
  -webkit-font-smoothing: subpixel-antialiased;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.post_body .header.sub {
  margin: 1.5rem 0 0.5rem;
  border-bottom: none;
}

.post_divider {
  margin: 0px;
  border-bottom: 1px solid #ccc;
  width: 100%;
  height: 8px;
  overflow: hidden;
}

.post_head {
  margin: 12px auto 12px;
  display: inline-block;
}

.post_head.right {
  float: right;
}

.post_tag {
  white-space: nowrap;
  height: 32px;
  line-height: 2.4;
  margin: 0 6px 0 0;
  padding: 0.3em 0.5em;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-weight: normal;
  color: #303030;
  background-color: #fff;
}
.post_tag:hover,
.post_tag:active,
.post_tag:focus {
  background: #e6e6e6;
  border: 1px solid #adadad;
  color: #303030;
}
.post_tags a:hover {
  text-decoration: none;
}

.post_tail {
  text-align: right;
  font-size: 14px;
  float: right;
  display: inline-block;
}
.post_tail a {
  color: #000;
}

.post_footer {
  position: relative;
  width: 100%;
  float: left;
  display: inline;
}

.news footer {
  width: 95%;
  text-align: right;
}
.news footer a {
  font-size: 13px;
  font-size: 0.8125rem;
}

.post_content .category_and_artists {
  font-size: 16px; font-size: 1rem;
  font-weight: normal;
  line-height: 1.25em;
  color: #707070 !important;
  text-align: right;
  text-decoration: none;
  width: 72%;
  height: 1.25em; height: 1lh;
  margin: 0 0 1.75em auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: none;
}

.post_footer .post_footer_left,
.social_buttons .post_footer_left {
  font-size: 14px;
  font-style: italic;
  margin-bottom: -18px;
  padding-top: 22px;
}
.post_footer_right {
  float: right;
  display: inline;
  padding-top: 7px;
  position: relative;
  top: 0px;
}

.loader {
  text-align: center;
  margin: 200px 0;
  color: #2ab002;
  display: none;
}

/*
 * Related News
 */
.post_related {
  margin: 2rem 0 1rem;
}

.post_related .post_related_header {
  font-size: 18px; font-size: 1.125rem;
  font-weight: bold;
  font-family: Roboto, "Hiragino Kaku Gothic ProN", HiraKakuPro-W3, Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  font-feature-settings: "palt";
  letter-spacing: normal !important;
  line-height: 1.25;
  padding: 0 0 0 0;
  color: #303030;
  text-align: left !important;
  -webkit-font-smoothing: subpixel-antialiased;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.post_related .post_related_body {
  margin: 1em 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  align-content: flex-start;
}

.news-embedded {
  display: flex;
  flex-direction: row;
  width: 382px;
  width: calc(50% - 8px);
  height: 84px;
  background: #fff;
  padding: 6px;
  margin: 0 0 16px 0;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border-radius: 2px;
}

.news-embedded .title-div {
  display: flex;
  align-items: center;
}
.news-embedded .title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-embedded figure {
  flex-basis: 108px;
  width: 108px;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}
.news-embedded figure > a {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content:center;
}
.news-embedded figure img {
  object-fit: contain;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.news-embedded p {
  font-size: 16px; font-size: 1rem;
  font-weight: normal;
  line-height: 1.45 !important;
  overflow: hidden;
  margin: 0 0 0 16px;
  text-overflow: ellipsis;
  display: -webkit-box; -webkit-box-orient: vertical;
  color: #303030;
}
.news-embedded p > a {
  color: #303030 !important;
  text-decoration:none;
}
.news-embedded p > a:hover {
  text-decoration:underline;
}

@media screen and (max-width:641px) {
  .news-embedded {
    width: 100%;
  }
}

.end-of-news {
  display: none;
  margin: 6rem 0;
}

hr[data-vertical] {
  height: inherit;
  width: 1px;
  border: none; /* reset bootstrap */
  border-right: 1px solid rgba(0, 0, 0, .25);
  align-self: stretch;
}

/*********/
/* aside */
/*********/
#ranking-sidebar {
  flex-shrink: 0;
}

.top-news__list {
  flex: 0 1 auto;
  max-width: 100%;
  overflow: hidden;

  /* Trick:  make a shadow at the bottom when the content overflows */
  background:
    /* Hide the shadow with a white gradient */
    linear-gradient(to bottom, rgba(255, 255, 255, 0), white 70%) 0 100%,
    /* actual shadow */
    radial-gradient(
        farthest-side at 50% 100%,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0)
      )
      0 100%;
  background-repeat: no-repeat;
  /* background-color: white; */
  background-size: 100% 30px, 100% 1rem;
  background-position: 0 100%, center 100%;
  /* The shadow is attached to scroll */
  background-attachment: local, scroll;
}

.top-news__link {
  width: 239px;
}

.top-news__rank-badge {
  width: 2.5ch;
  height: 2.5ch;
  border-radius: 1rem;

  color: #fff;
  background-color: #e57010;
}

@supports(clip-path: circle()) {
  /* Cleaner with this */
  .top-news__rank-badge {
    border-radius: 0;
    clip-path: circle(50%);
  }
}

[data-rank="gold"] .top-news__rank-badge { background-color: #c5b358; }
[data-rank="silver"] .top-news__rank-badge { background-color: #a9a9a9; }
[data-rank="bronze"] .top-news__rank-badge { background-color: #cd7f32; }

.top-news__image-wrapper {
  flex: 0 0 auto;
  max-height: 100%;
}
.top-news__image-wrapper:hover { opacity: 0.95; }

#ranking-sidebar .right-bottom-banner {
  max-width: 100%;
  margin: 0; /* reset common.css */
}

@supports (position: sticky) {
  .top-news__sticky-wrapper {
    --top-offset: 40px; /* align under the title bar */
    position: sticky;
    top: var(--top-offset);
    max-height: calc(100vh - var(--top-offset));
  }

  /* align the banner at the bottom of the screen */
  #ranking-sidebar .right-bottom-banner {
    margin-top: auto;
    /* leave space for the audio player */
    margin-bottom: 50px;
  }

  @media (min-width: 1500px) {
    /* audio player breakpoint */
    #ranking-sidebar .right-bottom-banner {
      margin-bottom: 90px;
    }
  }
}

/* =======================================
   new buttons bottom of news/articles
 ======================================= */

.news_footer a.mbutton,
.post_content a.mbutton {
  display: inline-block;
  position: relative;
  padding: 0.8em 1.2em;
  border-radius: 2px;
  color: #666;
}
.news .mbutton.wide {
  padding: 0.8em 2.4em;
}

.post_content .post_footer_pager {
  text-align: center;
  margin: 1em 0 2em;
}

.post_content .post_footer_pager .fa-chevron-right-after:after {
  content: "\f054";
  font-family: FontAwesome;
  padding-left: 0.5em;
}
.post_content .post_footer_pager .fa-chevron-left-before:before {
  content: "\f053";
  font-family: FontAwesome;
  padding-right: 0.5em;
}

.post_content .post_footer_pager .link-description {
  color: #666 !important;
  padding: 0 1em;
}
.post_content .post_footer_pager .link-description:hover {
  color: #6c6 !important;
}

.post_content .post_footer_pager .link-spacer-for-pager {
  display: inline-block;
  width: 199px;
}

/*
 * media query
 */
@media screen and (max-height: 1090px) {
  .side_column .column_body ol li a {
    max-height: 60px;
  }
}
@media screen and (max-height: 930px) {
  .side_column .column_body ol li a {
    max-height: 38px;
  }
}

@media screen and (max-width: 641px) {
  center > twitter-widget.twitter-tweet {
    width: 100% !important;
  }
}

/* news listings page */
@media screen and (max-width: 641px) {

  #content {
    width: auto;
    margin: 0;
  }
  #wrap > #content > #row > #center > .news_title {
    margin: 0 auto 6px;
    padding-left: 10px;
  }
  header.news_title .title .title {
    font-size: 28px;
    font-size: 1.75rem;
  }
  #news-list header.news_title a {
    display: inline-block;
    font-size: 28px;
    font-size: 1.75rem;
  }
  #news-list .news .news_body {
    width: 100%;
    max-width: calc(100vw - 30px);
  }
  #news-list .news .news_body p {
    word-break: break-word;
    overflow: hidden;
  }
  #news-list .news .news_body .photo {
    text-align: center;
    margin-left: -1rem;
    margin-right: -1rem;
    overflow: visible;
  }
  #news-list .news .news_body img {
    max-width: 100%;
    width: 100%;
  }
  #news-list .news .news_body iframe[src*="//www.youtube.com/embed"] {
    max-width: 100%;
    max-height: calc(100vw * (9 / 16));
  }
  #news-list .news .news_body iframe[src*="//ototoy.jp/embed"] {
    max-width: 100%;
    max-height: calc(100vw * (3 / 2));
  }
  #news-list .news .news_body iframe[src*="//www.google.com/maps/embed"] {
    aspect-ratio: 4 / 3;
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: calc(100vw * (4 / 3));
  }
  #news-list .news .news_footer {
    width: 100%;
  }
  .simple-card.left {
    margin-right: 17px;
  }

  img {
    width: 100%;
  }
  form img {
    width: auto;
  }
}

/* news article page */
@media screen and (max-width: 641px) {
  .post_head {
    margin-top: 0px;
  }
  .post_title a {
    display: inline-block;
    font-size: 28px;
    font-size: 1.75rem;
  }
  .post_content {
    margin: 12px 0 0 0;
  }
  .post_body {
    margin: 0;
  }
  .post_body {
    word-break: break-word;
  }
  .post_body a {
    word-break: break-all;
  }
  .post_body p {
    word-break: break-word;
    overflow: hidden;
  }
  .post_body p a {
    word-break: break-all;
  }
  .post_body .photo {
    text-align: center;
    margin-left: -1rem;
    margin-right: -1rem;
    overflow: visible;
  }
  .post_body img {
    max-width: 100%;
    width: 100%;
  }
  .albums {
    display: inline-block;
  }
  .post_content .post_body center.media {
    width: 100% !important;
    padding-bottom: 56.25%;
    height: 0px;
    position: relative;
    overflow: hidden;
    text-align: center;
  }
  .post_content .post_body center.media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
  }
  .post_content .post_body iframe[src*="//www.youtube.com/embed"] {
    max-width: 100%;
    max-height: calc(100vw * (9 / 16));
  }
  .post_content .post_body twitter-widget {
    width: 100% !important;
  }
  .post_content .post_body iframe[src*="/embed"],
  .post_content .post_body iframe[src*="//ototoy.jp/embed"] {
    max-width: 100%;
    max-height: calc(100vw * (3 / 2));
  }
  .post_content .post_body iframe[src*="//www.google.com/maps/embed"] {
    aspect-ratio: 4 / 3;
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: calc(100vw * (4 / 3));
  }

  /* FIXME good case for flexbox here */
  .post_content .post_footer_pager a.link-description {
    display: inline-block;
    width: 5em;
    padding: 0;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .post_content .post_footer_pager .link-spacer-for-pager {
    display: inline-block;
    width: 150px;
  }

  .post_content .category_and_artists {
    width: 80vw;
  }

  .news_footer a.mbutton,
  .post_content a.mbutton {
    font-size: 12px;
    font-size: 0.75rem;
    padding: .8em;
  }
}

/* for iPhone 5/5s/SE, iPod touch */
@media screen and (max-width: 321px) {
  .news_footer a.mbutton,
  .post_content a.mbutton {
    padding: 0.8em 0.8em;
  }
  .post_content a.link-description {
    width: 4em;
  }
}

/* pc */
@media screen and (min-width: 641px) {
  .news_body .mobile {
    display: none !important;
  }
  .post_body .mobile {
    display: none !important;
  }
}
/* smart phone */
@media screen and (max-width: 641px) {
  .news_body .desktop {
    display: none !important;
  }
  .post_body .desktop {
    display: none !important;
  }
}

/*
 * Album recommended
 */

.albums_recommended {
  margin: 36px 0px 24px;
  padding: 0;
}

.albums_recommended .albums_recommended_head {
  font-size: 18px; font-size: 1.125rem;
  font-weight: bold;
  font-family: Roboto, "Hiragino Kaku Gothic ProN", HiraKakuPro-W3, Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  font-feature-settings: "palt";
  letter-spacing: normal !important;
  line-height: 1.25;
  padding: 6px 0 6px 0;
  margin-bottom: 16px;
  color: #303030;
  text-align: left !important;
  border-bottom: 2px solid #ccc;
  -webkit-font-smoothing: subpixel-antialiased;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.albums_recommended_body_row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* Make margins negative to offset the element's margin below */
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.albums_recommended__package {
  margin: 1rem 0.5rem;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.4);
}

@media (min-width: 641px) {
  /* add spacing on larger screens */
  .albums_recommended_body_row {
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .albums_recommended__package {
    margin: 1rem 1rem;
  }
}

.albums_recommended .collapsed-albums-recommended {
  margin-top: 16px;
  display: none;
}
.albums_recommended .more[id$=-t] .collapse-close {
  display: none;
} /* only top buttons needed */

.albums_recommended .more {
  text-align: center;
  display: block;
  margin: 0 auto;
}
.albums_recommended .more:hover {
  background: #fff;
}
.albums_recommended .more:hover > span {
  color: #6c6;
}

@media screen and (min-width: 641px) {
  .albums_recommended .more {
    width: 739px;
    margin-bottom: 16px;
  }
}
@media screen and (max-width: 641px) {
  .albums_recommended {
    margin-bottom: 0px;
  }
  .albums_recommended .more {
    width: 330px;
    margin-bottom: 8px;
  }
}

/*
 * for Photo Gallery (PhotoSwipe)
 */
.pswp-gallery {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-gap: 4px;
  place-items: stretch stretch;
  place-content: stretch stretch;
}
@media screen and (max-width: 641px) {
  .pswp-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}
.pswp-gallery a {
  display: block;
  place-self: center center;
  color: transparent;
}
.pswp-gallery a img {
  width: 100%;
}
.pswp-gallery a img:hover {
  opacity: 0.95;
}
