@charset "UTF-8";
/* 
works
---------------------------------------- */
.works {
  padding: 80px 0 120px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 0 auto;
}

/* ====================
tag
==================== */
.works__tag {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em 1em;
  font-weight: 500;
}

.works__tag input[type="radio"] {
  display: none;
}

.tag__btn {
  display: grid;
  place-items: center;
  width: calc((100% - 1em * 2) / 3);
  min-width: 100px;
  background-color: var(--color-white);
  color: var(--main-color-pink);
  border: 1px solid var(--main-color-pink);
  padding: 0.2em 0.6em;
  border-radius: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tag__btn:hover {
  background-color: #D8A39D3D;
}

.works__tag input[type="radio"]:checked + .tag__btn {
  background-color: var(--main-color-pink);
  color: var(--color-white);
}

.works__list li {
  display: none;
}

.works:has(#all:checked) .works__list li,
.works:has(#website:checked) .works__list .website,
.works:has(#banner:checked) .works__list .banner {
  display: block;
}

/* 
case
---------------------------------------- */
.case__intro {
  padding-top: 122px;
}

.case__intro h1 {
  font-size: 4rem;
  font-weight: 500;
  line-height: 1.3;
}

.case__intro hgroup p {
  display: block;
  width: fit-content;
  color: var(--color-white);
  font-family: var(--font-english);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1;
  background-color: var(--main-color-pink);
  margin-bottom: 0.5em;
  padding: 0.4em 0.6em;
  border-radius: 12px;
}

.fiction .case__intro h1::after {
  content: '(架空)';
  font-size: 2.4rem;
  font-family: var(--font-title);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-black);
  margin-left: 0.5em;
}

.case__intro figure img {
  margin-top: 56px;
}

.case__txt {
  max-width: 840px;
  margin: 48px auto 0;
}

.btn--link {
  max-width: 840px;
  margin: 40px auto 0;
  text-align: end;
}

.btn--link span::after {
  width: 24px;
  height: 24px;
  background-image: url(../images/common/link.svg);
}

.btn--link a:hover span:after {
  background-image: url(../images/common/link-hover.svg);
}

/*====================
case__detail
※"sample"はこの下
==================== */
.case__detail {
  margin: 64px 0 80px;
}

.case__detail table {
  width: 100%;
}

.case__detail tr {
border-top: 1px dashed var(--color-black);
}

.case__detail tr:last-of-type {
  border-bottom: 1px dashed var(--color-black);
}

.case__detail th, .case__detail td {
  display: block;
  padding: 0 0.5em;
}

.case__detail th {
  color: var(--main-color-pink);
  font-size: 1.8rem;
  font-weight: 500;
  width: 100%;
  min-width: calc(5.5em + 48px);
  padding-top: 48px;
  padding-bottom: 0.5em;
}

.case__detail td {
  width: 100%;
  padding-bottom: 48px;
}

.case__detail li {
  line-height: 1.3;
}

.case__detail li + li {
  padding-top: 0.5em;
}

.td__list li {
  display: flex;
  vertical-align: top;
}

.td__list li::before {
  content: '・';
  width: 1em;
  height: 1em;
}

.td__table li {
  display: flex;
  gap: 2em;
}

.td__header {
  min-width: 8em;
}

/*====================
sample
==================== */
.sample {
  background-color: var(--bg-color-pink);
  background-position: center top;
  padding: 80px 0;
}

/* banner */
.sample--banner {
  margin: 80px 0;
}
.sample--banner img {
  display: block;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 10px 10px 40px #3A3A3A40;
}


/* Web site */
.sample--web-site hgroup {
  text-align: center;
}

.sample--web-site ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  margin: 0 auto;
}

.sample--web-site li {
  position: relative;
  margin: 0 16px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(2, auto);
  padding-left: 24px;
}

.sample__pc {
  width: 100%;
}

.sample--web-site li h3 {
  grid-column: 1 / 2;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
}

.sample--web-site li h3::before,
.sample--web-site li h3::after {
  content: '';
  display: block;
  width: 1px;
  height: 20px;
  background-color: var(--color-black);
  border-radius: 1px;
  margin-top: 2px;
}

.sample--web-site li h3::before {
  transform: rotate(-25deg);
}

.sample--web-site li h3::after {
  transform: rotate(25deg);
}

.sample--web-site li figure {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  background-color: var(--color-white);
  border: 8px solid var(--color-black);
  overflow-x: hidden;
  overflow-y: scroll;
}

.sample__sp figure {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 9 / 18;
  border-radius: 25px;
}

.sample__pc figure {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 15px;
}

.sample__scroll {
  grid-row: 2 / 3;
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
}

.sampleScroll__txt {
  font-family: var(--font-english);
  line-height: 1;
  display: inline-block;
  min-height: 6em;
  color: var(--main-color-pink);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
}

.sampleScroll__bar {
  height: calc(100% - 5em);
  position: relative;
}

.sampleScroll__bar::before {
  content: "";
  display: block;
  width: 1px;
  height: 100%;
  background: var(--main-color-pink);
  border-radius: 1px;
}

.sampleScroll__bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--main-color-pink);
  animation: circle-move 4s ease-in-out infinite,
  circle-opa 4s ease-out infinite;
}

@keyframes circle-move {
  0% {
    top: 0;
    transform: translate(-50%, 0);
  }
  100% {
    top: 100%;
    transform: translate(-50%, -100%);
  }
}

@keyframes circle-opa {
  0% {
  opacity: 0;
  }
  50% {
  opacity: 1;
  }
  80% {
  opacity: 0.9;
  }
  100% {
  opacity: 0;
  }
}

/*====================
back
==================== */
.back {
  margin-top: 80px;
  padding-bottom: 40px;
}

.back .btn {
  margin-top: 0;
}

.back .btn a {
  flex-direction: row-reverse;
}

.back .btn span::after {
  transform: scale(-1, 1);
}

/*  PC 
============================================= */
@media screen and (min-width: 769px) {
  /* 
  works
  ---------------------------------------- */
  .works {
    padding: 100px 0;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px min(5.6%, 56px);
  }
      
  /* ====================
  tag
  ==================== */
  .works__tag {
    flex: 0 0 12.8%;
    min-width: 120px;
    margin: 16px 0;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 40px;
  }

  .tag__btn {
    width: auto;
  }

  /* ====================
  works__list
  ==================== */
  .works__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px min(4.9%, 48px);
  }

  /* 
  case
  ---------------------------------------- */
  /*====================
  case__detail PC
  ※"sample"はこの下
  ==================== */
  .case__detail th, .case__detail td {
    display: table-cell;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .case__detail th {
    color: var(--main-color-pink);
    font-size: 1.8rem;
    width: auto;
    min-width: calc(5.5em + 48px);
    padding-left: 0.5em;
    padding-right: 48px;
  }

  .case__detail td {
    width: 75%;
    padding-right: 0.5em;
  }

  .td__table li {
    gap: 3em;
  }

  /*====================
  sample PC
  ==================== */
  .sample {
    background-size: contain;
  }

  /* Web site */
  .sample--web-site ul {
    max-width: 1120px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
  }
      
  .sample__pc {
    width: auto;
  }

  .sample--web-site li {
    margin: 0;
    padding: 0;
  }
      
  .sample--web-site li figure {
    width: auto;
    min-width: auto;
    height: clamp(344px, 36vw, 430px);
    border-radius: 25px;
  }
}

