:root {
  --aj-forest: #1f4938;
  --aj-moss: #667a58;
  --aj-sand: #f3efe5;
  --aj-paper: #fffcf6;
  --aj-clay: #a76540;
  --aj-ink: #1d2a24;
  --aj-mist: #dde8e3;
  --aj-line: rgba(31, 73, 56, 0.16);
  --aj-shadow: 0 22px 60px rgba(29, 42, 36, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.aj-header {
  border-bottom: 1px solid var(--aj-line);
  backdrop-filter: blur(14px);
  background: rgba(255, 252, 246, 0.94) !important;
  z-index: 100;
}

.aj-header .wp-block-site-title a {
  text-decoration: none;
}

.aj-nav-cta a,
.aj-nav-cta .wp-block-navigation-item__content {
  background: var(--aj-forest);
  border-radius: 999px;
  color: #fff !important;
  padding: 0.55rem 1rem;
}

.aj-section {
  padding: clamp(4.5rem, 9vw, 8rem) 1.25rem;
}

.aj-section--tight {
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.aj-eyebrow {
  color: var(--aj-clay);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.aj-hero {
  isolation: isolate;
  min-height: min(820px, calc(100vh - 76px));
}

.aj-hero .wp-block-cover__background {
  background-color: transparent !important;
  background-image: linear-gradient(
    90deg,
    rgba(20, 44, 34, 0.96) 0%,
    rgba(20, 44, 34, 0.86) 38%,
    rgba(20, 44, 34, 0.32) 68%,
    rgba(20, 44, 34, 0.04) 100%
  ) !important;
  opacity: 1 !important;
}

.aj-hero .wp-block-cover__image-background {
  filter: contrast(1.04) saturate(0.92);
  object-position: 62% center;
  transform: scale(1.015);
}

.aj-hero .wp-block-cover__inner-container {
  width: 100%;
}

.aj-hero-copy {
  margin-left: max(1.25rem, calc((100vw - 1180px) / 2));
  max-width: 760px;
  padding: 7rem 1.25rem 7rem 0;
}

.aj-hero h1 {
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.6rem);
  letter-spacing: -0.045em;
  margin: 0 0 1.25rem;
  max-width: 920px;
}

.aj-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 650px;
}

.aj-hero .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}

.aj-trust-strip {
  border-bottom: 1px solid var(--aj-line);
  border-top: 1px solid var(--aj-line);
}

.aj-stat {
  border-right: 1px solid var(--aj-line);
  min-height: 100%;
  padding: 1.25rem;
}

.aj-stat:last-child {
  border-right: 0;
}

.aj-stat strong {
  color: var(--aj-forest);
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.aj-card {
  background: #fff;
  border: 1px solid var(--aj-line);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(29, 42, 36, 0.06);
  height: 100%;
  overflow: hidden;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.aj-card h3 {
  margin-top: 0.4rem;
}

.aj-card .wp-block-image {
  margin: -2rem -2rem 1.6rem;
}

.aj-card .wp-block-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.aj-number {
  align-items: center;
  background: var(--aj-mist);
  border-radius: 999px;
  color: var(--aj-forest);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 800;
  height: 2.2rem;
  justify-content: center;
  width: 2.2rem;
}

.aj-process-step {
  border-top: 1px solid var(--aj-line);
  padding: 1.5rem 0;
}

.aj-price-card {
  background: #fff;
  border: 1px solid var(--aj-line);
  border-radius: 24px;
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.aj-price {
  color: var(--aj-forest);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

.aj-note {
  border-left: 4px solid var(--aj-clay);
  padding-left: 1.25rem;
}

.aj-profile-image img {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  box-shadow: var(--aj-shadow);
  object-fit: cover;
  width: 100%;
}

.aj-booking {
  background: var(--aj-forest);
  border-radius: 32px;
  box-shadow: var(--aj-shadow);
  color: #fff;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  position: relative;
}

.aj-booking::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 66%);
  content: '';
  height: 430px;
  pointer-events: none;
  position: absolute;
  right: -160px;
  top: -190px;
  width: 430px;
}

.aj-booking h2,
.aj-booking h3,
.aj-booking a:not(.wp-block-button__link) {
  color: #fff;
}

.aj-booking .wp-block-button__link,
.akiya-timerex-link {
  background: #fff !important;
  color: var(--aj-forest) !important;
}

.akiya-timerex-link {
  border-radius: 999px;
  display: inline-block;
  font-weight: 800;
  padding: 0.9rem 1.35rem;
  text-decoration: none;
}

.akiya-timerex-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.38);
  border-radius: 14px;
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.8rem 1rem;
}

.akiya-timerex-embed iframe {
  background: #fff;
  border: 0;
  border-radius: 18px;
  min-height: 720px;
  width: 100%;
}

.aj-faq details {
  border-top: 1px solid var(--aj-line);
  padding: 1.25rem 0;
}

.aj-faq summary {
  color: var(--aj-forest);
  cursor: pointer;
  font-weight: 750;
}

.aj-coming-soon {
  align-items: center;
  background-color: #111;
  background-image: url('../images/akiya-house.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  min-height: calc(100vh - 160px);
  overflow: hidden;
  padding: clamp(5rem, 12vw, 10rem) 1.25rem;
  position: relative;
}

.aj-coming-soon::before,
.aj-coming-soon::after {
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.aj-coming-soon::before {
  background: rgba(0, 0, 0, 0.42);
}

.aj-coming-soon::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
}

body.aj-page-calendar .aj-coming-soon {
  background-image: url('../images/calendar-booking-mockup.png');
  background-position: right bottom;
  background-size: 200% auto;
}

.aj-properties-preview {
  background: var(--aj-paper);
  min-height: calc(100vh - 160px);
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 1.25rem clamp(4rem, 8vw, 7rem);
  position: relative;
}

.aj-properties-preview-intro {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 760px;
}

.aj-properties-preview-intro h1 {
  letter-spacing: -0.04em;
  margin-bottom: 1.1rem;
}

.aj-property-explorer {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.aj-property-explorer-map-panel,
.aj-property-explorer-preferences {
  border-radius: 30px;
  box-shadow: var(--aj-shadow);
  overflow: hidden;
}

.aj-property-explorer-map-panel {
  background: #fff;
  border: 1px solid var(--aj-line);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.aj-property-explorer-heading,
.aj-new-properties-heading {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.aj-property-explorer-heading h2,
.aj-property-explorer-preferences h2,
.aj-new-properties-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.035em;
  margin: 0;
}

.aj-property-explorer-note {
  color: var(--aj-moss);
  font-size: 0.85rem;
  margin: 0 0 0.4rem;
}

.aj-japan-map-shell {
  background-color: #d8e7e1;
  background-image:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.72), transparent 34%),
    radial-gradient(circle at 1px 1px, rgba(31, 73, 56, 0.08) 1px, transparent 0);
  background-size: auto, 22px 22px;
  border: 1px solid rgba(31, 73, 56, 0.08);
  border-radius: 24px;
  margin: 1.5rem 0;
  overflow: hidden;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  position: relative;
}

.aj-japan-map-shell::before,
.aj-japan-map-shell::after {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  content: '';
  height: 340px;
  pointer-events: none;
  position: absolute;
  right: -190px;
  top: -175px;
  width: 340px;
}

.aj-japan-map-shell::after {
  height: 430px;
  right: -235px;
  top: -220px;
  width: 430px;
}

.aj-real-japan-map {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 470px;
  position: relative;
  z-index: 1;
}

.aj-japan-map {
  display: block;
  filter: drop-shadow(0 16px 18px rgba(29, 42, 36, 0.13));
  height: auto;
  max-height: 470px;
  width: min(100%, 540px);
}

.aj-japan-map .aj-map-inset-frame {
  fill: rgba(255, 252, 246, 0.68);
  pointer-events: none;
  stroke: rgba(31, 73, 56, 0.44);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.aj-japan-map .aj-map-inset-label {
  fill: rgba(29, 42, 36, 0.68);
  font-family: var(--wp--preset--font-family--sans, sans-serif);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.aj-japan-map .aj-prefecture {
  cursor: pointer;
  fill: #78956f;
  opacity: 1;
  stroke: rgba(255, 252, 246, 0.94);
  stroke-linejoin: round;
  stroke-width: 0.8;
  transition: fill 160ms ease, filter 160ms ease, opacity 160ms ease, stroke-width 160ms ease;
  vector-effect: non-scaling-stroke;
}

.aj-japan-map .aj-region-hokkaido {
  fill: #486d5a;
}

.aj-japan-map .aj-region-tohoku {
  fill: #5d7e66;
}

.aj-japan-map .aj-region-kanto {
  fill: #6e8d70;
}

.aj-japan-map .aj-region-chubu {
  fill: #84966e;
}

.aj-japan-map .aj-region-kansai {
  fill: #a8754f;
}

.aj-japan-map .aj-region-chugoku {
  fill: #af7f57;
}

.aj-japan-map .aj-region-shikoku {
  fill: #b98d61;
}

.aj-japan-map .aj-region-kyushu {
  fill: #c19668;
}

.aj-japan-map .aj-prefecture:hover {
  fill: var(--aj-forest);
  filter: brightness(1.08) drop-shadow(0 3px 4px rgba(29, 42, 36, 0.25));
  stroke-width: 1.35;
}

.aj-real-japan-map:not([data-active-region='all']) .aj-prefecture {
  opacity: 0.2;
}

.aj-real-japan-map[data-active-region='hokkaido'] .aj-region-hokkaido,
.aj-real-japan-map[data-active-region='tohoku'] .aj-region-tohoku,
.aj-real-japan-map[data-active-region='kanto'] .aj-region-kanto,
.aj-real-japan-map[data-active-region='chubu'] .aj-region-chubu,
.aj-real-japan-map[data-active-region='kansai'] .aj-region-kansai,
.aj-real-japan-map[data-active-region='chugoku'] .aj-region-chugoku,
.aj-real-japan-map[data-active-region='shikoku'] .aj-region-shikoku,
.aj-real-japan-map[data-active-region='kyushu'] .aj-region-kyushu {
  fill: var(--aj-forest);
  filter: drop-shadow(0 4px 6px rgba(29, 42, 36, 0.24));
  opacity: 1;
  stroke-width: 1.4;
}

.aj-map-loading {
  color: var(--aj-forest);
  font-weight: 750;
  text-align: center;
}

.aj-map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  justify-content: center;
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}

.aj-map-key span {
  align-items: center;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: rgba(29, 42, 36, 0.72);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 750;
  gap: 0.38rem;
  padding: 0.32rem 0.58rem;
}

.aj-map-attribution {
  color: rgba(29, 42, 36, 0.55);
  font-size: 0.62rem;
  line-height: 1.45;
  margin: 0.8rem 0 0;
}

.aj-map-attribution a {
  color: inherit;
}

.aj-region-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.aj-region-pills button,
.aj-lifestyle-grid button {
  appearance: none;
  background: transparent;
  border: 1px solid var(--aj-line);
  color: var(--aj-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.aj-region-pills button {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
}

.aj-region-pills button:hover,
.aj-region-pills button:focus,
.aj-region-pills button.is-active {
  background: var(--aj-forest);
  border-color: var(--aj-forest);
  color: #fff;
  outline: none;
}

.aj-property-explorer-preferences {
  background: var(--aj-forest);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.aj-property-explorer-preferences .aj-eyebrow {
  color: #e8b38f;
}

.aj-property-explorer-preferences h2 {
  color: #fff;
}

.aj-lifestyle-grid {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.aj-lifestyle-grid button {
  align-items: center;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #fff;
  display: flex;
  gap: 0.75rem;
  padding: 0.72rem 0.9rem;
  text-align: left;
  width: 100%;
}

.aj-lifestyle-grid button span {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  display: inline-flex;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.aj-lifestyle-grid button:hover,
.aj-lifestyle-grid button:focus,
.aj-lifestyle-grid button.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--aj-forest);
  outline: none;
  transform: translateX(3px);
}

.aj-lifestyle-grid button:hover span,
.aj-lifestyle-grid button:focus span,
.aj-lifestyle-grid button.is-active span {
  background: var(--aj-mist);
}

.aj-explorer-selection {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 1.5rem;
  padding-top: 1.35rem;
}

.aj-explorer-selection span,
.aj-explorer-selection small {
  display: block;
}

.aj-explorer-selection span {
  color: #e8b38f;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.aj-explorer-selection strong {
  color: #fff;
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  margin: 0.35rem 0;
}

.aj-explorer-selection small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
}

.aj-new-properties {
  position: relative;
}

.aj-new-properties-heading {
  border-top: 1px solid var(--aj-line);
  padding-top: clamp(2rem, 4vw, 3rem);
}

.aj-new-properties-heading a {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  text-decoration: none;
}

.aj-property-results-status {
  color: var(--aj-moss);
  font-size: 0.82rem;
  margin: 0.7rem 0 1.5rem;
}

.aj-property-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aj-property-preview-card {
  background: #fff;
  border: 1px solid var(--aj-line);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(29, 42, 36, 0.08);
  overflow: hidden;
}

.aj-property-preview-image {
  aspect-ratio: 16 / 9;
  background: #101411;
  overflow: hidden;
}

.aj-property-preview-image img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.5);
  width: 100%;
}

.aj-property-preview-copy {
  padding: 1.35rem 1.45rem 1.55rem;
}

.aj-property-preview-source {
  color: var(--aj-clay);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

.aj-property-preview-copy h2,
.aj-property-preview-copy h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  margin: 0 0 0.55rem;
}

.aj-property-preview-price {
  color: var(--aj-forest);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.55rem;
}

.aj-property-preview-meta {
  color: var(--aj-moss);
  font-size: 0.82rem;
  margin: 0;
}

.aj-property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.aj-property-tags span {
  background: var(--aj-mist);
  border-radius: 999px;
  color: var(--aj-forest);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.3rem 0.55rem;
}

.aj-property-empty {
  background: var(--aj-sand);
  border: 1px dashed rgba(31, 73, 56, 0.28);
  border-radius: 22px;
  margin-top: 1rem;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.aj-property-empty strong {
  color: var(--aj-forest);
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.aj-properties-preview-overlay {
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  display: flex;
  inset: 0;
  justify-content: center;
  margin: 0 !important;
  max-width: none !important;
  padding: clamp(8rem, 18vh, 12rem) 1.25rem 2rem;
  pointer-events: none;
  position: absolute;
  text-align: center;
  width: auto !important;
  z-index: 3;
}

.aj-properties-preview-overlay-inner {
  max-width: 760px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.aj-properties-preview-overlay .aj-eyebrow {
  color: #e8b38f;
}

.aj-properties-preview-overlay h1,
.aj-properties-preview-overlay h2 {
  color: #fff;
  font-size: clamp(3.2rem, 8vw, 6rem);
  margin: 0 0 1.25rem;
  white-space: nowrap;
}

.aj-properties-preview-overlay p:last-child {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin: 0 auto;
  max-width: 650px;
}

.aj-coming-soon-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #fff;
  margin-left: 0 !important;
  max-width: 760px;
  padding: clamp(1.25rem, 5vw, 3rem) 0;
  position: relative;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.38);
  z-index: 2;
}

.aj-coming-soon-card h1,
.aj-coming-soon-card a {
  color: #fff;
}

.aj-coming-soon-card h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  margin-bottom: 1.25rem;
}

.aj-coming-soon-card .aj-eyebrow {
  color: #e8b38f;
}

.aj-coming-soon-card .wp-block-post-title {
  color: rgba(255, 255, 255, 0.72);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.aj-coming-soon-card .wp-block-button__link {
  background: #fff !important;
  color: var(--aj-forest) !important;
}

.aj-empty-state {
  background-color: #111;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('../images/shirakawago.jpg');
  background-position: center 55%;
  background-repeat: no-repeat;
  background-size: cover;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(29, 42, 36, 0.16);
  color: #fff;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  margin-top: 2.5rem;
  min-height: 380px;
  padding: clamp(7rem, 16vw, 12rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.aj-empty-state strong {
  display: inline-block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.aj-card ul,
.aj-price-card ul {
  padding-left: 1.2rem;
}

.aj-card li,
.aj-price-card li {
  margin-bottom: 0.45rem;
}

.aj-media-block {
  margin-bottom: clamp(3rem, 7vw, 6rem);
  margin-top: clamp(3rem, 7vw, 6rem);
}

.aj-media-story {
  background: var(--aj-sand);
  border: 1px solid var(--aj-line);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(29, 42, 36, 0.08);
  overflow: hidden;
}

.aj-media-story .wp-block-media-text__media,
.aj-media-story .wp-block-media-text__media img {
  height: 100%;
  min-height: 440px;
}

.aj-media-story .wp-block-media-text__media img {
  object-fit: cover;
  width: 100%;
}

.aj-media-story .wp-block-media-text__content {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.aj-media-gallery .wp-block-image img {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-fit: cover;
  width: 100%;
}

.aj-media-gallery figcaption {
  color: var(--aj-moss);
  font-size: 0.82rem;
  text-align: left;
}

.aj-media-video {
  background: var(--aj-mist);
  border: 1px solid var(--aj-line);
  border-radius: 28px;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.aj-media-video .wp-block-video,
.aj-media-video video,
.aj-media-video iframe {
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
}

.aj-media-cards .aj-card {
  padding: 1.25rem;
}

.aj-media-cards .aj-card .wp-block-image {
  margin: -1.25rem -1.25rem 1.25rem;
}

.wp-block-button__link {
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wp-block-button__link:hover,
.akiya-timerex-link:hover {
  box-shadow: 0 10px 26px rgba(29, 42, 36, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 781px) {
  .aj-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .aj-header .wp-block-navigation__responsive-container.is-menu-open {
    align-items: stretch;
    background: var(--aj-paper);
    box-sizing: border-box;
    display: flex;
    height: 100vh;
    height: 100dvh;
    inset: 0;
    min-height: 100vh;
    overflow-y: auto;
    padding: max(1.25rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
    position: fixed;
    width: 100%;
    z-index: 100000;
  }

  .aj-header .wp-block-navigation__responsive-container-content {
    align-items: stretch;
    box-sizing: border-box;
    flex: 1;
    justify-content: flex-start;
    padding-top: 4.5rem;
    width: 100%;
  }

  .aj-header .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .aj-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
    border-bottom: 1px solid var(--aj-line);
    width: 100%;
  }

  .aj-header .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
    box-sizing: border-box;
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    line-height: 1.2;
    padding: 1rem 0;
    text-align: left;
    width: 100%;
  }

  .aj-header .wp-block-navigation__responsive-container-close {
    color: var(--aj-forest);
    right: max(1.25rem, env(safe-area-inset-right));
    top: max(1.25rem, env(safe-area-inset-top));
  }

  .aj-header .wp-block-navigation__responsive-container-content .aj-nav-cta {
    border-bottom: 0;
    margin-top: 1rem;
  }

  .aj-header .wp-block-navigation__responsive-container-content .aj-nav-cta .wp-block-navigation-item__content {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.9rem 1.1rem;
    text-align: center;
  }

  .aj-hero .wp-block-cover__background {
    background-image: linear-gradient(
      180deg,
      rgba(20, 44, 34, 0.28) 0%,
      rgba(20, 44, 34, 0.64) 46%,
      rgba(20, 44, 34, 0.94) 100%
    ) !important;
  }

  .aj-hero .wp-block-cover__image-background {
    object-position: 58% center;
  }

  .aj-hero-copy {
    margin-left: 0;
    padding-left: 0;
  }

  .aj-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.6rem);
  }

  .aj-stat {
    border-bottom: 1px solid var(--aj-line);
    border-right: 0;
  }

  .aj-card .wp-block-image {
    margin-left: -1.35rem;
    margin-right: -1.35rem;
  }

  .aj-media-story .wp-block-media-text__media,
  .aj-media-story .wp-block-media-text__media img {
    min-height: 300px;
  }

  .aj-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .aj-property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aj-property-explorer {
    grid-template-columns: 1fr;
  }

  .aj-property-explorer-preferences {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aj-property-explorer-preferences > .aj-eyebrow,
  .aj-property-explorer-preferences > h2,
  .aj-property-explorer-preferences > p,
  .aj-explorer-selection {
    grid-column: 1 / -1;
  }

  .aj-lifestyle-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aj-properties-preview-overlay {
    padding-top: 7rem;
  }
}

@media (max-width: 540px) {
  .aj-property-grid,
  .aj-lifestyle-grid {
    grid-template-columns: 1fr;
  }

  .aj-property-explorer-heading,
  .aj-new-properties-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .aj-property-explorer-note {
    margin-bottom: 0;
  }

  .aj-real-japan-map {
    min-height: 330px;
  }

  .aj-japan-map {
    max-height: 360px;
  }

  .aj-properties-preview-overlay h1,
  .aj-properties-preview-overlay h2 {
    white-space: normal;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
