/* Reset CSS - 一般的なリセット */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
body {
  font-family: 'IBM Plex Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-weight: 400;
  letter-spacing: 0.1em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
  background: #fafafa;
  color: #222;
  margin: 0;
  padding: 0;
  height: calc(var(--vh, 1vh) * 100); /* fallbackつき */
  max-height: none;


  border: 8px solid #000;
  overflow: hidden;
  position: relative;
}

.typography{
    width: 104%;
    height: auto;
    position: absolute;
    bottom: -24px;
    left: 0;
    transform: translateX(-2%);
    z-index: -1;
    opacity: 0.5;
}
.logo {
  position: absolute;
  top: 70px;
  left: 70px;
  transform: none;
  margin: 0;
  width: 160px;
  height: 54px;
  z-index: 10;
}
.logo img {
  width: 160px;
  height: 54px;
  display: block;
}
.logo:hover {
  cursor: wait;
}
.global-nav {
  position: absolute;
  right: 2px;
  margin-top: 60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}
.global-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
}
.global-nav__item {
  width: 220px;
}
.global-nav__link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 220px;
  padding: 14px 8px;
  background: #000 url('images/pattern.png') center/cover repeat;
  color: #fff;
  border-radius: 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, padding 0.2s ease-in-out;
  box-sizing: border-box;
  text-align: center;
  font-family: 'IBM Plex Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  overflow: hidden;
}
.global-nav__link:hover,
.global-nav__link:focus {
  color: #fff;
  padding-left: 16px;
  padding-right: 16px;
}
.button-arrow {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin: 0;
  display: block;
}
.global-nav__link:hover .button-arrow,
.global-nav__link:focus .button-arrow {
  display: none;
}
.global-nav__link:hover::before,
.global-nav__link:focus::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  background: url('images/unit.gif') no-repeat center/contain;
  margin-right: 8px;
  vertical-align: middle;
}
.global-nav__text {
  flex: 1 1 0%;
  text-align: right;
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blend-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  mix-blend-mode: exclusion;
  pointer-events: none;
  z-index: 9999;
  /* display: none; */
}
.triangle {
  position: absolute;
  mix-blend-mode: exclusion;
  pointer-events: none;
  transition: clip-path 0.6s cubic-bezier(0.4,0,0.2,1), border-radius 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
  transform: scale(0) rotate(0deg);
}
.triangle--show {
  transform: scale(1) rotate(-360deg) !important;
}
.triangle--rotate {
    transform: scale(1) rotate(450deg) !important;
  }
.triangle--circle {
  clip-path: none !important;
  border-radius: 50% !important;
  transform: scale(1) rotate(-45deg) !important;
}
.triangle--hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
  transition: opacity 0.4s, transform 0.4s;
}
.triangle1 {
    left: 3vw;
    bottom: 10vh;
  width: 400px;
  height: 346px;
  background: transparent;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background-color: #fff;
  opacity: 1;
}
.triangle2 {
    left: 30vw;
    top: -10vh;
    width: 320px;
    height: 277px;
  background: transparent;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background-color: #fff;
  opacity: 1;
}
.triangle3 {
    left: 60vw;
    top: 75vh;
    width: 320px;
    height: 277px;
  background: transparent;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  background-color: #fff;
  opacity: 1;
}
.intro-message {
  position: absolute;
  top: 50%;
  left: 250px;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 500;
  font-family: 'Outfit', 'IBM Plex Sans JP', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  line-height: 1.8;
  margin: 0;
  text-align: left;
  z-index: 20;
}

  .char {
    display: inline-block;
    position: relative;
  }
  
  .char-text {
    opacity: 0;
    display: inline-block;
  }
  
  .spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
  }

  .spark-final {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    margin-left: 4px;
    z-index: 1;
    pointer-events: none;
  }

::selection {
  background: #000;
  color: #fff;
}
.small-text {
  font-size: 14px;
}
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('images/noise.png') repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 10000;
  opacity: 1;
  animation: noise-flip 0.1s infinite steps(1) alternate;
}
@keyframes noise-flip {
  0% {
    transform: scaleX(1) scaleY(1);
  }
  33% {
    transform: scaleX(-1) scaleY(1);
  }
  66% {
    transform: scaleX(1) scaleY(-1);
  }
  100% {
    transform: scaleX(-1) scaleY(-1);
  }
}

br.pc-br {
  display: inline;
}
@media (max-width: 768px) {
  br.pc-br {
    display: none;
  }
}


.color-toggles {
    position: fixed;
    top: 70px;
    right: 70px;
    display: flex;
    gap: 0;
    z-index: 2147483647;
  }
  .color-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    outline: none;
    background: none;
    position: relative;
    cursor: pointer;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .color-toggle .color-sample {
    width: 20px;
    height: 20px;
    background: currentColor;
    display: block;
    border-radius: 0;
  }
  .color-toggle.selected .color-indicator {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    animation: blink 1s linear infinite;
  }
  @keyframes blink {
    0%, 50% {
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  .color-toggle .color-indicator {
    display: none;
  }
  .color-toggle.selected .color-indicator {
    display: block;
  }
  .color-toggle:hover .color-sample,
  .color-toggle:focus .color-sample {
    transform: scale(0.8);
    transition: transform 0.2s;
  }
  .color-sample {
    transition: transform 0.2s;
  }

.copyright-mark {
  position: static;
  display: block;
  margin: 16px 0 0 16px;
  font-size: 10px;
  color: #222;
  opacity: 0.25;
  letter-spacing: 0.1em;
  pointer-events: none;
  text-align: left;
}


@media (max-width: 768px) {
  body {
    padding: 0 24px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-width: 4px;
  }
  .logo {
    position: static;
    margin: 8px 0 0 0;
    display: flex;
    justify-content: flex-start;
    width: 90px;
    top: auto;
    left: auto;
    transform: none;
    order: 1;
  }
  .logo img {
    width: 90px;
    height: 30px;
  }
  .intro-message {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 40px 0 0 0;
    font-size: 14px;
    text-align: left;
    width: auto;
    z-index: 20;
    order: 2;
    padding: 0 16px;
  }
  .typography {
    display: block;
    max-width: 104vw;
    height: auto;
    order: 3;
    bottom: 90px;
    position: fixed;
    opacity: 0.5;
  }
  .global-nav {
    position: fixed;
    left: 6px;
    right: 6px;
    bottom: 6px;
    top: auto;
    transform: none;
    margin: 0;
    display: flex;
    justify-content: center;
    width: auto;
    z-index: 20;
    order: 4;
  }
  .global-nav__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    gap: 2px;
  }
  .global-nav__item,
  .global-nav__link {
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }
  .global-nav__link {
    font-size: 14px;
  }
  .blend-overlay,
  .noise-overlay {
    width: 100vw;
    height: 100vh;
  }
  .color-toggles {
    top: 24px !important;
    right: 24px !important;
  }
  .color-toggle {
    width: 36px;
    height: 36px;
  }
  .color-toggle .color-sample {
    width: 16px;
    height: 16px;
  }
  .color-toggle.selected .color-indicator {
    width: 8px;
    height: 8px;
  }
  .triangle1 {
    width: 160px;
    height: 138px;
    left: 3vw;
    bottom: 32vh;
  }
  .triangle2 {
    width: 96px;
    height: 83px;
    left: 40vw;
    top: 20vh;
  }
  .triangle3 {
    width: 96px;
    height: 83px;
    left: 69vw;
    top: 57vh;
  }
  .copyright-mark {
    font-size: 8px;
    margin: 8px 0 0 0;
  }
}
