@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --ink: #111;
  --sub: #555;
  --line: #e3e3e3;
  --bg: #fff;
  --bg-alt: #f6f6f4;
  --accent: #1f4fd8;
  --brand: 'Gill Sans', 'Gill Sans MT', 'Lato', sans-serif;
  --sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { word-break: auto-phrase; }
img { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: block; line-height: 0; }
.logo img { height: 18px; width: auto; }
.nav { display: flex; gap: 28px; font-size: .9rem; }
.nav a { text-decoration: none; color: var(--sub); }
.nav a:hover { color: var(--ink); }
.nav .btn-sm { color: #fff; background: var(--ink); padding: 6px 16px; border-radius: 999px; }
.nav .btn-sm:hover { color: #fff; opacity: .85; }

/* hero */
.hero { position: relative; padding: 110px 0 120px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(17,17,17,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.g1 { width: 420px; height: 420px; background: #7aa2ff; top: -80px; right: 8%; }
.g2 { width: 340px; height: 340px; background: #b9a6ff; bottom: -120px; right: 30%; animation-delay: -6s; }
.g3 { width: 260px; height: 260px; background: #8fe3d0; top: 30%; right: -60px; animation-delay: -12s; opacity: .45; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.08); } }

.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero .en { font-family: var(--brand); text-transform: uppercase; letter-spacing: .14em; color: var(--sub); margin: 0 0 18px; font-size: .9rem; }
.hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.35; margin: 0 0 28px; font-weight: 700; letter-spacing: .04em; }
.hero p.lead { font-size: 1.02rem; color: var(--sub); max-width: 560px; margin: 0 0 40px; }

/* hero visual */
.hero-visual { position: relative; height: 420px; }
.panel {
  position: absolute; background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 18px;
  box-shadow: 0 20px 50px -20px rgba(31,79,216,.35), 0 2px 6px rgba(17,17,17,.06);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.panel.main { inset: 80px 20px auto 0; animation-duration: 9s; }
.panel-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(17,17,17,.06); font-size: .75rem; color: var(--sub); }
.panel-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ddd; }
.panel-bar span { margin-left: 10px; padding: 2px 12px; background: rgba(17,17,17,.04); border-radius: 999px; }
.panel-body { display: flex; gap: 24px; align-items: center; padding: 22px 24px 26px; }
.score { position: relative; width: 112px; height: 112px; flex: none; }
.score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score circle { fill: none; stroke-width: 10; }
.score .track { stroke: rgba(17,17,17,.07); }
.score .value { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; animation: ring 1.6s .3s ease-out forwards; }
@keyframes ring { to { stroke-dashoffset: 13; } }
.score div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score b { font-size: 1.9rem; line-height: 1; font-family: var(--brand); }
.score small { font-size: .62rem; color: var(--sub); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.rows { list-style: none; margin: 0; padding: 0; flex: 1; font-size: .85rem; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(17,17,17,.08); }
.rows li:last-child { border-bottom: none; }
.rows span { margin-left: auto; color: var(--sub); font-size: .78rem; }
em.ok, em.warn { width: 8px; height: 8px; border-radius: 50%; flex: none; }
em.ok { background: #19b37a; box-shadow: 0 0 0 4px rgba(25,179,122,.15); }
em.warn { background: #f0a020; box-shadow: 0 0 0 4px rgba(240,160,32,.18); }
.chip { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: .85rem; border-radius: 999px; white-space: nowrap; }
.chip b { font-family: var(--brand); color: #19b37a; }
.c1 { left: -24px; bottom: 30px; animation-delay: -2s; }
.c2 { right: -10px; bottom: -14px; animation-delay: -4s; }
.spark { right: -20px; top: -10px; padding: 14px 18px; width: 170px; animation-delay: -1s; }
.spark small { display: block; font-size: .65rem; color: var(--sub); letter-spacing: .1em; text-transform: uppercase; }
.spark b { font-family: var(--brand); font-size: 1.3rem; }
.spark svg { width: 100%; height: 30px; margin-top: 4px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  .glow, .panel { animation: none; }
  .score .value { animation: none; stroke-dashoffset: 13; }
}

.btn {
  display: inline-block; text-decoration: none; font-weight: 500;
  padding: 14px 32px; border-radius: 999px; background: var(--ink); color: #fff;
}
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); margin-left: 12px; }

/* sections */
section { padding: 100px 0; }
section.alt { background: var(--bg-alt); }
.sec-head { margin-bottom: 56px; }
.sec-head .en { font-family: var(--brand); text-transform: uppercase; letter-spacing: .14em; color: var(--sub); font-size: .95rem; margin: 0; }
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 4px 0 0; letter-spacing: .05em; }
.sec-head p { color: var(--sub); margin: 16px 0 0; max-width: 680px; }

/* services */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.card .num { font-family: var(--brand); text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-size: 1.1rem; }
.card h3 { margin: 6px 0 10px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--sub); font-size: .95rem; }
.card ul { margin: 14px 0 0; padding-left: 1.2em; color: var(--sub); font-size: .9rem; }

/* new service */
.feature {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  border: 1px solid var(--ink); border-radius: 18px; padding: 48px; background: #fff;
}
.badge { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 12px; margin-bottom: 14px; }
.feature h3 { font-size: 1.5rem; margin: 0 0 14px; line-height: 1.5; }
.feature p { color: var(--sub); margin: 0 0 24px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); position: relative; font-size: .95rem; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 20px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* strengths */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.strengths h3 { font-size: 1.1rem; margin: 0 0 10px; padding-top: 18px; border-top: 2px solid var(--ink); }
.strengths p { color: var(--sub); font-size: .95rem; margin: 0; }

/* flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.flow li { background: #fff; border-radius: 14px; padding: 28px 24px; border: 1px solid var(--line); counter-increment: step; }
.flow li::before { content: "0" counter(step); font-family: var(--brand); letter-spacing: .1em; color: var(--accent); display: block; margin-bottom: 6px; }
.flow h3 { margin: 0 0 6px; font-size: 1.05rem; }
.flow p { margin: 0; color: var(--sub); font-size: .9rem; }

/* company */
.company { width: 100%; border-collapse: collapse; }
.company th, .company td { text-align: left; vertical-align: top; padding: 20px 8px; border-bottom: 1px solid var(--line); }
.company th { width: 180px; font-weight: 500; color: var(--sub); }
.company ul { margin: 0; padding-left: 1.2em; }

/* contact */
.contact { text-align: center; }
.contact .sec-head p { margin-left: auto; margin-right: auto; }
.mail { font-family: var(--brand); letter-spacing: .04em; font-size: clamp(1.3rem, 3vw, 2rem); text-decoration: none; border-bottom: 1px solid var(--ink); }
.note { color: var(--sub); font-size: .85rem; margin-top: 24px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .82rem; color: var(--sub); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }

/* policy page */
.doc { max-width: 760px; margin: 0 auto; padding: 80px 24px 100px; }
.doc h1 { font-size: 1.8rem; margin: 0 0 32px; }
.doc h2 { font-size: 1.15rem; margin: 40px 0 10px; }
.doc p, .doc li { color: #333; }

@media (max-width: 860px) {
  .nav a:not(.btn-sm) { display: none; }
  .grid, .feature, .strengths { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .feature { padding: 32px 24px; gap: 24px; }
  section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { height: 360px; max-width: 460px; width: 100%; margin: 8px auto 0; }
  .company th { width: 110px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .flow { grid-template-columns: 1fr; }
  .btn.ghost { margin: 12px 0 0; }
  .hero .en { font-size: .72rem; letter-spacing: .1em; }
  .hero-visual { height: 270px; }
  .panel.main { inset: 0 0 auto 0; }
  .spark, .c1, .c2 { display: none; }
  .hero-visual { height: 250px; }
  .score small { display: none; }
  .panel-body { gap: 16px; padding: 18px; }
  .score { width: 88px; height: 88px; }
  .c2 { right: 0; bottom: 0; }
  .company th, .company td { display: block; width: 100%; padding: 10px 0; }
  .company th { border-bottom: none; padding-bottom: 0; }
}

.hero h1 span { white-space: nowrap; }
@media (max-width: 480px) { .hero h1 span { white-space: normal; } }
