
/* ==========================================================================
   LOVIAN Pro CUSTOM GLOBAL SYSTEM
   ========================================================================== */

/* 1. LANGUAGE FONT SWITCHING (THAI) */
html[data-current-lang="th"] body,
html[data-current-lang="th"] .font-sans,
html[data-current-lang="th"] input,
html[data-current-lang="th"] select,
html[data-current-lang="th"] textarea {
  font-family: "Noto Sans Thai", Helvetica Neue, Arial, Hiragino Kaku Gothic ProN, Hiragino Sans, Meiryo, sans-serif !important;
}
html[data-current-lang="th"] .font-serif {
  font-family: "Noto Serif Thai", "Noto Serif JP", serif !important;
}

/* 3. BASE / LUXURY ANIMATION SYSTEM / A11Y
   (products・contact・company・news・privacy・index の各ページに重複していた
   インライン<style>を集約。ページ固有のルールのみ各HTMLに残しています) */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FBFBFA; }
::-webkit-scrollbar-thumb { background: #2C4A3E; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #866428; }

:root {
  --transition-luxurious: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Progressive reveal contract: visible by default; stage only after html.js-enabled.reveal-ready. */
.reveal-item {
  opacity: 1;
  transform: none;
  transition: var(--transition-luxurious);
  will-change: transform, opacity;
}
html.js-enabled.reveal-ready .reveal-item {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}
html.js-enabled.reveal-ready .reveal-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* テキストマスク・リビール（文字が下のマスクから立ち上がる高級感のある演出）
   .reveal-item と組み合わせて使う場合は、ラッパー自体のフェード／scaleは打ち消し、
   内側の .text-reveal-content だけがマスクから滑り上がる */
.text-reveal-mask {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  /* 上下にはみ出すタイ語や読点、英語のアルファベットのためにマスク領域を微小に広げます */
  padding-top: 0.18em;
  padding-bottom: 0.18em;
  margin-top: -0.18em;
  margin-bottom: -0.18em;
}
.reveal-item.text-reveal-mask {
  opacity: 1;
  transform: none;
}
.text-reveal-content {
  display: block;
  transform: none;
  transition: var(--transition-luxurious);
}
html.js-enabled.reveal-ready .reveal-item.text-reveal-mask {
  opacity: 1;
  transform: none;
}
html.js-enabled.reveal-ready .text-reveal-content {
  transform: translateY(115%);
}
.text-reveal-mask.revealed .text-reveal-content {
  transform: translateY(0);
}
html.js-enabled.reveal-ready .text-reveal-mask.revealed .text-reveal-content {
  transform: translateY(0);
}

/* 区切り線が中央から左右に伸びる演出（.reveal-item と併用） */
.reveal-item.reveal-line {
  opacity: 1;
  transform: none;
}
html.js-enabled.reveal-ready .reveal-item.reveal-line {
  opacity: 1;
  transform: scaleX(0);
}
.reveal-item.reveal-line.revealed {
  transform: scaleX(1);
}
html.js-enabled.reveal-ready .reveal-item.reveal-line.revealed {
  transform: scaleX(1);
}

.focus-visible-luxury:focus-visible {
  outline: 2px solid #866428 !important;
  outline-offset: 4px !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* 5. CARD HOVER / BUTTON TACTILE FEEDBACK（全ページ共通） */
.product-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
}

.focus-visible-luxury {
  transition: transform 0.15s ease;
}
.focus-visible-luxury:active {
  transform: scale(0.96);
}

/* 8. PRODUCTS PAGE - SERIES SELECTOR TABS（ロゴクリックでシリーズの商品を切り替える） */
.series-tab-btn .series-tab-check,
.category-tab-btn .series-tab-check {
  display: none;
}
.series-tab-btn.is-active .series-tab-check,
.category-tab-btn.is-active .series-tab-check {
  display: flex;
}
.series-tab-btn.is-active,
.category-tab-btn.is-active {
  border-color: #866428;
  background-color: rgba(134, 100, 40, 0.05);
}
.product-list-section {
  position: relative;
  margin-top: 5rem;
  padding: 2rem 1rem 1rem;
  border-top: 3px solid #866428;
  border-radius: 0.25rem;
  background:
    linear-gradient(135deg, rgba(134, 100, 40, 0.055), transparent 18rem),
    #f3f0e9;
  box-shadow: 0 18px 50px rgba(44, 74, 62, 0.08);
}
.product-list-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(134, 100, 40, 0.22);
  text-align: center;
}
.product-list-rule {
  width: 3rem;
  height: 2px;
  margin: 1rem auto;
  background: #866428;
}
.product-list-result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid #866428;
  background: rgba(255, 255, 255, 0.72);
}
@media (min-width: 640px) {
  .product-list-section {
    padding: 2.5rem 1.5rem 1.5rem;
  }
}
@media (min-width: 1024px) {
  .product-list-section {
    margin-top: 6rem;
    padding: 3rem 2rem 2rem;
  }
}
#series-panels.series-panels-show-all {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
#series-panels.series-panels-show-all .series-panel {
  display: contents;
}
@media (min-width: 768px) {
  #series-panels.series-panels-show-all { gap: 1.5rem; }
}
@media (min-width: 1024px) {
  #series-panels.series-panels-show-all {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  #series-panels.series-panels-show-all {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.category-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.series-selector-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .category-filter-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .series-selector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .series-selector-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.series-tab-othertext {
  color: #2C4A3E;
}
.series-tab-logo-box-lg {
  height: 3.25rem;
}
@media (min-width: 640px) {
  .series-tab-logo-box-lg {
    height: 3.75rem;
  }
}

/* 9. UTILITY GAP-FILL（精製済みTailwind CSSに未収録のユーティリティを個別追加） */
.justify-end {
  justify-content: flex-end;
}
.border-2 {
  border-width: 2px;
}
.top-2 {
  top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.gap-6 {
  gap: 1.5rem;
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
@media (min-width: 640px) {
  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sm\:p-6 {
    padding: 1.5rem;
  }
  .sm\:text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }
  .sm\:gap-4 {
    gap: 1rem;
  }
}
@media (min-width: 1024px) {
  .lg\:flex-row {
    flex-direction: row;
  }
}
@media (min-width: 475px) and (max-width: 639px) {
  .xs\:p-8 {
    padding: 2rem;
  }
}

/* 10. TRUST / QUALITY CONTENT */
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 9999;
  padding: .75rem 1rem;
  color: #fff;
  background: #173f35;
  font-size: .875rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }
html[lang="th"] .font-serif,
html[lang="th"] .trust-section-heading h2,
html[lang="th"] .trust-card h3,
html[lang="th"] .free-policy-panel h3,
html[lang="th"] .content-panel-heading h2,
html[lang="th"] .content-panel-heading h3,
html[lang="th"] .oem-flow-panel h3 {
  font-family: "Noto Serif Thai", serif;
}

.trust-section {
  margin-top: 5rem;
  padding-top: 5rem;
  border-top: 1px solid rgba(44, 74, 62, .18);
  scroll-margin-top: 7.5rem;
}
.trust-section-heading { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }
.trust-kicker {
  display: block;
  margin-bottom: .8rem;
  color: #866428;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.trust-section-heading h2 {
  margin: 0;
  color: #2c4a3e;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.45;
}
.trust-section-heading p { margin-top: 1rem; color: #4b5563; font-size: .95rem; line-height: 1.9; }
.verified-panel,
.free-policy-panel,
.oem-flow-panel,
.trust-content-panel {
  margin-top: 2rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid #e0e4df;
  background: #fff;
  box-shadow: 0 14px 40px rgba(44, 74, 62, .06);
}
.content-status {
  display: inline-flex;
  align-items: center;
  padding: .42rem .7rem;
  border: 1px solid #c8a760;
  border-radius: 9999px;
  color: #704c00;
  background: #fff1c7;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .04em;
}
.content-status { margin: 0 0 1.4rem; }
.content-status::before { content: "!"; margin-right: .45rem; }
.trust-grid { display: grid; gap: 1px; background: #dfe5e1; border: 1px solid #dfe5e1; }
.trust-grid-four { grid-template-columns: repeat(2, 1fr); }
.trust-card { min-height: 13rem; padding: 1.5rem; background: #fbfbf8; }
.trust-card-index { color: #866428; font-family: "Noto Serif JP", serif; font-size: 1.1rem; }
.trust-card h3,
.oem-support-grid h3 { margin-top: 1.1rem; color: #2c4a3e; font-family: "Noto Serif JP", serif; font-size: 1.1rem; font-weight: 700; }
.trust-card p,
.oem-support-grid p { margin-top: .75rem; color: #58635f; font-size: .9rem; line-height: 1.85; }
.free-policy-panel { color: #f8f5ed; background: #183f35; border-color: #183f35; }
.free-policy-panel .trust-kicker { color: #d8bd81; }
.free-policy-panel h3 { font-family: "Noto Serif JP", serif; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.free-policy-panel > div > p:last-child { margin-top: .7rem; color: #d6e0dc; line-height: 1.8; }
.free-policy-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.2); border-left: 1px solid rgba(255,255,255,.2); }
.free-policy-list li { min-height: 5rem; display: flex; align-items: center; padding: 1rem; border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); font-size: .83rem; font-weight: 600; }
.policy-caution { margin-top: 1rem; color: #d6e0dc; font-size: .78rem; line-height: 1.7; }
.content-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid #d8c28e;
  background: linear-gradient(145deg, #fffdf8 0%, #fff8e9 100%);
  box-shadow: 0 14px 34px rgba(83, 65, 28, .08);
}
.content-surface::before {
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: 4px;
  background: #a8751f;
  content: "";
}
.content-surface > * { position: relative; z-index: 1; }
.trust-content-panel { border-color: #d8c28e; background: linear-gradient(145deg, #fffdf8 0%, #fff8e9 100%); }
.content-note { padding: clamp(1.1rem, 3vw, 1.5rem); margin-bottom: 2rem; }
.content-panel-heading h3,
.oem-flow-panel h3 { color: #2c4a3e; font-family: "Noto Serif JP", serif; font-size: 1.4rem; }
.content-panel-heading > p:last-child { margin-top: .6rem; color: #665d4b; font-size: .9rem; line-height: 1.75; }
.content-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.content-card-grid-three { grid-template-columns: repeat(3, 1fr); }
.content-card {
  position: relative;
  padding: 1.2rem;
  border: 1px solid #e1cfaa;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 8px 22px rgba(83, 65, 28, .06);
}
.content-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3.25rem;
  height: 2px;
  background: #a8751f;
  content: "";
}
.content-card strong { color: #493f2d; font-size: .95rem; }
.content-card > p { margin-top: .55rem; color: #665d4b; font-size: .82rem; line-height: 1.75; }
.product-information-panel { padding: clamp(1.25rem, 4vw, 2.5rem); }
.product-information-panel .content-panel-heading h2 { color: #2c4a3e; }
.product-information-panel .content-card-grid { margin-top: 0; }
.product-information-panel .content-card { padding: clamp(1.35rem, 3vw, 2rem); }
.product-information-panel .content-card h3 { color: #493f2d; }
.product-information-panel .content-card > p { color: #58635f; font-size: .875rem; }
.news-list.content-surface { padding-inline: clamp(.75rem, 2vw, 1.5rem); border-color: #d8c28e; }
.company-profile-section { margin-top: 5rem; }
.oem-support-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.oem-support-grid article { padding: 1.25rem; border-left: 2px solid #866428; background: #fbfbf8; }
.oem-support-grid article > span { color: #866428; font-size: .78rem; font-weight: 700; }
.oem-scope { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #dfe5e1; }
.oem-scope > h3 { color: #2c4a3e; font-family: "Noto Serif JP", serif; font-size: 1.25rem; }
.oem-scope-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.2rem; }
.oem-scope-grid article { padding: 1.1rem; background: #f7f8f5; }
.oem-scope-grid strong { color: #2c4a3e; font-size: .92rem; }
.oem-scope-grid p { margin-top: .45rem; color: #58635f; font-size: .82rem; line-height: 1.75; }
.oem-scope-note { margin-top: 1rem; color: #66746f; font-size: .78rem; line-height: 1.7; }
.oem-flow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 1.5rem; }
.oem-flow-list li { position: relative; min-height: 7rem; padding: 1rem; border: 1px solid #d9e0dc; background: #f7f8f5; }
.oem-flow-list li span { display: block; margin-bottom: .7rem; color: #866428; font-size: .75rem; font-weight: 700; }
.oem-flow-list li strong { color: #2c4a3e; font-size: .88rem; line-height: 1.55; }
.trust-cta { margin-top: 2rem; padding: 2rem; color: #fff; background: #2c4a3e; text-align: center; }
.trust-cta p { font-size: .9rem; line-height: 1.8; }
.trust-cta-button { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; margin-top: 1.2rem; padding: 0 2rem; color: #fff !important; background: #866428; font-size: .88rem; font-weight: 700; }
.trust-cta-button:hover { background: #755723; }

/* Contact product context and anti-spam fields */
.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.selected-product-context {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem;
  border-left: 4px solid #866428;
  background: #f1f4f0;
}
.selected-product-context.hidden { display: none; }
.selected-product-context > div > span { display: block; color: #66746f; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.selected-product-context strong { display: block; margin-top: .35rem; color: #2c4a3e; font-family: "Noto Serif JP", serif; font-size: 1.1rem; white-space: pre-line; }
.selected-product-context p { margin-top: .55rem; color: #58635f; font-size: .8rem; line-height: 1.7; }
.selected-product-context > a { flex-shrink: 0; color: #2c4a3e; font-size: .8rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.contact-security-note { margin-top: 1rem; color: #6b7280; font-size: .78rem; line-height: 1.6; }
#submit-btn:disabled { cursor: not-allowed; opacity: .65; }
#contact-form select,
#contact-form input:not([type="hidden"]):not([type="checkbox"]),
#contact-form textarea,
#contact-form input[type="checkbox"] {
  border-color: #858b94;
}
.text-red-500 { color: #b42318; }
.bg-brand-main.focus-visible-luxury:focus-visible,
.bg-brand-main .focus-visible-luxury:focus-visible {
  outline-color: #e1c98e !important;
}

/* Keep white badge text readable: translucency made contrast image-dependent. */
.bg-brand-accent\/80 { background-color: #866428; }

/* Readability and contrast overrides for legacy utility output. */
.text-\[10px\] { font-size: .75rem; line-height: 1.5; }
.text-\[11px\] { font-size: .8rem; line-height: 1.55; }
.text-xs { font-size: .8rem; line-height: 1.55; }
.text-gray-400 { color: #667085; }
.placeholder-gray-400::placeholder { color: #667085; }
.bg-brand-main .text-brand-accent { color: #e1c98e; }

@media (max-width: 767px) {
  .trust-section { margin-top: 3.5rem; padding-top: 3.5rem; }
  .trust-grid-four,
  .content-card-grid,
  .content-card-grid-three,
  .oem-support-grid,
  .oem-scope-grid { grid-template-columns: 1fr; }
  .free-policy-list,
  .oem-flow-list { grid-template-columns: repeat(2, 1fr); }
  .trust-card { min-height: auto; }
  .product-information-panel { padding: 1.25rem; }
  .selected-product-context { flex-direction: column; }
}

/* Company page — editorial layout aligned to the 1280px home-page shell. */
.company-page {
  color: #143a32;
  background: #fbfaf6;
  overflow-x: hidden;
}
.company-main {
  padding-bottom: clamp(5rem, 9vw, 8rem);
  background: #fbfaf6;
}
.company-shell {
  width: min(1280px, calc(100% - 80px));
  margin-inline: auto;
}
.company-hero { padding-top: clamp(2.5rem, 5vw, 5rem); }
.company-hero-grid {
  display: grid;
  grid-template-columns: minmax(24rem, .82fr) minmax(32rem, 1.18fr);
  min-height: clamp(34rem, 49vw, 42rem);
  background: #f5f1e8;
  overflow: hidden;
}
.company-hero-copy {
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6.5rem);
}
.company-hero-kicker {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #866428;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.company-hero-kicker::before {
  width: 2rem;
  height: 1px;
  background: currentColor;
  content: "";
}
.company-hero-copy h1 {
  margin-top: 1.5rem;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(3.5rem, 6.2vw, 5.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.055em;
}
.company-hero-lead {
  max-width: 26rem;
  margin-top: 2rem;
  color: #435b53;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.9;
  text-wrap: balance;
}
.company-hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
}
.company-hero-facts div { min-width: 0; padding-left: .85rem; border-left: 1px solid rgba(20, 58, 50, .24); }
.company-hero-facts dt { font-family: "Noto Serif JP", serif; font-size: clamp(1rem, 1.7vw, 1.35rem); line-height: 1.1; }
.company-hero-facts dd { margin-top: .45rem; color: #52645e; font-size: .68rem; font-weight: 700; line-height: 1.45; letter-spacing: .08em; overflow-wrap: anywhere; }
.company-hero-visual { position: relative; min-width: 0; min-height: 100%; overflow: hidden; }
.company-hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(13, 43, 37, .08), rgba(13, 43, 37, .02) 48%, rgba(13, 43, 37, .42));
  content: "";
  pointer-events: none;
}
.company-hero-visual > .company-hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(.78) contrast(.96); }
.company-hero-visual figcaption {
  position: absolute;
  z-index: 2;
  top: 2rem;
  right: 2rem;
  padding: .8rem 1rem;
  color: #f5f1e8;
  border: 1px solid rgba(255, 255, 255, .5);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.company-hero-visual figcaption span { margin-right: .35rem; color: #ead39d; font-family: "Noto Serif JP", serif; font-size: 1rem; }
.company-hero-visual .company-fuji-mark {
  position: absolute;
  z-index: 2;
  right: 2rem;
  bottom: 2rem;
  width: clamp(9.5rem, 15vw, 12rem);
  height: auto;
  opacity: .84;
}
.company-section-nav {
  position: sticky;
  z-index: 30;
  top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(251, 250, 246, .94);
  border-bottom: 1px solid rgba(20, 58, 50, .18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.company-section-nav a {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: .75rem;
  align-items: center;
  min-width: 0;
  padding: 1.15rem clamp(.8rem, 2vw, 1.5rem);
  border-left: 1px solid rgba(20, 58, 50, .12);
  transition: color .25s ease, background .25s ease;
}
.company-section-nav a:last-child { border-right: 1px solid rgba(20, 58, 50, .12); }
.company-section-nav a:hover,
.company-section-nav a:focus-visible { color: #704f17; background: #f2ead8; }
.company-section-nav span { color: #866428; font-family: "Noto Serif JP", serif; font-size: .75rem; }
.company-section-nav b { min-width: 0; font-size: .8rem; font-weight: 700; overflow-wrap: anywhere; }
.company-section-nav small { color: #66746f; font-size: .65rem; letter-spacing: .1em; }
.company-message-section {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(6rem, 10vw, 9rem);
  border-bottom: 1px solid rgba(20, 58, 50, .18);
  scroll-margin-top: 9rem;
}
.company-section-index {
  display: block;
  color: #866428;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
}
.company-message-heading h2 {
  max-width: 32rem;
  margin-top: 1.4rem;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -.025em;
}
html[lang="ja"] .company-message-heading h2 {
  font-size: clamp(1.625rem, 3.2vw, 2.55rem);
  white-space: pre;
  text-wrap: nowrap;
}
.company-president-photo {
  position: relative;
  width: min(100%, 23rem);
  aspect-ratio: 4 / 5;
  margin: clamp(2.5rem, 4vw, 4rem) 0 0;
  overflow: hidden;
  background: #e8e3d9;
}
.company-president-photo::after,
.company-photo-card::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(7, 27, 23, .74));
  content: "";
  pointer-events: none;
}
.company-photo-card::after { height: 60%; }
.company-president-photo img,
.company-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.company-president-photo img { object-position: 50% 22%; filter: saturate(.76) contrast(.97); }
.company-president-photo figcaption,
.company-photo-card figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .38);
}
.company-president-photo figcaption span {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
}
.company-message-copy { padding-top: 2.25rem; }
.company-message-copy > p:not(.company-president-signature) { margin-top: 1.35rem; color: #52645e; font-size: clamp(.9rem, 1.1vw, 1rem); line-height: 2.15; }
.company-message-copy > p:first-child { margin-top: 0; }
.company-president-signature { margin-top: 2.5rem; color: #143a32; font-family: "Noto Serif JP", serif; font-weight: 700; text-align: right; }
.company-page .trust-section {
  margin-top: 0;
  padding-block: clamp(6rem, 10vw, 9rem);
  border-top: 0;
  scroll-margin-top: 8.5rem;
}
.company-page #quality {
  margin-top: clamp(4rem, 7vw, 6rem);
  padding-inline: clamp(2rem, 5vw, 5rem);
  background: #f1f4f0;
}
.company-page .trust-section-heading {
  display: grid;
  grid-template-columns: minmax(12rem, .34fr) minmax(0, .66fr);
  column-gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
  max-width: none;
  margin: 0 0 2.5rem;
  text-align: left;
}
.company-page .trust-section-heading .company-section-index { grid-row: 1 / 3; padding-top: .7rem; }
.company-page .trust-section-heading h2 {
  grid-column: 2;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.035em;
}
.company-page .trust-section-heading > p:last-child { grid-column: 2; max-width: 50rem; margin-top: 1.5rem; font-size: .95rem; line-height: 2; }
.company-photo-gallery {
  display: grid;
  grid-template-columns: minmax(0, 394px) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: end;
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
}
.company-photo-card {
  position: relative;
  height: clamp(18rem, 26vw, 24rem);
  margin: 0;
  overflow: hidden;
  background: #dce4df;
}
.company-photo-card img { object-position: 50% 50%; filter: saturate(.76) contrast(.98); }
.company-photo-card figcaption { padding: clamp(1rem, 2vw, 1.5rem); }
.company-photo-card figcaption span { max-width: 65%; font-size: .64rem; font-weight: 700; line-height: 1.5; letter-spacing: .14em; }
.company-photo-card figcaption strong { font-family: "Noto Serif JP", serif; font-size: clamp(.95rem, 1.5vw, 1.2rem); font-weight: 500; text-align: right; }
.company-page .verified-panel,
.company-page .free-policy-panel,
.company-page .oem-flow-panel,
.company-page .trust-content-panel { margin-top: clamp(2.5rem, 5vw, 4rem); }
.company-page .trust-grid-four { grid-template-columns: repeat(2, 1fr); }
.company-page .trust-card { min-height: 17rem; padding: clamp(1.25rem, 2.5vw, 2rem); }
.company-page .trust-card h3 { font-size: 1.05rem; line-height: 1.7; }
.company-page .free-policy-panel { padding: clamp(2rem, 5vw, 4rem); }
.company-profile-section { margin-top: 0; padding-block: clamp(6rem, 10vw, 9rem); scroll-margin-top: 8.5rem; }
.company-profile-heading {
  display: grid;
  grid-template-columns: minmax(12rem, .34fr) minmax(0, .66fr);
  column-gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}
.company-profile-heading .company-section-index { grid-row: 1 / 3; align-self: start; padding-top: .7rem; }
.company-profile-heading h2 { grid-column: 2; font-family: "Noto Serif JP", serif; font-size: clamp(2.25rem, 4.5vw, 4rem); font-weight: 400; line-height: 1.35; letter-spacing: -.035em; }
.company-profile-heading > p { grid-column: 2; margin-top: .8rem; color: #66746f; font-size: .72rem; font-weight: 700; letter-spacing: .13em; }
.company-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.company-entity-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid rgba(20, 58, 50, .18); background: #fff; box-shadow: 0 18px 50px rgba(20, 58, 50, .06); }
.company-entity-heading {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: start;
  min-height: 7rem;
  padding: 1.75rem;
  border-bottom: 1px solid rgba(20, 58, 50, .14);
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.55;
}
.company-entity-heading small { grid-column: 2; margin-top: -.55rem; color: #66746f; font-family: Helvetica Neue, Arial, sans-serif; font-size: .75rem; font-weight: 500; line-height: 1.55; }
.company-entity-number { color: #866428; font-size: .8rem; font-weight: 500; }
.company-entity-data { overflow: hidden; }
.company-entity-data dt { color: #2c4a3e; }
.company-entity-data dd { line-height: 1.75; overflow-wrap: anywhere; }
.company-address-value { display: grid; gap: .45rem; }
.company-phone-link {
  display: inline-flex;
  width: fit-content;
  min-height: 2.75rem;
  align-items: center;
  color: #2c4a3e;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(134, 100, 40, .5);
  text-underline-offset: .22em;
}
.company-phone-link:hover { color: #704f17; text-decoration-color: currentColor; }
.company-phone-link:focus-visible { outline: 2px solid #866428; outline-offset: 3px; }
.company-entity-description { flex: 1; margin-top: auto; padding: clamp(1.5rem, 3vw, 2.25rem); color: #52645e; background: #f5f1e8; font-size: .88rem; line-height: 2; }
.company-page #oem-capability { border-top: 1px solid rgba(20, 58, 50, .18); }
.company-page .oem-support-grid article { min-height: 13rem; padding: 1.6rem; }
.company-page .oem-flow-list li { min-height: 8rem; padding: 1.25rem; }
.oem-cases-coming {
  display: grid;
  grid-template-columns: minmax(17rem, .74fr) minmax(0, 1.26fr);
  min-height: clamp(24rem, 35vw, 29rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  border: 1px solid rgba(134, 100, 40, .34);
  background: #fffdf8;
  box-shadow: 0 20px 55px rgba(20, 58, 50, .08);
}
.oem-cases-coming-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(2rem, 4vw, 3.5rem);
  color: #f5f1e8;
  background: #143a32;
}
.oem-cases-coming-visual > span {
  color: #d8bd81;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
}
.oem-cases-coming-visual strong {
  margin-block: auto;
  padding-block: 2rem;
  font-family: "Noto Serif JP", Georgia, serif;
  font-size: clamp(3rem, 5.6vw, 5.2rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.055em;
}
.oem-cases-coming-visual i {
  display: block;
  width: 4.5rem;
  height: 1px;
  background: #d8bd81;
}
.oem-cases-coming-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.25rem, 6vw, 5.5rem);
}
.oem-cases-coming-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: .45rem;
  padding: .48rem .78rem;
  color: #704f17;
  border: 1px solid rgba(134, 100, 40, .42);
  border-radius: 9999px;
  background: #f7edda;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .04em;
}
.oem-cases-coming-status::before {
  width: .45rem;
  height: .45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a8751f;
  content: "";
}
.oem-cases-coming-copy h3 {
  margin-top: 1.6rem;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.025em;
}
.oem-cases-coming-copy > p:last-child {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: #52645e;
  font-size: .95rem;
  line-height: 2;
}
.company-page .trust-cta { padding: clamp(2rem, 5vw, 4rem); }

.company-page :where(p, dd) { text-wrap: pretty; }
.company-page :where(h1, h2, h3) { text-wrap: balance; }
.company-page .company-hero-lead { text-wrap: balance; }
html[lang="ja"] .company-page :where(h1, h2, h3, p, dd, a, b, strong, small, address) {
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
html[lang="ja"] .company-hero-copy h1 {
  white-space: nowrap;
  text-wrap: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

html[lang="th"] .company-page :is(.company-hero-copy h1, .company-hero-lead, .company-message-heading h2, .company-president-signature, .company-photo-card figcaption strong, .company-profile-heading h2, .company-entity-heading, .oem-cases-coming-copy h3) {
  font-family: "Noto Serif Thai", serif;
}

@media (max-width: 1100px) {
  .company-hero-grid { grid-template-columns: minmax(20rem, .88fr) minmax(26rem, 1.12fr); }
  .company-hero-copy { padding: 3.5rem; }
  .company-page .trust-grid-four,
  .company-page .oem-support-grid { grid-template-columns: repeat(2, 1fr); }
  .company-profile-grid { grid-template-columns: 1fr; }
}

@media (min-width: 901px) and (max-width: 1100px) {
  html[lang="ja"] .company-hero-copy h1 { font-size: clamp(3.25rem, 6vw, 4.2rem); }
}

@media (max-width: 900px) {
  .company-shell { width: min(calc(100% - 40px), 720px); }
  .company-hero { padding-top: 1.5rem; }
  .company-hero-grid { grid-template-columns: 1fr; }
  .company-hero-copy { min-height: 28rem; padding: clamp(2rem, 8vw, 4rem); }
  .company-hero-visual { min-height: clamp(32rem, 88vw, 44rem); }
  .company-section-nav { position: relative; top: auto; grid-template-columns: repeat(2, 1fr); }
  .company-section-nav a:nth-child(3),
  .company-section-nav a:nth-child(4) { border-top: 1px solid rgba(20, 58, 50, .12); }
  .company-message-section { grid-template-columns: 1fr; gap: 2rem; }
  .company-message-heading h2 { max-width: 38rem; }
  .company-president-photo { width: min(100%, 28rem); }
  .company-message-copy { max-width: 42rem; padding-top: 0; }
  .company-photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-photo-card { height: auto; aspect-ratio: 4 / 3; }
  .company-page .trust-section-heading,
  .company-profile-heading { grid-template-columns: 1fr; }
  .company-page .trust-section-heading .company-section-index,
  .company-profile-heading .company-section-index { grid-row: auto; padding-top: 0; }
  .company-page .trust-section-heading h2,
  .company-page .trust-section-heading > p:last-child,
  .company-profile-heading h2,
  .company-profile-heading > p { grid-column: 1; }
  .company-page .trust-section-heading h2,
  .company-profile-heading h2 { margin-top: 1.2rem; }
  .oem-cases-coming { grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr); min-height: 22rem; }
}

@media (max-width: 600px) {
  .company-shell { width: calc(100% - 40px); }
  .company-hero-copy { min-height: 24rem; padding: 2rem; }
  .company-hero-copy h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  html[lang="ja"] .company-hero-copy h1 { font-size: clamp(2.75rem, 14.5vw, 4.3rem); }
  .company-hero-lead { margin-top: 1.4rem; font-size: 1rem; }
  .company-hero-facts { gap: .6rem; margin-top: 2.5rem; }
  .company-hero-facts div { padding-left: .6rem; }
  .company-hero-facts dd { font-size: .6rem; }
  .company-hero-visual { min-height: clamp(26rem, 125vw, 34rem); }
  .company-hero-visual figcaption { top: 1rem; right: 1rem; }
  .company-hero-visual .company-fuji-mark { right: 1rem; bottom: 1rem; width: 8.5rem; }
  .company-section-nav a { grid-template-columns: 1.25rem 1fr; padding: .9rem .75rem; }
  .company-section-nav small { display: none; }
  .company-message-section,
  .company-profile-section,
  .company-page .trust-section { padding-block: 4.5rem; }
  .company-president-photo { width: 100%; aspect-ratio: 4 / 5; margin-top: 2rem; }
  .company-page #quality { margin-top: 2rem; padding-inline: 1.25rem; }
  .company-page .trust-section-heading h2,
  .company-profile-heading h2 { font-size: 2.25rem; }
  .company-page .trust-grid-four,
  .company-page .oem-support-grid { grid-template-columns: 1fr; }
  .company-photo-gallery { grid-template-columns: 1fr; gap: .75rem; margin-top: 2.5rem; }
  .company-photo-card { height: auto; aspect-ratio: 4 / 3; }
  .company-photo-card figcaption { align-items: end; }
  .company-photo-card figcaption span { max-width: 58%; }
  .company-page .free-policy-list,
  .company-page .oem-flow-list { grid-template-columns: 1fr; }
  .oem-cases-coming { grid-template-columns: 1fr; min-height: 0; }
  .oem-cases-coming-visual { min-height: 14rem; padding: 1.75rem; }
  .oem-cases-coming-visual strong { padding-block: 1.5rem; font-size: clamp(3rem, 16vw, 4rem); }
  .oem-cases-coming-copy { padding: 2rem 1.5rem 2.25rem; }
  .oem-cases-coming-copy h3 { font-size: 2rem; }
  .company-entity-heading { min-height: 0; padding: 1.4rem; }
  .company-entity-data dl > div { grid-template-columns: 1fr; gap: .45rem; }
  .company-entity-data dt,
  .company-entity-data dd { grid-column: 1; }
}
/* LOVIAN Pro — 2026 renewal */
:root {
  --ink: #143a32;
  --ink-deep: #0d2b25;
  --cream: #f5f1e8;
  --paper: #fbfaf6;
  --white: #fff;
  --sage: #c9d6c8;
  --mist: #dce9e6;
  --gold: #866428;
  --line: rgba(20, 58, 50, .18);
  --text-muted: #52645e;
  --text-soft: #4f655f;
  --accent-light: #e1c98e;
  --line-on-dark: rgba(255, 255, 255, .24);
  --surface-light: rgba(251, 250, 246, .86);
  --surface-dark: rgba(13, 43, 37, .78);
  --shadow-panel-light: 0 24px 70px rgba(13, 43, 37, .08);
  --shadow-panel-dark: 0 28px 70px rgba(4, 24, 20, .18);
  --focus-ring-light: #143a32;
  --focus-ring-dark: #e1c98e;
  --body-copy-size: 14px;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html { scroll-behavior: smooth; }

body.renewal-home {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Scroll-driven frame backgrounds (home page only) */
.renewal-home #main-content {
  position: relative;
  isolation: isolate;
}

.home-frame-layer {
  --frame-scale: 1.025;
  --frame-brightness: 1;
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  background: var(--ink-deep);
  pointer-events: none;
  transition: none;
}

.home-frame-layer.is-active { opacity: 1; }

.home-frame-poster,
.home-frame-canvas {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  transform: scale(var(--frame-scale));
  transform-origin: var(--frame-focus, 50%) center;
  filter: brightness(var(--frame-brightness)) saturate(.9) contrast(1.02);
  transition: none;
  will-change: transform;
}

.home-frame-poster {
  z-index: 0;
  opacity: 1;
  object-fit: cover;
  object-position: var(--frame-focus, 50%) center;
}

.home-frame-canvas {
  z-index: 1;
  opacity: 0;
}

.home-frame-canvas.is-current { z-index: 1; }
.home-frame-canvas.is-next { z-index: 2; }
.home-frame-canvas.is-ready { opacity: 1; }

.frame-target {
  position: relative;
  z-index: 1;
}

.hero-visual.mobile-original-only,
.origin-image.mobile-original-only { display: none; }

/* Mobile-home additions remain inert outside the dedicated mobile stylesheet. */
.mobile-home-only { display: none; }

html.frames-ready .home-hero.frame-target {
  background: linear-gradient(90deg, rgba(245,241,232,.97) 0%, rgba(245,241,232,.9) 37%, rgba(245,241,232,.48) 65%, rgba(245,241,232,.16) 100%);
}

html.frames-ready .philosophy.frame-target {
  background: rgba(251,250,246,.18);
}

html.frames-ready .philosophy.frame-target .philosophy-grid > *,
html.frames-ready .philosophy.frame-target .principle-grid,
html.frames-ready .philosophy.frame-target .free-standard {
  background: var(--surface-light);
  box-shadow: var(--shadow-panel-light);
}

html.frames-ready .philosophy.frame-target .philosophy-grid > * {
  padding: clamp(34px, 4.5vw, 62px);
}

html.frames-ready .philosophy.frame-target .philosophy-body {
  max-width: none;
}

html.frames-ready .products-showcase.frame-target {
  background: rgba(233,229,220,.66);
}

html.frames-ready .origin-story.frame-target {
  gap: clamp(20px, 3vw, 46px);
  padding: clamp(26px, 4vw, 62px);
  background: rgba(13,43,37,.12);
}

html.frames-ready .origin-story.frame-target .origin-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vw, 104px) clamp(28px, 6vw, 88px);
  background: var(--surface-dark);
  box-shadow: var(--shadow-panel-dark);
}

html.frames-ready .origin-story.frame-target .origin-copy > p:not(.eyebrow) {
  color: rgba(245,241,232,.84);
}

html.frames-ready .oem-section.frame-target {
  background: rgba(251,250,246,.1);
}

html.frames-ready .oem-section.frame-target .oem-panel {
  border: 1px solid rgba(255,255,255,.3);
  background: linear-gradient(90deg, rgba(13,43,37,.92) 0%, rgba(13,43,37,.8) 48%, rgba(13,43,37,.56) 100%);
  box-shadow: 0 32px 80px rgba(4,24,20,.2);
}

html.frames-ready .oem-section.frame-target .oem-steps {
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line-on-dark);
  background: transparent;
  box-shadow: none;
}

html.frames-ready .news-section.frame-target {
  background: rgba(251,250,246,.12);
}

html.frames-ready .news-section.frame-target .news-grid {
  padding: clamp(38px, 5vw, 72px);
  border: 1px solid rgba(255,255,255,.6);
  background: linear-gradient(105deg, rgba(251,250,246,.9), rgba(251,250,246,.72));
  box-shadow: 0 28px 70px rgba(13,43,37,.1);
}

html.frames-ready .contact-banner.frame-target {
  background: rgba(201,214,200,.14);
}

html.frames-ready .contact-banner.frame-target .contact-banner-inner {
  padding: clamp(36px, 5vw, 68px);
  border: 1px solid rgba(255,255,255,.52);
  background: rgba(201,214,200,.78);
  box-shadow: 0 28px 70px rgba(13,43,37,.12);
}

/* Originと同じ濃色パネル意匠で、8つの不使用を明確に見せる */
html.frames-ready .philosophy.frame-target .free-standard {
  padding: clamp(56px, 7vw, 104px) clamp(28px, 6vw, 88px);
  color: var(--cream);
  border: 0;
  background: var(--surface-dark);
  box-shadow: var(--shadow-panel-dark);
}

html.frames-ready .philosophy.frame-target .free-standard .eyebrow { color: #a8b9b1; }
html.frames-ready .philosophy.frame-target .free-standard-intro h3 {
  color: var(--cream);
  font-size: clamp(36px, 4vw, 62px);
}
html.frames-ready .philosophy.frame-target .free-standard-intro > p:last-child { color: rgba(245,241,232,.84); }
html.frames-ready .philosophy.frame-target .free-standard-list {
  border-top-color: var(--line-on-dark);
  border-left-color: var(--line-on-dark);
  background: var(--ink-deep);
}
html.frames-ready .philosophy.frame-target .free-standard-list li {
  border-right-color: var(--line-on-dark);
  border-bottom-color: var(--line-on-dark);
  color: var(--accent-light);
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 400;
  line-height: 1.6;
}
html.frames-ready .philosophy.frame-target .free-standard-list li::before { color: var(--accent-light); }
html.frames-ready .philosophy.frame-target .free-standard-foot p { color: rgba(245,241,232,.65); }
html.frames-ready .philosophy.frame-target .free-standard .text-link { color: var(--cream); }

html.frame-portrait .home-frame-poster {
  inset: -2%;
  width: 104%;
  height: 104%;
  object-fit: cover;
  filter: brightness(var(--frame-brightness)) saturate(.9) contrast(1.02);
}

html.frames-static .home-frame-poster {
  inset: -2%;
  width: 104%;
  height: 104%;
  transform: none;
  opacity: 1;
  filter: brightness(var(--frame-brightness)) saturate(.9) contrast(1.02);
}

html.frames-static .home-frame-canvas { display: none; }

.renewal-home p { text-wrap: pretty; }
.hero-title,
.section-heading h2,
.origin-copy h2,
.oem-copy h2,
.contact-banner h2,
.large-copy { text-wrap: balance; }

/* 日本語は単語・文節の途中を避け、意味のまとまりで改行する */
html[lang="ja"] .renewal-home :where(h1, h2, h3, p, dd, a, strong, small, address) {
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: normal;
}

body.menu-active { overflow: hidden; }

.renewal-home *,
.renewal-home *::before,
.renewal-home *::after,
.site-header *,
.site-footer * { box-sizing: border-box; }

.renewal-home img,
.site-header img,
.site-footer img { display: block; max-width: 100%; }

.renewal-home a,
.site-header a,
.site-footer a { color: inherit; text-decoration: none; }

body.renewal-home :where(a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid var(--focus-ring-light);
  outline-offset: 4px;
}

body.renewal-home :where(.mobile-navigation, .origin-copy, .oem-panel, .site-footer)
  :where(a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline-color: var(--focus-ring-dark);
}

@media (min-width: 601px) {
  html.frames-ready body.renewal-home .free-standard
    :where(a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline-color: var(--focus-ring-dark);
  }
}

.product-rail .feature-product:focus-visible { outline-offset: -4px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.home-shell { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.section-space { padding-block: clamp(96px, 11vw, 180px); }
.eyebrow {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .24em;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; margin: 0 12px 3px 0; background: currentColor; }
.section-heading h2,
.origin-copy h2,
.oem-copy h2,
.contact-banner h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: -.03em;
}
.section-heading i,
.origin-copy i,
.oem-copy i,
.contact-banner i { color: var(--gold); font-style: normal; }

/* Shared header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 88px;
  border-bottom: 1px solid rgba(20, 58, 50, .12);
  background: rgba(251, 250, 246, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: height .35s ease, box-shadow .35s ease, background .35s ease;
}
.site-header.is-scrolled { height: 72px; background: rgba(251, 250, 246, .96); box-shadow: 0 10px 35px rgba(13, 43, 37, .06); }
.site-header-inner { height: 100%; padding: 0 clamp(20px, 3.2vw, 52px); display: flex; align-items: center; }
.site-brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.site-brand .site-logo { width: clamp(142px, 12vw, 178px); height: auto; }
.site-brand-divider { width: 1px; height: 28px; background: var(--line); }
.site-brand .site-fuji-logo { width: clamp(66px, 5.7vw, 82px); height: auto; }
.desktop-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); margin-left: auto; }
.desktop-nav a { position: relative; display: grid; gap: 1px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.desktop-nav a span { color: #52645e; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.desktop-nav a b { font-size: inherit; font-weight: 600; white-space: nowrap; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header-languages { display: flex; align-items: center; gap: 5px; margin-left: clamp(18px, 2.2vw, 34px); padding-left: clamp(18px, 2.2vw, 34px); border-left: 1px solid var(--line); color: #52645e; font-size: 12px; }
.lang-switch-btn { padding: 5px 2px; border: 0; border-bottom: 1px solid transparent; color: #52645e; background: transparent; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .06em; cursor: pointer; transition: color .25s ease, border-color .25s ease; }
.lang-switch-btn:hover,
.lang-switch-btn:focus-visible,
.lang-switch-btn[aria-current="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.header-contact { width: 136px; height: 44px; margin-left: clamp(16px, 2vw, 30px); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #fff !important; background: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .06em; transition: color .3s ease, background .3s ease; }
.header-contact:hover { color: var(--ink) !important; background: var(--sage); }
.menu-toggle { position: relative; z-index: 2; display: none; width: 46px; height: 46px; margin-left: auto; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 7px auto; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-navigation { position: absolute; top: 100%; right: 0; left: 0; z-index: 99; display: none; width: 100%; height: calc(100dvh - 72px); padding: 24px 24px 28px; color: var(--cream); background: var(--ink-deep); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.mobile-navigation.is-open { opacity: 1; visibility: visible; }
.mobile-languages { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: center; gap: 6px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.14); }
.mobile-languages > span { margin-right: 6px; color: rgba(255,255,255,.72); font-size: 12px; letter-spacing: .16em; }
.mobile-languages .lang-switch-btn { min-width: 0; color: rgba(255,255,255,.72); font-size: 12px; text-align: center; white-space: nowrap; }
.mobile-languages .lang-switch-btn[aria-current="true"] { color: #d4b77d; border-bottom-color: #d4b77d; }
.mobile-navigation nav { display: grid; }
.mobile-navigation nav a { display: grid; grid-template-columns: 28px 1fr auto; align-items: baseline; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-family: var(--serif); font-size: clamp(22px, 7vw, 34px); }
.mobile-navigation nav a b { font-size: inherit; font-weight: 400; }
.mobile-navigation nav a span,
.mobile-navigation nav a small { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; opacity: .78; }
.mobile-nav-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 28px; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.7; }
.mobile-nav-foot p { margin: 0; }

/* Hero */
.home-hero { position: relative; min-height: calc(100svh - 88px); padding-top: clamp(54px, 7vw, 104px); background: var(--cream); overflow: hidden; }
.hero-noise { position: absolute; inset: 0; opacity: .18; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(400px, .88fr) minmax(520px, 1.12fr); align-items: center; gap: clamp(28px, 5vw, 80px); }
.hero-copy { padding-bottom: 70px; }
.hero-news-preview {
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(100%, 680px);
  margin: 0 0 26px;
  padding: 13px 16px;
  color: var(--ink);
  border: 1px solid rgba(134, 100, 40, .26);
  background: rgba(251, 250, 246, .88);
  box-shadow: 0 12px 34px rgba(13, 43, 37, .08);
  font-size: 12px;
  line-height: 1.55;
  text-decoration: none;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.hero-news-preview:hover {
  border-color: rgba(134, 100, 40, .58);
  box-shadow: 0 16px 40px rgba(13, 43, 37, .12);
  transform: translateY(-2px);
}
.hero-news-preview-label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}
.hero-news-preview-rule {
  align-self: stretch;
  background: rgba(134, 100, 40, .3);
}
.hero-news-preview-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  color: var(--text-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-news-preview-copy time {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.hero-news-preview-copy > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-news-preview-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}
@media (max-width: 600px), (max-width: 1024px) and (orientation: portrait), (max-height: 500px) and (hover: none) and (pointer: coarse) {
  .hero-news-preview {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 22px;
    padding: 11px 12px;
  }
  .hero-news-preview-rule,
  .hero-news-preview-more > span:first-child { display: none; }
  .hero-news-preview-more { font-size: 14px; }
}
@media (min-width: 1025px) {
  .home-hero .hero-news-preview {
    position: absolute;
    top: 0;
    right: calc((100vw - 100%) / -2 - 4px);
    width: min(48%, 680px);
    margin: 0;
  }
  html.frames-scrolly .home-hero .hero-news-preview {
    position: fixed;
    top: var(--scrolly-header-height, 88px);
    right: calc(100% - 100vw);
  }
}
@media (min-width: 1025px) and (max-height: 760px) {
  .home-hero .hero-lead { margin-top: 24px; }
  .home-hero .hero-actions { margin-top: 26px; }
  .home-hero .hero-facts { margin-top: 32px; }
}
.hero-eyebrow { color: var(--text-muted); }
.hero-title { margin: 0; font-family: var(--serif); font-size: clamp(56px, 6.15vw, 96px); font-weight: 400; line-height: 1.23; letter-spacing: -.055em; }
.hero-title em { color: var(--gold); font-style: normal; }
.hero-title > span { display: block; width: 100%; max-width: 100%; }
.hero-title > span > span,
.hero-title > span > em {
  display: block;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hero-title > span > br { display: none; }
html[data-current-lang="en"] .hero-title,
html[data-current-lang="th"] .hero-title { font-size: clamp(44px, 4.7vw, 72px); line-height: 1.3; letter-spacing: -.04em; }
html[data-current-lang="th"] :is(.hero-title, .section-heading h2, .origin-copy h2, .oem-copy h2, .contact-banner h2, .large-copy, .mobile-navigation nav a) {
  font-family: "Noto Serif Thai", serif;
}
.hero-lead { max-width: 620px; margin: 36px 0 0; color: var(--text-soft); font-size: clamp(14px, 1.15vw, 16px); line-height: 2.05; }
.hero-lead span { display: block; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 38px; }
.home-hero .hero-actions .button-primary { width: min(100%, 360px); }
.button { min-height: 58px; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 0 22px; border: 1px solid transparent; font-size: 12px; font-weight: 600; letter-spacing: .08em; transition: transform .3s var(--ease), background .3s ease, color .3s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { min-width: 208px; color: #fff !important; background: var(--ink); }
.button-primary:hover { color: var(--ink) !important; background: var(--sage); }
.button-outline { color: var(--ink) !important; border-color: var(--ink); }
.button-outline:hover { color: #fff !important; background: var(--ink); }
.button-light { color: var(--cream) !important; border-color: rgba(255,255,255,.42); }
.button-light:hover { color: var(--ink) !important; background: var(--cream); }
.button-white { color: var(--ink) !important; background: #fff; }
.button-white:hover { background: var(--sage); }
.text-link { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 600; letter-spacing: .08em; transition: gap .25s ease, color .25s ease; }
.text-link:hover { gap: 20px; color: var(--gold); }
.hero-facts { display: flex; gap: clamp(20px, 3vw, 48px); margin: 54px 0 0; }
.hero-facts div { min-width: 0; padding-left: 14px; border-left: 1px solid var(--line); }
.hero-facts dt { color: var(--ink); font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1; }
.hero-facts dd { margin: 8px 0 0; color: var(--text-muted); font-size: 12px; letter-spacing: .04em; overflow-wrap: anywhere; }
.hero-visual { position: relative; min-height: clamp(530px, 63vw, 720px); isolation: isolate; }
.hero-landscape { position: absolute; z-index: 0; inset: 0 0 6% 9%; overflow: hidden; border-radius: 50% 50% 4px 4px / 40% 40% 4px 4px; }
.hero-landscape::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(15,51,43,.03), rgba(15,51,43,.32)); pointer-events: none; }
.hero-landscape img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: saturate(.66) contrast(.92); transform: scale(1.02); }
.hero-product { position: absolute; z-index: 2; right: -7%; bottom: -1%; width: 62%; filter: drop-shadow(0 30px 24px rgba(16,49,41,.18)); }
.hero-product img { width: 100%; mix-blend-mode: multiply; }
/* Philosophy */
.philosophy { background: var(--paper); }
.philosophy-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(70px, 12vw, 190px); align-items: start; }
.philosophy-body { padding-top: 68px; max-width: 590px; }
.philosophy-body .large-copy { margin: 0 0 30px; color: var(--ink); font-family: var(--serif); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.7; }
.philosophy-body > p:not(.large-copy) { color: var(--text-muted); font-size: var(--body-copy-size); line-height: 2.2; }
.philosophy-body .text-link { margin-top: 26px; }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(90px, 12vw, 164px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle-card { position: relative; min-height: 390px; padding: 56px clamp(24px, 3.3vw, 50px) 44px; border-right: 1px solid var(--line); }
.principle-card:last-child { border-right: 0; }
.principle-number { position: absolute; top: 24px; right: 24px; color: var(--text-muted); font-size: 12px; letter-spacing: .12em; }
.principle-icon { width: 70px; height: 70px; margin-bottom: 44px; }
.principle-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.principle-card .eyebrow { margin-bottom: 12px; color: var(--text-muted); }
.principle-card .eyebrow::before { display: none; }
.principle-card h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.principle-card > p:last-child { margin: 0; color: var(--text-muted); font-size: var(--body-copy-size); line-height: 2; }

/* Clear, verifiable free-from standard */
.free-standard {
  margin-top: clamp(72px, 9vw, 128px);
  padding: clamp(34px, 5vw, 68px);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.56);
}
.free-standard-intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 6vw, 84px);
  align-items: end;
}
.free-standard-intro .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.free-standard-intro h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 50px);
  font-weight: 400;
  line-height: 1.4;
}
.free-standard-intro > p:last-child { margin: 0; color: var(--text-soft); font-size: 15px; }
.free-standard-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: clamp(32px, 5vw, 58px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}
.free-standard-list li {
  min-height: 86px;
  display: flex;
  align-items: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.free-standard-list li::before { content: "—"; margin-right: 10px; color: var(--gold); }
.free-standard-foot { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; margin-top: 24px; }
.free-standard-foot p { max-width: 760px; margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.8; }
.free-standard-foot .text-link { flex-shrink: 0; }

/* Products */
.products-showcase { padding-bottom: clamp(110px, 12vw, 190px); background: #e9e5dc; overflow: hidden; }
.products-head { display: grid; grid-template-columns: 1fr .7fr; gap: 12vw; align-items: end; margin-bottom: 76px; }
.products-head > div:last-child { max-width: 410px; padding-bottom: 10px; }
.products-head > div:last-child p { margin: 0 0 28px; color: var(--text-muted); font-size: var(--body-copy-size); line-height: 2; }
.product-rail {
  width: min(1450px, calc(100% - 40px));
  margin: 0 0 0 max(20px, calc((100vw - 1280px) / 2));
  display: grid;
  grid-template-columns: repeat(4, minmax(300px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 24px;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.product-rail-item {
  min-width: 0;
  display: flex;
  align-items: stretch;
  scroll-snap-align: start;
}
.product-rail-item > .feature-product { flex: 1 1 auto; width: 100%; height: 100%; }
.feature-product { position: relative; min-height: 560px; padding: 22px; display: grid; grid-template-rows: auto 1fr auto; color: var(--ink) !important; overflow: hidden; }
.tone-sand { background: #d9ccb8; }
.tone-blue { background: #c8d8df; }
.tone-rose { background: #ddcec9; }
.tone-mint { background: #cbdad0; }
.feature-product-meta { position: relative; z-index: 2; display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.feature-product-image { align-self: center; width: 102%; margin-left: -1%; transition: transform .8s var(--ease); }
.feature-product-image.portrait { width: 74%; margin-inline: auto; }
.feature-product-image img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.feature-product-image.portrait img { aspect-ratio: .82; }
.feature-product:hover .feature-product-image { transform: scale(1.045) rotate(-1deg); }
.feature-product-copy { position: relative; z-index: 2; padding-top: 20px; border-top: 1px solid rgba(20,58,50,.25); }
.feature-product-copy h3 { margin: 0; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.feature-product-copy p { margin: 8px 42px 0 0; font-size: var(--body-copy-size); line-height: 1.75; }
.circle-arrow { position: absolute; right: 0; bottom: 0; width: 34px; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; transition: color .3s ease, background .3s ease, transform .3s ease; }
.feature-product:hover .circle-arrow { color: #fff; background: var(--ink); transform: rotate(45deg); }

/* Origin */
.origin-story { display: grid; grid-template-columns: 1.1fr .9fr; padding: 0; background: var(--ink-deep); }
.origin-copy { grid-column: 2; align-self: center; padding: clamp(70px, 9vw, 136px); color: var(--cream); }
.origin-copy .eyebrow { color: #a8b9b1; }
.origin-copy h2 { font-size: clamp(36px, 4vw, 62px); }
.origin-copy h2 i,
.oem-copy h2 i { color: var(--accent-light); }
.origin-copy > p:not(.eyebrow) { max-width: 500px; margin: 34px 0 0; color: rgba(245,241,232,.78); font-size: var(--body-copy-size); line-height: 2.2; }
.origin-copy .button { margin-top: 42px; }

/* OEM */
.oem-section { background: var(--paper); }
.oem-anchor-target {
  position: absolute;
  top: 30%;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-margin-top: 96px;
  pointer-events: none;
}
.oem-panel { position: relative; min-height: 690px; display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(40px, 7vw, 108px); padding: clamp(48px, 7vw, 100px); color: #fff; background: var(--ink); overflow: hidden; }
.oem-index { position: absolute; top: 32px; right: 38px; font-size: 12px; letter-spacing: .16em; opacity: .78; }
.oem-copy { position: relative; z-index: 2; max-width: 650px; }
.oem-copy .eyebrow { color: #b6c8c0; }
.oem-copy h2 { font-size: clamp(40px, 4.5vw, 66px); }
.oem-copy > p:not(.eyebrow) { max-width: 560px; margin: 34px 0 0; color: rgba(255,255,255,.84); font-size: var(--body-copy-size); line-height: 2.05; }
.oem-copy .button { margin-top: 38px; }
.oem-steps { position: relative; z-index: 2; align-self: end; margin: 90px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.24); }
.oem-steps li { display: grid; grid-template-columns: 36px 1fr; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.oem-steps li span { grid-row: 1 / 3; color: var(--accent-light); font-size: 12px; }
.oem-steps strong { font-family: var(--serif); font-size: 17px; font-weight: 400; }
.oem-steps small { margin-top: 4px; color: rgba(255,255,255,.84); font-size: var(--body-copy-size); line-height: 1.65; letter-spacing: .04em; }
.oem-watermark { position: absolute; right: -4%; bottom: -9%; color: transparent; font-family: var(--serif); font-size: clamp(110px, 19vw, 270px); line-height: 1; -webkit-text-stroke: 1px rgba(255,255,255,.07); }

/* News & contact */
.news-section { background: var(--paper); }
.news-grid { display: grid; grid-template-columns: .34fr .66fr; gap: 9vw; }
.news-grid .section-heading h2 { font-size: clamp(38px, 4vw, 58px); }
.news-grid .section-heading .text-link { margin-top: 34px; }
.news-list { border-top: 1px solid var(--line); }
.news-entry {
  display: grid;
  grid-template-columns: minmax(6.5rem, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  min-height: 150px;
  padding: clamp(30px, 4vw, 48px) clamp(20px, 3vw, 38px);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .25s ease, background-color .25s ease;
}
.news-entry:hover { color: var(--gold); background: rgba(255, 255, 255, .42); }
.news-entry time {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.news-entry > span:not(.news-entry-arrow) {
  font-family: var(--serif);
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.65;
}
.news-entry-arrow { font-size: 18px; }
.news-empty {
  min-height: 150px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: clamp(34px, 5vw, 58px) clamp(20px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: var(--body-copy-size);
  line-height: 1.9;
}
.news-article {
  overflow: hidden;
  border-top: 3px solid #866428;
}
.news-article-header { padding: clamp(1.75rem, 5vw, 3rem); }
.news-article-header time {
  color: #866428;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.news-article-header h2 {
  margin-top: .8rem;
  color: #2c4a3e;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1.55;
}
.news-article-body {
  padding: clamp(1.75rem, 5vw, 3rem);
  border-top: 1px solid #e2dccd;
  background: #fbfaf6;
}
.news-article-body p {
  margin: 0;
  color: #52645e;
  font-size: .95rem;
  line-height: 2.1;
}
@media (max-width: 600px), (max-width: 1024px) and (orientation: portrait), (max-height: 500px) and (hover: none) and (pointer: coarse) {
  .news-entry {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    min-height: 128px;
    padding: 24px 18px;
  }
  .news-entry time { grid-column: 1 / -1; }
  .news-entry > span:not(.news-entry-arrow) { font-size: 16px; }
}
.contact-banner { padding: clamp(80px, 8vw, 120px) 0; background: var(--sage); }
.contact-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.contact-banner h2 { font-size: clamp(36px, 4.4vw, 64px); }
.contact-banner h2 i { color: var(--ink); }
html[lang="ja"] .contact-banner h2 > :is(span, i) {
  display: block;
  width: 100%;
  text-wrap: balance;
}
html[lang="ja"] .contact-banner h2 > br { display: none; }
.contact-circle { flex: 0 0 auto; width: clamp(154px, 15vw, 210px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; border: 1px solid rgba(20,58,50,.5); border-radius: 50%; font-size: 12px; font-weight: 600; letter-spacing: .08em; transition: color .4s ease, background .4s ease, transform .4s var(--ease); }
.contact-circle:hover { color: #fff; background: var(--ink); transform: rotate(-5deg); }

/* Shared footer */
.site-footer { position: relative; z-index: 10; color: rgba(255,255,255,.7); background: var(--ink-deep); font-family: var(--sans); }
.site-footer-main { width: min(1380px, calc(100% - 80px)); margin: 0 auto; display: grid; grid-template-columns: 1.5fr .75fr .9fr 1fr; gap: 6vw; padding: 86px 0 72px; }
.footer-brand-block img {
  width: 210px;
  height: auto;
  padding: 7px 10px;
  border-radius: 2px;
  background: #fff;
}
.footer-brand-block p { margin: 30px 0 0; font-family: var(--serif); font-size: 14px; line-height: 2; }
.footer-label { margin: 0 0 24px !important; color: rgba(255,255,255,.72) !important; font-size: 12px !important; font-weight: 700; letter-spacing: .16em; }
.footer-nav-block { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.footer-nav-block a { position: relative; font-size: 12px; }
.footer-nav-block a::after { content: ""; position: absolute; right: 0; bottom: -3px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.footer-nav-block a:hover::after { transform: scaleX(1); transform-origin: left; }
.footer-company-block address { font-size: 12px; font-style: normal; line-height: 1.9; }
.footer-phone { display: inline-block; margin-top: 17px; color: #fff !important; font-family: var(--serif); font-size: 24px; letter-spacing: .03em; }
.footer-company-block > p:last-child { margin: 4px 0 0; font-size: 12px; }
.site-footer-bottom { min-height: 66px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: 12px clamp(20px, 3vw, 50px); border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.62); font-size: 12px; letter-spacing: .1em; }
.site-footer-bottom p { margin: 0; }
.site-footer-bottom p:nth-child(2) { text-align: center; }
.site-footer-bottom a { justify-self: end; }

/* Progressive reveal contract: visible by default; stage only after html.js-enabled.reveal-ready. */
.reveal-up,
.reveal-scale,
.reveal-on-scroll { opacity: 1; transform: none; }

html.js-enabled.reveal-ready .reveal-up {
  opacity: 0;
  transform: translateY(28px);
  animation: riseIn .9s var(--ease) forwards;
}
html.js-enabled.reveal-ready .hero-title.reveal-up { animation-delay: .12s; }
html.js-enabled.reveal-ready .hero-news-preview.reveal-up { animation-delay: .08s; }
html.js-enabled.reveal-ready .hero-lead.reveal-up { animation-delay: .24s; }
html.js-enabled.reveal-ready .hero-actions.reveal-up { animation-delay: .34s; }
html.js-enabled.reveal-ready .hero-facts.reveal-up { animation-delay: .44s; }
html.js-enabled.reveal-ready .reveal-scale {
  opacity: 0;
  transform: scale(.96);
  animation: scaleIn 1.2s var(--ease) .12s forwards;
}
@keyframes riseIn { to { opacity: 1; transform: none; } }
@keyframes scaleIn { to { opacity: 1; transform: none; } }
html.js-enabled.reveal-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
html.js-enabled.reveal-ready .reveal-on-scroll.is-visible { opacity: 1; transform: none; }
html.js-enabled.reveal-ready .reveal-on-scroll.principle-card:nth-child(2),
html.js-enabled.reveal-ready .product-rail-item:nth-child(2) > .feature-product { transition-delay: .1s; }
html.js-enabled.reveal-ready .reveal-on-scroll.principle-card:nth-child(3),
html.js-enabled.reveal-ready .product-rail-item:nth-child(3) > .feature-product { transition-delay: .2s; }
html.js-enabled.reveal-ready .product-rail-item:nth-child(4) > .feature-product { transition-delay: .3s; }

@media (max-width: 1100px) {
  .desktop-nav { gap: 22px; }
  .desktop-nav a { font-size: 12px; }
  .header-contact { width: 116px; margin-left: 14px; }
  .header-languages { margin-left: 16px; padding-left: 16px; }
  .hero-grid { grid-template-columns: .9fr 1.1fr; }
  .hero-title { font-size: clamp(52px, 6.3vw, 72px); }
  .hero-product { right: -3%; width: 66%; }
  .origin-copy { padding-inline: 8vw; }
}

@media (max-width: 1080px) {
  .site-header { height: 72px; }
  .site-header-inner { padding-inline: 20px; }
  .site-brand .site-logo { width: 136px; }
  .site-brand .site-fuji-logo { width: 62px; }
  .site-brand-divider { height: 24px; }
  .desktop-nav, .header-contact, .header-languages { display: none; }
  .menu-toggle, .mobile-navigation { display: block; }
  .menu-toggle { position: absolute; top: 13px; right: 16px; margin: 0; }
}

@media (max-width: 900px) {
  .home-shell { width: min(calc(100% - 40px), 720px); }
  .home-hero { min-height: auto; padding-top: 58px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { display: contents; }
  .hero-eyebrow { order: 1; }
  .hero-title { order: 2; font-size: clamp(48px, 12vw, 80px); }
  .hero-visual { order: 3; display: block; width: 100%; min-width: 0; min-height: min(88vw, 620px); margin-top: 28px; }
  .hero-landscape { inset: 0 0 5%; border-radius: 50% 50% 4px 4px / 34% 34% 4px 4px; }
  .hero-product { right: -4%; bottom: -1%; width: 56%; }
  .hero-lead { order: 4; }
  .hero-actions { order: 5; }
  .hero-facts { order: 6; margin-top: 44px; }
  .philosophy-grid, .products-head, .news-grid { grid-template-columns: 1fr; gap: 48px; }
  .philosophy-body { padding-top: 0; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-card { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-card:last-child { border-bottom: 0; }
  .products-head > div:last-child { max-width: 560px; }
  .product-rail { width: calc(100% - 20px); margin-left: 20px; grid-template-columns: repeat(4, minmax(300px, 74vw)); }
  .free-standard-intro { grid-template-columns: 1fr; gap: 16px; }
  .free-standard-list { grid-template-columns: repeat(2, 1fr); }
  .free-standard-foot { align-items: flex-start; flex-direction: column; }
  .origin-story { grid-template-columns: 1fr; }
  html.frames-ready .origin-story.frame-target { padding: 20px; }
  .origin-copy { grid-column: 1; padding: 84px 40px 100px; }
  .oem-panel { grid-template-columns: 1fr; min-height: 0; }
  .oem-steps { margin-top: 20px; }
  .site-footer-main { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
}

@media (min-width: 601px) and (max-width: 900px) {
  html.frames-ready .home-hero.frame-target { background: rgba(245,241,232,.88); }

  html.frame-portrait .home-frame-poster {
    inset: -2%;
    width: 104%;
    height: 104%;
    object-fit: cover;
    filter: brightness(var(--frame-brightness)) saturate(.9) contrast(1.02);
  }

  html.frame-portrait .home-frame-canvas { display: none; }
}

@media (max-width: 600px) {
  .home-frame-layer { display: none; }
  .hero-visual.mobile-original-only { display: block; }
  .origin-image.mobile-original-only {
    position: relative;
    display: block;
    min-height: 90vw;
    overflow: hidden;
  }
  .origin-image.mobile-original-only::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 65%, rgba(13,43,37,.35));
    pointer-events: none;
  }
  .origin-image.mobile-original-only picture,
  .origin-image.mobile-original-only img {
    width: 100%;
    height: 100%;
  }
  .origin-image.mobile-original-only picture { position: absolute; inset: 0; display: block; }
  .origin-image.mobile-original-only img { object-fit: cover; filter: saturate(.68) contrast(.95); }
  html.frames-ready .home-hero.frame-target { background: var(--cream); }
  html.frames-ready .philosophy.frame-target { background: var(--paper); }
  html.frames-ready .philosophy.frame-target .philosophy-grid > *,
  html.frames-ready .philosophy.frame-target .principle-grid {
    padding: 0;
    background: transparent;
    box-shadow: none;
  }
  html.frames-ready .philosophy.frame-target .philosophy-body { max-width: 590px; }
  html.frames-ready .philosophy.frame-target .free-standard {
    padding: 28px 20px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.56);
    box-shadow: none;
  }
  html.frames-ready .philosophy.frame-target .free-standard .eyebrow { color: var(--ink); }
  html.frames-ready .philosophy.frame-target .free-standard-intro h3 {
    color: var(--ink);
    font-size: clamp(30px, 3.4vw, 50px);
  }
  html.frames-ready .philosophy.frame-target .free-standard-intro > p:last-child { color: #4f655f; }
  html.frames-ready .philosophy.frame-target .free-standard-list {
    border-top-color: var(--line);
    border-left-color: var(--line);
    background: var(--white);
  }
  html.frames-ready .philosophy.frame-target .free-standard-list li {
    border-right-color: var(--line);
    border-bottom-color: var(--line);
    color: var(--gold);
    font-size: 15px;
    line-height: 1.55;
  }
  html.frames-ready .philosophy.frame-target .free-standard-list li::before { color: var(--gold); }
  html.frames-ready .philosophy.frame-target .free-standard-foot p { color: #52645e; }
  html.frames-ready .philosophy.frame-target .free-standard .text-link { color: var(--ink); }
  html.frames-ready .products-showcase.frame-target { background: #e9e5dc; }
  html.frames-ready .origin-story.frame-target {
    gap: 0;
    padding: 0;
    background: var(--ink-deep);
  }
  html.frames-ready .origin-story.frame-target .origin-copy {
    align-self: center;
    display: block;
    padding: 78px 24px 90px;
    background: transparent;
    box-shadow: none;
  }
  html.frames-ready .origin-story.frame-target .origin-copy > p:not(.eyebrow) { color: rgba(245,241,232,.65); }
  html.frames-ready .oem-section.frame-target { background: var(--paper); }
  html.frames-ready .oem-section.frame-target .oem-panel {
    border: 0;
    background: var(--ink);
    box-shadow: none;
  }
  html.frames-ready .news-section.frame-target { background: var(--paper); }
  html.frames-ready .news-section.frame-target .news-grid {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  html.frames-ready .contact-banner.frame-target { background: var(--sage); }
  html.frames-ready .contact-banner.frame-target .contact-banner-inner {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .home-shell { width: calc(100% - 32px); }
  .site-brand { gap: 9px; }
  .site-brand .site-logo { width: 124px; }
  .site-brand .site-fuji-logo { width: 54px; }
  .section-space { padding-block: 88px; }
  .eyebrow { margin-bottom: 18px; font-size: 12px; }
  .section-heading h2, .origin-copy h2, .oem-copy h2, .contact-banner h2 { font-size: 34px; line-height: 1.48; }
  html[lang="ja"] :is(.section-heading h2, .origin-copy h2, .oem-copy h2, .contact-banner h2) > :is(span, i) {
    display: block;
    width: 100%;
  }
  html[lang="ja"] :is(.section-heading h2, .origin-copy h2, .oem-copy h2, .contact-banner h2) > br { display: none; }
  html[lang="ja"] :is(.origin-copy h2, .oem-copy h2, .contact-banner h2) { font-size: 32px; }
  .hero-title { min-width: 0; font-size: clamp(39px, 10.5vw, 50px); line-height: 1.34; letter-spacing: -.07em; }
  html[data-current-lang="en"] .hero-title { font-size: clamp(32px, 8.6vw, 40px); line-height: 1.38; letter-spacing: -.035em; }
  html[data-current-lang="th"] .hero-title { font-size: clamp(29px, 7.8vw, 36px); line-height: 1.48; letter-spacing: -.015em; }
  .hero-visual { min-height: 88vw; margin-top: 22px; }
  .hero-product { right: -10%; width: 62%; }
  .hero-lead { margin-top: 30px; font-size: 14px; line-height: 2; }
  .hero-lead span + span { margin-top: 2px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 30px; }
  .button-primary { width: 100%; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 8px; margin-top: 46px; }
  .hero-facts div:last-child { grid-column: 1 / -1; }
  .philosophy-body .large-copy { font-size: 20px; line-height: 1.85; }
  .philosophy-body > p:not(.large-copy) { font-size: var(--body-copy-size); line-height: 2.05; }
  .principle-grid { margin-top: 72px; }
  .principle-card { min-height: 290px; padding: 46px 25px 38px; }
  .principle-icon { width: 56px; height: 56px; margin-bottom: 30px; }
  .product-rail { grid-template-columns: repeat(4, minmax(278px, 82vw)); }
  .feature-product { min-height: 500px; }
  .free-standard { padding: 28px 20px; }
  .free-standard-list li { min-height: 74px; padding: 13px 11px; font-size: var(--body-copy-size); }
  .origin-copy { padding: 78px 24px 90px; }
  .origin-copy > p:not(.eyebrow) { font-size: var(--body-copy-size); }
  .oem-section .home-shell { width: 100%; }
  .oem-panel { padding: 76px 24px 66px; }
  .oem-index { top: 18px; right: 20px; }
  .oem-copy > p:not(.eyebrow) { font-size: var(--body-copy-size); }
  .oem-copy .button { width: 100%; }
  .news-grid { gap: 40px; }
  .news-empty { min-height: 128px; padding: 28px 18px; font-size: var(--body-copy-size); }
  .contact-banner-inner { align-items: flex-start; flex-direction: column; }
  .contact-circle { align-self: flex-end; width: 142px; }
  .site-footer-main { width: calc(100% - 40px); grid-template-columns: 1fr 1fr; gap: 48px 28px; padding: 68px 0 54px; }
  .footer-brand-block, .footer-company-block { grid-column: 1 / -1; }
  .footer-company-block { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); }
  .site-footer-bottom { grid-template-columns: 1fr auto; gap: 10px; padding-block: 22px; }
  .site-footer-bottom p:nth-child(2) { display: none; }

}

/* Desktop / landscape-tablet scrollytelling.
   The document keeps native scrolling, while the visual stage remains fixed. */
.scrolly-stage,
.scrolly-products-beat { display: contents; }

@media (min-width: 601px) {
  html.frames-scrolly {
    --scrolly-header-height: 88px;
    scroll-behavior: auto;
  }

  html.frames-scrolly .frame-target {
    height: var(--scrolly-track-height, 150svh);
    min-height: 0;
    padding: 0 !important;
    background: transparent !important;
    overflow: visible;
    scroll-margin-top: var(--scrolly-header-height, 88px);
  }

  html.frames-scrolly .home-hero { min-height: 0; }

  html.frames-scrolly .scrolly-stage {
    position: fixed;
    z-index: 2;
    top: var(--scrolly-header-height, 88px);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: clip;
    opacity: var(--scrolly-stage-opacity, 0);
    pointer-events: none;
    transition: opacity .12s linear;
    will-change: opacity;
  }

  html.frames-scrolly .scrolly-stage.is-interactive { pointer-events: auto; }

  html.frames-scrolly [data-scrolly-beat] {
    opacity: var(--scrolly-beat-opacity, 1);
    pointer-events: none;
    transition: opacity .12s linear;
    will-change: opacity;
  }

  html.frames-scrolly [data-scrolly-beat].is-interactive { pointer-events: auto; }

  html.frames-scrolly .scrolly-stage .reveal-on-scroll,
  html.frames-scrolly .scrolly-stage .reveal-up,
  html.frames-scrolly .scrolly-stage .reveal-scale {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  /* A beat can also carry the legacy reveal class. In that case the
     scroll-driven content opacity must win; this never targets the canvases. */
  html.frames-scrolly .scrolly-stage [data-scrolly-beat] {
    opacity: var(--scrolly-beat-opacity, 1);
    transition: opacity .12s linear;
  }

  html.frames-scrolly .scrolly-stage [data-scrolly-beat].reveal-on-scroll,
  html.frames-scrolly .scrolly-stage [data-scrolly-beat].reveal-on-scroll.is-visible {
    opacity: var(--scrolly-beat-opacity, 1);
  }

  html.frames-scrolly .home-hero .scrolly-stage {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(245,241,232,.97) 0%, rgba(245,241,232,.9) 37%, rgba(245,241,232,.48) 65%, rgba(245,241,232,.16) 100%);
  }

  html.frames-scrolly .home-hero .hero-grid {
    width: min(1280px, calc(100% - 80px));
    max-height: calc(100svh - var(--scrolly-header-height, 88px));
  }

  html.frames-scrolly .home-hero .hero-copy { padding-bottom: 0; }

  html.frames-scrolly .philosophy .scrolly-stage {
    background: rgba(251,250,246,.18);
  }

  html.frames-scrolly .philosophy .scrolly-stage > [data-scrolly-beat] {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(1280px, calc(100% - 80px));
    max-height: calc(100svh - var(--scrolly-header-height, 88px) - 40px);
    margin: 0;
    transform: translate(-50%, -50%);
  }

  html.frames-scrolly .philosophy-grid {
    grid-template-columns: .86fr 1.14fr;
    gap: clamp(42px, 8vw, 120px);
  }

  html.frames-scrolly .philosophy-body { padding-top: 34px; }

  html.frames-scrolly .principle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }

  html.frames-scrolly .principle-card {
    min-height: min(390px, calc(100svh - var(--scrolly-header-height, 88px) - 80px));
    padding: clamp(40px, 5vh, 56px) clamp(22px, 3vw, 48px) 34px;
  }

  html.frames-scrolly .philosophy .free-standard {
    padding: clamp(28px, 4vh, 46px) clamp(28px, 5vw, 68px);
  }

  html.frames-scrolly .free-standard-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(22px, 3vh, 36px);
  }
  html.frames-scrolly .free-standard-list li { min-height: 64px; padding: 12px 16px; }
  html.frames-scrolly .free-standard-foot { margin-top: 18px; }

  html.frames-scrolly .products-showcase .scrolly-stage {
    background: rgba(233,229,220,.66);
  }

  html.frames-scrolly .scrolly-products-beat {
    position: absolute;
    inset: 0;
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    gap: clamp(18px, 3vh, 34px);
    padding-block: 20px;
  }

  html.frames-scrolly .products-head {
    grid-template-columns: 1fr .7fr;
    gap: 8vw;
    margin-bottom: 0;
  }

  html.frames-scrolly .products-head .section-heading h2 { font-size: clamp(34px, 4vw, 56px); }

  html.frames-scrolly .product-rail {
    width: min(1280px, calc(100% - 80px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  html.frames-scrolly .feature-product {
    min-height: min(400px, 54svh);
    padding: clamp(14px, 1.5vw, 20px);
  }

  html.frames-scrolly .feature-product-image {
    width: min(100%, 220px);
    max-height: 26svh;
    margin-inline: auto;
  }

  html.frames-scrolly .feature-product-image.portrait { width: min(70%, 150px); }
  html.frames-scrolly .feature-product-image img { max-height: 26svh; }
  html.frames-scrolly .feature-product-copy { padding-top: 12px; }
  html.frames-scrolly .feature-product-copy h3 { font-size: clamp(18px, 1.8vw, 24px); }
  html.frames-scrolly .feature-product-copy p { font-size: 12px; }

  html.frames-scrolly .origin-story { display: block; }

  html.frames-scrolly .origin-story .scrolly-stage {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(20px, 3vw, 46px);
    padding: clamp(20px, 3vw, 44px);
    background: rgba(13,43,37,.12);
  }

  html.frames-scrolly .origin-story .origin-copy {
    grid-column: 2;
    max-height: calc(100svh - var(--scrolly-header-height, 88px) - 40px);
    padding: clamp(42px, 6vh, 72px) clamp(30px, 5vw, 72px);
  }

  html.frames-scrolly .oem-section .scrolly-stage {
    display: flex;
    align-items: center;
    background: rgba(251,250,246,.1);
  }

  html.frames-scrolly .oem-section .oem-anchor-target {
    top: 20%;
    scroll-margin-top: var(--scrolly-header-height, 88px);
  }

  html.frames-scrolly .oem-section .scrolly-stage > .home-shell { width: min(1280px, calc(100% - 80px)); }

  html.frames-scrolly .oem-panel {
    height: min(620px, calc(100svh - var(--scrolly-header-height, 88px) - 40px));
    min-height: 0;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(32px, 6vw, 88px);
    padding: clamp(34px, 5vw, 64px);
  }

  html.frames-scrolly .oem-copy h2 { font-size: clamp(34px, 4vw, 56px); }
  html.frames-scrolly .oem-copy > p:not(.eyebrow) { margin-top: 24px; line-height: 1.9; }
  html.frames-scrolly .oem-copy .button { margin-top: 28px; }
  html.frames-scrolly .oem-steps { align-self: center; margin-top: 0; }
  html.frames-scrolly .oem-steps li { padding: 14px 0; }

  html.frames-scrolly .news-section .scrolly-stage {
    display: flex;
    align-items: center;
    background: rgba(251,250,246,.12);
  }

  html.frames-scrolly .news-grid {
    width: min(1280px, calc(100% - 80px));
    grid-template-columns: .34fr .66fr;
    gap: 9vw;
  }

  html.frames-scrolly .contact-banner .scrolly-stage {
    display: flex;
    align-items: center;
    background: rgba(201,214,200,.14);
  }

  html.frames-scrolly .contact-banner-inner { width: min(1280px, calc(100% - 80px)); }

  html.frames-scrolly .frame-target[data-scrolly-active="true"] { z-index: 3; }
}

/* Short desktop viewports keep the fixed scrollytelling stage, but compact
   typography and spacing so every control and line of copy remains visible. */
@media (min-width: 901px) and (max-height: 760px) {
  html.frames-scrolly {
    --scrolly-header-height: clamp(64px, 12svh, 72px);
  }

  html.frames-scrolly .site-header,
  html.frames-scrolly .site-header.is-scrolled {
    height: var(--scrolly-header-height);
  }

  html.frames-scrolly .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }

  html.frames-scrolly .button { min-height: 44px; }

  html.frames-scrolly .home-hero .hero-grid {
    max-height: calc(100svh - var(--scrolly-header-height));
  }

  html.frames-scrolly .home-hero .hero-news-preview {
    min-height: 40px;
    padding-block: 9px;
  }

  html.frames-scrolly .home-hero .hero-title {
    font-size: clamp(42px, 8svh, 58px);
    line-height: 1.18;
  }

  html[data-current-lang="en"].frames-scrolly .home-hero .hero-title,
  html[data-current-lang="th"].frames-scrolly .home-hero .hero-title {
    font-size: clamp(34px, 6.6svh, 48px);
    line-height: 1.22;
  }

  html.frames-scrolly .home-hero .hero-lead {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.65;
  }

  html.frames-scrolly .home-hero .hero-actions { margin-top: 14px; }
  html.frames-scrolly .home-hero .hero-facts { margin-top: 16px; }
  html.frames-scrolly .home-hero .hero-facts dt { font-size: 15px; }
  html.frames-scrolly .home-hero .hero-facts dd { margin-top: 5px; font-size: 10px; }

  html.frames-scrolly .philosophy .scrolly-stage > [data-scrolly-beat] {
    max-height: calc(100svh - var(--scrolly-header-height) - 24px);
  }

  html.frames-ready.frames-scrolly .philosophy.frame-target .philosophy-grid > * {
    padding: 24px 28px;
  }

  html.frames-scrolly .philosophy-grid { gap: clamp(28px, 4vw, 56px); }
  html.frames-scrolly .philosophy-body { padding: 24px 28px; }

  html.frames-scrolly .philosophy .section-heading h2 {
    font-size: clamp(34px, 6.5svh, 46px);
    line-height: 1.28;
  }

  html.frames-scrolly .philosophy-body .large-copy {
    margin-bottom: 14px;
    font-size: clamp(18px, 3.6svh, 24px);
    line-height: 1.5;
  }

  html.frames-scrolly .philosophy-body > p:not(.large-copy) {
    font-size: 12px;
    line-height: 1.7;
  }

  html.frames-scrolly .philosophy-body .text-link { margin-top: 14px; }

  html.frames-scrolly .principle-card {
    min-height: min(320px, calc(100svh - var(--scrolly-header-height) - 40px));
    padding: 28px 24px 22px;
  }

  html.frames-scrolly .principle-number { top: 16px; right: 16px; }
  html.frames-scrolly .principle-icon { width: 52px; height: 52px; margin-bottom: 18px; }
  html.frames-scrolly .principle-card h3 { margin-bottom: 10px; font-size: 23px; }
  html.frames-scrolly .principle-card > p:last-child { font-size: 12px; line-height: 1.65; }

  html.frames-ready.frames-scrolly .philosophy.frame-target .free-standard {
    padding: 22px 28px;
  }

  html.frames-scrolly .philosophy .free-standard-intro { gap: 16px 36px; }
  html.frames-scrolly .philosophy .free-standard-intro h3 {
    font-size: clamp(30px, 5.8svh, 42px);
    line-height: 1.3;
  }
  html.frames-scrolly .philosophy .free-standard-intro > p:last-child {
    font-size: 12px;
    line-height: 1.65;
  }
  html.frames-scrolly .philosophy .free-standard-list { margin-top: 14px; }
  html.frames-scrolly .philosophy .free-standard-list li {
    min-height: 48px;
    padding: 8px 12px;
    font-size: clamp(13px, 2.2svh, 16px);
    line-height: 1.4;
  }
  html.frames-scrolly .philosophy .free-standard-foot {
    align-items: center;
    margin-top: 12px;
  }
  html.frames-scrolly .philosophy .free-standard-foot p {
    font-size: 10px;
    line-height: 1.5;
  }

  html.frames-scrolly .products-showcase .scrolly-products-beat {
    gap: 12px;
    padding-block: 12px;
  }
  html.frames-scrolly .products-showcase .products-head .section-heading h2 {
    font-size: clamp(34px, 6.5svh, 48px);
    line-height: 1.3;
  }
  html.frames-scrolly .products-showcase .products-head > div:last-child p {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.65;
  }
  html.frames-scrolly .products-showcase .feature-product {
    min-height: min(320px, 48svh);
    padding: 12px;
  }
  html.frames-scrolly .products-showcase .feature-product-image,
  html.frames-scrolly .products-showcase .feature-product-image img { max-height: 18svh; }
  html.frames-scrolly .products-showcase .feature-product-copy { padding-top: 8px; }
  html.frames-scrolly .products-showcase .feature-product-copy h3 { font-size: 18px; }
  html.frames-scrolly .products-showcase .feature-product-copy p {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.45;
  }

  html.frames-scrolly .origin-story .scrolly-stage {
    gap: 20px;
    padding: 12px;
  }
  html.frames-scrolly .origin-story .origin-copy {
    max-height: calc(100svh - var(--scrolly-header-height) - 24px);
    padding: 24px 32px;
  }
  html.frames-scrolly .origin-story .origin-copy h2 {
    font-size: clamp(34px, 6.8svh, 46px);
    line-height: 1.28;
  }
  html.frames-scrolly .origin-story .origin-copy > p:not(.eyebrow) {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.65;
  }
  html.frames-scrolly .origin-story .origin-copy .button { margin-top: 16px; }

  html.frames-scrolly .oem-section .scrolly-stage > .home-shell {
    width: min(1280px, calc(100% - 48px));
  }
  html.frames-scrolly .oem-section .oem-panel {
    height: calc(100svh - var(--scrolly-header-height) - 24px);
    gap: clamp(24px, 4vw, 52px);
    padding: 24px 30px;
  }
  html.frames-scrolly .oem-section .oem-copy h2 {
    font-size: clamp(34px, 6.4svh, 46px);
    line-height: 1.28;
  }
  html.frames-scrolly .oem-section .oem-copy > p:not(.eyebrow) {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.65;
  }
  html.frames-scrolly .oem-section .oem-copy .button { margin-top: 16px; }
  html.frames-scrolly .oem-section .oem-steps li { padding: 8px 0; }
  html.frames-scrolly .oem-section .oem-steps strong { font-size: 15px; }
  html.frames-scrolly .oem-section .oem-steps small { margin-top: 2px; font-size: 11px; line-height: 1.4; }

  html.frames-ready.frames-scrolly .news-section.frame-target .news-grid,
  html.frames-ready.frames-scrolly .contact-banner.frame-target .contact-banner-inner {
    padding: 28px 34px;
  }
  html.frames-scrolly .news-section .section-heading h2,
  html.frames-scrolly .contact-banner h2 {
    font-size: clamp(34px, 6.5svh, 46px);
    line-height: 1.3;
  }
  html.frames-scrolly .news-section .news-entry { min-height: 112px; padding-block: 22px; }
  html.frames-scrolly .contact-banner .contact-circle { width: min(132px, 21svh); }

  html.frames-scrolly .scroll-cue {
    bottom: 10px;
    width: 52px;
    height: 66px;
    gap: 6px;
  }
  html.frames-scrolly .scroll-cue-line { height: 28px; }
  html.frames-scrolly .auto-scroll-control { right: 12px; bottom: 10px; height: 40px; }
}

@media (min-width: 601px) and (max-width: 1080px) {
  html.frames-scrolly { --scrolly-header-height: 72px; }
}

@media (min-width: 1081px) {
  html.frames-scrolly .site-header,
  html.frames-scrolly .site-header.is-scrolled { height: 88px; }
}

/* Scroll cue and auto-scroll control. They are exposed only while the
   fixed scrollytelling mode is active. */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 2vw, 28px);
  z-index: 80;
  display: flex;
  width: 64px;
  height: 90px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(13, 43, 37, .16);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(251, 250, 246, .82);
  box-shadow: 0 8px 30px rgba(13, 43, 37, .11);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .35s ease, transform .35s ease;
}

.scroll-cue[hidden],
html:not(.frames-scrolly) .scroll-cue { display: none !important; }

.scroll-cue.is-hidden {
  opacity: 0;
  transform: translate(-50%, 10px);
}

.scroll-cue-label {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
}

.scroll-cue-line {
  position: relative;
  width: 1px;
  height: 42px;
  background: rgba(13, 43, 37, .2);
  overflow: hidden;
}

.scroll-cue-line::after {
  position: absolute;
  top: -16px;
  left: 0;
  width: 1px;
  height: 16px;
  background: var(--gold);
  animation: scrollCueFlow 1.8s ease-in-out infinite;
  content: "";
}

@keyframes scrollCueFlow {
  0% { transform: translateY(0); opacity: 0; }
  18% { opacity: 1; }
  75% { opacity: 1; }
  100% { transform: translateY(58px); opacity: 0; }
}

.auto-scroll-control {
  position: fixed;
  right: clamp(16px, 2vw, 30px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 90;
  display: inline-flex;
  min-width: 166px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 43, 37, .88);
  box-shadow: 0 8px 30px rgba(13, 43, 37, .16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--sans);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.auto-scroll-control[hidden],
html:not(.frames-scrolly) .auto-scroll-control { display: none !important; }

body.menu-active .scroll-cue,
body.menu-active .auto-scroll-control { display: none !important; }

.auto-scroll-control-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  white-space: nowrap;
}

.auto-scroll-control-copy [data-auto-scroll-state] {
  padding-left: 8px;
  border-left: 1px solid currentColor;
  opacity: .68;
}

.auto-scroll-control[data-state="paused"],
.auto-scroll-control[data-state="ended"] {
  border-color: rgba(13, 43, 37, .2);
  color: var(--ink);
  background: rgba(251, 250, 246, .94);
}

.auto-scroll-control:hover { background: rgba(20, 58, 50, .96); }
.auto-scroll-control[data-state="paused"]:hover,
.auto-scroll-control[data-state="ended"]:hover { background: rgba(251, 250, 246, 1); }

.auto-scroll-control:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 600px), (prefers-reduced-motion: reduce) {
  .scroll-cue,
  .auto-scroll-control { display: none !important; }
}

@media (max-width: 600px), (max-height: 500px) and (hover: none) and (pointer: coarse) {
  body.renewal-home .oem-anchor-target {
    top: calc(var(--mobile-section-space, 72px) + 56.25vw - 46px);
    scroll-margin-top: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-up,
  .reveal-scale,
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}
