/* ANCORA WORKS — minimal, one-screen-to-order layout. Same family as ANCORA PERFORMANCE (gold on ink, paper). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-latin-variable.woff2") format("woff2");
}

:root {
  --ink: #0b0b0c;
  --ink-2: #161618;
  --ink-3: #26262a;
  --gold: #e0b655;
  --gold-light: #f9d97f;
  --gold-text: #7a5a1a;
  --paper: #f6f2ea;
  --card: #fffdf8;
  --line: #e2d9c8;
  --line-dark: #2f2d2a;
  --text: #1b1915;
  --muted: #5f584d;
  --on-dark: #f4efe5;
  --muted-dark: #b5ad9f;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-ja: "Archivo", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --gutter: clamp(16px, 5vw, 40px);
  --section: clamp(56px, 7vw, 96px);
  --maxw: 1080px;
  --radius: 18px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body:lang(ja) { font-family: var(--font-ja); line-height: 1.8; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) p, :lang(ja) li, :lang(ja) summary, :lang(ja) .btn { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ja) h1, :lang(ja) h2 { line-height: 1.35; letter-spacing: 0.01em; }
.num, .nw { white-space: nowrap; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 650; font-stretch: 106%; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: 0; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--gold-light); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.dark { background: var(--ink); color: var(--on-dark); }
.center { text-align: center; }
.sub { color: var(--muted); margin-top: 10px; }
.dark .sub { color: var(--muted-dark); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(11, 11, 12, 0.95); backdrop-filter: blur(8px); color: var(--on-dark); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 24px; }
.brand span { font-family: var(--font); font-weight: 700; font-stretch: 112%; letter-spacing: 0.12em; font-size: 0.98rem; white-space: nowrap; }
.brand b { color: var(--gold); }
.lang { display: flex; gap: 2px; font-size: 0.85rem; font-weight: 650; }
.lang a, .lang span { padding: 4px 8px; border-radius: 6px; text-decoration: none; }
.lang span { background: var(--ink-3); color: var(--gold-light); }
.lang a { color: var(--muted-dark); }
.header-cta { min-height: 38px; padding: 6px 16px; font-size: 0.88rem; }
@media (max-width: 480px) { .header-cta { display: none; } }

/* hero with the three services */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.2rem); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .sub { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(24px, 4vw, 40px); }
@media (max-width: 820px) { .offers { grid-template-columns: 1fr; } }
.offer {
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 6px; position: relative;
}
.offer.pick { border-color: var(--gold); }
.offer .tag { position: absolute; top: -11px; left: 20px; background: var(--gold); color: var(--ink); font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.offer .row { display: flex; align-items: center; gap: 12px; }
.offer .ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--ink-3); color: var(--gold); display: grid; place-items: center; }
.offer .ic svg { width: 20px; height: 20px; }
.offer p { color: var(--muted-dark); font-size: 0.92rem; }
.offer .price { margin: 10px 0 14px; font-weight: 700; font-size: 1.35rem; color: var(--gold-light); }
.offer .price small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted-dark); }
.offer .btn { margin-top: auto; }
.unsure { margin-top: 18px; color: var(--muted-dark); font-size: 0.95rem; }
.unsure a { color: var(--gold-light); font-weight: 650; }


/* details (prices & FAQ) */
.fold { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; text-align: left; }
.fold details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.fold summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 650; list-style: none; position: relative; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--gold-text); font-weight: 400; }
.fold details[open] summary::after { content: "−"; }
.fold .body { padding: 0 18px 18px; color: var(--muted); font-size: 0.95rem; }
.fold .body ul { display: grid; gap: 6px; }
.fold .body li { padding-left: 16px; position: relative; }
.fold .body li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-text); }
.plist { display: grid; gap: 0; margin-bottom: 12px; }
.plist div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.plist dt { margin: 0; }
.plist dd { margin: 0; font-weight: 650; color: var(--text); text-align: right; }

/* final call */
.final h2 { margin-bottom: 8px; }
.final .btn { margin-top: 22px; }

/* footer */
.site-footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--line-dark); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); font-size: 0.85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-footer a { color: var(--on-dark); }

/* phone: a sticky order bar */
.bar { display: none; }
@media (max-width: 700px) {
  .bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 11, 12, 0.96);
    border-top: 1px solid var(--line-dark); transform: translateY(110%); transition: transform .2s;
  }
  .bar.on { transform: none; }
  .bar .btn { flex: 1; min-height: 46px; }
  .site-footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* compact info block */
.narrow { max-width: 760px; }
.slim { padding: clamp(40px, 6vw, 64px) 0; }
.line { margin: 0 auto 14px; color: var(--muted); }
.line b { color: var(--text); font-weight: 650; }
.flow { font-weight: 650; color: var(--text); margin-bottom: 28px; }

.textlink { font-weight: 650; color: var(--gold-text); }

/* legal pages */
.doc h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); margin: 18px 0 20px; }
.doc h2 { font-size: 1.15rem; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--muted); margin-bottom: 10px; }
.doc ul { display: grid; gap: 4px; padding-left: 1.2em; list-style: disc; }
.doc b { color: var(--text); }
.doc .table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.doc table { width: 100%; border-collapse: collapse; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.doc tr:last-child th, .doc tr:last-child td { border-bottom: 0; }
.doc th { width: 34%; font-weight: 650; background: var(--paper); }
.doc td a { overflow-wrap: anywhere; }
@media (max-width: 560px) { .doc th, .doc td { display: block; width: auto; } .doc th { border-bottom: 0; padding-bottom: 2px; background: none; color: var(--gold-text); font-size: 0.85rem; } }
.site-footer .wrap > span:nth-child(2) a { color: var(--muted-dark); }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; }
.notfound img { margin: 0 auto 18px; width: 48px; }
.notfound-links { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
