/* Wall & Wall annex — site styles (no build step, no external fonts) */
:root {
  --fg: #222;
  --muted: #6b6b6b;
  --line: #e4e2dd;
  --bg: #fff;
  --bg-soft: #f6f5f2;
  --accent: #d2232a; /* Wall logo red (from the logo PDF) */
  --max: 1120px;
  --gutter: 20px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
}
p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  color: var(--accent);
  transition: color 0.3s;
}
.logo-mark {
  display: block;
  height: 24px;
  width: auto;
}
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.nav a {
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  border-bottom-color: currentColor;
}
.menu-btn {
  display: none;
}

/* Top page: header sits over the hero */
.home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
  color: #fff;
  transition:
    background 0.3s,
    color 0.3s;
}
.home .site-header .logo {
  color: #fff;
}
.home .site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  color: var(--fg);
  border-bottom: 1px solid var(--line);
}
.home .site-header.scrolled .logo {
  color: var(--accent);
}

@media (max-width: 860px) {
  .menu-btn {
    display: block;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 10px;
  }
  .menu-btn i,
  .menu-btn i::before,
  .menu-btn i::after {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: transform 0.2s;
  }
  .menu-btn i::before,
  .menu-btn i::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .menu-btn i::before {
    top: -7px;
  }
  .menu-btn i::after {
    top: 7px;
  }
  .menu-open .menu-btn i {
    background: transparent;
  }
  .menu-open .menu-btn i::before {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-open .menu-btn i::after {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    color: var(--fg);
    overflow-y: auto;
  }
  .menu-open .nav {
    display: block;
  }
  .menu-open.home .site-header {
    background: #fff;
    color: var(--fg);
  }
  .menu-open.home .site-header .logo {
    color: var(--accent);
  }
  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 32px;
  }
  .nav li {
    border-bottom: 1px solid var(--line);
  }
  .nav a {
    display: block;
    padding: 16px 4px;
    font-size: 16px;
    border: 0;
  }
}

/* ---------- hero (top page) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: #333;
  color: #fff;
}
.hero .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero .slide.on {
  opacity: 1;
}
.hero .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0,
    rgba(0, 0, 0, 0) 22%,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
}
.hero .copy {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 56px;
}
.hero .copy p {
  margin: 0;
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.hero .copy small {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  opacity: 0.9;
}
.hero .dots {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: 24px;
  display: flex;
  gap: 10px;
}
.hero .dots button {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.hero .dots button[aria-current="true"] {
  background: #fff;
}
@media (max-width: 600px) {
  .hero .copy {
    bottom: 64px;
  }
}

/* ---------- sections ---------- */
.section {
  padding: 88px 0;
}
.section.soft {
  background: var(--bg-soft);
}
.section-head {
  margin-bottom: 40px;
}
.section-head .en {
  display: block;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-head h2 .tag {
  display: inline-block;
  margin-left: 0.6em;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  vertical-align: middle;
  letter-spacing: 0.1em;
}
.section-head .brand-logo {
  display: block;
  height: 22px;
  width: auto;
  margin-bottom: 4px;
}
.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(22px, 2.6vw, 30px);
}
.lead {
  font-size: 17px;
  max-width: 46em;
}
@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }
  .section-head {
    margin-bottom: 28px;
  }
}

/* page title (sub pages) */
.page-title {
  position: relative;
  height: clamp(240px, 30vw, 460px);
  color: #fff;
  background: #444;
  overflow: hidden;
}
.page-title img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}
.page-title .container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 36px;
}
.page-title .en {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.9;
}
.page-title h1 {
  margin: 4px 0 0;
  font-size: clamp(26px, 3.4vw, 38px);
}
.page-title.plain {
  height: auto;
  background: var(--bg-soft);
  color: var(--fg);
}
.page-title.plain::after {
  display: none;
}
.page-title.plain .container {
  padding-top: 56px;
  padding-bottom: 40px;
}
@media (max-width: 600px) {
  .page-title {
    height: 220px;
  }
}

/* cards / grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.card {
  display: block;
  text-decoration: none;
  background: #fff;
}
.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: opacity 0.3s;
}
.card:hover img {
  opacity: 0.85;
}
.card .body {
  padding: 18px 2px 0;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
.card h3.card-logo {
  margin: 0 0 10px;
  color: var(--accent);
  line-height: 0;
}
.card .brand-logo {
  display: block;
  height: 18px;
  width: auto;
}
.name-logo {
  margin: 0 0 16px;
  color: var(--accent);
  line-height: 0;
}
.name-logo .brand-logo {
  display: block;
  height: 22px;
  width: auto;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.1em;
  border-bottom: 1px solid currentColor;
}

/* split: photo + text */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse > :first-child {
  order: 2;
}
.split img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .split.reverse > :first-child {
    order: 0;
  }
}

/* tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.table th,
.table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
.table th {
  width: 9em;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.table thead th {
  color: var(--fg);
  border-bottom-color: var(--fg);
  width: auto;
}
@media (max-width: 600px) {
  .table.stack th,
  .table.stack td {
    display: block;
    width: auto;
    padding: 4px 0;
    border: 0;
  }
  .table.stack th {
    padding-top: 14px;
  }
  .table.stack tr {
    display: block;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
  }
}

.list {
  margin: 0;
  padding-left: 1.3em;
}
.list li {
  margin: 4px 0;
}
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 48px;
}
.features h3 {
  font-size: 17px;
  margin: 0 0 8px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.photos img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  width: 100%;
}
.photos figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
.photos figure {
  margin: 0;
}
@media (max-width: 600px) {
  .photos {
    grid-template-columns: 1fr;
  }
}

/* floor plans: horizontal tabs */
.plans {
  margin-top: 32px;
}
.plans [role="tablist"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.plans [role="tab"] {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.plans [role="tab"][aria-selected="true"] {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}
.plan {
  display: grid;
  grid-template-columns: minmax(0, 420px) 1fr;
  gap: 32px;
  align-items: start;
}
.plan[hidden] {
  display: none;
}
.plan img {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
}
@media (max-width: 760px) {
  .plan {
    grid-template-columns: 1fr;
  }
}

/* sub navigation inside a page */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.subnav a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 14px;
  background: #fff;
}
.subnav a:hover {
  border-color: var(--fg);
}

/* buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--fg);
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 15px;
  border: 1px solid var(--fg);
}
.btn:hover {
  background: #fff;
  color: var(--fg);
}
.btn.outline {
  background: #fff;
  color: var(--fg);
}
.btn.outline:hover {
  background: var(--fg);
  color: #fff;
}
.btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.note {
  font-size: 13px;
  color: var(--muted);
}
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 48px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fg);
  color: #fff;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.tel {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: 0.08em;
  text-decoration: none;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* ---------- footer ---------- */
.site-footer {
  background: #1d1d1d;
  color: #cfcfcf;
  padding: 56px 0 32px;
  font-size: 14px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}
.site-footer .logo {
  color: #fff;
}
.site-footer .logo-mark {
  height: 26px;
}
.site-footer address {
  font-style: normal;
  margin-top: 12px;
  line-height: 1.9;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}
.site-footer li {
  margin: 0 0 8px;
}
.copyright {
  margin-top: 40px;
  font-size: 12px;
  color: #8a8a8a;
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .slide,
  .card img,
  .menu-btn i {
    transition: none;
  }
}

/* ---------- scroll effects (main.js adds .media wrappers, .reveal and .in) ---------- */
.media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (prefers-reduced-motion: no-preference) {
  /* Hidden states apply only while JS is active (html.js), so content never stays hidden without JS */
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 1s ease,
      transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
  }
  .js .parallax-img {
    transform: translateY(var(--py, 0px)) scale(1.14);
    will-change: transform;
  }
  /* Top hero: darkens and the copy fades while scrolling away (no shrinking, per request) */
  .js .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #000;
    opacity: calc(var(--hp, 0) * 0.45);
    pointer-events: none;
  }
  .js .hero .copy {
    opacity: calc(1 - var(--hp, 0) * 1.6);
    transform: translateY(calc(var(--hp, 0) * -40px));
  }
  .js .hero .copy p {
    animation: hero-in 1.6s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Japanese line breaks at phrase boundaries (Chrome/Edge 119+, needs lang="ja"; other browsers ignore it) */
p,
li,
td,
th,
h1,
h2,
h3,
figcaption {
  word-break: auto-phrase;
}

/* Company page: on phones the sign sits behind a left-aligned title, so move the title to the right */
@media (max-width: 600px) {
  .page-title.title-right-sp .container {
    align-items: flex-end;
    text-align: right;
  }
}

/* Photo gallery (buildings page): one main photo + a horizontally scrolling thumbnail strip, like the old site */
.gallery {
  max-width: 640px;
  margin-top: 16px;
}
.gallery-main {
  position: relative;
  margin: 0;
  background: #fff;
}
.gallery-main img {
  width: 100%;
  aspect-ratio: 572 / 384;
  object-fit: contain;
}
.gallery-main button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.85);
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
}
.gallery-main .prev {
  left: 8px;
}
.gallery-main .next {
  right: 8px;
}
.gallery-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
}
.gallery-thumbs {
  position: relative;
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 8px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.gallery-thumbs li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.gallery-thumbs a {
  display: block;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.gallery-thumbs a:hover,
.gallery-thumbs a[aria-current="true"] {
  opacity: 1;
}
.gallery-thumbs a[aria-current="true"] {
  outline: 2px solid var(--fg);
  outline-offset: -2px;
}
.gallery-thumbs img {
  width: 94px;
  height: 63px;
  object-fit: cover;
}

/* Headings in Mincho, as on the old site (fonts already installed on the device; no web fonts) */
h1,
h2,
h3 {
  font-family:
    "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN",
    "Hiragino Mincho Pro", "MS PMincho", serif;
  font-weight: 600;
}
.hero .copy p {
  font-family:
    "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN",
    "Hiragino Mincho Pro", "MS PMincho", serif;
  font-weight: 400;
}

/* .more already draws its own underline (border-bottom); drop the default link underline so it is not doubled */
.more {
  text-decoration: none;
}

/* Center the photo gallery */
.gallery {
  margin-left: auto;
  margin-right: auto;
}

/* Loading screen (design C): first page view in a browser session only.
   html.first-load is set in <head>; main.js adds .loaded, then the white curtain lifts. */
.loader {
  display: none;
}
.first-load .loader {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  transition:
    transform 1s cubic-bezier(0.77, 0, 0.18, 1),
    visibility 0s 1s;
}
.first-load.loaded .loader {
  transform: translateY(-100%);
  visibility: hidden;
}
.loader-mark {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.loader-letters {
  display: block;
  height: clamp(34px, 5vw, 54px);
  width: auto;
  overflow: hidden;
  color: var(--accent);
}
.loader-letters path {
  transform-box: fill-box;
}
.loader-line {
  height: 2px;
  margin-top: 12px;
  background: var(--accent);
}
/* Hold the hero copy animation until the loading screen is gone */
.first-load:not(.loaded) .hero .copy p {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: no-preference) {
  .first-load .loader-letters path {
    animation: loader-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .first-load .loader-letters path:nth-child(2) {
    animation-delay: 0.08s;
  }
  .first-load .loader-letters path:nth-child(3) {
    animation-delay: 0.16s;
  }
  .first-load .loader-letters path:nth-child(4) {
    animation-delay: 0.24s;
  }
  .first-load .loader-line {
    transform-origin: left;
    animation: loader-grow 0.8s 0.6s cubic-bezier(0.77, 0, 0.18, 1) both;
  }
  /* Later page views: fade the page in softly */
  .js:not(.first-load) body {
    animation: page-in 0.7s ease both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .first-load .loader {
    transition: none;
  }
}
@keyframes loader-rise {
  from {
    transform: translateY(110%);
  }
  to {
    transform: none;
  }
}
@keyframes loader-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Header menu: one underline that follows the hovered item (desktop only; main.js adds .has-indicator) */
.nav-indicator {
  display: none;
}
@media (min-width: 861px) {
  .nav.has-indicator ul {
    position: relative;
  }
  .nav.has-indicator a,
  .nav.has-indicator a:hover,
  .nav.has-indicator a[aria-current="page"] {
    border-bottom-color: transparent;
  }
  .nav.has-indicator .nav-indicator {
    display: block;
    position: absolute;
    left: 0;
    width: 100px;
    height: 1px;
    transform-origin: left center;
    will-change: transform;
    background: currentColor;
    pointer-events: none;
    opacity: 0;
    transition:
      transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.25s ease;
  }
  .nav.has-indicator .nav-indicator.on {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav.has-indicator .nav-indicator {
    transition: none;
  }
}
