:root {
  --color-sumi: #0f0f12;
  --color-sumi-sub: #242428;
  --color-sumi-light: #3a3a40;
  --color-washi-bg: #faf7f2;
  --color-washi-pure: #fdfaf7;
  --color-washi-muted: #f2ece3;
  --color-crimson: #991b1b;
  --color-crimson-accent: #b91c1c;
  --color-gold: rgba(180, 140, 70, 0.35);
  --color-sub: #55555c;
  --color-muted: #888892;
  --color-border-subtle: rgba(0, 0, 0, 0.08);

  --font-serif: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", serif;
  --font-mincho: "Noto Serif JP", "Shippori Mincho", serif;
  --font-cinzel: "Cinzel", "Times New Roman", serif;
  --font-sans: "Montserrat", sans-serif;

  --ease-solemn: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--color-washi-bg);
  color: var(--color-sumi);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
}

.bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.visual-backdrop {
  background-image: url('assets/images/visual.jpg');
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  opacity: 0.42;
  mix-blend-mode: multiply;
  filter: contrast(108%) brightness(102%);
  z-index: 0;
  transform: scale(1.02);
  transform-origin: center center;
}

@keyframes breatheVisual {

  0%,
  100% {
    transform: scale(1.02);
  }

  50% {
    transform: scale(1.035);
  }
}

.breathe-subtle {
  animation: breatheVisual 16s ease-in-out infinite alternate;
}

.washi-overlay {
  background:
    radial-gradient(ellipse at 40% 35%, rgba(253, 250, 247, 0.78) 0%, rgba(250, 247, 242, 0.65) 50%, rgba(242, 236, 227, 0.85) 100%),
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(153, 27, 27, 0.025) 0%, transparent 60%);
  z-index: 1;
}

.vignette-overlay {
  background: radial-gradient(circle, transparent 65%, rgba(228, 222, 213, 0.35) 100%);
  mix-blend-mode: multiply;
  z-index: 2;
}

#canvas-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

:focus-visible {
  outline: 2px solid var(--color-crimson);
  outline-offset: 3px;
}

@keyframes fadeEnter {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-enter {
  animation: fadeEnter 1.6s var(--ease-solemn) forwards;
}

.delay-1 {
  animation-delay: 0.25s;
  opacity: 0;
}

.delay-2 {
  animation-delay: 0.65s;
  opacity: 0;
}

.delay-3 {
  animation-delay: 1.05s;
  opacity: 0;
}

.text-sharp {
  color: var(--color-sumi);
  text-shadow: 0 0 24px rgba(253, 250, 247, 0.9), 0 2px 8px rgba(253, 250, 247, 0.7);
}

.text-sub {
  color: var(--color-sumi-sub);
  text-shadow: 0 0 16px rgba(253, 250, 247, 0.9);
}

.site-container {
  position: relative;
  z-index: 20;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 3.5vh, 3.2rem) clamp(1.5rem, 5vw, 5.5rem);
}

.site-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.identity-group {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.emblem-frame {
  width: clamp(2.75rem, 3.8vw, 3.8rem);
  height: clamp(2.75rem, 3.8vw, 3.8rem);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.38rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.7s var(--ease-solemn);
  cursor: default;
}

.emblem-frame:hover {
  transform: scale(1.06);
}

.emblem-graphic {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.identity-meta {
  display: flex;
  flex-direction: column;
}

.primary-title {
  font-family: var(--font-cinzel);
  font-size: clamp(0.85rem, 1.15vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--color-sumi);
  line-height: 1;
  text-transform: uppercase;
}

.secondary-title {
  font-family: var(--font-mincho);
  font-size: clamp(0.68rem, 0.82vw, 0.88rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--color-sub);
  margin-top: 0.38rem;
  line-height: 1.2;
}

.site-main {
  flex: 1;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 0;
}

.primary-content {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 4rem);
  height: auto;
  max-height: 72vh;
  padding: 0.5rem 0;
}

.vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: vertical-rl;
  white-space: nowrap;
}

.title-wrapper {
  display: flex;
  align-items: flex-start;
  white-space: nowrap;
}

.main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 8.6vh, 6.8rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1;
  white-space: nowrap;
}

.stamp-wrapper {
  padding-top: clamp(0.2rem, 1vh, 0.8rem);
  margin-right: clamp(0.4rem, 1.2vw, 1.2rem);
}

.hanko-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.8px solid var(--color-crimson);
  color: var(--color-crimson);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(153, 27, 27, 0.12), inset 0 0 6px rgba(153, 27, 27, 0.08);
  border-radius: 2px;
  padding: clamp(0.35rem, 0.8vh, 0.6rem) clamp(0.25rem, 0.4vw, 0.4rem);
  position: relative;
  white-space: nowrap;
}

.hanko-stamp::before {
  content: '';
  position: absolute;
  inset: 1px;
  border: 0.5px solid rgba(153, 27, 27, 0.35);
  pointer-events: none;
}

.hanko-text {
  font-family: var(--font-serif);
  font-size: clamp(0.7rem, 1vh + 0.2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--color-crimson);
  white-space: nowrap;
}

.catchphrase-wrapper {
  padding-left: clamp(0.25rem, 0.8vw, 0.8rem);
  padding-right: clamp(0.8rem, 2vw, 2.2rem);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.catchphrase {
  font-family: var(--font-mincho);
  font-size: clamp(0.85rem, 1.8vh + 0.2vw, 1.35rem);
  letter-spacing: 0.38em;
  line-height: 2.5;
  font-weight: 400;
  white-space: nowrap;
}

.statement-wrapper {
  padding-right: clamp(0.8rem, 2vw, 2.2rem);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

.statement-line {
  font-family: var(--font-mincho);
  font-size: clamp(0.78rem, 1.5vh + 0.18vw, 1.15rem);
  color: #3f3f46;
  letter-spacing: 0.4em;
  line-height: 2.6;
  font-weight: 300;
  white-space: nowrap;
}

.poem-wrapper {
  display: block;
  white-space: nowrap;
}

.poem-line {
  font-family: var(--font-mincho);
  font-size: clamp(0.72rem, 1.2vh + 0.15vw, 0.98rem);
  color: var(--color-sub);
  letter-spacing: 0.42em;
  line-height: 2.8;
  font-weight: 300;
  opacity: 0.85;
  white-space: nowrap;
}

.statement-aside {
  align-self: flex-end;
  margin-bottom: clamp(0.5rem, 3.5vh, 2.8rem);
  width: fit-content;
  max-width: min(92vw, 460px);
}

.statement-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(1.1rem, 2.2vh, 1.8rem) clamp(1.2rem, 1.8vw, 2rem);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  position: relative;
  text-align: right;
  width: fit-content;
  max-width: 100%;
}

.statement-card::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--color-crimson);
  border-right: 2px solid var(--color-crimson);
  opacity: 0.8;
}

.statement-card::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--color-sumi);
  border-left: 2px solid var(--color-sumi);
  opacity: 0.4;
}

.statement-heading {
  font-family: var(--font-cinzel);
  font-size: clamp(0.65rem, 0.78vw, 0.78rem);
  letter-spacing: 0.4em;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.statement-body {
  font-family: var(--font-serif);
  font-size: clamp(0.76rem, 0.95vh + 0.2vw, 0.96rem);
  color: var(--color-sumi-sub);
  line-height: 1.85;
  letter-spacing: 0.04em;
  font-weight: 400;
  text-align: right;
}

.statement-phrase {
  display: block;
  white-space: nowrap;
}

.statement-footer {
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  font-size: clamp(0.65rem, 0.75vw, 0.8rem);
  color: var(--color-sub);
  font-family: var(--font-mincho);
  letter-spacing: 0.25em;
  white-space: nowrap;
}

.origin-tag {
  color: var(--color-muted);
  white-space: nowrap;
}

.signature-tag {
  font-family: var(--font-cinzel);
  font-weight: 600;
  color: var(--color-crimson);
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.site-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  font-family: var(--font-mincho);
  font-size: clamp(0.62rem, 0.78vw, 0.8rem);
  color: var(--color-muted);
  letter-spacing: 0.3em;
  padding-top: 0.5rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 1.25rem);
}

.copyright-name {
  color: var(--color-sumi-sub);
  font-weight: 500;
}

.footer-divider {
  display: inline-block;
  width: 14px;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
}

.footer-sub {
  font-weight: 300;
  color: var(--color-muted);
}

.gold-line {
  flex: 1;
  margin: 0 clamp(1rem, 2.5vw, 2.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

@media (min-width: 1441px) {
  .primary-content {
    gap: clamp(2rem, 3.5vw, 5rem);
  }
}

@media (max-width: 1200px) {
  .primary-content {
    gap: clamp(0.75rem, 1.8vw, 2.2rem);
  }

  .catchphrase-wrapper,
  .statement-wrapper {
    padding-right: clamp(0.5rem, 1.2vw, 1.4rem);
  }

  .catchphrase {
    font-size: clamp(0.78rem, 1.7vh, 1.15rem);
  }

  .statement-line {
    font-size: clamp(0.72rem, 1.45vh, 1rem);
  }

  .poem-line {
    font-size: clamp(0.66rem, 1.25vh, 0.9rem);
  }

  .statement-aside {
    width: fit-content;
    max-width: min(90vw, 440px);
  }

  .statement-body {
    font-size: clamp(0.72rem, 1.1vh + 0.2vw, 0.88rem);
    letter-spacing: 0.04em;
  }
}

@media (max-width: 768px) {
  .site-container {
    padding: clamp(0.8rem, 2vh, 1.5rem) clamp(0.8rem, 3vw, 1.5rem);
  }

  .site-main {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 0.5rem;
  }

  .primary-content {
    align-self: flex-start;
    max-height: 55vh;
    gap: clamp(0.28rem, 3.2vw, 0.65rem);
    padding: 0;
  }

  .main-title {
    font-size: clamp(1.9rem, 7.2vh, 3.6rem);
  }

  .stamp-wrapper {
    padding-top: 0.2rem;
    margin-right: clamp(0.35rem, 1.8vw, 0.75rem);
  }

  .hanko-stamp {
    padding: 0.25rem 0.2rem;
  }

  .hanko-text {
    font-size: clamp(0.6rem, 0.9vh, 0.75rem);
  }

  .catchphrase-wrapper {
    padding-left: clamp(0.2rem, 1vw, 0.45rem);
    padding-right: clamp(0.25rem, 0.8vw, 0.5rem);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }

  .catchphrase {
    font-size: clamp(0.68rem, 1.45vh, 0.86rem);
    letter-spacing: 0.26em;
    line-height: 2;
  }

  .statement-wrapper {
    display: block !important;
    padding-right: clamp(0.25rem, 0.8vw, 0.5rem);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
  }

  .statement-line {
    font-size: clamp(0.64rem, 1.35vh, 0.8rem);
    letter-spacing: 0.24em;
    line-height: 2.1;
  }

  .poem-wrapper {
    display: block !important;
  }

  .poem-line {
    font-size: clamp(0.58rem, 1.2vh, 0.74rem);
    letter-spacing: 0.2em;
    line-height: 2.2;
    opacity: 0.82;
  }

  .statement-aside {
    align-self: flex-end;
    margin-bottom: 0.2rem;
    width: fit-content;
    max-width: 100%;
  }

  .statement-card {
    text-align: right;
    padding: clamp(0.75rem, 1.8vh, 1rem) clamp(0.85rem, 2.5vw, 1.25rem);
    width: fit-content;
    max-width: 100%;
  }

  .statement-card::before,
  .statement-card::after {
    width: 9px;
    height: 9px;
  }

  .statement-heading {
    margin-bottom: 0.45rem;
    font-size: 0.65rem;
  }

  .statement-body {
    font-size: clamp(0.66rem, 1.25vh, 0.8rem);
    line-height: 1.65;
    letter-spacing: 0.03em;
  }

  .statement-footer {
    margin-top: 0.5rem;
    padding-top: 0.35rem;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    font-size: clamp(0.64rem, 1.8vw, 0.72rem);
  }

  .gold-line {
    display: none;
  }
}

@media (max-width: 420px) {

  .catchphrase-wrapper,
  .statement-wrapper {
    padding-right: 0.22rem;
  }

  .main-title {
    font-size: clamp(1.65rem, 6.8vh, 2.8rem);
  }

  .catchphrase {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
  }

  .statement-line {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
  }

  .poem-line {
    font-size: 0.52rem;
    letter-spacing: 0.15em;
  }

  .statement-card {
    padding: 0.65rem 0.8rem;
  }

  .statement-body {
    font-size: clamp(0.58rem, 1.15vh, 0.7rem);
    letter-spacing: 0.02em;
    line-height: 1.6;
  }

  .statement-footer {
    font-size: 0.62rem;
    gap: 0.5rem;
  }
}

@media (max-height: 640px) {
  .site-container {
    padding: 0.4rem 1.2rem;
  }

  .main-title {
    font-size: clamp(1.6rem, 9vh, 3rem);
  }

  .catchphrase {
    font-size: 0.7rem;
    line-height: 1.7;
  }

  .statement-line {
    font-size: 0.65rem;
    line-height: 1.7;
  }

  .poem-line {
    font-size: 0.6rem;
    line-height: 1.7;
  }

  .statement-card {
    padding: 0.5rem 0.8rem;
  }

  .statement-body {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .statement-footer {
    margin-top: 0.35rem;
    padding-top: 0.25rem;
  }

  .site-footer {
    padding-top: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .breathe-subtle {
    animation: none !important;
  }

  #canvas-particles {
    display: none !important;
  }
}