/*
 Theme Name:   ajaira child custom style sheet
 Description:  ajaira Child Theme
 Author:       mizuno shoji
 Template:     ajaira
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  ajaira-child
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Typography
# Elements
## 共通
## Header
## Footer
## フロントページ
## 投稿
## タグクラウドページ
## 固定ページ
### Aboutページ
## ブログアーカイブページ
## Works
## 検索
## 404
--------------------------------------------------------------*/
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/wp-content/themes/ajaira-child/font/IBMPlexMono-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono Thin Italic";
  src: url("/wp-content/themes/ajaira-child/font/IBMPlexMono-ThinItalic.woff2")
    format("woff2");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

/**
 * #Typography
 */
.site-title,
.footer-site-title {
  /* font-family: 'Rock Salt', cursive; */
  font-family: "Racing Sans One", cursive;
}

body,
button,
input,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
h1,
h2,
h3,
h4,
h5,
h6,
#site-navigation .menu li a,
article span a {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo",
    "Helvetica Neue", "Arial", sans-serif;
  font-weight: 200;
  color: #e0e0e0;
}

:root {
  --work-detail-featured-max-height: 90vh;
  --work-detail-hero-padding: clamp(12px, 2vw, 24px);
}

html {
  overscroll-behavior-y: none;
  min-height: 100%;
}

body {
  background-color: #222;
  background-attachment: fixed;
  overscroll-behavior-y: none;
  min-height: 100%;
  line-height: 1.8;
}

ol {
  margin: 0 0 1.5em 0;
}

.section-title {
  width: fit-content;
  font-size: 32px;
}

.section-title--typing,
.section-title--typing-ready {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.section-title--typing-ready {
  min-height: 1.2em;
}

.section-title__text {
  display: inline-block;
  min-height: 1em;
  white-space: nowrap;
}

.section-title__cursor {
  position: absolute;
  top: 50%;
  right: -0.6ch;
  display: block;
  width: 0.6ch;
  height: 1.1em;
  margin-left: 0;
  transform: translateY(-50%);
  pointer-events: none;
}

.section-title__cursor::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: currentColor;
  opacity: 1;
  border-radius: 2px;
}

.section-title__cursor--hidden::before {
  opacity: 0;
}

.section-title__cursor--hidden {
  opacity: 0;
}

.section-title__cursor--blink::before {
  animation: section-title-cursor-blink 1s steps(2, start) infinite;
}

@keyframes section-title-cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

/**
 * #Elements
 */

/* ==========================================================================
    ##共通
   ========================================================================== */
.container {
  width: 100%;
  max-width: none;
  padding: 0 50px;
  box-sizing: border-box;
}

::selection {
  background-color: #0078d7ff;
  color: #fff;
}

::-moz-selection {
  background-color: #0078d7ff;
  color: #fff;
}

body:not(.home) #content.site-content.container {
  padding-top: 90px;
}

@media (max-width: 570px) {
  body:not(.home) #content.site-content.container {
    padding: 90px 8px 0;
  }
}

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content.site-content {
  flex: 1 0 auto;
}

.site-header .container {
  padding-left: 0;
  padding-right: 50px;
}

.front-page .site-content.container {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.home #content.site-content.container {
  padding: 0;
}

@media (max-width: 1080px) {
  .container {
    padding: 0 20px;
  }

  .site-header .container {
    padding-left: 0;
    padding-right: 20px;
  }

  .front-page .site-content.container {
    padding: 0;
  }

  .home #content.site-content.container {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .site-header .container {
    padding-left: 0;
    padding-right: 10px;
  }

  .front-page .site-content.container {
    padding: 0;
  }

  .home #content.site-content.container {
    padding: 0;
  }
}

:root {
  --site-header-height: 96px;
  --admin-bar-height: 0px;
}

@media (max-width: 1080px) {
  :root {
    --site-header-height: 84px;
  }
}

@media (max-width: 768px) {
  :root {
    --site-header-height: 72px;
  }
}

body.admin-bar {
  --admin-bar-height: 32px;
}

@media (max-width: 768px) {
  body.admin-bar {
    --admin-bar-height: 46px;
  }
}

.site-content-inner {
  padding: 0px 60px;
}

@media (max-width: 1080px) {
  .site-content-inner {
    padding: 0px 90px;
  }
}

@media (max-width: 768px) {
  .site-content-inner {
    padding: 0px;
  }
}

@media (max-width: 480px) {
  .site-content-inner {
    padding: 0;
  }
}

.content-area {
  width: 100%;
  padding: 0px;
}
/* 投稿インデックスページ */
article {
  position: relative;
  box-sizing: border-box;
}

@media (max-width: 1080px) {
  article {
    position: static;
    box-sizing: border-box;
  }
}

/* 投稿シングルページ、固定ページ　*/
.single-article article,
.type-page {
  height: auto;
  border: none;
}

@media (max-width: 1080px) {
  .single-article article,
  .type-page {
    width: auto;
  }
}

/* 投稿シングルページ、固定ページ */
.single-article .post-image {
  position: static;
  width: auto;
  margin: 0px 0px 30px;
  padding: 0px 80px;
  overflow: hidden;
  border-bottom: none;
}

@media (max-width: 1080px) {
  .site-content-inner .post-image {
    padding: 0;
  }
}

.page-title {
  width: fit-content;
  margin: 20px auto;
  padding: 0;
  font-size: 32px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0e0e0;
  text-decoration: none;
  border: none;
}

.page-heading {
  text-align: center;
  margin-bottom: clamp(16px, 3vw, 50px);
}

.page-heading__copy {
  margin: 0;
  font-size: 16px;
  color: #aaaaaa;
  text-align: center;
}
/* リンクの改行なしルールの解除 */
.single-article .entry-content a {
  color: #e0e0e0;
  text-decoration: underline;
  word-break: break-all;
}

.single-article .entry-content a:hover {
  color: #276ef1;
}

h2,
h3,
h4,
h5 {
  margin: 0 0 50px 0;
}

h2 a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.2s ease;
}

h2 a:hover {
  color: #276ef1;
}

p {
  margin-bottom: 30px;
}

a {
  color: #e0e0e0;
}

a:hover {
  color: #276ef1;
}

ul {
  list-style: initial;
  margin: 0 0 1.5em 1.5em;
  padding: 0px;
}

li > ul,
li > ol {
  list-style: revert;
}

figcaption {
  font-size: 14px;
}

.pagination > li > a:hover {
  background-color: #276ef1;
  color: #e0e0e0;
}

.blog .paging-navigation {
  margin-top: clamp(32px, 5vw, 48px);
}

@media (max-width: 570px) {
  .blog .paging-navigation {
    margin-bottom: 40px;
  }
}

.blog-pagination__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 0;
  margin: clamp(12px, 2vw, 24px) 0 0;
}

.blog-pagination__item {
  margin: 0;
}

.blog-pagination__link {
  display: inline-block;
  padding: 0 4px 4px;
  color: #e0e0e0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.blog-pagination__link:hover,
.blog-pagination__link:focus-visible {
  color: #e0e0e0;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

.blog-pagination__item--current .blog-pagination__link,
.blog-pagination__link.current {
  border-bottom-color: #e0e0e0;
}

.blog-pagination__arrow {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
}

.blog-pagination__segment {
  display: inline-block;
  min-width: 0.6ch;
  text-align: center;
  color: inherit;
}

.blog-pagination__link--prev:hover .blog-pagination__segment,
.blog-pagination__link--prev:focus-visible .blog-pagination__segment {
  animation: work-detail-nav-flick-prev 0.9s steps(3, jump-end) forwards;
}

.blog-pagination__link--next:hover .blog-pagination__segment,
.blog-pagination__link--next:focus-visible .blog-pagination__segment {
  animation: work-detail-nav-flick-next 0.9s steps(3, jump-end) forwards;
}

.blog-pagination__link--prev .blog-pagination__segment:nth-child(1) {
  animation-delay: 0.18s;
}

.blog-pagination__link--prev .blog-pagination__segment:nth-child(2) {
  animation-delay: 0.09s;
}

.blog-pagination__link--prev .blog-pagination__segment:nth-child(3) {
  animation-delay: 0s;
}

.blog-pagination__link--next .blog-pagination__segment:nth-child(1) {
  animation-delay: 0s;
}

.blog-pagination__link--next .blog-pagination__segment:nth-child(2) {
  animation-delay: 0.09s;
}

.blog-pagination__link--next .blog-pagination__segment:nth-child(3) {
  animation-delay: 0.18s;
}

.navigation.paging-navigation .fa-angle-double-left,
.navigation.paging-navigation .fa-angle-double-right {
  display: none !important;
}

.wp-block-image {
  margin-bottom: 2em;
}

.wp-post-image {
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.blog article::after,
.archive article::after,
.archive-page-header::after,
.not-found-page-header::after,
.search-page-header::after,
.search-results-page-header::after,
.search-results article::after {
  display: none;
}

/* ==========================================================================
    ##Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: var(--admin-bar-height);
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  background-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.menu-wrapper {
  background: none;
}

.site-header__inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
}

.site-header__brand {
  position: absolute;
  top: 50%;
  left: clamp(24px, 6vw, 0px);
  display: flex;
  align-items: center;
  transform: translateY(-50%);
  padding: 0;
}

.site-header__brand-link {
  display: inline-flex;
  position: relative;
}

.site-header__brand-image {
  display: block;
  height: 60px;
  width: 60px;
}

.site-header__brand-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  background: #0078d7ff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.3s ease-out;
  z-index: -1;
}

.site-header__brand-link:hover::before,
.site-header__brand-link:focus-visible::before {
  transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 768px) {
  .site-header__brand-link::before {
    width: 48px;
    height: 48px;
  }
}

.site-header__name {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.site-header__name-link {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.site-header__name-text {
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e0e0e0;
  pointer-events: none;
}

@media (max-width: 1080px) {
  .site-header__inner {
    padding: 16px 0;
  }

  .site-header__brand-image {
    height: 60px;
    width: 60px;
  }

  .site-header__inner .menu-mobile {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .site-header__brand-image {
    height: 40px;
    width: 40px;
  }
}

.site-title {
  position: absolute;
  margin: 0;
  padding-top: 30px;
  font-size: 30px;
  text-transform: initial;
}

@media (max-width: 1080px) {
  .site-title {
    top: 15px;
    padding: 0px;
  }
}

@media (max-width: 480px) {
  .site-title {
    font-size: 30px;
  }
}

.site-discription {
  font-weight: bold;
  font-style: italic;
  color: #fd751e;
}

/* navigation
   ----------------------------------------------------------------- */
#site-navigation {
  float: none;
  padding: 0;
  mix-blend-mode: difference;
  margin-left: auto;
}

#site-navigation .menu > ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
}

#site-navigation .menu li {
  display: inline-flex;
  align-items: center;
  position: relative;
}

#site-navigation .menu li a {
  display: inline-flex;
  align-items: center;
  margin-right: 32px;
  padding: 2px 6px;
  font-size: 16px;
  font-weight: 600;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  color: #e0e0e0;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  z-index: 0;
  mix-blend-mode: normal;
  isolation: isolate;
  background-color: rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

#site-navigation .menu li a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: #0078d7ff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

#site-navigation .menu li:last-child > a {
  margin-right: 0;
}

#site-navigation .menu > ul > li:nth-child(2) > a,
#site-navigation .menu > .nav-menu > li:nth-child(2) > a {
  /* padding-left: px; */
  padding-right: 16px;
}

#site-navigation .menu li a:hover,
#site-navigation .menu li a:focus-visible {
  color: #e0e0e0;
}

#site-navigation .menu li a:hover::before,
#site-navigation .menu li a:focus-visible::before {
  transform: scaleX(1);
}

@media (max-width: 1080px) {
  .site-header {
    height: var(--site-header-height);
    display: block;
  }

  .site-header__inner {
    min-height: var(--site-header-height);
    padding: 16px 0;
  }

  .site-header__brand,
  .site-header__name {
    top: 50%;
  }

  .site-header__brand {
    left: clamp(16px, 5vw, 32px);
    transform: translateY(-50%);
    z-index: 210;
  }

  .site-header__name {
    transform: translate(-50%, -50%);
    z-index: 205;
  }

  #site-navigation {
    display: none;
  }
}

#site-navigation .menu .sub-menu,
#site-navigation .menu .children {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  min-width: 200px;
  background: transparent;
  box-shadow: none;
  z-index: 999;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

#site-navigation .menu li:hover > .sub-menu,
#site-navigation .menu li:focus-within > .sub-menu,
#site-navigation .menu li:hover > .children,
#site-navigation .menu li:focus-within > .children {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

#site-navigation .menu .sub-menu li,
#site-navigation .menu .children li {
  display: block;
  opacity: 0;
  transform: translateY(-8px);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transition-delay: 0s;
}

#site-navigation .menu .children {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

#site-navigation .menu .sub-menu a,
#site-navigation .menu .children a {
  margin: 0;
  padding: 8px 20px;
  color: #e0e0e0;
  opacity: 1;
  background: rgba(0, 0, 0, 0.3);
}

#site-navigation .menu .sub-menu a:hover,
#site-navigation .menu .children a:hover {
  color: #e0e0e0;
}

#site-navigation .menu li:hover > .sub-menu li,
#site-navigation .menu li:focus-within > .sub-menu li,
#site-navigation .menu li:hover > .children li,
#site-navigation .menu li:focus-within > .children li {
  opacity: 1;
  transform: translateY(0);
}

#site-navigation .menu li:hover > .sub-menu li:nth-child(1),
#site-navigation .menu li:focus-within > .sub-menu li:nth-child(1),
#site-navigation .menu li:hover > .children li:nth-child(1),
#site-navigation .menu li:focus-within > .children li:nth-child(1) {
  transition-delay: 0.05s;
}

#site-navigation .menu li:hover > .sub-menu li:nth-child(2),
#site-navigation .menu li:focus-within > .sub-menu li:nth-child(2),
#site-navigation .menu li:hover > .children li:nth-child(2),
#site-navigation .menu li:focus-within > .children li:nth-child(2) {
  transition-delay: 0.1s;
}

#site-navigation .menu li:hover > .sub-menu li:nth-child(3),
#site-navigation .menu li:focus-within > .sub-menu li:nth-child(3),
#site-navigation .menu li:hover > .children li:nth-child(3),
#site-navigation .menu li:focus-within > .children li:nth-child(3) {
  transition-delay: 0.15s;
}

#site-navigation .menu li:hover > .sub-menu li:nth-child(4),
#site-navigation .menu li:focus-within > .sub-menu li:nth-child(4),
#site-navigation .menu li:hover > .children li:nth-child(4),
#site-navigation .menu li:focus-within > .children li:nth-child(4) {
  transition-delay: 0.2s;
}

#site-navigation .menu li:hover > .sub-menu li:nth-child(5),
#site-navigation .menu li:focus-within > .sub-menu li:nth-child(5),
#site-navigation .menu li:hover > .children li:nth-child(5),
#site-navigation .menu li:focus-within > .children li:nth-child(5) {
  transition-delay: 0.25s;
}

/* Mobile navigation overlay (<=1080px). Desktop untouched. */
@media (min-width: 1081px) {
  .slicknav_menu {
    display: none !important;
  }

  #site-navigation .menu {
    display: flex;
  }
}

@media (max-width: 1080px) {
  #site-navigation .menu {
    display: none;
  }

  .slicknav_menu {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0;
    background: none;
    position: fixed; /* keep toggle above overlay layer */
    top: clamp(2px, 2vw, 12px);
    right: clamp(12px, 4vw, 20px);
    z-index: 200;
  }

  .slicknav_btn {
    float: none;
    top: -6px;
    margin: 0;
    padding: 12px 20px 12px 12px;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 48px;
    height: 48px;
    cursor: pointer;
    position: relative; /* keep toggle above overlay layer */
    z-index: 210;
    transition: background-color 0.2s ease, opacity 0.2s ease;
  }

  .slicknav_btn:hover,
  .slicknav_btn:focus-visible {
    background: transparent;
    opacity: 0.85;
  }

  .slicknav_btn::before,
  .slicknav_btn::after {
    /* Block any default pseudo backgrounds on toggle */
    display: none !important;
    content: none !important;
  }

  .slicknav_menu,
  .slicknav_open {
    background: none !important;
    box-shadow: none !important;
  }

  .slicknav_menutxt {
    display: none;
  }

  .slicknav_icon {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    width: 22px;
    height: 16px;
    transform: translateY(-2px);
  }

  .slicknav_icon-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 99px;
    background: #e0e0e0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform-origin: center;
  }

  .slicknav_icon-bar:first-child {
    top: 0;
  }

  /* hide middle default bar from slicknav (we use only two lines) */
  .slicknav_icon-bar:nth-child(2) {
    display: none;
  }

  .slicknav_icon-bar:last-child {
    bottom: 0;
  }

  .slicknav_btn.is-open .slicknav_icon-bar:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  .slicknav_btn.is-open .slicknav_icon-bar:last-child {
    bottom: auto;
    top: 26%;
    transform: translateY(-50%) rotate(-45deg);
  }

  .slicknav_nav {
    position: fixed;
    inset: 0;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(32px, 6vw, 72px) clamp(16px, 6vw, 48px);
    margin: 0;
    gap: clamp(14px, 3vw, 24px);
    background: rgba(0, 0, 0, 0.9);
    border-radius: 0;
    overflow-y: auto;
    z-index: 180;
    opacity: 0;
    transform: none;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  body.is-mobile-menu-open .slicknav_nav {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  body.is-mobile-menu-open {
    overflow: hidden;
  }

  .slicknav_nav ul {
    position: static;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(10px, 2vw, 16px);
    background: none;
    padding: 0;
    margin: 0 auto;
    width: auto;
  }

  .slicknav_nav li {
    width: auto;
    text-align: left;
    border: none;
    background: none;
    opacity: 0;
    transform: none;
    transition: opacity 0.4s ease;
  }

  body.is-mobile-menu-open .slicknav_nav li {
    opacity: 1;
    transform: none;
  }

  .slicknav_nav a {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 14px;
    margin: 0;
    width: auto;
    align-self: flex-start;
    color: #e0e0e0;
    font-size: clamp(18px, 4vw, 24px);
    line-height: 1.45;
    font-weight: 700;
    font-family: "IBM Plex Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.15);
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
  }

  .slicknav_nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-color: #0078d7ff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: -1;
  }

  .slicknav_nav a:hover,
  .slicknav_nav a:focus-visible {
    color: #e0e0e0;
  }

  .slicknav_nav a:hover::before,
  .slicknav_nav a:focus-visible::before {
    transform: scaleX(1);
  }

  .slicknav_nav a:focus-visible {
    outline: 2px solid #276ef1;
    outline-offset: 4px;
  }

  .slicknav_nav .slicknav_parent > a {
    margin-bottom: clamp(6px, 1vw, 10px);
  }

  .slicknav_nav .slicknav_parent > ul {
    gap: clamp(6px, 1.4vw, 10px);
    padding-left: clamp(12px, 4vw, 20px);
  }

  .slicknav_nav .slicknav_parent > ul a {
    font-size: clamp(15px, 3vw, 18px);
    line-height: 1.5;
    font-weight: 600;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.02em;
    text-transform: none;
    background: rgba(0, 0, 0, 0.08);
    opacity: 0.9;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    z-index: 0;
  }

  .slicknav_nav .slicknav_parent > ul a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-color: #0078d7ff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
    pointer-events: none;
    z-index: -1;
  }

  .slicknav_nav .slicknav_parent > ul a:hover,
  .slicknav_nav .slicknav_parent > ul a:focus-visible {
    color: #e0e0e0;
  }

  .slicknav_nav .slicknav_parent > ul a:hover::before,
  .slicknav_nav .slicknav_parent > ul a:focus-visible::before {
    transform: scaleX(1);
  }

  .slicknav_arrow,
  .slicknav_item {
    display: none !important;
  }
}

/* Ensure sub-768px keeps the same overlay design as <=1080px */
@media (max-width: 768px) {
  .slicknav_menu {
    top: clamp(6px, 4vw, 14px);
    right: clamp(12px, 5vw, 20px);
  }

  .slicknav_nav {
    align-items: center;
    padding: clamp(32px, 8vw, 72px) clamp(16px, 8vw, 48px);
    gap: clamp(14px, 5vw, 24px);
  }

  .slicknav_nav ul {
    align-items: flex-start;
    margin: 0 auto;
    width: auto;
  }

  .slicknav_nav a {
    font-size: clamp(18px, 5vw, 24px);
    line-height: 1.45;
    background: rgba(0, 0, 0, 0.15);
  }

  .slicknav_nav .slicknav_parent > ul {
    padding-left: clamp(12px, 5vw, 20px);
  }

  .slicknav_nav .slicknav_parent > ul a {
    font-size: clamp(15px, 4vw, 18px);
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.08);
  }
}

/* Reset parent-theme overrides on <767px for slicknav links */
@media (max-width: 767px) {
  .slicknav_nav a {
    display: inline-flex;
    padding: 10px 14px;
    font-size: clamp(18px, 5vw, 24px);
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-top: none;
    text-decoration: none;
    color: #e0e0e0;
    background: rgba(0, 0, 0, 0.15);
  }

  .slicknav_nav .slicknav_parent > ul a {
    font-size: clamp(15px, 4vw, 18px);
    letter-spacing: 0.02em;
    text-transform: none;
    background: rgba(0, 0, 0, 0.08);
  }
}

/* search form
   ----------------------------------------------------------------- */
.display-search {
  display: none;
  position: absolute;
  top: 25px;
  right: 45px;
  width: 445px;
}

.open-search-btn {
  position: absolute;
  top: 30px;
  right: 50px;
  width: 30px;
  height: 30px;
}

@media (max-width: 1080px) {
  .open-search-btn {
    display: none;
  }
}

.search-form {
  position: relative;
}

@media (max-width: 1080px) {
  .display-search form {
    display: none;
  }
}

@media (max-width: 768px) {
  body,
  #page,
  .site-content.container {
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
  }
}

.search-icon {
  position: absolute;
  top: 5px;
  left: 8px;
  font-size: 18px;
}

.search-icon:hover {
  color: #276ef1;
}

#search-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

input[type="search"] {
  padding-left: 30px;
}

.display-search i {
  position: absolute;
  top: 12px;
  left: 10px;
}

#exec-search {
  color: #276ef1;
}

@media (max-width: 1080px) {
  .site-header {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .site-header {
    width: 100%;
  }
}

/* header bottom line
   ----------------------------------------------------------------- */
.site-header::after {
  display: none;
}

/* ==========================================================================
   ##Footer
   ========================================================================== */
.site-footer {
  background-color: rgba(0, 0, 0, 0.3);
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 0;
  padding: 12px 16px;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  justify-content: flex-start;
  grid-column: 1 / 2;
  padding-left: 12px;
}

.footer-social-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #e0e0e0;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s ease;
}

.footer-social-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: #0078d7ff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  z-index: -1;
}

.footer-social-links a:hover::before,
.footer-social-links a:focus-visible::before {
  transform: scaleX(1);
}

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
  color: #e0e0e0;
}

#copyright {
  justify-self: center;
  margin-bottom: 0;
  font-size: 14px;
  color: #e0e0e0;
  font-family: "IBM Plex Mono", monospace;
  grid-column: 2 / 3;
  text-align: center;
}

#copyright .copyright-line {
  display: inline;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .footer-container {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-social-links {
    justify-content: center;
    grid-column: 1 / -1;
  }

  #copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 570px) {
  #copyright .copyright-line {
    display: block;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .footer-social-links {
    gap: 16px;
  }
}

.profile-card {
  padding: 20px;
  border: 1px solid #555;
  background-color: #282828;
}

.profile-card .profile-img {
  margin-bottom: 0;
}

.profile-card h6 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .profile-card h6 {
    text-align: center;
  }
}

.profile-card div {
  display: inline-block;
}

.profile-text {
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  margin: 12px auto 40px;
}

.profile-card__name {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 768px) {
  .profile-card div {
    display: block;
  }

  .profile-card__name {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
  }

  .profile-text {
    margin-left: 0;
    margin-top: 16px;
  }
}
/* ==========================================================================
   ###フロントページ
   ========================================================================== */
.front-page-main {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.front-sections {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 80px 0;
}

.front-hero {
  position: relative;
  box-sizing: border-box;
  width: 100vw;
  min-height: 100vh;
  margin-top: 0;
  margin-left: calc((100vw - 100%) / -2);
  margin-right: calc((100vw - 100%) / -2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  overflow: hidden;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #e0e0e0;
  text-align: center;
  isolation: isolate;
  --front-hero-veil-opacity: 1;
  --front-hero-veil-opacity-active: 1;
  --front-hero-veil-opacity-settled: 0.4;
  --front-hero-veil-transition: 5s;
}

.front-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}

.front-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  z-index: 2;
}

.front-hero__veil {
  position: absolute;
  inset: 0;
  background-color: #000;
  mix-blend-mode: multiply;
  opacity: var(--front-hero-veil-opacity, 0.95);
  transition: opacity var(--front-hero-veil-transition, 5s) ease;
  pointer-events: none;
  z-index: 2;
}

.front-hero__plates {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  mix-blend-mode: multiply;
  display: none; /* Disable CMY halftone overlay over hero */
}

.front-hero__plate {
  position: absolute;
  inset: -10%;
  background-size: 4px 4px;
  background-repeat: repeat;
  filter: blur(0.18px) contrast(1.05);
  opacity: 0.9;
  mix-blend-mode: multiply;
  will-change: transform;
  transform-origin: 50% 50%;
}

.front-hero__plate--c {
  background-image: radial-gradient(
    circle,
    rgba(0, 190, 255, 0.4) 40%,
    rgba(0, 190, 255, 0) 42%
  );
  transform: rotate(15deg);
  background-position: 0 0;
}

.front-hero__plate--m {
  background-image: radial-gradient(
    circle,
    rgba(255, 60, 200, 0.4) 40%,
    rgba(255, 60, 200, 0) 42%
  );
  transform: rotate(75deg);
  background-position: 1px 2px;
}

.front-hero__plate--y {
  background-image: radial-gradient(
    circle,
    rgba(255, 220, 0, 0.35) 40%,
    rgba(255, 220, 0, 0) 42%
  );
  transform: rotate(0deg);
  background-position: 2px 0;
}

.front-hero.front-hero--typing {
  --front-hero-veil-opacity: var(--front-hero-veil-opacity-active, 0.95);
}

.front-hero.front-hero--settled {
  --front-hero-veil-opacity: var(--front-hero-veil-opacity-settled, 0.4);
}

.front-hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: auto;
  padding: calc(var(--site-header-height) + var(--admin-bar-height) - 40px) 20px
    64px;
}

.front-hero__title {
  margin: 0;
  color: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.front-hero__typing {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 1.6vw, 1.8rem);
  transform: translateY(-6%);
}

.front-hero__textbox {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: clamp(584px, 70vw, 600px);
  min-height: 220px;
  padding: 32px 40px;
  border: none;
}

.front-hero__line {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.front-hero__line--visible {
  opacity: 1;
  visibility: visible;
}

.front-hero__line--subtitle {
  margin-top: clamp(2.4rem, 4.8vw, 3.8rem);
}

.front-hero__line--tagline {
  margin-top: clamp(0.5rem, 1.4vw, 1rem);
}

.front-hero__line--cont {
  margin-top: clamp(0.35rem, 1.2vw, 0.8rem);
}

.front-hero__line--subtitle.front-hero__line--cont {
  margin-top: clamp(0.5rem, 1.6vw, 1rem);
}

.front-hero__line--tagline.front-hero__line--cont {
  margin-top: clamp(0.3rem, 1vw, 0.6rem);
}

.front-hero__line-text {
  display: block;
  min-height: 1em;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  white-space: pre-wrap;
}

@media (max-width: 768px) {
  /* Keep hero text centered on small screens */
  .front-hero__typing {
    transform: translateY(-2%);
  }

  .front-hero__textbox {
    align-items: flex-start;
    justify-content: flex-start;
    width: clamp(340px, 82vw, 560px);
    padding: 26px 22px;
    margin: 0 auto;
    text-align: left;
    text-wrap: balance;
  }

  .front-hero__line {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .front-hero__line-text {
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    letter-spacing: 0.06em;
    line-height: 1.12;
  }
}

@media (max-width: 570px) {
  .front-hero__textbox {
    width: clamp(320px, 92vw, 520px);
    padding: 22px 18px;
  }

  .front-hero__line-text {
    font-size: clamp(2rem, 6vw, 2.6rem);
    letter-spacing: 0.05em;
    line-height: 1.12;
  }
}

@media (max-width: 480px) {
  .front-hero__textbox {
    width: clamp(300px, 94vw, 480px);
    padding: 18px 14px;
  }

  .front-hero__line-text {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    letter-spacing: 0.045em;
  }
}

.front-hero__line--subtitle .front-hero__line-text,
.front-hero__line--tagline .front-hero__line-text {
  font-family: "IBM Plex Mono Thin Italic", "IBM Plex Mono", monospace;
  font-style: italic;
  font-weight: 200;
}

.front-hero__cursor {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  justify-content: center;
  width: 20px;
  height: 42px;
  margin-left: 0;
  animation: none;
}

.front-hero__cursor::before {
  content: "";
  display: block;
  width: 20px;
  height: 42px;
  background-color: #e0e0e0;
  border-radius: 2px;
}

.front-hero__cursor--blink::before {
  animation: frontHeroCursorBlink 1s steps(2, jump-none) infinite;
}

.front-hero__cursor--hidden {
  opacity: 0;
}

@keyframes frontHeroCursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.front-hero__cta {
  max-width: 240px;
}

@media (max-width: 570px) {
  .front-hero__cursor {
    width: 16px;
    height: 34px;
  }

  .front-hero__cursor::before {
    width: 16px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .front-hero__cursor {
    width: 14px;
    height: 30px;
  }

  .front-hero__cursor::before {
    width: 14px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .front-hero {
    min-height: 100svh;
    padding: 0 16px;
  }

  .front-hero__overlay {
    padding: 0;
  }

  .front-hero__content {
    padding: calc(var(--site-header-height) + var(--admin-bar-height) - 32px)
      16px 56px;
  }
}

#about-section .section-title {
  margin-top: 15px;
  margin-bottom: 45px;
}

#about-section p {
  text-align: center;
}

.profile-img {
  margin: 0 0 30px;
}

.profile-img img {
  margin: 40px auto;
}

.profile-img__image {
  display: block;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .profile-card .profile-img img {
    margin: 0 auto;
  }
}

.profile-name {
  text-align: center;
  font-size: 16px;
}

.front-section {
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.front-section:first-child {
  margin-top: 0;
}

.front-hero + .front-sections .front-section:first-child {
  margin-top: 0;
}

@media (max-width: 768px) {
  .front-section {
    padding: 0 24px;
  }

  .front-sections {
    gap: 64px;
    padding-top: 64px;
  }
}

@media (max-width: 570px) {
  .front-section {
    padding: 0 8px;
  }
}

.front-section--works {
  max-width: none;
  width: 100%;
  text-align: center;
}

.front-section--works .section-title {
  margin-left: auto;
  margin-right: auto;
}

.front-section--blog,
.front-section--about,
.front-section--sketchbook {
  text-align: center;
}

.front-section--blog {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.front-blog-aphorism {
  margin: 0 0 40px;
  font-size: 16px;
  color: #aaaaaa;
  text-align: center;
}

.front-section--sketchbook .section-title {
  margin-left: auto;
  margin-right: auto;
}

.front-section .section-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sketchbook-embed {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 40px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.sketchbook-embed::before {
  content: "";
  display: block;
  padding-top: 62.5%;
}

.sketchbook-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
  background-color: #111;
}

.front-page .front-section p {
  font-size: 16px;
  line-height: 1.6;
}

.more-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 10px;
  border: 2px solid #0078d7ff;
  background-color: transparent;
  color: #0078d7ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.more-button::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background-color: #0078d7ff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  z-index: -1;
}

.more-button:hover,
.more-button:focus-visible {
  color: #e0e0e0;
  border: 2px solid #0078d7ff;
  border-color: #0078d7ff;
}

.more-button:hover::before,
.more-button:focus-visible::before {
  transform: scaleX(1);
}

.more-button:focus-visible {
  outline: 3px solid rgba(0, 120, 215, 0.4);
  outline-offset: 3px;
}

.more-button--external:focus {
  color: #e0e0e0;
  border: 2px solid #0078d7ff;
  border-color: #0078d7ff;
  outline: 3px solid rgba(0, 120, 215, 0.4);
  outline-offset: 3px;
}

.more-button--external:focus::before {
  transform: scaleX(1);
}

.front-page a {
  color: unset;
}

/* Keep "more-button" styling consistent when placed inside page content */
.entry-content .more-button,
.entry-content .more-button:visited {
  color: #0078d7ff;
  border-color: #0078d7ff;
  text-decoration: none;
}

.entry-content .more-button:hover,
.entry-content .more-button:focus-visible {
  color: #e0e0e0;
  border-color: #0078d7ff;
}

.entry-content .more-button:hover::before,
.entry-content .more-button:focus-visible::before {
  transform: scaleX(1);
}

/* Works listing pages: match front-page button treatment */
body.post-type-archive-works .more-button,
body.tax-kind .more-button,
body.single-works .more-button {
  text-decoration: none;
  color: #0078d7ff;
  border-color: #0078d7ff;
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

body.post-type-archive-works .more-button:hover,
body.post-type-archive-works .more-button:focus-visible,
body.tax-kind .more-button:hover,
body.tax-kind .more-button:focus-visible,
body.single-works .more-button:hover,
body.single-works .more-button:focus-visible {
  color: #e0e0e0;
  border-color: #0078d7ff;
}

body.post-type-archive-works .more-button:hover::before,
body.post-type-archive-works .more-button:focus-visible::before,
body.tax-kind .more-button:hover::before,
body.tax-kind .more-button:focus-visible::before,
body.single-works .more-button:hover::before,
body.single-works .more-button:focus-visible::before {
  transform: scaleX(1);
}
/* ==========================================================================
   ##投稿
   ========================================================================== */
/* 投稿リスト */
.entry-content-list {
  height: 100%;
  margin-bottom: 20px;
  padding: 40px;
  border-radius: 6px;
  background-color: #282828;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.6s ease;
  box-shadow: 2px 2px 10px 1px rgba(0, 0, 0, 0.2); /* より具体的な設定が可能 */
  transform: translate(0); /* 初期状態では変形なし */
  text-align: left;
}

.entry-content-list:hover {
  box-shadow: 2px 4px 20px 2px rgba(0, 0, 0, 0.3); /* ホバー時に影を強調 */
  transform: translateY(-3px); /* ホバー時に垂直方向に3px上へ移動 */
}

@media (max-width: 570px) {
  .entry-content-list {
    padding: 20px;
  }
}

.single-post .single-article {
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 570px) {
  .single-post .single-article {
    margin: 0;
  }
}

.single-post .single-article .entry-content {
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 6px;
  background-color: #282828;
  border: none;
  box-shadow: 2px 2px 10px 1px rgba(0, 0, 0, 0.2);
}

@media (max-width: 570px) {
  .single-post .single-article .entry-content {
    padding: 12px;
  }
}

.single-post .single-article .entry-content > *:first-child {
  margin-top: 0;
}

.single-post .single-article .entry-content > *:last-child {
  margin-bottom: 0;
}

.blog .site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px) clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 570px) {
  .blog .site-main {
    padding: 0;
  }
}

.blog .site-main article {
  width: 100%;
}

.blog .entry-content-list {
  width: 100%;
  margin-bottom: 0;
}

@media (max-width: 570px) {
  .blog .entry-content-list {
    padding: 20px;
  }
}

@media (max-width: 570px) {
  .front-page .front-section--blog .entry-content-list {
    padding: 20px;
  }
}

.blog .site-main > header {
  width: 100%;
  margin-bottom: clamp(16px, 3vw, 50px);
}

.page-template-page-archives .archives-page-header {
  text-align: center;
  margin-bottom: clamp(16px, 4vw, 32px);
}

.page-template-page-archives .site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px) clamp(40px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

@media (max-width: 570px) {
  .page-template-page-archives .site-main {
    padding: 0;
  }
}

.page-template-page-archives .site-content-inner {
  width: 100%;
}

@media (max-width: 1080px) {
  .entry-content-list {
    width: auto;
    height: auto;
    margin-left: 0px;
    border-left: none;
  }
}

h2.entry-title,
.front-page h2.entry-title {
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.4;
  font-size: 22px;
  color: #e0e0e0;
  font-weight: 400;
}

@media (max-width: 1080px) {
  .entry-title {
    font-size: 18px;
  }
}

.entry-post-date {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #aaaaaa;
}

.entry-text {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}

.entry-text p {
  margin-bottom: 2px;
}

.entry-author {
  display: inline-block;
  font-size: 14px;
}

.fa-pen::before {
  content: "\f040";
  font-family: fontawesome;
}

.entry-footer {
  width: auto;
  bottom: 16px;
}

@media (max-width: 1080px) {
  .entry-footer {
    position: static;
  }
}
/* 投稿シングルページ
----------------------------------------------------------------- */
.single-article header {
  margin: 30px 0px;
}

h1.entry-title {
  margin: 0px 0px 30px;
  font-size: 28px;
}

.entry-content h2 {
  font-size: 24px;
  padding-top: 24px;
  border-bottom: 2px solid #b0b0b0;
  padding-bottom: 0.3em;
}

.single-article h3,
.type-page h3 {
  font-size: 20px;
}

.page-template-page-about .entry-content h2,
.page-template-page-contact .entry-content h2,
.page-template-page-contect .entry-content h2,
.page-template-page-about .entry-content h3,
.page-template-page-contact .entry-content h3,
.page-template-page-contect .entry-content h3 {
  font-family: "IBM Plex Mono", monospace;
}

.page-template-page-about .single-article header,
.page-template-page-contact .single-article header,
.page-template-page-contect .single-article header {
  margin-top: 0;
  margin-bottom: 48px;
}

.tags-links {
  display: block;
}

.single-article img {
  width: 100%;
}

blockquote {
  margin: 0px 0px 20px 0px;
  font-size: 16px;
  color: #e0e0e0;
  font-weight: 400;
}

blockquote::before {
  position: static;
  font-size: 16px;
  color: #e0e0e0;
}

.wp-block-quote {
  font-weight: inherit;
}

#toc_container {
  margin-bottom: 40px;
  padding: 20px;
  border: 1px solid #555;
  font-size: 14px;
}

#toc_container p.toc_title {
  text-align: left;
}

#toc_container > ul > li {
  margin-bottom: 10px;
}

#toc_container > ul > li:last-child {
  margin-bottom: 0px;
}

#toc_container a {
  color: #e0e0e0;
}

#toc_container a:hover {
  color: #276ef1;
}

.single-article .entry-footer {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid #555;
}

.single-article .entry-footer .entry-title {
  margin: 0px 0px 20px;
  font-size: 20px;
  font-weight: bold;
}

.share-btn > ul {
  margin-left: 0px;
}

.share-btn > ul > li {
  display: inline-block;
  margin-right: 16px;
}

.share-btn a {
  font-size: 20px;
}

.share-btn a:hover {
  color: #fd751e;
}

.hatena {
  position: relative;
  top: 7px;
  right: 4px;
}

.navigation.post-navigation {
  border-bottom: none;
  border-top: 0px;
}

.single-post #primary {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

.single-post .site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 40px);
  min-height: calc(100vh - var(--site-header-height) - var(--admin-bar-height));
}

.single-post .site-content-inner.single-article {
  flex: 1;
}

.single-post .navigation.post-navigation {
  margin-top: auto;
}

.nav-previous {
  text-align: left;
}

.nav-next {
  text-align: right;
}
/* 投稿のタグ
----------------------------------------------------------------- */
.tags-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.tags-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 400;
  background-color: #353555;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tags-links a:hover,
.tags-links a:focus-visible {
  background-color: #4c4c77;
  color: #e0e0e0;
  text-decoration: none;
  outline: none;
}
/* ##タグクラウドページ
----------------------------------------------------------------- */
.tag-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

li.tag-box {
  float: left;
  margin: 0 10px 10px 0;
}

li.tag-box:last-child {
  margin-bottom: 30px;
}

.tag-link-area {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.tag-card {
  position: relative;
  padding: 10px;
  min-height: 80px;
  border-radius: 10px;
  background-color: #353555;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.tag-card:hover,
.tag-link-area:focus-visible .tag-card {
  background-color: #4c4c77;
  outline: none;
}

.tag-data {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #e0e0e0;
}

.tag-name {
  display: inline-block;
  font-size: 14px;
}

.tag-count {
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
/* ##固定ページ-------------------------------------------------------- */
.type-page .entry-header {
  padding: 0;
}

.type-page li {
  margin-bottom: 16px;
}

.entry-content a {
  color: #e0e0e0;
  text-decoration: none;
}

.entry-content a:hover {
  color: #276ef1;
}

/* ###Aboutページ */
/* 経歴表 */
.timeline {
  position: relative;
  list-style: none;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 46px;
  left: 47px; /* Align with the center of the marker */
  width: 2px;
  background: #555555a3;
  z-index: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column; /* Align items vertically */
  align-items: flex-start; /* Align items to the start of the flex container */
}

.timeline-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #282828;
  border: 3px solid #4f4f80;
  position: absolute;
  top: 5px;
  left: 40px; /* Position marker to the left side */
  z-index: 1;
}

.timeline-date,
.timeline-content {
  padding-left: 70px;
}

.timeline-content p,
.timeline-link {
  margin-top: 4px;
  margin-bottom: 4px; /* Provide spacing between elements */
}

.timeline-item:hover .timeline-marker {
  background-color: #276ef1;
}

.timeline-item:hover .timeline-content p {
  text-decoration: underline;
  text-decoration-color: #fd751e;
}

.career {
  margin-left: 0;
  margin-right: 0;
}

.career tbody {
  vertical-align: top;
}

.career tr {
  border-bottom: solid 2px #555;
  background-color: #282828;
}

.entry-content td {
  padding: 5px;
  border: 1px solid #555;
  background-color: #282828;
}

/* Style the tab */
.tab {
  display: flex; /* Flexboxを使用してアイテムを横並びにします */
  width: 100%; /* 親要素の幅いっぱいに広げます */
  overflow: hidden;
  background-color: #444;
}

/* Style the buttons inside the tab */
.tab button {
  flex: 1; /* Flexアイテムの幅を均等にします */
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
}

/* Change background color of buttons on hover */
/* .tab button:hover {
  background-color: #ddd;
} */

/* Create an active/current tablink class */
.tab button.active {
  border-bottom: solid 2px #fd751e;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 20px 12px 12px;
}
/* Style the tab end */

@media (max-width: 480px) {
  .career td {
    display: inline-block;
  }
}

/* ##ブログアーカイブページ */
.timeline--archives {
  width: 100%;
  max-width: 640px;
  margin: 0 auto clamp(40px, 6vw, 72px);
}

.timeline--archives:before {
  bottom: 0;
}

.timeline-archive-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 0 12px 0;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.timeline-archive-link:focus-visible {
  outline: 2px solid #276ef1;
  outline-offset: 6px;
}

.timeline-item--archives:last-child {
  margin-bottom: 0;
}

.timeline-item--archives .timeline-date {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #aaaaaa;
}

.timeline-archive-title {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #e0e0e0;
}

.timeline-archive-link:hover .timeline-marker,
.timeline-archive-link:focus-visible .timeline-marker,
.timeline-item--archives:hover .timeline-marker,
.timeline-item--archives:focus-within .timeline-marker {
  background-color: #276ef1;
}

.timeline-archive-link:hover .timeline-archive-title,
.timeline-archive-link:focus-visible .timeline-archive-title,
.timeline-item--archives:hover .timeline-archive-title,
.timeline-item--archives:focus-within .timeline-archive-title {
  color: #276ef1;
}

@media (max-width: 768px) {
  .timeline-item--archives .timeline-date {
    margin-bottom: 10px;
  }
}

@media (max-width: 570px) {
  .timeline--archives {
    max-width: none;
    margin: 0 0 clamp(32px, 6vw, 56px);
  }

  .timeline--archives:before {
    left: 32px;
  }

  .timeline--archives .timeline-marker {
    left: 25px;
  }

  .timeline--archives .timeline-date,
  .timeline--archives .timeline-content {
    padding-left: 54px;
  }
}
/* ##Works
----------------------------------------------------------------- */
/* リスト表示用カードデザイン */
/* .content-works-container のスタイリング */
.content-works-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列のグリッド */
  grid-gap: 20px; /* グリッド間の隙間 */
  margin: 0 auto 40px; /* 中央揃え */
}

/* .content-works-container の子要素のスタイリング */
.content-works-container > div {
}

/* レスポンシブデザインの設定 */
@media (max-width: 1080px) {
  .container {
    width: auto; /* コンテナの幅を自動調整 */
    padding: 0 20px; /* パディングを小さくする */
  }

  .content-works-container {
    grid-template-columns: repeat(2, 1fr); /* 中幅デバイスで2列に */
  }
}

@media (max-width: 768px) {
  .content-works-container {
    grid-template-columns: 1fr; /* 小幅デバイスで1列に */
  }
}

/* サムネイル画像のアスペクト比を1:1で固定するために追加 */
.post-image-works {
  height: 0;
  padding-top: 100%;
  position: relative;
  overflow: hidden;
}

.post-image-works img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-image-works::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.entry-content-list-works:hover .post-image-works::after {
  opacity: 0;
}

.entry-content-list-works {
  display: flex; /* フレックスコンテナを設定 */
  flex-direction: column; /* 子要素を縦方向に並べる */
  justify-content: flex-start;
  height: 100%; /* コンテナの高さを適切に設定、必要に応じて調整 */
  border-radius: 6px;
  background-color: hsl(0, 0%, 16%);
  border: none;
  transition: transform 0.3s ease, box-shadow 0.6s ease;
  box-shadow: 2px 2px 10px 1px rgba(0, 0, 0, 0.2); /* 初期状態のシャドウ設定 */
  transform: translate(0); /* 初期状態では変形なし */
}

.entry-content-list-works:hover {
  box-shadow: 2px 4px 20px 2px rgba(0, 0, 0, 0.3); /* ホバー時に影を強調 */
  transform: translateY(-3px); /* ホバー時に垂直方向に3px上へ移動 */
}

@media (max-width: 768px) {
  .post-image-works::after,
  .entry-content-list-works:hover .post-image-works::after {
    opacity: 0;
  }

  .entry-content-list-works:hover {
    box-shadow: 2px 2px 10px 1px rgba(0, 0, 0, 0.2);
    transform: none;
  }
}

.entry-footer-works {
  margin-top: auto; /* その他の要素との間に自動的にスペースを作り、底部に配置 */
  padding: 0px 20px 20px 20px;
}

.entry-footer-works .post-terms {
  margin: 0;
  padding: 0;
}

.entry-content-list-works-cardinfo {
  padding: 20px;
}

.work-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: left;
}

.work-card__link:visited,
.work-card__link:hover,
.work-card__link:focus,
.work-card__link:active {
  color: inherit;
}

.work-card__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.work-card__title-line {
  margin: 0;
  line-height: 1.4;
  font-size: 16px;
}

.work-card__medium {
  margin: 0;
  line-height: 1.6;
  font-size: 14px;
  color: #aaaaaa;
}

.work-card__tags {
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  justify-content: flex-start;
  align-items: center;
}

.work-card__tag-item {
  margin: 0;
  padding: 0;
}

.work-card {
  --work-tag-bg: var(--works-accent-bg, hsl(148 22% 20%));
  --work-tag-bg-hover: var(--works-accent-bg-hover, #419ea7);
  --work-tag-fg: var(--works-accent-fg, hsl(148 30% 70%));
  --work-tag-fg-hover: var(--works-accent-fg-hover, hsl(148 32% 78%));
}

.work-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 400;
  text-decoration: none;
  background-color: var(--work-tag-bg);
  color: var(--work-tag-fg);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.work-tag:hover,
.work-tag:focus-visible {
  background-color: var(--work-tag-bg-hover);
  color: var(--work-tag-fg-hover);
  text-decoration: none;
  outline: none;
}

/* Work single detail ------------------------------------------------------- */
.work-detail {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 5vw, 44px);
}

.single-article .work-detail__header {
  margin: 0 0 clamp(16px, 4vw, 28px);
  padding: 0;
  border: none;
}

.single-article .work-detail__header::before,
.single-article .work-detail__header::after {
  content: none;
}

.single-article .entry-footer {
  border: none;
  padding-top: 0;
}

.work-detail__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.work-detail__kinds {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.work-detail__kinds li {
  list-style: none;
}

.work-detail__tags {
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.work-detail__tag-item {
  margin: 0;
}

.single-article .work-detail__content {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 48px);
  box-sizing: border-box;
}

.work-detail__kinds-list,
.work-detail__tags-list {
  width: 100%;
  max-width: 800px;
  margin: clamp(24px, 4vw, 48px) auto 0;
  text-align: left;
}

.single-works .work-detail__kinds-list {
  margin-top: 0;
}

.work-detail__content figure {
  margin: 0 0 clamp(16px, 4vw, 32px);
}

.single-article .work-detail__frame--featured {
  width: 100%;
}

.single-article .work-detail__image--featured {
  display: block;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  margin-left: auto;
}

.single-article .work-detail__frame--constrained {
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.single-article .work-detail__image--constrained {
  width: 100%;
}

.work-detail__content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  cursor: zoom-in;
}

.single-article .work-detail__content h1,
.single-article .work-detail__content h2,
.single-article .work-detail__content h3,
.single-article .work-detail__content h4,
.single-article .work-detail__content h5,
.single-article .work-detail__content h6,
.single-article .work-detail__content p,
.single-article .work-detail__content ul,
.single-article .work-detail__content ol,
.single-article .work-detail__content blockquote,
.single-article .work-detail__content pre,
.single-article .work-detail__content table,
.wp-element-caption {
  max-width: 800px;
  margin: 0 auto clamp(18px, 3vw, 28px);
}

.single-article .work-detail__content ul,
.single-article .work-detail__content ol {
  list-style-position: inside;
  padding-left: 1.2em;
}

.single-article .work-detail__content > *:first-child {
  margin-top: 0;
}

@media (max-width: 768px) {
  .single-article .work-detail__content {
    padding: 0;
  }
}

.single-article .work-detail__hero {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 40px);
  align-items: stretch;
  margin-bottom: 60px;
}

.single-article .work-detail__hero > figure,
.single-article .work-detail__hero > .work-detail__meta-block {
  flex: 1 1 0;
  min-width: min(340px, 100%);
}

.single-article .work-detail__hero > figure {
  flex: 2 1 0;
  margin: 0;
  position: relative;
  min-height: var(--work-detail-featured-max-height, 70vh);
  height: var(--work-detail-featured-max-height, 70vh);
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 0;
  box-sizing: border-box;
}

.single-article .work-detail__hero figcaption {
  position: absolute;
  bottom: var(--work-detail-hero-padding);
  left: var(--work-detail-hero-padding);
  margin: 0;
  padding: 6px 12px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 6px;
  text-align: left;
  pointer-events: none;
}

.single-article .work-detail__hero > .work-detail__meta-block {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
}

.single-article .work-detail__meta-code {
  width: 100%;
  margin: 0;
  height: auto;
  background-color: #282828;
  border-radius: 8px;
  padding: 16px 20px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.single-article .work-detail__meta-block {
  position: relative;
}

.single-article .work-detail__meta-code {
  position: relative;
  padding-bottom: 60px;
}

.single-article .work-detail__meta-kinds {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.single-article .work-detail__meta-kinds .work-detail__kinds {
  margin: 0;
}

.single-article .work-detail__meta-kinds .work-detail__kinds a {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 8px;
  background-color: #18434887;
  color: #e0e0e0;
  text-decoration: none;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.single-article .work-detail__meta-kinds .work-detail__kinds a:hover,
.single-article .work-detail__meta-kinds .work-detail__kinds a:focus-visible {
  background-color: #377b82;
  color: #e0e0e0;
  text-decoration: none;
  outline: none;
}

.single-article .work-detail__meta-item {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo",
    "Helvetica Neue", "Arial", sans-serif;
  line-height: 1.5;
}

.single-article .work-detail__meta-item--primary {
  font-size: 16px;
  color: #e0e0e0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.single-article .work-detail__meta-item--secondary {
  font-size: 14px;
  color: #aaaaaa;
}

.single-article .work-detail__meta-divider {
  height: 12px;
}

.single-article .work-detail__hero .work-detail__meta-code {
  margin: 0;
}

.single-article .work-detail__meta-note {
  max-width: 800px;
  margin: 8px auto 0;
  color: #e0e0e0;
  line-height: 1.6;
  flex: 0 1 auto;
  width: auto;
  align-self: center;
}

.single-article .work-detail__meta-note:first-of-type {
  margin-top: 80px;
}

.single-article .work-license-info {
  text-align: center;
}

.single-article .work-license-info img {
  width: auto;
  height: 22px;
  max-height: 22px;
  display: inline-block;
  vertical-align: middle;
}

.single-article .work-detail__review-comment {
  max-width: 800px;
  margin: 24px auto 0;
  padding: 18px 22px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: #e6e6e6;
  line-height: 1.6;
  white-space: pre-wrap;
}

.single-article .work-detail__review-comment::before {
  content: "Review note";
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
}

.single-works .entry-content::before,
.single-works .entry-content::after {
  content: none;
  display: none;
}

@media (max-width: 1080px) {
  .single-article .work-detail__hero {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .single-article .work-detail__hero > figure {
    min-height: auto;
    height: auto;
    align-self: stretch;
  }

  .single-article .work-detail__image--featured {
    height: auto;
    max-height: none;
    width: 100%;
  }

  .single-article .work-detail__hero figcaption {
    position: static;
    margin: 12px 0 0;
    padding: 10px 12px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    border-radius: 8px;
  }
}

.work-detail__single-frame {
}

.work-detail__single-image {
  width: 100%;
  height: auto;
  max-height: calc(100vh - clamp(140px, 22vh, 240px));
  object-fit: contain;
}

.work-detail__content img:hover,
.work-detail__single-image:hover {
  transform: none;
  box-shadow: none;
}

.work-detail-modal[hidden] {
  display: none;
}

.work-detail-modal {
  --work-modal-padding: clamp(16px, 4vw, 48px);
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--work-modal-padding);
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1200;
}

.work-detail-modal--visible {
  opacity: 1;
  visibility: visible;
}

.work-detail-modal__figure {
  margin: 0;
  width: min(1200px, calc(100vw - var(--work-modal-padding) * 2));
  height: min(100vh - var(--work-modal-padding) * 2, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.work-detail-modal__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--work-modal-padding) * 2);
  border-radius: 0;
  object-fit: contain;
  background: #111;
}

.work-detail-modal__close {
  position: absolute;
  top: clamp(16px, 4vw, 40px);
  right: clamp(16px, 4vw, 40px);
  font-size: 28px;
  line-height: 1;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
}

.work-detail-modal__close::before {
  content: "×";
}

.work-detail-modal__close:hover,
.work-detail-modal__close:focus-visible {
  color: #e0e0e0;
  outline: none;
}

body.work-detail-modal-open {
  overflow: hidden;
}

.work-detail-nav__btn {
  position: fixed;
  bottom: clamp(20px, 6vw, 60px);
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: "IBM Plex Mono", monospace;
  font-size: 22px;
  transition: color 0.3s ease;
  z-index: 950;
}

.work-detail-nav__btn--prev {
  left: clamp(16px, 5vw, 48px);
}

.work-detail-nav__btn--next {
  right: clamp(16px, 5vw, 48px);
}

.work-detail-nav__icon {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: "IBM Plex Mono", monospace;
  font-size: inherit;
  pointer-events: none;
  letter-spacing: -2px;
}

.work-detail-nav__segment {
  display: inline-block;
  min-width: 0.6ch;
  text-align: center;
  color: inherit;
}

.work-detail-nav__btn:hover,
.work-detail-nav__btn:focus-visible {
  color: rgba(255, 255, 255, 0.85);
  outline: none;
}

@media (max-width: 768px) {
  .work-detail-nav__btn {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  }
}

.work-detail-nav__btn--prev:hover .work-detail-nav__segment,
.work-detail-nav__btn--prev:focus-visible .work-detail-nav__segment {
  animation: work-detail-nav-flick-prev 0.9s steps(3, jump-end) forwards;
}

.work-detail-nav__btn--next:hover .work-detail-nav__segment,
.work-detail-nav__btn--next:focus-visible .work-detail-nav__segment {
  animation: work-detail-nav-flick-next 0.9s steps(3, jump-end) forwards;
}

.work-detail-nav__btn--prev:hover .work-detail-nav__segment:nth-child(1),
.work-detail-nav__btn--prev:focus-visible
  .work-detail-nav__segment:nth-child(1) {
  animation-delay: 0.18s;
}

.work-detail-nav__btn--prev:hover .work-detail-nav__segment:nth-child(2),
.work-detail-nav__btn--prev:focus-visible
  .work-detail-nav__segment:nth-child(2) {
  animation-delay: 0.09s;
}

.work-detail-nav__btn--prev:hover .work-detail-nav__segment:nth-child(3),
.work-detail-nav__btn--prev:focus-visible
  .work-detail-nav__segment:nth-child(3) {
  animation-delay: 0s;
}

.work-detail-nav__btn--next:hover .work-detail-nav__segment:nth-child(1),
.work-detail-nav__btn--next:focus-visible
  .work-detail-nav__segment:nth-child(1) {
  animation-delay: 0s;
}

.work-detail-nav__btn--next:hover .work-detail-nav__segment:nth-child(2),
.work-detail-nav__btn--next:focus-visible
  .work-detail-nav__segment:nth-child(2) {
  animation-delay: 0.09s;
}

.work-detail-nav__btn--next:hover .work-detail-nav__segment:nth-child(3),
.work-detail-nav__btn--next:focus-visible
  .work-detail-nav__segment:nth-child(3) {
  animation-delay: 0.18s;
}

@keyframes work-detail-nav-flick-prev {
  0%,
  32% {
    opacity: 1;
    color: rgba(255, 255, 255, 0.85);
  }
  33%,
  48% {
    opacity: 0.15;
  }
  49%,
  68% {
    opacity: 0.15;
  }
  100% {
    opacity: 1;
    color: #e0e0e0;
  }
}

@keyframes work-detail-nav-flick-next {
  0%,
  32% {
    opacity: 1;
    color: rgba(255, 255, 255, 0.85);
  }
  33%,
  48% {
    opacity: 0.15;
  }
  49%,
  68% {
    opacity: 0.15;
  }
  100% {
    opacity: 1;
    color: #e0e0e0;
  }
}

@media (max-width: 768px) {
  .work-detail__single-image {
    max-height: calc(100vh - clamp(160px, 28vh, 280px));
  }
}

.entry-text-works > p {
  margin-bottom: 0;
}

.entry-title-works {
  margin-bottom: 10px;
}

.entry-text-works {
  font-size: 16px;
  line-height: 1.6;
}

.front-page .entry-text {
  text-align: left;
}

.front-page .post-terms {
  text-align: left;
}

/* リスト表示用カードデザイン 終了*/

.works-term-list {
  margin: 0px 0px 16px;
}

.works-term-list li {
  display: inline-block;
  padding: 2px 2px 6px;
}

.post-terms {
  display: block;
}

.works-term-list,
.post-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  list-style: none;
}

.works-term-list a,
.post-terms a {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  font-size: 14px;
  line-height: 1.2;
  border-radius: 8px;
  background-color: #18434887;
  color: #e0e0e0;
  text-decoration: none;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.works-term-list a:hover,
.works-term-list a:focus-visible,
.post-terms a:hover,
.post-terms a:focus-visible {
  background-color: #377b82;
  color: #e0e0e0;
  text-decoration: none;
  outline: none;
}

/* ##検索 */
.no-result,
.not-found > .page-content > form > i {
  position: absolute;
  top: 10px;
  left: 10px;
}
.no-result,
.not-found > .page-content > form > #search-close-btn {
  display: none;
}

.search-results .single-article,
.search-results .type-page {
  border: 1px solid #555;
}

@media (max-width: 768px) {
  .single-works figure {
    margin: 0 auto;
  }
}

/* ##404 */
.not-found img {
  margin: 50px auto;
}

/* TranslatePress floating language switcher */
.trp-language-switcher.trp-floating-switcher {
  right: 16px !important;
  left: auto !important;
}

.trp-language-item-name {
  font-family: "IBM Plex Mono", monospace !important;
}

.trp-language-switcher.trp-floating-switcher .trp-language-switcher-language,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > a,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > span,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  .trp-language-item-name,
.trp-language-switcher.trp-floating-switcher a,
.trp-language-switcher.trp-floating-switcher button {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  color: #e0e0e0 !important;
  text-decoration: none !important;
  background: transparent !important;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.3s ease;
}

.trp-language-switcher.trp-floating-switcher .trp-language-switcher-language,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > a,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > span,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  .trp-language-item-name {
  background-color: rgba(0, 0, 0, 0.3) !important;
  border-radius: 6px;
}

.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language.trp-language-item__current
  .trp-language-item-name {
  color: rgba(255, 255, 255, 0.65) !important;
  text-decoration: underline !important;
  text-decoration-color: #0078d7;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language::before,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > a::before,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > span::before,
.trp-language-switcher.trp-floating-switcher a::before,
.trp-language-switcher.trp-floating-switcher button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: #0078d7ff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
  z-index: -1;
}

.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language:hover,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > a:hover,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > span:hover,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language:focus-visible,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > a:focus-visible,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > span:focus-visible,
.trp-language-switcher.trp-floating-switcher a:hover,
.trp-language-switcher.trp-floating-switcher a:focus-visible,
.trp-language-switcher.trp-floating-switcher button:hover,
.trp-language-switcher.trp-floating-switcher button:focus-visible {
  color: #e0e0e0 !important;
}

.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language:hover::before,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language:focus-visible::before,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > a:hover::before,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > a:focus-visible::before,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > span:hover::before,
.trp-language-switcher.trp-floating-switcher
  .trp-language-switcher-language
  > span:focus-visible::before,
.trp-language-switcher.trp-floating-switcher a:hover::before,
.trp-language-switcher.trp-floating-switcher a:focus-visible::before,
.trp-language-switcher.trp-floating-switcher button:hover::before,
.trp-language-switcher.trp-floating-switcher button:focus-visible::before {
  transform: scaleX(1);
}

.wp-block-preformatted {
  border: none !important;
}
