@charset "UTF-8";
/* =========================================================
   TOP（front-page.php）
   HERO → RECRUITリード → SERVICE → WORKS → 3バナー → CONTACT
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* PC画像：--hero-pc。未設定時は紺グラデ。オーバーレイはさらに軽め（明るめ） */
  background-image:
    linear-gradient(rgba(0, 0, 0, .05), rgba(0, 0, 0, .16)),
    var(--hero-pc, linear-gradient(135deg, #1a3560, #0d2547 60%, #12305e));
  background-size: cover;
  background-position: center;
  transform: scale(1.15);
  filter: brightness(.3) blur(6px);
}

/* SP：SP用画像 --hero-sp があれば優先、無ければPC画像 */
@media screen and (max-width: 768px) {
  .hero-bg {
    background-image:
      linear-gradient(rgba(0, 0, 0, .12), rgba(0, 0, 0, .28)),
      var(--hero-sp, var(--hero-pc, linear-gradient(135deg, #1a3560, #0d2547 60%, #12305e)));
  }
}

.hero.start .hero-bg {
  animation: heroReveal 2.2s cubic-bezier(.5, 0, .1, 1) forwards;
}

@keyframes heroReveal {
  to { transform: scale(1.05); filter: brightness(1) blur(0); }
}

/* 幕開き後に Ken Burns へ引き継ぐ */
.hero-bg.kb { animation: kenburns 20s ease-in-out infinite alternate; }

@keyframes kenburns {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.16) translate(-2%, -1.5%); }
}

/* 幕 */
.hero-curtain {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 6;
  background: var(--navy-deep);
}

.hero-curtain.top { top: 0; height: 50%; }
.hero-curtain.bot { bottom: 0; height: 50%; }

.hero.start .hero-curtain.top { animation: curtainUp 1.3s cubic-bezier(.7, 0, .2, 1) .1s forwards; }
.hero.start .hero-curtain.bot { animation: curtainDown 1.3s cubic-bezier(.7, 0, .2, 1) .1s forwards; }

@keyframes curtainUp   { to { transform: translateY(-100%); } }
@keyframes curtainDown { to { transform: translateY(100%); } }

.hero-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber);
  z-index: 7;
  box-shadow: 0 0 20px var(--amber);
  opacity: 0;
}

.hero.start .hero-line { animation: lineOut 1.3s ease .1s forwards; }

@keyframes lineOut {
  0%   { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(0); }
}

/* グレイン */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: .07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainmv .6s steps(2) infinite;
}

@keyframes grainmv {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-4%, 3%); }
  100% { transform: translate(3%, -2%); }
}

/* ビネット（映画的な陰影＋下部の可読性グラデ・青みなし） */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 62%, rgba(0, 0, 0, .15) 100%),
    linear-gradient(to top, rgba(0, 0, 0, .2), transparent 54%);
}

/* インセットフレーム（細い白枠＋アンバーの角アクセント） */
.hero-frame {
  position: absolute;
  inset: 22px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .22);
  opacity: 0;
}

.hero.start .hero-frame { animation: heroFade 1.2s ease 1.9s forwards; }

.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--amber);
}

.hero-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* 縦組みのサイドラベル（エディトリアルな装飾） */
.hero-side {
  position: absolute;
  top: 50%;
  right: 36px;
  transform: translateY(-50%);
  z-index: 4;
  writing-mode: vertical-rl;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px;
  letter-spacing: .35em;
  color: rgba(255, 255, 255, .55);
  pointer-events: none;
  opacity: 0;
}

.hero.start .hero-side { animation: heroFade 1.2s ease 2.1s forwards; }

/* 星 */
#hero .stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#hero .stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: .6;
  animation: tw 3s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--pc);
  margin: 0 auto;
  padding: 0 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sky);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 13px;
  letter-spacing: .28em;
  margin-bottom: 24px;
  font-weight: 500;
  opacity: 0;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}

.hero.start .hero-eyebrow { animation: heroFade 1s ease .3s forwards; }

.hero-title {
  color: #fff;
  font-weight: 900;
  font-size: clamp(36px, 5.6vw, 74px);
  line-height: 1.18;
  letter-spacing: .01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .4);
}

/* 見出しは折り返さない */
.hero-title .line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.hero-title .line > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(34px);
}

.hero.start .hero-title .l1 > span { animation: heroUp 1.2s cubic-bezier(.2, .7, .2, 1) .6s forwards; }
.hero.start .hero-title .l2 > span { animation: heroUp 1.2s cubic-bezier(.2, .7, .2, 1) 1s forwards; }

.hero-title .accent {
  background: linear-gradient(120deg, var(--sky), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.hero.start .hero-title .accent { animation: heroGlow 1.6s ease 2.2s forwards; }

@keyframes heroUp   { to { opacity: 1; transform: translateY(0); } }
@keyframes heroFade { to { opacity: 1; } }

@keyframes heroGlow {
  0%   { -webkit-text-fill-color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
  45%  { -webkit-text-fill-color: #eaf7ff; text-shadow: 0 0 26px rgba(77, 184, 232, .9); }
  100% { -webkit-text-fill-color: transparent; text-shadow: 0 4px 30px rgba(0, 0, 0, .4); }
}

.hero-sub {
  color: rgba(255, 255, 255, .9);
  font-size: clamp(15px, 1.7vw, 19px);
  margin-top: 24px;
  max-width: 560px;
  font-weight: 400;
  opacity: 0;
}

.hero.start .hero-sub { animation: heroFade 1.1s ease 1.6s forwards; }

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  opacity: 0;
}

.hero.start .hero-cta { animation: heroFade 1.1s ease 2s forwards; }

.hero-cta .btn { padding: 17px 36px; border-radius: 4px; }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  letter-spacing: .2em;
  z-index: 3;
  text-align: center;
}

.hero-scroll .line {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, .5);
  margin: 8px auto 0;
  position: relative;
  overflow: hidden;
}

.hero-scroll .line::after {
  content: "";
  position: absolute;
  top: -46px;
  left: 0;
  width: 100%;
  height: 46px;
  background: var(--amber);
  animation: scrolldn 2s ease-in-out infinite;
}

@keyframes scrolldn {
  0%        { top: -46px; }
  60%, 100% { top: 46px; }
}


/* =========================================================
   セクション見出し（TOP用）
   ========================================================= */
#front .sec { padding: 110px 40px; }

.sec-head { margin-bottom: 56px; }

.sec-head .en-h {
  font-family: 'Sora', sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -.02em;
}

.sec-head .ja-h {
  display: inline-block;
  margin-top: 10px;
  color: var(--amber);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .12em;
  position: relative;
  padding-left: 34px;
}

.sec-head .ja-h::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--amber);
}

.sec-head.center { text-align: center; }


/* =========================================================
   RECRUIT リード（採用メイン導線）
   ========================================================= */
#recruit-lead {
  padding: 110px 40px;
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--blue));
  color: #fff;
  position: relative;
  overflow: hidden;
}

#recruit-lead::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 184, 232, .25), transparent 70%);
}

.rl-inner {
  position: relative;
  z-index: 2;
  max-width: var(--pc);
  margin: 0 auto;
  display: flex;
  gap: 70px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.rl-copy { flex: 1; min-width: 300px; }

.rl-copy .sec-head .en-h { color: #fff; }

.rl-copy .lead {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
  margin-top: 8px;
}

.rl-copy .lead .amb { color: var(--amber); }

.rl-copy p {
  margin-top: 22px;
  color: rgba(255, 255, 255, .85);
  font-size: 16px;
  font-weight: 400;
  max-width: 520px;
}

.rl-copy .btn { margin-top: 34px; }

.rl-stats {
  flex: 0 0 380px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rl-stats .quirk-head {
  font-family: 'Chakra Petch', sans-serif;
  color: var(--sky);
  font-size: 15px;
  letter-spacing: .12em;
  margin-bottom: 16px;
  font-weight: 600;
}

.quirk {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 8px;
  transition: background .35s, transform .35s;
}

.quirk:hover { background: rgba(255, 255, 255, .05); transform: translateX(4px); }

.quirk .star {
  flex: 0 0 auto;
  color: var(--amber);
  font-size: 9px;
  margin-top: 9px;
  transition: transform .4s;
}

.quirk:hover .star { transform: translateX(3px); }

.quirk .qtext b {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.quirk .qtext span {
  display: block;
  color: rgba(255, 255, 255, .6);
  font-size: 12.5px;
  font-weight: 400;
  margin-top: 2px;
}

.quirk:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, .08);
}


/* =========================================================
   SERVICE
   ========================================================= */
#service.sec { padding: 110px 40px; }

.svc-lead {
  max-width: 640px;
  margin-bottom: 48px;
  color: var(--gray);
  font-size: 16px;
}

.svc-lead .amb { color: var(--amber); font-weight: 700; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.svc-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--navy);
  box-shadow: 0 10px 30px rgba(18, 58, 114, .14);
  transition: transform .4s, box-shadow .4s;
}

.svc-card:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(18, 58, 114, .28); }

.svc-card .bg {
  position: absolute;
  inset: 0;
  background: var(--ph);
  background-size: cover;
  background-position: center;
  transition: transform .6s;
}

.svc-card:hover .bg { transform: scale(1.08); }

.svc-card .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, rgba(10, 28, 61, .9));
}

.svc-body {
  position: relative;
  z-index: 2;
  padding: 26px 24px;
  color: #fff;
}

.svc-body .no {
  font-family: 'Chakra Petch', sans-serif;
  color: var(--sky);
  font-size: 15px;
  letter-spacing: .1em;
}

.svc-body h3 { font-size: 20px; font-weight: 700; margin: 6px 0 8px; }

.svc-body p {
  font-size: 13px;
  color: rgba(255, 255, 255, .8);
  font-weight: 400;
  line-height: 1.7;
}

.svc-note {
  margin-top: 40px;
  background: var(--sky-pale);
  border-left: 4px solid var(--amber);
  padding: 24px 28px;
  border-radius: 0 6px 6px 0;
  color: var(--ink);
}

.svc-note strong { color: var(--navy); }


/* =========================================================
   WORKS
   ========================================================= */
#works {
  padding: 110px 40px;
  background: var(--navy-deep);
  color: #fff;
}

#works .sec-head .en-h { color: #fff; }

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
}

.work img,
.work .ph-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.work:hover img,
.work:hover .ph-img { transform: scale(1.1); }

.work .cap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(transparent 40%, rgba(10, 28, 61, .85));
  opacity: 0;
  transition: opacity .4s;
}

.work:hover .cap { opacity: 1; }

.work .cap span {
  color: var(--sky);
  font-size: 12px;
  font-family: 'Chakra Petch', sans-serif;
  letter-spacing: .08em;
}

.work .cap p { font-weight: 600; font-size: 15px; margin-top: 2px; }

.works-more {
  text-align: center;
  margin-top: 44px;
}


/* =========================================================
   3バナー（SERVICE / RECRUIT / COMPANY）
   ========================================================= */
.bnr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.bnr {
  position: relative;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2枚の境目に細い区切り */
.bnr + .bnr { box-shadow: -1px 0 0 rgba(255, 255, 255, .08); }

.bnr .bg {
  position: absolute;
  inset: 0;
  background: var(--ph);
  background-size: cover;
  background-position: center;
  transition: transform .6s;
}

.bnr:hover .bg { transform: scale(1.1); }

.bnr .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 61, .62);
  transition: background .4s;
}

.bnr:hover .bg::after { background: rgba(31, 116, 196, .7); }

.bnr .txt {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.bnr .txt .en-b {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .06em;
}

.bnr .txt .ja-b {
  display: inline-block;
  margin-top: 8px;
  background: var(--amber);
  padding: 5px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
}


/* =========================================================
   CONTACT（TOP末尾）
   ========================================================= */
#top-contact {
  padding: 110px 40px;
  background: linear-gradient(rgba(10, 28, 61, .9), rgba(10, 28, 61, .94));
  color: #fff;
  text-align: center;
}

#top-contact .wrap { position: relative; z-index: 2; }

.ct-en {
  font-family: 'Sora', sans-serif;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.ct-ja {
  color: var(--amber);
  font-weight: 600;
  letter-spacing: .14em;
  margin-top: 6px;
}

.ct-lead {
  max-width: 560px;
  margin: 26px auto 44px;
  color: rgba(255, 255, 255, .85);
  font-weight: 400;
}

.ct-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.ct-btns .btn { min-width: 240px; justify-content: center; }

.ct-note {
  margin-top: 38px;
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}

.ct-note .warn {
  display: inline-block;
  margin-top: 8px;
  color: var(--sky);
  font-weight: 600;
}


/* =========================================================
   レスポンシブ
   ========================================================= */
@media screen and (max-width: 1024px) {
  .svc-grid,
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 768px) {
  #hero { min-height: 100svh; }

  .hero-inner {
    padding: 0 26px 120px;
    justify-content: flex-end;
  }

  .hero-eyebrow { font-size: 11px; letter-spacing: .2em; margin-bottom: 18px; }
  .hero-title { font-size: clamp(27px, 8vw, 44px); line-height: 1.22; }
  .hero-sub { font-size: 14.5px; line-height: 1.85; margin-top: 20px; }
  .hero-cta { gap: 12px; margin-top: 32px; width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; padding: 16px 20px; }
  .hero-scroll { bottom: 22px; }

  /* SP：サイドラベル非表示・フレームを少し内側に */
  .hero-side { display: none; }
  .hero-frame { inset: 14px; }
  .hero-frame::before,
  .hero-frame::after { width: 20px; height: 20px; }

  #front .sec,
  #service.sec,
  #recruit-lead,
  #works,
  #top-contact { padding: 70px 24px; }

  .sec-head { margin-bottom: 38px; }
  .sec-head .en-h { font-size: clamp(34px, 10vw, 44px); }

  .rl-inner { flex-direction: column; gap: 34px; }
  .rl-copy .lead { font-size: clamp(26px, 7.5vw, 34px); line-height: 1.55; }
  .rl-copy .btn { width: 100%; justify-content: center; }
  .rl-stats { flex-basis: auto; width: 100%; }

  .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-lead { font-size: 15px; margin-bottom: 32px; }
  .svc-card { min-height: 220px; }
  .svc-note { margin-top: 28px; padding: 22px; font-size: 14px; }

  .works-grid { grid-template-columns: 1fr; gap: 14px; }
  .work { aspect-ratio: 16 / 10; }
  .work .cap { opacity: 1; background: linear-gradient(transparent 45%, rgba(10, 28, 61, .9)); }

  .bnr-grid { grid-template-columns: 1fr; }
  .bnr { height: 170px; }
  .bnr .txt .en-b { font-size: 26px; }

  .ct-btns { flex-direction: column; gap: 14px; }
  .ct-btns .btn { width: 100%; min-width: 0; }
}

@media screen and (max-width: 400px) {
  .hero-title { font-size: 30px; line-height: 1.25; }
}
