#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;
}

#concept .logo {
  margin: 50px auto auto;
  width: 120px;
}

#concept .connect {
  position: relative;
  padding: 20px 0 50px;
}

#concept .connect img {
  position: absolute;
  top: 100px;
  left: 50%;
  width: 40vw;
  rotate: -8deg;
  z-index: -1;
  opacity: 0.6;
  max-width: 400px;
}

#concept .logo img {
  width: 100%;
}

#concept h3 {
  text-align: center;
  margin: 30px auto;
  font-size: 1.5rem;
}

#concept h3 span {
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
}

.cnt {
  max-width: 1000px;
  margin: 50px auto;
}

h4 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-bottom: 1px dashed #8d8d8d;
  padding-bottom: 5px;
}

#value li {
  list-style: none;
  position: relative;
  margin: 20px auto;
  font-size: 1.1rem;
}

#value li strong {
  font-size: 1.3rem;
  line-height: 4rem;
}

#value li:before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 60px;
  height: 60px;
  background: #f9ee4096;
  border-radius: 50%;
  top: 0;
  left: 0;
}

.concept-carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.concept-images {
  display: flex;
  gap: 10px;
  transition: transform 0.1s linear;
}

.concept-images img {
  width: 33%; /* 画像4枚分表示 */
  height: auto;
  flex-shrink: 0;
}

.flex {
  display: flex;
  gap: 20px;
  align-items: center;
}

#greeting .cnt:before {
  position: relative;
  display: block;
  content: "";
  background: linear-gradient(to right, #797979 30%, #ddd 30%);
  height: 3px;
  width: 100%;
  margin-bottom: 40px;
}

#greeting .cnt:nth-child(2):before {
  background: linear-gradient(to right, #ddd 70%, #797979 70%);
}

.img_area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.img_area img {
  max-width: 200px;
}

.img_area p {
  font-family: "Jost", sans-serif;
  font-size: 2rem;
  font-weight: 600;
}

.txt_area p.small {
  font-size: 0.9rem
}

.txt_area p.name {
  font-size: 1.4rem;
  line-height: 3rem;
}

.txt_area p span.en {
  color: #c7c7c7;
  font-family: "Jost", sans-serif;
  font-size: 1.1rem;
}

.message.title {
  font-size: 1.2rem !important;
  line-height: 2.5rem;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
}

.message {
  font-size: 1rem !important;
}

#concept,
#mission,
#value,
#company,
#greeting    {
  scroll-margin-top: 150px;
}

@media (max-width: 768px) {
  .text {
    right: 20px;
    font-size: 2.4rem;
  }

  .concept-images img {
    width: 55%;
  }

  #mainVisual {
    width: auto;
    height: 300px;
    overflow: hidden;
  }

  #mainVisual img {
    width: auto;
    height: 100%;
    object-fit: cover;
  }

  #concept .connect img {
    width: 90%;
    left: auto;
    right: 0;
  }

  .flex {
    flex-direction: column;
  }
  
  body {
    margin-bottom: 75px;
  }
}