/* ==================================================
Studio Colorful v2.0
color-for-you.css
Hero / Filter / Masonry / Modal
================================================== */

/* ==================================================
Hero
================================================== */

.cfy-hero {
  position: relative;
  padding: 200px 6vw 80px;
  overflow: hidden;
}

.cfy-hero::before {
  content: "";
  position: absolute;
  inset: -14% -14% auto auto;
  z-index: -1;
  width: 56vw;
  height: 56vw;
  max-width: 760px;
  max-height: 760px;
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 150, 130, 0.15), transparent 30%),
    radial-gradient(circle at 78% 32%, rgba(150, 190, 255, 0.14), transparent 30%),
    radial-gradient(circle at 50% 82%, rgba(222, 190, 80, 0.13), transparent 32%);
  filter: blur(46px);
  animation: cfyHeroColorMove 24s ease-in-out infinite alternate;
}

@keyframes cfyHeroColorMove {
  0% {
    transform: translate(-2%, -1%) scale(1);
  }

  50% {
    transform: translate(2%, 2%) scale(1.05);
  }

  100% {
    transform: translate(1%, -2%) scale(1.02);
  }
}

.cfy-hero__logo-word {
  top: 70px;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  text-align: center;
  font-size: clamp(90px, 12vw, 240px);
}

.cfy-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}

.cfy-hero__head {
  grid-column: 2 / 11;
}

.cfy-hero__title {
  margin: 14px 0 0;
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.cfy-hero__lead {
  margin-top: 28px;
  max-width: 720px;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: #555;
}


/* ==================================================
Filter Pills
================================================== */

.cfy-filter-section {
  padding: 0 6vw;
}

.cfy-filter {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cfy-filter__pill {
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: #444;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.cfy-filter__pill:hover {
  transform: translateY(-1px);
}

.cfy-filter__pill.is-active {
  background: #191919;
  color: #fff;
  font-weight: 600;
}


/* ==================================================
Masonry Gallery
================================================== */

.cfy-gallery {
  padding: 56px 6vw 170px;
}

.works-grid {
  max-width: 1200px;
  margin: 0 auto;
  column-count: 3;
  column-gap: 14px;
}

.cfy-item {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(20, 20, 20, 0.06);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    box-shadow 0.35s ease;
}

.cfy-item:hover {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(20, 20, 20, 0.12);
}

.cfy-item__photo {
  position: relative;
  display: block;
  width: 100%;
}

.cfy-item__photo img {
  display: block;
  width: 100%;
  height: auto;
}

.cfy-item__expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #777;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.cfy-item__expand svg {
  width: 14px;
  height: 14px;
}

.cfy-item:hover .cfy-item__expand {
  background: rgba(255, 255, 255, 0.98);
  transform: scale(1.08);
}

.cfy-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 22px;
}

.cfy-item__number {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  opacity: 0.4;
}

.cfy-item__tag {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #444;
  background: rgba(0, 0, 0, 0.05);
}

.cfy-item__title {
  display: block;
  margin: 12px 0 22px;
  padding: 0 22px;
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.cfy-empty {
  margin: 40px auto 0;
  max-width: 1200px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #777;
}


/* ==================================================
Work Modal
================================================== */

.cfy-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.cfy-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.cfy-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(6px);
}

.cfy-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: 88vh;
  overflow-y: auto;
  background: #fdfcf9;
  border-radius: 22px;
  padding: 20px;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.cfy-modal.is-open .cfy-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cfy-modal__close {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  line-height: 1;
  color: #222;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cfy-modal__close:hover {
  background: #fff;
}

.cfy-modal__photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  border-radius: 16px;
  background: #eeece6;
  overflow: hidden;
}

.cfy-modal__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cfy-modal__photo-count {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.cfy-modal__photo-count[hidden] {
  display: none;
}

.cfy-modal__nav {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  line-height: 1;
  color: #222;
  cursor: pointer;
  transition: background 0.25s ease;
}

.cfy-modal__nav:hover {
  background: #fff;
}

.cfy-modal__nav--prev {
  left: 16px;
}

.cfy-modal__nav--next {
  right: 16px;
}

.cfy-modal__nav[hidden] {
  display: none;
}

.cfy-modal__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.cfy-modal__dots[hidden] {
  display: none;
}

.cfy-modal__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 0.25s ease;
}

.cfy-modal__dot.is-active {
  background: rgba(0, 0, 0, 0.55);
}

.cfy-modal__info {
  padding: 26px 10px 10px;
}

.cfy-modal__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cfy-modal__number {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  opacity: 0.4;
}

.cfy-modal__tag {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #444;
  background: rgba(0, 0, 0, 0.05);
}

.cfy-modal__title {
  margin: 16px 0 0;
  font-family: "LINE Seed JP", "Noto Sans JP", sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.02em;
}

.cfy-modal__desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #555;
}


/* ==================================================
Responsive / Tablet
================================================== */

@media (max-width: 1024px) {
  .cfy-hero {
    padding: 160px 28px 70px;
  }

  .cfy-hero__head {
    grid-column: 1 / 13;
  }

  .cfy-filter-section {
    padding: 0 28px;
  }

  .cfy-gallery {
    padding: 48px 28px 130px;
  }

  .works-grid {
    column-count: 2;
  }
}


/* ==================================================
Responsive / Smartphone
================================================== */

@media (max-width: 760px) {
  .cfy-hero {
    padding: 130px 20px 56px;
  }

  .cfy-hero__lead {
    margin-top: 20px;
    font-size: 13.5px;
    line-height: 2;
  }

  .cfy-filter-section {
    padding: 0 20px;
  }

  .cfy-filter {
    gap: 10px;
  }

  .cfy-filter__pill {
    padding: 9px 18px;
    font-size: 13px;
  }

  .cfy-gallery {
    padding: 40px 20px 96px;
  }

  .works-grid {
    column-count: 1;
  }

  .cfy-modal {
    padding: 16px;
  }

  .cfy-modal__panel {
    padding: 16px;
    max-height: 92vh;
  }

  .cfy-modal__photo {
    height: 240px;
  }

  .cfy-modal__close {
    top: 24px;
    right: 24px;
  }
}
