@charset "UTF-8";

/* ===== Variables ===== */
:root {
  /* ===== Color ===== */
  --color-text-primary: rgba(28, 27, 26, .8);
  --color-text-secondary: rgba(186, 181, 175, .8);
  --color-text-accent: rgba(255, 108, 60, .8);

  --color-bg-primary: #EDE9E3;
  --color-bg-secondary: #BAB5AF;

  --color-accent: #FF6C3C;
  --color-border: rgba(28, 27, 26, .04);

  --color-white: #FFF;

  /* ===== Typography ===== */
  --font-family-base: "Poppins", "LINE Seed JP", sans-serif;

  --font-size-base: 14px;

  @media (max-width: 1023px) {
    --font-size-base: 13px;
  }

  @media (max-width: 767px) {
    --font-size-base: 12px;
  }

  --line-height-base: 1.5;
  --line-height-heading: 1.7;

  --letter-spacing-base: 0.02em;

  /* ===== Motion ===== */
  --duration-fast: DURATION_FAST;
  --duration-base: DURATION_BASE;
  --duration-slow: DURATION_SLOW;

  --ease-default: EASE_DEFAULT;
  --ease-in-out: EASE_IN_OUT;
}

/* ===== Base / Reset ===== */
/* box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* remove default margin */
html,
body {
  margin: 0;
  padding: 0;
}

/* improve text rendering */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* body defaults */
body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-family-base);
  font-feature-settings: "palt";
  letter-spacing: var(--letter-spacing-base);
  line-break: strict;
  line-height: var(--line-height-base);
  min-height: 100vh;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* images & media */
img,
picture,
video,
canvas,
svg {
  display: block;
  height: auto;
  max-width: 100%;
}

/* remove built-in form typography */
input,
button,
textarea,
select {
  font: inherit;
}

/* button reset */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* anchor defaults */
a {
  color: inherit;
  text-decoration: none;
}

/* list reset */
ul,
ol,
dl,
dt,
dd {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: inherit;
}

/* paragraphs */
p {
  margin: 0;
}

/* reduce motion (accessibility) */
@media (prefers-reduced-motion: reduce) {

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

/* ===== Layout ===== */
body {
  background-color: var(--color-bg-primary);
  opacity: 1;
  background-image: linear-gradient(var(--color-border) 0.7px, transparent 0.7px), linear-gradient(to right, var(--color-border) 0.7px, var(--color-bg-primary) 0.7px);
  background-size: 14px 14px;
}

.top__inner {
  display: flex;
  height: 100svh;
  justify-content: center;
  overflow-y: hidden;
}

@media (max-width: 1023px) {
  .top__inner {
    height: auto;
    flex-direction: column;
  }
}

.top__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  padding: 0 4% 5% 6%;
  position: relative;
  z-index: 1;
}

@media (max-width: 1180px) {
  .top__content {
    padding: 0 4% 5% 4%;
  }
}

@media (max-width: 1023px) {
  .top__content {
    padding: 96px 24px 80px;
    margin: 0 auto;
    max-width: 80%;
  }
}

@media (max-width: 767px) {
  .top__content {
    padding: 96px 24px 68px;
    max-width: 100%;
  }
}

.top__content-title {
  font-size: 56px;
}

@media (max-width: 1180px) {
  .top__content-title {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .top__content-title {
    font-size: 42px;
    text-align: center;
  }
}

.top__content-title span {
  font-family: "otta-pe", sans-serif;
  font-size: 56px;
  font-style: italic;
  font-weight: 400;
  margin: 0 10px 0 -4px;
}

@media (max-width: 1180px) {
  .top__content-title span {
    font-size: 48px;
    margin: 0 6px 0 -2px;
  }
}

@media (max-width: 767px) {
  .top__content-title span {
    font-size: 42px;
    margin: 0 6px 0 0;
  }
}

.top__content-title+.top__content-title {
  font-size: 54px;
  margin: -12px 0 0;
}

@media (max-width: 1180px) {
  .top__content-title+.top__content-title {
    font-size: 46px;
  }
}

@media (max-width: 767px) {
  .top__content-title+.top__content-title {
    font-size: 40px;
  }
}

.top__content-paragraph {
  font-size: var(--font-size-base);
  line-height: var(--line-height-heading);
  margin: 20px 0 0;
  max-width: 460px;
  padding: 0 0 0 4px;
}

@media (max-width: 1023px) {
  .top__content-paragraph {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .top__content-paragraph {
    margin: 16px 0 0;
  }
}

.top__tag-group {
  margin: 52px 0 0;
  position: relative;
}

@media (max-width: 1023px) {
  .top__tag-group {
    margin: 42px 0 0;
  }
}

@media (max-width: 767px) {
  .top__tag-group {
    margin: 28px 0 0;
  }
}

.top__tag-group-heading {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  font-weight: 300;
  line-height: var(--line-height-heading);
  padding: 0 0 0 4px;
}

@media (max-width: 767px) {
  .top__tag-group-heading {
    padding: 0;
    text-align: center;
  }
}

.top__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

@media (max-width: 767px) {
  .top__tag-list {
    gap: 8px 6px;
    margin: 8px 0 0;
  }
}

.top__view-all {
  display: inline-block;
  position: absolute;
  bottom: -28px;
  right: -22px;
  width: 134px;
  transform: rotate(-3deg);
}

@media (max-width: 1023px) {
  .top__view-all {
    bottom: -24px;
    width: 120px;
  }
}

@media (max-width: 767px) {
  .top__view-all {
    right: -14px;
    bottom: -24px;
  }
}

.top__view-all img {
  display: block;
  transform-origin: center;
}

.top__view-all.is-hover img {
  animation: shake-hard 0.35s linear infinite;
}

@keyframes wobble {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  7% {
    transform: translate(-1px, 1px) rotate(-1deg);
  }

  13% {
    transform: translate(1px, -1px) rotate(1deg);
  }

  28% {
    transform: translate(-1px, 0) rotate(-0.5deg);
  }

  31% {
    transform: translate(0, 0) rotate(0deg);
  }

  55% {
    transform: translate(1px, 1px) rotate(0.8deg);
  }

  62% {
    transform: translate(-1px, -1px) rotate(-0.8deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes shake-hard {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  10% {
    transform: translate(-2px, 1px) rotate(-1deg);
  }

  20% {
    transform: translate(2px, -1px) rotate(1deg);
  }

  30% {
    transform: translate(-2px, -1px) rotate(-1deg);
  }

  40% {
    transform: translate(2px, 1px) rotate(1deg);
  }

  50% {
    transform: translate(-1px, 1px) rotate(-0.5deg);
  }

  60% {
    transform: translate(1px, -1px) rotate(0.5deg);
  }

  70% {
    transform: translate(-1px, 0) rotate(-0.5deg);
  }

  80% {
    transform: translate(1px, 1px) rotate(0.5deg);
  }

  90% {
    transform: translate(-1px, -1px) rotate(-0.5deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.top__gallery {
  display: flex;
  gap: 12px;
  height: 100%;
  overflow: hidden;
  padding: 0 24px 0 0;
}

@media (max-width: 1023px) {
  .top__gallery {
    flex-direction: column;
    padding: 0;
  }
}

.top__splide {
  height: 100%;
}

.top__splide-track {
  height: 100%;
}

.top__splide-list {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1023px) {
  .top__splide-list {
    display: flex;
    flex-direction: row;
  }
}

.top__splide-slide {
  width: 340px;
  height: auto !important;
}

.works {
  padding: 120px 24px 24px;
}

@media (max-width: 767px) {
  .works {
    padding: 96px 24px 24px;
  }
}

.works__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.works__heading {
  align-items: center;
  display: flex;
  gap: 8px 36px;
  margin: 0 auto;
  max-width: 90%;
}

@media (max-width: 767px) {
  .works__heading {
    align-items: flex-start;
    flex-direction: column;
    max-width: 100%;
  }
}

.works__title {
  font-size: 48px;
  text-wrap: nowrap;
}

@media (max-width: 767px) {
  .works__title {
    font-size: 40px;
  }
}

.works__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
}

.works__body {
  margin: 32px auto 0;
}

@media (max-width: 767px) {
  .works__body {
    margin: 40px auto 0;
  }
}

.works__card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 12px;
  justify-content: center;
}

@media (max-width: 767px) {
  .works__card-list {
    gap: 8px;
  }
}

.works__card {
  flex: 0 0 340px;
  will-change: transform, opacity;
}

.works__card.is-hidden {
  display: none;
}

/* ===== Components ===== */
.c-header {
  pointer-events: none;
  position: fixed;
  width: 100%;
  z-index: 999;
}

.c-header__inner {
  align-items: center;
  display: flex;
  font-size: var(--font-size-base);
  justify-content: space-between;
  padding: 36px 48px;
}

@media (max-width: 1023px) {
  .c-header__inner {
    padding: 36px 40px;
  }
}

@media (max-width: 767px) {
  .c-header__inner {
    padding: 24px 24px 24px 26px;
  }
}

.c-header__logo {
  mix-blend-mode: exclusion;
  pointer-events: auto;
}

.c-header__g-navi {
  align-items: center;
  display: flex;
  gap: 40px;
  pointer-events: auto;
}

@media (max-width: 767px) {
  .c-header__g-navi {
    gap: 16px;
  }
}

.c-tag {
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  cursor: pointer;
  color: var(--color-text-accent);
  font-size: 13px;
  padding: 2px 12px;
  transition: .2s;
  width: fit-content;
}

.c-tag:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.c-tag.is-active {
  background: var(--color-accent);
  color: var(--color-white);
}

.c-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 10px;
  position: relative;
  max-width: 340px;
  width: 25vw;
}

.c-card img {
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.c-card__content {
  position: relative;
}

.c-card__title {
  color: var(--color-text-secondary);
  font-size: 12px;
  margin: 16px 0 0;
  padding: 0 0 8px 6px;
}

.c-card__title p+p {
  margin: 2px 0 0;
}

.c-card__title--blur {
  filter: blur(3px);
}

.c-card__arrow {
  background: url(../assets/arrow.svg) no-repeat center / contain;
  display: block;
  position: absolute;
  bottom: 2px;
  right: -2px;
  width: 26px;
  height: 26px;
}

.c-card__overlay {
  align-items: center;
  background: var(--color-text-primary);
  border-radius: 10px;
  display: flex;
  filter: blur(2px);
  justify-content: center;
  inset: 0;
  opacity: 0;
  padding: 20px 28px;
  position: absolute;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  margin: auto;
  width: 100%;
  height: 100%;
}

.c-card:hover .c-card__overlay,
.c-card.is-active .c-card__overlay {
  filter: blur(0px);
  opacity: 1;
  pointer-events: auto;
}

.c-card__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.c-card__info-row {
  align-items: center;
  display: flex;
  gap: 4px;
  padding: 0 0 0 8px;
}

.c-card__info-row dt {
  color: rgba(255, 255, 255, .4);
  font-size: 10px;
  width: 80px;
}

.c-card__info-row dd {
  color: rgba(255, 255, 255, .9);
  flex: 1;
  font-size: 10px;
}

.c-footer {
  pointer-events: none;
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 999;
}

@media (max-width: 1023px) {
  .c-footer {
    position: relative;
  }
}

.c-footer__inner {
  padding: 40px 48px;
}

@media (max-width: 1023px) {
  .c-footer__inner {
    display: flex;
    justify-content: center;
    padding: 24px 16px;
  }
}

.c-footer__list {
  align-items: center;
  display: flex;
  gap: 18px;
  pointer-events: auto;
}

@media (max-width: 1023px) {
  .c-footer__list {
    gap: 12px;
  }
}

.c-footer__list-item {}

.c-footer__list-item-link {
  color: var(--color-text-primary);
  font-size: 12px;
}

.c-footer__list-dot {
  background: var(--color-bg-secondary);
  border-radius: 3px;
  display: inline-block;
  width: 3px;
  height: 3px;
}

/* ===== Utilities ===== */
.text-animation {
  color: transparent;

  background: linear-gradient(to top,
      var(--color-accent) 50%,
      var(--color-text-primary) 50%);

  background-size: 100% 200%;
  background-position: 0 0;

  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  transition: background-position .3s;
}

.text-animation:hover {
  background-position: 0 100%;
}

.loading {
  position: fixed;
  inset: 0;
  background: #FF6C3C;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}

.loading__dots {
  display: flex;
  gap: 12px;
}

.loading__dots span {
  width: 6px;
  height: 6px;
  background: var(--color-white);
  border-radius: 50%;
  opacity: 0.2;
  animation: dotBlink 1.4s infinite ease-in-out both;
}

.loading__dots span:nth-child(1) {
  animation-delay: 0s;
}

.loading__dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading__dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBlink {
  0% {
    opacity: 0.2;
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0.2;
  }
}

/* =========================
   Custom Cursor
========================= */

@media (pointer: fine) {

  body,
  a,
  button,
  .c-tag,
  .works__card {
    cursor: none;
  }

  .cursor {
    --cursor-scale: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(255, 108, 60, 0.4);
    pointer-events: none;
    z-index: 10000;

    transform:
      translate(-50%, -50%) translate3d(var(--cursor-x, 0), var(--cursor-y, 0), 0) scale(var(--cursor-scale));

    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
  }

  .cursor.is-hover {
    --cursor-scale: 1.5;
  }

  .cursor.is-focus {
    --cursor-scale: 1.8;
  }
}

/* =========================
   Login Modal
========================= */
.hidden {
  display: none;
}

.modal {
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity .3s ease, visibility .3s ease;
  visibility: hidden;
  z-index: 9999;
}

.modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 26, .6);
  backdrop-filter: blur(6px);
}

.modal__content {
  align-items: center;
  background: var(--color-white);
  border-radius: 10px;
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
  padding: 32px 32px 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: fit-content;
}

.modal__content input {
  background: rgba(186, 181, 175, .12);
  border: none;
  border-bottom: 1px solid rgba(186, 181, 175, .4);
  font-family: "otta-pe", sans-serif;
  font-size: 28px;
  margin: 20px auto 0;
  padding: 8px 16px;
  text-align: center;
  width: 100%;
  height: 68px;
}

.modal__content input:focus {
  outline: none;
  box-shadow: none;
}

.modal__content input:focus-visible {
  outline: none;
}

.modal__content button {
  font-size: var(--font-size-base);
  transition: .3s;
}

.modal__content button:hover {
  opacity: .6;
}

.modal__submit {
  background: var(--color-accent);
  color: var(--color-white);
  margin: 20px auto 0;
  padding: 12px;
  width: 100%;
}

.modal__close {
  color: var(--color-bg-secondary);
  margin: 12px auto 0;
}

.modal__text {
  color: var(--color-text-secondary);
  font-size: var(--font-size-base);
  text-align: center;
}

.modal__text-link {
  color: var(--color-accent);
  transition: .3s;
}

.modal__text-link:hover {
  opacity: .6;
}

.error {
  color: var(--color-accent);
  font-size: 12px;
  margin-top: 12px;
}


/* ===== Media Queries ===== */
/* --- SP --- */
@media (max-width: 767px) {}

/* --- Tablet --- */
@media (min-width: 768px) and (max-width: 1023px) {}

/* --- PC --- */
@media (min-width: 1024px) {}
