/*
Theme Name: アトリエルージュ ブログテーマ
Description: アトリエルージュ用のテーマです。
Author: k.y
*/
.fs-l-main:has(> .l-freepage) {
  background-color: #f7f8f8 none repeat center top;
}
.news-list__item {
  background-color: #ffffff;
}
.sec-contents.sec-news-list {
  padding: 107px 0 70px;
}
.l-freepage.news .sec-fv {
  padding-top: 0;
}

@media (min-width: 1131px) {
  .sec-contents.sec-news-list {
    padding: 160px 50px 70px 50px;
  }

  .l-freepage .l-inner {
    max-width: 1400px;
    padding: 0;
  }
}
/* ============================================
   NEWS 一覧
============================================ */
.news-list {
  padding: 0px 16px 0px;
}

.news-list__item + .news-list__item {
  margin-top: 50px;
}

.news-list__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

/* ── 画像エリア ── */
.news-list__img-link {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-subtle);
}

.news-list__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.news-list__img-link:hover .news-list__img {
  transition: transform 4s ease-out;
  transform: scale(1.15);
}

/* NEWSバッジ */
.news-list__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  bottom: auto;
  right: auto;
  padding: 2px 9px 1px;
  margin: 0 0 2px;
  font:
    700 12px / 22px Arial,
    Verdana,
    sans-serif;
  letter-spacing: 0.12em;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-family-en);
  z-index: 1;
}

/* 日付バッジ */
.news-list__date-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  bottom: auto;
  background: #ffffff;
  text-align: center;
  padding: 2px 0px;
  z-index: 1;
  min-height: 80px;
  min-width: 42px;
}

.news-list__date-day {
  position: relative;
  display: block;
  font-family: var(--font-family-en);
  font-weight: 300;
  line-height: 1;
  color: #2d2d2d;
  font: 700 22px / 28px Arial;
  margin-bottom: 3px;
  padding: 2px;
}

.news-list__date-my,
.news-list__date-year {
  position: relative;
  display: block;
  font-family: var(--font-family-en);
  font-size: 9px;
  color: #2d2d2d;
  letter-spacing: 0.04em;
  margin-top: 3px;
  line-height: 1.4;

  margin-bottom: 2px;
  font: 700 12px / 22px Arial;
  padding: 1px;
}
.news-list__date-my:after,
.news-list__date-day:after {
  left: 50%;
  bottom: -2px;
  width: 14px;
  margin-left: -7px;
  position: absolute;
  height: 2px;
  content: '';
  color: #fff;
  background-color: #e60012;
}

/* ── テキストエリア ── */
.news-list__body {
  padding: 20px;
}

.news-list__title {
  font-family: var(--font-family-en);
  color: #333333;
  font-size: 20px;
  line-height: 1.4;
  font-weight: inherit;
  margin-bottom: 0.3em;
}
.news-list__meta {
  font-family: var(--font-family-arial);
  font-size: 13px;
  color: var(--color-text-gray-dark);
  letter-spacing: 0.02em;
  margin: 0 0 5px;
}

.news-list__excerpt {
  font-family: var(--font-family-arial);
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.75;
  margin: 1.1em 0 0.8em;
}
.news-list__excerpt p {
  margin-bottom: 0.6em;
}

.news-list__more {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-family-arial);
  margin: 5px 0 0;
  padding-bottom: 6px;
  color: #333333;
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.news-list__more:visited {
  color: #333333;
}
.news-list__more::after {
  content: '▶';
  font-size: 8px;
  margin-right: 0;
  margin-left: 7px;
}

.news-list__more::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: red;
  transition: width 0.4s ease;
}
.news-list__more:hover::before {
  width: 100%;
}

/* 記事なし */
.news-list__empty {
  text-align: center;
  color: var(--color-text-gray-dark);
  padding: 80px 0;
  font-size: 14px;
}

/* ============================================
   PC（1131px〜）
============================================ */
@media (min-width: 1131px) {
  .news-list {
    padding: 0;
    margin: 0 auto;
  }

  .news-list__link {
    flex-direction: row;
  }

  .news-list__img-link {
    flex: 0 0 50%;
  }

  .news-list__body {
    padding: 25px 30px 30px 30px;
    width: calc(100% - 50%);
  }

  .news-list__title {
    font-size: 24px;
  }

  .news-list__excerpt {
    font-size: 15px;
  }

  .news-list__date-day {
    font-size: 22px;
  }
}

/* ============================================
  NEWS 個別ページ
============================================ */
/* ギャラリーの中にある「3番目」の画像枠だけを横幅100%にする */
.wp-block-gallery .wp-block-image:nth-of-type(3).is-style-default img {
  width: 100% !important;
}

.wrapper.single {
  padding-top: 60px;
  background: #f7f8f8 none repeat center top;
}
.single-title {
  padding: 30px 20px 30px 20px;
  text-align: center;
  font:
    700 24px / 1.5 'Roboto',
    Helvetica,
    Arial,
    Verdana,
    sans-serif;
  font-weight: inherit;
}
.single-box {
  padding: 0 20px 0 20px;
  margin-bottom: 80px;
}

/* アイキャッチ：SPは画像全幅＋NEWS/日付をオーバーレイ */
.single-eyecatch {
  position: relative;
  margin-bottom: 80px;
}

.single-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 2px 9px 1px;
  margin: 0 0 2px;
  background: #d80c18;
  color: #fff;
  font:
    700 12px / 22px Arial,
    Verdana,
    sans-serif;
}

.single-eyecatch__img {
  margin: 0;
}
.single-eyecatch__img img {
  display: block;
  width: 100%;
  height: auto;
}

.single-date {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  background: #ffffff;
  flex-flow: column nowrap;
  min-height: 80px;
  min-width: 42px;
  padding: 2px 0;
}
.single-date__month {
  margin-bottom: 2px;
  font: 700 12px / 22px Arial;
  padding: 1px;
  position: relative;
}
.single-date__day {
  font: 700 22px / 28px Arial;
  margin-bottom: 3px;
  padding: 2px;
  position: relative;
}
.single-date__year {
  font: 700 12px / 22px Arial;
  padding: 1px;
}
.single-date__month::after,
.single-date__day::after {
  background-color: #e60012;
  left: 50%;
  bottom: -2px;
  width: 14px;
  margin-left: -7px;
  position: absolute;
  height: 2px;
  content: '';
}

.single-text {
  box-sizing: border-box;
  width: 100%;
}
.single-text p {
  font-family: var(--font-family-arial);
  color: #000;
  margin-bottom: 1em;
  padding-left: 15px;
  padding-right: 15px;
  line-height: 1.8;
}
.single-text p strong {
  font-family: var(--font-family-base);
  font-size: calc(1.275rem + 0.3vw);
  font-weight: normal;
  line-height: 1.5;
  color: #333;
}
.post-date {
  font-family: var(--font-family-arial);
  font-size: 13px;
  color: #999999;
  text-align: center;
  margin: 80px 0 64px;
}

/* ===== ベース（SP）: カラムを縦積みにし「テキスト→画像」の順へ ===== */
.single-text .wp-block-columns {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 画像カラム（1番目）を後ろへ */
.single-text .wp-block-columns > .wp-block-column:first-child {
  order: 2;
}
/* テキストカラム（2番目）を先頭へ */
.single-text .wp-block-columns > .wp-block-column:last-child {
  order: 1;
}

/* ===== PC: 元の横並び（画像｜テキスト）に戻す ===== */
@media (min-width: 1131px) {
  .single-text .wp-block-columns {
    flex-direction: row;
  }
  .single-text .wp-block-columns > .wp-block-column:first-child,
  .single-text .wp-block-columns > .wp-block-column:last-child {
    order: 0;
    flex: 1 1 50%;
  }
  .single-text .wp-block-columns > .wp-block-column:first-child {
    padding: 0 15px;
  }
  .single-text .wp-block-columns > .wp-block-column:last-child {
    padding: 0 5%;
  }
}
/* ===== /ベース（SP）: カラムを縦積みにし「テキスト→画像」の順へ ===== */

/* ===== PC ===== */
@media (min-width: 1131px) {
  .wrapper.single {
    padding-top: 89px;
  }
  .single-title {
    max-width: 1500px;
    min-height: 200px;
    text-align: center;
    padding: 65px 0;
    padding-right: 17%;
    padding-left: 17%;
    font-size: 34px;
    font-weight: inherit;
    margin: 0 auto;
  }

  /* [NEWS] [画像] [日付] の3カラム */
  .single-eyecatch {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 10%;
    position: static;
  }

  .single-label {
    position: static;
    flex: 0 0 auto;
    padding: 4px 12px;
    font-size: 12px;
  }

  .single-eyecatch__img {
    width: 100%;
    padding-right: 15%;
    padding-left: 15%;
  }

  .single-date {
    position: static;
    flex: 0 0 auto;
    width: 48px;
  }
  .single-wrapper {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
  }
  .single-text {
    padding-right: 10%;
    padding-left: 10%;
  }

  .post-date {
    margin: 120px 0 64px;
  }
}

/* ============================================
   ページナビ
============================================ */
.single-pagenavi {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.single-pagenavi__inner {
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.single-pagenavi__item {
  padding: 16px 0;
}
.single-pagenavi__item a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}
.single-pagenavi__item--next a {
  justify-content: flex-end;
  text-align: right;
}
.single-pagenavi__arrow {
  width: 24px;
  height: 24px;
  fill: #ccc;
  flex: 0 0 auto;
}
.single-pagenavi__item--prev .single-pagenavi__arrow {
  margin-right: 14px;
}
.single-pagenavi__item--next .single-pagenavi__arrow {
  margin-left: 14px;
}

.single-pagenavi__body {
  display: flex;
  flex-direction: column;
}
.single-pagenavi__label {
  font-family: var(--font-family-arial);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #999;
  text-align: center;
  margin-bottom: 6px;
}
.single-pagenavi__title {
  font-family: var(--font-family-en);
  font-size: 18px;
  line-height: 1.5;
  color: #333;
}
.single-pagenavi__list {
  display: none;
}

@media (min-width: 1131px) {
  .single-pagenavi {
  }
  .single-pagenavi__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0 48px;
  }
  .single-pagenavi__item {
    flex: 1 1 45%;
    padding: 0;
  }
  .single-pagenavi__list {
    display: block;
    flex: 0 0 auto;
  }
  /* 代わりにこれを追加 */
  .single-pagenavi__list a.back-to-list {
    display: block;
    width: 32px;
    height: 32px;
  }
  .single-pagenavi__arrow {
    width: 32px;
    height: 32px;
  }
  .single-pagenavi__list a.back-to-list svg {
    width: 100%;
    height: 100%;
    fill: #ccc;
  }
  .single-pagenavi__list a.back-to-list:hover svg {
    fill: #999;
  }
  .single-pagenavi__title {
    font-size: 20px;
  }
  .single-pagenavi__item--prev .single-pagenavi__title {
    padding-right: 24px;
  }
  .single-pagenavi__item--next .single-pagenavi__title {
    padding-left: 24px;
  }
  .single-pagenavi__item--prev .single-pagenavi__label {
    text-align: left;
    padding-left: 46px;
  }
  .single-pagenavi__item--next .single-pagenavi__label {
    text-align: right;
    padding-right: 46px;
  }
}

/* ============================================
   ページネーション
============================================ */
.wp-pagenavi {
  text-align: center;
  margin-bottom: 32px;
}
.wp-pagenavi span,
.wp-pagenavi a {
  font-family: var(--font-family-arial);
  padding: 4px 8px;
  margin: 0 4px;
  font-size: 16px;
}

.wp-pagenavi .current {
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 500;
}

.page {
  color: #333;
  background-color: transparent;
}
.page:hover {
  background-color: #f0f0f0;
}

/* ============================================
   関連記事
============================================ */
.single-related-posts {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.tit-related-post {
  font-family: var(--font-family-arial);
  font-size: 28px;
  font-weight: 400;
  color: #333;
  margin-bottom: 32px;
}

.items-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.related-item .post-format-standard {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.mini-post-img {
  flex: 0 0 120px;
  width: 120px;
  aspect-ratio: 110 / 80;
  overflow: hidden;
  position: relative;
}
.mini-post-img a {
  display: block;
  width: 100%;
  height: 100%;
}
.mini-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini-post-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-primary-overlay);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.mini-post-img:hover::after {
  opacity: 1;
}

.mini-post-img:hover .mini-post-img img::after {
  opacity: 1;
}

.post-content {
  flex: 1 1 auto;
  min-width: 0;
}
.post-content a {
  font-family: var(--font-family-arial);
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  text-decoration: none;
}
.post-content time {
  font-family: var(--font-family-arial);
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
}

@media (min-width: 1131px) {
  .items-grid {
    flex-direction: row;
    gap: 48px;
  }
  .related-item {
    flex: 1 1 0;
    min-width: 0;
  }
}
