@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Newsreader:ital,wght@1,400;1,500&display=swap');

/* =========================================================
   YUMELINOVA — Design System
   White / clean / honest — SINCE 2026
   Brand palette & type per YUMELINOVA Brand Guidelines v1.0
   ========================================================= */

:root {
  /* Palette — YUMELINOVA */
  --bg:            #ffffff;  /* White  */
  --bg-soft:       #fbfbfc;  /* Paper  */
  --bg-soft-2:     #f4f5f7;  /* light section bg */
  --bg-elevated:   #ffffff;
  --ink:           #15181c;  /* Ink */
  --ink-2:         #3a4049;
  --muted:         #5a626b;  /* Ink Soft */
  --muted-2:       #9aa1ac;
  --line:          #e7e9ec;  /* hairline */
  --line-strong:   #d7dbe1;
  --accent:        #21407a;  /* Ai (indigo) — links / accents */
  --accent-soft:   #e9eef6;
  --link:          #21407a;  /* Ai */
  --red:           #bc002d;  /* Hinomaru — logo dot / Japan accent */
  --red-soft:      #e8344f;

  /* Type — Sora (latin) / Zen Kaku Gothic New (JP) / Newsreader (tagline) */
  --font-sans: "Zen Kaku Gothic New", "Inter", -apple-system,
               BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-tagline: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "Sora", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1080px;
  --maxw-narrow: 760px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,22,26,.04), 0 8px 30px rgba(20,22,26,.06);
  --shadow-soft: 0 1px 2px rgba(20,22,26,.03), 0 4px 16px rgba(20,22,26,.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--link); text-decoration: none; transition: color .15s ease, opacity .15s ease; }
a:hover { opacity: .72; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; letter-spacing: -.01em; font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--maxw-narrow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand .logo {
  font-weight: 800; letter-spacing: .14em; font-size: 17px; color: var(--ink);
}
.brand .since {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em;
  color: var(--muted-2); text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-2); font-size: 14.5px; font-weight: 500; letter-spacing: .02em;
}
.nav-links a:hover { color: var(--ink); opacity: 1; }
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-cta {
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 18px !important; color: var(--ink) !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--ink); color: #fff !important; opacity: 1; border-color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; transition: .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px; box-shadow: var(--shadow-soft);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; }
  .nav-cta { display: inline-block; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 116px 0 96px;
  background:
    radial-gradient(1200px 500px at 80% -10%, #f3f5fb 0%, rgba(243,245,251,0) 60%),
    radial-gradient(900px 400px at 0% 0%, #f7f8fa 0%, rgba(247,248,250,0) 55%),
    var(--bg);
  text-align: center;
}
.hero .eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .26em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); font-weight: 800; letter-spacing: -.02em;
  margin: 0 auto 22px; max-width: 16ch;
}
.hero p.lead {
  font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-2); max-width: 60ch;
  margin: 0 auto 36px;
}
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: .18s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; opacity: 1; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); opacity: 1; }

/* ---------- Sections ---------- */
section.block { padding: 84px 0; }
section.block.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 64ch; margin: 0 auto 54px; }
.section-head .kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 16px; }
.section-head p { color: var(--ink-2); font-size: 17px; margin: 0; }

/* ---------- Principle / feature grid ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-elevated); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .idx {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted-2);
  letter-spacing: .14em; margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin: 0 0 10px; }
.card p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* ---------- App cards ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.app-card .thumb {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: linear-gradient(135deg, #f3f5fb, #eef1f6);
  font-family: var(--font-mono); color: var(--muted); font-size: 13px;
}
.app-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.app-card .app-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.app-card .app-icon {
  width: 56px; height: 56px; border-radius: 14px; margin: -50px 0 14px;
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-soft);
  display: grid; place-items: center; font-weight: 800; color: var(--ink); font-size: 20px;
  overflow: hidden;
}
.app-card .app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-card h3 { font-size: 18px; margin: 0 0 6px; }
.app-card .app-cat {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 12px;
}
.app-card p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.app-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font-size: 11.5px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--ink-2); font-weight: 500;
}
.app-actions { display: flex; gap: 10px; align-items: center; }
.app-actions .price { font-size: 13px; color: var(--muted); font-weight: 600; }

.empty-state {
  text-align: center; padding: 70px 20px; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--bg-soft);
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: var(--maxw-narrow); margin: 0 auto; }
.faq-cat-title {
  font-size: 14px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.faq-cat-title:first-of-type { margin-top: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 40px 20px 4px; font-size: 16.5px; font-weight: 600; color: var(--ink);
  position: relative; line-height: 1.55; font-family: inherit;
}
.faq-q::after {
  content: "+"; position: absolute; right: 6px; top: 18px; font-size: 22px; font-weight: 400;
  color: var(--muted); transition: transform .2s ease;
}
.faq-item.open .faq-q::after { content: "–"; }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
  color: var(--ink-2); font-size: 15.5px;
}
.faq-a-inner { padding: 0 40px 22px 4px; }

/* ---------- Legal / doc pages ---------- */
.doc { padding: 70px 0 96px; }
.doc-head { margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(28px, 5vw, 40px); margin: 0 0 12px; }
.doc-head .meta { color: var(--muted); font-size: 14px; font-family: var(--font-mono); letter-spacing: .04em; }
.doc-body { font-size: 15.5px; color: var(--ink-2); }
.doc-body h2 { font-size: 21px; margin: 44px 0 14px; color: var(--ink); }
.doc-body h3 { font-size: 17px; margin: 28px 0 10px; color: var(--ink); }
.doc-body p { margin: 0 0 16px; }
.doc-body ul, .doc-body ol { margin: 0 0 18px; padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body strong { color: var(--ink); }
.doc-body .note {
  background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--ink);
  border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0; font-size: 14.5px;
}

/* Definition table for 特商法 / 運営者 */
.def-table { width: 100%; border-collapse: collapse; margin: 18px 0 28px; }
.def-table th, .def-table td {
  text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.def-table th {
  width: 34%; color: var(--ink); font-weight: 600; background: var(--bg-soft); white-space: nowrap;
}
.def-table td { color: var(--ink-2); }
@media (max-width: 620px) {
  .def-table, .def-table tbody, .def-table tr, .def-table th, .def-table td { display: block; width: 100%; }
  .def-table th { border-bottom: 0; padding-bottom: 4px; }
  .def-table td { padding-top: 4px; }
}

/* ---------- Contact ---------- */
.contact-card {
  max-width: 560px; margin: 0 auto; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 36px;
  box-shadow: var(--shadow-soft); background: #fff;
}
.contact-card .mail {
  font-family: var(--font-mono); font-size: clamp(17px, 3vw, 22px); font-weight: 600;
  color: var(--ink); margin: 18px 0 26px; word-break: break-all;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 90px 0; background: var(--ink); color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); margin: 0 0 16px; }
.cta-band p { color: rgba(255,255,255,.72); font-size: 17px; margin: 0 0 30px; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: #f0f0f0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 60px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.footer-brand .logo { font-weight: 800; letter-spacing: .14em; font-size: 16px; }
.footer-brand .since {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--muted-2);
  text-transform: uppercase; margin-top: 6px;
}
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 36ch; margin: 14px 0 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 12px; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-2); margin: 0 0 16px; font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--ink); opacity: 1; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px;
}
.footer-bottom .made { font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(16px); 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; }
}

/* ---------- Forms (contact) ---------- */
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow-soft);
}
@media (max-width: 560px) { .form-card { padding: 26px 20px; } }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field .req { color: #c0392b; font-size: 11.5px; margin-left: 6px; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.7; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.checkbox-row { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--ink); }
.checkbox-row label { font-weight: 500; font-size: 14.5px; color: var(--ink-2); margin: 0; }
.form-errors {
  background: #fdecea; border: 1px solid #f3c2bd; color: #a33027;
  border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 24px; font-size: 14px;
}
.form-errors ul { margin: 8px 0 0; padding-left: 20px; }
.form-errors li { margin-bottom: 4px; }
.privacy-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; margin-bottom: 22px; font-size: 13px; color: var(--ink-2);
  max-height: 220px; overflow-y: auto; line-height: 1.8;
}
.privacy-box h3 { font-size: 14px; margin: 0 0 8px; }
.form-submit { width: 100%; justify-content: center; font-size: 16px; padding: 15px; margin-top: 4px; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft);
  display: grid; place-items: center; margin: 0 auto 20px; font-size: 28px; color: var(--ink);
}
.form-success .btn { margin: 4px; }

/* ---------- Error pages (404 / 403 / 500 / 503) ---------- */
.err-brand { position: absolute; top: 28px; left: 0; right: 0; text-align: center; }
.err-brand .brand { display: inline-flex; }
.err-brand .brand-mark-img { height: 20px; margin: 0 auto; }
.err-brand .logo { font-weight: 800; letter-spacing: .14em; font-size: 16px; color: var(--ink); }
.err-brand .logo:hover { opacity: .7; }
.err-brand .since {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--muted-2);
  text-transform: uppercase; display: block; margin-top: 4px;
}
.err-wrap {
  min-height: 78vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 64px;
}
.err-card { max-width: 560px; }
.err-code {
  font-family: var(--font-mono); font-size: clamp(72px, 17vw, 150px); font-weight: 800;
  line-height: 1; letter-spacing: -.04em; color: var(--accent-soft); margin-bottom: 4px;
}
.err-card h1 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 14px; }
.err-card p { color: var(--ink-2); font-size: 16px; margin: 0 0 30px; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Brand logo (header / footer) ---------- */
/* Canonical: icon (Y●M mark) + YUMELINOVA (romaji). Katakana shown on index.html hero only. */
.brand { display: inline-flex; align-items: center; }
.brand-mark-img { height: 22px; width: auto; display: block; }
.brand-wordmark-text {
  font-family: "Sora", var(--font-display), sans-serif;
  font-size: 12px; font-weight: 300; letter-spacing: .16em; color: var(--ink);
  white-space: nowrap; padding-left: 10px; margin-left: 10px;
  border-left: 1px solid var(--line-strong); line-height: 1;
}
/* Footer brand composite */
.footer-brand-row { display: flex; align-items: center; margin-bottom: 12px; }
.footer-brand-mark { height: 28px; width: auto; display: block; }
.footer-brand-wordmark {
  font-family: "Sora", var(--font-display), sans-serif;
  font-size: 14px; font-weight: 300; letter-spacing: .16em; color: var(--ink);
  padding-left: 12px; margin-left: 12px; border-left: 1px solid var(--line-strong); line-height: 1;
}
/* Hero mark (index.html) */
.hero-mark { height: 70px; width: auto; margin: 0 auto 18px; display: block; }
/* Hero identity block (index.html only — katakana併記) */
.hero-identity { margin-bottom: 14px; }
.hero-identity-en {
  font-family: "Sora", var(--font-display), sans-serif;
  font-size: 15px; font-weight: 300; letter-spacing: .18em; color: var(--ink); margin-bottom: 4px;
}
.hero-identity-ja { font-size: 12px; color: var(--muted); letter-spacing: .08em; margin-bottom: 24px; }
@media (max-width: 480px) {
  .brand-mark-img { height: 19px; }
  .brand-wordmark-text { font-size: 11px; padding-left: 8px; margin-left: 8px; }
  .hero-mark { height: 52px; margin-bottom: 14px; }
}
.brand-tagline {
  font-family: var(--font-tagline); font-style: italic; font-weight: 500;
  color: var(--muted); font-size: 15px; letter-spacing: .01em; margin-top: 14px;
}
/* Sora display labels (eyebrows/kickers) */
.eyebrow, .kicker, .section-head .kicker, .app-cat, .footer-col h4 {
  font-family: var(--font-display);
}
