/* YALUMEI 亞露美 — site styles. One system for both languages.
   Motif: round forms of the products (tablets, capsule ends, algae cells): photographs sit in round "lens"
   frames or capsule-shaped frames, steps run on a capsule track, the AI page centres on a ring.
   Colours from the company brief: algae #174D40, sage #4E8B78, rice #F6F7F2, ink #25332E. */

:root {
  --algae: #174d40;
  --algae-deep: #0f3a30;
  --sage: #4e8b78;
  --sage-soft: #9dc2b0;
  --rice: #f6f7f2;
  --mist: #e8efe9;
  --paper: #ffffff;
  --ink: #25332e;
  --muted: #586a63;
  --line: #d6dfd8;
  --line-strong: #b9c8bd;
  --focus: #c27b2c;

  --font: 'Outfit', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(23, 77, 64, 0.06), 0 8px 24px rgba(23, 77, 64, 0.07);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --sec: clamp(72px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--rice);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: 'palt' 0;
  text-rendering: optimizeLegibility;
}
html[data-lang='en'] body { line-height: 1.65; letter-spacing: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--algae); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { color: var(--sage); }
h1, h2, h3 { color: var(--algae-deep); margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: 0.01em; }
h1, h2 { text-wrap: balance; }
.phrase { display: inline-block; }
p { text-wrap: pretty; }
html[data-lang='en'] h1, html[data-lang='en'] h2, html[data-lang='en'] h3 { line-height: 1.18; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.i { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--algae); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.4em; border-radius: var(--pill);
  font: inherit; font-weight: 600; font-size: 0.98rem; letter-spacing: 0.04em; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), background-color 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn .i { transition: transform 0.2s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-solid { background: var(--algae); color: #fff; }
.btn-solid:hover { background: var(--algae-deep); color: #fff; box-shadow: 0 6px 18px rgba(23, 77, 64, 0.25); transform: translateY(-1px); }
.btn-line { border-color: var(--algae); color: var(--algae); background: transparent; }
.btn-line:hover { background: var(--algae); color: #fff; transform: translateY(-1px); }
.btn-light { background: var(--rice); color: var(--algae-deep); }
.btn-light:hover { background: #fff; color: var(--algae-deep); transform: translateY(-1px); }
.text-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.25s var(--ease); }
.text-link:hover { background-size: 100% 1.5px; }

.chip { display: inline-flex; align-items: center; gap: 0.6em; margin: 0 0 22px; padding: 6px 14px 6px 10px; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); color: var(--sage); font-size: 0.86rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.4; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--mist); }
.chip-soft { margin: 0; background: var(--mist); border-color: transparent; color: var(--algae); padding: 4px 12px; }

/* ---------- header: utility line + masthead ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }
.topline { background: var(--algae-deep); color: #d7e6dd; font-size: 0.84rem; line-height: 1.4; }
.topline-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topline-place { margin: 0; letter-spacing: 0.08em; }
.topline-tools { display: flex; align-items: center; gap: 6px; }
.topline a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; padding: 6px 10px; border-radius: var(--pill); }
.topline a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.lang-switch { border: 1px solid rgba(255, 255, 255, 0.28); font-weight: 600; letter-spacing: 0.06em; }
/* No backdrop-filter here: it would make the fixed mobile menu (.nav) position inside the masthead and clip it. */
.masthead { background: #fff; border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; }
.is-scrolled .masthead { border-color: var(--line); box-shadow: 0 6px 20px rgba(23, 77, 64, 0.06); }
.masthead-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--algae-deep); margin-right: auto; min-height: 48px; }
.brand-logo { display: block; height: 52px; width: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; letter-spacing: 0.04em; }
.nav-links a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current='page']::after { transform: scaleX(1); }
.nav-links a[aria-current='page'] { color: var(--algae); font-weight: 700; }
.nav-cta { min-height: 46px; }
.nav-cta[aria-current='page'] { background: var(--sage); }
.nav-extra { display: none; }
.menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; position: relative; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: var(--algae); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-toggle .bars { top: 50%; margin-top: -1px; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ''; left: 0; margin-left: 0; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.menu-toggle[aria-expanded='true'] .bars { background: transparent; }
.menu-toggle[aria-expanded='true'] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: 112px 0 0 0; z-index: 40; flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) 40px; background: var(--rice); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.25s var(--ease); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { min-height: 58px; padding: 0 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { left: 4px; right: auto; width: 28px; bottom: 12px; }
  .nav-cta { margin-top: 24px; min-height: 54px; }
  .nav-extra { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
  .nav-extra a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; color: var(--algae); font-weight: 600; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .topline-place { display: none; }
  .topline-in { justify-content: flex-end; }
  .masthead-in { min-height: 68px; }
  .nav { inset: 104px 0 0 0; }
  .brand-logo { height: 40px; }
}

/* ---------- section scaffolding ---------- */
main > section { padding: var(--sec) 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 { max-width: 18em; }
.sec-lead { margin: 0; color: var(--muted); max-width: 34em; }
.sec-head:has(> h2:only-child) { grid-template-columns: 1fr; }
.band { position: relative; }
.band-algae { background: var(--algae); color: #e3efe8; }
.band-algae h2, .band-algae h3 { color: #fff; }
.band-algae .sec-lead { color: #cfe2d7; }
.band-mist { background: var(--mist); }
.band-foot { margin-top: 48px; }
.small-note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.center-h { text-align: center; margin-bottom: 48px; }
@media (max-width: 860px) {
  .sec-head { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- photo frames ---------- */
.ph-frame { position: relative; overflow: hidden; background: var(--mist); isolation: isolate; }
.ph-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
a:hover .ph-frame img, .ph-frame:hover img { transform: scale(1.03); }
.ph-fallback { background: radial-gradient(circle at 32% 38%, var(--sage-soft) 0 18%, transparent 19%), radial-gradient(circle at 64% 60%, #c9ddd1 0 24%, transparent 25%), var(--mist); }
.lens { aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--line); }
.lens-sm { width: 64px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--line); }
.lens-xl { width: min(100%, 440px); margin: 11px auto; }
.capsule { border-radius: var(--pill); }
.capsule-tall { aspect-ratio: 3 / 4; border-radius: 240px; }
.capsule-wide { aspect-ratio: 16 / 9; }
.capsule-banner { aspect-ratio: 32 / 9; margin-top: clamp(36px, 5vw, 56px); }
@media (max-width: 640px) { .capsule-banner { aspect-ratio: 16 / 9; } }

/* ---------- home: hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 0 !important; background: linear-gradient(180deg, var(--paper) 0%, var(--rice) 100%); }
.hero-cells { position: absolute; inset: 0; pointer-events: none; }
.hero-cells span { position: absolute; border-radius: 50%; border: 1.5px solid #cfe0d6; }
.hero-cells span:nth-child(1) { width: 560px; height: 560px; right: -140px; top: -120px; background: radial-gradient(circle, #e3eee7 0 52%, transparent 53%); }
.hero-cells span:nth-child(2) { width: 260px; height: 260px; right: 300px; top: 230px; border-color: #d9e7de; }
.hero-cells span:nth-child(3) { width: 120px; height: 120px; right: 170px; top: 380px; background: var(--sage-soft); border: 0; opacity: 0.45; }
.hero-cells span:nth-child(4) { width: 44px; height: 44px; right: 420px; top: 120px; background: var(--sage); border: 0; opacity: 0.5; }
.hero-in { position: relative; }
.hero-brand { display: flex; align-items: baseline; gap: 16px; margin: 0 0 28px; font-weight: 600; letter-spacing: 0.32em; color: var(--sage); font-size: 1rem; }
.hero-brand span { font-weight: 500; letter-spacing: 0.12em; color: var(--muted); font-size: 0.86rem; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4.1rem); line-height: 1.25; max-width: 13em; letter-spacing: 0.02em; }
html[data-lang='en'] .hero h1 { line-height: 1.08; max-width: 15em; letter-spacing: -0.02em; }
.hero-lead { max-width: 40em; margin: 28px 0 36px; font-size: 1.08rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.hero-facts li { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px 30px 0; }
.hero-facts li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.hero-facts .k { font-weight: 700; color: var(--algae); font-size: 1.05rem; letter-spacing: 0.08em; }
.hero-facts .v { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .hero-cells span:nth-child(1) { width: 340px; height: 340px; right: -170px; top: -90px; }
  .hero-cells span:nth-child(2), .hero-cells span:nth-child(4) { display: none; }
  .hero-cells span:nth-child(3) { right: -30px; top: 210px; width: 90px; height: 90px; }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts li, .hero-facts li + li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; gap: 14px; align-items: baseline; flex-wrap: wrap; }
  .hero-facts li:first-child { border-top: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- home: product forms (round lenses) ---------- */
.forms { background: var(--rice); }
.lens-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.lens-card a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: inherit; padding: 8px 8px 0; transition: transform 0.25s var(--ease); }
.lens-card a:hover { transform: translateY(-2px); color: inherit; }
.lens-card .lens { width: min(100%, 300px); margin: 11px; }
.lens-no { margin-top: 26px; font-weight: 600; color: var(--sage); letter-spacing: 0.2em; font-size: 0.9rem; }
.lens-card h3 { margin: 6px 0 10px; font-size: 1.35rem; }
.lens-card p { color: var(--muted); font-size: 0.97rem; max-width: 22em; }
.forms-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 28px; border-top: 1px dashed var(--line-strong); }
@media (max-width: 860px) { .lens-row { grid-template-columns: 1fr; gap: 44px; } .lens-card .lens { width: min(72vw, 280px); } }

/* ---------- AI ring ---------- */
.loop { position: relative; margin: 0; width: min(100%, 420px); aspect-ratio: 1; }
.loop-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.loop-track { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 3 7; opacity: 0.55; }
.loop-core { fill: currentColor; opacity: 0.1; }
.loop-core-in { fill: currentColor; opacity: 0.16; }
.loop-stop { fill: var(--rice); stroke: currentColor; stroke-width: 2; }
.loop-pulse { fill: var(--sage-soft); offset-path: path('M160 34a126 126 0 1 1 0 252a126 126 0 1 1 0-252'); offset-rotate: 0deg; animation: loop-run 9s linear infinite; }
@keyframes loop-run { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.loop-steps { position: absolute; inset: 0; }
.loop-node { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 9.5em; text-align: center; line-height: 1.3; }
.loop-no { font-size: 0.78rem; letter-spacing: 0.18em; font-weight: 600; opacity: 0.75; }
.loop-name { font-weight: 700; font-size: 1.02rem; padding: 6px 12px; border-radius: var(--pill); background: var(--loop-chip, var(--paper)); color: var(--loop-chip-ink, var(--algae-deep)); box-shadow: var(--shadow); white-space: nowrap; }
html[data-lang='en'] .loop-name { white-space: normal; width: max-content; max-width: 8.5em; line-height: 1.2; }
.loop-node-1 { left: 50%; top: 10.6%; transform: translate(-50%, -112%); }
.loop-node-2 { left: 89.4%; top: 50%; transform: translate(-36%, 18%); }
.loop-node-3 { left: 50%; top: 89.4%; transform: translate(-50%, 18%); }
.loop-node-4 { left: 10.6%; top: 50%; transform: translate(-64%, 18%); }
.band-algae .loop { color: #cfe2d7; --loop-chip: #fff; }
@media (max-width: 560px) {
  .loop { width: min(70vw, 300px) !important; }
  .loop-node-2 { transform: translate(-74%, -112%); }
  .loop-node-4 { transform: translate(-26%, -112%); }
  .loop-node-2 .loop-no, .loop-node-4 .loop-no { order: 2; }
  .loop-name { font-size: 0.95rem; padding: 5px 10px; }
  html[data-lang='en'] .loop-name { font-size: 0.85rem; max-width: 8.5em; }
}
.band-algae .loop-stop { fill: var(--algae); }

/* ---------- home: AI band ---------- */
.ai-band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 72px; align-items: center; }
.ai-band .loop { margin: 40px auto 56px; }
.ai-points { display: grid; gap: 0; }
.ai-points li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.ai-points li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.ai-points .num { grid-row: span 2; font-size: 1.9rem; font-weight: 300; color: var(--sage-soft); line-height: 1.1; }
.ai-points p { margin: 0; color: #cfe2d7; }
@media (max-width: 960px) { .ai-band-grid { grid-template-columns: 1fr; } .ai-band .loop { width: min(78vw, 380px); } }

/* ---------- home: research strip ---------- */
.rs-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 72px; align-items: center; }
.rs-grid .capsule-tall { max-width: 420px; width: 100%; }
.rs-side { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.pill-list { display: grid; gap: 14px; width: 100%; }
.pill-list li { display: flex; align-items: center; gap: 18px; min-height: 68px; padding: 10px 28px 10px 12px; border-radius: var(--pill); background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: 1.08rem; color: var(--algae-deep); transition: transform 0.25s var(--ease), border-color 0.2s; }
.pill-list li:hover { transform: translateX(4px); border-color: var(--sage); }
.pill-no { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--mist); color: var(--algae); font-size: 0.9rem; letter-spacing: 0.06em; }
@media (max-width: 860px) { .rs-grid { grid-template-columns: 1fr; } .rs-grid .capsule-tall { aspect-ratio: 16 / 10; border-radius: var(--pill); max-width: none; } }

/* ---------- home: meet (cooperation close) ---------- */
.meet { background: var(--paper); border-top: 1px solid var(--line); }
.meet-in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px 80px; align-items: center; }
.meet-text h2 { margin-bottom: 18px; }
.meet-text p { color: var(--muted); margin-bottom: 30px; max-width: 30em; }
.meet-lines { margin: 0; display: grid; gap: 28px; }
.meet-lines div { padding-left: 24px; border-left: 3px solid var(--sage); }
.meet-lines dt { font-size: 0.86rem; letter-spacing: 0.14em; color: var(--sage); font-weight: 600; }
.meet-lines dd { margin: 4px 0 0; font-size: 1.15rem; color: var(--algae-deep); font-weight: 500; }
.big-tel { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: 0.02em; text-decoration: none; color: var(--algae); line-height: 1.2; }
@media (max-width: 860px) { .meet-in { grid-template-columns: 1fr; } }

/* ---------- inner page head ---------- */
.page-head { padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 88px) !important; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 64px; align-items: end; }
.page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 700; max-width: 15em; }
.page-head .lead { margin: 0; color: var(--muted); }
.head-loop { display: grid; place-items: center; margin-top: 64px; padding: 64px 0 40px; border-radius: var(--r-l); background: var(--mist); }
.head-loop .loop { color: var(--algae); width: min(100%, 380px); }
.form-index { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.form-index a { display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 6px 22px 6px 6px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--rice); text-decoration: none; color: var(--algae-deep); font-weight: 600; transition: transform 0.2s var(--ease), border-color 0.2s; }
.form-index a:hover { transform: translateY(-2px); border-color: var(--sage); color: var(--algae-deep); }
.form-index .lens-sm { width: 52px; }
.fi-no { color: var(--sage); margin-right: 8px; font-size: 0.85rem; letter-spacing: 0.1em; }
@media (max-width: 860px) { .page-head-grid { grid-template-columns: 1fr; } .form-index { flex-direction: column; } .form-index a { width: 100%; } }

/* ---------- products: sheets ---------- */
.sheet { background: var(--rice); }
.sheet-alt { background: var(--paper); }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 88px; align-items: center; }
.sheet-visual { position: relative; }
.sheet-no { position: absolute; left: 0; top: 0; font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 200; color: var(--sage); line-height: 1; letter-spacing: -0.02em; }
.sheet-body h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.sheet-tag { margin: 10px 0 20px; font-size: 1.15rem; color: var(--sage); font-weight: 500; }
.ask { margin: 30px 0 32px; padding: 26px 28px; border-radius: var(--r-m); background: var(--mist); }
.sheet-alt .ask { background: var(--rice); }
.ask h3 { font-size: 1rem; margin-bottom: 12px; color: var(--algae); }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .i { margin-top: 0.38em; color: var(--sage); }
@media (max-width: 860px) { .sheet-grid { grid-template-columns: 1fr; } .sheet-visual { max-width: 380px; margin: 0 auto; width: 100%; } .sheet-visual .lens-xl { width: min(76vw, 320px); } }

.wholesale-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 80px; align-items: center; }
.wholesale-in h2 { margin-bottom: 18px; }
.wholesale-in p { color: #cfe2d7; margin-bottom: 30px; }
@media (max-width: 860px) { .wholesale-in { grid-template-columns: 1fr; } }

.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 80px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.08rem; color: var(--algae-deep); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--mist); color: var(--algae); transition: transform 0.25s var(--ease), background-color 0.2s; }
.faq-list summary:hover .i { background: var(--sage-soft); }
.faq-list details[open] summary .i { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding-right: 54px; }
@media (max-width: 860px) { .faq-in { grid-template-columns: 1fr; } }

/* ---------- research ---------- */
.directions { background: var(--rice); }
.dir-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; counter-reset: dir; }
.dir { padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.dir:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dir-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.dir-ring { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--sage); color: var(--algae); font-weight: 600; font-size: 1.2rem; }
.dir h3 { font-size: 1.32rem; margin-bottom: 12px; }
.dir > p { color: var(--muted); }
.dir-work-label { margin: 22px 0 10px !important; font-size: 0.85rem; letter-spacing: 0.14em; font-weight: 700; color: var(--sage) !important; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 14px; border-radius: var(--pill); border: 1px solid var(--line-strong); font-size: 0.9rem; color: var(--algae-deep); background: var(--rice); line-height: 1.5; }
@media (max-width: 860px) { .dir-grid { grid-template-columns: 1fr; } }
.collab { background: var(--paper); }
.collab-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 80px; align-items: start; }
.collab-head h2 { margin-bottom: 28px; }
.collab-list li { display: flex; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.collab-list li:first-child { border-top: 1px solid var(--line); }
.collab-dot { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--algae); color: #fff; font-size: 0.85rem; font-weight: 600; }
@media (max-width: 860px) { .collab-in { grid-template-columns: 1fr; } }

/* ---------- AI page ---------- */
.apps { background: var(--rice); }
.app-rows { border-top: 1.5px solid var(--algae); }
.app { display: grid; grid-template-columns: 96px minmax(0, 5fr) minmax(0, 5fr); gap: 20px 48px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.app-no { font-size: 2.6rem; font-weight: 200; color: var(--sage); line-height: 1; }
.app-main h3 { font-size: 1.32rem; margin-bottom: 12px; }
.app-main p { color: var(--muted); margin: 0; }
.app-list-label { font-size: 0.85rem; letter-spacing: 0.12em; font-weight: 700; color: var(--sage); margin-bottom: 10px; }
@media (max-width: 960px) { .app { grid-template-columns: 64px 1fr; } .app-list { grid-column: 2; } .app-no { font-size: 2rem; } }
@media (max-width: 560px) { .app { grid-template-columns: 1fr; } .app-list { grid-column: 1; } }
.invest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.invest-grid li { padding: 30px 26px 32px; border-radius: var(--r-l); background: var(--paper); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.invest-grid li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.invest-grid h3 { margin: 22px 0 10px; }
.invest-grid p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.invest-cap { display: block; width: 88px; height: 34px; border-radius: var(--pill); border: 1.5px solid var(--sage); padding: 4px; }
.invest-cap span { display: block; height: 100%; width: var(--fill); min-width: 24px; border-radius: var(--pill); background: var(--sage); transition: width 0.5s var(--ease); }
.invest-grid li:hover .invest-cap span { width: 100%; }
@media (max-width: 1000px) { .invest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .invest-grid { grid-template-columns: 1fr; } }
.principle { background: var(--paper); }
.principle-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px 48px; align-items: start; max-width: 960px; }
.seal { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: var(--mist); color: var(--algae); box-shadow: inset 0 0 0 10px var(--paper), inset 0 0 0 11.5px var(--sage); }
.seal .i { width: 40px; height: 40px; }
.principle h2 { margin-bottom: 16px; }
.principle p { color: var(--muted); margin-bottom: 30px; font-size: 1.08rem; }
@media (max-width: 640px) { .principle-in { grid-template-columns: 1fr; } .seal { width: 84px; height: 84px; } }

/* ---------- cooperation ---------- */
.types { background: var(--rice); }
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.type-card { display: flex; flex-direction: column; height: 100%; padding: 30px 26px 26px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s; }
.type-card:hover { transform: translateY(-2px); border-color: var(--sage); box-shadow: var(--shadow); color: inherit; }
.type-no { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mist); color: var(--algae); font-weight: 600; margin-bottom: 22px; }
.type-card h3 { margin-bottom: 10px; }
.type-card p { color: var(--muted); font-size: 0.97rem; }
.type-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--algae); min-height: 44px; }
.type-card:hover .type-go .i { transform: translateX(3px); }
.type-go .i { transition: transform 0.2s var(--ease); }
@media (max-width: 1000px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .type-grid { grid-template-columns: 1fr; } }
.steps { background: var(--paper); }
.track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 8px; }
.track::before { content: ''; position: absolute; left: 28px; right: 28px; top: 36px; height: 12px; border-radius: var(--pill); background: var(--mist); box-shadow: inset 0 0 0 1px var(--line); }
.track li { position: relative; }
.track-dot { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--algae); color: #fff; font-weight: 600; font-size: 1.15rem; box-shadow: 0 0 0 8px var(--paper); margin-bottom: 26px; }
.track h3 { margin-bottom: 6px; }
.track p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .track { grid-template-columns: 1fr; gap: 0; }
  .track::before { left: 22px; right: auto; top: 28px; bottom: 28px; width: 12px; height: auto; }
  .track li { display: grid; grid-template-columns: 56px 1fr; gap: 0 22px; padding-bottom: 32px; }
  .track-dot { grid-row: span 2; margin: 0; }
}
.inquiry { background: var(--mist); }
.inquiry-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px 64px; align-items: start; }
.inquiry-side h2 { margin-bottom: 14px; }
.inquiry-side > p { color: var(--muted); }
.prepare { margin: 28px 0; padding: 24px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.prepare h3 { font-size: 1rem; color: var(--algae); margin-bottom: 8px; }
.prepare p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 960px) { .inquiry-grid { grid-template-columns: 1fr; } }

/* ---------- form ---------- */
.form-card { padding: clamp(24px, 3.4vw, 44px); border-radius: var(--r-l); background: var(--paper); box-shadow: var(--shadow); }
.form-topic { margin: 0 0 22px; padding: 12px 18px; border-radius: var(--pill); background: var(--mist); color: var(--algae-deep); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--algae-deep); }
.opt { font-weight: 400; color: var(--muted); font-size: 0.88em; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--rice); font: inherit; font-size: 1rem; color: var(--ink); transition: border-color 0.15s, background-color 0.15s; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.7; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--algae); background: #fff; box-shadow: 0 0 0 4px rgba(78, 139, 120, 0.22); }
.hint { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.error { font-size: 0.88rem; color: #a33c25; line-height: 1.5; min-height: 0; }
.error:empty { display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: #a33c25; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 22px 0 0; font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
.form-actions { margin-top: 22px; }
.form-actions .btn { min-width: 200px; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: 12px; }
.form-status.is-error { background: #fbeee9; color: #8a2f1b; }
.form-success { text-align: center; padding: 24px 8px; }
.success-mark { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--algae); color: #fff; margin-bottom: 18px; }
.success-mark .i { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.4rem; margin-bottom: 10px; }
.form-success code { font-family: inherit; font-weight: 700; letter-spacing: 0.08em; color: var(--algae); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* ---------- contact ---------- */
.card-sec { background: var(--rice); }
.card-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 72px; align-items: center; }
.huge-tel { display: inline-block; font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 600; line-height: 1.05; letter-spacing: 0.01em; color: var(--algae); text-decoration: none; background: linear-gradient(var(--sage-soft), var(--sage-soft)) 0 92% / 0 0.12em no-repeat; transition: background-size 0.35s var(--ease); }
.huge-tel:hover { background-size: 100% 0.12em; color: var(--algae); }
.huge-addr { margin: 18px 0 34px; font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--algae-deep); max-width: 22em; line-height: 1.6; }
.call-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.biz-card { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); position: relative; overflow: hidden; }
.biz-card::after { content: ''; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: var(--mist); z-index: 0; }
.facts { position: relative; z-index: 1; margin: 0; }
.facts .row { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
html[data-lang='en'] .facts .row { grid-template-columns: 11em minmax(0, 1fr); }
.facts .row:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 0.92rem; }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts .sub { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.tel { white-space: nowrap; }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts .row, html[data-lang='en'] .facts .row { grid-template-columns: 1fr; } .call-actions .btn { flex: 1 1 100%; } }

/* ---------- about ---------- */
.story { background: var(--rice); }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 88px; align-items: center; }
.story-text h2 { margin-bottom: 22px; }
.story-text p { font-size: 1.05rem; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .story-grid .lens-xl { width: min(70vw, 320px); } }
.ways-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.ways-ring { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; border: 1.5px dashed var(--sage); margin-bottom: 20px; transition: transform 0.4s var(--ease); }
.ways-ring span { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--algae); color: #fff; font-weight: 600; font-size: 1.2rem; }
.ways-grid li:hover .ways-ring { transform: rotate(45deg); }
.ways-grid li:hover .ways-ring span { transform: rotate(-45deg); }
.ways-ring span { transition: transform 0.4s var(--ease); }
.ways-grid h3 { margin-bottom: 10px; }
.ways-grid p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 1000px) { .ways-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ways-grid { grid-template-columns: 1fr; } }
.record { background: var(--paper); }
.record-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 80px; align-items: start; }
.facts-sheet { border-top: 1.5px solid var(--algae); }
.facts-sheet .row { padding: 18px 0; }
@media (max-width: 860px) { .record-grid { grid-template-columns: 1fr; } }

/* ---------- closing band (inner pages) ---------- */
.close-band { background: var(--algae); color: #fff; }
.close-band-in { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; }
.close-band h2 { color: #fff; max-width: 18em; }
.close-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.close-band .btn-solid { background: var(--rice); color: var(--algae-deep); }
.close-band .btn-solid:hover { background: #fff; color: var(--algae-deep); }
.close-band .btn-line { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.close-band .btn-line:hover { background: #fff; color: var(--algae-deep); }
.close-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px; color: #fff; font-weight: 600; text-decoration: none; }
.close-phone:hover { color: var(--sage-soft); }

/* ---------- legal ---------- */
.legal-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 48px !important; }
.legal-col { max-width: calc(780px + 2 * var(--gutter)); }
.legal-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.legal { background: var(--rice); padding-top: 56px !important; }
.legal-sec + .legal-sec { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.legal-sec h2 { font-size: 1.3rem; margin-bottom: 14px; }
.legal-sec ul { display: grid; gap: 10px; margin: 0 0 1em; }
.legal-sec li { position: relative; padding-left: 22px; }
.legal-sec li::before { content: ''; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* ---------- 404 ---------- */
.nf { background: var(--paper); min-height: 60vh; display: grid; align-items: center; }
.nf-in { text-align: center; }
.nf-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 200; color: var(--sage); line-height: 1; margin-bottom: 18px; }
.nf h1 { margin-bottom: 10px; }
.nf-en { color: var(--muted); }
.nf-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------- footer ---------- */
.site-footer { background: var(--mist); color: var(--ink); padding: 72px 0 28px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr); gap: 32px 40px; }
.footer-brand { margin: 0 0 16px; }
.footer-logo { display: block; height: 64px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.footer-line { color: var(--muted); font-size: 0.95rem; }
.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; }
.footer-contact > * { display: inline-flex; gap: 10px; align-items: flex-start; min-height: 32px; }
.footer-contact .i { margin-top: 0.3em; color: var(--sage); }
.footer-contact a { color: var(--ink); text-decoration: none; }
.footer-contact a:hover { color: var(--algae); text-decoration: underline; }
.footer-tax { color: var(--muted); padding-left: calc(1.15em + 10px); }
.footer-nav, .footer-legal { display: flex; flex-direction: column; gap: 2px; }
.footer-nav a, .footer-legal a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; font-size: 0.95rem; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 85% / 0 1px no-repeat; transition: background-size 0.25s var(--ease), color 0.2s; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--algae); background-size: 100% 1px; }
.footer-word { margin: 56px 0 8px; font-size: clamp(4rem, 17.6vw, 15.4rem); font-weight: 600; letter-spacing: 0.06em; line-height: 0.85; color: #d2e2d8; white-space: nowrap; text-align: center; user-select: none; }
.footer-copy { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 0.85rem; }
.footer-credits a { color: inherit; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-nav, .footer-legal { flex-direction: row; flex-wrap: wrap; gap: 0 18px; } .footer-nav a, .footer-legal a { min-height: 44px; } .footer-contact > * { min-height: 44px; align-items: center; } .footer-contact .i { margin-top: 0; } .footer-tax { padding-left: 0; } }

/* ---------- entrance (hero and page heads, once on load) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-enter] .wrap > * { animation: rise 0.7s var(--ease) both; }
  .js [data-enter] .wrap > *:nth-child(2) { animation-delay: 0.08s; }
  .js [data-enter] .wrap > *:nth-child(3) { animation-delay: 0.16s; }
  .js [data-enter] .wrap > *:nth-child(4) { animation-delay: 0.24s; }
  .js [data-enter] .wrap > *:nth-child(5) { animation-delay: 0.32s; }
  .js [data-enter] .wrap > *:nth-child(n + 6) { animation-delay: 0.4s; }
  .js .hero-cells span { animation: drift 1.2s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .loop-pulse { display: none; }
}
