@font-face {
  font-family: "Noto Serif JP";
  src: url("assets/noto-serif-jp.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant-garamond.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #3e2115;
  --store-ink: #412416;
  --cream: #f5e7d6;
  --products: #fbf4eb;
  --shop: #fcf4eb;
  --gift: #84583f;
  --footer: #7d5440;
  --ivory: #faefdc;
  --gift-text: #fcf1e0;
  --pale-button: #f5ebde;
  --line: #9a7359;
  --display: "Cormorant Garamond", Georgia, serif;
  --gutter: clamp(18px, 6.154vw, 24px);
  --section-space: 73px;
  color: var(--ink);
  background: var(--products);
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.7;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
body { max-width: 1600px; margin-inline: auto; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.35; }
p { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.vector-definitions { position: absolute; pointer-events: none; }

.skip-link {
  position: absolute;
  z-index: 5;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  padding: 8px 14px;
  background: var(--cream);
  transform: translateY(calc(-100% - 12px));
}
.skip-link:focus { transform: none; }

.hero { position: relative; }
.hero-content, .products, .gifts, .shop { position: relative; overflow: clip; }
.hero-content { background: var(--cream); }
.decoration { position: absolute; pointer-events: none; }
.header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-auto-rows: minmax(64px, auto);
  align-items: center;
  position: relative;
  z-index: 2;
  padding-inline: 16px 20px;
  min-height: 64px;
  background: var(--ink);
  color: var(--ivory);
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 48px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
}
.brand img { width: 49px; flex: none; }
.menu-button {
  display: grid;
  place-items: center;
  padding: 0;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.menu-icon-close { display: none; }
.menu-button[aria-expanded="true"] .menu-icon-bars { display: none; }
.menu-button[aria-expanded="true"] .menu-icon-close { display: inline; }
.header-nav {
  display: grid;
  grid-column: 1 / -1;
  margin-inline: -16px -20px;
  padding: 21px 30px 33px;
  background: var(--cream);
  color: var(--ink);
}
.header-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid #b18c707d;
  font-size: 21px;
  letter-spacing: .06em;
}
.header-nav a::after {
  position: absolute;
  right: 9px;
  width: 6px;
  height: 6px;
  border-top: 1px solid;
  border-right: 1px solid;
  transform: rotate(45deg);
  content: "";
}
.header-nav a:hover, .footer-nav a:hover { text-decoration: underline; text-underline-offset: .35em; }

.hero-picture { position: relative; }
.hero-picture img { width: 100%; height: clamp(252px, 86.667vw, 480px); object-fit: cover; object-position: center; }
.hero-picture::after {
  position: absolute;
  inset: auto 0 -5px;
  height: 37px;
  background: url("assets/hero-mobile-curve.svg") center / 100% 100% no-repeat;
  pointer-events: none;
  content: "";
}
.hero-message { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), 570px); margin-inline: auto; padding-block: 39px 52px; }
.hero-message h1 { font-size: clamp(29px, 8.718vw, 34px); line-height: 1.25; letter-spacing: -.02em; }
.hero-title .ornament { width: 207px; margin: 14px auto 0; }
.hero-message p { margin-block: 25px 29px; letter-spacing: .03em; }
.hero-branch { width: 80px; inset: auto 0 0 auto; }
.button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 20px;
  border-radius: 999px;
  text-align: center;
  transition: background-color 140ms ease, color 140ms ease;
}
.button-primary { width: min(100%, 242px); margin-inline: auto; color: var(--ivory); background: var(--ink); font-size: 17px; letter-spacing: .03em; }
.button-primary img { position: absolute; right: 21px; width: 22px; }
.button-primary:hover { background: #603922; }
.button-secondary { background: var(--pale-button); color: var(--ink); font-size: 20px; letter-spacing: .09em; }
.button-secondary:hover { background: #fff6ea; }

.ornament {
  --ornament-ink: var(--ink);
  --ornament-rule: #8e6a51b8;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 13px;
  max-width: 100%;
}
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--ornament-rule); }
.ornament i { position: relative; width: 7px; height: 7px; background: var(--ornament-ink); transform: rotate(45deg); }
.ornament i::before, .ornament i::after { position: absolute; width: 3px; height: 3px; background: var(--ornament-ink); border-radius: 50%; content: ""; }
.ornament i::before { left: -7px; top: 10px; }
.ornament i::after { left: 11px; top: -7px; }
.section-heading h2 { font-size: 28px; }
.section-heading .ornament { width: 192px; margin: 8px auto 0; }

.products { background: var(--products); padding-block: var(--section-space); }
.products-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "financier-photo" "financier" "rule" "cake" "cake-photo";
  width: min(100% - 2 * var(--gutter), 570px);
  margin-inline: auto;
}
.products-intro { grid-area: intro; }
.products-intro p { margin-top: 25px; }
.products-branch-top { width: 76px; top: 13px; left: 14px; }
.products-branch-bottom { width: 49px; right: 16px; bottom: 9px; }
.financier-picture {
  grid-area: financier-photo;
  position: relative;
  width: calc(100% + var(--gutter));
  margin-top: 28px;
  aspect-ratio: 366 / 244;
}
.financier-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url("#financier-photo-clip");
}
.product-detail { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: start; }
.product-detail img { width: 100%; }
.product-detail h3 { font-size: 23px; letter-spacing: .03em; }
.product-detail p { margin-top: 12px; }
.financier-detail { grid-area: financier; margin-top: 28px; }
.product-rule { grid-area: rule; margin-block: 22px 28px; --ornament-rule: #ba905d80; }
.cake-detail { grid-area: cake; }
.cake-picture { grid-area: cake-photo; margin-top: 21px; width: 100%; aspect-ratio: 342 / 166; object-fit: cover; border-radius: 13px; }

.gifts { padding-block: var(--section-space); color: var(--gift-text); background: var(--gift); }
.gifts::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: min(100%, 390px);
  height: 120px;
  background: url("assets/gift-light-mobile.svg") left top / 100% 100% no-repeat;
  pointer-events: none;
  content: "";
}
.gifts-layout, .shop-layout { position: relative; width: min(100% - 2 * var(--gutter), 570px); margin-inline: auto; }
.gift-picture { width: 100%; aspect-ratio: 342 / 275; object-fit: cover; border-radius: 17px; }
.gift-message { margin-top: 29px; }
.gift-message h2 { font-size: clamp(28px, 7.95vw, 31px); letter-spacing: .05em; }
.gift-message .ornament { width: 247px; margin-top: 15px; --ornament-ink: #f9e8cc; --ornament-rule: #d6ae8eb8; }
.gift-message p { margin-block: 25px 34px; letter-spacing: .05em; }
.gift-message .button { min-height: 54px; }
.gift-branch { width: 55px; bottom: 10px; left: 14px; }

.shop { padding-block: var(--section-space); background: var(--shop); color: var(--store-ink); }
.shop .section-heading h2 { font-size: 32px; letter-spacing: .06em; }
.shop .section-heading .ornament { width: 216px; margin-top: 5px; }
.shop-branch-top { width: 77px; right: 9px; top: 11px; }
.shop-branch-bottom { width: 72px; right: 12px; bottom: 9px; }
.shop-message p { margin-block: 25px 24px; letter-spacing: .03em; }
.shop-mark { display: flex; align-items: center; gap: 7px; }
.shop-mark img { width: 58px; flex: none; }
.shop-name { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.15; gap: 8px; }
.shop-details { margin-top: 22px; font-size: 16px; letter-spacing: .04em; }
.shop-details div { display: grid; grid-template-columns: minmax(100px, 37.7%) minmax(0, 1fr); align-items: center; min-height: 51px; border-bottom: 1px solid #80665785; }
.shop-details dt { display: flex; gap: 14px; align-items: center; padding-right: 7px; }
.shop-details dt img { width: 24px; flex: none; }
.shop-details dd { border-left: 1px solid #806657a6; padding-left: 12px; line-height: 1.45; }
.shop-picture { width: 100%; aspect-ratio: 342 / 231; margin-top: 30px; object-fit: cover; border-radius: 16px; }

.footer {
  display: grid;
  justify-items: center;
  background: var(--footer);
  color: var(--ivory);
  padding: 63px var(--gutter) 57px;
}
.footer .brand { justify-self: center; gap: 9px; font-size: 31px; }
.footer .brand img { width: 60px; }
.footer-nav { display: flex; align-items: center; justify-content: center; margin-top: 10px; }
.footer-nav a { position: relative; display: grid; place-items: center; padding-inline: clamp(8px, 3.6vw, 14px); min-height: 44px; font-size: 15px; white-space: nowrap; letter-spacing: .06em; }
.footer-nav a + a::before { position: absolute; top: 50%; left: 0; width: 1px; height: 18px; background: #e9cfb6aa; transform: translateY(-50%); content: ""; }

@media (600px <= width < 960px) {
  :root { --gutter: 36px; }
  .financier-picture { width: 100%; }
}

@media (min-width: 768px) {
  :root { --unit: min(.06944444vw, 1.11111px); }
  .hero-content { display: grid; align-items: center; min-height: calc(900 * var(--unit)); }
  .hero-picture { position: absolute; inset: 0; }
  .hero-picture img { width: 75.14%; height: 100%; object-position: center; }
  .hero-picture::after { inset: 0; height: auto; background-image: url("assets/hero-desktop-curve.svg"); }
  .hero-message {
    width: auto;
    margin: calc(96 * var(--unit)) 1% 0 68.2%;
    padding: 0;
  }
  .hero-message h1 { font-size: clamp(32px, 3.89vw, 60px); }
  .hero-title .ornament { width: calc(207 * var(--unit)); margin-top: calc(21 * var(--unit)); }
  .hero-message p { margin-block: calc(34 * var(--unit)) calc(44 * var(--unit)); font-size: clamp(15px, 1.39vw, 22px); }
  .button-primary { width: min(100%, calc(340 * var(--unit))); min-height: max(49px, calc(65 * var(--unit))); font-size: clamp(19px, 1.944vw, 30px); }
  .button-primary img { width: calc(34 * var(--unit)); right: calc(32 * var(--unit)); }
  .hero-branch { width: calc(233 * var(--unit)); }
  .financier-picture::after { position: absolute; inset: 0; background: url("assets/financier-trim.svg") center / 100% 100% no-repeat; pointer-events: none; content: ""; }
}

@media (768px <= width < 960px) {
  :root { --gutter: clamp(36px, 5vw, 48px); }
  .hero-message { margin-block-start: 0; margin-inline-end: 2%; }
  .hero-message h1 { font-size: clamp(27px, 3.65vw, 35px); }
  .hero-message .button-primary { padding-inline: 12px 38px; }
  .hero-message .button-primary img { width: 20px; right: 12px; }
  .hero-branch { width: clamp(80px, 12vw, 112px); }

  .products-layout, .gifts-layout, .shop-layout {
    display: grid;
    width: calc(100% - 2 * var(--gutter));
    column-gap: clamp(28px, 4vw, 40px);
    align-items: center;
  }
  .products-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "intro financier-photo" "financier financier-photo" "rule rule" "cake cake-photo";
  }
  .financier-picture, .cake-picture { margin-top: 0; }
  .product-rule { margin-block: 34px 28px; }
  .cake-picture { aspect-ratio: 2 / 1; }
  .products-branch-bottom { bottom: 14px; }

  .gifts-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .shop-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .gift-message, .shop-picture { margin-top: 0; }
  .shop-copy-ending { display: inline-block; }

  .footer { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 65px var(--gutter); }
  .footer .brand { justify-self: start; }
  .footer-nav { justify-self: end; margin-top: 0; }
}

@media (768px <= width < 1100px) {
  .copy-phrase { display: inline-block; }
  .products .mobile-break, .gifts .mobile-break, .shop .mobile-break { display: initial; }
  .financier-detail .financier-break { display: none; }
}

@media (min-width: 960px) {
  :root { --section-space: calc(110 * var(--unit)); }
  .mobile-break { display: none; }
  .header {
    position: absolute;
    inset: 0 auto auto 50%;
    transform: translateX(-50%);
    width: min(100%, 1600px);
    display: flex;
    padding: 0 calc(49 * var(--unit));
    gap: calc(94 * var(--unit));
    min-height: calc(104 * var(--unit));
    background: none;
  }
  .header .brand { font-size: clamp(28px, 2.5vw, 40px); }
  .header .brand img { width: calc(99 * var(--unit)); }
  .header-nav { display: flex; margin: 0; padding: 0; background: none; color: var(--ivory); }
  .header-nav a {
    width: calc(186 * var(--unit));
    padding-inline: calc(43 * var(--unit)) 0;
    border-bottom: 0;
    min-height: 44px;
    font-size: clamp(15px, 1.25vw, 18px);
    white-space: nowrap;
    letter-spacing: .08em;
  }
  .header-nav a:nth-child(2) { width: calc(161 * var(--unit)); padding-left: calc(47 * var(--unit)); }
  .header-nav a:nth-child(3) { width: calc(163 * var(--unit)); padding-left: calc(44 * var(--unit)); }
  .header-nav a::before { position: absolute; left: 0; top: 50%; height: 26px; width: 1px; background: #dfc6a4a6; transform: translateY(-50%); content: ""; }
  .header-nav a::after { display: none; }

  .section-heading h2 { font-size: clamp(29px, 3.056vw, 48px); }
  .section-heading .ornament { width: calc(192 * var(--unit)); margin-top: calc(12 * var(--unit)); }
  .products-layout {
    width: auto;
    margin-inline: 7.9167% 7.36%;
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    column-gap: 2.13%;
    grid-template-areas: "intro ." "financier ." "rule rule" "cake cake-photo";
  }
  .products-intro { padding-right: 1%; }
  .products-intro h2 { letter-spacing: -.007em; }
  .products-intro p { max-width: 400px; margin-top: calc(49 * var(--unit)); }
  .products-branch-top { width: calc(150 * var(--unit)); top: calc(14 * var(--unit)); left: calc(23 * var(--unit)); }
  .products-branch-bottom { width: calc(126 * var(--unit)); right: calc(11 * var(--unit)); bottom: calc(36 * var(--unit)); }
  .financier-picture { position: absolute; top: 0; right: 0; width: 57.6389%; margin: 0; aspect-ratio: 830 / 553; }
  .product-detail { grid-template-columns: calc(71 * var(--unit)) minmax(0, 1fr); gap: calc(25 * var(--unit)); }
  .product-detail h3 { font-size: clamp(22px, 1.944vw, 30px); }
  .product-detail p { margin-top: calc(18 * var(--unit)); }
  .financier-detail { margin-top: calc(40 * var(--unit)); }
  .product-rule { width: calc(838 * var(--unit)); margin: calc(101 * var(--unit)) 0 calc(16 * var(--unit)) calc(16 * var(--unit)); }
  .cake-picture { margin-top: 0; aspect-ratio: 707 / 280; border-radius: calc(27 * var(--unit)); }

  .gifts::before { width: calc(450 * var(--unit)); height: calc(420 * var(--unit)); background-image: url("assets/gift-light-desktop.svg"); }
  .gifts-layout { width: auto; margin-inline: 4.93% 10.14%; display: grid; grid-template-columns: minmax(0, 698fr) minmax(0, 431fr); gap: calc(94 * var(--unit)); align-items: center; }
  .gift-picture { aspect-ratio: 698 / 558; border-radius: calc(38 * var(--unit)); }
  .gift-message { margin-top: 0; }
  .gift-message .ornament { width: calc(247 * var(--unit)); margin-top: calc(22 * var(--unit)); }
  .gift-message p { margin-block: calc(52 * var(--unit)); max-width: 376px; }
  .gift-message .button { min-height: max(51px, calc(72 * var(--unit))); }
  .gift-branch { width: calc(85 * var(--unit)); left: calc(24 * var(--unit)); bottom: calc(23 * var(--unit)); }

  .shop-layout { width: auto; margin-inline: 5.9722% 3.8889%; display: grid; grid-template-columns: minmax(0, 530fr) minmax(0, 728fr); gap: calc(40 * var(--unit)); align-items: start; }
  .shop .section-heading h2 { font-size: clamp(29px, 3.056vw, 48px); }
  .shop .section-heading .ornament { width: calc(216 * var(--unit)); margin-top: 4px; }
  .shop-branch-top { width: calc(175 * var(--unit)); right: calc(19 * var(--unit)); top: calc(5 * var(--unit)); }
  .shop-branch-bottom { width: calc(176 * var(--unit)); right: calc(20 * var(--unit)); bottom: 0; }
  .shop-message p { margin-block: calc(50 * var(--unit)) calc(26 * var(--unit)); }
  .shop-mark { gap: calc(10 * var(--unit)); }
  .shop-mark img { width: calc(96 * var(--unit)); }
  .shop-name { font-size: clamp(32px, 3.056vw, 48px); }
  .shop-details { margin-top: calc(15 * var(--unit)); font-size: clamp(16px, 1.25vw, 18px); }
  .shop-details div { grid-template-columns: minmax(118px, 32.1%) minmax(0, 1fr); min-height: max(49px, calc(61 * var(--unit))); }
  .shop-details dt { gap: calc(18 * var(--unit)); }
  .shop-details dd { padding-left: calc(17 * var(--unit)); }
  .shop-picture { margin-top: 0; aspect-ratio: 728 / 491; border-radius: calc(29 * var(--unit)); }

  .footer { min-height: calc(480 * var(--unit)); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: calc(124 * var(--unit)); padding: 0 5.8333%; }
  .footer .brand { justify-self: start; gap: calc(10 * var(--unit)); font-size: clamp(34px, 3.472vw, 54px); }
  .footer .brand img { width: calc(130 * var(--unit)); }
  .footer-nav { width: 100%; margin: 0; justify-content: space-between; }
  .footer-nav a { flex: 1; font-size: clamp(15px, 1.25vw, 18px); }
  .footer-nav a::before, .footer-nav a + a::before { position: absolute; top: 50%; left: 0; width: 1px; height: 40px; background: #e9cfb6aa; transform: translateY(-50%); content: ""; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
}
