:root {
  --paper: #f3eee7;
  --paper-light: #f8f3eb;
  --paper-shadow: #dfd2bf;
  --ink: #172d38;
  --ink-soft: #334853;
  --green: #496c57;
  --green-dark: #27483b;
  --red: #c8543f;
  --red-dark: #aa3f32;
  --seal-red: #c8543f;
  --line: rgba(64, 107, 83, 0.66);
  --fit-scale: 1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 251, 241, 0.72), transparent 32rem),
    radial-gradient(circle at 18% 82%, rgba(197, 184, 158, 0.22), transparent 22rem),
    radial-gradient(circle at 82% 80%, rgba(198, 185, 159, 0.2), transparent 24rem),
    linear-gradient(180deg, var(--paper-light), var(--paper));
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.4;
  background-image:
    radial-gradient(rgba(55, 42, 23, 0.14) 0.7px, transparent 0.8px),
    radial-gradient(rgba(110, 88, 52, 0.12) 0.6px, transparent 0.7px);
  background-position:
    0 0,
    8px 10px;
  background-size:
    22px 22px,
    19px 19px;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 3rem);
  isolation: isolate;
}

.hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: min(calc(100vw - 2rem), 92rem);
  margin: 0;
  justify-items: center;
  text-align: center;
  transform: translate(-50%, -50%) scale(var(--fit-scale));
  transform-origin: center;
}

.logo {
  display: block;
  width: clamp(9rem, min(18vw, 23vh), 16.5rem);
  height: clamp(9rem, min(18vw, 23vh), 16.5rem);
  margin: 0 auto clamp(0.85rem, 1.9vmin, 1.7rem);
  border: 5px solid rgba(18, 43, 55, 0.96);
  border: clamp(3px, 0.32vw, 6px) solid rgba(18, 43, 55, 0.96);
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  background: var(--paper);
  box-shadow:
    0 1.2rem 2.8rem rgba(25, 31, 26, 0.09),
    0 0 0 0.45rem rgba(243, 238, 231, 0.48);
}

.crest-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, 64rem);
  margin: 0 auto clamp(0.85rem, 1.9vmin, 1.65rem);
  gap: 1.5rem;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.line,
.project-label span {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.flower {
  color: var(--green);
  font-size: 1.55rem;
  font-size: clamp(1.15rem, 2vw, 1.9rem);
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7));
}

h1 {
  margin: 0;
  color: var(--ink);
  max-width: 100%;
  font-size: clamp(1.75rem, min(7.2vw, 12vh), 7.4rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 0.95;
  white-space: nowrap;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.75),
    0 0.2rem 0 rgba(18, 45, 56, 0.06);
}

h1 span {
  color: var(--red);
  margin-left: 0.05em;
}

.lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: clamp(0.85rem, 1.8vmin, 1.55rem) 0 0;
  color: var(--green-dark);
  font-size: clamp(1rem, min(2vw, 3.2vh), 1.85rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.lead::before,
.lead::after {
  width: clamp(3rem, 7vw, 8rem);
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.project-label {
  display: grid;
  grid-template-columns: minmax(2rem, 1fr) auto minmax(2rem, 1fr);
  align-items: center;
  width: min(100%, 46rem);
  margin: clamp(0.95rem, 2vmin, 1.65rem) auto 0;
  gap: 1.25rem;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  color: var(--ink-soft);
  font-size: clamp(0.95rem, min(1.55vw, 2.35vh), 1.38rem);
  letter-spacing: 0.12em;
}

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  gap: clamp(1.05rem, 3.2vw, 2.75rem);
  margin: clamp(1rem, 2.25vmin, 1.9rem) auto 0;
}

.social-icon {
  display: grid;
  width: clamp(2.75rem, min(4.6vw, 7vh), 4.2rem);
  height: clamp(2.75rem, min(4.6vw, 7vh), 4.2rem);
  border: 0;
  border-radius: 999px;
  place-items: center;
  color: #fff7ef;
  background: var(--seal-red);
  box-shadow: none;
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  font-size: clamp(1.18rem, min(2.2vw, 3.4vh), 1.9rem);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.social-icon-x {
  padding-top: 0.01em;
  padding-left: 0.01em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, min(2.45vw, 3.8vh), 2.1rem);
}

.social-icon-instagram {
  padding-top: 0.01em;
  font-size: clamp(1.38rem, min(2.55vw, 4vh), 2.15rem);
  font-weight: 400;
}

.social-icon-youtube {
  padding-left: 0.12em;
  font-size: clamp(1.34rem, min(2.45vw, 3.9vh), 2.05rem);
}

.social-icon-tiktok {
  padding-top: 0.03em;
  padding-left: 0.04em;
  font-size: clamp(1.42rem, min(2.55vw, 4.1vh), 2.2rem);
  font-weight: 400;
}

.social-icon + .social-icon {
  position: relative;
}

.social-icon + .social-icon::before {
  position: absolute;
  top: 16%;
  bottom: 16%;
  left: -1.3rem;
  width: 1px;
  content: "";
  background: rgba(39, 72, 59, 0.34);
  transform: translateX(-50%);
}

.note {
  margin: clamp(0.9rem, 1.9vmin, 1.55rem) 0 0;
  color: rgba(23, 45, 56, 0.72);
  font-size: clamp(0.82rem, min(1.25vw, 2vh), 1.05rem);
  letter-spacing: 0.1em;
}

.disclaimer {
  margin: clamp(0.55rem, 1.2vmin, 0.9rem) 0 0;
  color: rgba(39, 72, 59, 0.66);
  font-size: clamp(0.76rem, min(1.05vw, 1.7vh), 0.95rem);
  letter-spacing: 0.18em;
}

.mist,
.wave,
.mountain {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.mist {
  width: 34rem;
  height: 9rem;
  opacity: 0.2;
  filter: blur(0.2px);
  background:
    radial-gradient(ellipse at 17% 54%, rgba(91, 105, 102, 0.44) 0 18%, transparent 19%),
    radial-gradient(ellipse at 38% 52%, rgba(91, 105, 102, 0.42) 0 17%, transparent 18%),
    radial-gradient(ellipse at 62% 54%, rgba(91, 105, 102, 0.34) 0 16%, transparent 17%),
    linear-gradient(90deg, transparent, rgba(91, 105, 102, 0.22), transparent);
}

.mist-left {
  bottom: 18%;
  left: -7rem;
}

.mist-right {
  top: 27%;
  right: -9rem;
  transform: scaleX(-1);
}

.wave {
  width: 42rem;
  height: 24rem;
  opacity: 0.12;
  border: 0.45rem solid rgba(44, 78, 86, 0.64);
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
}

.wave::before,
.wave::after {
  position: absolute;
  content: "";
  border: 0.35rem solid rgba(44, 78, 86, 0.42);
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
}

.wave::before {
  inset: 14% 15% 8% 9%;
}

.wave::after {
  inset: 31% 32% 12% 3%;
}

.wave-left {
  bottom: -7rem;
  left: -7rem;
  transform: rotate(-14deg);
}

.wave-right {
  right: -14rem;
  bottom: -9rem;
  transform: rotate(21deg) scaleX(-1);
}

.mountain {
  right: 3vw;
  bottom: -0.5rem;
  width: min(42vw, 31rem);
  height: min(16vw, 12rem);
  opacity: 0.14;
  background:
    linear-gradient(128deg, transparent 0 47%, rgba(79, 91, 90, 0.5) 48% 52%, transparent 53%),
    linear-gradient(152deg, transparent 0 48%, rgba(79, 91, 90, 0.7) 49% 54%, transparent 55%),
    linear-gradient(24deg, transparent 0 48%, rgba(79, 91, 90, 0.45) 49% 54%, transparent 55%);
  clip-path: polygon(0 100%, 50% 3%, 100% 100%);
}

@media (max-width: 720px) {
  .hero {
    height: 100svh;
    padding: clamp(1rem, 4.5vw, 1.5rem);
  }

  .hero-card {
    width: min(100%, 28rem);
  }

  .crest-row {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .logo {
    width: clamp(7.5rem, 40vw, 11.5rem);
    height: clamp(7.5rem, 40vw, 11.5rem);
    margin-bottom: clamp(0.75rem, 3.5vw, 1.25rem);
  }

  h1 {
    font-size: clamp(1.75rem, 8.2vw, 4.4rem);
    letter-spacing: 0.03em;
    line-height: 0.98;
    white-space: nowrap;
  }

  .lead {
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.9rem;
    font-size: clamp(0.95rem, 4.2vw, 1.2rem);
    letter-spacing: 0.07em;
    line-height: 1.45;
    white-space: normal;
  }

  .lead::before,
  .lead::after {
    width: 9rem;
  }

  .project-label {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 0.9rem;
    font-size: clamp(0.82rem, 3.7vw, 1rem);
    letter-spacing: 0.07em;
  }

  .project-label span {
    width: 7rem;
    margin: 0 auto;
  }

  .socials {
    gap: 1rem;
    margin-top: 1rem;
  }

  .social-icon {
    width: clamp(2.55rem, 12vw, 3.25rem);
    height: clamp(2.55rem, 12vw, 3.25rem);
  }

  .social-icon + .social-icon::before {
    display: none;
  }

  .note {
    max-width: 18rem;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.5;
  }

  .disclaimer {
    line-height: 1.45;
  }
}

@media (max-height: 720px) and (min-width: 721px) {
  .hero {
    padding-block: 1rem;
  }

  .logo {
    width: clamp(8rem, 20vh, 11rem);
    height: clamp(8rem, 20vh, 11rem);
  }

  .crest-row {
    margin-bottom: 0.7rem;
  }

  h1 {
    font-size: clamp(3rem, 9.8vh, 5.6rem);
  }

  .lead {
    margin-top: 0.75rem;
  }

  .project-label,
  .socials,
  .note {
    margin-top: 0.8rem;
  }
}

@media (max-height: 640px) and (min-width: 721px) {
  .note,
  .disclaimer {
    display: none;
  }
}
