@charset "UTF-8";
/* ==========================================================================
   Main Stylesheet
   ========================================================================== */
/**
 * メインスタイルシート
 * FLOCSSの設計思想に基づいた構成
 *
 * Foundation  → プロジェクトの基盤となるスタイル
 * Layout      → ページを構成する大きなブロックのスタイル
 * Object      → ページを構成するコンポーネントのスタイル
 *   Component → 再利用可能な小さな単位のスタイル
 *   Project   → プロジェクト固有のコンポーネントのスタイル
 *   Utility   → 汎用的なユーティリティクラスのスタイル
 */
/* ==========================================================================
   Foundation
   ========================================================================== */
/**
 * Foundationレイヤー
 * プロジェクトの基盤
 */
/* ==========================================================================
   Variables
   ========================================================================== */
/**
 * 変数定義
 * カラー、フォント、サイズなどのプロジェクト全体で使用する変数を定義
 */
/*light*/
/*Regular*/
/*Regular*/
/*Bold*/
/*Heavy*/
/* ==========================================================================
   Mixin
   ========================================================================== */
/* ==========================================================================
   Base
   ========================================================================== */
/**
 * ベーススタイル
 * 要素セレクタやタイポグラフィのベーススタイルを記述
 */
body {
  font-family: "M PLUS 1p", Noto Sans JP, MyYuGothicM, YuGothic, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, Verdana, arial, helvetica, sans-serif;
  letter-spacing: 1.1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Footer Layout
   ========================================================================== */
/**
 * フッターエリアのレイアウト
 */
/* ==========================================================================
   Header Layout
   ========================================================================== */
/**
 * ヘッダーエリアのレイアウト
 */
@media screen and (min-width: 769px) {
  .is-frontend .wp-block-cover:has(.p-news) {
    min-height: calc(100vh - var(--header-height, 6.5rem)) !important;
    height: calc(100vh - var(--header-height, 6.5rem)) !important;
    aspect-ratio: unset !important;
    box-sizing: border-box;
    align-items: flex-end;
    margin-top: 0 !important;
    margin-bottom: 0;
  }
  .is-frontend .wp-block-cover:has(.p-news) > .wp-block-cover__inner-container > .wp-block-spacer {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .is-frontend .wp-block-cover:has(.p-news) {
    min-height: calc(100svh - var(--header-height, 6.5rem)) !important;
    height: calc(100svh - var(--header-height, 6.5rem));
    aspect-ratio: unset !important;
    align-items: flex-end;
    padding-bottom: 20px !important;
  }
  .is-frontend .wp-block-cover:has(.p-news) > .wp-block-cover__inner-container > .wp-block-spacer {
    display: none;
  }
  .is-frontend .wp-block-cover:has(.p-news) .p-news {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}
.is-frontend .wp-block-cover:has(.p-fv-slider) {
  overflow: hidden;
}
.is-frontend .wp-block-cover:has(.p-fv-slider) > .wp-block-cover__image-background {
  visibility: hidden;
}
.is-frontend .wp-block-cover:has(.p-fv-slider) > .wp-block-cover__background,
.is-frontend .wp-block-cover:has(.p-fv-slider) > .wp-block-cover__inner-container {
  z-index: 1;
}
.is-frontend .p-fv-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.is-frontend .p-fv-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity var(--fv-fade, 2000ms) cubic-bezier(0.45, 0, 0.55, 1);
}
.is-frontend .p-fv-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.is-frontend .p-fv-slider__slide.is-active {
  opacity: 1;
  z-index: 1;
}
.is-frontend .wp-block-cover .wp-block-group {
  width: clamp(18.75rem, 45%, 46.88rem);
  display: flex;
  justify-self: right;
  flex-direction: column;
}
@media screen and (max-width: 768px) {
  .is-frontend .wp-block-cover .wp-block-group {
    width: 100%;
  }
}
@media screen and (max-width: 480px) {
  .is-frontend .wp-block-cover .wp-block-group {
    justify-self: center;
  }
}

/* ==========================================================================
   Main Layout
   ========================================================================== */
/**
 * メインコンテンツエリアのレイアウト
 */
/* ==========================================================================
   Sidebar Layout
   ========================================================================== */
/**
 * サイドバーエリアのレイアウト
 */
.c-more {
  margin: 0.5rem auto 0;
  width: clamp(720px, 55%, 50rem);
}
@media screen and (max-width: 768px) {
  .c-more {
    width: 65%;
  }
}
@media screen and (max-width: 480px) {
  .c-more {
    width: 80%;
  }
}
.c-more a {
  cursor: pointer;
  width: fit-content;
  display: block;
  padding: 5px 20px;
  border-radius: 20px;
  border: 1px solid #3e3e3e;
  text-decoration: none;
}
.c-more a:hover {
  background-color: #3e3e3e;
  color: #ffffff;
  transition: all 0.3s ease-out;
}
.c-more a:hover a {
  color: #ffffff;
}

.c-width {
  width: clamp(720px, 55%, 50rem);
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .c-width {
    width: 65%;
  }
}
@media screen and (max-width: 480px) {
  .c-width {
    width: 80%;
  }
}

.c-text__red {
  color: #dd4040;
}
.c-text__size--small {
  font-size: 0.73rem;
}

.c-title {
  display: flex !important;
  justify-self: left !important;
  flex-direction: column !important;
}

li a {
  height: auto;
  text-decoration: none;
  position: relative;
  display: inline;
  background-image: linear-gradient(#3e3e3e, #3e3e3e);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 1s ease;
  position: relative;
  font-weight: 400;
  font-size: 1rem;
}
li a:hover {
  background-size: 100% 1px;
}
@media (min-width: 600px) {
  li {
    width: 100%;
  }
}

.author .wp-site-blocks,
.category .wp-site-blocks,
.post-type-archive-advertisement .wp-site-blocks,
.post-type-archive-paper .wp-site-blocks {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
.author header.wp-block-template-part,
.category header.wp-block-template-part,
.post-type-archive-advertisement header.wp-block-template-part,
.post-type-archive-paper header.wp-block-template-part {
  grid-row: 1/2;
}
.author main,
.category main,
.post-type-archive-advertisement main,
.post-type-archive-paper main {
  grid-row: 2/3;
}
.author footer .wp-block-template-part,
.category footer .wp-block-template-part,
.post-type-archive-advertisement footer .wp-block-template-part,
.post-type-archive-paper footer .wp-block-template-part {
  grid-row: 3/4;
}

.p-posts.is-grid.columns-4, .p-posts.is-layout-grid.columns-4 {
  display: grid !important;
  margin: 0 auto;
  padding: 0 !important;
  list-style: none;
  grid-template-columns: 1fr 1fr 1fr 1fr !important;
  grid-gap: 2rem;
  width: clamp(720px, 55%, 50rem);
}
@media screen and (max-width: 768px) {
  .p-posts.is-grid.columns-4, .p-posts.is-layout-grid.columns-4 {
    grid-template-columns: 1fr 1fr !important;
    width: 65%;
    grid-gap: 3rem;
  }
}
@media screen and (max-width: 480px) {
  .p-posts.is-grid.columns-4, .p-posts.is-layout-grid.columns-4 {
    grid-template-columns: 1fr !important;
    width: 80%;
  }
}
.p-posts.is-grid.columns-4 > li, .p-posts.is-layout-grid.columns-4 > li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}
.p-posts.columns-4 li a.wp-block-latest-posts__post-title {
  height: auto;
  text-decoration: none;
  position: relative;
  display: inline;
  background-image: linear-gradient(#3e3e3e, #3e3e3e);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 1s ease;
  font-weight: 400;
  font-size: 1rem;
}
.p-posts.columns-4 li a.wp-block-latest-posts__post-title:hover {
  background-size: 100% 1px;
}

.wp-block-latest-posts__post-title {
  margin: 0;
  text-decoration: none;
  display: inline-block;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.wp-block-latest-posts__featured-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: pointer;
}
.wp-block-latest-posts__featured-image:not(:has(img)) {
  display: none;
}
.wp-block-latest-posts__featured-image a,
.wp-block-latest-posts__featured-image a:hover {
  display: contents;
  background-image: none;
  background-size: 0;
}
.wp-block-latest-posts__featured-image a:empty {
  display: none !important;
}
.wp-block-latest-posts__featured-image:hover {
  transform: scale(1.1);
  transition: all 0.3s ease-out;
}
.wp-block-latest-posts__featured-image img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.home .wp-block-query > ul {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: clamp(720px, 55%, 50rem);
  grid-column-gap: 2rem;
  grid-row-gap: 1rem;
}
@media screen and (max-width: 768px) {
  .home .wp-block-query > ul {
    width: 65%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 480px) {
  .home .wp-block-query > ul {
    width: 80%;
  }
}
.home .wp-block-query > ul img {
  cursor: pointer;
}
.home .wp-block-query > ul img:hover {
  transform: scale(1.1);
  transition: all 0.3s ease-out;
}
.home .wp-block-query .wp-block-post-featured-image {
  aspect-ratio: 3/4;
  margin-bottom: 1rem;
}
.home .wp-block-query .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-logo {
  width: clamp(720px, 55%, 50rem);
  margin: 0 auto;
  grid-row-gap: 2rem;
  grid-column-gap: 1rem;
  white-space: nowrap;
}
@media screen and (min-width: 769px) {
  .p-logo > p {
    min-height: 70px;
    box-sizing: border-box;
  }
}
@media screen and (max-width: 768px) {
  .p-logo {
    width: 86%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 0.875rem;
    white-space: normal;
  }
  .p-logo > p {
    margin: 0;
    line-height: 1.5 !important;
    text-align: center;
    font-size: clamp(0.8125rem, 0.8rem + 0.5vw, 0.875rem);
    letter-spacing: 0.03em;
    padding: 0.75rem 0.5rem;
    min-height: 2.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(62, 62, 62, 0.1);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.55);
    box-sizing: border-box;
    word-break: break-word;
  }
}
@media screen and (max-width: 480px) {
  .p-logo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem 0.75rem;
    width: 92%;
  }
  .p-logo > p {
    min-height: 2.75rem;
    padding: 0.625rem 0.5rem;
  }
}

html:not(:lang(ja)) .p-logo,
html.translated-ltr .p-logo,
html[lang^=en] .p-logo {
  white-space: normal;
}
html:not(:lang(ja)) .p-logo > p,
html.translated-ltr .p-logo > p,
html[lang^=en] .p-logo > p {
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.5 !important;
}

@media screen and (max-width: 768px) {
  #partner.wp-block-group .wp-block-heading.has-m-plus-1-p-font-family {
    margin-bottom: 0.35rem;
  }
  #partner.wp-block-group .wp-block-heading + .wp-block-heading {
    margin-top: 0;
    font-size: clamp(1rem, 0.92rem + 0.6vw, 1.35rem) !important;
    font-weight: 400;
    letter-spacing: 0.12em;
  }
}
@media screen and (max-width: 768px) {
  .wp-container-core-group-is-layout-c3f67ce3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 480px) {
  .wp-container-core-group-is-layout-c3f67ce3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

header nav {
  width: 100%;
  max-width: 100%;
  line-height: 1.3;
}
@media screen and (max-width: 768px) {
  header nav {
    width: auto;
    margin: 0 auto !important;
  }
}
@media screen and (max-width: 600px) {
  header nav {
    line-height: 2;
    margin: 0 !important;
  }
}
header nav ul {
  font-size: clamp(14px, 0.875rem + (1vw - 3.2px) * 0.156, 16px);
  display: flex !important;
  padding-right: 0% !important;
  white-space: nowrap;
  gap: 1rem !important;
  flex-grow: unset !important;
}
@media screen and (min-width: 600px) and (max-width: 768px) {
  header nav.wp-block-navigation.items-justified-right {
    --navigation-layout-justification-setting: center;
    --navigation-layout-justify: center;
  }
}
header .wp-block-navigation__responsive-container-content {
  margin-bottom: 0;
}
header .wp-block-navigation__responsive-dialog {
  padding-right: 1.25rem !important;
}
@media screen and (max-width: 768px) {
  header .wp-block-navigation__responsive-dialog {
    padding-right: 0 !important;
  }
}
header {
  /* 600px以上：サブメニューもメインと同じ左→右の下線ホバー（テキスト幅のみ） */
}
@media (min-width: 600px) {
  header .wp-block-navigation__submenu-container > .wp-block-navigation-item {
    width: auto;
    padding-inline: 1rem;
    box-sizing: border-box;
  }
  header .wp-block-navigation__submenu-container > .wp-block-navigation-item > a.wp-block-navigation-item__content {
    height: auto;
    text-decoration: none;
    position: relative;
    display: inline !important;
    width: max-content !important;
    max-width: 100%;
    padding-inline: 0 !important;
    padding-top: 0.35em;
    padding-bottom: 0.5em;
    line-height: 1.35;
    background-image: linear-gradient(#3e3e3e, #3e3e3e);
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: 0 calc(100% - 0.5em);
    transition: background-size 1s ease;
  }
  header .wp-block-navigation__submenu-container > .wp-block-navigation-item > a.wp-block-navigation-item__content:hover {
    background-image: linear-gradient(#3e3e3e, #3e3e3e);
    background-size: 100% 1px;
    background-position: 0 calc(100% - 0.5em);
  }
}
header .wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container {
  left: auto;
  right: 0;
}
header .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
  border: none;
}
header .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container, header .wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container {
  width: fit-content;
  min-width: auto;
}
header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
  padding-block: 0.625rem;
}
header {
  /* PC：ホバーで表示 */
}
@media (min-width: 600px) {
  header .wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container {
    display: block;
  }
}
header {
  /* スマホ／ドロワー */
}
@media screen and (max-width: 600px) {
  header .wp-block-navigation__responsive-container {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background-color: transparent !important;
    transform: none;
    animation: none !important;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }
  header .wp-block-navigation__responsive-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    clip-path: circle(0 at calc(100% - 1.75rem) 1.75rem);
    transition: clip-path 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  header .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-close {
    opacity: 1;
  }
  header .wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  header .wp-block-navigation__responsive-container.is-menu-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  header .wp-block-navigation__responsive-container.is-menu-open::before {
    clip-path: circle(150% at calc(100% - 1.75rem) 1.75rem);
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item {
    opacity: 1;
    transform: none;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:nth-child(1) {
    transition-delay: 0.14s;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:nth-child(2) {
    transition-delay: 0.195s;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:nth-child(3) {
    transition-delay: 0.25s;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) {
    transition-delay: 0.305s;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5) {
    transition-delay: 0.36s;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:nth-child(6) {
    transition-delay: 0.415s;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:nth-child(7) {
    transition-delay: 0.47s;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:nth-child(8) {
    transition-delay: 0.525s;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:nth-child(9) {
    transition-delay: 0.58s;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:nth-child(10) {
    transition-delay: 0.635s;
  }
}
@media screen and (max-width: 600px) and (prefers-reduced-motion: reduce) {
  header .wp-block-navigation__responsive-container,
  header .wp-block-navigation__responsive-container .wp-block-navigation-item,
  header .wp-block-navigation__responsive-container::before {
    transition: none !important;
    transform: none !important;
    clip-path: none !important;
  }
}
@media screen and (max-width: 600px) {
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 5.5rem !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: left;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    align-items: stretch !important;
    justify-content: center !important;
    width: min(18rem, 80vw);
    max-width: 100%;
    margin-inline: auto;
    gap: 1.25rem !important;
    white-space: normal !important;
    flex-direction: column !important;
    text-align: left;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    text-align: left;
    box-sizing: border-box;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item > a.wp-block-navigation-item__content {
    width: 100%;
    text-align: left !important;
    justify-content: flex-start !important;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item.has-child > a.wp-block-navigation-item__content {
    padding-right: 0 !important;
    min-width: 0;
  }
  header .wp-block-navigation__responsive-container.is-menu-open {
    /* 全項目見えるのでくの字トグルは不要 */
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon,
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
    display: none !important;
  }
  header .wp-block-navigation__responsive-container.is-menu-open {
    /* サブメニューは常時表示＋頭を一段下げて階層を示す */
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    border: none !important;
    padding: 0.35rem 0 0 1.25rem !important;
    margin: 0 !important;
    pointer-events: auto;
    text-align: left;
    gap: 0.35rem !important;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item {
    display: block !important;
    width: 100%;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
    padding: 0.2rem 0 !important;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    font-size: 0.95em;
    opacity: 0.9;
  }
}

.p-query .p-query__books-item:nth-of-type(n + 9) {
  display: none;
}

/* トップページのクエリーループ内だけに限定 */
.wp-block-query .wp-block-gallery figure:nth-of-type(n + 4) {
  display: none;
}

.p-project {
  gap: min(3.3333333333vw, 3rem);
}
.p-project > .wp-block-cover {
  width: 100%;
  aspect-ratio: 1/1;
  min-height: unset;
}
@media screen and (max-width: 768px) {
  .p-project > .wp-block-cover {
    aspect-ratio: 5/3;
  }
}
.p-project .wp-block-cover__inner-container {
  position: relative;
  width: 100%;
  height: 100%;
  top: 0;
}
@media screen and (max-width: 480px) {
  .p-project .wp-block-cover__inner-container {
    top: -20px;
  }
}
.p-project .wp-block-cover__inner-container .wp-block-heading {
  width: 100%;
  max-width: none;
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, 0);
  white-space: nowrap;
}
.p-project p {
  width: max-content;
  max-width: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0);
  word-break: normal;
}
@media screen and (max-width: 768px) {
  .p-project p {
    top: 47%;
  }
}

html.translated-ltr .p-project .wp-block-cover__inner-container,
html[lang^=en]:not(:lang(ja)) .p-project .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.625rem, 2.5vw, 1rem);
  padding: clamp(0.5rem, 2vw, 1rem);
  box-sizing: border-box;
}
html.translated-ltr .p-project .wp-block-cover__inner-container .wp-block-heading,
html.translated-ltr .p-project .wp-block-cover__inner-container p,
html[lang^=en]:not(:lang(ja)) .p-project .wp-block-cover__inner-container .wp-block-heading,
html[lang^=en]:not(:lang(ja)) .p-project .wp-block-cover__inner-container p {
  position: static;
  top: auto;
  left: auto;
  transform: none;
  width: auto;
  max-width: calc(100% - 1rem);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center;
  box-sizing: border-box;
  margin: 0;
}
html.translated-ltr .p-project .wp-block-cover__inner-container p,
html[lang^=en]:not(:lang(ja)) .p-project .wp-block-cover__inner-container p {
  line-height: 1.5;
}
html.translated-ltr .p-project .wp-block-cover__inner-container p:empty,
html[lang^=en]:not(:lang(ja)) .p-project .wp-block-cover__inner-container p:empty {
  display: none;
}
@media screen and (max-width: 480px) {
  html.translated-ltr .p-project .wp-block-cover__inner-container,
  html[lang^=en]:not(:lang(ja)) .p-project .wp-block-cover__inner-container {
    top: 0;
  }
}

@media screen and (max-width: 768px) {
  .wp-container-core-group-is-layout-80b83375 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.p-profile {
  width: clamp(720px, 55%, 50rem);
  margin: 0 auto;
}
@media screen and (min-width: 769px) {
  .p-profile {
    position: relative;
  }
  .p-profile__figcaption {
    position: relative;
  }
  .p-profile__grow {
    display: block;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
@media screen and (max-width: 768px) {
  .p-profile {
    width: 65%;
    position: relative;
    display: grid !important;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-row-gap: 4rem;
    justify-items: center;
    align-items: start;
  }
}
@media screen and (max-width: 480px) {
  .p-profile {
    width: 80%;
  }
}
.p-profile__figcaption {
  display: flex;
  gap: 20px;
  max-width: none;
}
.p-profile__figcaption > figure {
  flex: 1;
  position: relative;
  left: 1rem;
}
.p-profile__figcaption > figure > img {
  width: 100%;
  height: clamp(300px, 80vw, 650px);
  object-fit: cover;
}
@media screen and (max-width: 768px) {
  .p-profile__figcaption {
    --wp--style--global--content-size: 100%;
    --wp--style--global--wide-size: 100%;
    display: block;
    width: 100%;
    grid-row: 2;
  }
  .p-profile__figcaption > figure {
    display: none;
  }
}
.p-profile__textarea {
  flex: 1;
  width: 23rem;
  height: 100;
  position: absolute;
  right: 0;
  top: 4vw;
  background-color: rgba(253, 253, 253, 0.631372549);
  padding: 1rem 0.5rem;
  box-shadow: 5px 4px 7px rgba(0, 0, 0, 0.168627451);
  word-break: break-word;
  overflow-wrap: anywhere;
}
@media screen and (max-width: 768px) {
  .p-profile__textarea {
    position: static;
    top: auto;
    right: auto;
    text-align: center;
    box-shadow: none;
    width: 100%;
  }
  .p-profile__textarea > p {
    text-align: left;
  }
}
.p-profile__photo {
  position: absolute;
  left: 0;
  width: 16rem;
  bottom: -1vw;
}
@media screen and (max-width: 768px) {
  .p-profile__photo {
    grid-row: 1;
    position: static;
    left: auto;
    bottom: auto;
    justify-self: center;
    align-self: center;
    margin-left: auto !important;
    --wp--style--global--content-size: fit-content;
    --wp--style--global--wide-size: fit-content;
  }
  .p-profile__photo > img {
    aspect-ratio: 1/1 !important;
  }
}

@media screen and (min-width: 769px) {
  .p-profile {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto auto auto 1fr auto auto auto auto;
    column-gap: 3rem;
  }
  .p-profile__figcaption, .p-profile__textarea {
    display: contents;
  }
  .p-profile__figcaption > figure {
    display: none;
  }
  .p-profile__textarea > * {
    grid-column: 1/-1;
    max-width: none !important;
    margin: 0 !important;
  }
  .p-profile__textarea > :nth-child(1) {
    grid-column: 2;
    grid-row: 2;
  }
  .p-profile__textarea > :nth-child(2) {
    grid-column: 2;
    grid-row: 3;
  }
  .p-profile__textarea > :nth-child(3) {
    grid-column: 2;
    grid-row: 4;
  }
  .p-profile__textarea > :nth-child(4) {
    grid-row: 6;
  }
  .p-profile__textarea > :nth-child(5) {
    grid-row: 7;
  }
  .p-profile__textarea > :nth-child(6) {
    grid-row: 8;
  }
  .p-profile__textarea > :nth-child(7) {
    grid-row: 9;
  }
  .p-profile__photo {
    grid-column: 1;
    grid-row: 1/6;
    position: static;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
  }
  .p-profile__photo > img {
    width: 100%;
    aspect-ratio: 1/1 !important;
  }
}
.p-footer {
  width: clamp(720px, 80%, 100rem);
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .p-footer {
    width: 80%;
    display: block;
  }
}
@media screen and (max-width: 768px) {
  .p-footer div {
    width: 100%;
  }
}
@media screen and (max-width: 768px) {
  .p-footer > .is-content-justification-right {
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    margin: 0 auto;
    gap: 0;
  }
}
.p-footer > .is-content-justification-right > div { /*Pages*/ }
@media screen and (max-width: 768px) {
  .p-footer > .is-content-justification-right > div {
    justify-self: left;
  }
}
@media screen and (max-width: 768px) {
  .p-footer > .is-content-justification-right > div:last-child {
    padding-left: 30%;
  }
}
.p-footer__address {
  max-width: none;
  align-items: flex-start;
}
@media screen and (max-width: 768px) {
  .p-footer__address {
    display: grid;
    margin: 0 auto;
    width: 100%;
  }
}
@media screen and (max-width: 768px) {
  .p-footer__address > h1 {
    margin-top: 1rem;
  }
}
.p-footer__address .wp-block-site-title {
  width: fit-content;
}
.p-footer__address .wp-block-site-title a {
  text-decoration: none;
  position: relative;
  display: inline;
  background-image: linear-gradient(#3e3e3e, #3e3e3e), linear-gradient(#3e3e3e, #3e3e3e);
  background-repeat: no-repeat;
  background-size: 100% 1px, 0 2px;
  background-position: 0 100%, 0 100%;
  transition: background-size 1s ease;
}
.p-footer__address .wp-block-site-title a:hover {
  background-size: 100% 1px, 100% 2px;
}
.p-footer__address > div {
  gap: 2rem;
  align-items: start;
}
@media screen and (max-width: 768px) {
  .p-footer__address > div {
    width: 100%;
    display: grid;
    grid-template-columns: 50% 50%;
    justify-items: center;
    gap: 0;
  }
}
@media screen and (max-width: 768px) {
  .p-footer__address > div > div {
    justify-self: left;
  }
}
@media screen and (max-width: 768px) {
  .p-footer__address > div > div:last-child {
    padding-left: 30%;
  }
}
.p-footer__address p {
  max-width: none;
}

footer .wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
  padding: 0.2em 0;
  margin-left: 1rem;
}
footer .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
  background-color: unset;
  border: unset;
}
footer .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true] ~ .wp-block-navigation__submenu-container {
  min-width: auto;
  white-space: nowrap;
}
footer .wp-block-navigation .has-child {
  flex-wrap: wrap;
}
footer .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  position: static;
  flex-basis: 100%;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding-bottom: 0;
  transition: none;
}
footer .wp-block-navigation .has-child .wp-block-navigation__submenu-icon {
  display: none;
}
footer a {
  cursor: pointer;
}
footer .wp-container-core-group-is-layout-35d1f3ed {
  gap: 50px;
}
footer .wp-block-navigation-item__label {
  font-size: 1rem;
}
footer .p-footer .has-m-plus-1-p-font-family a:where(:not(.wp-element-button)) {
  height: auto;
  text-decoration: none;
  position: relative;
  display: inline;
  background-image: linear-gradient(#3e3e3e, #3e3e3e);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 1s ease;
  font-weight: 400;
  font-size: 1rem;
}
footer .p-footer .has-m-plus-1-p-font-family a:where(:not(.wp-element-button)):hover {
  background-size: 100% 1px;
}
footer .wp-container-core-group-is-layout-fe9cc265 .wp-block-group-is-layout-flex {
  gap: 0.5rem;
}

/* ヘッダー本体は流す。背景はページ先頭の見た目用 */
.wp-site-blocks > .wp-block-template-part:has(.site-header) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding-right: 0 !important;
  background-color: rgba(255, 255, 255, 0.5);
}

.js-nav-placeholder {
  display: none;
  flex-shrink: 0;
  pointer-events: none;
  visibility: hidden;
}

/* スクロール後：ナビだけ画面上端に固定（見た目は変えない） */
header.site-header nav.is-nav-fixed,
header nav.is-nav-fixed {
  position: fixed;
  top: 0;
  z-index: 9999;
  height: auto !important;
  overflow: visible;
  background-color: rgba(255, 255, 255, 0.5);
}

header.site-header,
header {
  display: block !important;
}
@media screen and (max-width: 768px) {
  header.site-header,
  header {
    display: flex !important;
    width: 100%;
  }
}
@media screen and (max-width: 600px) {
  header.site-header,
  header {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    width: 100%;
    position: relative;
  }
}
@media screen and (max-width: 480px) {
  header.site-header,
  header {
    width: 100%;
  }
}
@media screen and (max-width: 600px) {
  header.site-header .c-title.alignfull,
  header.site-header .c-title,
  header .c-title.alignfull,
  header .c-title {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 3.5rem);
    width: auto !important;
    margin-inline: 0 !important;
  }
  header.site-header .c-title.alignfull > h1.wp-block-heading,
  header.site-header .c-title > h1.wp-block-heading,
  header .c-title.alignfull > h1.wp-block-heading,
  header .c-title > h1.wp-block-heading {
    white-space: nowrap;
    padding-left: 0 !important;
    line-height: 1.15;
  }
  header.site-header .c-title.alignfull > h1.wp-block-heading:first-child,
  header.site-header .c-title > h1.wp-block-heading:first-child,
  header .c-title.alignfull > h1.wp-block-heading:first-child,
  header .c-title > h1.wp-block-heading:first-child {
    font-size: clamp(1.15rem, 5.2vw, 1.75rem) !important;
  }
  header.site-header .c-title.alignfull > h1.wp-block-heading:last-child,
  header.site-header .c-title > h1.wp-block-heading:last-child,
  header .c-title.alignfull > h1.wp-block-heading:last-child,
  header .c-title > h1.wp-block-heading:last-child {
    font-size: clamp(0.95rem, 4.2vw, 1.25rem) !important;
  }
}
@media screen and (min-width: 769px) {
  header.site-header nav,
  header nav {
    margin-right: 4rem;
  }
}
@media screen and (max-width: 600px) {
  header.site-header nav,
  header nav {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    margin-left: auto !important;
    padding: 0 !important;
    align-self: flex-start;
    position: relative;
    z-index: 100002;
  }
}
@media screen and (max-width: 600px) {
  header.site-header .wp-block-navigation__responsive-container-open,
  header .wp-block-navigation__responsive-container-open {
    position: relative;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0.5rem 0 0;
    padding: 0;
    transition: margin-top 0.2s ease;
  }
}
header.site-header .wp-block-navigation__responsive-container-open svg,
header .wp-block-navigation__responsive-container-open svg {
  width: 20px;
  height: 20px;
}
header.site-header .wp-block-navigation__responsive-container-open,
header .wp-block-navigation__responsive-container-open {
  /* メニュー開時はばつと重ならないよう非表示 */
}
header.site-header .wp-block-navigation__responsive-container-open[aria-expanded=true],
header .wp-block-navigation__responsive-container-open[aria-expanded=true] {
  visibility: hidden !important;
  pointer-events: none !important;
}
header.site-header:has(.wp-block-navigation__responsive-container.is-menu-open) .wp-block-navigation__responsive-container-open,
header:has(.wp-block-navigation__responsive-container.is-menu-open) .wp-block-navigation__responsive-container-open {
  visibility: hidden !important;
  pointer-events: none !important;
}
header.site-header,
header {
  /* ばつボタンもハンバーガーと同じ見た目サイズに */
}
header.site-header .wp-block-navigation__responsive-container-close,
header .wp-block-navigation__responsive-container-close {
  position: fixed;
  z-index: 100003;
  display: flex;
  align-items: center;
  justify-content: center;
}
header.site-header .wp-block-navigation__responsive-container-close svg,
header .wp-block-navigation__responsive-container-close svg {
  width: 48px;
  height: 48px;
}
@media screen and (max-width: 600px) {
  header.site-header .wp-block-navigation__responsive-container-close svg,
  header .wp-block-navigation__responsive-container-close svg {
    width: 20px;
    height: 20px;
  }
}
header.site-header rect,
header rect {
  width: 32px;
}
@media screen and (min-width: 769px) {
  header.site-header .c-title,
  header .c-title {
    margin-bottom: -0.625rem;
  }
}
@media screen and (max-width: 768px) {
  header.site-header .c-title,
  header .c-title {
    margin: 0.8rem 0 !important;
  }
}
@media screen and (max-width: 768px) {
  header.site-header .c-title > h1,
  header .c-title > h1 {
    padding-left: 0 !important;
    padding-top: 0 !important;
  }
}
header.site-header .c-title a,
header .c-title a {
  height: auto;
  text-decoration: none;
  position: relative;
  display: inline;
  background-image: linear-gradient(#3e3e3e, #3e3e3e);
  background-repeat: no-repeat;
  background-size: 0% 4px;
  background-position: 0 100%;
  transition: background-size 1s ease;
  position: relative;
}
@media screen and (max-width: 480px) {
  header.site-header .c-title a,
  header .c-title a {
    font-size: 6vw;
  }
}
header.site-header .c-title a:hover,
header .c-title a:hover {
  background-size: 100% 4px;
}

/* 600px以下：スクロール開始後はハンバーガーの上余白を消す */
@media screen and (max-width: 600px) {
  html.is-scrolled-sp header.site-header .wp-block-navigation__responsive-container-open,
  html.is-scrolled-sp header .wp-block-navigation__responsive-container-open {
    margin-top: 0;
  }
}
@media screen and (max-width: 767px) {
  header.site-header {
    padding-inline: 1rem !important;
    margin: 0;
  }
}
@media screen and (min-width: 600px) and (max-width: 768px) {
  header.site-header {
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }
  header.site-header .c-title {
    flex: 1 1 100%;
    width: 100%;
  }
  header.site-header nav {
    flex: 1 1 100% !important;
    box-sizing: border-box;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-inline: calc(50% - 50vw) !important;
    padding-inline: 0 !important;
  }
  header.site-header nav.is-nav-fixed {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

@media screen and (max-width: 768px) {
  .gt_float_switcher .gt-selected .gt-current-lang img {
    width: 18px !important;
    height: auto;
  }
  .gt_float_switcher .gt-selected .gt-current-lang .gt-lang-code {
    font-size: 16px !important;
  }
  .gt_float_switcher .gt-selected .gt-current-lang .gt_float_switcher-arrow {
    height: 10px !important;
    width: 10px;
    background-size: 8px;
  }
}
.p-news {
  backdrop-filter: blur(2.3px) saturate(156%);
  -webkit-backdrop-filter: blur(5px) saturate(156%);
  background-color: rgba(255, 255, 255, 0.66);
  border-radius: 12px;
  border: 1px solid rgba(209, 213, 219, 0.3);
}
@media screen and (max-width: 768px) {
  .p-news {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
.p-news .wp-block-query > ul {
  display: block;
}
@media screen and (max-width: 768px) {
  .p-news .wp-block-query > ul {
    width: 100%;
  }
}
.p-news .c-more {
  width: 100% !important;
  max-width: 100%;
  margin: 0.5rem 0 0;
  box-sizing: border-box;
}
.p-news a {
  background-size: 0% 2px;
}
.p-news a:hover {
  background-size: 100% 2px;
}

.wpcf7-list-item {
  margin-left: 0;
}
.wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media screen and (max-width: 768px) {
  .wpcf7-list-item label {
    align-items: flex-start;
  }
}
.wpcf7-list-item label input {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.is-style-width__contact {
  width: clamp(720px, 55%, 50rem);
  max-width: 100%;
  margin: 0 auto;
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
}
.is-style-width__contact > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none;
}
.is-style-width__contact form {
  margin: 0 auto;
  font-size: 1.125rem;
}
.is-style-width__contact label,
.is-style-width__contact .c-validation {
  font-size: 1.125rem;
}
.is-style-width__contact input:not([type=checkbox]):not([type=submit]),
.is-style-width__contact textarea {
  width: 100%;
  height: 2.25rem;
  padding: 0.4rem 0.6rem;
  font-size: 1.0625rem;
  box-sizing: border-box;
}
.is-style-width__contact input:not([type=checkbox]):not([type=submit])::placeholder,
.is-style-width__contact textarea::placeholder {
  font-size: 1.0625rem;
}
.is-style-width__contact textarea {
  height: auto;
  min-height: 8.5rem;
}
.is-style-width__contact p {
  margin: 1rem 0 0;
}
.is-style-width__contact .wpcf7-form-control-wrap {
  display: block;
}
.is-style-width__contact .wpcf7-not-valid-tip {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  margin: 0.25rem 0 0;
  color: #dd4040;
}
.is-style-width__contact .wpcf7-response-output {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  margin: 0.75rem 0 0.25rem;
  padding: 0.4em 0;
  border-width: 0;
  color: #dd4040;
}
@media screen and (max-width: 768px) {
  .is-style-width__contact {
    width: 65%;
    --wp--style--global--content-size: 100%;
    --wp--style--global--wide-size: 100%;
  }
}
.is-style-width__contact .wpcf7-submit {
  margin: 5rem auto 0;
  display: block;
  cursor: pointer;
}

@media screen and (max-width: 768px) {
  .is-style-sp-none {
    height: 0 !important;
  }
}

.p-contact__consent .p-contact__consent-note {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  padding-left: 2em;
}

.p-contact__submit .wpcf7-submit {
  width: 6.5rem;
  height: 2.5rem;
  -webkit-appearance: none;
  appearance: none;
  background-color: #3e3e3e;
  color: #ffffff;
  border: 1px solid #3e3e3e;
  border-radius: 2px;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.p-contact__submit .wpcf7-submit:hover {
  opacity: 0.7;
}

.author .wp-site-blocks,
.category .wp-site-blocks,
.post-type-archive-advertisement .wp-site-blocks,
.post-type-archive-paper .wp-site-blocks {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
.author header.wp-block-template-part,
.category header.wp-block-template-part,
.post-type-archive-advertisement header.wp-block-template-part,
.post-type-archive-paper header.wp-block-template-part {
  grid-row: 1/2;
}
.author main,
.author .wp-site-blocks > .wp-block-group.is-layout-constrained,
.category main,
.category .wp-site-blocks > .wp-block-group.is-layout-constrained,
.post-type-archive-advertisement main,
.post-type-archive-advertisement .wp-site-blocks > .wp-block-group.is-layout-constrained,
.post-type-archive-paper main,
.post-type-archive-paper .wp-site-blocks > .wp-block-group.is-layout-constrained {
  grid-row: 2/3;
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
}
.author main > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.author .wp-site-blocks > .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.category main > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.category .wp-site-blocks > .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.post-type-archive-advertisement main > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.post-type-archive-advertisement .wp-site-blocks > .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.post-type-archive-paper main > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.post-type-archive-paper .wp-site-blocks > .wp-block-group.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
}
.author footer .wp-block-template-part,
.author footer.wp-block-template-part,
.category footer .wp-block-template-part,
.category footer.wp-block-template-part,
.post-type-archive-advertisement footer .wp-block-template-part,
.post-type-archive-advertisement footer.wp-block-template-part,
.post-type-archive-paper footer .wp-block-template-part,
.post-type-archive-paper footer.wp-block-template-part {
  grid-row: 3/4;
}
.author .wp-block-heading.has-text-align-center,
.category .wp-block-heading.has-text-align-center,
.post-type-archive-advertisement .wp-block-heading.has-text-align-center,
.post-type-archive-paper .wp-block-heading.has-text-align-center {
  margin-left: auto;
  margin-right: auto;
}
.author .wp-block-query,
.category .wp-block-query,
.post-type-archive-advertisement .wp-block-query,
.post-type-archive-paper .wp-block-query {
  font-size: 1rem;
}
.author .wp-block-post-template,
.author .wp-block-post-template.columns-4,
.author .wp-block-query > ul,
.author .wp-block-query ul.columns-4,
.category .wp-block-post-template,
.category .wp-block-post-template.columns-4,
.category .wp-block-query > ul,
.category .wp-block-query ul.columns-4,
.post-type-archive-advertisement .wp-block-post-template,
.post-type-archive-advertisement .wp-block-post-template.columns-4,
.post-type-archive-advertisement .wp-block-query > ul,
.post-type-archive-advertisement .wp-block-query ul.columns-4,
.post-type-archive-paper .wp-block-post-template,
.post-type-archive-paper .wp-block-post-template.columns-4,
.post-type-archive-paper .wp-block-query > ul,
.post-type-archive-paper .wp-block-query ul.columns-4 {
  display: grid !important;
  margin: 0 auto;
  padding: 0 !important;
  list-style: none;
  grid-template-columns: 1fr 1fr 1fr 1fr !important;
  grid-gap: 2rem;
  width: clamp(720px, 55%, 50rem);
  max-width: 100%;
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  .author .wp-block-post-template,
  .author .wp-block-post-template.columns-4,
  .author .wp-block-query > ul,
  .author .wp-block-query ul.columns-4,
  .category .wp-block-post-template,
  .category .wp-block-post-template.columns-4,
  .category .wp-block-query > ul,
  .category .wp-block-query ul.columns-4,
  .post-type-archive-advertisement .wp-block-post-template,
  .post-type-archive-advertisement .wp-block-post-template.columns-4,
  .post-type-archive-advertisement .wp-block-query > ul,
  .post-type-archive-advertisement .wp-block-query ul.columns-4,
  .post-type-archive-paper .wp-block-post-template,
  .post-type-archive-paper .wp-block-post-template.columns-4,
  .post-type-archive-paper .wp-block-query > ul,
  .post-type-archive-paper .wp-block-query ul.columns-4 {
    grid-template-columns: 1fr 1fr !important;
    width: 86%;
    grid-gap: 3rem;
  }
}
@media screen and (max-width: 480px) {
  .author .wp-block-post-template,
  .author .wp-block-post-template.columns-4,
  .author .wp-block-query > ul,
  .author .wp-block-query ul.columns-4,
  .category .wp-block-post-template,
  .category .wp-block-post-template.columns-4,
  .category .wp-block-query > ul,
  .category .wp-block-query ul.columns-4,
  .post-type-archive-advertisement .wp-block-post-template,
  .post-type-archive-advertisement .wp-block-post-template.columns-4,
  .post-type-archive-advertisement .wp-block-query > ul,
  .post-type-archive-advertisement .wp-block-query ul.columns-4,
  .post-type-archive-paper .wp-block-post-template,
  .post-type-archive-paper .wp-block-post-template.columns-4,
  .post-type-archive-paper .wp-block-query > ul,
  .post-type-archive-paper .wp-block-query ul.columns-4 {
    grid-template-columns: 1fr !important;
    width: 92%;
  }
}
.author .wp-block-post,
.category .wp-block-post,
.post-type-archive-advertisement .wp-block-post,
.post-type-archive-paper .wp-block-post {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100% !important;
}
.author .wp-block-post > .wp-block-group,
.author .wp-block-post .wp-block-group.is-layout-grid,
.category .wp-block-post > .wp-block-group,
.category .wp-block-post .wp-block-group.is-layout-grid,
.post-type-archive-advertisement .wp-block-post > .wp-block-group,
.post-type-archive-advertisement .wp-block-post .wp-block-group.is-layout-grid,
.post-type-archive-paper .wp-block-post > .wp-block-group,
.post-type-archive-paper .wp-block-post .wp-block-group.is-layout-grid {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  width: 100%;
}
.author .wp-block-post .wp-block-group.is-vertical,
.category .wp-block-post .wp-block-group.is-vertical,
.post-type-archive-advertisement .wp-block-post .wp-block-group.is-vertical,
.post-type-archive-paper .wp-block-post .wp-block-group.is-vertical {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  width: 100%;
}
.author .wp-block-post a,
.category .wp-block-post a,
.post-type-archive-advertisement .wp-block-post a,
.post-type-archive-paper .wp-block-post a {
  height: auto;
  text-decoration: none;
  position: relative;
  display: inline;
  background-image: linear-gradient(#3e3e3e, #3e3e3e);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 1s ease;
  font-weight: 400;
  font-size: 1rem;
}
.author .wp-block-post a:hover,
.category .wp-block-post a:hover,
.post-type-archive-advertisement .wp-block-post a:hover,
.post-type-archive-paper .wp-block-post a:hover {
  background-size: 100% 1px;
}
.author .wp-block-post-title,
.category .wp-block-post-title,
.post-type-archive-advertisement .wp-block-post-title,
.post-type-archive-paper .wp-block-post-title {
  margin: 0;
  text-decoration: none;
  display: inline-block;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.author .c-more,
.category .c-more,
.post-type-archive-advertisement .c-more,
.post-type-archive-paper .c-more {
  margin-top: 3rem;
}
.author .wp-block-post-featured-image,
.category .wp-block-post-featured-image,
.post-type-archive-advertisement .wp-block-post-featured-image,
.post-type-archive-paper .wp-block-post-featured-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  margin: 0 0 1rem !important;
  cursor: pointer;
}
.author .wp-block-post-featured-image:not(:has(img)),
.category .wp-block-post-featured-image:not(:has(img)),
.post-type-archive-advertisement .wp-block-post-featured-image:not(:has(img)),
.post-type-archive-paper .wp-block-post-featured-image:not(:has(img)) {
  display: none;
}
.author .wp-block-post-featured-image a,
.author .wp-block-post-featured-image a:hover,
.category .wp-block-post-featured-image a,
.category .wp-block-post-featured-image a:hover,
.post-type-archive-advertisement .wp-block-post-featured-image a,
.post-type-archive-advertisement .wp-block-post-featured-image a:hover,
.post-type-archive-paper .wp-block-post-featured-image a,
.post-type-archive-paper .wp-block-post-featured-image a:hover {
  display: contents;
  background-image: none;
  background-size: 0;
}
.author .wp-block-post-featured-image a:empty,
.category .wp-block-post-featured-image a:empty,
.post-type-archive-advertisement .wp-block-post-featured-image a:empty,
.post-type-archive-paper .wp-block-post-featured-image a:empty {
  display: none !important;
}
.author .wp-block-post-featured-image:hover,
.category .wp-block-post-featured-image:hover,
.post-type-archive-advertisement .wp-block-post-featured-image:hover,
.post-type-archive-paper .wp-block-post-featured-image:hover {
  transform: scale(1.1);
  transition: all 0.3s ease-out;
}
.author .wp-block-post-featured-image img,
.category .wp-block-post-featured-image img,
.post-type-archive-advertisement .wp-block-post-featured-image img,
.post-type-archive-paper .wp-block-post-featured-image img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.home .p-ad-posts .wp-block-query {
  font-size: 1rem;
}
.home .p-ad-posts .wp-block-post-template,
.home .p-ad-posts .wp-block-post-template.columns-4,
.home .p-ad-posts .wp-block-query > ul,
.home .p-ad-posts .wp-block-query ul.columns-4 {
  display: grid !important;
  margin: 0 auto;
  padding: 0 !important;
  list-style: none;
  grid-template-columns: 1fr 1fr 1fr 1fr !important;
  grid-gap: 2rem;
  width: clamp(720px, 55%, 50rem);
  max-width: 100%;
  box-sizing: border-box;
}
@media screen and (max-width: 768px) {
  .home .p-ad-posts .wp-block-post-template,
  .home .p-ad-posts .wp-block-post-template.columns-4,
  .home .p-ad-posts .wp-block-query > ul,
  .home .p-ad-posts .wp-block-query ul.columns-4 {
    grid-template-columns: 1fr 1fr !important;
    width: 86%;
    grid-gap: 3rem;
  }
}
@media screen and (max-width: 480px) {
  .home .p-ad-posts .wp-block-post-template,
  .home .p-ad-posts .wp-block-post-template.columns-4,
  .home .p-ad-posts .wp-block-query > ul,
  .home .p-ad-posts .wp-block-query ul.columns-4 {
    grid-template-columns: 1fr !important;
    width: 92%;
  }
}
.home .p-ad-posts .wp-block-post {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100% !important;
}
.home .p-ad-posts .wp-block-post > .wp-block-group,
.home .p-ad-posts .wp-block-post .wp-block-group.is-layout-grid {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  width: 100%;
}
.home .p-ad-posts .wp-block-post .wp-block-group.is-vertical {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  width: 100%;
}
.home .p-ad-posts .wp-block-post a {
  height: auto;
  text-decoration: none;
  position: relative;
  display: inline;
  background-image: linear-gradient(#3e3e3e, #3e3e3e);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 1s ease;
  font-weight: 400;
  font-size: 1rem;
}
.home .p-ad-posts .wp-block-post a:hover {
  background-size: 100% 1px;
}
.home .p-ad-posts .wp-block-post-title {
  margin: 0;
  text-decoration: none;
  display: inline-block;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.home .p-ad-posts .c-more {
  margin-top: 3rem;
}
.home .p-ad-posts .wp-block-post-featured-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  margin: 0 0 1rem !important;
  cursor: pointer;
}
.home .p-ad-posts .wp-block-post-featured-image:not(:has(img)) {
  display: none;
}
.home .p-ad-posts .wp-block-post-featured-image a,
.home .p-ad-posts .wp-block-post-featured-image a:hover {
  display: contents;
  background-image: none;
  background-size: 0;
}
.home .p-ad-posts .wp-block-post-featured-image a:empty {
  display: none !important;
}
.home .p-ad-posts .wp-block-post-featured-image:hover {
  transform: scale(1.1);
  transition: all 0.3s ease-out;
}
.home .p-ad-posts .wp-block-post-featured-image img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.c-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 3rem;
  padding: 0;
  width: clamp(720px, 55%, 50rem);
  max-width: 100%;
  list-style: none;
}
@media screen and (max-width: 768px) {
  .c-filter {
    width: 65%;
  }
}
@media screen and (max-width: 480px) {
  .c-filter {
    width: 92%;
  }
}
.c-filter li {
  width: auto;
}
.c-filter a {
  cursor: pointer;
  display: block;
  padding: 5px 20px;
  border-radius: 20px;
  border: 1px solid #3e3e3e;
  color: #3e3e3e;
  font-size: 0.875rem;
  text-decoration: none;
  background-image: none;
  transition: background-color 0.3s ease-out, color 0.3s ease-out;
}
.c-filter a:hover, .c-filter a.is-active {
  background-image: none;
  background-size: auto;
  background-color: #3e3e3e;
  color: #ffffff;
}

.p-online-results {
  transition: opacity 0.3s ease-out;
}
.p-online-results.is-loading {
  opacity: 0.4;
  pointer-events: none;
}

.wp-pagenavi {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 3rem auto 0;
  font-size: 0.875rem;
}
.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  color: #3e3e3e;
  text-decoration: none;
}
.wp-pagenavi a:hover {
  text-decoration: underline;
}
.wp-pagenavi .current {
  border: 1px solid #3e3e3e;
}
.wp-pagenavi .extend {
  width: auto;
}

.p-online-note {
  margin: 2.5rem auto 0;
  padding: 0 1rem;
  font-size: 0.8125rem;
  color: #3e3e3e;
}
.p-online-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.p-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 2rem auto 0;
  padding: 0;
  width: clamp(720px, 55%, 50rem);
  list-style: none;
  font-size: 0.875rem;
}
@media screen and (max-width: 768px) {
  .p-category-nav {
    width: 86%;
  }
}
.p-category-nav .cat-item {
  width: auto;
}
.p-category-nav .cat-item a {
  color: #3e3e3e;
  text-decoration: none;
}
.p-category-nav .cat-item a:hover {
  text-decoration: underline;
}
.p-category-nav .current-cat a {
  color: var(--wp--preset--color--primary);
  pointer-events: none;
}

.p-paper-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: clamp(720px, 55%, 50rem);
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .p-paper-cards {
    gap: 1.5rem;
    width: 65%;
  }
}
@media screen and (max-width: 480px) {
  .p-paper-cards {
    gap: 1rem;
    width: 80%;
  }
}
.p-paper-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
@media screen and (max-width: 768px) {
  .p-paper-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
@media screen and (max-width: 480px) {
  .p-paper-cards__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}
.p-paper-cards__grid.is-detail {
  grid-auto-rows: 1fr;
}

.p-paper-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 9rem;
  padding: 1.5rem 1rem;
  border: 1px solid rgba(62, 62, 62, 0.2);
  box-sizing: border-box;
  text-align: center;
}
.p-paper-card.is-name-only {
  justify-content: center;
}
@media screen and (max-width: 480px) {
  .p-paper-card {
    min-height: 0;
    padding: 1.25rem 1rem;
  }
}
.p-paper-card__media {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.p-paper-card__list {
  width: 100%;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(62, 62, 62, 0.2);
  list-style: none;
}
.p-paper-card__item {
  width: auto;
  line-height: 1.6;
}
.p-paper-card__item + .p-paper-card__item {
  margin-top: 0.875rem;
}
.p-paper-card__issue {
  display: block;
  font-size: 0.75rem;
}
.p-paper-card__title {
  display: block;
  font-size: 0.8125rem;
  word-break: auto-phrase;
  text-wrap: balance;
}
.p-paper-card__pdf {
  display: inline-block;
  margin-top: 0.375rem;
  padding: 0 10px;
  border: 1px solid #3e3e3e;
  border-radius: 20px;
  color: #3e3e3e;
  font-size: 0.6875rem;
  line-height: 1.6;
  text-decoration: none;
  transition: all 0.3s ease-out;
}
.p-paper-card__pdf:hover {
  background-color: #3e3e3e;
  color: #ffffff;
}

.p-project-note {
  width: clamp(720px, 55%, 50rem);
  margin: 2rem auto 0;
  font-size: 0.875rem;
  line-height: 1.8;
}
@media screen and (max-width: 768px) {
  .p-project-note {
    width: 86%;
  }
}
@media screen and (max-width: 480px) {
  .p-project-note {
    width: 92%;
  }
}

.p-clients {
  width: clamp(720px, 55%, 50rem);
  margin: 5rem auto 0;
}
@media screen and (max-width: 768px) {
  .p-clients {
    width: 86%;
    margin-top: 3.5rem;
  }
}
@media screen and (max-width: 480px) {
  .p-clients {
    width: 92%;
  }
}
.p-clients__title {
  margin: 0 0 2rem;
  font-size: 1.25rem;
  text-align: center;
  letter-spacing: 0.1em;
}
.p-clients__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media screen and (max-width: 768px) {
  .p-clients__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 480px) {
  .p-clients__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}
.p-clients__list > li {
  width: auto;
  text-align: center;
  line-height: 1.6;
  word-break: auto-phrase;
  text-wrap: balance;
}
.p-clients__dept {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.p-company {
  width: clamp(720px, 55%, 50rem);
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .p-company {
    width: 86%;
  }
}
@media screen and (max-width: 480px) {
  .p-company {
    width: 92%;
  }
}
.p-company__table {
  margin: 0;
}
.p-company__table table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #3e3e3e;
}
.p-company__table th,
.p-company__table td {
  padding: 1rem 0.25rem;
  border: none;
  border-bottom: 1px solid #3e3e3e;
  text-align: left;
  vertical-align: top;
}
.p-company__table th {
  width: 10rem;
  font-weight: 700;
}
@media screen and (max-width: 480px) {
  .p-company__table th {
    width: 7rem;
  }
}

.single-news .wp-site-blocks {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
.single-news header.wp-block-template-part {
  grid-row: 1/2;
}
.single-news main {
  grid-row: 2/3;
  width: clamp(720px, 80%, 100rem);
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .single-news main {
    width: 80%;
  }
}
.single-news footer .wp-block-template-part {
  grid-row: 3/4;
}
.single-news .wp-block-post-date {
  margin: 5rem 0 2rem;
}
.single-news .wp-block-post-title {
  margin: 0 auto;
}
.single-news .entry-content {
  margin: 0 auto;
  padding: 3rem 0 0;
}
.single-news .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none;
}

.single-books .wp-site-blocks {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
.single-books header.wp-block-template-part {
  grid-row: 1/2;
}
.single-books main {
  grid-row: 2/3;
  width: clamp(720px, 55%, 50rem);
  margin: auto;
}
@media screen and (max-width: 768px) {
  .single-books main {
    width: 80%;
  }
}
.single-books footer .wp-block-template-part {
  grid-row: 3/4;
}
.single-books .wp-block-media-text__content {
  justify-self: center;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}
.single-books .entry-content > p {
  height: 50%;
}
.single-books .entry-content > div {
  height: 50%;
}

.single-post .wp-site-blocks {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
.single-post header.wp-block-template-part {
  grid-row: 1/2;
}
.single-post main {
  grid-row: 2/3;
  width: clamp(720px, 80%, 100rem);
  margin: 5rem auto 8rem;
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
}
.single-post main.is-layout-constrained,
.single-post main .is-layout-constrained {
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
}
.single-post main.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.single-post main .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.single-post footer .wp-block-template-part {
  grid-row: 3/4;
}
.single-post .wp-block-post-featured-image {
  margin-bottom: 2rem;
}
.single-post .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.single-post .wp-block-post-title {
  margin: 0 0 2.5rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
}
.single-post .entry-content,
.single-post > .wp-block-post-content {
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
}
.single-post .entry-content h2,
.single-post > .wp-block-post-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 500;
}
.single-post .entry-content p,
.single-post .entry-content li,
.single-post > .wp-block-post-content p,
.single-post > .wp-block-post-content li {
  font-size: 1rem;
  line-height: 1.9;
}
.single-post .entry-content p,
.single-post > .wp-block-post-content p {
  margin: 0 0 1rem;
}
.single-post .entry-content ul,
.single-post > .wp-block-post-content ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.post-type-archive-books .wp-site-blocks {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
.post-type-archive-books header.wp-block-template-part {
  grid-row: 1/2;
}
.post-type-archive-books main {
  grid-row: 2/3;
}
.post-type-archive-books footer.wp-block-template-part {
  grid-row: 3/4;
}
.post-type-archive-books .p-author__layout {
  display: block !important;
}
.post-type-archive-books .p-query__books-item {
  display: flex;
  flex-direction: column;
}
.post-type-archive-books .wp-block-query > ul {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: clamp(720px, 55%, 50rem);
  grid-column-gap: 2rem;
  grid-row-gap: 1rem;
}
@media screen and (max-width: 768px) {
  .post-type-archive-books .wp-block-query > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 65%;
  }
}
@media screen and (max-width: 480px) {
  .post-type-archive-books .wp-block-query > ul {
    width: 80%;
  }
}
.post-type-archive-books .wp-block-query > ul img {
  cursor: pointer;
}
.post-type-archive-books .wp-block-query > ul img:hover {
  transform: scale(1.1);
  transition: all 0.3s ease-out;
}
.post-type-archive-books .wp-block-query .wp-block-post-featured-image {
  width: 100%;
  aspect-ratio: 3/4;
  margin-bottom: 1rem;
}
.post-type-archive-books .wp-block-query .wp-block-post-featured-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.post-type-archive-books .wp-block-post-title {
  height: auto;
  text-decoration: none;
  position: relative;
  display: inline;
  background-image: linear-gradient(#3e3e3e, #3e3e3e);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: background-size 1s ease;
}
.post-type-archive-books .wp-block-post-title:hover {
  background-size: 100% 1px;
}

.post-type-archive-news .wp-site-blocks {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
.post-type-archive-news header.wp-block-template-part {
  grid-row: 1/2;
}
.post-type-archive-news main {
  grid-row: 2/3;
  width: clamp(720px, 80%, 100rem);
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .post-type-archive-news main {
    width: 80%;
  }
}
.post-type-archive-news .wp-site-blocks > .wp-block-group.is-layout-flow {
  grid-row: 2/3;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.post-type-archive-news .wp-block-query {
  width: clamp(720px, 80%, 100rem);
  margin: 0 auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
@media screen and (max-width: 768px) {
  .post-type-archive-news .wp-block-query {
    width: 80%;
  }
}
.post-type-archive-news footer .wp-block-template-part {
  grid-row: 3/4;
}
.post-type-archive-news .is-layout-constrained,
.post-type-archive-news .wp-block-post-template.is-layout-constrained {
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
}
.post-type-archive-news .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.post-type-archive-news .wp-block-post-template.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.post-type-archive-news .wp-block-query ul,
.post-type-archive-news .wp-block-post-template {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-type-archive-news .wp-block-post {
  margin: 0 0 1.25rem;
  max-width: none !important;
}
.post-type-archive-news .wp-block-post-title {
  margin: 0;
}
.post-type-archive-news .wp-block-post-title a {
  height: auto;
  text-decoration: none;
  position: relative;
  display: inline;
  background-image: linear-gradient(#3e3e3e, #3e3e3e);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 1s ease;
}
.post-type-archive-news .wp-block-post-title a:hover {
  background-size: 100% 2px;
}
.post-type-archive-news .wp-block-post-date {
  margin: 0 0 0.25rem;
}
.post-type-archive-news .wp-block-post-excerpt {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  line-height: 1.7;
}
.post-type-archive-news .wp-block-post-excerpt__more-link {
  display: inline;
  text-decoration: none;
}

.p-archive-news {
  width: 100%;
  margin: 5rem auto 8rem;
}
@media screen and (max-width: 768px) {
  .p-archive-news {
    margin: 4rem auto 6rem;
  }
}
.p-archive-news > .wp-block-heading {
  margin: 0 0 2rem;
  font-size: clamp(15.197px, 0.95rem + (1vw - 3.2px) * 0.61, 23px);
  font-weight: 400;
  letter-spacing: 1.1px;
}

.error404 .wp-site-blocks {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
.error404 header.wp-block-template-part {
  grid-row: 1/2;
}
.error404 main {
  grid-row: 2/3;
}
.error404 footer .wp-block-template-part {
  grid-row: 3/4;
}

.p-404 {
  width: clamp(720px, 55%, 50rem);
  margin: 5rem auto 8rem;
  text-align: center;
}
@media screen and (max-width: 768px) {
  .p-404 {
    width: 80%;
    margin: 4rem auto 6rem;
  }
}
.p-404 h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
}
.p-404 p {
  margin: 0 0 2.5rem;
  line-height: 1.8;
}
.p-404 .wp-block-button__link {
  text-decoration: none;
  padding: 5px 20px;
  border-radius: 20px;
  border: 1px solid #3e3e3e;
  background: transparent;
  color: #3e3e3e;
}
.p-404 .wp-block-button__link:hover {
  background-color: #3e3e3e;
  color: #ffffff;
}

.page .wp-site-blocks,
.privacy-policy .wp-site-blocks {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
}
.page header.wp-block-template-part,
.privacy-policy header.wp-block-template-part {
  grid-row: 1/2;
}
.page main,
.privacy-policy main {
  grid-row: 2/3;
}
.page footer .wp-block-template-part,
.privacy-policy footer .wp-block-template-part {
  grid-row: 3/4;
}

.p-page {
  width: clamp(720px, 55%, 50rem);
  margin: 5rem auto 8rem;
}
@media screen and (max-width: 768px) {
  .p-page {
    width: 80%;
    margin: 4rem auto 6rem;
  }
}
.p-page .wp-block-post-title {
  margin: 0 0 2.5rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
}
.p-page .entry-content h2,
.p-page > .wp-block-post-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 500;
}
.p-page .entry-content p,
.p-page .entry-content li,
.p-page > .wp-block-post-content p,
.p-page > .wp-block-post-content li {
  line-height: 1.9;
}
.p-page .entry-content p,
.p-page > .wp-block-post-content p {
  margin: 0 0 1rem;
}
.p-page .entry-content ul,
.p-page > .wp-block-post-content ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.p-posts.columns-4 > li, .home .p-ad-posts .wp-block-post, .home .p-query .wp-block-post, .author .wp-block-post, .category .wp-block-post, .post-type-archive-advertisement .wp-block-post, .post-type-archive-books .wp-block-post {
  position: relative;
}
.p-posts.columns-4 > li .wp-block-post-title,
.p-posts.columns-4 > li .wp-block-post-title a,
.p-posts.columns-4 > li a.wp-block-latest-posts__post-title, .home .p-ad-posts .wp-block-post .wp-block-post-title,
.home .p-ad-posts .wp-block-post .wp-block-post-title a,
.home .p-ad-posts .wp-block-post a.wp-block-latest-posts__post-title, .home .p-query .wp-block-post .wp-block-post-title,
.home .p-query .wp-block-post .wp-block-post-title a,
.home .p-query .wp-block-post a.wp-block-latest-posts__post-title, .author .wp-block-post .wp-block-post-title,
.author .wp-block-post .wp-block-post-title a,
.author .wp-block-post a.wp-block-latest-posts__post-title, .category .wp-block-post .wp-block-post-title,
.category .wp-block-post .wp-block-post-title a,
.category .wp-block-post a.wp-block-latest-posts__post-title, .post-type-archive-advertisement .wp-block-post .wp-block-post-title,
.post-type-archive-advertisement .wp-block-post .wp-block-post-title a,
.post-type-archive-advertisement .wp-block-post a.wp-block-latest-posts__post-title, .post-type-archive-books .wp-block-post .wp-block-post-title,
.post-type-archive-books .wp-block-post .wp-block-post-title a,
.post-type-archive-books .wp-block-post a.wp-block-latest-posts__post-title {
  position: static;
  background-image: none;
}
.p-posts.columns-4 > li .wp-block-post-title a,
.p-posts.columns-4 > li a.wp-block-latest-posts__post-title, .home .p-ad-posts .wp-block-post .wp-block-post-title a,
.home .p-ad-posts .wp-block-post a.wp-block-latest-posts__post-title, .home .p-query .wp-block-post .wp-block-post-title a,
.home .p-query .wp-block-post a.wp-block-latest-posts__post-title, .author .wp-block-post .wp-block-post-title a,
.author .wp-block-post a.wp-block-latest-posts__post-title, .category .wp-block-post .wp-block-post-title a,
.category .wp-block-post a.wp-block-latest-posts__post-title, .post-type-archive-advertisement .wp-block-post .wp-block-post-title a,
.post-type-archive-advertisement .wp-block-post a.wp-block-latest-posts__post-title, .post-type-archive-books .wp-block-post .wp-block-post-title a,
.post-type-archive-books .wp-block-post a.wp-block-latest-posts__post-title {
  transition: opacity 0.3s ease-out;
}
.p-posts.columns-4 > li .wp-block-post-title a::after,
.p-posts.columns-4 > li a.wp-block-latest-posts__post-title::after, .home .p-ad-posts .wp-block-post .wp-block-post-title a::after,
.home .p-ad-posts .wp-block-post a.wp-block-latest-posts__post-title::after, .home .p-query .wp-block-post .wp-block-post-title a::after,
.home .p-query .wp-block-post a.wp-block-latest-posts__post-title::after, .author .wp-block-post .wp-block-post-title a::after,
.author .wp-block-post a.wp-block-latest-posts__post-title::after, .category .wp-block-post .wp-block-post-title a::after,
.category .wp-block-post a.wp-block-latest-posts__post-title::after, .post-type-archive-advertisement .wp-block-post .wp-block-post-title a::after,
.post-type-archive-advertisement .wp-block-post a.wp-block-latest-posts__post-title::after, .post-type-archive-books .wp-block-post .wp-block-post-title a::after,
.post-type-archive-books .wp-block-post a.wp-block-latest-posts__post-title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.p-posts.columns-4 > li .wp-block-post-featured-image,
.p-posts.columns-4 > li .wp-block-latest-posts__featured-image, .home .p-ad-posts .wp-block-post .wp-block-post-featured-image,
.home .p-ad-posts .wp-block-post .wp-block-latest-posts__featured-image, .home .p-query .wp-block-post .wp-block-post-featured-image,
.home .p-query .wp-block-post .wp-block-latest-posts__featured-image, .author .wp-block-post .wp-block-post-featured-image,
.author .wp-block-post .wp-block-latest-posts__featured-image, .category .wp-block-post .wp-block-post-featured-image,
.category .wp-block-post .wp-block-latest-posts__featured-image, .post-type-archive-advertisement .wp-block-post .wp-block-post-featured-image,
.post-type-archive-advertisement .wp-block-post .wp-block-latest-posts__featured-image, .post-type-archive-books .wp-block-post .wp-block-post-featured-image,
.post-type-archive-books .wp-block-post .wp-block-latest-posts__featured-image {
  transition: transform 0.3s ease-out;
}
.p-posts.columns-4 > li:hover .wp-block-post-title a,
.p-posts.columns-4 > li:hover a.wp-block-latest-posts__post-title, .home .p-ad-posts .wp-block-post:hover .wp-block-post-title a,
.home .p-ad-posts .wp-block-post:hover a.wp-block-latest-posts__post-title, .home .p-query .wp-block-post:hover .wp-block-post-title a,
.home .p-query .wp-block-post:hover a.wp-block-latest-posts__post-title, .author .wp-block-post:hover .wp-block-post-title a,
.author .wp-block-post:hover a.wp-block-latest-posts__post-title, .category .wp-block-post:hover .wp-block-post-title a,
.category .wp-block-post:hover a.wp-block-latest-posts__post-title, .post-type-archive-advertisement .wp-block-post:hover .wp-block-post-title a,
.post-type-archive-advertisement .wp-block-post:hover a.wp-block-latest-posts__post-title, .post-type-archive-books .wp-block-post:hover .wp-block-post-title a,
.post-type-archive-books .wp-block-post:hover a.wp-block-latest-posts__post-title {
  opacity: 0.7;
}

.p-posts.columns-4 > li:hover .wp-block-latest-posts__featured-image,
.home .p-ad-posts .wp-block-post:hover .wp-block-post-featured-image,
.author .wp-block-post:hover .wp-block-post-featured-image,
.category .wp-block-post:hover .wp-block-post-featured-image,
.post-type-archive-advertisement .wp-block-post:hover .wp-block-post-featured-image {
  transform: scale(1.1);
}

.home .p-query .wp-block-post-title,
.home .p-query .wp-block-post-title a,
.post-type-archive-books .wp-block-post-title,
.post-type-archive-books .wp-block-post-title a {
  font-weight: 400;
}

.home .p-query .wp-block-post-featured-image img,
.post-type-archive-books .wp-block-post-featured-image img {
  transition: transform 0.3s ease-out;
}

.home .p-query .wp-block-post:hover .wp-block-post-featured-image img,
.post-type-archive-books .wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.1);
}

.p-profile__textarea a,
.privacy-linkicon,
.p-online-note a {
  transition: opacity 0.3s ease-out;
}
.p-profile__textarea a:hover,
.privacy-linkicon:hover,
.p-online-note a:hover {
  opacity: 0.7;
}

.p-text-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 3/4;
  padding: 1.25rem 1rem;
  box-sizing: border-box;
  background-color: #ece6dd;
  outline: 1px solid rgba(62, 62, 62, 0.25);
  outline-offset: -8px;
  transition: transform 0.3s ease-out;
}
.p-text-cover .p-text-cover__title {
  color: #3e3e3e;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-align: center;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.wp-block-media-text__media .p-text-cover {
  padding: 2.5rem 2rem;
  outline-offset: -12px;
}
.wp-block-media-text__media .p-text-cover .p-text-cover__title {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.home .p-query .wp-block-post:hover .p-text-cover,
.post-type-archive-books .wp-block-post:hover .p-text-cover {
  transform: scale(1.1);
}

.u-margin__y0 {
  margin: 0 auto !important;
}

.u-margin__112,
.wp-block-heading + .wp-block-spacer,
.wp-block-spacer[style*="height:112px"],
.wp-block-spacer[style*=spacing--large] {
  height: 3.5rem !important;
}

.u-margin__80,
.wp-block-spacer[style*="height:80px"],
.wp-block-spacer[style*=spacing--medium] {
  height: 2.5rem !important;
}

.u-margin__48,
.wp-block-spacer[style*="height:48px"],
.wp-block-spacer[style*=spacing--small] {
  height: 1.5rem !important;
}

@media screen and (max-width: 768px) {
  .u-margin__112,
  .wp-block-heading + .wp-block-spacer,
  .wp-block-spacer[style*="height:112px"],
  .wp-block-spacer[style*=spacing--large] {
    height: 2.5rem !important;
  }
  .u-margin__80,
  .wp-block-spacer[style*="height:80px"],
  .wp-block-spacer[style*=spacing--medium] {
    height: 1.75rem !important;
  }
  .u-margin__48,
  .wp-block-spacer[style*="height:48px"],
  .wp-block-spacer[style*=spacing--small] {
    height: 1.125rem !important;
  }
}
@media screen and (max-width: 480px) {
  .u-margin__112,
  .wp-block-heading + .wp-block-spacer,
  .wp-block-spacer[style*="height:112px"],
  .wp-block-spacer[style*=spacing--large] {
    height: 2rem !important;
  }
  .u-margin__80,
  .wp-block-spacer[style*="height:80px"],
  .wp-block-spacer[style*=spacing--medium] {
    height: 1.5rem !important;
  }
  .u-margin__48,
  .wp-block-spacer[style*="height:48px"],
  .wp-block-spacer[style*=spacing--small] {
    height: 1rem !important;
  }
}
/* tab以下：余白を詰める */
@media screen and (max-width: 768px) {
  .is-frontend .wp-block-cover:has(.p-news) {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: 16px !important;
  }
  .p-news {
    padding-top: 1rem !important;
    padding-bottom: 0.875rem !important;
    padding-left: 0.875rem !important;
    padding-right: 0.875rem !important;
  }
  .p-news .wp-block-heading {
    margin-bottom: 0.75rem !important;
  }
  .c-width,
  .c-more,
  .p-logo,
  .p-profile,
  .p-footer,
  .is-style-width__contact,
  .p-posts.is-grid.columns-4,
  .home .wp-block-query > ul,
  .post-type-archive-books .wp-block-query > ul,
  .author .wp-block-post-template,
  .author .wp-block-query > ul,
  .category .wp-block-post-template,
  .category .wp-block-query > ul,
  .post-type-archive-advertisement .wp-block-post-template,
  .post-type-archive-advertisement .wp-block-post-template.columns-4,
  .post-type-archive-advertisement .wp-block-query > ul,
  .post-type-archive-advertisement .wp-block-query ul.columns-4,
  .home .p-ad-posts .wp-block-post-template,
  .home .p-ad-posts .wp-block-post-template.columns-4,
  .home .p-ad-posts .wp-block-query > ul,
  .home .p-ad-posts .wp-block-query ul.columns-4,
  .author .wp-block-post-template.columns-4,
  .author .wp-block-query ul.columns-4,
  .category .wp-block-post-template.columns-4,
  .category .wp-block-query ul.columns-4,
  .p-paper-cards,
  .p-page,
  .p-404,
  .p-archive-news,
  .post-type-archive-news main,
  .post-type-archive-news .wp-block-query,
  .single-books main,
  .single-news main {
    width: 86%;
    max-width: 100%;
  }
  .single-post main {
    width: 92%;
    max-width: 100%;
  }
  .p-logo {
    width: 86%;
  }
  .p-profile {
    grid-row-gap: 2rem;
  }
  #profile ~ .wp-block-spacer {
    height: 1.25rem !important;
  }
  .wp-block-spacer.u-margin__80:has(+ .p-profile) {
    height: 1.25rem !important;
  }
  .p-posts.is-grid.columns-4,
  .home .wp-block-query > ul,
  .post-type-archive-books .wp-block-query > ul,
  .author .wp-block-post-template,
  .author .wp-block-query > ul,
  .category .wp-block-post-template,
  .category .wp-block-query > ul,
  .post-type-archive-advertisement .wp-block-post-template,
  .post-type-archive-advertisement .wp-block-post-template.columns-4,
  .post-type-archive-advertisement .wp-block-query > ul,
  .post-type-archive-advertisement .wp-block-query ul.columns-4,
  .home .p-ad-posts .wp-block-post-template,
  .home .p-ad-posts .wp-block-post-template.columns-4,
  .home .p-ad-posts .wp-block-query > ul,
  .home .p-ad-posts .wp-block-query ul.columns-4 {
    grid-gap: 1.75rem !important;
  }
  .p-project {
    gap: 1.5rem;
  }
  .p-page,
  .p-404,
  .p-archive-news,
  .p-archive-author,
  .single-post main {
    margin-top: 3rem;
    margin-bottom: 4rem;
  }
  header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 4rem !important;
  }
}
@media screen and (max-width: 480px) {
  .c-width,
  .c-more,
  .p-logo,
  .p-profile,
  .p-footer,
  .is-style-width__contact,
  .p-posts.is-grid.columns-4,
  .home .wp-block-query > ul,
  .post-type-archive-books .wp-block-query > ul,
  .author .wp-block-post-template,
  .author .wp-block-query > ul,
  .category .wp-block-post-template,
  .category .wp-block-query > ul,
  .post-type-archive-advertisement .wp-block-post-template,
  .post-type-archive-advertisement .wp-block-post-template.columns-4,
  .post-type-archive-advertisement .wp-block-query > ul,
  .post-type-archive-advertisement .wp-block-query ul.columns-4,
  .home .p-ad-posts .wp-block-post-template,
  .home .p-ad-posts .wp-block-post-template.columns-4,
  .home .p-ad-posts .wp-block-query > ul,
  .home .p-ad-posts .wp-block-query ul.columns-4,
  .author .wp-block-post-template.columns-4,
  .author .wp-block-query ul.columns-4,
  .category .wp-block-post-template.columns-4,
  .category .wp-block-query ul.columns-4,
  .p-paper-cards,
  .p-page,
  .p-404,
  .p-archive-news,
  .post-type-archive-news main,
  .post-type-archive-news .wp-block-query,
  .single-books main,
  .single-news main {
    width: 92%;
  }
  .single-post main {
    width: 96%;
  }
}

/*# sourceMappingURL=style.css.map */
