/* lunark.run — 月帆夜航 */
:root {
  --navy: #2E3A59;
  --ink: #1F2840;
  --text: #3A4562;
  --muted: #5A6480;
  --paper: #F6F2EC;
  --paper-2: #EFE9DF;
  --line: #DDD5C8;
  --moon-white: #E8EEF4;
  --orange: #E4572E;
  --link: #B9401D;
  --link-hover: #8F2F14;
  --yellow: #F2C879;
  --star: #8C9BBF;
  --font-sans: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", serif;
  --font-latin: "Instrument Serif", Georgia, serif;
  --gutter: 32px;
}
html[lang="ja"] {
  --font-sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
}
html[lang="en"] {
  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}
@media (max-width: 640px) { :root { --gutter: 20px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); line-height: 1.7; }
img { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.serif { font-family: var(--font-serif); font-weight: 600; }
html[lang="en"] .serif { font-weight: 400; }
.latin { font-family: var(--font-latin); font-weight: 400; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; position: relative; }
.top .logo img { height: 52px; width: auto; display: block; }
@media (max-width: 640px) { .top .logo img { height: 44px; } }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 15px; }
.top nav a { color: var(--navy); }
.top nav a:hover { color: var(--link); text-decoration: none; }
.top nav a[aria-current="page"] { font-weight: 700; }
.langs { display: inline-flex; align-items: center; gap: 2px; border: 1px solid #C9C0B2; border-radius: 999px; padding: 2px; font-size: 13px; }
.langs a, .langs span { padding: 2px 10px; border-radius: 999px; line-height: 1.6; }
.langs span { background: var(--navy); color: var(--paper); }
.dark .top nav a { color: var(--moon-white); }
.dark .top nav a:hover { color: var(--yellow); }
.dark .langs { border-color: #56658C; }
.dark .langs span { background: var(--moon-white); color: var(--navy); }

/* home hero */
.hero { background: var(--navy); color: var(--moon-white); position: relative; overflow: hidden; }
.hero .star { position: absolute; border-radius: 50%; background: var(--star); width: 4px; height: 4px; }
.hero .moon { position: absolute; right: 12%; top: 128px; width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); }
.hero-body { padding-top: 96px; padding-bottom: 128px; position: relative; }
.hero h1 { font-size: clamp(34px, 5.4vw, 52px); line-height: 1.3; max-width: 760px; }
html[lang="en"] .hero h1 { font-size: clamp(42px, 6.5vw, 68px); line-height: 1.1; }
.wave { display: block; width: 100%; height: 40px; }
@media (max-width: 640px) {
  .hero .moon { width: 44px; height: 44px; top: 96px; right: 24px; }
  .hero-body { padding-top: 72px; padding-bottom: 88px; }
}

/* works list */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.section-head h2 { font-size: 32px; }
.section-head .latin { font-size: 20px; color: var(--muted); }
.works { padding-top: 72px; padding-bottom: 72px; }
.work-list { border-top: 1px solid var(--line); }
.work { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--line); }
.work .icon { width: 96px; height: 96px; border-radius: 22px; flex: none; display: flex; align-items: center; justify-content: center; }
.work .icon img { width: 96px; height: 96px; border-radius: 22px; display: block; }
.work .body { flex: 999 1 420px; min-width: 0; }
.work .title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.work h3 { font-family: var(--font-latin); font-weight: 400; font-size: 36px; line-height: 1.1; }
.work h3 a { color: var(--ink); }
.work .desc { margin-top: 10px; font-size: 16px; color: var(--text); max-width: 620px; }
.work .links { flex: 1 1 200px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; font-size: 15px; }
.work .soon { color: var(--muted); }
.pill { font-size: 13px; font-weight: 500; border-radius: 999px; padding: 3px 12px; }
.pill.hot { background: #FBE3DA; color: #9C3516; }
.pill.dev { background: #E3E7F0; color: var(--text); }
.meta { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .work .links { justify-content: flex-start; }
  .work .icon, .work .icon img { width: 72px; height: 72px; border-radius: 17px; }
  .work h3 { font-size: 30px; }
}

/* footers */
.foot-dark { background: var(--navy); color: #C9D2E3; }
.foot-dark .row { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; justify-content: space-between; padding-top: 48px; padding-bottom: 40px; }
.foot-dark .row img { height: 48px; width: auto; display: block; }
.foot-dark .mail { font-size: 18px; color: var(--yellow); }
.foot-dark .copy { border-top: 1px solid #44507A; padding-top: 20px; padding-bottom: 32px; font-size: 13px; color: #A7B1C9; }
.foot-light { border-top: 1px solid var(--line); }
.foot-light .row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.foot-light .row span:last-child { display: flex; flex-wrap: wrap; gap: 24px; }

/* product page */
.p-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.p-hero .intro { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; }
.p-hero .app-icon { width: 112px; height: 112px; border-radius: 26px; }
.p-hero h1 { font-family: var(--font-latin); font-weight: 400; font-size: clamp(52px, 7vw, 72px); line-height: 1; }
.p-hero .tagline { font-size: clamp(24px, 3vw, 30px); line-height: 1.4; }
.p-hero .note { display: flex; flex-direction: column; gap: 10px; font-size: 17px; color: var(--text); max-width: 480px; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 8px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 12px 22px; font-size: 15px; font-weight: 500; }
.store:hover { color: var(--paper); text-decoration: none; background: #2A3554; }
.store[aria-disabled="true"] { cursor: default; }
.shots { flex: 1 1 420px; display: flex; gap: 20px; justify-content: center; align-items: flex-end; }
.shots img { height: auto; aspect-ratio: 1320 / 2868; display: block; border: 8px solid var(--ink); }
.shots .s1 { width: 220px; border-radius: 36px; box-shadow: 0 24px 48px rgba(31, 40, 64, 0.18); }
.shots .s2 { width: 190px; border-radius: 32px; box-shadow: 0 20px 40px rgba(31, 40, 64, 0.16); }
@media (max-width: 640px) { .shots .s2 { display: none; } .shots .s1 { width: 240px; } }

.features { background: var(--paper-2); }
.features .wrap { padding-top: 80px; padding-bottom: 80px; }
.features h2 { font-size: 32px; margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 40px 32px; }
.feat { display: flex; flex-direction: column; gap: 8px; }
.feat .no { font-family: var(--font-latin); font-size: 28px; color: var(--orange); line-height: 1.2; }
.feat h3 { font-size: 19px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feat p { color: var(--text); }
.tag { font-size: 12px; font-weight: 500; color: var(--text); border: 1px solid #B8AE9F; border-radius: 999px; padding: 0 8px; line-height: 20px; }

.closing { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 80px; padding-bottom: 80px; }
.closing > div:first-child { flex: 1 1 520px; }
.closing h2 { font-size: 28px; }
.closing p { margin-top: 12px; font-size: 17px; color: var(--text); max-width: 600px; }
.btns { flex: 0 1 auto; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { border: 1px solid var(--navy); color: var(--navy); border-radius: 12px; padding: 12px 22px; font-size: 15px; }
.btn:hover { background: var(--navy); color: var(--paper); text-decoration: none; }

/* doc pages (privacy / support) */
.crumb { font-size: 14px; color: var(--muted); }
.doc-head { padding-top: 40px; padding-bottom: 24px; }
.doc-head h1 { margin-top: 12px; font-size: clamp(32px, 5vw, 44px); line-height: 1.3; }
.doc-head .date { margin-top: 8px; font-size: 15px; color: var(--muted); }
.doc { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 24px; padding-bottom: 96px; line-height: 1.8; }
.toc { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; border-top: 2px solid var(--navy); padding-top: 16px; }
.toc .label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--link); }
.article { flex: 999 1 560px; min-width: 0; max-width: 720px; font-size: 16.5px; color: #2A3450; }
.summary { background: var(--navy); color: var(--moon-white); border-radius: 16px; padding: 28px 32px; margin-bottom: 48px; }
.summary .k { margin-bottom: 6px; font-size: 13px; letter-spacing: 0.08em; color: var(--yellow); font-weight: 700; }
.summary p:last-child { font-family: var(--font-serif); font-size: 21px; line-height: 1.6; }
.article section { margin-bottom: 40px; scroll-margin-top: 24px; }
.article h2 { font-family: var(--font-serif); font-weight: 600; font-size: 24px; margin-bottom: 12px; }
html[lang="en"] .article h2 { font-weight: 400; font-size: 28px; }
.article p + p { margin-top: 12px; }
.article ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.article p + ul, .article ul + p { margin-top: 12px; }
.article code { font-size: 14px; background: #ECE6DC; padding: 1px 6px; border-radius: 4px; }
.callout { margin-top: 12px; font-size: 15px; color: var(--text); background: var(--paper-2); border-radius: 10px; padding: 14px 18px; }

.support { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 40px; padding-bottom: 96px; line-height: 1.8; }
.support .side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.support .side h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.3; }
.support .side > p { font-size: 16.5px; color: var(--text); }
.contact { background: var(--navy); color: var(--moon-white); border-radius: 16px; padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.contact .k { font-size: 13px; letter-spacing: 0.08em; color: var(--yellow); font-weight: 700; }
.contact a { font-size: 20px; color: var(--moon-white); font-weight: 500; word-break: break-all; }
.contact a:hover { color: var(--yellow); }
.contact .hint { font-size: 14px; color: #C9D2E3; }
.faq { flex: 999 1 560px; min-width: 0; max-width: 720px; }
.faq > h2 { font-size: 26px; margin-bottom: 16px; }
.faq dl { margin: 0; border-top: 1px solid var(--line); font-size: 16.5px; }
.faq .qa { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq dt { font-size: 17px; font-weight: 700; }
.faq dd { margin: 8px 0 0; color: var(--text); }

/* 404 */
.nf { min-height: 100vh; display: flex; flex-direction: column; }
.nf main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-top: 64px; padding-bottom: 96px; }
.nf .code { font-family: var(--font-latin); font-size: 96px; line-height: 1; color: var(--yellow); }
.nf .msgs { display: flex; flex-direction: column; gap: 8px; font-size: 18px; }
.nf .msgs a { color: var(--yellow); }
