/* ===== Design Tokens ===== */
:root {
  --navy-900: #0a1124;
  --navy-800: #0e1730;
  --navy-700: #14213f;
  --navy-600: #1c2c50;
  --navy-500: #27395f;
  --gold: #d4af37;
  --gold-light: #f0d77b;
  --gold-deep: #b8911f;
  --blue: #4a90d9;
  --ink: #eaf0fb;
  --muted: #9bacc9;
  --line: rgba(212,175,55,0.18);
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 18px 50px rgba(0,0,0,0.35);
  --font-jp: "Noto Sans JP", system-ui, sans-serif;
  --font-en: "Cormorant Garamond", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--navy-900);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(var(--maxw), 92%); margin: 0 auto; }
.gold { color: var(--gold); }
.pc-only { display: inline; }
.nobr { white-space: nowrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.04em; cursor: pointer;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: var(--navy-900); box-shadow: 0 10px 26px rgba(212,175,55,0.28);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(212,175,55,0.4); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,17,36,0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: background .3s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.brand-name { font-family: var(--font-en); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.06em; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--gold); }
.nav .nav-cta {
  padding: 9px 20px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold);
}
.nav .nav-cta:hover { background: var(--gold); color: var(--navy-900); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--gold); transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 168px 0 110px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(212,175,55,0.16), transparent 60%),
    radial-gradient(800px 480px at 8% 110%, rgba(74,144,217,0.16), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(212,175,55,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(212,175,55,0.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(circle at 70% 20%, #000, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero-eyebrow { color: var(--gold); letter-spacing: 0.22em; font-weight: 700; font-size: 0.82rem; margin-bottom: 22px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.25; font-weight: 900; letter-spacing: 0.01em; }
.hero-lead { margin: 26px 0 38px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-points { list-style: none; display: flex; gap: 38px; flex-wrap: wrap; margin-top: 56px; }
.hero-points li { display: flex; flex-direction: column; border-left: 2px solid var(--gold); padding-left: 16px; }
.hero-points strong { color: var(--gold); font-size: 1.35rem; }
.hero-points span { color: var(--muted); font-size: 0.86rem; }

/* ===== Sections ===== */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--navy-800); }
.section-eyebrow { font-family: var(--font-en); color: var(--gold); letter-spacing: 0.18em; font-size: 1.1rem; text-transform: uppercase; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; margin: 8px 0 14px; }
.section-title::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 16px; background: linear-gradient(90deg, var(--gold), transparent); }
.section-sub { color: var(--muted); margin-bottom: 46px; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; margin-top: 30px; }
.about-lead p { margin-bottom: 18px; color: #cdd8ee; }
.about-lead em { color: var(--gold); font-style: normal; font-weight: 700; }
.about-stats { display: grid; gap: 18px; }
.stat {
  background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; display: flex; flex-direction: column; gap: 4px;
}
.stat-num { font-size: 2rem; font-weight: 900; color: var(--gold); font-family: var(--font-en); }
.stat-label { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--navy-700); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 26px; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: var(--shadow); }
.card-feature { background: linear-gradient(160deg, var(--navy-600), var(--navy-700)); border-color: rgba(212,175,55,0.4); }
.card-badge { position: absolute; top: -11px; left: 24px; background: var(--gold); color: var(--navy-900); font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.12rem; margin-bottom: 12px; color: var(--ink); }
.card p { color: var(--muted); font-size: 0.9rem; }

/* ===== Strengths ===== */
.strength-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 30px; }
.strength { position: relative; padding: 30px 30px 30px 84px; background: var(--navy-700); border: 1px solid var(--line); border-radius: var(--radius); }
.strength-no { position: absolute; left: 26px; top: 28px; font-family: var(--font-en); font-size: 2.2rem; font-weight: 700; color: var(--gold); opacity: 0.55; }
.strength h3 { margin-bottom: 8px; font-size: 1.12rem; }
.strength p { color: var(--muted); font-size: 0.92rem; }

/* ===== Company Table ===== */
.company-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: var(--navy-700); border-radius: var(--radius); overflow: hidden; }
.company-table th, .company-table td { text-align: left; padding: 20px 24px; border-bottom: 1px solid var(--line); vertical-align: top; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }
.company-table th { width: 190px; color: var(--gold); font-weight: 700; background: rgba(212,175,55,0.05); }
.company-table td { color: #cdd8ee; }
.company-table a { color: var(--gold); }

/* ===== Contact ===== */
.contact-form { max-width: 760px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: block; margin-bottom: 20px; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: 8px; padding: 13px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--navy-800); color: var(--ink);
  font-family: inherit; font-size: 0.95rem; transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.15); }
.req { color: var(--navy-900); background: var(--gold); font-size: 0.66rem; padding: 2px 7px; border-radius: 4px; margin-left: 6px; font-weight: 700; }
.form-note { margin-top: 14px; font-size: 0.9rem; min-height: 1.2em; }
.form-note.ok { color: var(--gold-light); }
.form-note.err { color: #ff8b8b; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-800); border-top: 1px solid var(--line); padding: 50px 0 26px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 40px; height: 40px; border-radius: 8px; }
.footer-brand p { font-family: var(--font-en); font-size: 1.1rem; color: var(--gold); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--gold); }
.copyright { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 36px; opacity: 0.7; }

/* ===== Chatbot ===== */
.chatbot { position: fixed; right: 22px; bottom: 22px; z-index: 200; }
.chat-launcher {
  display: flex; align-items: center; gap: 10px; padding: 14px 22px; border: none; cursor: pointer;
  border-radius: 999px; font-family: inherit; font-weight: 700; color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-deep));
  box-shadow: 0 12px 30px rgba(212,175,55,0.4); transition: transform .2s;
}
.chat-launcher:hover { transform: translateY(-3px) scale(1.03); }
.chat-launcher-icon { font-size: 1.2rem; }
.chat-window {
  position: absolute; right: 0; bottom: 70px; width: 360px; max-width: calc(100vw - 44px);
  height: 520px; max-height: calc(100vh - 120px); display: flex; flex-direction: column;
  background: var(--navy-800); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden; animation: pop .25s ease;
}
.chat-window[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: linear-gradient(135deg, var(--navy-600), var(--navy-700)); border-bottom: 1px solid var(--line); }
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-family: var(--font-en); color: var(--navy-900); background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); }
.chat-header strong { display: block; font-size: 0.95rem; }
.chat-header small { color: var(--muted); font-size: 0.76rem; }
.chat-close { background: none; border: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.chat-close:hover { color: var(--gold); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 14px; font-size: 0.9rem; line-height: 1.7; white-space: pre-wrap; }
.msg.bot { align-self: flex-start; background: var(--navy-600); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--navy-900); font-weight: 500; border-bottom-right-radius: 4px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; }
.chat-quick button { background: none; border: 1px solid var(--line); color: var(--gold); padding: 7px 13px; border-radius: 999px; font-size: 0.78rem; cursor: pointer; font-family: inherit; transition: .2s; }
.chat-quick button:hover { background: var(--gold); color: var(--navy-900); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--navy-800); }
.chat-input input { flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--navy-900); color: var(--ink); font-family: inherit; font-size: 0.9rem; }
.chat-input input:focus { outline: none; border-color: var(--gold); }
.chat-input button { width: 42px; border: none; border-radius: 50%; cursor: pointer; background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); color: var(--navy-900); font-size: 1rem; }
.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 1px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; margin-top: 40px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item:hover { border-color: rgba(212,175,55,0.4); }
.faq-q {
  padding: 22px 28px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.faq-q::before {
  content: "Q";
  font-family: var(--font-en);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.faq-a {
  padding: 0 28px 22px 52px;
  color: var(--muted);
  line-height: 1.9;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .pc-only { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--navy-800); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .35s; padding: 10px 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 14px 24px; }
  .nav .nav-cta { margin: 10px 24px; text-align: center; }
  .nav-toggle { display: flex; }
  .about-grid, .form-row { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .strength-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 130px 0 80px; }
  .hero-points { gap: 22px; }
  .cards { grid-template-columns: 1fr; }
  .company-table th { width: 120px; padding: 14px; }
  .company-table td { padding: 14px; }
  .section { padding: 70px 0; }
}
