/*
 * Machi to Coffee v2.3 refinement layer.
 * The official logo blue leads the interface; warm wood and green remain accents.
 */

:root {
  --bg: #f4f7f8;
  --bg-soft: #eaf0f2;
  --paper: #ffffff;
  --ink: #17222b;
  --muted: #5f6c75;
  --line: rgba(23, 63, 107, 0.18);
  --accent: #173f6b;
  --accent-deep: #0d2c4a;
  --accent-bright: #2e6d9c;
  --brown-deep: #173f6b;
  --warm: #b87333;
  --green: #2b625e;
  --shadow: 0 22px 68px rgba(13, 44, 74, 0.14);
}

body {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 63, 107, 0.025) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--bg);
}

main section[id] {
  scroll-margin-top: 118px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #f0b86a;
  outline-offset: 4px;
}

.scroll-line {
  background: rgba(23, 63, 107, 0.1);
}

.scroll-line__bar {
  background: var(--accent-bright);
}

/* Header and official blue logo */
.site-header {
  top: 16px;
  min-height: 80px;
  padding: 9px 18px 9px 10px;
  border-color: rgba(23, 63, 107, 0.17);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 48px rgba(13, 44, 74, 0.14);
}

.brand__mark {
  width: 60px;
  height: 60px;
  flex-basis: 60px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 107, 0.18);
  background: #fff;
}

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

.brand__jp {
  color: var(--accent-deep);
  font-size: 19px;
}

.brand__en {
  color: #667681;
  letter-spacing: 0.12em;
}

.site-nav {
  gap: 22px;
  color: #344653;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

/* Keep the selectable dark preset aligned with the official blue identity. */
body.design-modern:not(.lp-content-only-template) {
  --bg: #0b2236;
  --bg-soft: #12324b;
  --paper: rgba(255, 255, 255, 0.08);
  --ink: #f7fafc;
  --muted: #c3d0d9;
  --line: rgba(221, 235, 244, 0.18);
  --accent: #d6a85f;
  --accent-soft: rgba(214, 168, 95, 0.15);
  --brown-deep: #9fc8e0;
  --shadow: 0 24px 64px rgba(2, 15, 26, 0.28);
  background: linear-gradient(180deg, #0b2236 0%, #12324b 50%, #0b2639 100%);
}

body.design-modern:not(.lp-content-only-template)::before {
  background: linear-gradient(180deg, rgba(7, 27, 44, 0.9), rgba(15, 48, 72, 0.86));
}

body.design-modern .site-header,
body.design-modern .day-panel__body {
  background: rgba(255, 255, 255, 0.96);
}

body.design-modern .site-nav,
body.design-modern .menu-toggle {
  color: #344653;
}

body.design-modern .day-switch__button.is-active {
  color: var(--accent-deep);
}

body.design-modern .final-cta > p:not(.eyebrow),
body.design-modern .final-cta .text-link {
  color: #5f6c75;
}

/* A single, cinematic first view replaces the unrelated comparison wipe. */
.hero--cinematic {
  position: relative;
  width: 100%;
  max-width: none;
  height: min(860px, calc(100svh - 24px));
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: end;
  gap: 34px;
  padding: 150px max(5vw, calc((100vw - 1360px) / 2)) 28px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-cinema,
.hero-cinema__still,
.hero-cinema .cms-hero-media,
.hero-cinema .cms-hero-media__item,
.hero-cinema .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-cinema {
  z-index: -3;
  overflow: hidden;
  background: var(--accent-deep);
}

.hero-cinema__still,
.hero-cinema .cms-hero-media__item {
  background-position: center;
  background-size: cover;
}

.hero-cinema .hero__video {
  object-fit: cover;
}

.hero-cinema .cms-hero-media__item {
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.25s ease, transform 7s ease;
}

.hero-cinema .cms-hero-media__item.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-cinema__veil {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(7, 28, 48, 0.86) 0%, rgba(7, 28, 48, 0.62) 40%, rgba(7, 28, 48, 0.2) 74%),
    linear-gradient(180deg, rgba(5, 21, 36, 0.24) 0%, rgba(5, 21, 36, 0.08) 52%, rgba(5, 21, 36, 0.78) 100%);
}

.hero-cinema__grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0.13;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.55px, transparent 0.55px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

.hero__content--zoroya {
  position: relative;
  top: auto;
  left: auto;
  z-index: 5;
  grid-column: 1;
  grid-row: 1;
  width: min(720px, 70%);
  align-self: center;
  transform: none;
}

.hero__content--zoroya .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-left: 3px solid #f0b86a;
  color: #fff;
  background: rgba(9, 38, 63, 0.58);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.hero__content--zoroya h1 {
  max-width: 720px;
  margin: 0 0 24px;
  color: #fff;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.34);
}

.hero__content--zoroya .hero__lead {
  max-width: 590px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.hero__actions {
  gap: 12px;
}

.hero--cinematic .button {
  min-height: 52px;
  padding: 13px 22px;
  border-radius: 4px;
}

.hero--cinematic .button--solid {
  color: var(--accent-deep);
  border-color: #fff;
  background: #fff;
  box-shadow: 0 10px 30px rgba(4, 20, 34, 0.2);
}

.button--instagram {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: #1c527d;
}

.button--instagram:hover,
.button--instagram:focus-visible {
  color: var(--accent-deep);
  background: #fff;
}

.hero__visit {
  position: relative;
  z-index: 5;
  grid-column: 1;
  grid-row: 2;
  width: min(1140px, calc(100% - 82px));
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.35fr;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(6, 24, 40, 0.24);
  backdrop-filter: blur(16px);
}

.hero__visit p {
  min-width: 0;
  margin: 0;
  padding: 16px 20px;
  border-left: 1px solid rgba(23, 63, 107, 0.16);
}

.hero__visit p:first-child {
  border-left: 0;
}

.hero__visit span,
.hero__visit strong {
  display: block;
}

.hero__visit span {
  margin-bottom: 6px;
  color: var(--accent-bright);
  font: 700 10px/1.2 "Noto Sans JP", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__visit strong {
  color: var(--accent-deep);
  font: 700 14px/1.55 "Noto Sans JP", sans-serif;
  letter-spacing: 0;
}

.hero__scroll {
  position: absolute;
  right: max(4vw, calc((100vw - 1360px) / 2));
  bottom: 42px;
  z-index: 5;
  width: 52px;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.82);
  font: 700 9px/1 "Noto Sans JP", sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll i {
  width: 1px;
  height: 34px;
  background: currentColor;
}

/* The photo-forward layout keeps its character without enlarging into the info strip. */
body.layout-showcase .hero--cinematic {
  height: min(860px, calc(100svh - 24px));
  min-height: 700px;
}

body.layout-showcase .hero--cinematic .hero__content--zoroya {
  width: min(720px, 70%);
  padding-top: 0;
}

body.layout-showcase .hero--cinematic h1 {
  max-width: 720px;
  font-size: 64px;
}

/* Time-of-day imagery stays editable and remains readable in every state. */
.day-panel {
  overflow: hidden;
  border: 1px solid rgba(23, 63, 107, 0.13);
  background: #fff;
  box-shadow: var(--shadow);
}

.day-panel__visual {
  position: relative;
  min-height: 560px;
  background-color: #dce7eb;
  background-position: center;
  background-size: cover;
}

.day-panel__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(13, 44, 74, 0.02), rgba(13, 44, 74, 0.16));
}

.day-panel__visual--morning {
  background-position: center 48%;
}

.day-panel__visual--evening::after {
  background: linear-gradient(180deg, rgba(8, 31, 55, 0.04), rgba(8, 31, 55, 0.34));
}

.day-panel__body {
  border-top: 4px solid var(--accent);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
}

.day-panel__body h3 {
  color: var(--accent-deep);
}

.day-panel__body p {
  color: var(--muted);
}

.day-panel__number {
  color: var(--accent-bright) !important;
}

.day-switch__button.is-active {
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}

/* The tasting note is deliberately separated from the page background. */
.flavor-notes--line {
  position: relative;
  margin-top: 40px;
  padding: 30px;
  border: 1px solid rgba(23, 63, 107, 0.18);
  border-top: 5px solid var(--accent);
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 16px 46px rgba(13, 44, 74, 0.1);
}

.flavor-notes--line .eyebrow {
  color: var(--warm);
}

.flavor-notes--line h3,
.flavor-notes--line > p {
  color: var(--accent-deep);
}

.flavor-notes--line > p {
  font-size: 15px;
  line-height: 1.9;
}

/* Stable 16:9 film stage with no overlaying shutters or offset overflow. */
.origin-film {
  margin-top: 42px;
  padding: 120px 0 132px;
  color: #fff;
  background: var(--accent-deep);
  box-shadow: 0 0 0 100vmax var(--accent-deep);
}

.origin-film__inner::before {
  color: rgba(255, 255, 255, 0.035);
}

.origin-film__heading {
  grid-template-columns: 72px minmax(300px, 1fr) minmax(280px, 0.65fr);
  gap: 38px;
  align-items: end;
}

.origin-film__index {
  color: #f0b86a;
}

.origin-film .eyebrow {
  color: #9fc8e0;
}

.origin-film__heading > p:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.origin-film__stage {
  padding: 0;
}

.origin-film__rail {
  padding: 0 2px 14px;
  color: rgba(255, 255, 255, 0.68);
}

.origin-film__rail span:nth-child(2)::before {
  background: #f0b86a;
  box-shadow: 0 0 0 5px rgba(240, 184, 106, 0.16);
}

.origin-film__screen {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.94);
  border-radius: 5px;
  background: #071a2b;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.origin-film__screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.origin-film__shutter {
  display: none;
}

/* A consistent six-tile gallery; captions no longer sit on top of photos. */
.space-gallery--editorial {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.space-gallery--editorial .space-gallery__item,
.space-gallery--editorial .space-gallery__item--large {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 63, 107, 0.14);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(13, 44, 74, 0.09);
}

.space-gallery--editorial .space-gallery__item img,
.space-gallery--editorial .space-gallery__item--large img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: none;
}

.space-gallery--editorial .space-gallery__item:nth-child(5) img {
  object-position: center 42%;
}

.space-gallery--editorial figcaption {
  position: static;
  inset: auto;
  min-height: 94px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px;
  color: var(--ink);
  background: #fff;
}

.space-gallery--editorial figcaption span {
  color: var(--accent-bright);
  font: 700 11px/1.55 "Noto Sans JP", sans-serif;
}

.space-gallery--editorial figcaption strong {
  color: #374750;
  font: 500 13px/1.7 "Noto Sans JP", sans-serif;
}

/* Access and final actions keep full contrast against their surroundings. */
.access--map {
  gap: 16px;
  max-width: 1500px;
}

.access__content {
  color: #fff;
  background: var(--accent-deep);
}

.access__content .eyebrow {
  color: #9fc8e0;
}

.access__content > p:not(.eyebrow),
.access__content .access-list dt,
.access__content .access-list dd,
.access__content .access-list a {
  color: rgba(255, 255, 255, 0.9);
}

.access__content .button--solid,
.access__content .button--ghost {
  color: var(--accent-deep);
  border-color: #fff;
  background: #fff;
}

.access__content .button--ghost:hover,
.access__content .button--solid:hover {
  color: #fff;
  border-color: #9fc8e0;
  background: #235f8b;
}

.access-actions {
  gap: 12px;
}

.access__map,
.access__map iframe {
  min-height: 680px;
}

.final-cta {
  width: min(1180px, calc(100vw - 3rem));
  margin-top: 70px;
  padding: 96px 40px 104px;
  border: 1px solid rgba(23, 63, 107, 0.15);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.final-cta h2 {
  color: var(--accent-deep);
}

.final-cta .button--solid {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.final-cta .button--ghost {
  color: var(--accent);
  border-color: var(--accent);
  background: #fff;
}

.final-cta .button--solid:hover,
.final-cta .button--ghost:hover {
  color: #fff;
  background: var(--accent-bright);
}

.site-footer {
  margin-top: 100px;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(90deg, rgba(9, 36, 60, 0.97), rgba(23, 63, 107, 0.9)),
    url("https://life-designs.jp/wp/wp-content/uploads/2022/06/image4-1.jpg") center / cover;
}

.site-footer__logo {
  width: 96px;
  height: 96px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  object-fit: cover;
  background: #fff;
}

.site-footer__brand p:last-child,
.site-footer__info p,
.site-footer__info a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer__links a {
  padding: 8px 0;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.54);
  font-weight: 700;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: #f0c98e;
  border-color: #f0c98e;
}

/* Splash: keep the existing surprise, but align it with the official logo. */
.site-splash {
  background: var(--accent-deep);
}

.site-splash__shade {
  background:
    linear-gradient(90deg, rgba(8, 32, 54, 0.84), rgba(8, 32, 54, 0.2) 52%, rgba(8, 32, 54, 0.76)),
    linear-gradient(180deg, rgba(8, 32, 54, 0.18), rgba(8, 32, 54, 0.74));
}

.site-splash__door {
  background: var(--accent-deep);
}

.site-splash__boxes span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(23, 63, 107, 0.96);
}

.site-splash__boxes span:nth-child(3n + 2) {
  background: rgba(43, 98, 94, 0.94);
}

.site-splash__boxes span:nth-child(7) {
  border-color: #f0b86a;
  background: rgba(240, 184, 106, 0.12);
}

.site-splash__house {
  display: none;
}

.site-splash__logo {
  width: 164px;
  height: 164px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 3px;
  object-fit: cover;
  background: #fff;
  filter: none;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.site-splash__route i::after {
  background: #f0b86a;
  box-shadow: 0 0 0 6px rgba(240, 184, 106, 0.14);
}

@media (max-width: 1120px) {
  .hero__content--zoroya h1,
  body.layout-showcase .hero--cinematic h1 {
    font-size: 52px;
  }

  .hero__visit {
    width: calc(100% - 68px);
  }

  .space-gallery--editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    left: 10px;
    width: calc(100vw - 20px);
    grid-template-columns: 1fr auto;
    transform: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 52px rgba(13, 44, 74, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
  }

  .hero--cinematic,
  body.layout-showcase .hero--cinematic {
    height: auto;
    min-height: 820px;
    padding: 134px 24px 24px;
  }

  .hero__content--zoroya {
    width: min(680px, 88%);
  }

  .hero__visit {
    width: calc(100% - 62px);
    grid-template-columns: 1fr;
  }

  .hero__visit p,
  .hero__visit p:first-child {
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid rgba(23, 63, 107, 0.14);
  }

  .hero__visit p:first-child {
    border-top: 0;
  }

  .hero__visit span {
    display: inline-block;
    width: 74px;
    margin: 0 10px 0 0;
    vertical-align: middle;
  }

  .hero__visit strong {
    display: inline;
    font-size: 13px;
  }

  .hero__scroll {
    right: 18px;
    bottom: 32px;
  }

  .origin-film__heading {
    grid-template-columns: 52px 1fr;
  }

  .origin-film__heading > p:last-child {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    padding: 7px 9px;
  }

  .brand__mark {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand__jp {
    font-size: 16px;
  }

  .hero--cinematic,
  body.layout-showcase .hero--cinematic {
    min-height: 830px;
    gap: 24px;
    padding: 118px 18px 18px;
  }

  .hero-cinema__veil {
    background:
      linear-gradient(180deg, rgba(7, 28, 48, 0.7) 0%, rgba(7, 28, 48, 0.44) 45%, rgba(7, 28, 48, 0.88) 100%),
      linear-gradient(90deg, rgba(7, 28, 48, 0.52), rgba(7, 28, 48, 0.08));
  }

  .hero__content--zoroya,
  body.layout-showcase .hero--cinematic .hero__content--zoroya {
    width: 100%;
  }

  .hero__content--zoroya .eyebrow {
    margin-bottom: 16px;
    font-size: 9px;
  }

  .hero__content--zoroya h1,
  body.layout-showcase .hero--cinematic h1 {
    margin-bottom: 18px;
    font-size: 38px;
    line-height: 1.3;
  }

  .hero__content--zoroya .hero__lead {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.75;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero__actions .button {
    width: 100%;
    min-width: 0;
    padding: 11px 10px;
    font-size: 12px;
    white-space: normal;
  }

  .hero__visit {
    width: 100%;
  }

  .hero__visit p {
    padding: 10px 12px;
  }

  .hero__visit span {
    width: 61px;
    font-size: 8px;
  }

  .hero__visit strong {
    font-size: 11px;
    line-height: 1.45;
  }

  .hero__scroll {
    display: none;
  }

  .day-panel__visual {
    min-height: 350px;
  }

  .flavor-notes--line {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 20px;
  }

  .origin-film {
    padding: 78px 0 86px;
  }

  .origin-film__heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .origin-film__heading > p:last-child {
    grid-column: auto;
  }

  .origin-film__screen {
    border-width: 3px;
  }

  .space-gallery--editorial {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .space-gallery--editorial .space-gallery__item {
    margin: 0;
  }

  .space-gallery--editorial figcaption {
    min-height: 0;
  }

  .access__content {
    padding: 38px 22px;
  }

  .access-actions {
    display: grid;
  }

  .access-actions .button {
    width: 100%;
    justify-content: center;
  }

  .access__map,
  .access__map iframe {
    min-height: 420px;
  }

  .final-cta {
    width: calc(100vw - 32px);
    margin-top: 40px;
    padding: 72px 20px 78px;
  }

  .site-footer__logo {
    width: 82px;
    height: 82px;
  }

  .site-splash__logo {
    width: 138px;
    height: 138px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cinema .cms-hero-media__item {
    transition: opacity 0.2s linear;
    transform: none;
  }
}
