/* =============== 基本トークン =============== */
:root {
  --color-primary: #f68624; /* CTAボタン / シミュ背景（今回はHeroのみ） */
  --color-secondary: #fbc935; /* CTAセクション背景 */
  --color-surface: #fcf9ef; /* ページ基調 */
  --color-dark: #4d322c; /* 濃色（フッター/一部強調） */
  --color-text: #5a3b2e; /* 本文標準 */
  --color-faq: #7d5442; /* FAQ吹き出し/一部テキスト */
  --color-accent: #f3981c; /* テキスト強調/キラキラ */
  --color-error: #d12921; /* エラーカラー */

  /* アートボードとコンテンツの基準 */
  --artboard-pc: 1440px; /* PCのデザインキャンバス幅 */
  --content-pc: 1100px; /* PCのコンテンツ幅 */
  --artboard-sp: 375px; /* SPのアートボード幅（目安） */
  --content-sp: 335px; /* SPのコンテンツ幅 */

  --section-pc: 80px;
  --section-sp: 40px;
}

/* =========================================
   News list (Latest Posts block)
   class: c-newsList
========================================= */
.l-news {
  padding-top: 120px; /* 固定ヘッダー分 */
}
.has-text-align-center {
  padding-top: 100px;
  font-family: "Monomaniac One", system-ui, -apple-system, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-weight: 400;
  font-size: clamp(45px, 4.5vw, 90px);
  color: var(--color-dark);
}
.wp-block-query-no-results {
  text-align: center;
}
.wp-block-post-template {
  /* コンテンツ幅：PC 1100 / SP 335 */
  width: min(100% - 40px, 900px);
  margin: 0 auto;
}
.wp-block-query-pagination {
  padding-top: 36px;
  justify-content: center;
}
.wp-block-query-pagination-next {
  color: var(--color-primary);
}
.wp-block-query-pagination-previous {
  color: var(--color-primary);
}
.page-numbers:where(a) {
  color: var(--color-primary);
}
@media (max-width: 767px) {
  .wp-block-post-template {
    width: min(100% - 40px, 335px);
  }
  .has-text-align-center {
    padding-top: 50px;
  }
}

/* リストの余白リセット */
.c-newsList.wp-block-latest-posts {
  padding-left: 0;
  list-style: none;
}

/* 各行（記事） */
.wp-block-post-template > li {
  display: flex; /* 日付と見出しを横並び */
  align-items: baseline;
  gap: 50px; /* 日付と見出しの間隔 */
  padding: 12px 0; /* 記事と記事の余白（上下） */
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* 仕切り線（不要なら消してOK） */
}

/* 日付 */
.c-newsList .wp-block-latest-posts__post-date {
  font-size: 16px; /* 文字を大きく */
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap; /* 日付の折り返し防止 */
}

/* 見出しリンク */
.wp-block-post-title :where(a) {
  font-size: 18px; /* 文字を大きく */
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  text-decoration: none;
  color: var(--color-primary);
}

/* ホバー（任意） */
.wp-block-post-title :where(a):hover {
  text-decoration: underline;
}

/* SP：縦に落としたい場合はここをONに（今は横並び維持） */
@media (max-width: 767px) {
  .c-newsList.wp-block-latest-posts > li {
    gap: 12px;
    padding: 16px 0;
  }
  .c-newsList .wp-block-latest-posts__post-date {
    font-size: 14px;
  }
  .c-newsList .wp-block-latest-posts__post-title {
    font-size: 16px;
  }
  .wp-block-post-title :where(a) {
    font-size: 14px;
  }
  .c-newsList .wp-block-latest-posts__post-date {
    font-size: 8px; /* 文字を大きく */
  }
}
/* 3) 日付を左、見出しを右に（順番入れ替え + 右寄せ） */
.c-newsList.wp-block-latest-posts > li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* WordPressの出力順は「タイトル→日付」なのでCSSで入れ替える */
.c-newsList .wp-block-latest-posts__post-title {
  order: 2;
  text-align: right; /* テキストも右寄せ */
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  color: inherit;
}

.c-newsList .wp-block-latest-posts__post-date {
  order: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* SP微調整 */
@media (max-width: 767px) {
  .c-newsList.wp-block-latest-posts > li {
    padding: 16px 0;
    gap: 12px;
  }
}

/* Single post */
/* 直下にベタ置きされている前提で幅を作る */
.wp-site-blocks > .c-singleTitle,
.wp-site-blocks > .c-singleDate,
.wp-site-blocks > .c-singleContent,
.wp-site-blocks > .wp-block-buttons {
  width: min(100%, 720px);
  margin-inline: auto;
}
.c-singleTitle {
  padding-top: 100px;
  font-size: 38px;
  margin-bottom: 8px;
}

.c-singleDate {
  color: #8c7b6a;
  text-align: left;
  font-size: 18px;
}

.c-singleContent {
  margin-top: 10px;
  line-height: 1.8;
  font-size: 24px;
}

.wp-block-button__link {
  --cta-h: 40px;
  --cta-w: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: var(--cta-w);
  height: var(--cta-h);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease;
  box-shadow: inset 0 0 0 4px #fff;
  justify-self: center;
  margin-top: 50px;
}
.wp-block-button__link:hover {
  background: #f3981c;
  transform: translateY(-2px);
}
.wp-block-button__link:focus-visible {
  outline: 2px solid rgba(246, 134, 36, 0.35);
  outline-offset: 4px;
}
@media (max-width: 767px) {
  .wp-site-blocks > .c-singleTitle,
  .wp-site-blocks > .c-singleDate,
  .wp-site-blocks > .c-singleContent,
  .wp-site-blocks > .wp-block-buttons {
    width: min(100%, 335px);
  }
  .c-singleTitle {
    padding-top: 50px;
  }
}
