@charset "UTF-8";

/* ==========================================
   お知らせ（TOP の News）
   XD: 01_TOP_SP の News（375px。見出し・本文・一覧の箱・View More が縦に並ぶ）、01_TOP_PC の News（1366px。左に見出し・本文・ボタン、右に一覧の箱）
   y は XD の値（SP は見出しの上端 2895.62、PC は箱の上端 3179 から）
   ========================================== */
.news {
  margin: 0 0 81px;
  padding: 0;
}

.news__grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.news__left {
  /* SP は左の列（見出し・本文・ボタン）の子を、箱をはさんで並べ替える */
  display: contents;
}

.news__heading {
  /* XD SP: 見出し YuGo-Bold 30px・字間 3px（左揃え x=13.5）、波線（パス 128）x=14.29 y=2920.88 128.58×9.99 */
  position: relative;
  align-self: flex-start;
  order: 1;
  width: fit-content;
  height: 31px;
  margin: 0 0 29.38px 15px;
  padding: 1px 0 0;
  font-family: var(--font-ja);
  font-size: 30px;
  font-weight: 700;
  line-height: 1; /* 30px ÷ 30px */
  letter-spacing: 0.1em; /* 3px ÷ 30px */
  color: var(--color-text);
  text-indent: -1.5px;
}

.news__heading::after {
  content: "";
  position: absolute;
  bottom: -4.86px;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 9.99px;
  background-image: url("../../img/wavyline.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
}

.news__lead {
  /* XD SP: 本文 YuGo-Medium 16px・行の高さ 27px・x=15・3 行（1 行目のベースライン 2975）。箱の上端 3069 まで 32 */
  order: 2;
  margin: 0 0 32px;
  padding: 0 15px;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6875; /* 27px ÷ 16px */
  color: var(--color-text);
}

.news__right-box {
  /* XD SP: 一覧の箱 x=14 y=3069 361×381（右端まで）角丸 50 0 0 50・影 1 1 5。中の上 30、日付 x=35 */
  order: 3;
  box-sizing: border-box;
  margin: 0 0 30px 14px;
  padding: 30px 20px 0 21px;
  border-radius: 50px 0 0 50px;
  background-color: var(--color-white);
  box-shadow: var(--shadow-btn);
}

.news__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news__item {
  /* XD SP: 項目の間隔 117（ラベル 26 ＋ 5 ＋ タイトル 2 行 54 ＋ 32） */
  margin-bottom: 32px;
}

.news__link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

@media (any-hover: hover) {
  .news__link:hover {
    opacity: 0.6;
  }
}

.news__meta {
  /* XD SP: 日付 Archivo Narrow 14px・字間 0.7px（x=35）、ラベル 96×26 x=140（日付の列 105）・角丸 5・#93c572・文字 YuGo-Medium 14px の白 */
  display: flex;
  align-items: center;
}

.news__date {
  flex: 0 0 105px; /* ラベルの x を日付の長さにかかわらず 140 にそろえる */
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2858; /* 18px ÷ 14px（切り上げて 18px ちょうどにする） */
  letter-spacing: 0.05em;
}

.news__tag {
  display: block;
  box-sizing: border-box;
  width: 96px;
  height: 26px;
  border-radius: 5px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8572; /* 26px ÷ 14px（切り上げて 26px ちょうどにする） */
  color: var(--color-white);
  text-align: center;
  white-space: nowrap;
  background-color: var(--color-main);
}

.news__title {
  /* XD SP: タイトル YuGo-Bold 16px・行の高さ 27px・x=35・最大 2 行（1 行目のベースライン 3149） */
  margin: 5px 0 0;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6875; /* 27px ÷ 16px */
  word-break: break-all;
}

.news__empty {
  margin: 0;
  padding: 0 0 32px;
  font-size: 16px;
  color: var(--color-text);
}

.news__more {
  /* XD SP: View More x=37 y=3480 301×70・角丸 50・枠 2px #93c572・文字 Archivo Narrow 20px・字間 2px（ベースライン 3523） */
  display: block;
  order: 4;
  box-sizing: border-box;
  width: 301px;
  height: 70px;
  margin: 0 auto;
  border: 2px solid var(--color-main);
  border-radius: 50px;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 400;
  line-height: 3.4; /* 68px ÷ 20px */
  letter-spacing: 0.1em; /* 2px ÷ 20px */
  color: var(--color-main);
  text-align: center;
  text-indent: 2px; /* 最後の字の後の字間 2px を中央揃えから外す */
  background-color: var(--color-white);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

@media (any-hover: hover) {
  .news__more:hover {
    color: var(--color-white);
    background-color: var(--color-main);
  }
}

@media (width >= 768px) {
  .news {
    margin-bottom: 119px;
  }

  .news__grid {
    /* XD PC: 中央から右は一覧の箱（x=683〜1366）。左の列は x=203（中央 − 480）から幅 400 */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .news__left {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 80px 0 0 max(16px, 100% - 480px);
  }

  .news__heading {
    /* XD PC: 見出し 40px・字間 4px（x=203、ベースライン 3294）、波線 x=203.38 y=3290.51 171.43×13.32。本文の 1 行目のベースライン 3363 */
    height: auto;
    margin: 0 0 42.6px;
    padding: 0;
    font-size: 40px;
    line-height: 42.4px; /* 比率（1.06）にすると 1/64px ずれて位置が 1px 動くので px のまま（AUDIT CSS-1 の要確認） */
    letter-spacing: 0.1em;
    text-indent: 0;
  }

  .news__heading::after {
    bottom: -2.8px;
    height: 13.32px;
  }

  .news__lead {
    /* XD PC: 本文 x=203 w=398.72 の 3 行（行の高さ 27）。ボタンの上端 3484（本文の下端 3425 から 59） */
    max-width: 400px;
    margin-bottom: 59px;
    padding: 0;
  }

  .news__right-box {
    /* XD PC: 箱 x=683 y=3179 683×438（右端まで）角丸 100。中の上 80、日付 x=733、項目の間隔 106 */
    height: 438px;
    margin: 0;
    padding: 80px 40px 6px 50px;
    border-radius: 100px 0 0 100px;
    overflow: hidden;
  }

  .news__item {
    margin-bottom: 34px;
  }

  .news__date {
    /* XD PC: 日付 16px・字間 0.8px（ベースライン 3277）、ラベル x=845（間隔 23）、タイトル 20px・1 行（ベースライン 3323） */
    flex-basis: 112px;
    margin-top: -1px;
    font-size: 16px;
    line-height: 1.375; /* 22px ÷ 16px */
  }

  .news__title {
    margin-top: 16px;
    overflow: hidden;
    font-size: 20px;
    line-height: 1.5; /* 30px ÷ 20px */
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
  }

  .news__more {
    /* XD PC: View More x=253（幅 400 の左の列の中央）y=3484 */
    margin: 0 0 0 50px;
  }
}
