@charset "UTF-8";

:root {
  --base-font-size: 10px;
  --base-font-color: #1A1A1A;
  --base-bg-color: #FFFFFF;
  --dark-red-color: #E84459;
  --dark-yellow-color: #FFBA00;
  --bright-blue-color: #eefeff;
}

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

body {
  height: 100dvh;
  color: var(--base-font-color);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: var(--base-bg-color);
  background-image: linear-gradient(0deg, transparent calc(100% - 1px), var(--bright-blue-color) calc(100% - 1px)), 
                    linear-gradient(90deg, transparent calc(100% - 1px), var(--bright-blue-color) calc(100% - 1px));
  background-size: 16px 16px;
  background-repeat: repeat;
  overflow: hidden;
}

h1,h2,h3,h4,h5,h6,strong {
  font-weight: 900;
}

header {
  position: fixed;
  top: 64px;
  left: 0px;
  padding-left: 16px;
  border-left: 8px var(--dark-red-color) solid;
}

header h1 {
  font-size: 1rem;
  letter-spacing: .25px;
}

header h1 span {
  font-size: .75rem;
}

#cow-counter {
    position: fixed;
    top: 128px;
    left: 0px;
    padding-left: 16px;
    font-size: .8rem;
    border-left: 8px var(--dark-yellow-color) solid;
}

#cow-stage {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
}

.cow-container {
    position: relative;
    width: 100%;
    height: 80px;
    pointer-events: auto;
}

[data-row="0"] {
    z-index: 10;
    margin-top: 20px;
}

[data-row="1"] {
    z-index: 20;
    margin-top: -10px;
}

[data-row="2"] {
    z-index: 30;
    margin-top: -20px;
}

.cow-sprite {
    position: absolute;
    left: -300px; 
    width: 260px; 
    height: auto;
    cursor: pointer;
    animation-name: walkRight;
    animation-timing-function: linear;
}

[data-row="0"] .cow-sprite {
    transform: scale(0.45);
    transform-origin: bottom left;
    bottom: -10px;
}

[data-row="1"] .cow-sprite {
    transform: scale(0.65);
    transform-origin: bottom left;
    bottom: -15px;
}

[data-row="2"] .cow-sprite {
    transform: scale(0.80);
    transform-origin: bottom left;
    bottom: -20px;
}

@keyframes walkRight {
    0% { right: calc(100% + 300px); }
    100% { left: calc(100% + 300px); } 
}

.smoke-effect {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(24,24,24,.9); /* 薄い白 */
    border-radius: 50%;
    z-index: 1000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: puffOut 0.5s ease-out forwards;
}

.smoke-effect::before,
.smoke-effect::after {
    content: '';
    position: absolute;
    background: rgba(24,24,24,.9);
    border-radius: 50%;
}
.smoke-effect::before {
    width: 45px;
    height: 45px;
    left: -20px;
    top: 10px;
}
.smoke-effect::after {
    width: 40px;
    height: 40px;
    right: -15px;
    top: 5px;
}

@keyframes puffOut {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 1;
        filter: blur(0px);
    }
    50% {
        filter: blur(2px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
        filter: blur(5px);
    }
}

/* footer ----------------------------------------- */
footer {
  position: absolute;
  left: 50%;
  bottom: 72px;
  margin: 0 auto;
  color: var(--base-bg-color);
  transform: translateX(-50%);
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 850px;
  margin: 0 auto;
  color: var(--base-bg-color);
  font-size: .6rem;
}

.footer__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: fit-content;
}

.footer__link a {
  position: relative;
  color: var(--base-bg-color);
  text-decoration: none;
  overflow: visible;
  letter-spacing: .5px;
}

.footer__link a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--base-bg-color);
  transition: width .3s ease, left .3s ease;
}

.footer__link a:hover::after {
  width: 100%;
  left: 0;
}

.footer__link a:not(:hover)::after {
  width: 0;
  left: auto;
  right: 0;
}

.letter {
  overflow-y: hidden;
  color: transparent;
  text-transform: uppercase;
  text-shadow: 0 -1.5em 0 var(--base-bg-color), 0 0 0 var(--base-bg-color);
  transition: text-shadow .2s;
  transition-delay: calc(var(--index) * 0.025s);
}

.text-wrap {
  display: flex;
  gap: 1.6px;
  overflow-y: hidden;
}

.text-wrap:hover .letter {
  text-shadow: 0 0 0 var(--base-bg-color), 0 1.5em 0 var(--base-bg-color);
}

.copyright {
  font-family: "Inter", sans-serif;
	letter-spacing: 1px;
	text-transform: uppercase;
  line-height: 16px;
}

.copyright i {
  font-size: 111%;
  font-style: normal;
  font-weight: 400;
}

.copyright #signature {
	display: inline-block;
	width: 100px;
	height: 30px;
  margin: 16px 0 0 0;
	text-indent: -9999px;
	background: url(../images/signature.png) no-repeat;
	background-size: contain;
  transform: translateY(-8px);
}

.copyright .sp-br {
	display: none;
}

@media only screen and (max-width: 900px) {
  footer {
    position: absolute;
    bottom: 128px;
    width: 100%;
    color: var(--base-bg-color);
  }
  .copyright .sp-br {
    display: inline;
  }
  .footer__container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 32px;
    width: 80%;
    margin: 0 auto;
    color: var(--base-bg-color);
    font-size: .6rem;
  }
}

@media only screen and (max-width: 599px) {
  footer {
    bottom: 48px;
  }
}

#agreement {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 24px 4px;
  color: #1A1A1A;
  font-size: .65rem;
  font-weight: 400;
  background: rgba(255,255,255,.9);
  border-top: #C9C9C9 1px solid;
  z-index: 10001;
}

#agreement__text {
  line-height: 128%;
}

.agreement__btn #agree__button {
  display: inline-block;
  width: 100%;
  padding: 2.5px 10px;
  font-size: 88%;
  color: var(--base-bg-color);
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 1;
  background: var(--dark-red-color);
  border: none;
  border-radius: 3px;
  transition: opacity .25s ease;
}

.agreement__btn #agree__button:hover {
  opacity: .75;
}

@media only screen and (max-width: 900px) {
  #agreement {
    flex-direction: column;
    align-items: flex-end;
    padding: 24px;
  }
  .agreement__btn #agree__button {
    display: block;
    width: 100%;
    padding: 2.5px 24px;
  }
}