@charset "UTF-8";

/*
 * お知らせ（WordPress投稿）用の追加CSS
 * 既存の style.css の後に読み込む。既存クラスは変更せず、.p-news / .p-news-single だけで構成。
 * 本番反映時は、この内容を style.css の末尾に追記するか、別ファイルとして読み込む。
 */

:root {
  --news-navy: #003197;
  --news-ink: #091e4f;
  --news-blue: #008dd5;
  --news-sky: #eaf8fb;
  --news-berry: #d6453a;
}

/* TOPの見出しアイコン（他の見出しと同じ水彩の花。お知らせ用に朱色の花を追加） */
.c-title.c-title--news span {
  background-image: url(./../images/common/news-icon.webp);
}

/* ==========================================================
   TOP：お知らせ一覧（「主なご相談内容」の前に配置）
   ========================================================== */
.p-news {
  padding-bottom: 3.75rem;
}

@media screen and (min-width: 768px) {
  .p-news {
    padding-bottom: 5.625rem;
  }
}

.p-news__list {
  margin-top: 1.875rem;
  padding: 0.25rem 1.25rem;
  background-color: #fff;
  border-radius: 0.625rem;
}

@media screen and (min-width: 768px) {
  .p-news__list {
    margin-top: 2.5rem;
    padding: 0.5rem 3.125rem;
  }
}

.p-news__item {
  position: relative;
}

.p-news__item + .p-news__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0.125rem;
  background-image: url(/_wp/wp-content/themes/aozora-sinri/assets/images/common/dot.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@media screen and (min-width: 768px) {
  .p-news__item + .p-news__item::before {
    background-image: url(/_wp/wp-content/themes/aozora-sinri/assets/images/common/dot-pc.svg);
  }
}

.p-news__link {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
  padding: 1.125rem 1.75rem 1.125rem 0;
  color: var(--news-ink);
}

@media screen and (min-width: 768px) {
  .p-news__link {
    flex-wrap: nowrap;
    gap: 0 1.5rem;
    padding: 1.625rem 2.5rem 1.625rem 0;
  }

  .p-news__link:hover {
    opacity: 1;
  }
}

.p-news__link::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.3125rem;
  border-top: 0.125rem solid var(--news-navy);
  border-right: 0.125rem solid var(--news-navy);
  transform: rotate(45deg);
  transition: right 0.3s;
}

@media screen and (min-width: 768px) {
  .p-news__link::after {
    right: 0.5rem;
    width: 0.625rem;
    height: 0.625rem;
  }

  .p-news__link:hover::after {
    right: 0;
  }
}

.p-news__date {
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

@media screen and (min-width: 768px) {
  .p-news__date {
    width: 6rem;
    font-size: 1rem;
  }
}

.p-news__cat {
  flex-shrink: 0;
  padding: 0.125rem 0.75rem;
  border-radius: 999px;
  background-color: var(--news-sky);
  color: var(--news-navy);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .p-news__cat {
    width: 9rem;
    font-size: 0.8125rem;
  }
}

.p-news__cat--closed {
  background-color: var(--news-berry);
  color: #fff;
}

.p-news__name {
  flex: 1 1 100%;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  color: var(--news-navy);
}

@media screen and (min-width: 768px) {
  .p-news__name {
    flex: 1 1 0;
    font-size: 1.125rem;
  }

  .p-news__link:hover .p-news__name {
    color: var(--news-blue);
  }
}

/* ==========================================================
   詳細ページ（single.php）
   ========================================================== */
.p-news-single {
  padding: 3.75rem 0 5rem;
  background-color: var(--news-sky);
  position: relative;
  z-index: 2;
}

@media screen and (min-width: 768px) {
  .p-news-single {
    padding: 5.3125rem 0 6.25rem;
  }
}

.p-news-single__inner {
  margin: auto;
  padding: 0 1.25rem;
  max-width: 37.5rem;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .p-news-single__inner {
    padding-inline: 1.5625rem;
    max-width: 52rem;
  }
}

.p-news-single__article {
  padding: 1.75rem 1.25rem 2rem;
  background-color: #fff;
  border-radius: 0.75rem;
  color: var(--news-ink);
}

@media screen and (min-width: 768px) {
  .p-news-single__article {
    padding: 3.125rem 3.75rem 3.75rem;
  }
}

.p-news-single__head {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.p-news-single__head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.125rem;
  background-image: url(/_wp/wp-content/themes/aozora-sinri/assets/images/common/dot.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

@media screen and (min-width: 768px) {
  .p-news-single__head {
    padding-bottom: 2rem;
  }

  .p-news-single__head::after {
    background-image: url(/_wp/wp-content/themes/aozora-sinri/assets/images/common/dot-pc.svg);
  }
}

.p-news-single__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.p-news-single__date {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.p-news-single__title {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--news-navy);
}

@media screen and (min-width: 768px) {
  .p-news-single__title {
    margin-top: 1rem;
    font-size: 1.75rem;
  }
}

/* 本文（ブロックエディタで入力した見出し・段落・リスト・表を想定） */
.p-news-single__body {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 2;
}

@media screen and (min-width: 768px) {
  .p-news-single__body {
    margin-top: 2rem;
  }
}

.p-news-single__body > * + * {
  margin-top: 1.25rem;
}

.p-news-single__body h3 {
  margin-top: 2.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--news-navy);
}

@media screen and (min-width: 768px) {
  .p-news-single__body h3 {
    font-size: 1.25rem;
  }
}

.p-news-single__body h3 + * {
  margin-top: 0.75rem;
}

.p-news-single__body ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.p-news-single__body a {
  color: var(--news-blue);
  font-weight: 700;
  text-decoration: underline;
}

.p-news-single__body .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.p-news-single__body .wp-block-table th,
.p-news-single__body .wp-block-table td {
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
  font-weight: 400;
}

.p-news-single__body .wp-block-table tr {
  display: block;
  padding: 1rem 0;
  border-top: 0.0625rem dotted var(--news-blue);
}

.p-news-single__body .wp-block-table tr:last-child {
  border-bottom: 0.0625rem dotted var(--news-blue);
}

.p-news-single__body .wp-block-table th {
  font-weight: 700;
  color: var(--news-navy);
}

@media screen and (min-width: 768px) {
  .p-news-single__body .wp-block-table tr {
    display: flex;
    gap: 2rem;
    padding: 1.125rem 0;
  }

  .p-news-single__body .wp-block-table th {
    flex-shrink: 0;
    width: 9rem;
  }
}

.p-news-single__body strong {
  font-weight: 700;
  color: var(--news-berry);
}

.p-news-single__btn {
  margin-top: 3rem;
  text-align: center;
}
