/* NightAI コーポレートサイト */

/* base */
img { max-width: 100% }
[hidden] { display: none !important }

:root {
  --black: #0E1111;
  --mist: #F4F7F7;
  --white: #FFFFFF;
  --ink: #0E1111;
  --sub: #404040;
  --sub-dark: #95969B;
  --line: #E4EBEB;
  --green: #00D162;
  --green-hover: #00C05A;
  --green-active: #00B856;
  --graphite: #2B2E2E;
  --latin: "Avenir Next", Avenir, Jost, "Noto Sans JP", sans-serif;
  --jp: "Avenir Next", Avenir, Jost, "Noto Sans JP", "Hiragino Sans", sans-serif;
  --jp-bold: Inter, "Noto Sans JP", "Hiragino Sans", sans-serif; /* bold headings: Inter for Latin, Noto Sans JP for Japanese */
  --wrap: 1080px;
  --r: 22px;
  color-scheme: light;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--jp); font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased }
a { color: inherit }
h1, h2, h3, p { margin: 0 }
h1, h2, h3 { text-wrap: balance; font-weight: 700; letter-spacing: -0.005em }
h1, h2, h3, b, strong { font-family: var(--jp-bold) }
.wrap { width: 100%; max-width: calc(var(--wrap) + 48px); margin-inline: auto; padding-inline: 24px }
.band { padding-block: 104px }
.band.mist { background: var(--mist) }
.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.35; margin-bottom: 44px }
.kicker { display: block; font-family: var(--latin); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--sub); margin-bottom: 14px }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none }
.more::after { content: ""; flex: none; width: 1.15em; height: 1.15em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath d='M647-440H160v-80h487L423-744l57-56 320 320-320 320-57-56 224-224Z'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s cubic-bezier(.2,.7,.2,1) }
.more:hover::after { transform: translateX(4px) }
.hero .more { color: var(--white) }
button { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px }
.hero :focus-visible, .subnav :focus-visible, footer :focus-visible { outline-color: var(--white) }

/* sub-nav */
.subnav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(14,17,17,.82); color: var(--white); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px) }
.subnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px }
.subnav .logo { display: block; height: 17px; color: var(--white) }
.subnav .logo svg { height: 100%; width: auto; display: block }
.subnav nav { display: flex; align-items: center; gap: 22px }
.subnav nav a.t { font-family: var(--latin); font-size: 12px; color: var(--white); text-decoration: none; letter-spacing: .04em }
.subnav nav a.t:hover { color: var(--green) }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 14px; border-radius: 999px; background: var(--green); color: var(--ink); font-family: var(--latin); font-size: 12px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: background .2s }
.pill:hover { background: var(--green-hover) }
.pill:active { background: var(--green-active) }
.pill.lg { min-height: 44px; padding: 0 22px; font-size: 14px }

/* hero */
.hero { position: relative; isolation: isolate; background: var(--black); color: var(--white); min-height: min(calc(100svh - 52px), 880px); display: flex; align-items: flex-end; padding-block: 120px 88px; overflow: hidden }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2 }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,17,17,.62) 0%, rgba(14,17,17,.28) 60%, rgba(14,17,17,.12) 100%), linear-gradient(180deg, rgba(14,17,17,.3) 0%, rgba(14,17,17,0) 35%, rgba(14,17,17,.72) 100%) }
.hero .wrap { position: relative }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.22; animation: rise 1s .3s cubic-bezier(.2,.7,.2,1) both }
.hero p { margin-top: 22px; max-width: 40em; font-size: 18px; line-height: 1.75; color: var(--sub-dark); animation: rise 1s .42s cubic-bezier(.2,.7,.2,1) both }
.hero .acts { margin-top: 32px; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; animation: rise 1s .5s cubic-bezier(.2,.7,.2,1) both }

/* mission */
.mission-cols { display: flex; flex-direction: column; gap: 20px; max-width: 46em; color: var(--sub); font-size: 17px }

/* rails */
.rail-wrap { position: relative }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(24px, calc((100% - var(--wrap)) / 2)); padding-inline: max(24px, calc((100% - var(--wrap)) / 2)); padding-block: 4px 8px; scrollbar-width: none }
.rail::-webkit-scrollbar { display: none }
.rail > * { scroll-snap-align: start; flex: none }
.arrows { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px }
.arrows button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #EBEBEB; color: var(--ink); cursor: pointer; font-size: 18px; line-height: 1; transition: background .2s, opacity .2s }
.arrows button:hover { background: #E0E0E0 }
.arrows button:disabled { opacity: .35; cursor: default }

/* wide media cards (focus) */
.mcard { width: min(560px, 84vw); display: flex; flex-direction: column; gap: 18px }
.mcard .ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist) }
.mcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.7,.2,1) }
.mcard:hover .ph img { transform: scale(1.04) }
.mcard p { font-size: 15px; color: var(--sub); max-width: 32em; padding-inline: 6px }
.mcard p b { color: var(--ink); font-weight: 700 }
.mcard .en { display: block; font-family: var(--latin); font-size: 12px; color: var(--sub); margin-top: 4px; letter-spacing: .02em }
.focus-lead { max-width: 40em; color: var(--sub); font-size: 17px; margin: -24px 0 44px }

/* team */
.team-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px }
.panel { border-radius: var(--r); background: var(--white); padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0 }
.panel p { color: var(--sub); font-size: 15px }
.people { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; min-width: 0 }
.person { border-radius: var(--r); background: var(--white); display: grid; overflow: hidden }
.person .tx { padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; gap: 4px }
.person .r { font-family: var(--latin); font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--sub) }
.person .n { font-family: var(--latin); font-size: 22px; font-weight: 700 }

/* news / company */
.list { border-top: 1px solid var(--line) }
dl.list { margin: 0 }
.li { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: baseline }
.li .d { font-family: var(--latin); font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums }
.li .t { font-size: 18px; font-weight: 500 }
.li dd { margin: 0; font-size: 17px; min-width: 0 }
.li dt { font-size: 14px; color: var(--sub) }

/* next step */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px }
.step { border-radius: var(--r); background: var(--mist); padding: 32px; display: flex; flex-direction: column; gap: 12px; min-width: 0 }
.step svg { width: 32px; height: 32px; color: var(--ink) }
.step h3 { font-size: 21px; line-height: 1.45; margin-top: 6px }
.step p { font-size: 14.5px; color: var(--sub) }
.step .links { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 6px }
.step .more { font-size: 14px; align-self: flex-start; color: var(--graphite); transition: color .2s }
.step .more:hover, .step .more:focus-visible { color: var(--sub) }
.closing { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.35; margin-bottom: 44px }

footer { background: var(--black); color: var(--sub-dark); font-size: 12px }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 28px }
footer nav { display: flex; gap: 20px } footer a { text-decoration: none } footer a:hover { color: var(--white) }

@keyframes rise { from { opacity: 0; transform: translateY(22px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }

@media (max-width: 820px) {
  .band { padding-block: 72px }
  .subnav nav a.t { display: none }
  .hero p { font-size: 16px }
  .hero { min-height: min(68svh, 560px); padding-block: 96px 48px }
  .hero h1 { font-size: clamp(32px, 9vw, 40px) }
  .hero .acts { margin-top: 24px; gap: 18px }
  .team-grid, .steps { grid-template-columns: 1fr }
  .panel { padding: 32px 26px }
  .li { grid-template-columns: 1fr; gap: 4px }
}
