* {
    box-sizing: border-box;
}

:root {
  --accent-color:#E32636;
  --text-color: black;
  --background-base:  rgb(250, 247, 215);
}

/* 親の inline フレックスで横並びにする */
.external-link {
  display: inline-flex;
  align-items: center;
  column-gap: 0.4rem;
}

/* リンクの見た目調整（必要なら上書き） */
.external-link a {
  text-decoration: underline;
  color: inherit;
  white-space: nowrap;
  display: inline-block;
}

/* SVGアイコン */
.external-icon {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex: none;
}


h1,
h2,
h3,
h4,
p {
    padding: 0;
    margin: 0;
}

.u-font-noto {
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

@media (min-width: 768px) {
    .u-sp{
        display: none;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

.br-sp{
    display: none;
}

button{
        background-color: transparent;
        border: none;
        cursor: pointer;
        outline: none;
        padding: 0;
        appearance: none;
}

.u-fon1 {
    font-size: 2.25em;
}

.u-fon2 {
    font-size: 1.5em;
}

.u-fon3 {
    font-size: 1.25em;
}

.u-fon4 {
    font-size: 1.11em;
}

.u-fon5 {
    font-size: 1em;
}

.u-fon6 {
    font-size: 0.81em;
}

.u-fon7 {
    font-size: 0.625em;
}

.u-tex-l {
    text-align: left;
}

.u-tex-c {
    text-align: center;
}

.u-pointer {
    cursor: pointer;
}

.u-fix {
    position: fixed;
}

.u-rel {
    position: relative;
}

.u-abs {
    position: absolute;
}

.u-tex-left {
    text-align: left;
}

.u-light{
    font-weight: 300;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Chivo Mono", monospace;
    font-optical-sizing: auto;
    font-style: normal;
    overflow-x: hidden;
}

html{
    background-color: var(--background-base);
}

body{
    opacity: 0;
}

.body__load{
    opacity: 1;
    transition: all 0.3s ease;
}

.body__hamburger-button--open{
    height: 100vh;
    overflow: hidden;
}

main {
    width: 100%;
}

.inner {
    border: 12px solid var(--accent-color);
    position: relative;
    width: 100%;
    background-image: url("/image/p0103_l.jpg");
    background-size: contain;
    background-position: center;
    background-repeat: repeat;
    z-index: 50;
}

/* ボタン */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    line-height: 1;
    padding: 0.2em 0.2em 0.1em 0.2em;
    width: fit-content;
    height: fit-content;
    font-weight: 300;
}

.btn--primary {
    color: var(--text-color);
    background-color:var(--background-base);
    border: 2px solid var(--text-color);
}

.btn--hover:hover {
    color:var(--background-base);
    background-color: var(--text-color);
    border: 2px solid var(--text-color);
    transition: 0.3s linear;
}

/* ナビ */
.nav {
    display: flex;
    justify-content: right;
    align-items: center;
    gap: 1.5em;
}

.nav__text-box {
    line-height: 1.1;
    padding: 0 0.2em;
    width: fit-content;
    height: fit-content;
    color: var(--text-color);
    background-color:var(--background-base);
    border: 2px solid var(--text-color);
    font-weight: 300;
    z-index: 50;
}

/* 動画スタイル */
.video-wrapper {
    border: 2px solid var(--text-color);
    position: relative;
    width: 100%;
    aspect-ratio: 1/0.47;
    overflow: hidden;
}

.work__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  display: block;
}

/* アニメーション */
.text-appear__glidge{
  animation: glitch1 0.3s 2;
}

.text-box--load-animation,.text-box--scroll-animation{
    opacity : 0;
    transform: translateY(2px);
}

.image-box--scroll-animation{
    opacity: 0;
    scale: 1.1;
}

.text-appear__feed-in{
    opacity : 1;
    transform: translateY(0px);
    transition: 0.7s linear;
    transition-delay: 0.3s;
}

.image-appear__feed-in {
    opacity: 1;
    scale: 1;
    transition: all 0.3s ease-out;
    transition-delay: 0.7s;
}


/*Keyframes*/
@keyframes glitch1 {
  0% {
    transform: none;
    opacity: 0.25;
  }
  7% {
    transform: translate(-1px, -2px);
    opacity: 1;
  }
  10% {
    transform: none;
    opacity: 0.25;
  }
  27% {
    transform: none;
    opacity: 1;
  }
  30% {
    transform: translate(-2px, -1px);
    opacity: 0.5;
  }
  35% {
    transform: none;
    opacity: 0.25;
  }
  52% {
    transform: none;
    opacity: 0.25;
  }
  55% {
    transform: translate(-2px, -1px);
    opacity: 1;
  }
  50% {
    transform: none;
    opacity: 0.25;
  }
  72% {
    transform: none;
    opacity: 1;
  }
  75% {
    transform: translate(-1px, -2px);
    opacity: 0.5;
  }
  80% {
    transform: none;
    opacity: 0.25;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}


/* スマホ */
@media (max-width: 767px) {
    .u-pc{
        display: none;
    }
    .nav {
        flex-direction: column;
        justify-content: left;
    }

    .u-fon1 {
    font-size: 2em;
    }

    .u-fon2 {
        font-size: 1.5em;
    }

    .u-fon3 {
        font-size: calc(9em / 8);
    }

    .u-fon4 {
        font-size: 1em;
    }

    .u-fon5 {
        font-size: calc(7em / 8);
    }

    .u-fon6 {
        font-size: calc(3em / 4);
    }

    .br-sp{
        display: block;
    }

    .inner {
        border: 10px solid var(--accent-color);
    }
}