/* ============================================================
   kokonto WordPress Theme — Main Stylesheet
   Compiled from Next.js source: globals.css + component styles
   ============================================================ */

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-list > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-list.is-revealed > *:nth-child(1) { opacity:1; transform:translateY(0); transition-delay:0ms; }
.reveal-list.is-revealed > *:nth-child(2) { opacity:1; transform:translateY(0); transition-delay:100ms; }
.reveal-list.is-revealed > *:nth-child(3) { opacity:1; transform:translateY(0); transition-delay:200ms; }
.reveal-list.is-revealed > *:nth-child(4) { opacity:1; transform:translateY(0); transition-delay:300ms; }
.reveal-list.is-revealed > *:nth-child(5) { opacity:1; transform:translateY(0); transition-delay:400ms; }
.reveal-list.is-revealed > *:nth-child(6) { opacity:1; transform:translateY(0); transition-delay:500ms; }

/* ===== Page Loader ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background-color: #faf9f8;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.page-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.page-loader-bar {
  width: 40px;
  height: 1px;
  background-color: #d5cfbf;
  position: relative;
  overflow: hidden;
}
.page-loader-bar::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #1a1916;
  animation: loader-sweep 0.8s ease forwards 0.1s;
}
@keyframes loader-sweep {
  from { left: -100%; }
  to   { left: 100%; }
}

/* ===== Utility ===== */
.hover-opacity:hover { opacity: 0.65; }

.link-underline {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.4s ease, left 0.4s ease;
}
.link-underline:hover::after { left: 0; width: 100%; }

.arrow-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b6860;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.arrow-more:hover { color: #1a1916; }
.arrow-more .arrow-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background-color: currentColor;
  position: relative;
  transition: width 0.4s ease;
  vertical-align: middle;
}
.arrow-more:hover .arrow-line { width: 56px; }
.arrow-more .arrow-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.hover-row { transition: background-color 0.2s ease; cursor: pointer; }
.hover-row:hover { background-color: #e8e3d8; }
.hover-row .row-arrow {
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-4px);
}
.hover-row:hover .row-arrow { opacity: 1; transform: translateX(0); }

/* ===== Header ===== */
.site-header {
  background-color: #faf9f8;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease,
    background-color 0.6s ease;
}
.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
}
.site-header.is-hero-mode {
  background-color: transparent;
}
.header-inner {
  width: 100%;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.header-logo { text-decoration: none; display: flex; align-items: center; }
#header-logo-img {
  height: 36px;
  width: auto;
  display: block;
  transition: filter 0.6s ease;
}
.site-header.is-hero-mode #header-logo-img {
  filter: brightness(0) invert(1);
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-size: 15px;
  font-family: Georgia, 'YuMincho', 'Yu Mincho', serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.6s ease;
  color: #6b6860;
}
.nav-link::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}
.nav-link:hover::before, .nav-active::before { width: 100%; }
.nav-normal { color: #6b6860; }
.nav-normal:hover { color: #1a1916 !important; }
.nav-active { color: #1a1916; }
.site-header.is-hero-mode .nav-link { color: rgba(255,255,255,0.82); }
.site-header.is-hero-mode .nav-link:hover { color: rgba(255,255,255,1) !important; }

/* Mobile Nav */
.mobile-nav {
  background-color: #faf9f8;
  border-top: 1px solid #d5cfbf;
  display: none;
}
.mobile-nav.is-open { display: block; }

.mobile-menu-btn {
  display: none;
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  color: #1a1916;
  transition: color 0.6s ease;
}
.site-header.is-hero-mode .mobile-menu-btn { color: rgba(255,255,255,0.85); }
.menu-line {
  display: block;
  width: 22px;
  height: 1px;
  background-color: currentColor;
  position: absolute;
  left: 50%;
  margin-left: -11px;
  transition: transform 0.35s ease, top 0.35s ease;
}
.menu-line:first-child { top: 10px; }
.menu-line:last-child  { top: 18px; }
.mobile-menu-btn.is-open .menu-line:first-child { top: 14px; transform: rotate(30deg); }
.mobile-menu-btn.is-open .menu-line:last-child  { top: 14px; transform: rotate(-30deg); }

@media (min-width: 768px) {
  .desktop-nav { display: flex !important; }
  .mobile-menu-btn { display: none !important; }
}
@media (max-width: 767px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-btn { display: block !important; }
  .header-inner { padding: 0 20px !important; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #d5cfbf;
  padding-top: 5vw;
  background-color: #faf9f8;
}
.footer-inner {
  width: 80vw;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 5vw;
}
.footer-outline {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.footer-sitemap {
  width: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  text-align: right;
  font-family: Georgia, 'YuMincho', serif;
  letter-spacing: 0;
}
.footer-nav li { margin-bottom: 2rem; }
.footer-nav-link {
  font-size: 1.4rem;
  color: #1a1916;
  text-decoration: none;
  position: relative;
  display: inline-block;
}
.footer-nav-link::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}
.footer-nav-link:hover::before { width: 100%; }
.footer-bottom {
  width: 80vw;
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid #d5cfbf;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-policy:hover { color: #1a1916 !important; }
.footer-social-link { color: #6b6860; transition: color 0.2s; }
.footer-social-link:hover { color: #1a1916; }

@media (max-width: 767px) {
  .footer-inner { width: 85vw; }
  .footer-outline { width: 100%; order: 2; margin-top: 4rem; }
  .footer-sitemap { width: 100%; order: 1; }
  .footer-nav { flex-direction: row; text-align: left; flex-wrap: wrap; gap: 0 2em; }
  .footer-nav li { margin-bottom: 1rem; }
  .footer-nav-link { font-size: 1.2rem; }
  .footer-bottom { width: 85vw; }
}

/* ===== Hero Slider ===== */
.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background-color: #111;
}
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.82);
  transition: opacity 1.2s ease;
  opacity: 0;
}
.hero-slide-img.is-active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.52) 0%, rgba(0,0,0,0.08) 55%, rgba(0,0,0,0) 100%);
  z-index: 2;
  pointer-events: none;
}
.hero-catch {
  position: absolute;
  top: calc(50% - 1em);
  left: 5vw;
  z-index: 3;
  transition: opacity 0.3s ease;
}
.hero-catch p {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 2;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin: 0;
}
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid #ffffff;
  padding: 0;
  margin-right: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.hero-dot.is-active { background-color: transparent; }

@media (max-width: 767px) {
  .hero-catch {
    top: unset !important;
    bottom: 6rem !important;
    left: 2.5rem !important;
  }
  .hero-catch p { font-size: 16px !important; }
  .hero-dots { left: 25px !important; }
}

/* ===== Horizontal Sliders ===== */
.puddle-slider {
  position: relative;
}
.puddle-slider-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.puddle-slider-track::-webkit-scrollbar { display: none; }

.puddle-project-item {
  width: calc(100% / 1.4);
  flex-shrink: 0;
  scroll-snap-align: start;
  padding-right: 4rem;
  box-sizing: border-box;
}
.puddle-journal-item {
  width: calc(100% / 3.2);
  flex-shrink: 0;
  scroll-snap-align: start;
  padding-right: 2rem;
  box-sizing: border-box;
}

.puddle-nav-btn {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fff;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: opacity 0.3s, box-shadow 0.2s;
}
.puddle-nav-btn:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.puddle-nav-btn.is-hidden { opacity: 0; pointer-events: none; }
.puddle-nav-btn .btn-chevron {
  display: block;
  width: 12px;
  height: 12px;
  border-top: 1.5px solid #707070;
  border-right: 1.5px solid #707070;
}
.puddle-nav-prev { left: 1rem; }
.puddle-nav-next { right: 1rem; }
.puddle-nav-prev .btn-chevron { transform: rotate(-135deg) translate(-2px, 2px); }
.puddle-nav-next .btn-chevron { transform: rotate(45deg) translate(-2px, 2px); }

@media (max-width: 576px) {
  .puddle-project-item { width: calc(100% / 1.1); }
  .puddle-journal-item { width: calc(100% / 1.2); }
}

/* ===== Home Page Sections ===== */
.home-section {
  border-top: 1px solid #d5cfbf;
  padding: 96px 0;
}
.home-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}
.ge-heading, .process-heading {
  font-family: Georgia, 'YuMincho', 'Yu Mincho', serif;
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1em;
  color: #1a1916;
  margin-top: 0;
  margin-bottom: 4rem;
}
.about-section {
  border-top: 1px solid #d5cfbf;
  padding: 10vw 0;
  scroll-margin-top: 56px;
}
.about-inner {
  width: 50vw;
  max-width: 720px;
  margin: 0 auto;
}
.process-intro { max-width: 100%; margin-bottom: 5rem; }

.news-item {
  border-bottom: 1px solid #d5cfbf;
  position: relative;
  overflow: hidden;
}
.news-item::before {
  display: block;
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 100%;
  background-color: #fff;
  transition: width 0.5s;
  z-index: 0;
}
@media (min-width: 768px) { .news-item:hover::before { width: 100%; } }
.news-item a {
  display: flex;
  padding: 2rem 0;
  font-size: 13px;
  line-height: 2;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}
.news-date, .news-cat {
  width: 15rem;
  flex-shrink: 0;
  font-family: Georgia, serif;
  color: #6b6860;
  letter-spacing: 0;
}
.news-title { color: #1a1916; }

@media (max-width: 767px) {
  .home-container { padding: 0 20px; }
  .home-section { padding: 64px 0; }
  .about-inner { width: 85vw !important; }
  .process-intro { margin-bottom: 2.5rem !important; }
  .ge-heading, .process-heading { font-size: 1.8rem !important; }
  .news-item a { flex-wrap: wrap; }
  .news-date { width: 100px !important; }
  .news-cat { width: calc(100% - 100px) !important; }
  .news-title { width: 100%; padding-top: 0.5em; }
}

/* ===== Projects Slider Cards ===== */
.proj-slide-card { text-decoration: none; display: block; }
.proj-slide-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: #1a1916;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}
.proj-slide-sub {
  font-family: Georgia, 'YuMincho', serif;
  font-size: 1.1rem;
  color: #6b6860;
  letter-spacing: 0;
  margin-bottom: 1.5em;
  margin-top: 0;
}
.proj-slide-imgs { display: flex; }
.proj-slide-img-wrap { width: 50%; overflow: hidden; }
.proj-slide-img-inner { padding-top: 66%; position: relative; }
.proj-slide-img-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.proj-slide-card:hover .proj-slide-img-inner img { transform: scale(1.05); }

/* ===== Journal Slider Cards ===== */
.journal-slide-link { text-decoration: none; display: block; }
.journal-slide-img-wrap { overflow: hidden; margin-bottom: 1rem; }
.journal-slide-img-inner { padding-top: 125%; position: relative; }
.journal-slide-img-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.journal-slide-link:hover .journal-slide-img-inner img { transform: scale(1.05); }
.journal-slide-cat {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  color: #6b6860;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}
.journal-slide-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: #1a1916;
  line-height: 1.6;
  margin: 0;
}

/* ===== Projects Archive ===== */
.page-title {
  font-family: Georgia, 'YuMincho', 'Yu Mincho', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0;
  color: #1a1916;
  margin: 0;
}
.filter-btn-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.filter-btn {
  font-family: Georgia, 'YuMincho', serif;
  font-size: 1rem;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0 0 2px;
  cursor: pointer;
  color: #6b6860;
  letter-spacing: 0;
  transition: color 0.2s;
}
.filter-btn:hover, .filter-btn.is-active { color: #1a1916; }
.filter-btn.is-active { border-bottom-color: #1a1916; }

.proj-list-item { border-top: 1px solid #d5cfbf; }
.proj-list-item > a {
  display: block;
  padding: 4rem 0;
  text-decoration: none;
  color: inherit;
}
.proj-list-imgs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
}
.proj-list-img-wrap { flex: 1; overflow: hidden; }
.proj-list-img-inner { padding-top: 66.7%; position: relative; }
.proj-list-img-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.proj-list-item:hover .proj-list-img-inner img { transform: scale(1.05); }
.proj-list-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: #1a1916;
  margin-bottom: 0.4em;
  letter-spacing: 0.03em;
}
.proj-list-cats {
  font-family: Georgia, 'YuMincho', serif;
  font-size: 1.1rem;
  color: #6b6860;
  letter-spacing: 0;
}

@media (max-width: 767px) {
  .proj-list-imgs { flex-direction: column !important; }
  .proj-list-item > a { padding: 2.5rem 0 !important; }
}

/* ===== Single Works ===== */
.works-detail-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 48px 96px;
}
.works-cats-year {
  font-family: Georgia, 'YuMincho', serif;
  font-size: 0.85rem;
  color: #6b6860;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.works-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: #1a1916;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.works-subtitle {
  font-family: Georgia, 'YuMincho', serif;
  font-size: 1.1rem;
  color: #6b6860;
  margin-bottom: 3rem;
}
.works-hero-main {
  margin: 3rem 0 4rem;
}
.works-hero-main img {
  width: 100%;
  height: auto;
  display: block;
}
.works-hero-imgs {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 4rem;
}
.works-hero-img-wrap { flex: 1; overflow: hidden; }
.works-hero-img-inner { padding-top: 66%; position: relative; }
.works-hero-img-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.works-description {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: #6b6860;
  letter-spacing: 0.05em;
  line-height: 2;
  margin-bottom: 4rem;
  max-width: 720px;
}
.works-body img,
.works-overview img {
  width: 100%;
  height: auto;
  display: block;
  margin: 3rem 0;
}
.works-body figure,
.works-overview figure {
  margin: 3rem 0;
}
.works-body figure img,
.works-overview figure img {
  width: 100%;
  height: auto;
  margin: 0;
}
.works-overview p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 2.2;
  color: #3a3835;
  letter-spacing: 0.03em;
  margin-bottom: 2em;
}
.works-data {
  border-top: 1px solid #d5cfbf;
  margin-top: 5rem;
  padding-top: 3rem;
}
.works-data-header {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 3rem;
}
.works-data-project-name {
  font-family: Georgia, 'YuMincho', serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: #1a1916;
  letter-spacing: 0.02em;
  margin: 0;
}
.works-data-heading {
  font-family: Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #9a9590;
  margin: 0;
}
.works-data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
}
.works-data-item { display: flex; flex-direction: column; gap: 0.3rem; }
.works-data-key {
  font-family: Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #9a9590;
  margin: 0 0 0.4rem;
}
.works-data-val {
  font-size: 13px;
  color: #1a1916;
  letter-spacing: 0.03em;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 1023px) {
  .works-data-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .works-data-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .works-detail-wrap { padding: 80px 20px 64px; }
}

/* ===== Journal Archive ===== */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem 3rem;
}
.journal-card { text-decoration: none; color: inherit; display: block; }
.journal-card-img-wrap { overflow: hidden; margin-bottom: 1.4rem; }
.journal-card-img-inner { padding-top: 125%; position: relative; }
.journal-card-img-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.journal-card:hover .journal-card-img-inner img { transform: scale(1.05); }
.journal-card-cat {
  font-family: Georgia, 'YuMincho', serif;
  font-size: 0.85rem;
  color: #6b6860;
  letter-spacing: 0;
  display: block;
  margin-bottom: 0.5em;
}
.journal-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: #1a1916;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

@media (max-width: 767px) { .journal-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; } }
@media (max-width: 480px) { .journal-grid { grid-template-columns: 1fr; } }

/* ===== News Archive ===== */
.news-list { border-top: 1px solid #d5cfbf; }
.news-list-item {
  border-bottom: 1px solid #d5cfbf;
  position: relative;
  overflow: hidden;
}
.news-list-item::before {
  display: block;
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 100%;
  background-color: #fff;
  transition: width 0.5s;
  z-index: 0;
}
@media (min-width: 768px) { .news-list-item:hover::before { width: 100%; } }
.news-list-link {
  display: flex;
  padding: 2rem 0;
  font-size: 13px;
  line-height: 2;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .news-list-link { flex-wrap: wrap; }
  .news-date { width: 100px !important; }
  .news-cat  { width: calc(100% - 100px) !important; }
  .news-title { width: 100%; padding-top: 0.5em; }
}

/* ===== Single Post (Journal / News) ===== */
.single-post-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 48px 96px;
}
.single-post-meta {
  font-family: Georgia, serif;
  font-size: 0.85rem;
  color: #6b6860;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}
.single-post-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  color: #1a1916;
  line-height: 1.6;
  letter-spacing: 0.03em;
  margin-bottom: 3rem;
}
.single-post-thumb {
  width: 100%;
  padding-top: 60%;
  position: relative;
  margin-bottom: 3rem;
  overflow: hidden;
}
.single-post-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-post-body p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 2.2;
  color: #3a3835;
  letter-spacing: 0.03em;
  margin-bottom: 2em;
}
.single-post-back {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #d5cfbf;
}

@media (max-width: 767px) { .single-post-wrap { padding: 80px 20px 64px; } }

/* ===== Journal Single Content ===== */
.journal-content {
  max-width: 620px;
  padding-bottom: 5rem;
}
.journal-content p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 2.2;
  color: #3a3835;
  letter-spacing: 0.03em;
  margin-top: 0;
  margin-bottom: 1.8em;
}
.journal-content h2 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1916;
  line-height: 1.7;
  letter-spacing: 0.03em;
  margin: 3.5em 0 1em;
}
.journal-content h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #1a1916;
  line-height: 1.7;
  letter-spacing: 0.03em;
  margin: 2.5em 0 0.8em;
}
.journal-content ul,
.journal-content ol {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 2.2;
  color: #3a3835;
  letter-spacing: 0.03em;
  padding-left: 1.6em;
  margin-bottom: 1.8em;
}
.journal-content li { margin-bottom: 0.4em; }
.journal-content img {
  width: 100%;
  height: auto;
  display: block;
  margin: 2.5rem 0;
}
.journal-content figure {
  margin: 2.5rem 0;
}
.journal-content figure img {
  width: 100%;
  height: auto;
  margin: 0;
}
.journal-content figcaption {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #9a9590;
  letter-spacing: 0.03em;
  margin-top: 0.6em;
}
.journal-content blockquote {
  border-left: 2px solid #d5cfbf;
  padding-left: 1.5em;
  margin: 2rem 0;
  color: #6b6860;
}
.journal-content blockquote p { color: #6b6860; }
.journal-content a {
  color: #1a1916;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #d5cfbf;
}
.journal-content a:hover { text-decoration-color: #1a1916; }
.journal-content hr {
  border: none;
  border-top: 1px solid #d5cfbf;
  margin: 3rem 0;
}
.journal-content strong { font-weight: 600; }
.journal-content em { font-style: italic; }

/* ===== Journal Single ===== */
.single-journal-outer {
  padding-left: 48px;
  padding-right: 48px;
}
.single-post-body p,
.single-journal-outer .entry-content p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 2.2;
  color: #6b6860;
  letter-spacing: 0.03em;
  margin-bottom: 1.5em;
}
.related-journal-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.related-journal-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
.related-journal-img:hover { transform: scale(1.05); }

@media (max-width: 767px) {
  .single-journal-outer { padding-left: 20px; padding-right: 20px; }
  .related-journal-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ===== Static Pages (Philosophy, Policy) ===== */
.static-page-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}
.static-page-title {
  font-family: Georgia, 'YuMincho', 'Yu Mincho', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0;
  color: #1a1916;
  margin-bottom: 5rem;
}
.static-page-body { max-width: 680px; }
.static-section {
  border-top: 1px solid #d5cfbf;
  padding: 3rem 0;
}
.static-section-num {
  font-family: Georgia, 'YuMincho', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #6b6860;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}
.static-section-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: #1a1916;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  line-height: 1.6;
}
.static-section-body {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  line-height: 2;
  color: #6b6860;
  letter-spacing: 0.03em;
}

@media (max-width: 767px) { .static-page-wrap { padding: 80px 20px 80px; } }

/* ===== Contact Page ===== */
.contact-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 48px 96px;
}
.contact-tabs {
  display: flex;
  gap: 3rem;
  border-bottom: 1px solid #d5cfbf;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.contact-tab {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 0 1rem;
  cursor: pointer;
  color: #6b6860;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  white-space: nowrap;
}
.contact-tab.is-active { color: #1a1916; border-bottom-color: #1a1916; }
.contact-tab:hover { color: #1a1916; }
.contact-tab-panel { display: none; }
.contact-tab-panel.is-active { display: block; }
.contact-form-wrap { max-width: 560px; }

/* CF7 overrides */
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form .wpcf7-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5cfbf;
  background-color: #ffffff;
  font-size: 14px;
  color: #1a1916;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  border-radius: 0;
}
.wpcf7-form .wpcf7-text:focus,
.wpcf7-form .wpcf7-email:focus,
.wpcf7-form .wpcf7-textarea:focus { border-color: #1a1916; }
.wpcf7-form .wpcf7-submit {
  background-color: #1a1916;
  color: #faf9f8;
  font-size: 13px;
  padding: 12px 32px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: opacity 0.2s;
  font-family: inherit;
  border-radius: 0;
}
.wpcf7-form .wpcf7-submit:hover { opacity: 0.8; }
.wpcf7-form p { margin-bottom: 1.5rem; }
.wpcf7-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6860;
  margin-bottom: 0.6rem;
}
.wpcf7-not-valid-tip { font-size: 12px; color: #c0392b; margin-top: 4px; }
.wpcf7-response-output { font-size: 13px; margin-top: 1rem; padding: 8px 12px !important; border-color: #d5cfbf !important; }

/* Form field layout */
.form-field { margin-bottom: 2rem; }
.form-label,
.wpcf7-form .form-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6860;
  margin-bottom: 0.6rem;
}
.form-label .req { color: #aaa; font-style: normal; }
.wpcf7-form .form-field input[type="text"],
.wpcf7-form .form-field input[type="email"],
.wpcf7-form .form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d5cfbf;
  background-color: #ffffff;
  font-size: 14px;
  color: #1a1916;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  border-radius: 0;
}
.wpcf7-form .form-field input:focus,
.wpcf7-form .form-field textarea:focus { border-color: #1a1916; }

/* Checkboxes */
.form-checkboxes .wpcf7-list-item {
  display: flex;
  align-items: center;
  margin: 0 0 0.8rem !important;
}
.form-checkboxes .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 14px;
  color: #6b6860;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.form-checkboxes input[type="checkbox"] {
  accent-color: #1a1916;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin: 0;
}

/* Submit button */
.form-submit,
.wpcf7-form .wpcf7-submit.form-submit {
  background-color: #1a1916;
  color: #faf9f8;
  font-size: 13px;
  padding: 12px 32px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: opacity 0.2s;
  font-family: inherit;
  border-radius: 0;
}
.form-submit:hover,
.wpcf7-form .wpcf7-submit.form-submit:hover { opacity: 0.8; }

@media (max-width: 767px) {
  .contact-wrap { padding: 80px 20px 64px; }
  .contact-tab { font-size: 0.8rem; padding-bottom: 0.8rem; }
}

/* ===== 404 ===== */
.error404-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 48px 96px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== Image Zoom (desktop) ===== */
@media (min-width: 768px) {
  .img-zoom { overflow: hidden; }
  .img-zoom img { transition: transform 0.5s ease; }
  .img-zoom:hover img { transform: scale(1.05); }
}

/* ===== Password Protected Form ===== */
.kokonto-pw-form { padding: 2rem 0; max-width: 420px; }
.kokonto-pw-message {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-subtext);
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}
.kokonto-pw-row { display: flex; gap: 0.75rem; align-items: stretch; }
.kokonto-pw-input {
  flex: 1;
  border: 1px solid var(--color-border);
  background: transparent;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-ink);
  outline: none;
  letter-spacing: 0.03em;
  -webkit-appearance: none;
}
.kokonto-pw-input::placeholder { color: var(--color-subtext); }
.kokonto-pw-input:focus { border-color: var(--color-ink); }
.kokonto-pw-btn {
  border: 1px solid var(--color-ink);
  background: transparent;
  padding: 0 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--color-ink);
  cursor: pointer;
  letter-spacing: 0.12em;
  transition: background 0.2s, color 0.2s;
}
.kokonto-pw-btn:hover {
  background: var(--color-ink);
  color: var(--color-bg);
}

