/* ===========================================================
   TopHero — 真のトップヒーロー
   一文の見出し →「伏す灯り」から ご依頼件数NO.1 が ふわ〜っと浮かぶ
   とにかくシンプル。3 variants: a=中央 / b=左右 / c=縦書き
   =========================================================== */
.thero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; background: #000; isolation: isolate;
}
.thero-video {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.thero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.28) 36%, rgba(0,0,0,.42) 68%, rgba(0,0,0,.82) 100%),
    radial-gradient(120% 90% at 50% 46%, rgba(0,0,0,0) 38%, rgba(0,0,0,.42) 100%);
}
.thero-inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(5.5rem, 12vh, 8rem); }

/* ---- 見出し（一文・控えめ。主役はバナー） ---- */
.thero-head {
  font-family: var(--mincho); font-weight: 600; color: #F3EFE6; letter-spacing: .04em;
  line-height: 1.75; font-size: clamp(1.5rem, 3.2vw, 2.5rem); margin: 0;
  text-wrap: balance;
}
.thero-head > span { display: block; }
.thero-head .th-pop { display: inline; color: #E9CB82; font-weight: 700; }
.thero-head .th-line { min-height: 1.75em; }
/* タイプライターのキャレット */
.th-caret {
  display: inline-block; width: .06em; height: 1.05em; margin-left: .04em;
  vertical-align: -0.12em; background: #E9CB82;
  animation: theroCaret 1s steps(1) infinite;
}
@keyframes theroCaret { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

/* ---- 伏す灯り → NO.1 バナー ---- */
.thero-lamp { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.thero-lamp-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 158%; height: 360%; z-index: 0; pointer-events: none; opacity: 1;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
    rgba(255,248,233,.98) 0%, rgba(255,240,210,.86) 26%,
    rgba(247,224,170,.34) 52%, rgba(247,224,170,0) 74%);
  filter: blur(7px);
}
.thero-banner-img {
  position: relative; z-index: 1; display: block; height: auto;
  width: clamp(300px, 44vw, 540px);
}

/* ---- CTA（小さく・控えめ） ---- */
.thero-cta {
  display: inline-flex; align-items: center; gap: .5em; font-family: var(--gothic);
  font-weight: 700; font-size: clamp(.92rem, 1.4vw, 1.04rem); color: #F4E7C4;
  padding: .55em 1.3em; border-radius: 999px; border: 1px solid rgba(244,231,196,.5);
  background: rgba(255,255,255,.05); transition: color .25s, border-color .25s, background .25s, transform .25s;
}
.thero-cta svg { width: 1.05em; height: 1.05em; transition: transform .25s; }
.thero-cta:hover { color: #fff; border-color: rgba(244,231,196,.9); background: rgba(255,255,255,.1); transform: translateY(-1px); }
.thero-cta:hover svg { transform: translateX(4px); }

/* ---- scroll cue ---- */
.thero-cue {
  position: absolute; left: 50%; bottom: clamp(1rem, 3vh, 2rem); transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.82); font-family: var(--gothic); font-weight: 700;
  font-size: .72rem; letter-spacing: .22em; text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.thero-cue:hover { color: #fff; }
.thero-cue-chev {
  width: 13px; height: 13px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); animation: theroCue 1.8s ease-in-out infinite;
}
@keyframes theroCue {
  0%,100% { transform: rotate(45deg) translate(0,0); opacity: .5; }
  50%     { transform: rotate(45deg) translate(3px,3px); opacity: 1; }
}

/* ---- 登場演出: タイプ完了で .is-in が付与され、灯りとともにズームイン ---- */
.thero-banner-img { opacity: 0; transform: scale(.6); }
.thero-lamp-glow  { opacity: 0; }
.thero-cta        { opacity: 0; }

@keyframes lampBloom   { from { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
                         to   { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes bannerEmerge{ from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes theroFloat  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ctaIn       { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.thero-lamp.is-in .thero-lamp-glow  { animation: lampBloom 1.9s cubic-bezier(.22,.7,.25,1) .05s both; }
.thero-lamp.is-in .thero-banner-img { animation: bannerEmerge 1.6s cubic-bezier(.18,.74,.25,1) .15s both,
                                                  theroFloat 6s ease-in-out 1.9s infinite; }
.thero-cta.is-in { animation: ctaIn .8s ease .5s both; }

@media (prefers-reduced-motion: reduce) {
  .thero-banner-img { opacity: 1; transform: none; }
  .thero-lamp-glow  { opacity: 1; }
  .thero-cta        { opacity: 1; }
}

/* ---- Variant A: 中央 ---- */
.thero--a .thero-inner { text-align: center; }
.thero--a .thero-col {
  max-width: 60rem; margin-inline: auto; display: flex; flex-direction: column;
  align-items: center; gap: clamp(1.6rem, 4vw, 2.8rem);
}

/* ---- Variant B: 左右 ---- */
.thero--b .thero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.thero--b .thero-left {
  display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.4rem, 3vw, 2.2rem);
}
.thero--b .thero-right { display: flex; justify-content: center; }
@media (max-width: 860px) {
  .thero--b .thero-grid { grid-template-columns: 1fr; gap: clamp(1.8rem,5vw,2.6rem); }
  .thero--b .thero-right { justify-content: flex-start; }
}

/* ---- Variant C: 縦書き明朝 ---- */
.thero--c .thero-c-stage { position: relative; min-height: min(72vh, 620px); }
.thero--c .thero-vhead {
  writing-mode: vertical-rl; position: absolute; top: 0; right: 0; height: 100%; margin: 0;
  font-family: var(--mincho); font-weight: 600; color: #fff; line-height: 2.05; letter-spacing: .12em;
  font-size: clamp(1.1rem, 2.1vw, 1.62rem); text-shadow: 0 2px 18px rgba(0,0,0,.5);
}
.thero--c .thero-vhead > span { display: block; }
.thero--c .thero-c-foot {
  position: absolute; left: 0; bottom: clamp(.5rem, 4vh, 2.5rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1.2rem, 3vw, 2rem);
}
@media (max-width: 768px) {
  .thero--c .thero-c-stage { min-height: 0; display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
  .thero--c .thero-vhead { writing-mode: horizontal-tb; position: static; height: auto; }
  .thero--c .thero-c-foot { position: static; align-items: flex-start; }
}

/* ---- mobile ---- */
@media (max-width: 700px) {
  /* スマホはコンテンツを少し上寄せに */
  .thero { align-items: flex-start; }
  .thero-inner { padding-block: clamp(4.5rem, 16vh, 7rem) 3rem; }
  .thero-head { font-size: clamp(1.3rem, 5.2vw, 1.85rem); line-height: 1.85; }
  .thero-banner-img { width: clamp(260px, 80vw, 380px); }
  .thero-cue span:first-child { display: none; }
}
