/* N-labo ホームページ 原案 — ロゴ配色（ネイビー〜ブルー＋ギア・グレー）に合わせたトーン */
:root {
  --navy: #0a1a3f;
  --navy-2: #12295e;
  --blue: #0d4fb3;
  --blue-2: #1e7be0;
  --sky: #e8f1fc;
  --sky-2: #f4f8fe;
  --gray: #5c6675;
  --gray-l: #d9dfe8;
  --ink: #101828;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 26, 63, .08);
  --shadow-h: 0 12px 32px rgba(10, 26, 63, .16);
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Yu Gothic UI", "Hiragino Sans", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
.wrap { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-l);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; }
.brand img { height: 40px; width: auto; }
.brand span b { color: var(--blue-2); font-weight: 700; }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sky); color: var(--blue); }
.nav a.cta { background: var(--blue); color: #fff; }
.nav a.cta:hover { background: var(--navy-2); color: #fff; }
.nav a.lang { border: 1px solid var(--gray-l); font-weight: 700; font-size: .82rem; padding: 6px 12px; }
.nav a.lang:hover { background: var(--sky); color: var(--blue); }
.menu-btn { display: none; background: none; border: 1px solid var(--gray-l); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; margin: auto; content: ""; }
.menu-btn span::before { position: absolute; top: -6px; left: 0; }
.menu-btn span::after { position: absolute; top: 6px; left: 0; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(800px 400px at 85% -10%, rgba(30, 123, 224, .28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, #16388a 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.hero::after { /* ロゴのピクセル片をイメージした装飾 */
  content: ""; position: absolute; right: 6%; top: 14%; width: 14px; height: 14px; background: var(--blue-2);
  box-shadow: 30px -26px 0 -2px #4ea0ff, 58px 8px 0 2px #2b6fd0, 92px -34px 0 -3px #7db8ff, 20px 44px 0 0 rgba(78,160,255,.6), 70px 60px 0 -3px rgba(125,184,255,.7);
  opacity: .7;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 88px 96px; }
.eyebrow { font-size: .8rem; letter-spacing: .22em; color: #9cc6ff; font-weight: 700; margin: 0 0 14px; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.35; margin: 0 0 20px; letter-spacing: .02em; }
.hero h1 em { font-style: normal; color: #7db8ff; }
.hero p.lead { font-size: 1.05rem; color: #d3e2fa; margin: 0 0 32px; max-width: 34em; }
.hero-logo { background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); max-width: 460px; margin-inline: auto; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: .98rem; border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue-2); color: #fff; box-shadow: 0 6px 18px rgba(30, 123, 224, .4); }
.btn-primary:hover { background: #3a90f0; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--navy-2); }
.btn-line { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-line:hover { background: var(--sky); }
.btn.is-todo { position: relative; }

/* ---------- sections ---------- */
section { padding-block: 84px; }
section.alt { background: var(--sky-2); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head .en { display: block; font-size: .8rem; letter-spacing: .28em; color: var(--blue-2); font-weight: 700; margin-bottom: 6px; }
.sec-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); line-height: 1.4; }
.sec-head h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); margin: 14px auto 0; }
.sec-head p { color: var(--gray); margin: 16px auto 0; max-width: 40em; }

.grid { display: grid; gap: 24px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--gray-l); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
a.card { text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.card h3 { margin: 12px 0 8px; font-size: 1.15rem; color: var(--navy); }
.card p { margin: 0; color: var(--gray); font-size: .95rem; }
.card ul { margin: 12px 0 0; padding-left: 1.2em; color: var(--gray); font-size: .92rem; }
a.card .more { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: .9rem; color: var(--blue); }
.svc-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, var(--blue), var(--blue-2)); color: #fff; }
.svc-icon svg { width: 28px; height: 28px; }
.svc-icon.gear { background: linear-gradient(140deg, #4b5563, #7b8494); }

/* app cards (top) */
.app-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.app-card img { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 4px 12px rgba(10, 26, 63, .18); }
.app-card h3 { margin: 16px 0 6px; }
.app-card .more { margin-top: auto; padding-top: 14px; font-weight: 700; font-size: .9rem; color: var(--blue); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--sky); color: var(--blue); margin: 0 6px 6px 0; }
.tag.free { background: #e6f6ec; color: #17743b; }

/* strengths / about */
.point { display: flex; gap: 18px; align-items: flex-start; }
.point .num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; }
.point h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy); }
.point p { margin: 0; color: var(--gray); font-size: .95rem; }

table.info { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.info th, table.info td { padding: 16px 20px; border-bottom: 1px solid var(--gray-l); text-align: left; vertical-align: top; }
table.info th { width: 10em; background: var(--sky); color: var(--navy); font-weight: 700; white-space: nowrap; }
table.info tr:last-child th, table.info tr:last-child td { border-bottom: 0; }
.todo { background: #fff7d6; color: #7a5b00; padding: 1px 8px; border-radius: 6px; font-size: .85em; font-weight: 700; }

/* contact */
.contact { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; text-align: center; }
.contact .sec-head h2 { color: #fff; }
.contact .sec-head p, .contact .sec-head .en { color: #b9d3f7; }
.contact .mail { display: inline-block; font-size: clamp(1.1rem, 3vw, 1.6rem); font-weight: 700; color: #fff; text-decoration: none; padding: 18px 34px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px; word-break: break-all; }
.contact .mail:hover { background: rgba(255, 255, 255, .1); }
.contact small { display: block; margin-top: 18px; color: #9fbce6; }

/* ---------- apps page ---------- */
.page-head { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #fff; padding-block: 64px 56px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.page-head p { margin: 0; color: #c7dbf8; max-width: 40em; }
.crumb { font-size: .82rem; color: #9cc6ff; margin-bottom: 14px; }
.crumb a { color: #9cc6ff; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; padding-block: 22px; }
.chips a { display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border: 1px solid var(--gray-l); border-radius: 99px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; background: #fff; }
.chips a:hover { border-color: var(--blue-2); background: var(--sky); }
.chips img { width: 30px; height: 30px; border-radius: 8px; }

.app-detail { padding-block: 72px; border-top: 1px solid var(--gray-l); }
.app-detail:nth-of-type(even) { background: var(--sky-2); }
.app-top { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.app-title { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.app-title img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 6px 18px rgba(10, 26, 63, .22); }
.app-title h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.85rem); color: var(--navy); line-height: 1.3; }
.app-title .sub { display: block; font-size: .85rem; color: var(--gray); font-weight: 400; margin-top: 2px; }
.catch { font-size: 1.15rem; font-weight: 700; color: var(--blue); margin: 0 0 12px; line-height: 1.6; }
.app-top p { margin: 0 0 14px; color: #2b3445; }
.shot { background: linear-gradient(150deg, var(--sky), #fff); border: 1px solid var(--gray-l); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.shot img { border-radius: 8px; margin-inline: auto; border: 1px solid var(--gray-l); }
.shot .frame { aspect-ratio: 3 / 2; background: #fff; border: 1px solid var(--gray-l); border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.shot .frame img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; margin: 0; }
.shot figcaption { text-align: center; font-size: .8rem; color: var(--gray); margin-top: 10px; }
.shot.placeholder { min-height: 260px; display: grid; place-items: center; text-align: center; color: var(--gray); }
.shot.placeholder img { width: 110px; height: 110px; border: 0; border-radius: 26px; margin-bottom: 12px; opacity: .95; }
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 36px 0 28px; padding: 0; list-style: none; }
.feat li { background: #fff; border: 1px solid var(--gray-l); border-radius: 12px; padding: 14px 16px 14px 46px; position: relative; font-size: .93rem; }
.feat li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 16px; height: 9px; border-left: 3px solid var(--blue-2); border-bottom: 3px solid var(--blue-2); transform: rotate(-45deg); }
.feat b { display: block; color: var(--navy); }
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; border: 1px solid var(--gray-l); border-radius: 12px; overflow: hidden; }
.spec th, .spec td { padding: 11px 16px; border-bottom: 1px solid var(--gray-l); text-align: left; vertical-align: top; }
.spec th { width: 9em; background: var(--sky); color: var(--navy); white-space: nowrap; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.get { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.note { font-size: .8rem; color: var(--gray); margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { background: #071230; color: #b7c4de; padding-block: 40px 28px; font-size: .88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.site-footer a { color: #cfe0ff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.copy { width: min(var(--maxw), 100% - 40px); margin: 28px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); color: #7f90b3; font-size: .8rem; }

/* fade-in */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 56px 64px; }
  .hero-logo { max-width: 340px; order: -1; }
  .app-top { grid-template-columns: 1fr; gap: 28px; }
  section { padding-block: 60px; }
}
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--gray-l); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .g4, .g2, .feat { grid-template-columns: 1fr; }
  table.info th { display: block; width: auto; }
  table.info td { display: block; }
  .spec th { width: 7em; }
}

/* ---------- contact form ---------- */
.form { background: #fff; border: 1px solid var(--gray-l); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #b9c3d3; border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(30, 123, 224, .18); }
.field .invalid { border-color: #c0392b; }
.field small { display: block; color: var(--gray); font-size: .8rem; margin-top: 6px; line-height: 1.6; }
.req, .opt { font-size: .7rem; padding: 1px 8px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; font-weight: 700; }
.req { background: #fde8e6; color: #b3261e; }
.opt { background: #eef1f6; color: var(--gray); }
.field.consent label { font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.field.consent input { margin-top: 6px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6em; margin: 0 0 14px; font-weight: 700; font-size: .92rem; }
.status.err { color: #b3261e; }
.status.ok { color: #17743b; }
.todo-box { background: #fff7d6; border: 1px solid #ecd58a; border-radius: 10px; padding: 10px 14px; margin: 0 0 22px; font-size: .88rem; color: #6b5200; }
.thanks { background: #fff; border: 1px solid var(--gray-l); border-radius: var(--radius); padding: 40px 30px; text-align: center; box-shadow: var(--shadow); }
.thanks h2 { margin: 0 0 12px; color: var(--navy); }
button.btn { cursor: pointer; font-family: inherit; }
button.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-cta-lg { padding: 16px 40px; font-size: 1.05rem; background: #fff; color: var(--navy); }
.btn-cta-lg:hover { background: var(--sky); }
@media (max-width: 720px) { .form { padding: 24px 18px; } }
