/* ==========================================================================
   ymen.site — corporate site stylesheet
   brand: #C0341B (AA on white, 5.6:1) / accent #F06000 (large text only)
   ========================================================================== */

:root {
  --red: #c0341b;
  --red-dark: #a32c15;
  --orange: #f06000;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f9fafb;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .04);
  --shadow-md: 0 10px 30px -12px rgba(17, 24, 39, .18);
  --max: 1160px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

.container { width: min(var(--max), 92vw); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { height: 32px; width: auto; }
.brand .rule { width: 1px; height: 26px; background: var(--line); flex: none; }
.brand .legal {
  font-size: 12.5px; color: var(--muted); line-height: 1.35;
  letter-spacing: .01em; white-space: nowrap;
}

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--ink-2); font-size: 15px; position: relative; }
.main-nav a:hover { color: var(--red); }
.main-nav a.active { color: var(--red); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--red);
}
.main-nav .lang {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 13px; font-size: 13px; color: var(--ink-2);
}
.main-nav .lang:hover { border-color: var(--red); color: var(--red); }
.main-nav .lang::after { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(76vh, 600px); display: grid; place-items: center; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 26, .55) 0%, rgba(11, 17, 26, .74) 100%);
}
.hero-inner { position: relative; z-index: 1; text-align: center; color: #fff; padding: 96px 0; }
.hero .eyebrow {
  display: inline-block; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 22px;
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.18;
  font-weight: 700; letter-spacing: -.01em;
}
.hero p {
  margin: 0 auto; max-width: 660px; font-size: clamp(15px, 1.6vw, 17.5px);
  color: rgba(255, 255, 255, .88);
}
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 10px; font-size: 15px; font-weight: 600;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px -10px rgba(192, 52, 27, .7); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- page head (inner pages) ---------- */
.page-head { position: relative; overflow: hidden; background: #0f172a; color: #fff; padding: 70px 0; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: url(../img/hero.webp) center / cover no-repeat; opacity: .3;
}
.page-head::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .55), rgba(15, 23, 42, .88));
}
.page-head .inner { position: relative; z-index: 1; }
.page-head .kicker {
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #ffb9a6; font-weight: 700; margin-bottom: 12px;
}
.page-head h1 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; letter-spacing: -.01em; }
.page-head p { margin: 14px 0 0; max-width: 620px; color: rgba(255, 255, 255, .82); font-size: 16px; }

/* ---------- generic section ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head { max-width: 660px; margin-bottom: 46px; }
.section-head .kicker {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 12px;
}
.section-head h2 {
  margin: 0 0 14px; font-size: clamp(24px, 2.8vw, 33px);
  line-height: 1.25; letter-spacing: -.01em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.about-copy p { margin: 0 0 16px; color: var(--ink-2); font-size: 16px; }
.about-copy p:last-of-type { margin-bottom: 0; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.fact {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 16px; text-align: center;
}
.fact b { display: block; font-size: 20px; color: var(--red); letter-spacing: -.01em; }
.fact span { font-size: 13px; color: var(--muted); }

/* ---------- entry cards ---------- */
.entries { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.entry {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8dbe0; color: var(--ink); }
.entry .idx {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--red); text-transform: uppercase;
}
.entry h3 { margin: 12px 0 8px; font-size: 19px; letter-spacing: -.01em; }
.entry p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.entry .more { font-weight: 600; color: var(--red); font-size: 14.5px; }
.entry .more::after { content: " →"; }

/* ---------- products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8dbe0; }
.card .thumb { aspect-ratio: 1; background: #f3f4f6; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: 0 0 8px; font-size: 16.5px; line-height: 1.35; }
.card p {
  margin: 0 0 16px; font-size: 13.8px; color: var(--muted); line-height: 1.62; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.card .meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px;
}
.card .asin { color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.card .link { font-weight: 600; white-space: nowrap; }
.card .link::after { content: " →"; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.contact-item .label {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); font-weight: 700; margin-bottom: 10px;
}
.contact-item .value { font-size: 15.5px; color: var(--ink); line-height: 1.6; word-break: break-word; }
.contact-item .value a { color: var(--ink); }
.contact-item .value a:hover { color: var(--red); }

.contact-note {
  margin-top: 34px; padding: 24px 26px; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; color: var(--ink-2);
}
.contact-note b { color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: #0f172a; color: rgba(255, 255, 255, .72); padding: 56px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.site-footer img.f-logo { height: 30px; width: auto; margin-bottom: 20px; }
.site-footer .f-legal { font-size: 15px; color: #fff; font-weight: 600; margin: 0 0 6px; }
.site-footer .f-line { font-size: 13.5px; margin: 0 0 4px; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.f-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; }
.f-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px; color: rgba(255, 255, 255, .5);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}

/* ---------- legal page ---------- */
.legal-page { padding: 64px 0 96px; }
.legal-page h1 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 8px; }
.legal-page .updated { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.legal-body { max-width: 780px; }
.legal-body h2 { font-size: 19px; margin: 34px 0 10px; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 15.5px; }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin-bottom: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-media { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .brand .rule, .brand .legal { display: none; }
  .main-nav { gap: 18px; }
  .main-nav a:not(.lang) { font-size: 14px; }
  .section { padding: 60px 0; }
  .facts { grid-template-columns: 1fr; }
  .hero-inner { padding: 72px 0; }
  .page-head { padding: 52px 0; }
}
@media (max-width: 480px) {
  .main-nav { gap: 12px; }
  .main-nav a:not(.lang) { font-size: 13px; }
  .header-inner { min-height: 62px; gap: 10px; }
  .brand img { height: 26px; }
}
