:root {
  --ink: #14161a;
  --ink-2: #4a4f57;
  --line: #e4e4e0;
  --bg: #fbfaf7;
  --bg-alt: #f2f0ea;
  --accent: #2f6db5;      /* 燕子 logo 的蓝 */
  --dark: #15171c;
  --radius: 14px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.lang-zh { font-family: "Inter", "Noto Sans SC", system-ui, sans-serif; }
body.lang-en { line-height: 1.7; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { height: 64px; }
.logo {
  font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: .18em;
  font-size: 20px; text-decoration: none;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo .mark { width: 30px; height: 29px; }
.logo.small .mark { width: 22px; height: 21px; }
.logo.small { font-size: 15px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.lang-switch { display: flex; gap: 4px; font-size: 13px; }
.lang-switch a { text-decoration: none; padding: 4px 8px; border-radius: 6px; color: var(--ink-2); }
.lang-switch a[aria-current] { background: var(--ink); color: #fff; }

/* sections */
section { padding: 96px 0; }
section h2 { font-size: 28px; margin-bottom: 40px; }
section h2::after { content: ""; display: block; width: 32px; height: 3px; background: var(--accent); margin-top: 14px; }
/* 灰色区块：双色不规则色块（业务内容、代表左右镜像） */
.alt { background: #f4f3ef url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201440%20800%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cpath%20fill%3D%22%23dfe7f1%22%20d%3D%22M-60%20120%20C%20180%20-40%20420%2060%20470%20240%20C%20520%20420%20330%20520%20140%20560%20C%20-40%20600%20-160%20300%20-60%20120%20Z%22/%3E%3Cpath%20fill%3D%22%23e9e4f1%22%20d%3D%22M1500%20420%20C%201340%20300%201120%20360%201060%20520%20C%201000%20690%201160%20860%201340%20860%20C%201520%20860%201620%20520%201500%20420%20Z%22/%3E%3C/svg%3E") center / cover no-repeat; }
#team.alt { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%201440%20800%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cg%20transform%3D%22translate%281440%200%29%20scale%28-1%201%29%22%3E%3Cpath%20fill%3D%22%23dfe7f1%22%20d%3D%22M-60%20120%20C%20180%20-40%20420%2060%20470%20240%20C%20520%20420%20330%20520%20140%20560%20C%20-40%20600%20-160%20300%20-60%20120%20Z%22/%3E%3Cpath%20fill%3D%22%23e9e4f1%22%20d%3D%22M1500%20420%20C%201340%20300%201120%20360%201060%20520%20C%201000%20690%201160%20860%201340%20860%20C%201520%20860%201620%20520%201500%20420%20Z%22/%3E%3C/g%3E%3C/svg%3E"); }

/* hero：柔和潮流 */
.hero { position: relative; overflow: hidden; padding: 120px 0 88px; background: #fff; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); }
.b1 { width: 520px; height: 440px; background: #cfdcea; left: -160px; top: 40px; opacity: .8; }
.b2 { width: 560px; height: 480px; background: #8fa6c2; right: -220px; bottom: -220px; opacity: .35; }
.b3 { width: 380px; height: 320px; background: #e6e2ef; right: 18%; top: -140px; opacity: .6; }
.glow { position: absolute; left: 0; top: 0; width: 220px; height: 190px; margin: -95px 0 0 -110px; border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; background: radial-gradient(circle at 40% 40%, rgba(120, 170, 230, .75), rgba(185, 211, 242, .35) 60%, transparent 75%); filter: blur(18px); will-change: transform; animation: morph 9s ease-in-out infinite alternate; transform: translate(var(--x, 900px), var(--y, 300px)); }
.glow.g1 { width: 130px; height: 115px; margin: -57px 0 0 -65px; opacity: .7; animation-duration: 7s; animation-direction: alternate-reverse; }
.glow.g2 { width: 80px; height: 72px; margin: -36px 0 0 -40px; opacity: .5; animation-duration: 5s; }
.flight { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.trail { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: .5; stroke-dasharray: 1700; stroke-dashoffset: 0; }
.js .trail { stroke-dashoffset: 1700; }
.js .hero.go .trail { animation: draw 2.4s cubic-bezier(.3,.1,.25,1) forwards; }
.js .bird { opacity: 0; }
.js .hero.go .bird { opacity: 1; }
.hero-inner { position: relative; }
.headline { font-size: clamp(28px, 5.6vw, 68px); font-weight: 800; letter-spacing: -.02em; line-height: 1.18; margin: 0; }
.lang-ja .headline, .lang-zh .headline { font-weight: 900; }
.lang-en .headline { font-size: clamp(28px, 5.2vw, 64px); }
.headline .ln { display: block; overflow: hidden; padding: .06em 0; }
.headline .in { display: inline-block; }
.js .headline .in { transform: translateY(110%); }
.js .hero.go .headline .in { animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.15s + var(--i) * .14s); }
.headline .grad { font-style: normal; white-space: nowrap; background: linear-gradient(90deg, #2f6db5, #6aa8e8 60%, #9b8cf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.headline .swash { position: relative; display: inline-block; color: var(--accent); }
.headline .swash .sw { position: absolute; left: -2%; bottom: -.06em; width: 104%; height: .25em; overflow: visible; }
.headline .swash path { fill: none; stroke: #6aa8e8; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 210; stroke-dashoffset: 0; }
.js .headline .swash path { stroke-dashoffset: 210; }
.js .hero.go .headline .swash path { animation: draw .7s 1.1s ease-out forwards; }
/* 大燕子 fly 版：飞到右上后淡出，背景巨大燕子随后浮现 */
.js .bird-fly.go .flight { animation: fadeout .8s 2.6s ease forwards; }
/* 大燕子 bg 版：背景巨大淡色燕子，慢慢飘 */
.bigbird { position: absolute; right: 3%; top: 36%; width: min(34vw, 500px); height: auto; fill: var(--ink); opacity: .92; pointer-events: none; transform: rotate(-8deg); }
.js .bird-bg.go .bigbird { animation: drift 14s ease-in-out infinite alternate; }
.js .bird-fly .bigbird { opacity: 0; }
.js .bird-fly.go .bigbird { animation: appear 1.6s 3s ease forwards, drift 14s 3s ease-in-out infinite alternate; }
.hero .lead { max-width: 620px; font-size: 17px; color: var(--ink-2); margin: 28px 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.btn-blue { background: var(--accent); }
.btn.btn-blue:hover { background: var(--ink); }
.stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 48px 0 0; padding-top: 22px; border-top: 1px solid rgba(20, 22, 26, .12); max-width: 560px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 13px; color: var(--ink-2); }
.stats dd { margin: 0; font: 700 34px/1.1 "Inter", sans-serif; font-variant-numeric: tabular-nums; }
.js .hero-inner .lead, .js .hero-inner .cta, .js .hero-inner .stats { opacity: 0; transform: translateY(16px); }
.js .hero.go .hero-inner .lead { animation: rise .7s .7s forwards; }
.js .hero.go .hero-inner .cta { animation: rise .7s .85s forwards; }
.js .hero.go .hero-inner .stats { animation: rise .7s 1s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }
@keyframes morph { 0% { border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; } 50% { border-radius: 63% 37% 41% 59% / 58% 62% 38% 42%; } 100% { border-radius: 35% 65% 55% 45% / 38% 55% 45% 62%; } }
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes show { to { opacity: .45; } }
@keyframes twinkle { 50% { transform: scale(1.6); opacity: .4; } }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: .92; } }
@keyframes drift { from { transform: rotate(-8deg) translate(0, 0); } to { transform: rotate(-4deg) translate(-2%, 3%); } }

/* about + 航线 */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: start; }
.routes { margin: 0; position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 12px; }
.routes svg { display: block; width: 100%; height: auto; }
.routes .grid { fill: none; stroke: #c9cfd6; stroke-width: 1; stroke-dasharray: 2 5; opacity: .7; }
.routes .arc { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: .55; stroke-dasharray: 520; stroke-dashoffset: 0; }
.js .routes .arc { stroke-dashoffset: 520; }
.js .routes.in .arc { animation: draw 1.6s ease-out forwards; animation-delay: var(--d); }
.routes .flow { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 2 9; opacity: 0; }
.js .routes.in .flow { animation: flow 1.2s linear infinite, show .6s 1.8s forwards; }
.routes .city circle { fill: var(--ink); }
.routes .city .halo { fill: rgba(47, 109, 181, .16); transform-box: fill-box; transform-origin: center; animation: twinkle 3s ease-in-out infinite; animation-delay: var(--d); }
.routes .comet { fill: var(--accent); filter: drop-shadow(0 0 4px rgba(47, 109, 181, .9)); }
.routes .tokyo { fill: var(--accent); }
.routes .tokyo-ring { fill: rgba(47, 109, 181, .14); }
.routes .pulse { fill: none; stroke: var(--accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
.routes .pulse.p2 { animation-delay: 1.3s; }
.routes text { font: 600 14px "Inter", sans-serif; fill: var(--ink-2); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.routes .tokyo-label { font-size: 19px; font-weight: 700; fill: var(--ink); }
.routes .route-bird { color: var(--ink); }
.js .routes .route-bird { opacity: 0; }
.js .routes.in .route-bird { opacity: 1; transition: opacity .2s .35s; }

/* 滚动渐显 */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .routes.rv { transform: none; }

/* 卡片悬停 */
.svc { transition: transform .25s, border-color .25s, box-shadow .25s, opacity .7s; }
.svc:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 10px 24px rgba(47, 109, 181, .12); }

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: #fff; }

.prose p { margin: 0 0 1em; font-size: 17px; }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.svc .num { font-family: "Inter", sans-serif; font-weight: 700; color: var(--accent); font-size: 14px; }
.svc h3 { font-size: 20px; margin: 10px 0 12px; }
.svc p { margin: 0; color: var(--ink-2); font-size: 15px; }

.works { list-style: none; margin: 0; padding: 0; }
.works li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.works li:last-child { border-bottom: 1px solid var(--line); }
.works .wtag { justify-self: start; align-self: start; font-size: 13px; font-weight: 600; color: var(--accent); background: #eaf1fa; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.works h3 { font-size: 18px; margin-bottom: 6px; }
.works p { margin: 0; color: var(--ink-2); font-size: 15px; }

.profile { width: 100%; border-collapse: collapse; font-size: 15px; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 18px 0; border-top: 1px solid var(--line); }
.profile tr:last-child th, .profile tr:last-child td { border-bottom: 1px solid var(--line); }
.profile th { width: 200px; font-weight: 600; color: var(--ink-2); padding-right: 24px; }

.contact { background: var(--dark); color: #fff; text-align: center; }
.contact h2::after { margin: 14px auto 0; }
.contact p { color: #c9ccd2; margin: 0 0 32px; }
.mail-big { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 40px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; color: #fff; text-decoration: none; font: 700 clamp(22px, 3.4vw, 34px)/1.2 "Inter", sans-serif; letter-spacing: .01em; transition: background .2s, border-color .2s; }
.mail-big span { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #9aa3ad; }
.mail-big:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.5); }
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fbar .btn { border: 0; cursor: pointer; font-family: inherit; }
.fbar small { color: #9aa0a8; font-size: 13px; }
.team { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: center; }
.avatar { aspect-ratio: 1; border-radius: 28px; background: linear-gradient(140deg, #b9d3f2, #2f6db5); display: grid; place-items: center; color: #fff; }
.avatar .mark { width: 46%; height: auto; }
.avatar.has-photo { overflow: hidden; background: #e9edf2; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team h2 { margin-bottom: 24px; }
.team .role { margin: 0; color: var(--ink-2); font-size: 14px; }
.team .pname { margin: 2px 0 14px; font-size: 26px; font-weight: 700; }
.bio { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bio li { padding-left: 18px; position: relative; color: var(--ink-2); }
.bio li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 2px; background: var(--accent); }

.site-footer { background: var(--dark); color: #9aa0a8; border-top: 1px solid #2a2d33; }
.site-footer .bar { height: 72px; }
.site-footer .logo { color: #fff; }

/* mobile */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  section { padding: 72px 0; }
  .hero { padding: 88px 0 64px; }
  .svc-grid, .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .routes { position: static; }
  .team { grid-template-columns: 1fr; gap: 24px; }
  .avatar { width: 140px; }
    .flight { display: none; }
  .bigbird { width: 70vw; right: -18%; top: auto; bottom: 4%; opacity: .1 !important; }
  .js .bird-fly.go .bigbird { animation: none; }
  .glow { display: none; }
  .stats { gap: 12px 28px; }
  .stats dd { font-size: 28px; }
  .b1 { width: 320px; height: 300px; } .b2 { width: 340px; height: 300px; right: -160px; bottom: -120px; }
  .works li { grid-template-columns: 1fr; gap: 6px; }
  .profile th, .profile td { display: block; width: auto; }
  .profile th { padding-bottom: 0; border-top: 1px solid var(--line); }
  .profile td { border-top: 0; padding-top: 4px; }
  .profile tr:last-child th { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .routes .route-bird, .routes .comet { display: none; }
  .routes .pulse, .routes .city .halo { animation: none; }
  .js .routes .flow { animation: none; opacity: .45; }
  .js .bird { opacity: 1 !important; }
  .bird-fly .flight { display: none; }
  .js .bird-fly .bigbird { opacity: .92 !important; }
  .js .headline .swash path { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
  .js .bigbird { animation: none !important; }
  .js .headline .in, .js .hero-inner .lead, .js .hero-inner .cta, .js .hero-inner .stats, .js .rv { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js .trail, .js .routes .arc { stroke-dashoffset: 0 !important; animation: none !important; }
}
