/*
Theme Name: Japan Blue Arborist
Theme URI: https://japanbluearborist.com/
Author: Isaki Kasahara
Description: A Japan Blue inspired editorial theme for Japanese arboriculture, tree diagnosis, garden design, urban greening, and planting management.
Version: 1.0.1
Text Domain: japan-blue-arborist
*/

:root {
  --color-navy: #07111d;
  --color-deep-navy: #050b14;
  --color-ivory: #f3f0e8;
  --color-ivory-dark: #e8e3d7;
  --color-text-main: #172033;
  --color-text-sub: #3f4650;
  --color-muted: #8c939b;
  --color-line: #d6d2c8;
  --color-accent-blue: #6fa7b8;
  --color-white: #f8f7f2;

  --font-serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;

  --header-height: 88px;
  --container-width: 1180px;
  --section-padding: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text-main);
  background: var(--color-ivory);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
}

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

button {
  font-family: inherit;
}

.container {
  width: min(var(--container-width), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: var(--section-padding) 0;
}

.section-label {
  position: relative;
  display: inline-block;
  margin: 0 0 28px;
  padding-bottom: 10px;
  color: var(--color-text-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 54px;
  height: 2px;
  background: var(--color-accent-blue);
}

.section-label.light {
  color: var(--color-white);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  font-size: clamp(3.1rem, 12vw, 5.7rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(2.2rem, 8vw, 4rem);
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1.4em;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.section-body {
  color: var(--color-text-sub);
  font-size: 0.98rem;
  line-height: 1.9;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  color: var(--color-white);
  background: rgba(5, 11, 20, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-logo img {
  display: block;
  width: auto;
  height: 56px;
}

.menu-button {
  position: relative;
  z-index: 1100;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 1px;
  margin-right: auto;
  margin-left: auto;
  background: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-button span + span {
  margin-top: 8px;
}

.menu-button.is-open span:first-child {
  transform: translateY(4.5px) rotate(35deg);
}

.menu-button.is-open span:last-child {
  transform: translateY(-4.5px) rotate(-35deg);
}

.site-nav {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  display: grid;
  gap: 18px;
  padding: 28px 24px 36px;
  background: rgba(5, 11, 20, 0.98);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.site-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav a {
  position: relative;
  color: rgba(248, 247, 242, 0.78);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--color-white);
}

.home-hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  background: var(--color-ivory);
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(243, 240, 232, 0.98) 0%,
      rgba(243, 240, 232, 0.92) 42%,
      rgba(243, 240, 232, 0.35) 70%,
      rgba(243, 240, 232, 0.08) 100%
    ),
    url("images/hero.jpg");
  background-position: center right;
  background-size: cover;
}

.home-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: calc(var(--header-height) + 72px) 0 72px;
}

.home-hero-content {
  max-width: 620px;
}

.home-hero h1 {
  margin-bottom: 24px;
  color: var(--color-text-main);
  font-size: clamp(2.8rem, 12vw, 4.6rem);
}

.accent-line,
.small-line {
  width: 48px;
  height: 2px;
  background: var(--color-accent-blue);
}

.home-hero .accent-line {
  margin-bottom: 24px;
}

.home-hero p {
  max-width: 430px;
  margin-bottom: 32px;
  color: var(--color-text-sub);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.8;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--color-white);
  background: #063967;
  border: 1px solid #063967;
}

.button-primary:hover {
  background: #082f55;
  border-color: #082f55;
}

.button-secondary {
  color: #063967;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid #8ea2b5;
}

.button-secondary:hover {
  color: var(--color-white);
  background: #063967;
  border-color: #063967;
}

.home-concept {
  background: var(--color-ivory);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.home-concept-grid {
  display: grid;
  gap: 40px;
}

.home-concept h2 {
  font-size: clamp(2.1rem, 8vw, 3.1rem);
}

.home-copy {
  color: var(--color-text-sub);
  font-size: 0.92rem;
  font-weight: 500;
}

.home-themes {
  background: #ecf3f8;
}

.themes-grid {
  display: grid;
  gap: 24px;
}

.theme-card {
  padding: 32px 24px;
  text-align: center;
  background: #ecf3f8;
  border: 1px solid rgba(203, 215, 223, 0.8);
}

.theme-icon {
  width: min(160px, 58vw);
  aspect-ratio: 1;
  margin: 0 auto 24px;
  overflow: hidden;
  background: #ecf3f8;
}

.theme-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-card h3 {
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.theme-card .small-line {
  width: 36px;
  margin: 0 auto 18px;
}

.theme-card p {
  max-width: 280px;
  margin: 0 auto;
  color: var(--color-text-sub);
  font-size: 0.8rem;
  line-height: 1.6;
}

.home-journal {
  background: var(--color-ivory);
}

.journal-grid {
  display: grid;
  gap: 28px;
}

.journal-card {
  background: var(--color-white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(18, 32, 51, 0.08);
}

.journal-image {
  display: block;
  aspect-ratio: 16 / 8;
  background-position: center;
  background-size: cover;
}

.image-sacred {
  background-image: url("images/hero.jpg");
}

.image-diagnosis {
  background-image: url("assets/themes/tree-diagnosis.png");
}

.image-garden {
  background-image: url("assets/themes/landscape-gardens.png");
}

.journal-body {
  position: relative;
  min-height: 210px;
  padding: 24px 24px 56px;
}

.category {
  margin-bottom: 12px;
  color: #46689b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journal-body h3 {
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.journal-body p:not(.category) {
  color: var(--color-text-sub);
  font-size: 0.88rem;
  line-height: 1.6;
}

.arrow-link {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  color: var(--color-text-main);
  font-size: 1.8rem;
  transition: transform 0.25s ease;
}

.arrow-link:hover {
  transform: translateX(4px);
}

.about-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: calc(var(--header-height) + 72px) 0 72px;
  overflow: hidden;
  background: var(--color-ivory);
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(247, 244, 238, 0.98) 0%,
      rgba(247, 244, 238, 0.9) 44%,
      rgba(247, 244, 238, 0.45) 68%,
      rgba(247, 244, 238, 0.14) 100%
    ),
    url("images/about-hero.jpg");
  background-position: left center;
  background-size: 138% auto;
}

.about-hero-overlay {
  display: none;
}

.about-hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--color-text-main);
}

.about-hero-content h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--color-text-main);
  font-size: clamp(42px, 12vw, 62px);
  font-weight: 600;
  line-height: 1.12;
}

.about-hero-content h1 span {
  display: block;
  margin-top: 8px;
  font-size: clamp(26px, 5.4vw, 40px);
  line-height: 1.2;
}

.about-hero-text {
  max-width: 500px;
  margin: 0;
  color: var(--color-text-sub);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--color-deep-navy);
  background: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
}

.btn-primary:hover {
  background: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary {
  color: var(--color-white);
  border-color: rgba(248, 247, 242, 0.45);
}

.btn-secondary:hover {
  background: rgba(248, 247, 242, 0.12);
  border-color: var(--color-white);
}

.mission,
.why-japan {
  background: var(--color-ivory);
}

.section-heading h2 {
  color: var(--color-text-main);
}

.section-body {
  padding-top: 30px;
  border-top: 1px solid var(--color-line);
}

.profile-section {
  background: var(--color-ivory);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.profile-image {
  min-height: 320px;
  overflow: hidden;
}

.profile-image img {
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: brightness(0.84) contrast(1.04) saturate(0.82);
}

.profile-content {
  width: min(760px, 100%);
  padding: 64px 20px;
}

.profile-table {
  display: grid;
  gap: 0;
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-line);
}

.profile-row:first-child {
  border-top: 1px solid var(--color-line);
}

.profile-row span {
  color: var(--color-text-sub);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-row p {
  color: var(--color-text-main);
  font-size: 0.95rem;
  font-weight: 600;
}

.perspective {
  position: relative;
  padding: 76px 0;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-deep-navy);
}

.perspective-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/perspective.jpg");
  background-position: center;
  background-size: cover;
  filter: brightness(0.52) contrast(1.08) saturate(0.75);
  transform: scale(1.02);
}

.perspective-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 20, 0.58);
}

.perspective-inner {
  position: relative;
  z-index: 1;
}

.perspective-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 12px;
}

.perspective-card {
  padding: 28px 0;
  border-top: 1px solid rgba(248, 247, 242, 0.24);
}

.perspective-card h3 {
  margin-bottom: 18px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.perspective-card p {
  max-width: 240px;
  color: rgba(248, 247, 242, 0.78);
  font-size: 0.9rem;
  line-height: 1.75;
}

.tools {
  background: var(--color-ivory);
}

.tools-header {
  margin-bottom: 44px;
}

.tools-header h2 {
  max-width: 820px;
  font-size: clamp(2rem, 6vw, 3.3rem);
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.tool-card {
  text-align: center;
}

.tool-card img {
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  object-fit: cover;
  filter: brightness(0.86) contrast(1.05) saturate(0.78);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.tool-card:hover img {
  transform: translateY(-4px);
  filter: brightness(0.95) contrast(1.05) saturate(0.88);
}

.tool-card h3 {
  color: var(--color-text-main);
  font-size: 1.16rem;
}

.contact-links {
  padding-top: 40px;
  background: var(--color-ivory);
}

.contact-heading {
  margin-bottom: 32px;
}

.contact-heading h2 {
  font-size: clamp(2rem, 6vw, 3.2rem);
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.link-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 0 22px;
  color: var(--color-text-main);
  background: rgba(248, 247, 242, 0.36);
  border: 1px solid #aeb8bf;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.link-card:hover {
  background: rgba(111, 167, 184, 0.12);
  border-color: var(--color-accent-blue);
  transform: translateY(-2px);
}

.link-card-primary {
  color: var(--color-white);
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.link-card-primary:hover {
  color: var(--color-deep-navy);
  background: var(--color-accent-blue);
}

.link-icon {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
}

.link-icon-image {
  display: grid;
  place-items: center;
}

.link-icon-image img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.link-card span:nth-child(2) {
  font-size: 0.92rem;
  font-weight: 700;
}

.arrow {
  font-size: 1.6rem;
  transition: transform 0.25s ease;
}

.link-card:hover .arrow {
  transform: translateX(5px);
}

.site-footer {
  padding: 48px 0 28px;
  color: var(--color-white);
  background: var(--color-deep-navy);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  font-family: var(--font-serif);
  font-size: 1.45rem;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 72px;
}

.footer-brand p {
  color: rgba(248, 247, 242, 0.68);
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.footer-nav a {
  color: rgba(248, 247, 242, 0.74);
  font-size: 0.86rem;
  font-weight: 600;
}

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

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 247, 242, 0.16);
}

.footer-bottom p {
  color: rgba(248, 247, 242, 0.48);
  font-size: 0.78rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .home-actions {
    flex-direction: row;
  }

  .themes-grid,
  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .links-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .link-card {
    min-height: 76px;
  }
}

@media (min-width: 900px) {
  :root {
    --section-padding: 104px;
  }

  .menu-button {
    display: none;
  }

  .site-nav {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    gap: 44px;
    padding: 0;
    background: transparent;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .site-nav a.active::after,
  .site-nav a:hover::after {
    transform: scaleX(1);
  }

  .home-hero {
    min-height: 600px;
  }

  .home-hero-bg {
    background:
      linear-gradient(
        90deg,
        rgba(243, 240, 232, 1) 0%,
        rgba(243, 240, 232, 0.96) 34%,
        rgba(243, 240, 232, 0.55) 52%,
        rgba(243, 240, 232, 0.08) 72%
      ),
      url("images/hero.jpg");
    background-position: center right;
    background-size: cover;
  }

  .home-hero-inner {
    min-height: 600px;
  }

  .home-concept-grid {
    grid-template-columns: 1fr 1px 1fr;
    gap: 64px;
    align-items: center;
  }

  .home-concept-grid::before {
    content: "";
    grid-row: 1;
    grid-column: 2;
    width: 1px;
    height: 210px;
    background: var(--color-line);
  }

  .home-concept-grid > div:first-child {
    grid-column: 1;
  }

  .home-copy {
    grid-column: 3;
    max-width: 440px;
  }

  .themes-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .theme-card {
    padding-inline: 12px;
    background: transparent;
    border: 0;
    border-right: 1px solid #cbd7df;
  }

  .theme-card p {
    max-width: 220px;
    font-size: 0.76rem;
  }

  .theme-card:last-child {
    border-right: 0;
  }

  .theme-icon {
    width: min(100%, 132px);
  }

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

  .about-hero {
    min-height: 600px;
    height: 70vh;
    padding: var(--header-height) 0 0;
  }

  .about-hero-bg {
    background:
      linear-gradient(
        90deg,
        rgba(247, 244, 238, 1) 0%,
        rgba(247, 244, 238, 0.95) 36%,
        rgba(247, 244, 238, 0.58) 58%,
        rgba(247, 244, 238, 0.08) 78%
      ),
      url("images/about-hero.jpg");
    background-position: left center;
    background-size: 138% auto;
  }

  .about-hero-content {
    padding-top: 0;
  }

  .two-column {
    grid-template-columns: 1fr 1.15fr;
    gap: 72px;
    align-items: start;
  }

  .section-body {
    padding-top: 0;
    padding-left: 72px;
    border-top: 0;
    border-left: 1px solid var(--color-line);
  }

  .profile-grid {
    grid-template-columns: 1fr 1.35fr;
    align-items: stretch;
  }

  .profile-image {
    min-height: 360px;
  }

  .profile-content {
    padding: 76px 8vw 76px 64px;
  }

  .profile-row {
    grid-template-columns: 180px 1fr;
    gap: 24px;
  }

  .perspective-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .perspective-card {
    min-height: 190px;
    padding: 28px 36px;
    border-top: 0;
    border-left: 1px solid rgba(248, 247, 242, 0.26);
  }

  .perspective-card:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 44px 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .header-inner {
    width: min(1280px, calc(100% - 12vw));
  }

  .about-hero-content {
    width: min(1280px, calc(100% - 12vw));
  }
}

@media (max-width: 420px) {
  :root {
    --header-height: 74px;
  }

  .site-logo img {
    height: 44px;
  }

  .home-hero,
  .about-hero {
    padding-bottom: 56px;
  }

  .home-actions,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  .profile-content {
    padding: 56px 20px;
  }

  .link-card {
    grid-template-columns: 36px 1fr auto;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Home page restores the original journal-style landing layout. */
body.home-page {
  color: #182233;
  background: #f7f4ee;
}

body.home-page .container {
  width: min(100% - 40px, 1200px);
}

body.home-page .section {
  padding: 72px 0;
}

body.home-page .site-header {
  position: sticky;
  height: var(--header-height);
  background: rgba(6, 17, 31, 0.96);
}

body.home-page .header-inner {
  width: min(100% - 40px, 1200px);
}

body.home-page .site-logo {
  color: #f5f1e8;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

body.home-page .site-nav {
  inset: 64px 0 auto 0;
  padding: 18px 20px 24px;
  background: #06111f;
}

body.home-page .site-nav a {
  padding: 14px 0;
  color: #d7dce2;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.home-page .site-nav a.active {
  color: #fff;
}

body.home-page .home-hero {
  min-height: calc(100svh - 64px);
  background: #f7f4ee;
}

body.home-page .home-hero-bg {
  background:
    linear-gradient(
      90deg,
      rgba(247, 244, 238, 0.98) 0%,
      rgba(247, 244, 238, 0.92) 42%,
      rgba(247, 244, 238, 0.35) 70%,
      rgba(247, 244, 238, 0.08) 100%
    ),
    url("images/hero.jpg");
  background-position: center;
  background-size: cover;
}

body.home-page .home-hero-inner {
  min-height: calc(100svh - 64px);
  padding: 72px 0;
}

body.home-page .home-hero-content {
  max-width: 560px;
}

body.home-page .home-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 12vw, 62px);
  line-height: 1.12;
}

body.home-page .home-hero p {
  max-width: 420px;
  color: #3f4854;
  font-size: 15px;
  line-height: 1.8;
}

body.home-page .button-primary {
  color: #fff;
  background: #063967;
  border-color: #063967;
}

body.home-page .button-secondary {
  color: #063967;
  background: rgba(255, 255, 255, 0.35);
  border-color: #8ea2b5;
}

body.home-page .section-label {
  margin-bottom: 32px;
  color: #3f4854;
  font-size: 11px;
  letter-spacing: 0.18em;
}

body.home-page .home-concept {
  background: #f7f4ee;
}

body.home-page .home-concept h2 {
  font-size: clamp(34px, 9vw, 46px);
  line-height: 1.18;
}

body.home-page .home-copy {
  color: #3f4854;
  font-size: 14px;
}

body.home-page .home-themes {
  background: #ecf3f8;
}

body.home-page .theme-card h3 {
  color: #182233;
}

body.home-page .theme-card p {
  color: #3f4854;
}

body.home-page .home-journal {
  background: #f7f4ee;
}

body.home-page .journal-card {
  background: #fff;
}

body.home-page .home-about-preview {
  background: #f4f0e8;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

body.home-page .home-about-grid {
  display: grid;
  gap: 36px;
}

body.home-page .home-about-content h2 {
  margin-bottom: 12px;
  font-size: clamp(36px, 9vw, 46px);
  line-height: 1.1;
}

body.home-page .home-about-content p:not(.section-label) {
  max-width: 460px;
  margin-bottom: 24px;
  color: #3f4854;
  font-size: 14px;
  font-weight: 500;
}

body.home-page .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.home-page .tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  color: #182233;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid #9aa7b4;
}

body.home-page .home-about-link {
  margin-top: 24px;
}

body.home-page .home-about-image {
  min-height: 280px;
  background:
    linear-gradient(rgba(6, 17, 31, 0.05), rgba(6, 17, 31, 0.05)),
    url("images/profile.jpg");
  background-position: center 42%;
  background-size: cover;
}

body.home-page .home-contact-cta {
  padding: 48px 0;
  background: #eef5f7;
}

body.home-page .home-contact-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

body.home-page .home-contact-inner h2 {
  margin: 0;
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.2;
}

body.home-page .home-contact-line {
  display: none;
  height: 2px;
  background: #64c6d3;
}

body.home-page .site-footer {
  padding: 40px 0 26px;
  background: #06111f;
}

@media (min-width: 640px) {
  body.home-page .container,
  body.home-page .header-inner {
    width: min(100% - 64px, 1200px);
  }

  body.home-page .home-actions {
    flex-direction: row;
  }

  body.home-page .home-contact-inner {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 900px) {
  body.home-page .section {
    padding: 88px 0;
  }

  body.home-page .site-header {
    height: var(--header-height);
  }

  body.home-page .site-nav {
    gap: 38px;
    background: transparent;
  }

  body.home-page .site-nav a {
    padding: 0;
    font-size: 13px;
    border-bottom: 0;
  }

  body.home-page .site-nav a::after {
    bottom: -22px;
    background: #64c6d3;
  }

  body.home-page .home-hero,
  body.home-page .home-hero-inner {
    min-height: 600px;
  }

  body.home-page .home-hero-bg {
    background:
      linear-gradient(
        90deg,
        rgba(247, 244, 238, 1) 0%,
        rgba(247, 244, 238, 0.96) 34%,
        rgba(247, 244, 238, 0.55) 52%,
        rgba(247, 244, 238, 0.08) 72%
      ),
      url("images/hero.jpg");
    background-position: center right;
    background-size: cover;
  }

  body.home-page .home-hero h1 {
    font-size: 62px;
  }

  body.home-page .home-about-grid {
    grid-template-columns: 0.9fr 1.6fr;
    align-items: center;
    gap: 64px;
  }

  body.home-page .home-about-image {
    min-height: 360px;
  }

  body.home-page .home-contact-inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
  }

body.home-page .home-contact-line {
    display: block;
  }
}

body.journal-page {
  --color-journal-navy: #06111f;
  --color-journal-blue: #073763;
  --color-journal-ivory: #f7f5ef;
  --color-journal-border: #dcded8;
  --color-journal-accent: #3f9ea0;
  --color-journal-soft-blue: #e9f1f5;
  background: var(--color-journal-ivory);
  color: #1a2533;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  letter-spacing: 0.01em;
}

body.journal-page .container {
  width: 100%;
  max-width: 1180px;
  padding: 0 24px;
}

body.journal-page .site-header {
  position: sticky;
  background: var(--color-journal-navy);
}

body.journal-page .site-nav a.active::after,
body.journal-page .site-nav a:hover::after {
  background: var(--color-journal-accent);
}

.journal-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 44px;
}

.journal-hero::after {
  content: "";
  position: absolute;
  top: 24px;
  right: -80px;
  width: 420px;
  height: 220px;
  background:
    radial-gradient(circle at 20% 30%, rgba(7, 55, 99, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 45% 50%, rgba(7, 55, 99, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 65% 25%, rgba(7, 55, 99, 0.1) 0 2px, transparent 3px),
    linear-gradient(140deg, transparent 0 45%, rgba(7, 55, 99, 0.12) 46%, transparent 48%),
    linear-gradient(25deg, transparent 0 55%, rgba(7, 55, 99, 0.1) 56%, transparent 58%);
  opacity: 0.7;
  pointer-events: none;
}

.journal-hero-inner {
  position: relative;
  z-index: 1;
}

.journal-hero h1 {
  margin-bottom: 24px;
  color: var(--color-journal-navy);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: clamp(56px, 14vw, 92px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0.04em;
}

.journal-hero-text {
  max-width: 560px;
  color: #26344a;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
}

.journal-featured {
  padding: 20px 0 44px;
}

.journal-featured-article {
  display: grid;
  grid-template-columns: 1fr;
}

.journal-featured-image img {
  height: 280px;
  object-fit: cover;
  filter: brightness(0.86) contrast(1.05) saturate(0.82);
}

.journal-featured-card {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-journal-border);
}

.article-category {
  margin-bottom: 18px;
  color: #315f8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.journal-featured-card h2 {
  margin-bottom: 16px;
  color: #1c2430;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.jp-title {
  margin-bottom: 18px;
  color: #303744;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 500;
}

.article-excerpt {
  margin-bottom: 24px;
  color: #273344;
  font-size: 14px;
  line-height: 1.9;
}

.article-date {
  margin-bottom: 24px;
  color: #5f6872;
  font-size: 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 46px;
  padding: 0 32px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.primary-button {
  color: #fff;
  background: var(--color-journal-blue);
  border: 1px solid var(--color-journal-blue);
}

.secondary-button {
  color: var(--color-journal-blue);
  background: transparent;
  border: 1px solid #6c879d;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: #0a4478;
}

.secondary-button:hover {
  background: rgba(7, 55, 99, 0.04);
  border-color: var(--color-journal-blue);
}

.journal-category-section {
  padding: 4px 0 28px;
}

.category-nav {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-journal-border);
  -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav button {
  position: relative;
  flex: 0 0 auto;
  padding: 0 0 18px;
  color: #536071;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.25s ease;
}

.category-nav button:hover,
.category-nav button.active {
  color: var(--color-journal-navy);
}

.category-nav button.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-journal-accent);
}

.journal-article-section {
  padding: 0 0 56px;
}

.journal-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.article-card {
  background: #fff;
  border: 1px solid #e1e3dd;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(6, 17, 31, 0.08);
}

.article-card img {
  height: 190px;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.04) saturate(0.82);
}

.article-card-body {
  padding: 22px 20px 20px;
}

.article-card h3 {
  margin-bottom: 10px;
  color: #1c2430;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.article-card .jp-title {
  margin-bottom: 14px;
}

.card-text {
  margin-bottom: 20px;
  color: #384457;
  font-size: 14px;
  line-height: 1.75;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5f6872;
  font-size: 13px;
}

.card-footer a {
  color: var(--color-journal-navy);
  font-size: 24px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.article-card:hover .card-footer a {
  transform: translateX(4px);
}

.journal-subscribe {
  padding: 40px 0;
  background: var(--color-journal-soft-blue);
}

.journal-subscribe-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.mail-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto;
  border: 1px solid #6f93b2;
  border-radius: 50%;
}

.mail-icon::before {
  content: "";
  width: 30px;
  height: 21px;
  border: 2px solid #315f8a;
}

.mail-icon span::before,
.mail-icon span::after {
  content: "";
  position: absolute;
  top: 31px;
  width: 18px;
  height: 2px;
  background: #315f8a;
}

.mail-icon span::before {
  left: 18px;
  transform: rotate(35deg);
}

.mail-icon span::after {
  right: 18px;
  transform: rotate(-35deg);
}

.journal-subscribe h2 {
  color: var(--color-journal-navy);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 500;
  line-height: 1.15;
}

.subscribe-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.subscribe-buttons a {
  width: 100%;
}

@media (min-width: 768px) {
  body.journal-page .container {
    padding: 0 40px;
  }

  .journal-hero {
    padding: 84px 0 56px;
  }

  .journal-hero::after {
    right: 0;
    width: 540px;
    height: 280px;
  }

  .journal-featured-image img {
    height: 380px;
  }

  .journal-featured-card {
    padding: 42px 40px;
  }

  .journal-article-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .journal-subscribe-inner {
    grid-template-columns: auto 1fr;
    text-align: left;
  }

  .mail-icon {
    margin: 0;
  }

  .subscribe-buttons {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (min-width: 1024px) {
  body.journal-page .container {
    padding: 0 48px;
  }

  .journal-hero {
    padding: 74px 0 62px;
  }

  .journal-featured {
    padding: 0 0 44px;
  }

  .journal-featured-article {
    grid-template-columns: 1.35fr 0.95fr;
    gap: 44px;
    align-items: stretch;
  }

  .journal-featured-image img {
    height: 440px;
  }

  .journal-featured-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 440px;
    padding: 48px;
  }

  .category-nav {
    justify-content: center;
    gap: 54px;
  }

  .journal-article-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  .article-card img {
    height: 160px;
  }

  .article-card h3 {
    font-size: 25px;
  }

  .journal-subscribe-inner {
    grid-template-columns: auto 1fr auto;
    gap: 36px;
  }

  .subscribe-buttons {
    grid-column: auto;
    display: flex;
    gap: 20px;
  }

  .subscribe-buttons a {
    width: auto;
    min-width: 180px;
  }
}

@media (min-width: 1280px) {
  .article-card img {
    height: 168px;
  }
}

body.resources-page {
  --resources-navy: #061524;
  --resources-paper: #f7f5ef;
  --resources-card: #fbfaf6;
  --resources-line: #ddd8ce;
  --resources-text: #1d2633;
  --resources-muted: #4a5564;
  --resources-blue: #5f7f9f;
  --resources-blue-dark: #3f6489;
  --resources-pale-blue: #eaf4f8;
  background: var(--resources-paper);
  color: var(--resources-text);
}

body.resources-page .site-header {
  position: sticky;
  background: rgba(6, 21, 36, 0.96);
}

body.resources-page .site-nav a.active::after,
body.resources-page .site-nav a:hover::after {
  background: var(--resources-blue);
}

.resources-hero {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  background: var(--resources-paper);
  border-bottom: 1px solid var(--resources-line);
}

.resources-hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 24px 52px;
}

.resources-hero h1 {
  margin: 0 0 24px;
  color: var(--resources-navy);
  font-family: var(--font-serif);
  font-size: clamp(52px, 14vw, 84px);
  font-weight: 500;
  line-height: 0.95;
}

.resources-hero-lead {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--resources-text);
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.35;
}

.resources-hero-sub {
  max-width: 420px;
  margin: 0;
  color: var(--resources-muted);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.45;
}

.resources-hero-visual {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(247, 245, 239, 0) 0%, rgba(247, 245, 239, 0.16) 100%),
    radial-gradient(circle at 20% 70%, rgba(189, 202, 177, 0.75), transparent 26%),
    radial-gradient(circle at 72% 32%, rgba(61, 88, 49, 0.78), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(10, 31, 22, 0.95), transparent 34%),
    linear-gradient(135deg, #c7d0be 0%, #274225 45%, #07120d 100%);
}

.resources-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--resources-paper) 0%, rgba(247, 245, 239, 0.82) 20%, rgba(247, 245, 239, 0.06) 58%);
}

.resources-hero-visual::after {
  content: "";
  position: absolute;
  inset: 20% 8% 12% 28%;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.24), transparent 24%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 28px);
  opacity: 0.25;
}

.resources-category-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 20px 24px;
  background: rgba(251, 250, 246, 0.88);
  border-bottom: 1px solid var(--resources-line);
  scrollbar-width: none;
}

.resources-category-nav::-webkit-scrollbar {
  display: none;
}

.resource-category-item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  color: var(--resources-blue-dark);
  font-size: 14px;
  font-weight: 500;
  border-right: 1px solid var(--resources-line);
  transition: color 0.25s ease, transform 0.25s ease;
}

.resource-category-item:first-child {
  padding-left: 0;
}

.resource-category-item:hover {
  color: var(--resources-navy);
  transform: translateY(-1px);
}

.resource-category-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-serif);
  font-size: 13px;
  border: 1px solid rgba(95, 127, 159, 0.32);
  border-radius: 999px;
}

.resources-section {
  padding: 64px 24px 24px;
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.resource-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 370px;
  padding: 30px 24px 22px;
  background: var(--resources-card);
  border: 1px solid var(--resources-line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(6, 21, 36, 0.035);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(6, 21, 36, 0.08);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  color: var(--resources-blue-dark);
  font-family: var(--font-serif);
  font-size: 20px;
  background: #eef3f5;
  border-radius: 999px;
}

.resource-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.1;
}

.resource-card p {
  max-width: 320px;
  margin: 0 0 18px;
  color: var(--resources-text);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.35;
}

.resource-card ul {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.resource-card li {
  position: relative;
  padding-left: 24px;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.8;
}

.resource-card li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--resources-blue-dark);
}

.inline-image {
  height: 132px;
  margin-top: 20px;
  overflow: hidden;
  background:
    linear-gradient(rgba(6, 21, 36, 0.08), rgba(6, 21, 36, 0.18)),
    url("images/hero.jpg");
  background-position: center;
  background-size: cover;
  border-radius: 4px;
}

.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  color: var(--resources-blue-dark);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--resources-line);
  border-radius: 5px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.card-button:hover {
  background: #f1f4f4;
  transform: translateY(-1px);
}

.resources-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1140px;
  margin: 24px 24px 32px;
  padding: 34px 24px;
  background: linear-gradient(90deg, #eaf4f8 0%, #f5f7f2 100%);
  border-radius: 10px;
}

.resources-cta h2 {
  max-width: 520px;
  margin: 0 0 10px;
  color: var(--resources-navy);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.05;
}

.resources-cta p {
  max-width: 520px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.35;
}

.resources-cta-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

body.resources-page .primary-button {
  color: #fff;
  background: var(--resources-navy);
  border-color: var(--resources-navy);
}

body.resources-page .primary-button:hover {
  background: var(--resources-blue-dark);
  border-color: var(--resources-blue-dark);
}

body.resources-page .secondary-button {
  color: var(--resources-blue-dark);
  background: transparent;
  border-color: var(--resources-blue);
}

body.resources-page .secondary-button:hover {
  background: rgba(255, 255, 255, 0.5);
}

@media (min-width: 700px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources-cta {
    margin-right: auto;
    margin-left: auto;
    padding: 38px 46px;
  }

  .resources-cta-buttons {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (min-width: 980px) {
  .resources-hero {
    min-height: 420px;
    grid-template-columns: 48% 52%;
  }

  .resources-hero-content {
    padding: 76px 64px;
  }

  .resources-hero-visual {
    min-height: 420px;
  }

  .resources-category-nav {
    justify-content: center;
    padding: 26px 64px;
  }

  .resources-section {
    padding: 80px 32px 24px;
  }

  .resources-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .resource-card {
    padding: 34px 28px 24px;
  }

  .resources-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 30px;
    margin-bottom: 32px;
  }

  .resources-cta-buttons {
    min-width: 470px;
  }
}

body.contact-page {
  --contact-navy: #07111d;
  --contact-blue: #164461;
  --contact-muted-blue: #4d8fa3;
  --contact-ivory: #f7f4ec;
  --contact-beige: #eee9df;
  --contact-border: #d8d2c8;
  --contact-text: #17202a;
  --contact-subtext: #68706c;
  --contact-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--contact-ivory);
  color: var(--contact-text);
  font-family: "Noto Serif JP", Georgia, serif;
}

body.contact-page .site-header {
  position: sticky;
  background: rgba(7, 17, 29, 0.96);
}

body.contact-page .site-nav a.active::after,
body.contact-page .site-nav a:hover::after {
  background: var(--contact-muted-blue);
}

.contact-hero {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  background: var(--contact-ivory);
}

.contact-hero-content {
  max-width: 620px;
  padding: 72px 20px 56px;
}

.contact-hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 13vw, 5.8rem);
  font-weight: 600;
  line-height: 0.95;
}

.contact-hero-lead {
  max-width: 440px;
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.65;
}

.contact-hero-text {
  max-width: 390px;
  margin: 32px 0 0;
  color: var(--contact-subtext);
  font-size: 0.95rem;
}

.contact-hero-text::before {
  content: "";
  display: block;
  width: 70px;
  height: 1px;
  margin-bottom: 24px;
  background: var(--contact-muted-blue);
}

.contact-button-group {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

body.contact-page .button {
  min-height: 52px;
  padding: 13px 28px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  border: 1px solid var(--contact-blue);
}

body.contact-page .button-primary {
  color: #fff;
  background: var(--contact-blue);
  box-shadow: 0 12px 24px rgba(7, 17, 29, 0.16);
}

body.contact-page .button-primary:hover {
  background: var(--contact-navy);
}

body.contact-page .button-secondary {
  color: var(--contact-blue);
  background: transparent;
}

body.contact-page .button-secondary:hover {
  background: rgba(22, 68, 97, 0.08);
}

.contact-hero-image {
  min-height: 340px;
  background:
    linear-gradient(to bottom, rgba(247, 244, 236, 0.08), rgba(247, 244, 236, 0.1)),
    url("images/contact-hero.jpg") center / cover no-repeat;
}

.inquiry-section {
  background: #faf6f1;
}

body.contact-page .center {
  text-align: center;
}

body.contact-page .center .section-label::after {
  margin-inline: auto;
}

.inquiry-grid {
  display: grid;
  gap: 14px;
}

.inquiry-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 118px;
  padding: 22px;
  background: #faf6f1;
  border: 1px solid var(--contact-border);
  transition: transform 0.25s var(--contact-ease), background 0.25s var(--contact-ease), border-color 0.25s var(--contact-ease);
}

.inquiry-card:hover {
  background: #faf6f1;
  border-color: rgba(22, 68, 97, 0.3);
  transform: translateY(-3px);
}

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  overflow: hidden;
  color: #7a877c;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.contact-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(2.15);
}

.inquiry-card h2 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.2;
}

.inquiry-card p {
  margin: 0;
  color: var(--contact-text);
  font-size: 0.9rem;
  line-height: 1.55;
}

.form-section {
  background: linear-gradient(to bottom, var(--contact-ivory), #f4f0e7);
  border-top: 1px solid rgba(216, 210, 200, 0.7);
}

.form-layout {
  display: grid;
  gap: 44px;
}

.small-line {
  display: block;
  width: 54px;
  height: 1px;
  margin-bottom: 24px;
  background: var(--contact-muted-blue);
}

.form-message h2,
.final-cta h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 600;
  line-height: 1.16;
}

.pine-mark {
  width: 140px;
  margin: 34px 0;
  color: rgba(93, 111, 97, 0.55);
}

.pine-mark svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.form-message p {
  margin: 0;
  padding-left: 16px;
  color: var(--contact-subtext);
  font-size: 0.94rem;
  border-left: 2px solid var(--contact-muted-blue);
}

.contact-form-wrap h2 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  color: var(--contact-text);
  font-size: 0.86rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--contact-text);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--contact-border);
  outline: none;
  transition: border-color 0.2s var(--contact-ease), background 0.2s var(--contact-ease);
}

.contact-form input {
  height: 42px;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--contact-muted-blue);
}

.submit-button {
  width: 100%;
  margin-top: 4px;
  cursor: pointer;
}

.links-section {
  padding: 64px 0 72px;
  background: #f4f0e7;
}

.contact-links-grid {
  display: grid;
  gap: 16px;
}

.contact-link-card {
  display: grid;
  grid-template-columns: 54px 1fr 20px;
  gap: 16px;
  align-items: center;
  min-height: 84px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--contact-border);
  transition: transform 0.25s var(--contact-ease), border-color 0.25s var(--contact-ease), background 0.25s var(--contact-ease);
}

.contact-link-card:hover {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(22, 68, 97, 0.35);
  transform: translateY(-3px);
}

.contact-link-card .link-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--contact-blue);
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.contact-link-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.2;
}

.contact-link-card small {
  color: var(--contact-subtext);
  font-size: 0.82rem;
}

.contact-link-card .arrow {
  color: var(--contact-subtext);
  font-size: 1.5rem;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background:
    linear-gradient(90deg, rgba(231, 244, 245, 0.98), rgba(214, 233, 236, 0.88)),
    radial-gradient(circle at 90% 50%, rgba(77, 143, 163, 0.22), transparent 35%);
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.final-cta h2 {
  max-width: 620px;
}

@media (min-width: 640px) {
  .contact-button-group {
    display: flex;
    align-items: center;
  }

  body.contact-page .button {
    min-width: 190px;
  }

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

  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .contact-hero {
    grid-template-columns: 46% 54%;
    min-height: 640px;
  }

  .contact-hero-content {
    align-self: center;
    padding: 76px 0 76px 80px;
  }

  .contact-hero-image {
    position: relative;
    min-height: auto;
  }

  .contact-hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to right, var(--contact-ivory) 0%, rgba(247, 244, 236, 0.88) 9%, rgba(247, 244, 236, 0.08) 34%, rgba(247, 244, 236, 0) 55%),
      linear-gradient(to bottom, rgba(7, 17, 29, 0.04), rgba(7, 17, 29, 0.08));
  }

  .inquiry-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .inquiry-card {
    padding: 26px 28px;
  }

  .form-layout {
    grid-template-columns: 38% 1fr;
    gap: 58px;
  }

  .form-message {
    padding-right: 44px;
    border-right: 1px solid var(--contact-border);
  }

  .links-section {
    padding: 72px 0 82px;
  }

  .final-cta-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .contact-hero-content {
    padding-left: calc((100vw - var(--container-width)) / 2);
  }
}

/* Unified header / footer */
.site-header,
body.home-page .site-header,
body.journal-page .site-header,
body.contact-page .site-header {
  position: sticky;
  top: 0;
  left: auto;
  width: 100%;
  height: var(--header-height);
  background: rgba(6, 17, 31, 0.96);
  color: var(--color-white);
  backdrop-filter: blur(12px);
}

.header-inner,
body.home-page .header-inner {
  width: min(100% - 40px, 1200px);
  height: 100%;
  margin-inline: auto;
}

.site-logo {
  order: 1;
}

.site-nav {
  order: 4;
  inset: var(--header-height) 0 auto 0;
  background: #06111f;
}

.site-nav a {
  color: #d7dce2;
}

.site-nav a.active,
.site-nav a:hover {
  color: #ffffff;
}

.header-social {
  order: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.menu-button {
  order: 3;
  margin-left: 8px;
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(248, 247, 242, 0.2);
  background: rgba(248, 247, 242, 0.08);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  background: rgba(248, 247, 242, 0.16);
  border-color: rgba(248, 247, 242, 0.38);
}

.social-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.site-footer,
body.home-page .site-footer {
  padding: 40px 0 26px;
  background: #06111f;
  color: var(--color-white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.footer-brand p {
  max-width: 760px;
  color: rgba(248, 247, 242, 0.72);
  font-size: 1rem;
  line-height: 1.75;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 247, 242, 0.16);
}

.footer-bottom p {
  color: rgba(248, 247, 242, 0.54);
  font-size: 0.86rem;
}

@media (min-width: 640px) {
  .header-inner,
  body.home-page .header-inner {
    width: min(100% - 64px, 1200px);
  }
}

@media (min-width: 900px) {
  .site-nav {
    order: 2;
    background: transparent;
  }

  .site-nav a::after,
  body.home-page .site-nav a::after,
  body.journal-page .site-nav a.active::after,
  body.journal-page .site-nav a:hover::after,
  body.contact-page .site-nav a.active::after,
  body.contact-page .site-nav a:hover::after {
    bottom: -22px;
    background: #64c6d3;
  }

  .header-social {
    order: 3;
    margin-left: 22px;
  }

  .social-icon {
    width: 36px;
    height: 36px;
  }

  .social-icon img {
    width: 21px;
    height: 21px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto auto;
    gap: 44px;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .header-inner,
  body.home-page .header-inner {
    width: min(100% - 24px, 1200px);
  }

  .header-social {
    gap: 6px;
  }

  .social-icon {
    width: 30px;
    height: 30px;
  }

  .social-icon img {
    width: 18px;
    height: 18px;
  }
}

/* Global typography: San Francisco */
html,
body,
button,
input,
textarea,
select {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

body * {
  font-family: inherit !important;
}

/* WordPress post and archive polish */
.article-card-image {
  display: block;
}

.single-featured-image {
  margin-top: 48px;
}

.single-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.single-content .container {
  max-width: 820px;
}

.single-content p,
.single-content li {
  color: #405268;
  font-size: 1rem;
  line-height: 1.9;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  margin: 2.2em 0 0.8em;
}

.single-content img {
  height: auto;
  margin: 32px 0;
}

.single-content a {
  color: #123f66;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.journal-pagination {
  margin-top: 44px;
}

.journal-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.journal-pagination a,
.journal-pagination span {
  min-width: 42px;
  padding: 10px 14px;
  border: 1px solid #c7d0d4;
  color: #061a33;
  text-align: center;
}

.journal-pagination .current {
  color: #fff;
  background: #123f66;
  border-color: #123f66;
}

/* Contact page indigo palette */
body.contact-page {
  --contact-navy: #061a33;
  --contact-blue: #123f66;
  --contact-muted-blue: #5d7f99;
  --contact-ivory: #f4f1e9;
  --contact-beige: #e8edf0;
  --contact-border: #bdc9cf;
  --contact-text: #111c2b;
  --contact-subtext: #46576a;
  background:
    linear-gradient(180deg, rgba(238, 244, 247, 0.5), rgba(244, 241, 233, 0) 360px),
    var(--contact-ivory);
}

body.contact-page .site-header {
  background: rgba(6, 26, 51, 0.97);
}

body.contact-page .contact-hero {
  background:
    linear-gradient(120deg, rgba(244, 241, 233, 0.98) 0%, rgba(240, 245, 247, 0.92) 48%, rgba(225, 235, 240, 0.86) 100%);
}

body.contact-page .contact-hero h1 {
  color: #08172c;
}

body.contact-page .section-label,
body.contact-page .contact-hero-text::before,
body.contact-page .small-line,
body.contact-page .section-label::after {
  background-color: transparent;
  color: #17466f;
}

body.contact-page .section-label::after,
body.contact-page .contact-hero-text::before,
body.contact-page .small-line {
  background: #315f7d;
}

body.contact-page .button-primary {
  background: #123f66;
  border-color: #123f66;
  box-shadow: 0 14px 28px rgba(6, 26, 51, 0.18);
}

body.contact-page .button-primary:hover {
  background: #061a33;
}

body.contact-page .button-secondary {
  color: #123f66;
  border-color: #315f7d;
}

body.contact-page .button-secondary:hover {
  background: rgba(18, 63, 102, 0.08);
}

body.contact-page .inquiry-section {
  background: #f4f1e9;
}

body.contact-page .inquiry-card {
  background: #eef3f5;
  border-color: #c4d0d6;
}

body.contact-page .inquiry-card:hover {
  background: #f6f8f8;
  border-color: rgba(18, 63, 102, 0.38);
}

body.contact-page .form-section {
  background:
    linear-gradient(180deg, #f4f1e9 0%, #e8edf0 100%);
  border-top-color: #c4d0d6;
}

body.contact-page .form-message {
  border-color: #c4d0d6;
}

body.contact-page .form-message p {
  border-left-color: #315f7d;
}

body.contact-page .contact-form input,
body.contact-page .contact-form textarea {
  background: rgba(255, 255, 255, 0.62);
  border-color: #c4d0d6;
}

body.contact-page .contact-form input:focus,
body.contact-page .contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: #315f7d;
}

body.contact-page .links-section {
  background: #e8edf0;
}

body.contact-page .contact-link-card {
  background: rgba(244, 241, 233, 0.76);
  border-color: #c4d0d6;
}

body.contact-page .contact-link-card:hover {
  background: #f7f5ef;
  border-color: rgba(18, 63, 102, 0.4);
}

body.contact-page .site-footer {
  background:
    radial-gradient(circle at 82% 0%, rgba(49, 95, 125, 0.28), transparent 32%),
    #061a33;
}

/* Site-wide Japan Blue indigo palette */
:root {
  --color-navy: #061a33;
  --color-deep-navy: #031124;
  --color-ivory: #f4f1e9;
  --color-ivory-dark: #e6e0d5;
  --color-text-main: #101b2b;
  --color-text-sub: #405268;
  --color-muted: #6b7a89;
  --color-line: #c7d0d4;
  --color-accent-blue: #315f7d;
  --color-white: #f8f7f2;
}

body {
  background:
    linear-gradient(180deg, rgba(232, 237, 240, 0.52), rgba(244, 241, 233, 0) 420px),
    #f4f1e9;
  color: #101b2b;
}

.site-header,
body.home-page .site-header,
body.journal-page .site-header,
body.contact-page .site-header {
  background: rgba(6, 26, 51, 0.97);
}

.site-nav {
  background: #061a33;
}

.site-nav a.active::after,
.site-nav a:hover::after,
body.home-page .site-nav a::after,
body.journal-page .site-nav a.active::after,
body.journal-page .site-nav a:hover::after,
body.contact-page .site-nav a.active::after,
body.contact-page .site-nav a:hover::after {
  background: #789db3;
}

.button-primary,
.btn-primary,
.primary-button,
body.home-page .home-button-primary,
body.contact-page .button-primary {
  background: #123f66;
  border-color: #123f66;
  color: #fff;
}

.button-primary:hover,
.btn-primary:hover,
.primary-button:hover,
body.home-page .home-button-primary:hover,
body.contact-page .button-primary:hover {
  background: #061a33;
  border-color: #061a33;
}

.button-secondary,
.btn-secondary,
.secondary-button,
body.home-page .home-button-secondary,
body.contact-page .button-secondary {
  color: #123f66;
  border-color: #5d7f99;
}

.accent-line,
.small-line,
.section-label::after,
body.home-page .home-section-label span::after,
body.home-page .home-contact-line {
  background: #315f7d;
}

body.home-page .home-concept,
body.home-page .home-journal,
body.about-page .mission,
body.about-page .why-japan,
.tools,
.journal-article-section {
  background: #f4f1e9;
}

body.home-page .home-themes,
body.home-page .theme-card,
body.home-page .theme-icon,
.profile-section,
.contact-links,
.journal-subscribe,
body.home-page .home-contact-cta,
body.contact-page .links-section {
  background: #e8edf0;
}

.theme-card,
.journal-card,
.article-card,
.tool-card img,
.link-card,
.contact-link-card,
.inquiry-card,
.resource-card {
  border-color: #c7d0d4;
}

.journal-card,
.article-card,
.featured-card,
.link-card,
.contact-link-card,
.inquiry-card,
body.contact-page .inquiry-card {
  background: rgba(248, 247, 242, 0.9);
}

.category,
.article-category,
.card-footer a,
.arrow-link,
.link-icon,
.contact-link-card .link-icon,
body.contact-page .section-label {
  color: #123f66;
}

.site-footer,
body.home-page .site-footer,
body.contact-page .site-footer {
  background:
    radial-gradient(circle at 82% 0%, rgba(49, 95, 125, 0.28), transparent 34%),
    #061a33;
}

.footer-bottom {
  border-top-color: rgba(248, 247, 242, 0.18);
}

@media (min-width: 900px) {
  .site-nav {
    background: transparent;
  }
}

/* Contact hero aligned with HOME scale and overlay */
body.contact-page .contact-hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  background: #f4f1e9;
}

body.contact-page .contact-hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 1200px);
  max-width: none;
  margin-inline: auto;
  padding: calc(var(--header-height) + 72px) 20px 72px;
  text-align: left;
}

body.contact-page .contact-hero h1 {
  max-width: 620px;
  margin-bottom: 24px;
  color: #101b2b;
  font-size: clamp(42px, 12vw, 62px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

body.contact-page .contact-hero-lead,
body.contact-page .contact-hero-text {
  max-width: 420px;
  color: #405268;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

body.contact-page .contact-hero-text {
  margin-top: 24px;
}

body.contact-page .contact-hero-text::before {
  display: none;
}

body.contact-page .contact-hero-image {
  position: absolute;
  inset: 0;
  min-height: 0;
  background:
    linear-gradient(
      90deg,
      rgba(244, 241, 233, 0.98) 0%,
      rgba(244, 241, 233, 0.92) 42%,
      rgba(244, 241, 233, 0.35) 70%,
      rgba(244, 241, 233, 0.08) 100%
    ),
    linear-gradient(
      0deg,
      rgba(6, 26, 51, 0.18) 0%,
      rgba(6, 26, 51, 0.04) 48%,
      rgba(6, 26, 51, 0.1) 100%
    ),
    url("images/contact-hero.jpg") center / cover no-repeat;
  filter: saturate(0.88) contrast(1.04);
}

body.contact-page .contact-hero-image::before {
  content: none;
}

@media (min-width: 960px) {
  body.contact-page .contact-hero {
    display: block;
    min-height: 600px;
  }

  body.contact-page .contact-hero-content {
    width: min(100% - 96px, var(--container-width));
    min-height: 600px;
    margin-inline: auto;
    padding: calc(var(--header-height) + 72px) 0 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  body.contact-page .contact-hero h1 {
    font-size: 62px;
  }

body.contact-page .contact-hero-image {
    background:
      linear-gradient(
        90deg,
        rgba(244, 241, 233, 1) 0%,
        rgba(244, 241, 233, 0.96) 34%,
        rgba(244, 241, 233, 0.55) 52%,
        rgba(244, 241, 233, 0.08) 72%
      ),
      linear-gradient(
        0deg,
        rgba(6, 26, 51, 0.18) 0%,
        rgba(6, 26, 51, 0.04) 48%,
        rgba(6, 26, 51, 0.1) 100%
      ),
      url("images/contact-hero.jpg") center right / cover no-repeat;
  }
}

/* Journal page: dynamic WordPress post index */
body.journal-page .journal-hero {
  padding: 92px 0 64px;
  background:
    linear-gradient(90deg, rgba(244, 241, 233, 0.98) 0%, rgba(244, 241, 233, 0.92) 54%, rgba(232, 237, 240, 0.86) 100%);
}

body.journal-page .journal-hero::after {
  right: -42px;
  top: 16px;
  width: min(46vw, 560px);
  height: 330px;
  opacity: 0.32;
  background:
    linear-gradient(24deg, transparent 0 48%, rgba(18, 63, 102, 0.18) 49% 50%, transparent 51%),
    radial-gradient(circle at 18% 76%, rgba(18, 63, 102, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 34% 65%, rgba(18, 63, 102, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 52%, rgba(18, 63, 102, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 64% 38%, rgba(18, 63, 102, 0.12) 0 2px, transparent 3px);
  transform: rotate(-12deg);
}

body.journal-page .journal-hero h1 {
  font-size: clamp(4.7rem, 13vw, 7.5rem);
  letter-spacing: 0;
}

body.journal-page .journal-hero-text {
  max-width: 580px;
  color: #183150;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.85;
}

body.journal-page .journal-featured {
  padding: 0 0 46px;
  background: #f4f1e9;
}

.journal-featured-article {
  display: grid;
  grid-template-columns: 1fr;
  background: transparent;
}

.journal-featured-image {
  display: block;
  min-height: 300px;
  overflow: hidden;
  background: #dfe7ea;
}

.journal-featured-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  filter: brightness(0.86) contrast(1.05) saturate(0.84);
}

.journal-featured-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 26px;
  background: rgba(248, 247, 242, 0.92);
  border: 1px solid #d7d6ce;
}

.journal-featured-card .article-category::after {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin-top: 10px;
  background: #789db3;
}

.journal-featured-card h2 {
  margin: 0 0 18px;
  color: #0b1d33;
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  line-height: 1.1;
}

.journal-featured-card .article-excerpt {
  margin: 0 0 24px;
  max-width: 520px;
  color: #2d3c4f;
  font-size: 0.98rem;
  line-height: 1.8;
}

.journal-featured-card .primary-button {
  width: fit-content;
  min-width: 178px;
}

body.journal-page .category-section {
  padding: 8px 0 32px;
  background: #f4f1e9;
}

.journal-category-nav {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding-bottom: 18px;
  border-bottom: 1px solid #d7d6ce;
  scrollbar-width: none;
}

.journal-category-nav::-webkit-scrollbar {
  display: none;
}

.journal-category-nav a {
  position: relative;
  flex: 0 0 auto;
  color: #52657b;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.journal-category-nav a:hover,
.journal-category-nav a.active {
  color: #061a33;
}

.journal-category-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  height: 2px;
  background: #789db3;
}

body.journal-page .article-section {
  padding: 0 0 72px;
  background: #f4f1e9;
}

body.journal-page .journal-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

body.journal-page .article-card {
  min-height: 100%;
  background: rgba(248, 247, 242, 0.94);
  border-color: #d7d6ce;
}

body.journal-page .article-card img {
  height: 205px;
  filter: brightness(0.9) contrast(1.04) saturate(0.86);
}

body.journal-page .article-card h3 {
  color: #0b1d33;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.35;
}

.journal-empty {
  margin-top: 28px;
  color: #46576a;
}

@media (min-width: 768px) {
  body.journal-page .journal-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journal-featured-image,
  .journal-featured-image img {
    min-height: 420px;
  }
}

@media (min-width: 1024px) {
  .journal-featured-article {
    grid-template-columns: 1.35fr 0.95fr;
    gap: 44px;
    align-items: stretch;
  }

  .journal-featured-image,
  .journal-featured-image img {
    min-height: 470px;
  }

  .journal-featured-card {
    min-height: 470px;
    padding: 48px;
  }

  .journal-category-nav {
    justify-content: center;
    gap: 58px;
  }

  body.journal-page .journal-article-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.journal-page .article-card img {
    height: 168px;
  }
}

/* Final font enforcement: San Francisco */
html,
body,
button,
input,
textarea,
select {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif !important;
}

body * {
  font-family: inherit !important;
}
