:root {
  --bg: #f5f2ec;
  --text: #25241f;
  --muted: #66655f;
  --green: #415a45;
  --line: #73766f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 400;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figure,
p,
h1 {
  margin: 0;
}

.closing-page {
  min-height: 100vh;
}

.message-panel {
  position: fixed;
  inset: 0 auto 0 0;
  width: 50%;
  height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.9), transparent 36%),
    var(--bg);
  z-index: 2;
}

.message-panel__inner {
  width: min(72%, 620px);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(34px, 5vh, 72px) 0 36px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand__mark {
  position: relative;
  width: 54px;
  height: 42px;
  flex: 0 0 auto;
}

.tree {
  position: absolute;
  bottom: 0;
  width: 16px;
  height: 32px;
}

.tree::before,
.tree::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.tree::before {
  top: 0;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 17px solid var(--green);
}

.tree::after {
  top: 11px;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 18px solid var(--green);
}

.tree--1 { left: 0; }
.tree--2 { left: 16px; transform: translateY(-5px) scale(1.12); }
.tree--3 { left: 34px; transform: scale(.92); }

.brand__name {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(18px, 1.45vw, 25px);
  letter-spacing: .11em;
}

.brand__sub {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: .25em;
}

.message {
  margin: auto 0;
  padding: 8vh 0 7vh;
}

.message h1 {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.6;
  letter-spacing: .08em;
}

.lead {
  margin-top: clamp(28px, 4vh, 52px);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 2.2;
  letter-spacing: .08em;
}

.divider {
  display: block;
  width: 42px;
  height: 1px;
  margin: 34px 0 30px;
  background: var(--line);
}

.body-copy {
  max-width: 560px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(12px, .84vw, 14px);
  line-height: 2.2;
  letter-spacing: .035em;
}

.body-copy p + p {
  margin-top: 16px;
}

.close-date {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: "Noto Serif JP", serif;
  letter-spacing: .16em;
}

.close-date span {
  font-size: 20px;
}

.close-date strong {
  margin-top: 3px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: .18em;
}

.message-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--green);
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: .18em;
}

.message-footer__tree {
  position: relative;
  width: 34px;
  height: 44px;
  border-left: 1px solid var(--green);
  margin-left: 10px;
}

.message-footer__tree::before,
.message-footer__tree::after {
  content: "";
  position: absolute;
  left: -12px;
  width: 24px;
  height: 24px;
  border-left: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  transform: rotate(135deg);
}

.message-footer__tree::before {
  top: 5px;
}

.message-footer__tree::after {
  top: 15px;
}

.gallery-panel {
  margin-left: 50%;
  width: 50%;
  background: #10130f;
  position: relative;
}

/*.gallery-item {
  height: 32vh;
  min-height: 300px;
  overflow: hidden;
}

.gallery-item--2 {
  height: 30vh;
}

.gallery-item--3 {
  height: 29vh;
}

.gallery-item--4 {
  height: 31vh;
}*/

.gallery-item img {
  transition: transform 1.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.scroll-guide {
  position: fixed;
  right: 28px;
  bottom: 34px;
  z-index: 3;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: none;
}

.scroll-guide span {
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: .2em;
}

.scroll-guide i {
  display: block;
  width: 1px;
  height: 110px;
  background: rgba(255,255,255,.72);
  position: relative;
}

.scroll-guide i::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 6px;
  height: 6px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(45deg);
}

@media (max-width: 1100px) {
  .message-panel__inner {
    width: 78%;
  }

  .message h1 {
    font-size: clamp(38px, 4.7vw, 58px);
  }

  .body-copy br {
    display: none;
  }
}

@media (max-width: 760px) {
  .message-panel {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100svh;
  }

  .message-panel__inner {
    width: min(86%, 620px);
    min-height: 100svh;
    padding: 28px 0 34px;
  }

  .message {
    padding: 12vh 0 10vh;
  }

  .message h1 {
    font-size: clamp(42px, 12vw, 64px);
    line-height: 1.55;
  }

  .lead {
    margin-top: 32px;
    font-size: 14px;
  }

  .lead br,
  .body-copy br {
    display: none;
  }

  .body-copy {
    font-size: 13px;
    line-height: 2.15;
  }

  .close-date {
    margin-top: 38px;
  }

  .gallery-panel {
    margin-left: 0;
    width: 100%;
  }

  .gallery-item,
  .gallery-item--2,
  .gallery-item--3,
  .gallery-item--4 {
    height: 56vw;
    min-height: 260px;
    max-height: 500px;
  }

  .scroll-guide {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand__mark {
    transform: scale(.88);
    transform-origin: left center;
    margin-right: -4px;
  }

  .brand__name {
    font-size: 18px;
  }

  .brand__sub {
    font-size: 9px;
  }

  .message h1 {
    font-size: 40px;
  }

  .close-date span {
    font-size: 17px;
  }

  .close-date strong {
    font-size: 24px;
  }
}


/* Closing message refinement */
.body-copy--main {
  margin-top: clamp(34px, 4.5vh, 56px);
}

.body-copy--main p + p {
  margin-top: 20px;
}

.future-message {
  font-family: "Noto Serif JP", serif;
}

.future-message__title {
  font-size: clamp(20px, 1.65vw, 28px);
  line-height: 1.8;
  letter-spacing: .08em;
}

.future-message__text {
  margin-top: 18px;
  font-size: clamp(12px, .84vw, 14px);
  line-height: 2.2;
  letter-spacing: .035em;
}

@media (max-width: 760px) {
  .body-copy--main {
    margin-top: 34px;
  }

  .future-message__title {
    font-size: 22px;
  }

  .future-message__text br {
    display: none;
  }
}


/* Allow the fixed left message panel to scroll when its content exceeds the viewport */
@media (min-width: 761px) {
  .message-panel {
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .message-panel__inner {
    min-height: 100vh;
    height: auto;
    padding-top: clamp(32px, 4vh, 58px);
    padding-bottom: clamp(32px, 4vh, 58px);
  }

  .message {
    margin: 0;
    padding: clamp(70px, 9vh, 120px) 0 clamp(70px, 9vh, 120px);
  }

  .message-panel::-webkit-scrollbar {
    width: 5px;
  }

  .message-panel::-webkit-scrollbar-thumb {
    background: rgba(65, 90, 69, .25);
    border-radius: 999px;
  }

  .message-panel::-webkit-scrollbar-track {
    background: transparent;
  }
}
