/* 重要なお知らせ of the top page (mockup HOME 重要なお知らせ表示時): the cards of the NEWS block (.p-topCarousel)
   with a red line, the 「!」 mark and the date / 「詳しく見る」 row. Loaded only when an urgent news is shown. */
.news-block--emergency { margin-bottom: 3.75em; }
.news-block--emergency .urgent-news__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.news-block--emergency .p-topCarousel__inner,
.news-block--emergency .p-topCarousel__content { height: 100%; }
/* every slide (the news list one too) as tall as the tallest, so all photos are centered the same way */
/* (side by side only: on SP the photo is stacked over the text, a full height there would overflow the text) */
@media screen and (min-width: 768px) {
  .news-block--emergency .swiper-slide { height: auto; }
  .news-block--emergency .p-topCarousel { height: 100%; }
  .news-block--emergency .p-topCarousel > a { display: block; height: 100%; }
}
/* the 16:9 photo is centered vertically against the text half when the text is taller than the photo */
.news-block--emergency .p-topCarousel__ph { display: flex; flex-direction: column; justify-content: center; }
.news-block--emergency .c-elm_leftborder:before { background: #d5001c; }
.news-block--emergency .c-elm_leftborder { display: flex; align-items: center; gap: .55em; margin-bottom: 1em; }
.news-block--emergency .emergency-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 1.15em; height: 1.15em; border-radius: 50%; color: #fff; background: #d5001c; font-size: .875em; line-height: 1; }
/* title, text and date row as one group, centered in the black half (same space above and below;
   border-box so the min-height does not add the padding on top and push the group out of the slide) */
.news-block--emergency .p-topCarousel__text { display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; min-height: 100%; padding-top: 1.5em; padding-bottom: 1.5em; }
@media screen and (max-width: 1070px) {
  .news-block--emergency .p-topCarousel__text { padding-top: 1.25em; padding-bottom: 1.25em; }
}
.news-block--emergency .p-topCarousel__text > p { margin: 0 0 1em; }
.news-block--emergency .emergency-meta { display: flex; align-items: center; justify-content: space-between; gap: 1em; font-size: .875em; line-height: 1.4; }
.news-block--emergency .emergency-meta time { font-family: "PorscheNextJPTP-Regular", sans-serif; letter-spacing: .04em; }
.news-block--emergency .emergency-more { display: inline-flex; align-items: center; gap: .75em; }
.news-block--emergency .emergency-more svg { width: 20px; height: 14px; fill: currentColor; transition: transform .2s ease; }
@media screen and (min-width: 1071px) {
  .news-block--emergency a:hover .emergency-more svg { transform: translateX(4px); }
}
/* last slide: the news list, with the line of the NEWS block (white) */
.news-block--emergency [data-news-list] .c-elm_leftborder:before { background: #fff; }
/* the arrows only when there are more slides than shown (swiper watchOverflow) */
.news-block--emergency .swiper-button-lock { display: none; }
@media screen and (max-width: 767px) {
  /* the photo a bit lower than 16:9 (53.25% of the width) so the text is closer to it */
  .news-block--emergency .c-cropPh__cap { padding-top: 53.25%; }
  /* the arrows on the photo only (full width), not over the text: the middle of its height */
  .news-block--emergency .carousel-prev,
  .news-block--emergency .carousel-next { top: calc(100vw * .5325 / 2); }
}
