@charset "UTF-8";
/* ============================================================
   Chroma Future Co., Ltd. — new site design
   Visual language based on the reference template (fukuieosaka.com):
   white / pale blue-grey sections, deep navy ink, blue accent,
   generous whitespace, large rounded cards, centered section titles.
   ============================================================ */

:root {
  --primary: #2c3e50;
  --primary-deep: #1c2b3a;
  --primary-soft: #40566c;
  --accent: #415d75;
  --accent-soft: #e6ebef;
  --light: #f4f6f9;
  --cream: #fef9e8;
  --ink: #2c3e50;
  --body: #4a5561;
  --muted: #8a97a3;
  --line: #e5e9ee;
  --white: #fff;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 8px 24px rgba(28, 43, 58, .06);
  --shadow-hover: 0 20px 40px rgba(28, 43, 58, .14);
  --maxw: 1200px;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "MS PGothic", sans-serif;
  --en: "Helvetica Neue", "Arial", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
h1, h2, h3, h4, p { margin: 0; }
button, input, textarea { font-family: inherit; }
.en { font-family: var(--en); letter-spacing: .16em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 76px 0; }
.section--light { background: var(--light); }
.section--white { background: var(--white); }

/* ---------- shared headings ---------- */
.section-title { text-align: center; margin-bottom: 54px; }
.section-title .eyebrow {
  display: block; font: 600 12px/1 var(--en); letter-spacing: .3em;
  color: var(--accent); margin-bottom: 18px; text-transform: uppercase;
}
.section-title h2 {
  font-size: 2.4rem; font-weight: 500; letter-spacing: .08em;
  color: var(--primary); position: relative; display: inline-block;
  padding-bottom: 18px; line-height: 1.4;
}
.section-title h2::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 70px; height: 4px;
  background: var(--accent); border-radius: 2px;
}
.section-title .lead { margin-top: 20px; font-size: .95rem; color: var(--muted); letter-spacing: .06em; }
.section-title--left { text-align: left; margin-bottom: 36px; }
.section-title--left h2::after { left: 0; transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 15px 34px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  letter-spacing: .08em; transition: .28s ease; border: 1px solid transparent;
  cursor: pointer; line-height: 1.4;
}
.btn .arrow { font-family: var(--en); font-size: 1.05rem; transition: transform .28s ease; }
.btn:hover .arrow { transform: translateX(5px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-deep); box-shadow: 0 10px 24px rgba(28,43,58,.2); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #334b5f; box-shadow: 0 10px 24px rgba(65,93,117,.25); }
.btn--outline { border-color: rgba(255,255,255,.65); color: #fff; }
.btn--outline:hover { background: #fff; color: var(--primary); }
.btn--ghost { border-color: var(--line); color: var(--primary); background: #fff; }
.btn--ghost:hover { border-color: var(--primary); }
.btn--sm { padding: 11px 24px; font-size: .82rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: 84px; background: #fff;
  border-bottom: 1px solid rgba(28,43,58,.06); transition: box-shadow .3s, height .3s;
}
.site-header.is-scrolled { height: 72px; box-shadow: 0 4px 22px rgba(28,43,58,.08); }
/* The header is full-bleed: its side gutters and the nav spacing scale with
   the viewport instead of being capped by the 1200px content grid. */
.container.header-inner {
  max-width: none;
  padding: 0 clamp(20px, 4.2vw, 80px);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: clamp(18px, 2.4vw, 40px);
}
.brand {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  gap: 5px; flex-shrink: 0;
}
.brand__logo { display: block; width: 210px; height: auto; }
.brand__sub {
  /* Indent by one character: the name should not be flush with the logo edge. */
  padding-left: 1em;
  font-size: 11px; line-height: 1.2; letter-spacing: .16em;
  color: #5b6b7b; white-space: nowrap;
}

/* Desktop: the menu sits towards the right edge, next to MENU / hamburger.
   (Below 768px .main-nav is hidden and the drawer takes over.) */
.main-nav { display: flex; align-items: center; gap: clamp(26px, 3.2vw, 56px); margin-left: auto; }
.main-nav a {
  font-size: 1rem; letter-spacing: .12em; color: var(--primary);
  position: relative; padding: 8px 0; transition: color .25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 0; height: 2px;
  background: var(--accent); transition: width .28s ease;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--accent); }
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-contact { font-size: .9rem; letter-spacing: .1em; color: var(--muted); }
.menu-toggle {
  width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 50%; transition: background .25s;
}
.menu-toggle:hover { background: var(--light); }
.menu-toggle span { display: block; width: 20px; height: 1.5px; background: var(--primary); transition: .3s; }
.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); }
.drawer {
  position: fixed; inset: 0; z-index: 90; background: rgba(20,32,44,.55);
  opacity: 0; visibility: hidden; transition: .35s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(390px, 88vw);
  background: #fff; padding: 110px 44px 44px; transform: translateX(100%);
  transition: transform .4s cubic-bezier(.22,.8,.3,1); overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__label { font: 600 11px/1 var(--en); letter-spacing: .3em; color: var(--accent); margin-bottom: 26px; }
.drawer__nav li { border-bottom: 1px solid var(--line); }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 1.05rem; color: var(--primary); letter-spacing: .08em; }
.drawer__nav a span { font-size: 10px; color: var(--muted); letter-spacing: .18em; }
.drawer__info { margin-top: 40px; font-size: .82rem; color: var(--muted); line-height: 2; }

/* ---------- home hero ---------- */
.hero {
  position: relative; min-height: 620px; height: calc(100vh - 84px); max-height: 820px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #16283a;
  color: #fff; overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  opacity: 0; transform: scale(1.055);
  transition: opacity 1.15s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slide--factory { background-position: center 46%; }
.hero__slide--design { background-position: center 44%; }
.hero__slide--pet { background-position: center 50%; }
/* each frame gets its own scrim so white type stays legible on bright photos */
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,30,44,.68) 0%, rgba(18,34,50,.58) 45%, rgba(14,28,42,.80) 100%);
}
.hero__slide--design::after {
  background: linear-gradient(180deg, rgba(14,28,42,.70) 0%, rgba(16,30,44,.62) 45%, rgba(12,26,40,.80) 100%);
}
.hero__slide--pet::after {
  background: linear-gradient(180deg, rgba(16,30,44,.62) 0%, rgba(18,34,50,.54) 45%, rgba(14,28,42,.76) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 0 24px; max-width: 1000px; }
.hero__en { font: 600 12px/1 var(--en); letter-spacing: .42em; color: rgba(255,255,255,.75); margin-bottom: 30px; }
.hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: .09em;
  line-height: 1.5; text-shadow: 0 2px 18px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.32);
}
.hero__sub {
  margin-top: 26px; font-size: .98rem; letter-spacing: .12em; line-height: 2;
  color: rgba(255,255,255,.96); text-shadow: 0 1px 10px rgba(0,0,0,.38);
}
.hero__sub span { display: inline-block; padding: 7px 18px; background: rgba(24,40,58,.42); border-radius: 4px; }
.hero__sub em { display: block; font-style: normal; margin-top: 10px; }
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  font: 600 10px/1 var(--en); letter-spacing: .3em; color: rgba(255,255,255,.8);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.hero__scroll::after { content: ""; width: 1px; height: 42px; background: rgba(255,255,255,.55); animation: scrollLine 1.9s infinite; }
@keyframes scrollLine { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* hero slider controls — right offset leaves room for the fixed LINE button */
.hero__controls {
  position: absolute; right: 130px; bottom: 38px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.hero__caption {
  display: flex; align-items: center; gap: 12px;
  font-size: .76rem; letter-spacing: .14em; color: rgba(255,255,255,.92);
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
}
.hero__caption-num { font: 600 11px/1 var(--en); letter-spacing: .2em; color: #b3c9db; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
  width: 46px; height: 18px; padding: 7px 0; border: 0; background: transparent;
  cursor: pointer; -webkit-appearance: none; appearance: none;
}
.hero__dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero__dot span { display: block; position: relative; width: 100%; height: 2px; background: rgba(255,255,255,.42); overflow: hidden; }
.hero__dot span::after {
  content: ""; position: absolute; inset: 0; background: #fff;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.hero__dot.is-active span::after { animation: heroProgress 6s linear forwards; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- philosophy split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
.split__media::after {
  content: ""; position: absolute; width: 150px; height: 150px; right: -24px; bottom: -24px;
  border: 2px solid var(--accent); border-radius: var(--radius); z-index: -1; opacity: .55;
}
/* OEM 生産体制 only: square corners for this single image (and its outline
   accent). Every other .split__media / gallery image keeps --radius. */
.split__media--square img { border-radius: 0; }
.split__media--square::after { border-radius: 0; }
.split__body .eyebrow { font: 600 12px/1 var(--en); letter-spacing: .3em; color: var(--accent); margin-bottom: 20px; }
.split__body h2 { font-size: 2rem; font-weight: 500; letter-spacing: .07em; line-height: 1.6; color: var(--primary); margin-bottom: 24px; }
.split__body p { margin-bottom: 28px; color: var(--body); }
.divider-short { width: 54px; height: 3px; background: var(--accent); border-radius: 2px; margin-bottom: 26px; }

/* ---------- services (reference-template cards) ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px;
  max-width: 900px; margin: 0 auto;
}
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.service-card__img { height: 260px; overflow: hidden; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s; }
.service-card:hover .service-card__img img { transform: scale(1.06); }
.service-card__body { padding: 32px 36px 36px; flex: 1; display: flex; flex-direction: column; }
.service-card__icon {
  display: none;
}
.service-card h3 { font-size: 1.3rem; font-weight: 600; color: var(--primary); letter-spacing: .06em; margin-bottom: 14px; }
.service-card > .service-card__body > p { font-size: .9rem; color: var(--body); margin-bottom: 18px; }
.feature-list li { display: flex; align-items: flex-start; gap: 9px; font-size: .85rem; margin-bottom: 9px; color: var(--body); }
.feature-list li i { color: var(--accent); font-style: normal; font-size: .95rem; line-height: 1.7; flex-shrink: 0; }

/* ---------- stats strip ---------- */
.stats { background: var(--primary); color: #fff; padding: 58px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stats__item { text-align: center; padding: 10px 24px; border-right: 1px solid rgba(255,255,255,.14); }
.stats__item:last-child { border-right: 0; }
.stats__num { font: 700 clamp(2rem, 3.4vw, 2.9rem)/1 var(--en); letter-spacing: .02em; color: #fff; }
.stats__num small { font-size: .9rem; margin-left: 4px; font-family: var(--jp); font-weight: 500; }
.stats__label { margin-top: 14px; font-size: .85rem; letter-spacing: .1em; color: rgba(255,255,255,.72); }

/* ---------- CTA ---------- */
.cta {
  position: relative; padding: 104px 0; text-align: center; color: #fff; overflow: hidden;
  background: url("../images/site/cta-bg.jpg") center / cover no-repeat;
}
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(24,38,54,.93), rgba(35,57,78,.82)); }
.cta__inner { position: relative; z-index: 2; }
.cta__en { font: 600 12px/1 var(--en); letter-spacing: .36em; color: rgba(255,255,255,.7); margin-bottom: 24px; }
.cta h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 500; letter-spacing: .1em; line-height: 1.6; margin-bottom: 20px; }
.cta p { color: rgba(255,255,255,.8); font-size: .93rem; letter-spacing: .08em; margin-bottom: 36px; line-height: 2; }

/* ---------- footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; padding-bottom: 54px; }
.footer-brand .brand { margin-bottom: 20px; }
.footer-brand p { font-size: .85rem; color: var(--muted); line-height: 2.1; }
.footer-col h4 { font: 600 11px/1 var(--en); letter-spacing: .26em; color: var(--accent); margin-bottom: 22px; }
.footer-col li { margin-bottom: 13px; font-size: .86rem; color: var(--body); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: .76rem; color: var(--muted); letter-spacing: .06em; }
.backtop {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; color: var(--primary); transition: .25s;
}
.backtop:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- LINE QR framed card ------------------------------------------
   Shared framed code: used by the floating popover on every page and by the
   large LINE section on contact.html. The page anchor needs header clearance.
   -------------------------------------------------------------------------- */
#line, #faq { scroll-margin-top: 90px; }

/* the framed code itself */
.line-qrbox {
  width: 258px; flex-shrink: 0; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 22px 22px 18px; box-shadow: var(--shadow);
}
.line-qrbox__frame {
  position: relative; padding: 12px; border-radius: 14px;
  background: #fff; border: 1px solid #eef1f5;
}
.line-qrbox__frame img { width: 100%; height: auto; display: block; border-radius: 4px; }
/* four corner brackets = the decorative frame */
.line-qrbox__corner {
  position: absolute; width: 20px; height: 20px;
  border: 3px solid var(--accent); pointer-events: none;
}
.line-qrbox__corner--tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.line-qrbox__corner--tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.line-qrbox__corner--bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.line-qrbox__corner--br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.line-qrbox__cap {
  margin: 14px 0 0; font-size: .76rem; color: var(--body); letter-spacing: .06em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.line-badge { display: block; width: 20px; height: 20px; flex-shrink: 0; border-radius: 5px; }
/* ---------- floating LINE contact (site-wide) ----------------------------
   A pulsing LINE button sits bottom-right; clicking it reveals a QR popover
   just above it. Mask, close button and ESC all dismiss the popover.
   -------------------------------------------------------------------------- */
.line-fab-mask { position: fixed; inset: 0; z-index: 200; display: none; }
.line-fab-mask.is-open { display: block; }
.line-fab-pop {
  position: fixed; right: 26px; bottom: 102px; z-index: 201; width: 292px;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .24s ease, transform .24s ease, visibility .24s;
}
.line-fab-pop.is-open { opacity: 1; visibility: visible; transform: none; }
.line-fab-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(28,43,58,.24);
}
.line-fab-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.22); color: #fff; font-size: 19px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; transition: background .18s;
}
.line-fab-close:hover { background: rgba(255,255,255,.4); }
.line-fab-head {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; color: #fff;
  background: linear-gradient(135deg, #2fd36a 0%, #00a94a 100%);
}
.line-fab-head::after {
  content: ""; position: absolute; right: -26px; top: -46px;
  width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.1);
}
/* The official LINE app icon already carries its own green rounded square,
   so no background here. A thin white ring separates it from the green head. */
.line-fab-mark {
  position: relative; z-index: 1; flex-shrink: 0; display: block;
  box-sizing: border-box; width: 44px; height: 44px;
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.92), 0 2px 8px rgba(0,90,40,.2);
}
.line-fab-htxt { position: relative; z-index: 1; min-width: 0; }
.line-fab-htxt b { display: block; font-size: .94rem; font-weight: 600; line-height: 1.35; letter-spacing: .03em; }
.line-fab-htxt small { display: block; margin-top: 2px; font-size: .7rem; color: rgba(255,255,255,.9); letter-spacing: .06em; }
.line-fab-body { padding: 22px 24px 2px; }
.line-fab-body .line-qrbox__frame { padding: 14px; }
.line-fab-body .line-qrbox__corner { width: 17px; height: 17px; border-width: 2px; }
.line-fab-foot { padding: 12px 20px 20px; text-align: center; }
.line-fab-foot p { margin: 0; font-size: .8rem; color: var(--body); letter-spacing: .04em; }
.line-fab-foot em {
  font-style: normal; color: #009a45; background: #e8f8ee;
  border-radius: 20px; padding: 3px 9px; font-size: .74rem; margin: 0 2px;
}
.line-fab-foot small {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 10px; font-size: .7rem; color: var(--muted);
}
.line-fab-dot { width: 7px; height: 7px; border-radius: 50%; background: #06c755; box-shadow: 0 0 0 3px rgba(6,199,85,.16); }
.line-fab-foot a { display: inline-block; margin-top: 12px; font-size: .76rem; color: var(--accent); letter-spacing: .04em; }
.line-fab-foot a:hover { text-decoration: underline; }

.line-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 202;
  width: 58px; height: 58px; padding: 0; border: 0; border-radius: 13px;
  background: #06c755; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0,150,70,.36);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.line-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 13px;
  border: 2px solid #35d46f; pointer-events: none;
  animation: lineFabPulse 2.6s ease-out infinite;
}
.line-fab:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,150,70,.48); }
.line-fab.is-open { filter: brightness(.9); }
.line-fab.is-open::before { display: none; }
.line-fab .line-fab-mark {
  width: 100%; height: 100%; padding: 0;
  border-radius: inherit; box-shadow: none;
}
.line-fab-label {
  position: absolute; right: 70px; top: 50%; transform: translate(6px,-50%);
  white-space: nowrap; background: var(--primary); color: #fff;
  font-size: .74rem; font-weight: 600; padding: 7px 11px; border-radius: 8px;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.line-fab-label::after {
  content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  border: 5px solid transparent; border-right: 0; border-left-color: var(--primary);
}
.line-fab:hover .line-fab-label { opacity: 1; transform: translate(0,-50%); }
@keyframes lineFabPulse {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

/* contact page section */
.line-contact {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 68px; align-items: center;
  background: var(--light); border-radius: var(--radius); padding: 58px 62px;
}
.line-contact__body h3 {
  font-size: 1.75rem; font-weight: 500; letter-spacing: .07em;
  color: var(--primary); margin: 0 0 20px; line-height: 1.6;
}
.line-contact__body > p { font-size: .92rem; line-height: 2.1; color: var(--body); margin-bottom: 28px; }
.line-contact .divider-short { margin-bottom: 24px; }
.line-steps li {
  display: flex; align-items: baseline; gap: 14px; font-size: .87rem;
  color: var(--body); padding: 11px 0; border-bottom: 1px dashed #dfe5ec;
}
.line-steps li:last-child { border-bottom: 0; }
.line-steps li span {
  font: 600 11px/1 var(--en); letter-spacing: .1em; color: var(--accent);
  background: var(--accent-soft); border-radius: 20px; padding: 7px 10px; flex-shrink: 0;
}
.line-contact__qr { display: flex; flex-direction: column; align-items: center; }
.line-contact__qr .line-qrbox { width: 292px; padding: 26px 26px 20px; box-shadow: var(--shadow-hover); }
.line-contact__note { font-size: .78rem; color: var(--muted); margin: 18px 0 0; line-height: 1.9; text-align: center; max-width: 340px; }

/* ---------- page hero (sub pages) ---------- */
.page-hero {
  position: relative; padding: 88px 0 92px; color: #fff; text-align: center; overflow: hidden;
  background: linear-gradient(125deg, #23384c 0%, #35506a 55%, #46627c 100%);
}
.page-hero::after {
  content: ""; position: absolute; right: -8%; top: -60%; width: 520px; height: 520px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.02);
}
.page-hero::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 70px; height: 4px; border-radius: 2px; background: var(--accent);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__en { font: 600 11px/1 var(--en); letter-spacing: .38em; color: rgba(255,255,255,.7); margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); font-weight: 500; letter-spacing: .1em; line-height: 1.65; }
.page-hero__sub { margin-top: 18px; font-size: .9rem; color: rgba(255,255,255,.78); letter-spacing: .08em; line-height: 2; }
.breadcrumb { margin-top: 26px; font-size: .74rem; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 10px; }

/* ---------- message box (company) ---------- */
.message-box {
  background: var(--cream); border-radius: 40px; padding: 54px 58px;
  box-shadow: 0 12px 28px rgba(28,43,58,.04); border: 1px solid rgba(65,93,117,.18);
  position: relative;
}
.message-box__quote { font-size: 2.6rem; line-height: 1; color: var(--accent); font-family: Georgia, serif; margin-bottom: 14px; }
.message-box h3 { font-size: 1.75rem; color: var(--primary); font-weight: 500; letter-spacing: .07em; margin-bottom: 26px; }
.message-box p { font-size: .94rem; margin-bottom: 16px; line-height: 2.1; }
.message-box__sign { margin-top: 32px; padding-top: 22px; border-top: 2px dashed #ddd5bb; text-align: right; color: var(--primary); font-size: .9rem; letter-spacing: .08em; }
.message-box__sign strong { display: block; font-size: 1.05rem; font-weight: 600; }

/* ---------- company profile table ---------- */
.profile-table {
  max-width: 940px; margin: 0 auto;
  border: 1px solid var(--line);
}
.profile-table__row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--line); }
.profile-table__row:last-child { border-bottom: 0; }
.profile-table__row dt {
  text-align: left; padding: 22px 24px; font-size: .88rem; font-weight: 600;
  color: var(--primary); letter-spacing: .1em; background: #fafbfd;
  border-right: 1px solid var(--line);
}
.profile-table__row dd { padding: 22px 24px; font-size: .92rem; color: var(--body); line-height: 2; }

/* ---------- FACTORY (new section) ---------- */
.factory-intro { max-width: 820px; margin: -18px auto 52px; text-align: center; }
.factory-intro p { font-size: .96rem; line-height: 2.15; color: var(--body); }
.factory-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.factory-tags span, .factory-tags a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .8rem; color: var(--primary); letter-spacing: .06em;
  text-decoration: none; transition: border-color .2s, background .2s, color .2s;
}
.factory-tags a:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.factory-tags span::before, .factory-tags a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.factory-banner { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.factory-banner img { width: 100%; height: 420px; object-fit: cover; }
.factory-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18,33,48,.78) 0%, rgba(18,33,48,.34) 48%, rgba(18,33,48,.30) 100%);
}
.factory-banner__cap { position: absolute; z-index: 2; left: 44px; bottom: 40px; color: #fff; max-width: 430px; }
.factory-banner__cap small { font: 600 11px/1 var(--en); letter-spacing: .3em; color: rgba(255,255,255,.72); display: block; margin-bottom: 14px; }
.factory-banner__cap h3 { font-size: 1.6rem; font-weight: 500; letter-spacing: .08em; line-height: 1.6; margin-bottom: 10px; }
.factory-banner__cap p { font-size: .84rem; color: rgba(255,255,255,.82); line-height: 1.9; }
.factory-banner__badge {
  position: absolute; z-index: 2; right: 36px; top: 32px; padding: 12px 22px;
  background: rgba(255,255,255,.94); border-radius: 999px; font-size: .8rem;
  color: var(--primary); letter-spacing: .1em; box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.factory-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.factory-item {
  position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in;
  background: #e9edf1; display: block; width: 100%; padding: 0; border: 0;
}
.factory-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.factory-item:hover img { transform: scale(1.06); }
.factory-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 28%, rgba(14,26,38,.30) 58%, rgba(14,26,38,.90) 100%);
  opacity: 1;
}
.factory-item__cap { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 17px; color: #fff; text-align: left; }
.factory-item__cap b { display: block; font: 600 10px/1 var(--en); letter-spacing: .24em; color: #b8ccdc; margin-bottom: 8px; }
.factory-item__cap strong { display: block; font-size: .95rem; font-weight: 600; letter-spacing: .07em; line-height: 1.5; }
.factory-item__cap small { display: block; font-size: .72rem; color: rgba(255,255,255,.75); letter-spacing: .04em; margin-top: 3px; }
.factory-item--wide { grid-column: span 7; height: 500px; }
.factory-item--tall { grid-column: span 5; height: 500px; }
.factory-item--third { grid-column: span 4; aspect-ratio: 4 / 3; }
.factory-item--quarter { grid-column: span 3; aspect-ratio: 4 / 3; }
.factory-item--third .factory-item__cap, .factory-item--quarter .factory-item__cap { left: 16px; right: 16px; bottom: 13px; }
.factory-item--quarter .factory-item__cap b { font-size: 9px; letter-spacing: .14em; margin-bottom: 5px; }
.factory-item--quarter .factory-item__cap strong { font-size: .8rem; line-height: 1.35; letter-spacing: .02em; }
.factory-item--quarter .factory-item__cap small { display: none; }

.factory-note {
  margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.factory-note__box { background: #fff; border-radius: var(--radius-sm); padding: 28px 32px; box-shadow: var(--shadow); }
.factory-note__box h4 { font-size: .95rem; color: var(--primary); font-weight: 600; letter-spacing: .08em; margin-bottom: 12px; }
.factory-note__box p { font-size: .85rem; line-height: 2; color: var(--body); }
.factory-note__box dl { display: grid; grid-template-columns: 84px 1fr; gap: 6px 14px; font-size: .84rem; }
.factory-note__box dt { color: var(--muted); }
.factory-note__img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-sm); margin-top: 18px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(14,24,34,.94);
  display: none; align-items: center; justify-content: center; padding: 40px 70px;
}
.lightbox.is-open { display: flex; }
.lightbox__img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.lightbox__cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); font-size: .85rem; letter-spacing: .08em; }
.lightbox__counter { position: absolute; top: 26px; left: 30px; color: rgba(255,255,255,.6); font: 600 12px/1 var(--en); letter-spacing: .2em; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.3rem;
  display: grid; place-items: center; transition: .25s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); border-color: var(--accent); }
.lightbox__close { top: 24px; right: 28px; }
.lightbox__nav--prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- access ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.access-grid img { width: 100%; border-radius: var(--radius); aspect-ratio: 3/2; object-fit: cover; box-shadow: var(--shadow); }
.access-info h3 { font-size: 1.3rem; color: var(--primary); font-weight: 600; letter-spacing: .08em; margin-bottom: 20px; }
.access-info address { font-style: normal; font-size: .94rem; line-height: 2.2; margin-bottom: 26px; }

/* ---------- OEM page ---------- */
.anchor-nav {
  position: sticky; top: 84px; z-index: 40; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.anchor-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; }
.anchor-nav a { display: block; padding: 17px 26px; font-size: .82rem; letter-spacing: .08em; color: var(--primary); transition: .25s; }
.anchor-nav a:hover { color: var(--accent); background: var(--light); }

.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.highlight-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 34px 30px; text-align: center; transition: .3s; }
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.highlight-card__num { font: 700 2.5rem/1 var(--en); color: var(--accent); letter-spacing: .01em; }
.highlight-card__num small { font-size: .9rem; font-family: var(--jp); margin-left: 5px; }
.highlight-card h4 { margin-top: 16px; font-size: 1rem; color: var(--primary); font-weight: 600; letter-spacing: .06em; }
.highlight-card p { margin-top: 10px; font-size: .84rem; line-height: 1.9; }

.info-panel { background: var(--light); border-radius: var(--radius); padding: 44px 48px; }
.info-panel h3 { font-size: 1.35rem; color: var(--primary); font-weight: 600; letter-spacing: .07em; margin-bottom: 18px; }
.info-panel p { font-size: .92rem; line-height: 2.1; }
.info-panel .notice { margin-top: 20px; padding: 16px 20px; background: #fff; border-left: 3px solid var(--accent); border-radius: 6px; font-size: .84rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 34px 28px 30px; }
.step-card__no { font: 700 1.8rem/1 var(--en); color: var(--accent); letter-spacing: .04em; }
.step-card__tag { display: inline-block; margin-left: 10px; font-size: .72rem; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.step-card h4 { font-size: 1rem; color: var(--primary); font-weight: 600; letter-spacing: .06em; margin: 16px 0 12px; }
.step-card p { font-size: .84rem; line-height: 1.95; }
.step-card .note { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--muted); line-height: 1.8; }

.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  padding: 24px 44px 24px 8px; font-size: .95rem; font-weight: 600; color: var(--primary);
  letter-spacing: .05em; position: relative;
}
.faq__q::before { content: "Q"; position: absolute; left: 8px; top: 24px; color: var(--accent); font: 700 1rem/1.6 var(--en); }
.faq__q { padding-left: 38px; }
.faq__q::after {
  content: "+"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 400 1.4rem/1 var(--en); color: var(--accent); transition: transform .3s;
}
.faq__item.is-open .faq__q::after { content: "−"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a p { padding: 0 20px 26px 38px; font-size: .88rem; line-height: 2.1; color: var(--body); }
.faq__a p::before { content: "A"; color: var(--muted); font: 700 1rem/1 var(--en); margin-right: 12px; }

.mini-table { border-top: 1px solid var(--line); }
.mini-table__row { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); padding: 16px 8px; font-size: .88rem; }
.mini-table__row dt { color: var(--muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 64px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 46px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 26px; }
.form-row label { display: block; font-size: .86rem; font-weight: 600; color: var(--primary); letter-spacing: .07em; margin-bottom: 10px; }
.form-row label .req { color: var(--accent); margin-left: 8px; font-size: .72rem; }
.form-row input, .form-row textarea {
  width: 100%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px;
  background: #fbfcfd; font-size: .92rem; color: var(--ink); transition: .25s;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--primary-soft); background: #fff; box-shadow: 0 0 0 3px rgba(44,62,80,.07); }
.form-row textarea { min-height: 190px; resize: vertical; }
.form-hp { position: absolute; left: -9999px; }
.form-note { font-size: .8rem; color: var(--muted); line-height: 1.9; margin-bottom: 24px; }
.form-submit { width: 100%; }
.form-status { margin-top: 18px; font-size: .85rem; color: var(--accent); display: none; }
.form-status.is-visible { display: block; }
.contact-aside__box { background: var(--light); border-radius: var(--radius-sm); padding: 30px 28px; margin-bottom: 20px; }
.contact-aside__box h4 { font: 600 11px/1 var(--en); letter-spacing: .24em; color: var(--accent); margin-bottom: 18px; }
.contact-aside__box p { font-size: .86rem; line-height: 2; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__slide { transform: none; transition: opacity .01s linear; }
  .hero__slide.is-active { transform: none; }
  .hero__dot.is-active span::after { animation: none; transform: scaleX(1); }
  .line-fab::before { animation: none; display: none; }
  .line-fab-pop { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 992px) {
  .main-nav { gap: 22px; }
  .header-contact { display: none; }
  .split { gap: 44px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .factory-item--wide, .factory-item--tall { height: 400px; }
  .factory-item--quarter { grid-column: span 6; aspect-ratio: 3/2; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { gap: 32px; }
  .line-contact { gap: 40px; padding: 46px 40px; }
}
/* Five nav items need more room than four: below 900px the drawer takes over.
   The drawer already lists HOME / 会社概要 / OEM / よくあるご質問 / お問い合わせ. */
@media (max-width: 899px) {
  .main-nav { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .section-title h2 { font-size: 1.8rem; }
  .site-header { height: 70px; }
  .site-header.is-scrolled { height: 64px; }
  .main-nav, .header-contact { display: none; }
  .brand__logo { width: 164px; }
  .brand { gap: 4px; }
  .brand__sub { font-size: 9px; letter-spacing: .1em; }
  .hero { min-height: 540px; height: 76vh; }
  .hero__title { font-size: 1.9rem; }
  .hero__scroll { display: none; }
  .hero__controls { right: auto; left: 50%; bottom: 24px; transform: translateX(-50%); align-items: center; }
  .hero__caption { font-size: .7rem; }
  .hero__dot { width: 36px; }
  /* keep the subject of each photo inside the narrow portrait crop */
  .hero__slide--factory { background-position: 36% 50%; }
  .hero__slide--design { background-position: 78% 50%; }
  .hero__slide--pet { background-position: 58% 50%; }
  .split { grid-template-columns: 1fr; gap: 46px; }
  .split__media::after { right: -12px; bottom: -12px; width: 100px; height: 100px; }
  .split__body h2 { font-size: 1.55rem; }
  .services-grid, .highlight-grid, .steps, .stats__grid { grid-template-columns: 1fr; }
  .stats__item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); padding: 22px 0; }
  .stats__item:last-child { border-bottom: 0; }
  .cta { padding: 74px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .message-box { padding: 32px 26px; border-radius: 26px; }
  .message-box h3 { font-size: 1.35rem; }
  .profile-table__row { grid-template-columns: 110px 1fr; }
  .profile-table__row dt { padding: 18px 12px; }
  .profile-table__row dd { padding: 18px 14px; }
  .factory-banner img { height: 300px; }
  .factory-banner__cap { left: 24px; bottom: 24px; }
  .factory-banner__cap h3 { font-size: 1.2rem; }
  .factory-banner__badge { right: 18px; top: 18px; font-size: .72rem; padding: 9px 16px; }
  .factory-grid { gap: 12px; }
  .factory-item--wide, .factory-item--tall { grid-column: span 12; height: auto; aspect-ratio: 3/2; }
  .factory-item--tall { aspect-ratio: 4/3; }
  .factory-item--third, .factory-item--quarter { grid-column: span 6; }
  .factory-note, .access-grid { grid-template-columns: 1fr; gap: 20px; }
  .anchor-nav { top: 70px; }
  .anchor-nav ul { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .anchor-nav a { white-space: nowrap; padding: 14px 18px; }
  .info-panel, .form-card { padding: 28px 24px; }
  .lightbox { padding: 60px 16px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .line-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 12px; }
  .line-fab::before { border-radius: 12px; }
  .line-fab-label { display: none; }
  .line-fab-pop { right: 16px; left: 16px; bottom: 84px; width: auto; transform-origin: bottom center; }
  .line-fab-pop .line-fab-card { max-width: 300px; margin-left: auto; margin-right: 0; }
  .line-fab-mask.is-open { background: rgba(16,28,40,.38); }
  .line-contact { grid-template-columns: 1fr; gap: 38px; padding: 34px 24px; }
  #line .section-title h2 { font-size: 1.6rem; }
  .line-contact__body h3 { font-size: 1.4rem; }
  .line-contact__qr .line-qrbox { width: 250px; }
}


/* ---------- WordPress block editor content (自由内容页 / 追加ページ) ---------- */
.entry-content { max-width: 860px; margin: 0 auto; font-size: 1rem; line-height: 1.9; color: var(--ink, #333); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.7rem; margin: 48px 0 18px; padding-left: 16px; border-left: 4px solid var(--accent, #415d75); line-height: 1.4; }
.entry-content h3 { font-size: 1.3rem; margin: 34px 0 14px; }
.entry-content h4 { font-size: 1.08rem; margin: 26px 0 10px; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.6em; padding-left: 1.5em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius, 24px); }
.entry-content figure { margin: 0 0 1.8em; }
.entry-content figcaption { font-size: .82rem; color: var(--muted, #7b8794); text-align: center; margin-top: 8px; }
.entry-content a { color: var(--accent, #415d75); text-decoration: underline; }
.entry-content blockquote { margin: 0 0 1.6em; padding: 14px 20px; border-left: 3px solid var(--accent, #415d75); background: #f7f9fb; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; }
.entry-content th, .entry-content td { border: 1px solid #dfe5ea; padding: 10px 12px; text-align: left; }
.entry-content th { background: #f2f6f8; }
.entry-content .wp-block-button__link { display: inline-block; background: var(--primary, #2c3e50); color: #fff; border-radius: 999px; padding: 12px 28px; text-decoration: none; }
.entry-content .alignwide { max-width: 1100px; }
.entry-content .alignfull { max-width: 100vw; }
