/* ─── 株式会社丸上製作所 — corporate site ─── */

:root {
  /* Brand palette (matched to reference image) */
  --navy-deep:    #0a1d3a;   /* hero / footer base */
  --navy:         #122a52;   /* primary navy */
  --navy-2:       #1a3b7c;   /* logo blue */
  --navy-card:    #102749;   /* product card bg */
  --navy-line:    #1f3d6d;   /* subtle navy borders */

  --gold:         #c89c4c;   /* CTA accent, underline */
  --gold-soft:    #d9b878;

  --ink:          #1a2436;
  --ink-2:        #2c3a52;
  --ink-3:        #5b6781;
  --muted:        #8b95a8;
  --line:         #e1e3e8;
  --line-2:       #ecedf1;

  --paper:        #f4f4f1;   /* warm light bg used in sections */
  --paper-2:      #f9f8f4;
  --white:        #ffffff;

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-min: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --pad: clamp(20px, 4vw, 56px);
  --header-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
}
body { font-size: 15px; line-height: 1.85; letter-spacing: 0.02em; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.en { font-family: var(--font-en); letter-spacing: 0.06em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ───────────────── Header ───────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line-2);
  display: flex;
}
.site-header .container {
  height: 100%;
  width: 100%;
  flex: 1 1 100%;
  display: flex; align-items: stretch; justify-content: space-between;
  gap: 0;
  padding-right: 0; /* CTA bleeds to right edge of container */
}
.brand {
  display: flex; align-items: center; gap: 14px;
  min-width: 0;
}
.brand-logo {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text { line-height: 1.1; }
.brand-text .kk {
  display: inline-block;
  font-size: 12px; color: var(--ink-2);
  letter-spacing: 0.1em; margin-bottom: 4px;
}
.brand-text .nm {
  display: block;
  font-family: var(--font-min);
  font-weight: 600;
  font-size: 21px; color: var(--ink);
  letter-spacing: 0.14em;
  line-height: 1;
}

.nav {
  display: flex; align-items: stretch;
  gap: 4px;
  margin-left: auto;
  margin-right: 24px;
}
.nav a {
  display: inline-flex; align-items: center;
  padding: 0 18px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--ink-2);
  position: relative;
  transition: color .2s ease;
}
.nav a:hover { color: var(--navy); }
.nav a.is-active { color: var(--navy); font-weight: 700; }
.nav a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 26px;
  height: 2px; background: var(--gold);
}

.cta-contact {
  display: flex; align-items: center; gap: 10px;
  padding: 0 32px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px; font-weight: 500; letter-spacing: 0.14em;
  transition: background .2s ease;
  height: 100%;
  margin-left: auto;
}
.cta-contact:hover { background: var(--navy-deep); }
.cta-contact svg { width: 18px; height: 18px; }

.menu-toggle { display: none; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; gap: 5px;
    width: 56px; align-self: stretch;
    background: var(--navy);
    justify-content: center; align-items: center;
  }
  .menu-toggle span { display: block; width: 22px; height: 1.5px; background: white; transition: transform .2s; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .cta-contact { padding: 0 18px; font-size: 12px; }
}

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--navy);
  padding: 32px var(--pad);
  display: flex; flex-direction: column; gap: 4px;
  overflow: auto;
  opacity: 0; pointer-events: none;
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.6,0,.3,1), opacity .2s ease;
}
.mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-size: 16px; font-weight: 500; letter-spacing: 0.1em;
  color: white;
  padding: 18px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ───────────────── Hero ───────────────── */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background: #0a1830;
  color: white;
  overflow: hidden;
  min-height: 680px;
  height: clamp(620px, 88vh, 820px);
  display: flex;
  align-items: center;
}

/* Full-bleed image stage */
.hero-stage {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center right;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease;
  will-change: opacity, transform;
}
.hero-slide.is-active {
  opacity: 1;
  animation: heroKenBurns 9s ease-out forwards;
}
@keyframes heroKenBurns {
  from { transform: scale(1.08) translateX(8px); }
  to   { transform: scale(1.0)  translateX(0); }
}
/* Left-side fade so text on dark area is always readable */
.hero-stage::after {
  content: "";
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(8,20,40,0.94) 0%, rgba(8,20,40,0.78) 28%, rgba(8,20,40,0.30) 55%, rgba(8,20,40,0) 80%),
    linear-gradient(180deg, rgba(8,20,40,0.35) 0%, rgba(8,20,40,0) 25%, rgba(8,20,40,0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: clamp(32px, 5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 88px);
}
.hero-text { max-width: 560px; }

/* Slide indicators */
.hero-indicators {
  position: absolute;
  right: var(--pad);
  bottom: 36px;
  z-index: 4;
  display: flex;
  gap: 14px;
  align-items: center;
}
.hero-indicators .num {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  margin-right: 8px;
}
.hero-indicators .num strong {
  color: var(--gold-soft);
  font-weight: 600;
  margin-right: 4px;
}
.hero-dot {
  position: relative;
  width: 40px; height: 2px;
  background: rgba(255,255,255,0.18);
  border: 0; padding: 12px 0;
  cursor: pointer;
  background-clip: content-box;
}
.hero-dot::after {
  content: "";
  position: absolute; left: 0; top: 50%;
  height: 2px; width: 0;
  background: var(--gold);
  transform: translateY(-50%);
  transition: width .25s ease;
}
.hero-dot.is-active::after {
  width: 100%;
  transition: width 6s linear;
}
.hero-dot:hover::after { width: 100%; transition: width .25s ease; }

/* Scroll hint at hero bottom */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-en);
  font-size: 9px; letter-spacing: 0.32em;
  text-transform: uppercase;
}
.hero-scroll .bar {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(200,156,76,0.7), transparent);
  animation: heroScroll 2.2s infinite ease-in-out;
}
@keyframes heroScroll {
  0%   { transform: translateY(-12px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 11px; letter-spacing: 0.32em;
  color: var(--gold-soft);
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  font-weight: 500;
}
.hero-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--font-min);
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 50px);
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin: 0 0 32px;
  text-wrap: balance;
}
.hero-sub {
  font-family: var(--font-min);
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 2.0;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.92);
  margin: 0 0 22px;
}
.hero-desc {
  font-size: 14px; line-height: 2.0; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.72);
  max-width: 38ch;
  margin: 0 0 40px;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 16px 28px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em;
  transition: background .2s, color .2s;
  position: relative;
}
.btn-ghost:hover { background: var(--gold); color: var(--navy-deep); }
.btn-ghost .arrow {
  width: 24px; height: 1px; background: currentColor; position: relative;
}
.btn-ghost .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Mobile: stronger overlay for text legibility, taller hero */
@media (max-width: 720px) {
  .hero { height: auto; min-height: 560px; padding-bottom: 80px; }
  .hero-stage::after {
    background:
      linear-gradient(180deg, rgba(8,20,40,0.85) 0%, rgba(8,20,40,0.65) 50%, rgba(8,20,40,0.5) 100%);
  }
  .hero-slide { background-position: center; }
}

/* Hero text intro animation on slide change */
.hero-text.is-anim > * {
  animation: heroTextIn 0.9s ease both;
}
.hero-text.is-anim > *:nth-child(1) { animation-delay: 0.05s; }
.hero-text.is-anim > *:nth-child(2) { animation-delay: 0.15s; }
.hero-text.is-anim > *:nth-child(3) { animation-delay: 0.25s; }
.hero-text.is-anim > *:nth-child(4) { animation-delay: 0.35s; }
.hero-text.is-anim > *:nth-child(5) { animation-delay: 0.45s; }
@keyframes heroTextIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────────────── Section frames ───────────────── */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--navy-deep); color: white; }

.section-title {
  text-align: center;
  margin: 0 auto 56px;
}
.section-title .ja {
  display: block;
  font-family: var(--font-min);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.18em;
  color: var(--ink);
}
.section--dark .section-title .ja { color: white; }
.section-title .underline {
  display: block;
  width: 40px; height: 2px; background: var(--gold);
  margin: 18px auto 0;
}
.section-title .en {
  display: block; margin-top: 14px;
  font-family: var(--font-en);
  font-size: 11px; letter-spacing: 0.32em;
  color: var(--muted); text-transform: uppercase;
  font-weight: 500;
}

/* ───────────────── Strengths ───────────────── */
.strengths {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.strength {
  background: var(--white);
  padding: 44px 28px 36px;
  text-align: center;
  border: 1px solid var(--line-2);
  box-shadow: 0 2px 24px rgba(20,42,82,0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.strength:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(20,42,82,0.08); }
.strength .ico {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  display: grid; place-items: center;
}
.strength .ico img { width: 100%; height: 100%; object-fit: contain; }
.strength h3 {
  font-family: var(--font-min);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--navy);
  margin: 0 0 18px;
}
.strength p {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.95;
  margin: 0;
  letter-spacing: 0.02em;
}
@media (max-width: 980px) { .strengths { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .strengths { grid-template-columns: 1fr; } }

/* ───────────────── Product cards ───────────────── */
.products {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product {
  background: var(--navy-card);
  color: white;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: transform .3s ease;
}
.product:hover { transform: translateY(-4px); }
.product .img {
  aspect-ratio: 4 / 3;
  background-color: #0a1d3a;
  background-size: cover;
  background-position: center;
  transition: transform .8s ease;
}
.product:hover .img { transform: scale(1.04); }
.product .body {
  padding: 22px 24px 28px;
  position: relative;
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product h3 {
  font-family: var(--font-min);
  font-weight: 600;
  font-size: 18px; letter-spacing: 0.1em;
  margin: 0 0 4px;
  color: white;
}
.product p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
}
.product .arrow {
  position: absolute; right: 22px; bottom: 24px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.9);
}
.product .arrow svg { width: 100%; height: 100%; }
@media (max-width: 980px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

/* ───────────────── Company section ───────────────── */
.company {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.company-photo {
  aspect-ratio: 4 / 5;
  background-color: var(--navy);
  background-size: cover; background-position: center;
}
.company-intro {
  padding: 8px 6px;
}
.company-intro h2 {
  font-family: var(--font-min);
  font-weight: 600;
  font-size: 28px; letter-spacing: 0.18em;
  color: var(--ink);
  margin: 0 0 6px;
  position: relative;
  padding-bottom: 16px;
}
.company-intro h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 2px; background: var(--gold);
}
.company-intro h2 .en {
  display: block; margin-top: 10px;
  font-family: var(--font-en);
  font-size: 10px; letter-spacing: 0.32em;
  font-weight: 500; color: var(--muted);
  text-transform: uppercase;
}
.company-intro p {
  font-size: 14px; line-height: 2; color: var(--ink-3);
  margin: 32px 0 28px;
}
.btn-line {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 14px 22px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  transition: background .2s, color .2s;
}
.btn-line:hover { background: var(--navy); color: white; }
.btn-line .arrow {
  width: 22px; height: 1px; background: currentColor; position: relative;
}
.btn-line .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.company-table {
  background: rgba(255,255,255,0.6);
}
.company-table dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  margin: 0;
  border-bottom: 1px solid rgba(20,42,82,0.08);
}
.company-table dl:first-child { border-top: 1px solid rgba(20,42,82,0.08); }
.company-table dt {
  font-size: 12px; font-weight: 600; color: var(--ink);
  letter-spacing: 0.16em;
  padding: 16px 12px;
  background: rgba(20,42,82,0.04);
  display: flex; align-items: flex-start;
}
.company-table dd {
  margin: 0; font-size: 13px; color: var(--ink-2);
  padding: 16px 16px;
  line-height: 1.8;
}
.officers-grid {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 24px;
  font-size: 12.5px; line-height: 1.8;
}
.officers-grid .role { color: var(--ink-3); white-space: nowrap; }

@media (max-width: 1080px) {
  .company { grid-template-columns: 1fr 1fr; }
  .company-table { grid-column: 1 / 3; }
}
@media (max-width: 680px) {
  .company { grid-template-columns: 1fr; }
  .company-table { grid-column: auto; }
  .company-photo { aspect-ratio: 16/10; }
}

/* ───────────────── Quality section ───────────────── */
.quality {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  align-items: stretch;
  background:
    linear-gradient(120deg, #0a1d3a 0%, #102749 60%),
    var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.quality::before {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 50%; height: 140%;
  background-image: url('assets/factory-precision.png');
  background-size: cover; background-position: center;
  opacity: 0.45;
  mix-blend-mode: lighten;
}
.quality::after {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 65%;
  background: linear-gradient(90deg, rgba(10,29,58,1) 0%, rgba(10,29,58,0.55) 35%, rgba(10,29,58,0) 100%);
}
.quality > * { position: relative; z-index: 2; }
.quality-left {
  padding: clamp(48px, 8vw, 88px) clamp(28px, 5vw, 56px);
  color: white;
}
.quality-left h2 {
  font-family: var(--font-min);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px); letter-spacing: 0.18em;
  margin: 0 0 22px;
  position: relative; padding-bottom: 16px;
}
.quality-left h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 2px; background: var(--gold);
}
.quality-left p {
  font-size: 14px; line-height: 2.0;
  color: rgba(255,255,255,0.78);
  margin: 0 0 36px;
  max-width: 32ch;
}
.btn-line-light {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 14px 22px;
  border: 1px solid var(--gold);
  color: var(--gold-soft);
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  transition: background .2s, color .2s;
}
.btn-line-light:hover { background: var(--gold); color: var(--navy-deep); }
.btn-line-light .arrow { width: 22px; height: 1px; background: currentColor; position: relative; }
.btn-line-light .arrow::after { content: ""; position: absolute; right:0; top:-3px; width:6px; height:6px; border-top:1px solid currentColor; border-right:1px solid currentColor; transform: rotate(45deg); }

.quality-right {
  padding: clamp(48px, 8vw, 88px) clamp(28px, 5vw, 56px);
  display: flex; align-items: center; justify-content: center;
}
.cert-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 480px;
}
.cert {
  background: var(--white);
  padding: 24px 12px;
  display: grid; place-items: center;
  border-radius: 4px;
  text-align: center;
}
.cert img { width: 100%; max-width: 100px; height: 90px; object-fit: contain; }
.cert .label {
  margin-top: 12px;
  font-size: 10px; letter-spacing: 0.14em; color: var(--ink-2);
  font-weight: 600;
}

@media (max-width: 880px) {
  .quality { grid-template-columns: 1fr; }
  .quality::after { width: 100%; background: linear-gradient(180deg, rgba(10,29,58,0.85) 0%, rgba(10,29,58,0.5) 100%); }
  .quality::before { width: 100%; right: 0; top: 30%; }
}

/* ───────────────── History (compact) ───────────────── */
.history {
  display: grid; grid-template-columns: 280px 1fr; gap: 64px;
  align-items: start;
}
.history-side h2 {
  font-family: var(--font-min); font-weight: 600;
  font-size: 26px; letter-spacing: 0.18em;
  margin: 0 0 18px;
  position: relative; padding-bottom: 16px;
}
.history-side h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--gold); }
.history-side .en { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.3em; color: var(--muted); text-transform: uppercase; }
.history-side p { font-size: 13.5px; color: var(--ink-3); line-height: 2; margin: 24px 0 0; }

.history-controls {
  margin-top: 32px;
  display: grid; gap: 6px;
}
.history-controls button {
  text-align: left;
  font-size: 12.5px; letter-spacing: 0.06em;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink-2);
  transition: all .2s;
}
.history-controls button:hover { border-color: var(--navy); color: var(--navy); }
.history-controls button.is-active { background: var(--navy); border-color: var(--navy); color: white; }

.timeline {
  position: relative;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.timeline-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line-2);
  position: relative;
}
.timeline-row:last-child { border-bottom: 0; }
.timeline-row .date {
  font-family: var(--font-en);
  font-size: 12px; color: var(--ink); font-weight: 600;
  letter-spacing: 0.04em;
}
.timeline-row .date .era {
  display: block; font-family: var(--font-jp);
  font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px;
}
.timeline-row .text { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; }
.timeline-row.is-milestone {
  background: rgba(200,156,76,0.06);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}
.timeline-row.is-milestone .text { font-weight: 600; color: var(--ink); }

@media (max-width: 880px) { .history { grid-template-columns: 1fr; gap: 32px; } }

/* ───────────────── Footer ───────────────── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}
.footer-brand .brand-text .nm { color: white; }
.footer-brand .brand-text .kk { color: rgba(255,255,255,0.7); }
.footer-brand .footer-addr {
  margin-top: 24px;
  font-size: 12.5px; line-height: 1.85;
  color: rgba(255,255,255,0.7);
}
.footer-brand .footer-tel {
  font-size: 12px; color: rgba(255,255,255,0.7);
  margin-top: 10px; letter-spacing: 0.04em;
}
.footer-col h5 {
  font-size: 11px; letter-spacing: 0.24em; color: rgba(255,255,255,0.45);
  text-transform: uppercase; margin: 0 0 18px; font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-col a {
  color: rgba(255,255,255,0.85); font-size: 13px;
  letter-spacing: 0.06em;
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold-soft); }

.footer-cta {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 24px 26px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  display: block;
}
.footer-cta:hover { background: rgba(200,156,76,0.08); border-color: var(--gold); }
.footer-cta .label {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.12em; color: white;
  margin-bottom: 12px;
}
.footer-cta .label svg { width: 22px; height: 22px; }
.footer-cta p {
  margin: 0;
  font-size: 11.5px; line-height: 1.8;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
}

@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ───────────────── Products Detail ───────────────── */
.pd-tabs {
  display: flex;
  border-bottom: 2px solid var(--line);
  margin-bottom: 48px;
  overflow-x: auto;
  gap: 0;
}
.pd-tab {
  padding: 14px 28px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--ink-3);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.pd-tab:hover { color: var(--navy); }
.pd-tab.is-active { color: var(--navy); font-weight: 700; border-bottom-color: var(--gold); }

.pd-body { display: flex; flex-direction: column; gap: 40px; }

.pd-header h2 {
  font-family: var(--font-min);
  font-size: clamp(22px, 3vw, 30px); font-weight: 600;
  letter-spacing: 0.1em; color: var(--navy);
  margin: 0 0 10px;
  display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap;
}
.pd-header h2 .en { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0.12em; }
.pd-header p { font-size: 15px; color: var(--ink-2); line-height: 1.9; max-width: 700px; margin: 0; }

.pd-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.pd-type { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--white); }
.pd-type-img { height: 150px; background-size: cover; background-position: center; background-color: var(--paper); }
.pd-type-label {
  padding: 10px 14px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  text-align: center; color: var(--ink);
  border-top: 1px solid var(--line);
}

.pd-materials {
  background: var(--paper); border-radius: 4px; padding: 32px 36px;
}
.pd-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 20px;
}
.pd-mat-grid { display: flex; flex-direction: column; gap: 14px; }
.pd-mat-group { display: flex; gap: 20px; align-items: flex-start; }
.pd-mat-group-label {
  font-size: 13px; font-weight: 600; color: var(--navy);
  letter-spacing: 0.06em; min-width: 220px; padding-top: 5px; flex-shrink: 0;
}
.pd-mat-items { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-mat-tag {
  display: inline-block; padding: 4px 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  font-size: 12px; font-family: var(--font-en); color: var(--ink-2); letter-spacing: 0.04em;
}

.pd-specs { }
.pd-spec-table {
  border-collapse: collapse; width: 100%; max-width: 460px;
  font-size: 14px;
}
.pd-spec-table th, .pd-spec-table td {
  padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line);
}
.pd-spec-table th { font-weight: 500; color: var(--ink-3); background: var(--paper); width: 160px; }
.pd-spec-table td { font-family: var(--font-en); font-weight: 600; color: var(--navy); letter-spacing: 0.06em; }

@media (max-width: 720px) {
  .pd-tab { padding: 12px 16px; font-size: 13px; }
  .pd-mat-group { flex-direction: column; gap: 8px; }
  .pd-mat-group-label { min-width: unset; }
  .pd-materials { padding: 24px 20px; }
  .pd-types { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
