/* =========================================================================
   Components & Sections
   ========================================================================= */

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 76px; display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
  height: 66px;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* logo */
.logo { display: inline-flex; align-items: center; width: clamp(118px, 12vw, 154px); cursor: pointer; }
.logo__image { display: block; width: 100%; height: auto; }
.site-header:not(.scrolled).on-dark .logo__image,
.footer .logo__image {
  filter: brightness(0) invert(1);
}
.site-header:not(.scrolled).on-dark .nav a { color: rgba(255,255,255,.86); }
.site-header:not(.scrolled).on-dark .nav a:hover { color: #fff; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink); letter-spacing: .03em;
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav a.active { color: var(--accent); }
.nav a.active::after { width: 100%; }
.site-header:not(.scrolled).on-dark .nav a.active { color: #fff; }
.nav .nav-cta {
  min-width: 154px;
  margin-left: 6px;
  padding: 0 20px;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}
.nav .nav-cta:hover {
  color: #fff;
}
.site-header:not(.scrolled).on-dark .nav .nav-cta,
.site-header:not(.scrolled).on-dark .nav .nav-cta:hover {
  color: #fff;
}
.nav .nav-cta::after {
  display: none;
}
.nav .nav-cta .arr {
  flex: none;
}

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav { position: fixed; top: 0; right: 0; bottom: auto; left: auto; width: min(82vw, 340px);
    box-sizing: border-box; height: 100vh; height: 100dvh; max-height: 100dvh;
    background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px; padding: calc(92px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%);
    transition: transform .4s var(--ease); box-shadow: -20px 0 60px rgba(0,0,0,.12); z-index: 105; }
  .nav.open { transform: none; }
  .nav a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-header:not(.scrolled).on-dark .nav.open a,
  .nav.open a { color: var(--ink); }
  .site-header:not(.scrolled).on-dark .nav.open .nav-cta,
  .nav.open .nav-cta { color: #fff; }
  .nav a::after { display: none; }
  .nav .nav-cta {
    min-width: 0;
    margin: 16px 0 0;
    padding: 0 20px;
  }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 30px; height: 30px;
    align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; z-index: 110; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
  .site-header:not(.scrolled).on-dark .nav-toggle span { background: #fff; }
  .site-header:not(.scrolled).on-dark .nav-toggle.open span,
  .nav-toggle.open span { background: var(--ink); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-scrim { position: fixed; inset: 0; height: 100vh; height: 100dvh; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none;
    transition: opacity .3s; z-index: 99; }
  .nav-scrim.open { opacity: 1; pointer-events: auto; }
}

/* ---------- HERO (shared) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__copy { position: relative; z-index: 3; }
.hero__title { font-weight: 900; line-height: 1.04; letter-spacing: 0; margin: 0; }
.hero__title .ja { display: block; }
.hero__title .accent { color: var(--accent); }
.hero__sub { margin: 26px 0 0; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.9; color: var(--ink-2); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__scroll { position: absolute; left: var(--gutter); bottom: 30px; z-index: 3;
  font-family: var(--latin); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.hero__scroll i { width: 1px; height: 34px; background: currentColor; display: block; transform-origin: top;
  animation: scrollLine 2.1s var(--ease) infinite; }
@keyframes scrollLine { 0%{transform:scaleY(0);} 40%{transform:scaleY(1);} 100%{transform:scaleY(0); transform-origin:bottom;} }

.hero__fade { animation: fadeUp 1s var(--ease) .5s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__fade { animation: none !important; } }

/* speed streaks */
.streaks { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.streaks i { position: absolute; height: 1.5px; left: -40%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .0;
  animation: streak 2.6s var(--ease) infinite; }
@keyframes streak { 0%{ left:-45%; opacity:0;} 12%{opacity:.55;} 55%{opacity:.2;} 100%{ left:115%; opacity:0;} }
@media (prefers-reduced-motion: reduce) { .streaks { display: none; } }

.hero--photo { min-height: 100svh; display: flex; align-items: flex-end; color: #fff; padding-block: 120px 96px; }
.hero--photo .hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero--photo .hero__bg .ph,
.hero--photo .hero__bg img,
.hero--photo .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero--photo .hero__bg img,
.hero--photo .hero__video {
  object-fit: cover;
  object-position: center;
}
.hero--photo .hero__video { z-index: 1; }
.hero--photo .hero__fallback { z-index: 0; }
.hero--photo .hero__bg::after { content: ""; position: absolute; inset: 0;
  z-index: 2; background: linear-gradient(180deg, rgba(10,16,28,.5) 0%, rgba(10,16,28,.15) 40%, rgba(10,16,28,.78) 100%); }
.hero--photo .hero__title { font-size: clamp(40px, 8vw, 104px); color: #fff; }
.hero--photo .hero__sub { color: rgba(255,255,255,.82); }
.hero--photo .btn--ghost { color: #fff; border-color: rgba(255,255,255,.65); }
.hero--photo .btn--ghost:hover { background: #fff; color: var(--ink); }
.hero--photo .hero__scroll { color: rgba(255,255,255,.7); }

/* ---------- Intro / 会社の姿勢 ---------- */
.intro__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.intro__big { font-weight: 800; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.5; letter-spacing: 0; margin: 0; text-wrap: balance; }
.intro__big em { font-style: normal; color: var(--accent); }
.intro__body p { margin: 0 0 20px; color: var(--ink-2); font-size: 16.5px; line-height: 2.05; }
.intro__values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.intro__values span { font-family: var(--latin); font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 8px 16px; }
@media (max-width: 760px){ .intro__grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Services (3 cards) ---------- */
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 28px 60px; align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.sec-head__lead { max-width: 44ch; justify-self: end; }
@media (max-width: 760px){ .sec-head { grid-template-columns: 1fr; gap: 18px; } .sec-head__lead { justify-self: start; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
@media (max-width: 880px){ .cards { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -20px rgba(16,36,68,.28); border-color: transparent; }
.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card__media .ph { width: 100%; height: 100%; transition: transform .5s var(--ease); }
.card:hover .card__media .ph { transform: scale(1.05); }
.card__no { position: absolute; top: 16px; left: 18px; z-index: 2; font-family: var(--latin); font-weight: 700;
  font-size: 13px; letter-spacing: .1em; color: #fff; mix-blend-mode: difference; }
.card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-family: var(--latin); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.card__title { font-weight: 800; font-size: 21px; line-height: 1.4; margin: 0 0 12px; }
.card__desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.95; margin: 0 0 22px; flex: 1; }
.card .tlink { margin-top: auto; }

/* ---------- Message (代表) ---------- */
.msg__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(36px, 5vw, 76px); align-items: center; }
.msg__photo { position: relative; }
.msg__photo .ph { aspect-ratio: 4/5; border-radius: var(--radius); }
.msg__badge { position: absolute; right: -14px; bottom: 28px; background: var(--accent); color: #fff;
  border-radius: 12px; padding: 16px 20px; box-shadow: 0 20px 40px -16px rgba(16,36,68,.5); }
.msg__badge b { display: block; font-family: var(--latin); font-size: 30px; font-weight: 800; line-height: 1; }
.msg__badge span { font-size: 12px; letter-spacing: .04em; opacity: .9; }
.msg__quote { font-weight: 800; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.5; letter-spacing: 0; margin: 0 0 26px; text-wrap: balance; }
.msg__quote .accent { color: var(--accent); }
.msg__text p { color: var(--ink-2); font-size: 16px; line-height: 2.05; margin: 0 0 18px; }
.msg__name { display: flex; align-items: baseline; gap: 14px; margin: 30px 0 30px; }
.msg__name b { font-size: 20px; font-weight: 800; }
.msg__name span { color: var(--ink-2); font-size: 13.5px; }
.msg__name .ja-name { font-family: var(--latin); color: var(--ink-3); letter-spacing: .04em; font-size: 13px; }
@media (max-width: 860px){ .msg__grid { grid-template-columns: 1fr; gap: 34px; } .msg__photo { max-width: 420px; } }

/* ---------- Company (概要 抜粋) ---------- */
.company__grid { max-width: 820px; }
.dl { border-top: 1px solid var(--line); }
.dl__row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.dl__row dt { font-weight: 700; font-size: 14px; color: var(--ink); letter-spacing: .02em; }
.dl__row dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.dl__row dd .latin { font-size: 15px; }
@media (max-width: 820px){ .dl__row { grid-template-columns: 120px 1fr; } }

/* ---------- Contact CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.cta__inner { padding-block: clamp(74px, 11vw, 140px); text-align: center; position: relative; z-index: 2; }
.cta__title { font-weight: 900; font-size: clamp(30px, 6vw, 70px); line-height: 1.1; letter-spacing: 0; margin: 0 auto 20px; max-width: 16ch; }
.cta__title .accent { display: block; color: #fff; -webkit-text-stroke: 1.5px var(--accent); color: transparent; }
.cta__sub { color: rgba(255,255,255,.7); font-size: 16px; margin: 0 auto 40px; max-width: 50ch; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta__btns .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta__btns .btn--ghost:hover { background: #fff; color: var(--ink); }
.cta__ghost { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--latin); font-weight: 800; font-size: clamp(160px, 34vw, 560px); color: #fff; opacity: .035;
  letter-spacing: 0; pointer-events: none; user-select: none; }

/* ---------- Footer ---------- */
.footer { background: #0e1116; color: rgba(255,255,255,.7); padding-block: clamp(56px, 7vw, 90px) 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand p { margin: 18px 0 0; font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,.55); max-width: 34ch; }
.footer__col h4 { font-family: var(--latin); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); margin: 0 0 18px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,.72); transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__sns { display: flex; gap: 12px; margin-top: 4px; }
.footer__sns a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; transition: background .25s, border-color .25s, transform .25s; }
.footer__sns a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer__sns svg { width: 19px; height: 19px; fill: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 12.5px; color: rgba(255,255,255,.45); }
.footer__bottom .latin { letter-spacing: .04em; }
@media (max-width: 760px){ .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

@media (max-width: 600px) {
  .site-header {
    height: 64px;
  }

  .site-header.scrolled {
    height: 60px;
  }

  .site-header .wrap {
    gap: 14px;
  }

  .logo {
    width: 118px;
  }

  .nav {
    width: min(88vw, 330px);
    padding: calc(82px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  }

  .nav a {
    font-size: 16px;
    padding: 13px 0;
  }

  .nav .nav-cta {
    width: 100%;
    margin-top: 14px;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    margin-right: -7px;
  }

  .hero__sub {
    max-width: none;
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.85;
    text-wrap: wrap;
    overflow-wrap: anywhere;
  }

  .hero__cta {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    margin-top: 28px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__scroll {
    display: none;
  }

  .hero--photo {
    min-height: 100svh;
    align-items: flex-end;
    padding-block: 98px 54px;
  }

  .hero--photo .hero__bg::after {
    background: linear-gradient(180deg, rgba(10,16,28,.52) 0%, rgba(10,16,28,.22) 36%, rgba(10,16,28,.86) 100%);
  }

  .hero--photo .hero__title {
    font-size: clamp(36px, 11.5vw, 52px);
    line-height: 1.08;
  }

  .intro__grid {
    gap: 22px;
  }

  .intro__big {
    font-size: clamp(24px, 7.2vw, 32px);
    line-height: 1.45;
    text-wrap: wrap;
  }

  .intro__body p {
    font-size: 15px;
    line-height: 1.95;
    overflow-wrap: anywhere;
  }

  .intro__values {
    gap: 8px;
    margin-top: 24px;
  }

  .intro__values span {
    padding: 7px 12px;
    font-size: 11px;
    letter-spacing: .08em;
  }

  .sec-head {
    gap: 14px;
    margin-bottom: 32px;
  }

  .cards {
    max-width: none;
  }

  .card__body {
    padding: 22px 20px 24px;
  }

  .card__title {
    font-size: 19px;
  }

  .card__desc {
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
  }

  .msg__grid {
    gap: 28px;
  }

  .msg__photo {
    max-width: 360px;
  }

  .msg__badge {
    right: 12px;
    bottom: 14px;
    max-width: calc(100% - 24px);
    padding: 13px 15px;
    border-radius: 10px;
  }

  .msg__badge b {
    font-size: 25px;
  }

  .msg__badge span {
    font-size: 11px;
  }

  .msg__quote {
    font-size: clamp(23px, 7.5vw, 32px);
    line-height: 1.45;
    text-wrap: wrap;
  }

  .msg__text p {
    font-size: 15px;
    line-height: 1.95;
    overflow-wrap: anywhere;
  }

  .msg__name {
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 24px 0;
  }

  .msg__name b {
    width: 100%;
  }

  .dl__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 15px 0;
  }

  .dl__row dd,
  .dl__row dd .latin {
    font-size: 14.5px;
    overflow-wrap: anywhere;
  }

  .cta__inner {
    padding-block: 66px;
  }

  .cta__title {
    max-width: 12ch;
    font-size: clamp(29px, 9vw, 42px);
    line-height: 1.18;
  }

  .cta__sub {
    margin-bottom: 28px;
    font-size: 14.5px;
    line-height: 1.9;
    overflow-wrap: anywhere;
  }

  .cta__btns {
    display: grid;
    gap: 12px;
    max-width: 320px;
    margin-inline: auto;
  }

  .cta__btns .btn {
    width: 100%;
  }

  .cta__ghost {
    font-size: clamp(96px, 31vw, 160px);
  }

  .footer {
    padding-block: 48px 26px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 36px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__brand p {
    max-width: none;
    overflow-wrap: anywhere;
  }

  .footer__col ul {
    gap: 10px;
  }

  .footer__bottom {
    display: grid;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .hero--photo .hero__title {
    font-size: 34px;
  }

  .hero__cta,
  .cta__btns {
    max-width: none;
  }

  .msg__badge {
    position: static;
    margin-top: -8px;
  }
}
