:root {
  color-scheme: light;
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  --ink: #171717;
  --muted: #737373;
  --paper: #ffffff;
  --wash: #eeeeee;
  --line: #d4d4d4;
}

@font-face {
  font-family: "ZenAppBrand";
  src: url("https://fonts.gstatic.com/s/roboto/v51/KFO5CnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmkC3kaSTbQWt4N.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  background: var(--paper);
  margin: 0;
}

.playfair {
  font-family: "Roboto", "Noto Sans JP", sans-serif !important;
  font-weight: 300 !important;
}

.bg-skew {
  isolation: isolate;
  position: relative;
}

.bg-skew::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 42rem;
  min-height: 650px;
  background: var(--wash);
  transform: skewY(-5deg);
  transform-origin: top left;
}

.zen-shell {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

.section-pad {
  padding-block: 5rem;
}

.eyebrow {
  border-inline-start: 2px solid currentColor;
  padding-inline-start: .625rem;
  font-size: .75rem;
  line-height: 1.5;
}

.zen-logo {
  letter-spacing: .08em;
}

.zen-brand {
  font-family: "Roboto", "Noto Sans JP", sans-serif !important;
  font-weight: 300 !important;
}

.rule-card h3 {
  font-weight: 300 !important;
}

.zen-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 90svh;
  margin-bottom: 0;
  place-items: center;
  overflow: visible;
  background: linear-gradient(to bottom, #000 0%, rgb(39 39 39) 100%);
  color: #fff;
}

.zen-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../images/enso.png") center / min(78vw, 32rem) auto no-repeat;
  filter: invert(1);
  opacity: .15;
  animation: enso-fade-in 3s ease-out both;
}

@keyframes enso-fade-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: .15;
    transform: translateY(0);
  }
}

.home-language-link {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  color: rgba(255, 255, 255, .85);
  font-size: 1.1rem;
  text-decoration: none;
}

.home-language-link:hover {
  color: #fff;
  text-decoration: underline;
}

.zen-hero-curve {
  height: 90px;
  margin-bottom: 60px;
  background: #272727;
  clip-path: ellipse(82% 122% at 26% -25%);
}

.meinichi-hero {
  background: #272727;
  color: #fff;
}

.meinichi-header {
  background: rgb(39 39 39);
  color: #fff;
}

.meinichi-header .zen-brand {
  color: #fff;
  font-weight: 300 !important;
  text-decoration: none;
}

.meinichi-hero h1 {
  font-family: "Roboto", "Noto Sans JP", sans-serif !important;
  font-weight: 300 !important;
}

.app-template-header {
  background: #000;
  color: #fff;
  padding: 1rem;
}

.app-template-header-inner,
.app-template-hero-inner {
  width: min(100%, 64rem);
  margin-inline: auto;
}

.app-template-brand {
  color: #fff;
  font-family: "Roboto", "Noto Sans JP", sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  text-decoration: none;
}

.app-template-languages {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
  gap: .75rem;
  margin-top: .5rem;
  font-size: 1.1rem;
}

.app-template-languages a {
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
}

.app-template-languages a:hover {
  color: #fff;
  text-decoration: underline;
}

.app-template-languages a[aria-current="page"] {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .25rem;
}

.app-template-hero {
  background: linear-gradient(to bottom, #000 0%, rgb(39 39 39) 100%);
  color: #fff;
  padding: 6rem 1rem;
}

.app-template-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.app-template-media {
  width: 100%;
  max-width: 25rem;
  margin-inline: auto;
}

.app-template-media img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: contain;
  border-radius: .75rem;
}

.app-template-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.app-template-copy h1 {
  width: 100%;
  margin: 0;
  font-family: "Roboto", "Noto Sans JP", sans-serif !important;
  font-size: 3rem;
  font-weight: 300 !important;
  line-height: 1.15;
  text-align: center;
  color: #fff !important;
}

.app-template-copy h2 {
  width: 100%;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  color: #fff !important;
}

.app-template-stores {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.app-template-stores img {
  display: block;
  width: 14rem;
  max-width: 46vw;
  height: auto;
}

.app-template-body {
  background: #fff;
  padding: 5rem 1rem;
}

.app-template-body-inner {
  width: min(100%, 64rem);
  margin-inline: auto;
}

.app-template-footer {
  background: #000;
  color: #fff;
  padding: 2.5rem 1rem;
  font-size: .875rem;
}

.app-template-footer-inner {
  width: min(100%, 64rem);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.app-template-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}

.app-template-footer a {
  color: #fff;
  text-decoration: none;
}

.app-template-footer a:hover {
  color: #fff;
  text-decoration: none;
}

.info-page .info-content {
  width: min(100%, 64rem);
  margin-inline: auto;
  padding: 5rem 1rem;
  color: var(--ink);
  line-height: 1.8;
}

.info-page .info-content h1,
.info-page .info-content h2 {
  font-weight: 300;
}

.info-page .info-content a {
  color: inherit;
}

@media (min-width: 640px) {
  .app-template-hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .app-template-media {
    flex: 0 1 25rem;
    margin-inline: 0;
  }

  .app-template-copy {
    flex: 1 1 0;
  }

  .app-template-copy h1,
  .app-template-copy h2 {
    text-align: left;
  }

  .app-template-stores {
    width: auto;
    justify-content: flex-start;
  }
}

.zen-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  transform: translateY(2.25rem);
  animation: hero-content-in 3s ease-out both;
}

@keyframes hero-content-in {
  from { transform: translateY(calc(2.25rem - 10px)); }
  to { transform: translateY(2.25rem); }
}

.zen-hero h1 {
  margin: 0;
  font-family: "Roboto", "Noto Sans JP", sans-serif !important;
  font-size: 4.7em;
  font-weight: 300 !important;
  line-height: 1;
  letter-spacing: -.04em;
  -webkit-font-smoothing: antialiased;
}

.zen-hero p {
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, .7);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
}

.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-code {
  margin: 0 0 1rem !important;
  color: rgba(255, 255, 255, .55) !important;
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
  letter-spacing: .2em;
}

.error-content h1 {
  font-size: clamp(2rem, 5vw, 4rem) !important;
}

.error-home-link {
  display: inline-block;
  margin-top: 2rem;
  border: 1px solid rgba(255, 255, 255, .75);
  padding: .75rem 1.25rem;
  color: #fff !important;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.error-home-link:hover {
  background: #fff;
  color: #171717 !important;
}

@media (max-width: 767px) {
  .zen-hero h1 {
    font-size: 3rem;
  }
}

.hero-image {
  aspect-ratio: 522 / 751;
  object-fit: cover;
}

.wide-photo {
  aspect-ratio: 2200 / 1649;
  object-fit: cover;
}

.portfolio-card {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 24px;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.portfolio-card:hover img,
.portfolio-card:focus-visible img {
  transform: scale(1.04);
}

.store-badge {
  width: min(18rem, 46vw);
  height: auto;
}

#portfolio .zen-shell {
  width: min(100% - 2rem, 48rem);
}

.rule-card {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

@media (min-width: 768px) {
  .zen-shell {
    width: min(100% - 4rem, 64rem);
  }

  #portfolio .zen-shell {
    width: min(100% - 4rem, 48rem);
  }

  .section-pad {
    padding-block: 7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portfolio-card img { transition: none; }
}
