/* ===== トップページ：イントロの動き・About の文（LS STUDIO） ===== */

/* --- イントロ（LS STUDIO / Visual Creative Studio in Kyoto）--- */
.ls-intro .inner { text-align: center; }
.ls-intro-ttl { margin-bottom: 28px; }
.ls-intro-word { display: inline-block; }
.ls-intro-rule {
  display: block;
  position: relative;
  width: 120px;
  height: 1px;
  margin: 0 auto 40px;
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
}
.ls-intro-rule::after {             /* 線の上をゆっくり流れる光 */
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}
.ls-intro-lines .ls-line {
  display: block;
  overflow: hidden;
  padding: .1em 0;
}
.ls-intro-lines .ls-line > span { display: inline-block; }
.ls-intro-lines .ls-line:empty,
.ls-intro-lines .ls-line > span:empty { display: none; }

/* 動き（JS が有効なときだけ。読み込めない環境では最初から表示） */
.ls-anim .ls-intro-word {
  opacity: 0;
  letter-spacing: .55em;
  filter: blur(10px);
  transition: opacity 1.4s ease, letter-spacing 2s cubic-bezier(.16, .84, .24, 1), filter 1.4s ease;
}
.ls-anim .ls-intro-rule {
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(.65, 0, .35, 1) .7s;
}
.ls-anim .ls-intro-lines .ls-line > span {
  transform: translateY(110%);
  opacity: 0;
  transition: transform 1.1s cubic-bezier(.16, .84, .24, 1), opacity 1.1s ease;
}
.ls-anim .ls-intro-lines .ls-line:nth-child(1) > span { transition-delay: 1.1s; }
.ls-anim .ls-intro-lines .ls-line:nth-child(2) > span { transition-delay: 1.3s; }
.ls-anim .ls-intro-lines .ls-line:nth-child(3) > span { transition-delay: 1.5s; }

.ls-intro.is-in .ls-intro-word { opacity: 1; letter-spacing: .1em; filter: blur(0); }
.ls-intro.is-in .ls-intro-rule { transform: scaleX(1); }
.ls-intro.is-in .ls-intro-rule::after { animation: ls-sheen 4.5s ease-in-out 2.2s infinite; }
.ls-intro.is-in .ls-intro-lines .ls-line > span { transform: none; opacity: 1; }

@keyframes ls-sheen {
  0%   { left: -40%; }
  60%  { left: 100%; }
  100% { left: 100%; }
}

/* 動きを減らす設定の人には静止表示 */
@media (prefers-reduced-motion: reduce) {
  .ls-anim .ls-intro-word,
  .ls-anim .ls-intro-rule,
  .ls-anim .ls-intro-lines .ls-line > span {
    opacity: 1; letter-spacing: .1em; filter: none; transform: none; transition: none;
  }
  .ls-intro-rule::after { display: none; }
}

/* --- About の文（英語1文＋日本語1文）--- */
.ls-about-lead .ls-lead-en,
.ls-about-lead .ls-lead-ja { display: block; }
.ls-about-lead .ls-lead-en { margin-bottom: 1.4em; }
.ls-about-lead .ls-lead-ja:empty { display: none; }
.ls-about-lead .ls-lead-en:last-child,
.ls-about-lead .ls-lead-en:has(+ .ls-lead-ja:empty) { margin-bottom: 0; }

@media screen and (max-width: 768px) {
  .ls-intro-rule { width: 80px; margin-bottom: 28px; }
  .ls-anim .ls-intro-word { letter-spacing: .35em; }
  .ls-intro.is-in .ls-intro-word { letter-spacing: .1em; }
}

/* テーマ共通CSSの span{line-height:1} を打ち消す */
.ls-intro-lines .ls-line,
.ls-intro-lines .ls-line > span,
.ls-about-lead .ls-lead-en,
.ls-about-lead .ls-lead-ja { line-height: 2; }
.ls-intro-lines .ls-line { padding: 0; }

/* --- 見出しをロゴ画像に --- */
.ls-intro-logo { line-height: 0; }
.ls-intro-logo img { display: block; width: 200px; height: auto; margin: 0 auto; }
.ls-anim .ls-intro-logo {
  letter-spacing: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, filter 1.4s ease, transform 2s cubic-bezier(.16, .84, .24, 1);
}
.ls-intro.is-in .ls-intro-logo { letter-spacing: 0; transform: none; }
.ls-intro-ttl { margin-bottom: 36px; }
@media screen and (max-width: 768px) {
  .ls-intro-logo img { width: 160px; }
  .ls-anim .ls-intro-logo, .ls-intro.is-in .ls-intro-logo { letter-spacing: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ls-anim .ls-intro-logo { transform: none; }
}
