/*
 * Machi to Coffee Premium
 * Loaded after the base stylesheet so all Customizer and layout features stay compatible.
 */

:root {
  --premium-ink: #17211e;
  --premium-forest: #234b42;
  --premium-forest-bright: #376d61;
  --premium-brass: #b98a4c;
  --premium-canvas: #f6f5f0;
  --premium-white: #fffefa;
  --premium-rule: rgba(23, 33, 30, 0.13);
  --premium-shadow: 0 24px 70px rgba(18, 31, 27, 0.11);
  --container: min(1240px, calc(100vw - 3rem));
}

body:not(.lp-content-only-template) {
  color: var(--premium-ink);
  background-color: var(--premium-canvas);
  background-image:
    linear-gradient(rgba(23, 33, 30, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 30, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

body:not(.lp-content-only-template)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(246, 245, 240, 0.72) 36%, rgba(232, 238, 233, 0.68));
}

.page-noise { opacity: 0.025; }

.site-header {
  top: 1.15rem;
  min-height: 76px;
  padding: 0.72rem 1rem 0.72rem 1.35rem;
  grid-template-columns: minmax(160px, 0.8fr) minmax(0, auto) auto;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: rgba(255, 254, 250, 0.88);
  box-shadow: 0 16px 52px rgba(15, 27, 23, 0.1);
  backdrop-filter: blur(22px) saturate(1.15);
}

.brand {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}
.brand__mark {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--premium-forest);
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.14rem;
}
.brand__jp { font-size: 1.08rem; font-weight: 700; letter-spacing: 0.14em; }
.brand__en { font-size: 0.62rem; color: #68746f; letter-spacing: 0.21em; }
.site-nav { gap: clamp(0.65rem, 1.15vw, 1.35rem); font-size: 0.78rem; font-weight: 600; }
.site-nav a { padding: 0.6rem 0; }
.site-nav a::after { bottom: 0.2rem; height: 1px; background: var(--premium-brass); }
main { padding-top: 0; }
section:not(.hero) { position: relative; }

.hero {
  width: 100%;
  max-width: none;
  min-height: max(700px, 100svh);
  padding: 0;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
  align-items: end;
  border-radius: 0;
  box-shadow: none;
}

.hero__media { border-radius: 0; box-shadow: none; }
.hero__media::after {
  background:
    linear-gradient(90deg, rgba(10, 18, 16, 0.78) 0%, rgba(10, 18, 16, 0.48) 42%, rgba(10, 18, 16, 0.12) 78%),
    linear-gradient(180deg, rgba(10, 18, 16, 0.14), rgba(10, 18, 16, 0.58));
}
.hero__steam, .hero__glow { display: none; }
.hero__content {
  width: min(900px, calc(100vw - 3rem));
  max-width: none;
  margin-left: max(1.5rem, calc((100vw - 1240px) / 2));
  padding: clamp(9rem, 18vh, 13rem) 0 clamp(4rem, 8vh, 6.5rem);
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.hero .eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--premium-brass); }
.hero h1 {
  max-width: 850px;
  margin-bottom: 1.6rem;
  font-size: clamp(3rem, 6.4vw, 6.75rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}
.hero__lead { max-width: 670px; font-size: clamp(0.98rem, 1.35vw, 1.15rem); line-height: 2; }
.hero__meta { gap: 0; margin: 1.8rem 0; }
.hero__meta p {
  padding: 0.3rem 1rem;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: transparent;
}
.hero__meta p:first-child { padding-left: 0; }
.hero__meta p:last-child { border-right: 0; }
.button {
  min-height: 52px;
  padding: 0.85rem 1.45rem;
  border-radius: 4px;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}
.button--solid { background: var(--premium-forest); box-shadow: 0 10px 24px rgba(13, 39, 32, 0.2); }
.button--solid:hover, .button--solid:focus-visible { background: var(--premium-forest-bright); }
.hero__actions .button--solid { color: var(--premium-ink); background: var(--premium-white); box-shadow: none; }
.hero__actions .button--solid:hover, .hero__actions .button--solid:focus-visible { color: #fff; background: var(--premium-forest-bright); }
.hero__actions .button--ghost { border-color: rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.06); }
.hero__aside {
  margin: 0 max(1.5rem, calc((100vw - 1240px) / 2)) clamp(4rem, 8vh, 6.5rem) 0;
  padding: 1.45rem 0 1.45rem 1.5rem;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.hero__aside-label { color: #d7b67f; font-family: system-ui, sans-serif; font-weight: 700; }

.time-story, .craft, .owner, .menu, .space, .access, .content-feed {
  padding-top: clamp(6rem, 10vw, 10rem);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(0, 0.72fr);
  column-gap: clamp(1.5rem, 4vw, 5rem);
  align-items: start;
  max-width: none;
  margin-bottom: clamp(2.8rem, 5vw, 5rem);
}
.section-heading .eyebrow { grid-column: 1; grid-row: 1 / span 2; padding-top: 0.65rem; }
.section-heading h2, .section-heading p:last-child { grid-column: 2; }
.section-heading h2, .owner__content h2, .blog-detail h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.5rem, 5vw, 5.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}
.section-heading p:last-child { max-width: 700px; font-size: 1rem; line-height: 2; }
.eyebrow {
  color: var(--premium-forest-bright);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.day-switch {
  margin-left: calc(28% + clamp(1.5rem, 4vw, 5rem));
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--premium-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.day-switch__button { min-width: 5rem; padding: 0.7rem 1.2rem; border-radius: 0; }
.day-switch__button.is-active {
  color: var(--premium-forest);
  background: transparent;
  box-shadow: inset 0 -2px var(--premium-forest);
}
.day-panel { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr); gap: 0; }
.day-panel__visual { min-height: 590px; border-radius: 4px 0 0 4px; box-shadow: var(--premium-shadow); }
.day-panel__body {
  align-self: center;
  margin-left: -3rem;
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: 4px;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: 0 24px 70px rgba(18, 31, 27, 0.15);
}

.craft__grid {
  gap: 0;
  border-top: 1px solid var(--premium-rule);
  border-bottom: 1px solid var(--premium-rule);
}
.craft-card {
  min-height: 310px;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  border: 0;
  border-right: 1px solid var(--premium-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.craft-card:last-child { border-right: 0; }
.craft-card::before, .menu-column::before, .feed-card::before {
  height: 2px;
  background: var(--premium-brass);
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.craft-card:hover::before, .menu-column:hover::before, .feed-card:hover::before { transform: scaleX(1); }
.craft-card:hover, .menu-column:hover, .feed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--premium-shadow);
}
.craft-card__index { color: var(--premium-brass); }
.flavor-notes {
  margin-top: 2rem;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--premium-forest);
  color: #fff;
}
.flavor-notes__copy, .flavor-notes__list {
  padding: clamp(1.8rem, 4vw, 3.6rem);
  border: 0;
  border-radius: 0;
  background: transparent;
}
.flavor-notes__copy p, .flavor-notes__list dd { color: rgba(255, 255, 255, 0.75); }
.flavor-notes__list { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.flavor-notes__list dt { color: #d7b67f; }

.owner { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: 0; }
.owner__image img {
  min-height: 680px;
  border-radius: 4px;
  filter: saturate(0.88) contrast(1.05);
}
.owner__content {
  position: relative;
  z-index: 1;
  margin-left: -4.5rem;
  padding: clamp(2.2rem, 5vw, 5rem);
  border-radius: 4px;
  background: rgba(255, 254, 250, 0.96);
}

.menu-layout { gap: 1.5rem; }
.menu-column {
  padding: clamp(1.8rem, 3.2vw, 3rem);
  border-radius: 4px;
  background: rgba(255, 254, 250, 0.86);
}
.menu-column h3 { padding-bottom: 1rem; border-bottom: 1px solid var(--premium-rule); font-size: 1.5rem; }
.menu-list div {
  display: grid;
  grid-template-columns: minmax(140px, 0.38fr) minmax(0, 0.62fr);
  gap: 1.2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--premium-rule);
}

.space-gallery { grid-template-columns: 1.35fr 0.82fr 0.82fr; gap: 0.75rem; }
.space-gallery__item {
  position: relative;
  border: 0;
  border-radius: 3px;
  background: var(--premium-ink);
  box-shadow: none;
}
.space-gallery__item img { min-height: 360px; filter: saturate(0.84) contrast(1.06); }
.space-gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 3rem 1.25rem 1.2rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(10, 18, 16, 0.8));
}

.access__layout { grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr); gap: 1.5rem; }
.access-card, .access-note { border-radius: 4px; background: rgba(255, 254, 250, 0.88); }
.access-note { color: #fff; background: var(--premium-forest); }
.access-note p, .access-note__title { color: inherit; }
.embed-panel { border-radius: 4px; background: var(--premium-white); }
.embed-panel::before, .embed-panel::after { display: none; }
.embed-panel__header { border-radius: 3px; }

.feed-grid { gap: 1.5rem; }
.feed-card {
  padding: 0 0 1.6rem;
  border: 0;
  border-bottom: 1px solid var(--premium-rule);
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
}
.feed-card > :not(a:first-child) { margin-left: 1.25rem; margin-right: 1.25rem; }
.feed-card__image, .feed-card img { border-radius: 3px; }
.feed-card h3 { font-size: clamp(1.3rem, 2vw, 1.72rem); }
.feed-card__link {
  color: var(--premium-forest);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer {
  width: 100%;
  margin: clamp(7rem, 12vw, 12rem) 0 0;
  padding: clamp(4rem, 8vw, 7rem) max(1.5rem, calc((100vw - 1240px) / 2));
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(90deg, rgba(11, 24, 20, 0.95), rgba(27, 68, 58, 0.84)),
    url("https://life-designs.jp/wp/wp-content/uploads/2022/06/image4-1.jpg") center / cover;
  text-align: left;
}
.site-footer__title { color: #fff; font-size: clamp(2rem, 4vw, 4rem); }
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.site-footer__logo {
  width: clamp(108px, 13vw, 170px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}
.site-footer__brand p {
  margin-top: 0;
}
.site-footer a {
  display: inline-block;
  margin-top: 1.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #d7b67f;
  color: #fff;
}

body.design-modern:not(.lp-content-only-template) {
  --premium-canvas: #161b19;
  --premium-white: #252d2a;
  --premium-ink: #f8f4eb;
  --premium-rule: rgba(255, 255, 255, 0.16);
  background-color: #161b19;
}
body.design-modern:not(.lp-content-only-template)::before {
  background: linear-gradient(180deg, rgba(16, 22, 20, 0.92), rgba(25, 31, 28, 0.88));
}
body.design-modern .day-panel__body,
body.design-modern .owner__content,
body.design-modern .menu-column,
body.design-modern .access-card,
body.design-modern .feed-card { background: rgba(37, 45, 42, 0.94); }
body.design-modern .site-header { background: rgba(20, 27, 24, 0.9); }
body.design-light:not(.lp-content-only-template) {
  --premium-canvas: #f8faf7;
  --premium-forest: #35685d;
  --premium-forest-bright: #4d8175;
}
body.design-green:not(.lp-content-only-template) {
  --premium-canvas: #eef3ed;
  --premium-forest: #275341;
  --premium-forest-bright: #3c725d;
}
body.layout-editorial .craft__grid, body.layout-editorial .feed-grid { max-width: none; }
body.layout-compact section:not(.hero) { padding-top: clamp(4.5rem, 7vw, 7rem); padding-bottom: 0; }
body.layout-showcase .hero { min-height: 100svh; }

@media (max-width: 1080px) {
  :root { --container: min(100vw - 2rem, 100%); }
  .site-header { grid-template-columns: 1fr auto; }
  .hero__content { margin-left: 2rem; }
  .hero__aside { margin-right: 2rem; }
  .day-panel__visual { min-height: 520px; }
}

@media (max-width: 980px) {
  .site-header { min-height: 68px; border-radius: 5px; }
  .site-nav { max-height: calc(100svh - 100px); overflow-y: auto; }
  .hero { display: flex; min-height: 820px; }
  .hero__content { align-self: flex-end; margin: 0; padding: 9rem 2rem 5rem; }
  .hero__aside { display: none; }
  .day-panel, .owner { grid-template-columns: 1fr; }
  .day-panel__visual, .owner__image img { min-height: 520px; border-radius: 4px; }
  .day-panel__body, .owner__content { margin: -4rem 1.5rem 0; }
}

@media (max-width: 720px) {
  :root { --container: min(100vw - 1.25rem, 100%); }
  .admin-bar .site-header { top: 46px; }
  .site-header {
    top: 0.55rem;
    width: calc(100vw - 1rem);
    padding: 0.72rem 0.85rem;
  }
  .brand__mark {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
    padding: 4px;
  }
  .brand__jp { font-size: 0.94rem; }
  .brand__en { font-size: 0.54rem; }
  .site-header.is-open { background: rgba(255, 254, 250, 0.98); }
  body.design-modern .site-header.is-open { background: rgba(20, 27, 24, 0.98); }
  .site-nav { display: none; align-items: stretch; gap: 0; padding-top: 0.65rem; }
  .site-header.is-open .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-nav a { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--premium-rule); }
  .hero, body.layout-showcase .hero { min-height: 760px; }
  .hero__content { width: 100%; padding: 8rem 1.25rem 2.8rem; }
  .hero h1, body.layout-compact .hero h1, body.layout-showcase .hero h1 {
    font-size: clamp(2.6rem, 13vw, 4.1rem);
    line-height: 1.12;
  }
  .hero__lead { line-height: 1.8; }
  .hero__meta { display: grid; gap: 0.35rem; }
  .hero__meta p, .hero__meta p:first-child { padding: 0; border: 0; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .section-heading { display: block; margin-bottom: 2.4rem; }
  .section-heading .eyebrow { padding: 0; }
  .section-heading h2, .owner__content h2, .blog-detail h1 {
    font-size: clamp(2.35rem, 11vw, 3.7rem);
  }
  .day-switch { width: 100%; margin-left: 0; }
  .day-switch__button { flex: 1; min-width: 0; }
  .day-panel__visual, .owner__image img { min-height: 340px; aspect-ratio: 4 / 5; }
  .day-panel__body, .owner__content { margin: -2.5rem 0.75rem 0; padding: 1.5rem; }
  .craft__grid { border: 0; }
  .craft-card { min-height: auto; border-right: 0; border-top: 1px solid var(--premium-rule); }
  .craft-card:last-child { border-bottom: 1px solid var(--premium-rule); }
  .flavor-notes { grid-template-columns: 1fr; }
  .flavor-notes__list { border-top: 1px solid rgba(255, 255, 255, 0.18); border-left: 0; }
  .menu-list div { display: block; }
  .space-gallery, body.layout-showcase .space-gallery { grid-template-columns: 1fr; }
  .space-gallery__item img,
  .space-gallery__item--large img,
  body.layout-showcase .space-gallery__item img {
    min-height: 280px;
    aspect-ratio: 4 / 3;
  }
  .access__layout, .access-embeds { grid-template-columns: 1fr; }
  .feed-card > :not(a:first-child) { margin-left: 0.8rem; margin-right: 0.8rem; }
  .site-footer { padding: 4rem 1.25rem; }
  .site-footer__brand {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-footer__logo { width: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  .craft-card:hover, .menu-column:hover, .feed-card:hover { transform: none; }
}
