:root {
  --color-night:   #1E2430;
  --color-moon:    #E8E4D8;
  --color-paper:   #F7F5EF;
  --color-indigo:  #4A5568;
  --color-silver:  #C0C6CF;
  --color-ink:     #2B2B2B;
  --font-display: 'Zen Old Mincho', 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --max-read-width: 680px;
  --max-page-width: 1240px;
  --radius: 8px;
  --space-section: 110px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-paper);
  font-size: 16px;
  line-height: 2.0;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-night); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.5; letter-spacing: .02em; }
p { margin: 0 0 1.2em; }

.wrap { max-width: var(--max-page-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-section) 0; }
.text-center { text-align: center; }
.text-center p { max-width: var(--max-read-width); margin-left: auto; margin-right: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-night); color: var(--color-moon);
  padding: 8px 14px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ── B2B バナー ── */
.b2b-banner {
  background: var(--color-night); color: var(--color-moon);
  font-size: 12.5px; line-height: 1.6; text-align: center; padding: 7px 16px;
}
.b2b-banner b { color: #fff; }

/* ── ヘッダー ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,239,.92); backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid rgba(30,36,48,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.brand-mark { color: var(--color-night); font-size: 22px; }
.brand-name { font-size: 19px; font-weight: 600; display: flex; flex-direction: column; line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--color-indigo); letter-spacing: .12em; }
.site-nav { display: flex; align-items: center; }
.nav-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-list a { font-size: 14px; color: var(--color-indigo); padding: 6px 0; position: relative; }
.nav-list a:hover { color: var(--color-night); }
.nav-list a.active { color: var(--color-night); font-weight: 700; }
.nav-list a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-night);
}
.nav-toggle { display: none; border: 1px solid var(--color-silver); background: transparent;
  border-radius: var(--radius); padding: 8px 12px; font-family: var(--font-body); font-size: 13px; cursor: pointer; }

/* ── ヒーロー（月） ── */
.hero {
  position: relative; overflow: hidden; color: var(--color-moon);
  background: radial-gradient(120% 120% at 70% 10%, #2b3344 0%, var(--color-night) 55%, #151a24 100%);
  padding: 140px 0 130px; text-align: center;
}
.hero .moon {
  position: absolute; top: 14%; right: 16%; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fdfbf3 0%, #e8e4d8 45%, #c8c4b6 100%);
  box-shadow: 0 0 80px 20px rgba(232,228,216,.25);
  animation: moonGlow 24s ease-in-out infinite; will-change: opacity, box-shadow;
}
@keyframes moonGlow {
  0%,100% { opacity: .85; box-shadow: 0 0 70px 14px rgba(232,228,216,.18); }
  50%     { opacity: 1;  box-shadow: 0 0 110px 30px rgba(232,228,216,.34); }
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin: 0 0 .4em; color: #fff; letter-spacing: .04em; }
.hero .sub { font-size: clamp(15px, 2.4vw, 20px); color: var(--color-moon); margin-bottom: 2em; }
.hero .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── ボタン（月光白 CTA） ── */
.btn {
  display: inline-block; background: var(--color-moon); color: var(--color-night);
  font-weight: 700; padding: 14px 30px; border-radius: var(--radius); border: none;
  font-family: var(--font-body); font-size: 15px; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); background: #fff; }
.btn-ghost { background: transparent; color: var(--color-moon); border: 1px solid rgba(232,228,216,.5); }
.btn-ghost:hover { background: rgba(232,228,216,.12); color: #fff; }
.btn-dark { background: var(--color-night); color: var(--color-moon); }
.btn-dark:hover { background: #2b3344; }

/* ── ブロック共通 ── */
.lead-quote { font-family: var(--font-display); font-size: clamp(24px, 4vw, 40px); text-align: center;
  color: var(--color-night); line-height: 1.7; margin: 0 auto; max-width: 880px; }
.section h2.section-title { font-size: clamp(22px, 3.4vw, 32px); text-align: center; margin: 0 0 .6em; color: var(--color-night); }
.section .lead { max-width: var(--max-read-width); margin: 0 auto 2.4em; text-align: center; color: var(--color-indigo); }
.read { max-width: var(--max-read-width); margin-left: auto; margin-right: auto; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid rgba(30,36,48,.08); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: 0 6px 24px rgba(30,36,48,.05);
}
.card .ic { font-size: 26px; color: var(--color-night); }
.card h3 { font-size: 18px; margin: .5em 0 .4em; color: var(--color-night); }
.card p { font-size: 14px; color: var(--color-indigo); margin: 0; }

/* データバー */
.databar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; text-align: center; }
.databar .num { font-family: var(--font-display); font-size: clamp(28px, 5vw, 46px); color: var(--color-night); line-height: 1.1; }
.databar .lbl { font-size: 13px; color: var(--color-indigo); }

/* パートナー3カード（卸/OEM/ODM） */
.partner-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.partner-cards .card h3 { border-left: 3px solid var(--color-night); padding-left: 10px; }

/* 製品ページ */
.answer-block {
  background: var(--color-night); color: var(--color-moon); border-radius: var(--radius);
  padding: 32px 30px; max-width: 820px; margin: 0 auto 40px; line-height: 1.9;
}
.answer-block h2 { color: #fff; font-size: 18px; margin: 0 0 .6em; }
.product-hero { background: radial-gradient(120% 120% at 70% 10%, #2b3344, var(--color-night)); color: var(--color-moon); padding: 90px 0; text-align: center; }
.product-hero h1 { color: #fff; }
.product-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 30px; }
.product-gallery .ph { aspect-ratio: 1/1; background: linear-gradient(160deg,#2b3344,#151a24); border-radius: var(--radius); overflow: hidden; display:flex; align-items:center; justify-content:center; color: var(--color-silver); font-size: 13px; }
.product-gallery .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

.spec-table { width: 100%; border-collapse: collapse; max-width: 820px; margin: 0 auto; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid rgba(30,36,48,.1); font-size: 15px; vertical-align: top; }
.spec-table th { width: 32%; color: var(--color-indigo); font-weight: 500; background: #fff; }
.spec-table td { color: var(--color-ink); }

.test-table { width: 100%; border-collapse: collapse; max-width: 720px; margin: 0 auto; }
.test-table th, .test-table td { padding: 12px 14px; border-bottom: 1px solid rgba(30,36,48,.12); }
.test-table th { color: var(--color-night); }

.cta-card { background: #fff; border: 1px solid rgba(30,36,48,.1); border-radius: var(--radius); padding: 36px; max-width: 820px; margin: 0 auto; text-align: center; box-shadow: 0 8px 30px rgba(30,36,48,.06); }
.cta-card .row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* FAQ */
.faq-q { font-size: 18px; margin: 1.6em 0 .5em; color: var(--color-night); padding-left: 14px; border-left: 3px solid var(--color-night); }
.faq-a { color: var(--color-indigo); margin: 0 0 1em; padding-left: 14px; }

/* お問い合わせ */
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--color-night); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-silver); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px; background: #fff; color: var(--color-ink);
}
.form-field textarea { min-height: 140px; }
.form-note { font-size: 13px; color: var(--color-indigo); }
.contact-side { background: var(--color-night); color: var(--color-moon); border-radius: var(--radius); padding: 30px; }
.contact-side h3 { color: #fff; }
.contact-side a { color: var(--color-moon); text-decoration: underline; }
.wa-btn { display: block; text-align: center; background: #25D366; color: #fff !important; text-decoration: none !important; font-weight: 700; padding: 14px; border-radius: var(--radius); margin-top: 14px; }
.form-success { display: none; background: #eaf3ea; border: 1px solid #bcd9bc; color: #2f5d2f; padding: 16px; border-radius: var(--radius); margin-bottom: 18px; }
.form-success.show { display: block; }

/* パンくず */
.breadcrumb { font-size: 13px; color: var(--color-indigo); padding: 18px 0 0; }
.breadcrumb a { color: var(--color-indigo); }
.breadcrumb span { margin: 0 8px; }

/* フッター */
.site-footer { background: var(--color-night); color: var(--color-moon); padding: 70px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { font-family: var(--font-display); font-size: 22px; margin: 0 0 .3em; }
.footer-logo span { display: block; font-size: 12px; color: var(--color-silver); letter-spacing: .12em; }
.footer-tag { font-family: var(--font-display); font-size: 17px; }
.footer-b2b { font-size: 12.5px; color: var(--color-silver); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a, .footer-contact a { color: var(--color-moon); font-size: 14px; }
.footer-contact-title { font-family: var(--font-display); font-size: 16px; margin: 0 0 .6em; }
.footer-bottom { border-top: 1px solid rgba(232,228,216,.15); margin-top: 40px; padding-top: 20px; font-size: 12.5px; color: var(--color-silver); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-maker { margin: 0; }

/* モバイル固定連絡バー */
.mobile-sticky { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  height: 56px; background: var(--color-night); border-top: 1px solid rgba(232,228,216,.2); }
.mobile-sticky a { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--color-moon); font-size: 14px; font-weight: 700; }
.mobile-sticky .sticky-wa { background: #25D366; color: #fff; }

/* レスポンシブ */
@media (max-width: 860px) {
  :root { --space-section: 64px; }
  .nav-toggle { display: block; }
  .nav-list { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--color-paper);
    flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid rgba(30,36,48,.1); }
  .nav-list.open { display: flex; }
  .nav-list li { padding: 10px 0; border-bottom: 1px solid rgba(30,36,48,.06); }
  .cards, .databar, .partner-cards, .product-gallery { grid-template-columns: 1fr; }
  .databar { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .moon { width: 110px; height: 110px; top: 8%; right: 8%; }
  .mobile-sticky { display: flex; }
  body { padding-bottom: 56px; }
}

/* 製品カタログ・詳細 */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.product-card { background: #fff; border: 1px solid rgba(30, 36, 48, .08); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(30, 36, 48, .12); }
.pc-link { display: block; padding: 22px 20px 24px; color: inherit; text-decoration: none; }
.pc-thumb { aspect-ratio: 1/1; background: linear-gradient(160deg, var(--color-night), #2c3445); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 40px; color: var(--color-moon); margin-bottom: 14px; }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-cat { font-size: 12px; letter-spacing: .08em; color: var(--color-silver); margin: 0 0 4px; }
.pc-name { font-size: 16px; margin: 0 0 2px; line-height: 1.5; }
.pc-model { font-size: 12px; color: var(--color-silver); margin: 0 0 12px; }
.pc-spec { list-style: none; margin: 0 0 12px; padding: 0; font-size: 12.5px; }
.pc-spec li { display: flex; gap: 8px; padding: 3px 0; border-bottom: 1px dashed rgba(30, 36, 48, .08); }
.pc-spec li span { color: var(--color-silver); min-width: 42px; }
.pc-sum { font-size: 13px; color: #444; line-height: 1.7; margin: 0 0 12px; }
.pc-more { font-size: 13px; color: var(--color-night); font-weight: 500; }
.highlight-list li { margin-bottom: .5em; }
.b2b-points { list-style: none; padding: 0; margin: 0 0 18px; }
.b2b-points li { padding: 8px 0; border-bottom: 1px solid rgba(30, 36, 48, .08); font-size: 14px; }
.b2b-points b { color: var(--color-night); }
.cert-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cert { display: inline-block; padding: 4px 10px; border: 1px solid rgba(30, 36, 48, .18); border-radius: 999px; font-size: 12px; color: var(--color-night); }
.footer-18 { font-size: 12px; color: var(--color-silver); margin: 6px 0 0; }

@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .hero .moon { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
