:root {
  --color-white: #fff;
  --color-black: #000;
  --color-dark-gray: #46464f;
  --color-light-gray: #d9d9d9;
  --color-gray: #979797;

  /* Font family custom properties */
  --font-noto-sans-cham: "Noto Sans Cham", sans-serif;
  --font-akatab: Akatab, sans-serif;
  --font-shippori-mincho: "Shippori Mincho", serif;
  --font-coda-caption: "Coda Caption", sans-serif;
  --font-shippori-mincho-alt: "Shippori Mincho", serif;
  --font-adlam-display: "ADLaM Display", sans-serif;
  --font-hiragino-sans: "Hiragino Sans", sans-serif;
  --font-inria-sans: "Inria Sans", sans-serif;
  --font-al-bayan: "Al Bayan", sans-serif;
  --font-lisu-bosa: "Lisu Bosa", serif;
  --font-inknut-antiqua: "Inknut Antiqua", serif;
  --font-mukta: Mukta, sans-serif;
}

[data-scroll] {
  --scroll-translate-x: 0;
  --scroll-translate-y: 0;
  --scroll-scale: 1;
  --scroll-duration: 0.75s;
  --scroll-delay: 0s;
  --scroll-ease: cubic-bezier(0.23, 1, 0.32, 1);
}
.has-scroll-anim [data-scroll] {
  opacity: 0;
  transform: translate3d(var(--scroll-translate-x), var(--scroll-translate-y), 0) scale(var(--scroll-scale));
  transition: opacity var(--scroll-duration) var(--scroll-ease), transform var(--scroll-duration) var(--scroll-ease);
  transition-delay: var(--scroll-delay);
  will-change: opacity, transform;
}
.has-scroll-anim [data-scroll].is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .has-scroll-anim [data-scroll] {
    transition: none;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Layout helpers */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 3rem;
}

/* Typography */
body {
  font-family: var(--font-inria-sans);
  line-height: 1.6;
  color: var(--color-black);
  background: var(--color-white);
  position: relative;
}
/* Additional theme styles */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.entry-header h1,
.entry-header h2 {
  margin: 0 0 0.5rem;
}

.pagination {
  margin: 1.5rem 0;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  z-index: 10;
}
.site-header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}
.site-header .container {
  position: relative;
}
.site-branding .brand-link {
  text-decoration: none;
  color: inherit;
}
.brand-ja {
  font-family: var(--font-noto-sans-cham);
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-white);
}
.brand-en {
  font-family: var(--font-noto-sans-cham);
  font-size: 1rem;
  margin: 0;
  color: var(--color-white);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-navigation {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.header-navigation .menu {
  flex-direction: row;
  gap: 1.5rem;
}
.header-navigation a {
  font-family: var(--font-akatab);
  font-size: 1.25rem;
  color: var(--color-white);
  text-decoration: none;
}
.header-navigation a:hover {
  color: var(--color-dark-gray);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  text-decoration-thickness: 0.125rem;
  text-decoration-color: var(--color-dark-gray);
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-skip: none;
}

/* Hamburger placed absolutely on top-right */
.hamburger {
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
  width: 2rem;
  height: 1.75rem;
  cursor: pointer;
}
.hamburger__bar {
  width: 100%;
  height: 0.125rem;
  background: var(--color-white);
}

.hamburger:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* Drawer menu (no sticky) */
.menu-drawer {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-white);
  border: 1px solid #eee;
  padding: 0.75rem 1rem;
  display: none;
  z-index: 10;
}
.menu-drawer.is-open {
  display: block;
}
.menu-drawer .menu {
  flex-direction: column;
  gap: 0.5rem;
}
.menu-drawer a {
  color: var(--color-black);
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--color-dark-gray);
  padding: 6rem 0 1rem 0;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.site-footer .footer-navigation {
  border-bottom: 1px solid var(--color-white);
  padding-bottom: 1.25rem;
  margin-bottom: 1rem;
}
.site-footer .footer-navigation .menu {
  flex-direction: row;
  gap: 1.5rem;
}
.site-footer .footer-navigation a {
  font-family: var(--font-akatab);
  font-size: 1.25rem;
  color: var(--color-white);
  text-decoration: none;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6rem 0;
  gap: 1.5rem;
}
.footer-logo {
  margin-bottom: 1rem;
}
.footer-logo .brand-link {
  text-decoration: none;
  color: var(--color-white);
}
.footer-info {
  text-align: center;
  margin-bottom: 1rem;
}
.footer-info p {
  font-family: var(--font-noto-sans-cham);
  font-size: 1rem;
  margin: 0;
}
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  padding-bottom: 3rem;
}
.footer-links a {
  color: var(--color-white);
  text-decoration: none;
}
.footer-copyright {
  margin: 0;
}

/* Header color variant: header-black */
body.header-black .site-header .brand-link,
body.header-black .site-header .brand-ja,
body.header-black .site-header .brand-en,
body.header-black .site-header .header-navigation a {
  color: var(--color-black);
}
body.header-black .site-header .hamburger__bar {
  background: var(--color-black);
}

/* page template */
.page-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-container {
  max-width: 1200px;
  padding: 8rem 2rem 8rem;
  margin: 0 auto;
}
.page-header {
  margin: 0 0 2rem;
}
.page-title-container {
  display: flex;
  flex-direction: column;
  padding-bottom: 3rem;
}
.page-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 110.961%;
  letter-spacing: -0.96px;
  margin: 0;
}
.page-title__subtitle {
  font-size: 1.25rem;
  margin: 0;
}

.page-rule {
  border: 0;
  height: 1px;
  background: var(--color-black);
  margin: 0;
}

/* Page template noimage */
.page-hero-noimage {
  background: var(--color-light-gray);
  margin: 6rem 0 0;
  padding: 5rem 3rem;
}
.page-hero-noimage .page-title-container {
  padding-bottom: 0;
}

/* Page template wp-content */
.wp-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.wp-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 110.961%;
  letter-spacing: -0.96px;
  margin: 0;
}
.wp-content {
  padding-top: 4rem;
}
.wp-content p {
  font-size: 1.25rem;
  margin: 0;
  padding: 4rem 3rem;
}

/* Component: c-pagination (shared) */
.c-pagination {
  margin-top: 3rem;
}
.c-pagination__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
}
.c-pagination__item a,
.c-pagination__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.25rem;
  background: var(--color-light-gray);
  color: var(--color-black);
  text-decoration: none;
}

.c-pagination__item.is-prev a,
.c-pagination__item.is-next a {
  background: transparent;
  width: 2rem;
  height: 2rem;
  padding: 0;
  align-items: flex-end;
}
.c-pagination__item.is-active a,
.c-pagination__item.is-active span {
  background: var(--color-dark-gray);
  color: var(--color-white);
}
.c-pagination__item.is-prev img,
.c-pagination__item.is-next img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  align-items: flex-end;
}
.c-pagination__item.is-prev img {
  transform: rotate(180deg);
}

@media (max-width: 1024px) {
  .header-navigation .menu {
    display: none;
  }
}
