/* ===== Base ===== */
:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f6f7f9;
  --c-text: #111;
  --c-muted: #666;
  --c-primary: #0a66ff;
  --c-primary-ink: #fff;

  --radius: 12px;
  --container: min(1100px, 92vw);
  --gap: clamp(16px, 2.5vw, 24px);
  --gap-lg: clamp(24px, 4vw, 40px);
  --shadow: 0 6px 24px rgba(0, 0, 0, .06);
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  color: var(--c-text);
  background: var(--c-bg);
  /* font: 16px/1.8 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; */
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
}

a:hover {
  /* text-decoration: underline; */
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* ===== Sections ===== */
.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section--gray {
  background: var(--c-bg-alt);
}

.section__title {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: var(--gap-lg);
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  background: linear-gradient(180deg, #fff 0, #f8faff 100%);
}

.hero__title {
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: .03em;
  margin-bottom: .25em;
}

.hero__lead {
  color: var(--c-muted);
  font-size: clamp(16px, 2.4vw, 18px);
}

.hero__actions {
  margin-top: var(--gap-lg);
  display: flex;
  gap: var(--gap);
  justify-content: center;
  flex-wrap: wrap;
}

.br-md {
  display: none;
}

@media (min-width:768px) {
  .br-md {
    display: inline;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-primary-ink);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .02em;
}

.btn:hover {
  opacity: .92;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
  box-shadow: none;
}

.btn--full {
  display: block;
  text-align: center;
  width: min(420px, 100%);
  margin-inline: auto;
}

/* ===== Grid & Cards ===== */
.grid {
  display: grid;
  gap: var(--gap);
}

.grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width:768px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {

}

.card__title {
  font-size: 18px;
  margin-bottom: .4em;
}

.card__text {
  color: var(--c-muted);
}

/* ===== Entry Content (ブロック本文の基本余白) ===== */
.entry-content>* {
  margin-block: 1em;
}

.entry-content> :is(h2, h3, h4) {
  margin-top: 1.6em;
}

/* ===== News ===== */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.news-item {
  border-bottom: 1px solid #eaecef;
  padding-bottom: 12px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item__link {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.news-item__link:hover .news-item__title {
  text-decoration: underline;
}

.news-item__date {
  color: var(--c-muted);
  font-feature-settings: "palt"1, "tnum"1;
  white-space: nowrap;
}

.news-item__title {
  flex: 1;
}

/* ===== Company Info ===== */
.company {
  display: grid;
  gap: 8px;
}

.company__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.company__row dt {
  color: var(--c-muted);
}

.company__row:last-child {
  border-bottom: none;
}

/* ===== FAQ ===== */
.faq {
  border: 1px solid #e6e8eb;
  border-radius: var(--radius);
  padding: 12px 16px;
  background: #fff;
}

.faq+.faq {
  margin-top: 12px;
}

.faq__q {
  cursor: pointer;
  font-weight: 600;
}

.faq__a {
  margin-top: 8px;
  color: var(--c-muted);
}

/* ===== CTA ===== */
.cta {
  text-align: center;
  background: linear-gradient(180deg, #f8faff 0, #fff 100%);
}

.cta__title {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: .25em;
}

.cta__lead {
  color: var(--c-muted);
  margin-bottom: var(--gap);
}

/* ===== Motion Respect ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Archive / Index ===== */
.section--compact {
  padding: clamp(28px, 5vw, 48px) 0;
}

.archive-title {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0;
}

.archive-desc {
  color: var(--c-muted);
  margin-top: .4em;
}

/* 投稿リスト：1カラムのカード */
.post-list {
  display: grid;
  gap: var(--gap);
}

.post-card {
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 20px);
  box-shadow: var(--shadow);
}

.post-card__title {
  font-size: clamp(18px, 2.6vw, 20px);
  margin: 0 0 .25em;
}

.post-card__title a {
  color: inherit;
  text-decoration: none;
}

.post-card__title a:hover {
  text-decoration: underline;
}

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: .75em;
}

.post-card__date {
  font-feature-settings: "palt"1, "tnum"1;
  white-space: nowrap;
}

.post-card__cats a {
  color: var(--c-muted);
  text-decoration: none;
}

.post-card__cats a:hover {
  text-decoration: underline;
}

.post-card__badge {
  margin-left: auto;
  background: #fff3cd;
  color: #8a6d3b;
  border: 1px solid #f5e0a3;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.8;
}

.post-card__excerpt {
  color: var(--c-text);
  margin-bottom: .8em;
}

.post-card__footer {
  display: flex;
  justify-content: flex-end;
}

/* ページネーション（get_the_posts_pagination の出力整形） */
.pagination {
  margin-top: var(--gap-lg);
  display: flex;
  justify-content: center;
}

.pagination .nav-links {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  min-width: 40px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e6e8eb;
  text-decoration: none;
}

.pagination a:hover {
  background: var(--c-bg-alt);
}

.pagination .current {
  background: var(--c-primary);
  color: var(--c-primary-ink);
  border-color: var(--c-primary);
}

/* 空状態 */
.post-empty {
  text-align: center;
  color: var(--c-muted);
}

/* ===== Single ===== */
.single__title{
  font-size: clamp(22px, 3.4vw, 32px);
  margin: 0;
}
.single__meta{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--c-muted);
}
.single__date{ font-feature-settings: "palt" 1, "tnum" 1; white-space: nowrap; }
.single__cats a, .single__tags a{ color: var(--c-muted); text-decoration: none; }
.single__cats a:hover, .single__tags a:hover{ text-decoration: underline; }

.entry-content > *{ margin-block: 1em; }
.entry-content > :is(h2,h3,h4){ margin-top: 1.6em; }

/* 分割ページナビ */
.page-links{
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: var(--gap);
}
.page-links a, .page-links span{
  display: inline-block; min-width: 40px; text-align: center; padding: 6px 10px;
  border: 1px solid #e6e8eb; border-radius: 8px; text-decoration: none;
}
.page-links .current{ background: var(--c-primary); color: var(--c-primary-ink); border-color: var(--c-primary); }

/* 前後ナビ */
.post-nav__inner{
  display: grid; gap: 12px;
}
@media (min-width: 640px){
  .post-nav__inner{ grid-template-columns: 1fr 1fr; }
  .post-nav__prev{ text-align: left; }
  .post-nav__next{ text-align: right; }
}
.post-nav a{
  display: inline-block; padding: 8px 12px; border: 1px solid #e6e8eb; border-radius: 8px; text-decoration: none;
}
.post-nav a:hover{ background: var(--c-bg-alt); }

/* ===== Category children ===== */
.cat-children{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cat-children__item a{
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #e6e8eb;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}
.cat-children__item a:hover{
  background: var(--c-bg-alt);
}
.cat-children__count{
  color: var(--c-muted);
  margin-left: 4px;
}

/* ===== Page ===== */
.page__title{
  font-size: clamp(22px, 3.4vw, 32px);
  margin: 0;
}
.page__excerpt{
  margin-top: 6px;
  color: var(--c-muted);
}

/* 本文の基本余白（他テンプレと統一） */
.entry-content > *{ margin-block: 1em; }
.entry-content > :is(h2,h3,h4){ margin-top: 1.6em; }

/* 分割ページナビ */
.page-links{
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: var(--gap);
}
.page-links a, .page-links span{
  display: inline-block; min-width: 40px; text-align: center; padding: 6px 10px;
  border: 1px solid #e6e8eb; border-radius: 8px; text-decoration: none;
}
.page-links .current{
  background: var(--c-primary);
  color: var(--c-primary-ink);
  border-color: var(--c-primary);
}

/* ===== Search Results ===== */
.archive-desc mark{
  background: #fff3cd;
  color: inherit;
  padding: 0 4px;
  border-radius: 4px;
}

/* 投稿タイプのバッジ（検索は複数PT混在を想定） */
.post-card__ptype{
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #e6e8eb;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--c-muted);
}

/* ノーリザルト時のヒント */
.search-tips{
  max-width: 640px;
  margin: 0 auto var(--gap);
  color: var(--c-muted);
}
.search-tips ul{
  margin: .5em 0 0;
  padding-left: 1.2em;
}

/* 再検索フォーム（既存404のスタイルを流用できるように同名クラス） */
.error-search{
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
}
.error-search form{
  margin-top: .5em;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.error-search input[type="search"]{
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.error-search input[type="submit"]{
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background: var(--c-primary);
  color: var(--c-primary-ink);
  font-weight: 600;
  cursor: pointer;
}
.error-search input[type="submit"]:hover{ opacity: .9; }

/* Search form */
.search-form{display:flex; gap:8px;}
.search-form__input{flex:1; min-width:0; padding:8px 12px; border:1px solid #ccc; border-radius:6px;}
.search-form__submit{padding:8px 16px; border-radius:6px; border:none; background:var(--c-primary); color:var(--c-primary-ink); font-weight:600; cursor:pointer;}
.search-form__submit:hover{opacity:.9;}