/* ===== Clear Chemical — shared styles ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0a1f44;
  --blue:   #1a5fa8;
  --sky:    #3a9fd8;
  --cyan:   #00c2d4;
  --white:  #ffffff;
  --light:  #f4f8fc;
  --line:   #e3eaf3;
  --gray:   #5d6e85;
  --dark:   #111827;
  --accent: #00d4a8;
  /* field colors */
  --c-floc: #1a5fa8;
  --c-sap:  #0e9f8a;
  --c-inorg:#4b5bb8;
  --c-ai:   #c8760a;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.75;
}
a { color: inherit; }
svg.ico { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }

/* ===== LANGUAGE ===== */
[data-en], [data-ja], [data-en-inline], [data-ja-inline] { display: none; }
body.lang-ja [data-ja] { display: block; }
body.lang-en [data-en] { display: block; }
body.lang-ja [data-ja-inline] { display: inline; }
body.lang-en [data-en-inline] { display: inline; }

.lang-toggle { display: flex; gap: 6px; }
.lang-btn {
  padding: 4px 12px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 20px;
  background: transparent; color: var(--white); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.lang-btn.active, .lang-btn:hover { background: var(--white); color: var(--navy); }

/* ===== NAV ===== */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(10,31,68,.96); backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 32px; padding: 0 32px; height: 64px;
}
.nav-logo { color: var(--white); font-size: 20px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.nav-logo span { color: var(--cyan); }
.nav-links { display: flex; gap: 28px; list-style: none; margin-left: auto; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.current { color: var(--cyan); }
.nav-drop {
  position: absolute; top: 100%; left: -16px; padding-top: 20px; display: none; min-width: 240px;
}
.nav-drop ul { list-style: none; background: var(--white); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 8px; }
.nav-drop a { display: block; color: var(--navy); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.nav-drop a:hover { background: var(--light); color: var(--blue); }
.nav-links > li:hover .nav-drop, .nav-links > li:focus-within .nav-drop { display: block; }
.nav-menu-btn { display: none; margin-left: auto; background: none; border: none; color: var(--white); font-size: 26px; cursor: pointer; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block; padding: 14px 34px; background: linear-gradient(135deg, var(--cyan), var(--accent));
  color: var(--navy); font-weight: 700; font-size: 15px; border: none; border-radius: 50px; cursor: pointer;
  text-decoration: none; transition: transform .2s, box-shadow .2s; box-shadow: 0 4px 20px rgba(0,194,212,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,194,212,.5); }
.btn-outline {
  display: inline-block; padding: 14px 34px; background: transparent; color: var(--white); font-weight: 600; font-size: 15px;
  border: 2px solid rgba(255,255,255,.6); border-radius: 50px; text-decoration: none; transition: all .2s;
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ===== HERO (top) ===== */
#hero {
  min-height: 100vh; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a1f44 0%, #154b8a 55%, #0b8fa8 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 20px 80px;
}
.mol-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(0,194,212,.22); animation: pulse-ring 6s ease-in-out infinite; }
.mol-ring:nth-child(1) { width: 420px; height: 420px; top: 8%; left: -8%; }
.mol-ring:nth-child(2) { width: 300px; height: 300px; bottom: 4%; right: -4%; animation-delay: 2s; }
.mol-ring:nth-child(3) { width: 180px; height: 180px; top: 58%; left: 18%; animation-delay: 4s; }
@keyframes pulse-ring { 0%,100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.08); opacity: .15; } }
.hero-badge {
  display: inline-block; padding: 6px 20px; border: 1.5px solid var(--cyan); border-radius: 30px; color: var(--cyan);
  font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 28px;
}
.hero-title { color: var(--white); font-size: clamp(36px, 6vw, 66px); font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.hero-title .line2 { color: var(--cyan); }
.hero-sub { color: rgba(255,255,255,.82); font-size: clamp(14px, 2vw, 18px); margin: 0 auto 40px; max-width: 640px; }
.hero-fields { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.hero-fields a {
  color: var(--white); text-decoration: none; font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 30px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); transition: background .2s;
}
.hero-fields a:hover { background: rgba(255,255,255,.2); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ===== PAGE HERO (detail) ===== */
.page-hero { position: relative; overflow: hidden; color: var(--white); padding: 140px 20px 72px; }
.page-hero .inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .art { position: absolute; right: -40px; top: 50%; transform: translateY(-46%); width: 460px; max-width: 60%; opacity: .22; }
.breadcrumb { font-size: 13px; opacity: .8; margin-bottom: 20px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero .num { font-size: 14px; letter-spacing: 3px; font-weight: 700; opacity: .85; text-transform: uppercase; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.2; margin: 6px 0 14px; }
.page-hero p.lead { font-size: clamp(15px, 1.8vw, 18px); max-width: 640px; opacity: .92; }
.bg-floc  { background: linear-gradient(135deg, #0a1f44 0%, #1a5fa8 100%); }
.bg-sap   { background: linear-gradient(135deg, #073b3a 0%, #0e9f8a 100%); }
.bg-inorg { background: linear-gradient(135deg, #1b1f4d 0%, #4b5bb8 100%); }
.bg-ai    { background: linear-gradient(135deg, #2a1a05 0%, #c8760a 100%); }
.soon {
  display: inline-block; margin-left: 10px; padding: 3px 12px; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  border-radius: 20px; background: var(--white); color: var(--c-ai); vertical-align: middle;
}

/* ===== SECTIONS ===== */
section { padding: 92px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-tag { display: inline-block; color: var(--sky); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; color: var(--navy); line-height: 1.3; margin-bottom: 14px; }
.section-lead { color: var(--gray); font-size: 16px; max-width: 620px; margin-bottom: 52px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }
.bg-light { background: var(--light); }

/* ===== STATS ===== */
#stats { background: var(--navy); padding: 48px 20px; }
.stats-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-num { font-size: 46px; font-weight: 800; color: var(--cyan); line-height: 1; }
.stat-num small { font-size: 26px; }
.stat-label { margin-top: 8px; color: rgba(255,255,255,.7); font-size: 14px; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-visual { position: relative; height: 400px; }
.about-card { position: absolute; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.about-card.big { width: 75%; height: 78%; top: 0; left: 0; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.about-card.small { width: 52%; height: 50%; bottom: 0; right: 0; background: linear-gradient(135deg, var(--sky), var(--cyan)); }
.about-card svg { width: 58%; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.value-item { padding: 18px; background: var(--light); border-radius: 12px; border-left: 4px solid var(--cyan); }
.value-item h4 { font-size: 15px; color: var(--navy); margin-bottom: 2px; }
.value-item p { font-size: 13px; color: var(--gray); }

/* ===== BUSINESS CARDS ===== */
.biz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.biz-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: 20px; overflow: hidden; text-decoration: none;
  box-shadow: 0 2px 16px rgba(10,31,68,.07); transition: transform .3s, box-shadow .3s; color: var(--dark);
}
.biz-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,31,68,.15); }
.biz-banner { height: 180px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.biz-banner svg.art { width: 150px; height: 150px; opacity: .9; transition: transform .5s; }
.biz-card:hover .biz-banner svg.art { transform: scale(1.08) rotate(-3deg); }
.biz-banner .no {
  position: absolute; left: 22px; top: 18px; color: rgba(255,255,255,.9); font-weight: 800; font-size: 13px; letter-spacing: 2px;
}
.biz-banner .soon { position: absolute; right: 18px; top: 16px; margin: 0; }
.biz-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.biz-body h3 { font-size: 21px; color: var(--navy); line-height: 1.35; }
.biz-body .en-sub { font-size: 12px; color: var(--sky); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; }
.biz-body p { font-size: 14px; color: var(--gray); margin-bottom: 18px; flex: 1; }
.biz-more { font-size: 14px; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.biz-card:hover .biz-more { gap: 10px; }

/* ===== WHY ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { text-align: center; padding: 36px 22px; border-radius: 20px; background: var(--light); transition: background .3s; }
.why-card:hover { background: var(--navy); }
.why-card:hover .why-title, .why-card:hover .why-text { color: var(--white); }
.why-icon {
  width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; color: var(--white); font-size: 28px;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); display: flex; align-items: center; justify-content: center;
}
.why-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.why-text { font-size: 14px; color: var(--gray); }

/* ===== DETAIL CONTENT ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.feature .fi { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 24px; margin-bottom: 16px; }
.feature h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--gray); }
.use-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.use-item { background: var(--white); border-radius: 12px; padding: 16px 18px; font-size: 15px; font-weight: 600; color: var(--navy); border-left: 4px solid var(--sky); box-shadow: 0 1px 8px rgba(10,31,68,.05); }
.use-item small { display: block; font-weight: 400; color: var(--gray); font-size: 13px; margin-top: 2px; }
.type-table, .info-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.type-table th, .type-table td, .info-table th, .info-table td { padding: 18px 24px; text-align: left; vertical-align: top; font-size: 15px; }
.type-table thead th { background: var(--navy); color: var(--white); font-size: 14px; }
.type-table tbody tr:not(:last-child) td, .info-table tr:not(:last-child) { border-bottom: 1px solid var(--line); }
.type-table td:first-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.info-table th { width: 200px; background: var(--navy); color: rgba(255,255,255,.88); font-size: 14px; font-weight: 600; }
.note { font-size: 13px; color: var(--gray); margin-top: 14px; }
.vision { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.vision p { color: var(--gray); margin-bottom: 14px; }
.vision-art { background: linear-gradient(135deg, #fff4e3, #ffe2b8); border-radius: 24px; padding: 32px; display: flex; justify-content: center; }
.vision-art svg { width: 80%; max-width: 300px; }

.other-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.other-fields a {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--white);
  text-decoration: none; color: var(--navy); font-weight: 700; box-shadow: 0 1px 10px rgba(10,31,68,.06); transition: transform .2s;
}
.other-fields a:hover { transform: translateY(-3px); }
.other-fields .dot { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 20px; }

/* ===== CTA BAND ===== */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: var(--white); text-align: center; padding: 72px 20px; }
.cta-band h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; }
.cta-band p { opacity: .8; margin-bottom: 28px; }

/* ===== CONTACT ===== */
#contact { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); text-align: center; }
#contact .section-title { color: var(--white); }
#contact .section-lead { color: rgba(255,255,255,.75); margin: 0 auto 44px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; margin: 0 auto 40px; }
.contact-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 28px 18px; color: var(--white); }
.contact-icon { font-size: 28px; margin-bottom: 10px; color: var(--cyan); }
.contact-card h4 { font-size: 12px; font-weight: 600; opacity: .7; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 6px; }
.contact-card p { font-size: 15px; font-weight: 600; word-break: break-all; }
.contact-form { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.contact-form select, .contact-form input, .contact-form textarea {
  width: 100%; padding: 14px 20px; font-size: 15px; font-family: inherit; color: var(--white); outline: none;
  background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.25); border-radius: 14px;
}
.contact-form select option { color: var(--dark); }
.contact-form ::placeholder { color: rgba(255,255,255,.55); }
.contact-form :focus { border-color: var(--cyan); background: rgba(255,255,255,.2); }
.contact-form textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.contact-form .btn-primary { align-self: center; margin-top: 6px; }

/* ===== FOOTER ===== */
footer { background: #060e1e; color: rgba(255,255,255,.55); padding: 48px 20px 36px; font-size: 14px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
footer h5 { color: rgba(255,255,255,.85); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
footer ul { list-style: none; }
footer li { margin-bottom: 6px; }
footer a { color: rgba(255,255,255,.6); text-decoration: none; }
footer a:hover { color: var(--cyan); }
footer .copy { max-width: 1100px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .other-fields { grid-template-columns: 1fr; }
  .vision { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav.site-nav { padding: 0 16px; gap: 12px; }
  .nav-menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--navy); padding: 8px 20px 16px;
  }
  nav.site-nav.open .nav-links { display: flex; }
  .nav-links > li { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-drop { position: static; display: block; padding: 6px 0 0 12px; min-width: 0; }
  .nav-drop ul { background: none; box-shadow: none; padding: 0; }
  .nav-drop a { color: rgba(255,255,255,.7); padding: 6px 0; }
  .lang-toggle { margin-left: auto; }
  .nav-menu-btn { margin-left: 4px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .biz-grid { grid-template-columns: 1fr; }
  .about-visual { height: 260px; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-table th { width: 110px; padding: 14px; }
  .info-table td, .type-table th, .type-table td { padding: 14px; }
  .type-table td:first-child { white-space: normal; }
  .footer-inner { grid-template-columns: 1fr; }
  .page-hero .art { opacity: .12; max-width: 90%; }
}
