:root {
  --navy: #0b1d3b;
  --ink: #3B3B3B;
  --paper: #f3f5f1;
  --white: #ffffff;
  --haudi-green: #50a69f;
  --haudi-green-dark: #309a8c;

  /* ロゴ画像を --haudi-green に寄せるフィルタ。色を変えるときはここだけ直す。 */
  --logo-green-filter: brightness(0) saturate(100%) invert(62%) sepia(11%) saturate(1358%) hue-rotate(127deg) brightness(100%);

  --shell: min(1200px, calc(100vw - 40px));
  --radius: 32px;
}

* {
  box-sizing: border-box;
}

::after,
::before,
:after,
:before {
  box-sizing: border-box;
}

html {
  /* 初期表示でハッシュ位置へ移動するとき、Chrome は smooth だとアニメーションするため、
     画面が出たあとに動いて見える。読み込み中は auto にして瞬時に位置を決める。
     ページ内リンク用の smooth は、読み込み完了後に theme.js が .is-loaded を付けて有効化する。 */
  scroll-behavior: auto;
}

html.is-loaded {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

figure.aligncenter figcaption {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 本文の段落内リンクと、本文の箇条書き（リストブロック）内リンク。
   クラス付きのリンク（ボタン等の部品）とヘッダー・フッターは対象外。
   リストは class が "wp-block-list" だけのものに限る。タブメニュー等は同じクラスに
   独自クラス（tab-menu__list など）を足しているので、属性の完全一致で除外する。 */
main p a:not([class]),
main :is(ul, ol)[class="wp-block-list"] li a:not([class]) {
  color: var(--haudi-green);
  text-decoration: underline;
}

main p a:not([class]):hover,
main :is(ul, ol)[class="wp-block-list"] li a:not([class]):hover {
  opacity: 0.75;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}


.mb-0 {
  margin-bottom: 0px !important;
}

.font-pop {
  font-family: "Poppins", sans-serif !important;
  font-weight: 600 !important;
}

.font-pop small {
  font-family: "Noto Sans JP", sans-serif !important;
  font-weight: 500 !important;
}


.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--white);
  color: var(--ink);
}

.site-header {
  position: fixed;
  inset: 20px 0 auto;
  z-index: 100;
  padding: 22px 24px;
  color: var(--white);
  transition: padding .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  padding-block: 12px;
}

.site-header__inner {
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
}

.header__items {
  display: grid;
  grid-template-columns: 678px auto auto auto;
  align-items: center;
  gap: 18px;
}

.site-branding__text,
.site-footer__brand {
  font: 600 clamp(1.8rem, 3vw, 3.25rem)/1 "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
}

.custom-logo {
  min-width: 150px;
  width: auto;
}

.site-header.is-scrolled .custom-logo,
body.menu-open .site-header.is-scrolled .custom-logo,
body.menu-open .is-menu-open .custom-logo,
body.home .custom-logo,
body.error404 .custom-logo {
  filter: var(--logo-green-filter);
}

.site-menu {
  min-width: 0;
}

.site-menu__list,
.footer-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-menu__list {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(30px) brightness(1.4);
}

/* 現在地のメニュー項目を緑にする。個別記事や下層ページでは親項目を光らせたいので、
   current-menu-parent / current-menu-ancestor も対象に含める。 */
.site-menu ul>li.current-menu-item>a,
.site-menu ul>li.current-menu-parent>a,
.site-menu ul>li.current-menu-ancestor>a,
.tax-haudi-journal-category .site-menu ul>li.menu-item-object-haudi-journal>a,
.tax-news-category .site-menu ul>li.menu-item-object-news>a,
.tax-usecase-product .site-menu ul>li.menu-item-object-usecase>a {
  color: var(--haudi-green);
}

@media (max-width: 1279px) {
  .site-menu__list {
    padding: 12px;
    gap: 10px;
  }
}

.site-menu li {
  position: relative;
}

.site-menu a {
  display: block;
  padding: 7px 2px;
  font-size: 15px;
  font-weight: 500;
  color: #3B3B3B;
  transition: all 0.3s ease;
  text-align: center;
}

.site-menu a:hover {
  color: var(--haudi-green);
}

.site-menu .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 210px;
  margin: 0;
  padding: 14px;
  list-style: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(30px) brightness(1.4);
  box-shadow: 0 20px 50px rgba(2, 14, 36, .16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -5px);
  transition: all 0.3s ease;
}

.site-menu li:hover>.sub-menu,
.site-menu li:focus-within>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* 3 階層目は 2 階層目の下ではなく右横に出す。
   親パネルの padding が 14px なので、上を -14px ずらすと 1 項目目の高さが揃い、
   left を「li の右端 + 14px」にすると親パネルの外周にぴったり接する。
   間を空けるとカーソルが移動する途中で閉じてしまうため、あえて隙間は作らない。 */
.site-menu .sub-menu .sub-menu {
  top: -14px;
  left: calc(100% + 14px);
  transform: translate(0, -5px);
}

.site-menu .sub-menu li:hover>.sub-menu,
.site-menu .sub-menu li:focus-within>.sub-menu {
  transform: translate(0, 0);
}

body.menu-open .site-menu {
  visibility: hidden;
}


.lang-switcher {
  display: flex;
  align-items: center;
  gap: .4em;
  background: #fff;
  padding: .2em .9em;
  border-radius: 40px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  white-space: nowrap;
}

.lang-switcher__link {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}

.lang-switcher__link.is-active {
  color: var(--haudi-green);
  font-weight: 600;
}

.lang-switcher__link:not(.is-active):hover {
  color: var(--haudi-green);
}

.lang-switcher__sep {
  color: rgba(41, 45, 52, .25);
}

@media (max-width: 1279px) {
  .menu-open .header__lang {
    display: none;
  }
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  border-radius: 999px;
  background: var(--haudi-green);
  border: 1px solid var(--haudi-green);
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
  transition: transform .3s ease, background .3s ease;
  font-family: "Poppins", sans-serif;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 999px;
  background: var(--haudi-green);
  border: 1px solid var(--haudi-green);
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease;
  font-family: "Poppins", sans-serif;
}

.contact-pill:hover,
.button:hover {
  background: var(--white);
  color: var(--haudi-green);

}



@media (max-width: 1023px) {
  .contact-pill {
    padding: 8px 14px;
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .contact-pill {
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 575px) {
  .contact-pill {
    display: none;
  }

  .menu-open .contact-pill {
    display: block;
  }
}

.menu-toggle {
  display: none;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 100px;
  position: relative;
  border: none;
}

.menu-open .menu-toggle {
  background: var(--haudi-green);
}

.menu-toggle span {
  position: absolute;
  height: 2px;
  width: 24px;
  top: 29px;
  left: 18px;
  background: var(--haudi-green) !important;
}

.menu-toggle span:nth-child(2) {
  transform: translateY(-6px);
}

.menu-toggle span:last-child {
  transform: translateY(6px);
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
  transition: .2s ease;
}

.menu-open .menu-toggle span:nth-child(2) {
  transform: translateY(0) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(3) {
  opacity: 0;
  visibility: hidden;
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(0) rotate(-45deg);
}

.menu-open .menu-toggle span {
  background: var(--white) !important;
}

.drawer-menu {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: grid;
  align-content: center;
  padding: 24px;
  background: var(--white);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  height: 100vh;
}

@media (max-width: 720px) {
  .drawer-menu {
    padding: 8px;
  }
}

.site-header.is-menu-open .drawer-menu {
  opacity: 1;
  visibility: visible;
}

.site-header.is-menu-open .nav__inner {
  background: #fff;
  border-radius: 20px;
  padding: 80px 20px;
  height: calc(100vh - 48px);
  overflow-y: auto;
}

@media (min-width: 721px) and (max-width: 1024px) {
  .site-header.is-menu-open .nav__inner {
    padding: 100px 32px 60px;
  }
}

@media (max-width: 425px) {
  .site-header.is-menu-open .nav__inner {
    overflow-x: auto;
  }
}

.drawer-menu__list {
  display: flex;
  flex-wrap: wrap;
  width: min(1216px, 100%);
  margin: auto;
  padding: 0;
  list-style: none;
  color: var(--white);
  min-width: 337px;
}

.drawer-menu li {
  list-style: none;
}

.drawer-menu ul#menu-drawer li {
  margin-bottom: 6px;
}

.drawer-menu ul#menu-drawer > li {
  width: 100%;
}

/* 子メニューを持つ入れ子項目（例: プロダクト事業）は、自分の margin-bottom と
   末尾の子項目の margin-bottom が二重に積み重なって余白だけ広くなるため、
   自分の分は打ち消して子項目側の余白だけに揃える。 */
.drawer-menu ul#menu-drawer .sub-menu li:has(> .sub-menu) {
  margin-bottom: 0;
}

.drawer-menu ul#menu-drawer li.menu-drawer-about-us,
.drawer-menu ul#menu-drawer li.menu-drawer-bussiness,
.drawer-menu ul#menu-drawer li.menu-drawer-usecase {
  border-bottom: 1px solid #dfdfdf;
  padding-bottom: 9px;
  margin-bottom: 9px;
}

.drawer-menu ul#menu-drawer li.menu-drawer-hudi-journal,
.drawer-menu ul#menu-drawer li.menu-drawer-news {
  padding-bottom: 9px;
  /* 子項目を持たず見出しだけで終わる分、他グループと区切りの余白が揃うよう補う。 */
  margin-bottom: 13px;
  border-bottom: 1px solid #dfdfdf;
}

.drawer-menu ul#menu-drawer li>a {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #3b3b3b;
  position: relative;
}

/* ドロワーメニューも現在地を緑にする。ヘッダーメニューと同じ考え方で、
   タクソノミーアーカイブは body のクラスから親項目を判定する。 */
.drawer-menu ul#menu-drawer li.current-menu-item>a,
.drawer-menu ul#menu-drawer li.current-menu-parent>a,
.drawer-menu ul#menu-drawer li.current-menu-ancestor>a,
.tax-haudi-journal-category .drawer-menu ul#menu-drawer li.menu-item-object-haudi-journal>a,
.tax-news-category .drawer-menu ul#menu-drawer li.menu-item-object-news>a,
.tax-usecase-product .drawer-menu ul#menu-drawer li.menu-item-object-usecase>a {
  color: var(--haudi-green);
}

.drawer-menu ul#menu-drawer li>a::after {
  content: attr(data-desc);
  font-size: 15px;
  line-height: 1.4;
  margin-left: 1em;
  font-weight: 300;
  color: var(--haudi-green);
  font-family: "Noto Sans JP", sans-serif;
}

.drawer-menu .sub-menu {
  margin: 0;
  padding-left: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 6px;
}

/* 孫階層の一覧（例: プロダクト事業の下の製品一覧）は親項目の文字が小さい分、
   見出し直下の間隔と揃うよう少し広めにする。 */
.drawer-menu ul#menu-drawer .sub-menu .sub-menu {
  margin-top: 8px;
}

.drawer-menu #menu-drawer .sub-menu li.current-menu-item {
  margin-bottom: 0;
}

.drawer-menu ul#menu-drawer .sub-menu a {
  padding: 3px 0;
  font-size: 13px;
  font-weight: 400;
}

.drawer-menu ul#menu-drawer li.menu-drawer-recruit .sub-menu a {
  padding: 4px 0;
  display: block;
}

.drawer-menu #menu-drawer li .sub-menu a:hover {
  color: var(--haudi-green);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--haudi-green);
  font: 600 .78rem/1.4 "Space Grotesk", sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.content-shell {
  width: var(--shell);
  margin-inline: auto;
}

.content-shell--narrow {
  max-width: 1200px;
}

.section {
  padding: clamp(16px, 10vw, 32px) 0;
}

.page-template-default .section {
  padding: clamp(16px, 10vw, 32px) 0 0;
}

body.home.page-template-default .section {
  padding: 0;
}

.home .site-header {
  background: rgba(255, 255, 255, 0);
}

.front-page-main {
  min-height: 60vh;
}

.front-page-content {
  min-height: 45vh;
  padding-top: 0;
  padding-bottom: 0;
}

.page-hero {
  color: var(--white);
  position: relative;
  padding: 16px;
  max-height: 400px;
  width: 100%;
}

.page-hero img {
  border-radius: 18px;
  height: 280px;
  width: 100%;
  object-fit: cover;
}

.recruit .page-hero img {
  object-position: center 20%;
}

.page-hero .main-visual-inner {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 24px;
  bottom: 48px;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  padding-left: 40px;
  padding-right: 40px;
}

.page-hero h1,
.page-hero .page-default-title,
.not-found h1 {
  max-width: 1000px;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.6;
}

/* ヒーロー見出しに併記する日本語ラベル（Use Case / 導入事例）。 */
.page-hero .page-default-title small {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .08em;
}

/* 記事タイトル。見出し階層変更前の h2 と同じ見た目を維持する。 */
.entry-title {
  margin: .83em 0;
  font-size: 1.5em;
  font-weight: 700;
}

.archive-description {
  max-width: 760px;
  margin-top: 28px;
  color: rgba(255, 255, 255, .7);
}

.archive-description> :first-child {
  margin-top: 0;
}

.archive-description> :last-child {
  margin-bottom: 0;
}

.entry-content>* {
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

/* ワイドは通常幅と同じ。変更時は functions.php の wideSize も揃える。 */
.entry-content>.alignwide {
  max-width: 1200px;
}

.entry-content>.alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.featured-image {
  margin-top: -56px;
  position: relative;
}

.featured-image img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cpt-search-section {
  padding: clamp(16px, 5vw, 32px) 0;
  background: var(--white);
}

.cpt-search-section+.featured-image {
  margin-top: 0;
  padding-top: clamp(20px, 4vw, 48px);
}

.cpt-results {
  padding-top: clamp(16px, 7vw, 24px);
}

.cpt-search-section .content-shell {
  display: flex;
  place-content: center;
}

.cpt-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: min(800px, 100%);
}

.cpt-search-form__input {
  width: 100%;
  min-height: 48px;
  padding: 8px 28px;
  border: 1px solid rgba(41, 45, 52, .18);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.cpt-search-form__input:focus {
  border-color: var(--haudi-green-dark);
  box-shadow: 0 0 0 4px rgba(119, 217, 202, .22);
}

.cpt-search-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 8px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.cpt-search-form__submit:hover {
  background: var(--haudi-green-dark);
  transform: translateY(-2px);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card a {
  position: relative;
  display: block;
  height: 100%;
  border-radius: 8px;
  background: #F9F7F7;
  padding: 0 0 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.post-card__image {
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  aspect-ratio: 16/9;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s ease, box-shadow .2s ease;
}

.post-card a:hover .post-card__image img {
  transform: scale(1.05);
}

.post-card time {
  font-size: 13px;
  letter-spacing: .08em;
  color: #687079;
  padding: 0 20px;
  margin-bottom: 16px;
}

.post-card h3 {
  margin: 12px 10px 10px 0;
  font-size: 20px;
  line-height: 1.5;
}

.post-card p {
  margin: 0;
  color: #687079;
}

.post-card .card__category {
  position: absolute;
  top: 0;
  right: 0;
  padding: 4px 12px;
  background: var(--haudi-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  border-radius: 0 8px 0 4px;
}

.post-card a::after {
  position: absolute;
  content: "";
  bottom: 20px;
  right: 12px;
  width: 30px;
  height: 16px;
  background: url("../images/arrow-right.svg") no-repeat center;
  background-size: auto;
  background-size: auto;
  background-size: contain;
  transition: all 0.3s ease;
}

.post-card a:hover::after {
  transform: translateX(5px);
}

.wp-pagenavi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}

.wp-pagenavi .page {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: #F9F7F7;
  color: var(--haudi-green);
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.wp-pagenavi .page:hover {
  background: var(--haudi-green);
  color: #fff;
}

.wp-pagenavi .current {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  border: solid 2px var(--haudi-green);
  background: var(--haudi-green);
  border-radius: 6px;
  color: #fff;
}

.wp-pagenavi .extend {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  color: var(--haudi-green);
}

.wp-pagenavi .nextpostslink {
  color: transparent;
  position: relative;
}

.wp-pagenavi .nextpostslink::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-top: solid 2px var(--haudi-green);
  border-right: solid 2px var(--haudi-green);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  margin-left: -1px;
}

.wp-pagenavi .last::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-top: solid 2px var(--haudi-green);
  border-right: solid 2px var(--haudi-green);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  margin-left: -3px;
}

.wp-pagenavi .last::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-top: solid 2px var(--haudi-green);
  border-right: solid 2px var(--haudi-green);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  margin-left: 1px;
}

.wp-pagenavi .first::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-top: solid 2px var(--haudi-green);

  border-left: solid 2px var(--haudi-green);

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  margin-left: -1px;
}

.wp-pagenavi .first::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-top: solid 2px var(--haudi-green);
  border-left: solid 2px var(--haudi-green);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  margin-left: 3px;
}

.wp-pagenavi .previouspostslink {
  color: transparent;
  position: relative;
}

.wp-pagenavi .previouspostslink::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-top: solid 2px var(--haudi-green);
  border-left: solid 2px var(--haudi-green);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  margin-left: 1px;
}

.wp-pagenavi .first,
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink,
.wp-pagenavi .last {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: #F9F7F7;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 6px;
}

.wp-pagenavi .first,
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink,
.wp-pagenavi .last {
  font-size: 1rem;
  font-weight: 600;
}

.wp-pagenavi .first {
  color: transparent;
  position: relative;
}

.wp-pagenavi .last {
  color: transparent;
  position: relative;
}

.not-found {
  min-height: 76vh;
  padding: clamp(180px, 22vw, 280px) 0 100px;
  background: var(--white);
  color: var(--ink);
}

.not-found p:not(.eyebrow) {
  max-width: 620px;
  margin: 28px 0;
  color: #707070;
}

.site-footer {
  padding: 80px 24px 24px;
  background: #4B4B4B;
  color: var(--white);
}

.site-footer__inner,
.site-footer__bottom {
  width: var(--shell);
  margin-inline: auto;
}

.site-footer__inner {
  padding-top: 54px;
}

.site-footer__description {
  max-width: 480px;
  color: rgba(255, 255, 255, .58);
}



.footer-menu__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px;
}

@media (max-width: 1023px) {
  .footer-menu__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-menu li {
  min-width: 0;
}

.footer-menu__list>li {
  border-top: solid 1px #6A6A6A;
  position: relative;
  padding-top: 20px;
}

.footer-menu__list>li::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 1px;
  background: var(--haudi-green);
  top: -1px;
  left: 0;
}

.footer-menu__list a {
  color: #969696;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.footer-menu__list>li>a {
  font-size: 21px;
  color: var(--white);
  position: relative;
}

.footer-menu__list>li>a::after {
  content: attr(data-desc);
  color: var(--haudi-green);
  font-size: 15px;
  right: 0;
  bottom: 12px;
  position: absolute;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
}

.footer-menu a {
  display: block;
  padding: 10px 0;
}

.footer-menu .sub-menu {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
}

.footer-menu .sub-menu a {
  padding: 6px 0;
  color: #969696;
  font-size: .9rem;
  line-height: 1.55;
  transition: all 0.3s ease;
}

.footer-menu .sub-menu a:hover {
  color: var(--white);
}

.footer-menu .sub-menu .sub-menu {
  margin: 0;
}

.footer-menu .sub-menu .sub-menu a {
  padding-left: 16px;
  color: #969696;
  font-size: .82rem;
}

.footer-menu .sub-menu .sub-menu a:hover {
  color: var(--white);
}

.footer-menu .sub-menu .sub-menu a::before {
  content: "-";
  display: inline-block;
  margin-right: 8px;
}

.footer-widgets--after-menu {
  margin-top: 80px;
}

.footer-widgets--after-menu a {
  transition: all .3s;
}

.footer-widgets--after-menu a:hover {
  text-decoration: none;
}

.footer-widget+.footer-widget {
  margin-top: 28px;
}

.footer-widget__title {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.footer-widget p,
.footer-bottom-widget p {
  margin: 0;
}

.footer-widget ul,
.footer-bottom-widget ul {
  margin: 0;
  padding-left: 1.2em;
}

.footer-widget a,
.footer-bottom-widget a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .5);
  font-size: .78rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom p a {
  text-decoration: none;
}

.footer-widgets--bottom {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 30px;
}

.footer-bottom-widget {
  min-width: 0;
}

@media (max-width: 1281px) {
  .header__items {
    grid-template-columns: 48vw auto auto auto;
  }
}

@media (max-width: 1024px) {
  .header__items {
    grid-template-columns: auto auto auto;
  }

  .site-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 32px, 1180px);
    --radius: 24px;
  }

  .site-header {
    padding: 14px 16px;
  }

  .site-header__inner {
    gap: 10px;
  }

  .site-branding__text {
    font-size: 1.8rem;
  }

  .custom-logo {
    max-height: 40px;
    max-width: 120px;
  }

  .menu-toggle span {
    top: unset;
    left: 14px;
  }

  .header__lang {
    display: block;
  }

  .menu-open .header__lang {
    display: none;
  }

  .menu-toggle {
    width: 50px;
    height: 50px;
  }

  .page-hero {
    padding: 8px;
    max-height: 249px;
  }

  .page-hero img {
    height: 233px;
  }

  .page-hero .main-visual-inner {
    gap: 16px;
    flex-direction: column-reverse;
    padding-left: 24px;
    padding-right: 24px;
    bottom: 24px;
  }

  .page-hero h1,
  .page-hero .page-default-title,
  .not-found h1 {
    font-size: 32px;
    line-height: 1.4;
  }

  .page-header__title small {
    font-size: 16px;
  }

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

  .cpt-search-form {
    grid-template-columns: 1fr;
  }

  .cpt-search-form__submit {
    width: 100%;
  }

  .site-footer {
    padding: 64px 16px 22px;
  }

  .footer-menu .sub-menu a {
    padding-left: 12px;
  }

  .footer-menu .sub-menu .sub-menu a {
    padding-left: 28px;
  }

  .site-footer__bottom {
    display: block;
  }

  .footer-widgets--bottom {
    display: grid;
  }
}

@media (max-width: 575px) {
  .footer-menu__list {
    grid-template-columns: 1fr;
  }

  .header__items {
    grid-template-columns: auto auto;
  }
}



@media (max-width: 430px) {
  .site-header {
    padding: 14px 8px 14px 0;
  }

  .site-header__inner {
    padding: 0;
    gap: 0;
  }

  .custom-logo {
    max-height: 30px;
    max-width: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* ---------------------------------------------------------------
   ページ遷移

   本文（#primary）をフェードインさせる。位置は動かさない。
   下から迫り上がる動きは、ページを開くたびに視線が動いて煩わしいため使わない。

   クロスドキュメントの View Transitions（@view-transition）も使わない。
   Chrome だけが対応しており、遷移中にハッシュ位置へのスクロールが
   打ち消されて #usecase-list に着地しなくなるため。
   --------------------------------------------------------------- */

#primary {
  animation: page-fade-in .5s ease both;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #primary {
    animation: none !important;
  }
}