/* Udon Kyutaro - layout modeled after a quiet Japanese noodle brand site */

:root {
  --color-ink: #0b0b0b;
  --color-sub: #555;
  --color-faint: #8b8b8b;
  --color-paper: #fff;
  --color-soft: #f6f2ea;
  --color-line: rgba(0, 0, 0, 0.16);
  --color-red: #d33;
  --font-serif: "Times New Roman", "Noto Serif JP", "Yu Mincho", "YuMincho",
    "Hiragino Mincho ProN", serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --container: min(1120px, calc(100vw - 80px));
  --header-h: 92px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--color-red);
}

::focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 1rem;
  background: #fff;
}

.skip-link:focus {
  left: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.46), rgba(0, 0, 0, 0));
  transition: background 240ms var(--ease), color 240ms var(--ease),
    border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.site-header.is-scrolled {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -22px rgba(0, 0, 0, 0.4);
}

.site-header.is-scrolled .brand__tag,
.site-header.is-scrolled .lang-switch a {
  opacity: 0.7;
}

.site-header__inner {
  width: min(1280px, calc(100vw - 64px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  line-height: 1.2;
}

.brand__name {
  font-size: 1.26rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.brand__tag {
  margin-top: 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.78;
}

.nav-main-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.4rem;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.nav-main a {
  position: relative;
  padding-bottom: 0.35rem;
}

.nav-main a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}

.nav-main a:hover::after,
.nav-main a[aria-current="page"]::after {
  transform: scaleX(1);
}

.lang-switch {
  display: flex;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.lang-switch a {
  opacity: 0.66;
}

.lang-switch a[aria-current="true"] {
  opacity: 1;
}

.nav-toggle {
  display: none;
  justify-self: end;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.nav-toggle__bar {
  display: block;
  width: 28px;
  height: 1px;
  margin: 0;
  background: currentColor;
}

/* Hero: full-bleed image with vertical catch copy */
.hero,
.page-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero__media,
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, 0.22), transparent 0 17rem),
    linear-gradient(135deg, #101010 0%, #6d604f 46%, #d8c8a9 100%);
}

.hero__media::before,
.page-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.16) 45%, rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(0, 0, 0, 0.28) 100%);
}

.hero__media::after,
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.18;
  background:
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.5) 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.22) 32px);
}

.hero__media img,
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(0.88) contrast(1.06);
}

.hero__media img.is-missing,
.page-hero__media img.is-missing,
.split__media img.is-missing {
  display: none;
}

.hero__content,
.page-hero__content {
  width: min(1180px, calc(100vw - 80px));
  min-height: inherit;
  margin: 0 auto;
  padding: calc(var(--header-h) + 56px) 0 78px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.hero .hero__content.hero__content--title-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero .hero__content.hero__content--title-centered .hero__title {
  grid-column: unset;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  text-align: center;
  width: 100%;
  max-width: 18em;
}

.hero .hero__content.hero__content--title-centered .hero__lead {
  grid-column: unset;
  align-self: center;
  text-align: left;
  max-width: 32rem;
}

.hero__kicker {
  grid-column: 2;
  align-self: end;
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  line-height: 2;
}

.hero__title,
.page-hero__title {
  grid-column: 2;
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(2rem, 4vw, 4.1rem);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.14em;
}

.hero__lead,
.page-hero__summary {
  grid-column: 1;
  align-self: end;
  max-width: 29rem;
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 2.25;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 54px;
  background: currentColor;
  animation: scrollLine 2.2s var(--ease) infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0.2);
    transform-origin: top;
    opacity: 0.2;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
    opacity: 0.8;
  }
  100% {
    transform: scaleY(0.2);
    transform-origin: bottom;
    opacity: 0.2;
  }
}

/* News */
.news-strip {
  background: #fff;
  border-bottom: 1px solid var(--color-line);
}

.news-strip__inner {
  width: var(--container);
  margin: 0 auto;
  padding: 30px 0;
}

.news-strip__list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-strip__item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.8;
}

.news-strip__date {
  color: var(--color-faint);
  letter-spacing: 0.08em;
}

/* Content builder style sections */
.section {
  position: relative;
  padding: 110px 0;
  background: #fff;
}

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

.section__inner {
  width: var(--container);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  align-items: stretch;
  gap: 0;
}

.split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 430px;
  padding: 56px 0;
}

.split__text p {
  margin: 0 0 1.1rem;
  color: var(--color-sub);
}

.section__eyebrow {
  margin: 0 0 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0.16em;
  color: var(--color-faint);
  text-transform: uppercase;
}

.section__title {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 2.9vw, 2.75rem);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.08em;
}

.section__text {
  max-width: 46rem;
  margin: 0;
  color: var(--color-sub);
}

.split__media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.3), transparent 0 13rem),
    linear-gradient(135deg, #312b24, #a58f6c 50%, #eadfc9);
}

.split__media::before {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.48);
  pointer-events: none;
}

.split__media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 900ms var(--ease);
}

.split__media:hover img {
  transform: scale(1.06);
}

.section:nth-of-type(3) .split,
.section:nth-of-type(5) .split {
  direction: rtl;
}

.section:nth-of-type(3) .split > *,
.section:nth-of-type(5) .split > * {
  direction: ltr;
}

.section__head {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}

.lineup {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1px;
  margin: 0;
  list-style: none;
  background: var(--color-line);
}

.lineup__item {
  position: relative;
  min-height: 0;
  aspect-ratio: 3 / 4;
  padding: 0;
  overflow: hidden;
  background: #111;
}

.lineup__media {
  position: absolute;
  inset: 0;
}

.lineup__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 700ms var(--ease), opacity 240ms var(--ease);
}

.lineup__item:hover .lineup__media img {
  transform: scale(1.06);
}

.lineup__media img.is-missing {
  display: none;
}

.lineup__copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 1.6rem 1.35rem 1.5rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.52) 42%,
    rgba(0, 0, 0, 0.82) 100%
  );
  color: #fff;
}

.lineup__cat {
  margin: 0 0 0.45rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
}

.lineup__name {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.lineup__item:hover .lineup__copy {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.62) 38%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.section--soft .cta-row {
  justify-content: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 52px;
  padding: 0.8rem 1.5rem;
  color: #fff;
  background: #111;
  border: 1px solid #111;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  transition: color 240ms var(--ease), background 240ms var(--ease);
}

.btn:hover {
  color: #fff;
  background: var(--color-red);
  border-color: var(--color-red);
}

.btn--ghost {
  color: #111;
  background: transparent;
}

.btn--ghost:hover {
  color: #fff;
}

/* Lower pages */
.page-hero {
  min-height: 66svh;
}

.page-hero__content {
  align-items: end;
}

.page-hero__title {
  align-self: center;
}

.breadcrumb {
  width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + 26px) 0 0;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-faint);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.prose {
  width: min(860px, calc(100vw - 80px));
  margin: 0 auto;
  padding: 86px 0 120px;
}

.prose h2 {
  margin: 3.4rem 0 1.2rem;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: 0.06em;
}

.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.prose p,
.prose li {
  color: var(--color-sub);
}

.info-table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.92rem;
}

.info-table th,
.info-table td {
  padding: 1.05rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-line);
}

.info-table th {
  width: 30%;
  color: var(--color-faint);
  font-weight: 500;
}

/* Footer */
.site-footer {
  color: #fff;
  background: #111;
}

.site-footer__inner {
  width: var(--container);
  margin: 0 auto;
  padding: 76px 0 56px;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
}

.site-footer__address {
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.9;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-nav__title {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.footer-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.94rem;
}

.footer-nav li + li {
  margin-top: 0.55rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-nav a:hover {
  color: #fff;
}

.site-footer__bottom {
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.48);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-sans);
  font-size: 0.75rem;
}

/* Animation */
.reveal,
.reveal-img {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}

.reveal.is-visible,
.reveal-img.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1000px) {
  :root {
    --container: min(100% - 40px, 720px);
    --header-h: 72px;
  }

  .site-header {
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-line);
  }

  .site-header__inner {
    width: var(--container);
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.98);
    color: var(--color-ink);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  }

  .nav-toggle:hover {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .nav-toggle:active {
    background: #f4f4f4;
  }

  .nav-main-wrap {
    position: fixed;
    inset: var(--header-h) 0 0;
    display: block;
    padding: 32px var(--container-side, 20px);
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms var(--ease), opacity 260ms var(--ease);
  }

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

  .nav-main {
    display: grid;
    justify-content: stretch;
    gap: 0;
    font-size: 0.95rem;
  }

  .nav-main a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--color-line);
  }

  .nav-main a::after {
    display: none;
  }

  .lang-switch {
    margin-top: 1.5rem;
  }

  .hero,
  .page-hero {
    min-height: 760px;
  }

  .hero__content,
  .page-hero__content {
    width: var(--container);
    padding: calc(var(--header-h) + 46px) 0 72px;
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }

  .hero .hero__content.hero__content--title-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-template-columns: unset;
    align-content: unset;
  }

  .hero__title,
  .page-hero__title {
    font-size: clamp(2rem, 9vw, 3.1rem);
  }

  .hero__lead,
  .page-hero__summary {
    max-width: 22rem;
    font-size: 0.94rem;
  }

  .section {
    padding: 78px 0;
  }

  .split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .split__text {
    max-width: none;
    padding: 0 0 44px;
  }

  .split__media {
    min-height: 360px;
  }

  .lineup {
    grid-template-columns: 1fr;
  }

  .lineup__item {
    aspect-ratio: 4 / 5;
  }

  .lineup__copy {
    padding: 1.35rem 1.15rem 1.25rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 520px);
  }

  body {
    font-size: 15px;
  }

  .site-header__inner {
    width: var(--container);
  }

  .brand__name {
    font-size: 1.05rem;
  }

  .brand__tag {
    font-size: 0.62rem;
  }

  .hero,
  .page-hero {
    min-height: 680px;
  }

  .hero__content,
  .page-hero__content {
    width: var(--container);
    grid-template-columns: 1fr;
    align-content: end;
  }

  .hero .hero__content.hero__content--title-centered {
    display: flex;
    align-content: unset;
    justify-content: center;
  }

  .hero__kicker,
  .hero__title,
  .page-hero__title {
    grid-column: 1;
    writing-mode: horizontal-tb;
  }

  .hero__kicker {
    align-self: auto;
  }

  .hero__title,
  .page-hero__title {
    line-height: 1.45;
  }

  .hero__lead,
  .page-hero__summary {
    grid-column: 1;
    max-width: none;
    line-height: 2;
  }

  .news-strip__item {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .section__head {
    text-align: left;
  }

  .section__title {
    line-height: 1.55;
  }

  .cta-row,
  .site-footer__bottom {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .prose {
    width: var(--container);
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    padding-bottom: 0.2rem;
    border-bottom: 0;
  }

  .info-table td {
    padding-top: 0;
  }
}

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

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

  .reveal,
  .reveal-img {
    opacity: 1;
    transform: none;
  }
}
