@charset "utf-8";
/* ==========================================================================
   page/lower.css  ―  下層ページ共通スタイル（p- レイヤー）
   固定ページ / アーカイブ / 詳細 / 検索結果 / 404 で読み込む
   ========================================================================== */

.p-lower {
  padding-top: 6rem;
  padding-bottom: 10rem;
}

/* --- 下層ページのタイトル（黄色いドット帯 ＋ 白パネル） -------------------
   カンプ「下層イメージ」「取り組み一覧」共通のヒーロー。
   左右のキャラクターは装飾のため CSS の背景画像で置く
   （画像が未配置でもレイアウトが崩れない）。
   -------------------------------------------------------------------------- */
.c-page-title {
  /* カンプ実測値。共通トークン化する場合は common.css 側へ移すこと。 */
  --c-page-title-bg: #feeaaa;
  --c-page-title-dot: #fff5d5;

  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
  background-color: var(--c-page-title-bg);
  background-image: radial-gradient(var(--c-page-title-dot) 1.2rem, transparent 1.2rem);
  background-position: 2.5rem 1.5rem;
  background-size: 8.5rem 8.5rem;
}

/* 左：ゆずおねえさん／右：プカ太郎。 */
.c-page-title::before,
.c-page-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
}

.c-page-title::before {
  left: 2rem;
  width: 13rem;
  height: 24rem;
  background-image: url("../../img/common/character-yuzu.png");
}

.c-page-title::after {
  right: 2rem;
  width: 10rem;
  height: 19rem;
  background-image: url("../../img/common/character-puka.png");
}

.c-page-title__panel {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 16.8rem;
  padding: 3rem 5.5rem;
  background-color: var(--color-bg-white);
  border-radius: 3rem;
}

.c-page-title__panel::before,
.c-page-title__panel::after {
  content: "";
  position: absolute;
  bottom: -4rem;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
}

.c-page-title__panel::before {
  left: -7.3rem;
  width: 15.3rem;
  height: 24rem;
  background-image: url("../../img/common/icon_lower-mv1.webp");
}

.c-page-title__panel::after {
  right: -6rem;
  width: 12.3rem;
  height: 22.9rem;
  background-image: url("../../img/common/icon_lower-mv2.webp");
}

@media screen and (max-width: 767px) {
  .c-page-title__panel::before,
  .c-page-title__panel::after {
    bottom: -11.2rem;
  }
  .c-page-title__panel::before {
    left: 6.4rem;  width: 8.3rem; height: 13.5rem;
  }
  .c-page-title__panel::after  {
    right: 7.8rem; width: 5.6rem; height: 10.2rem;
  }

}

/* --- 一覧 ----------------------------------------------------------------- */
.p-archive__filter {
  margin-top: 3rem;
}

.p-archive__list {
  margin-top: 4rem;
}

.p-archive__pagination {
  margin-top: 6rem;
}

/* --- 詳細 ----------------------------------------------------------------- */
.p-single__header {
  padding-bottom: 2.4rem;
  border-bottom: .1rem solid var(--color-border);
}

.p-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.3rem;
  color: var(--color-text-sub);
}

.p-single__title {
  margin-top: 1.2rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.4;
}

.p-single__thumb {
  margin-top: 3rem;
  aspect-ratio: 16 / 9;
}

.p-single__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-m);
}

.p-single__body {
  margin-top: 4rem;
}

.p-single__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: .1rem solid var(--color-border);
  font-size: 1.4rem;
}

.p-single__back {
  margin-top: 4rem;
  text-align: center;
}

/* --- 固定ページ ----------------------------------------------------------- */
.p-page__body {
  margin-top: 2rem;
}

/* --- 検索結果 / 404 ------------------------------------------------------- */
.p-search__form {
  margin-top: 3rem;
}

/*
 * 404。お問い合わせの送信完了画面（contact.css の .smf-complete-content）と
 * 同じ見た目にそろえる。上下の余白は .p-lower が持つ。
 */
.p-notfound__body {
  padding: 8rem 2rem;
  color: var(--color-primary);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2;
  text-align: center;
}

.p-notfound__text {
  margin: 0;
}

.p-notfound__action {
  display: flex;
  justify-content: center;
  margin-top: 4.8rem;
}

.p-notfound__button {
  min-width: 28rem;
  min-height: 5.6rem;
  padding: 1.2rem 4.8rem;
  border-width: .3rem;
}

/* --- レスポンシブ --------------------------------------------------------- */
@media screen and (max-width: 767px) {
  .p-lower {
    padding-top: 4rem;
    padding-bottom: 6rem;
  }

  /* SP はキャラクターが白パネルの下に並ぶ。 */
  .c-page-title {
    padding-top: 1rem;
    padding-bottom: 11.5rem;
    background-position: 1rem 1rem;
    background-size: 7rem 7rem;
  }

  .c-page-title::before {
    left: 22%;
    width: 7.5rem;
    height: 12rem;
  }

  .c-page-title::after {
    right: 24%;
    width: 6.5rem;
    height: 10.5rem;
  }

  .c-page-title__panel {
    min-height: 17.8rem;
    padding: 2.4rem;
    border-radius: 2.4rem;
  }

  .p-single__title {
    font-size: 2.2rem;
  }

  .p-single__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
    text-align: center;
  }

  .p-notfound__body {
    padding: 4rem 0;
  }

  .p-notfound__action {
    margin-top: 3.2rem;
  }

  .p-notfound__button {
    width: 100%;
    min-width: 0;
    min-height: 4.8rem;
    padding: 1.2rem 3.2rem;
  }
}
