#mainVisual {
  width: 100vw;
  position: relative;
}

#mainVisual img {
  width: 100%;
}

#main {
  max-width: 90%;
}

.text {
  position: absolute;
  bottom: 30px;
  right: 40px;
  z-index: 2;
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #fff;
  font-size: clamp(16px, 10vw, 80px);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 10px;
  text-shadow: 0px 0px 5px #ffffff91;
  font-family: "Jost", sans-serif;
  font-weight: 400;
  letter-spacing: 0.3rem;
  width: calc(100% - 60px);
}

.text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(269deg, #000000ab, transparent);
  z-index: -1;
  pointer-events: none;

  /* アニメーションの追加 */
  transform: scaleX(0);
  transform-origin: right;
  animation: bgSlideIn 1.5s ease-out forwards;
}

/* アニメーション定義 */
@keyframes bgSlideIn {
  to {
    transform: scaleX(1);
  }
}

/* 各文字の初期状態 */
.char {
  display: inline-block;
  transform: translateY(var(--y, 110%));
  opacity: 0;
  filter: blur(10px); /* ← より強いぼかし */
  transition:
    transform 0.8s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.8s ease,
    filter 1.2s ease; /* ← フィルターはやや長めにすると自然 */
  transition-delay: calc(0.1s * var(--char-index));
}

.text.is-active .char {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

.main {
  max-width: 1200px;
  margin: auto;
}

.main p {
  font-size: 1.1rem;
  ont-family
Specifies a prioritized list of font family names or generic family names. A user agent iterates through the list of family names until it matches an available font that contains a glyph for the character to be rendered.
Learn more
Don't show: "Jost", sans-serif;';
  ont-family
Specifies a prioritized list of font family names or generic family names. A user agent iterates through the list of family names until it matches an available font that contains a glyph for the character to be rendered.
Learn more
Don't show: "Jost", sans-serif;';
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  /* border-left: 4px solid #00b6a8; */
  padding-left: 10px;
  color: #333;
  letter-spacing: 0.2rem;
  font-family: "Jost", sans-serif;
  font-weight: 600;
}

h2.jp {
  font-size: 1.5rem;
  letter-spacing: normal;
  text-align: center;
  position: relative;
  padding: 0 0 20px 0;
  font-family: 'Zen Kaku Gothic New';
}

h2.jp:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: #333;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

p {
  line-height: 1.8;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px;
  border: 1px solid #ccc;
}

th {
  background-color: #ebebeb;
  width: 30%;
  text-align: left;
}

#work-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 50px auto;
}

.work-item {
  width: 100%;
}

.work-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.work-item a {
  text-decoration: none;
  color: #333;
}

.work-item h3 {
  line-height: 2rem;
  border-bottom: 1px solid;
  padding: 5px;
  font-size: 1.1rem;
}

.work-item p {
  text-align: right;
}

#pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#pagination a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .work-item {
    width: 100%;
  }
  #work-items {
    grid-template-columns: repeat(1, 1fr);
  }
}