/* =====================================================================
   株式会社ICM コーポレートLP
   ===================================================================== */

:root {
  /* Brand */
  --brand-cyan: #4FD3F2;
  --brand-blue: #1E6BE0;
  --accent: #1E6BE0;
  --accent-dark: #1553B4;
  --brand-grad: linear-gradient(135deg, #4FD3F2 0%, #1E6BE0 100%);

  /* Text / surface */
  --ink: #1A2432;
  --muted: #5B6472;
  --line: #E5E9F0;
  --bg: #ffffff;
  --tint: #F4F8FD;
  --chip-bg: #EAF2FE;

  /* Type */
  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', sans-serif;
  --font-en: 'Manrope', var(--font);

  --container: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 40, 80, .08);
  --shadow-hover: 0 18px 44px rgba(20, 60, 130, .16);
  --header-h: 76px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.8;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--tint); }

.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-en {
  font-family: var(--font-en); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: 13px; color: var(--brand-blue); margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -.02em; line-height: 1.3; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: clamp(15px, 1.6vw, 16px); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; border-radius: 999px; padding: 13px 28px; font-size: 15px;
  transition: transform .2s, box-shadow .2s, opacity .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 20px rgba(30, 107, 224, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(30, 107, 224, .4); }
.btn-ghost { background: #fff; color: var(--accent); border: 1.5px solid rgba(30, 107, 224, .35); }
.btn-ghost:hover { border-color: var(--accent); background: var(--chip-bg); }

/* ---- Header ---- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s, background .25s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(20, 40, 80, .07); border-bottom-color: var(--line); background: rgba(255, 255, 255, .95); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; }
.brand-logo { height: 38px; width: auto; }
.gnav-list { display: flex; gap: 28px; }
.gnav-link { font-weight: 700; font-size: 15px; color: var(--ink); position: relative; padding: 4px 0; }
.gnav-link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.gnav-link:hover { color: var(--brand-blue); }
.gnav-link:hover::after, .gnav-link.is-current::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* Hamburger */
.hamburger { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 10px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }

/* ---- Hero ---- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(1000px 520px at 82% -8%, rgba(79, 211, 242, .22), transparent 60%),
    radial-gradient(900px 520px at 8% 8%, rgba(30, 107, 224, .12), transparent 55%),
    linear-gradient(180deg, #F4F9FF 0%, #ffffff 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-eyebrow { font-family: var(--font-en); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--brand-blue); margin-bottom: 18px; }
.hero-title { font-size: clamp(25px, 5.2vw, 40px); font-weight: 900; line-height: 1.25; letter-spacing: -.03em; }
.hero-lead { margin-top: 22px; color: var(--muted); font-size: clamp(15px, 1.7vw, 17px); max-width: 540px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { position: relative; padding-left: 26px; font-size: 14px; font-weight: 600; color: var(--ink); }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--brand-grad); }
.hero-points li::after { content: ""; position: absolute; left: 5px; top: 50%; transform: translateY(-60%) rotate(-45deg); width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; }
.hero-visual { position: relative; }
.hero-img { aspect-ratio: 4 / 3.2; border-radius: 20px; box-shadow: var(--shadow); }

/* ---- imgbox (placeholder) ---- */
.imgbox { background-color: #EDF2F9; background-repeat: no-repeat; background-position: center; background-size: cover; overflow: hidden; }

/* ---- Services ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; gap: 14px;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(30, 107, 224, .3); }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--chip-bg); color: var(--brand-blue); }
.service-title { font-size: 19px; font-weight: 800; line-height: 1.4; }
.service-desc { color: var(--muted); font-size: 15px; }
.service-card--cta { background: var(--brand-grad); color: #fff; justify-content: center; align-items: flex-start; }
.service-card--cta .service-title { color: #fff; }
.service-card--cta .service-desc { color: rgba(255, 255, 255, .9); }
.service-card--cta .btn-primary { background: #fff; color: var(--brand-blue); box-shadow: none; margin-top: 4px; }
.service-card--cta .btn-primary:hover { box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }

/* ---- Strengths ---- */
.strengths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.strength-card { background: #fff; border-radius: var(--radius); padding: 36px 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.strength-card::before { content: ""; position: absolute; left: 0; top: 0; width: 5px; height: 100%; background: var(--brand-grad); }
.strength-num { font-family: var(--font-en); font-size: 40px; font-weight: 800; line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.strength-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.strength-desc { color: var(--muted); font-size: 15px; }

/* ---- Flow ---- */
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.flow-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 24px; text-align: center; }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; right: -16px; top: 50%; transform: translateY(-50%); color: var(--brand-blue); font-weight: 800; font-size: 18px; z-index: 1; }
.flow-num { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-family: var(--font-en); font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.flow-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.flow-desc { color: var(--muted); font-size: 14px; }

/* ---- Works ---- */
.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.work-img { aspect-ratio: 16 / 9; }
.work-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; font-weight: 700; color: var(--brand-blue); background: var(--chip-bg); padding: 4px 12px; border-radius: 999px; }
.work-title { font-size: 19px; font-weight: 800; }
.work-desc { color: var(--muted); font-size: 15px; }

/* ---- News ---- */
.news-list { max-width: 820px; margin: 0 auto; }
.news-item { display: flex; align-items: center; gap: 18px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.news-item:first-child { border-top: 1px solid var(--line); }
.news-date { font-family: var(--font-en); font-weight: 700; color: var(--muted); font-size: 14px; flex-shrink: 0; }
.news-cat { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--brand-blue); background: var(--chip-bg); padding: 3px 12px; border-radius: 999px; }
.news-text { font-size: 15px; }

/* ---- Company ---- */
.company-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.company-table { border-top: 1px solid var(--line); }
.company-row { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.company-row dt { font-weight: 700; color: var(--ink); }
.company-row dd { color: var(--muted); }
.company-row dd a:hover { color: var(--brand-blue); }
.company-img { aspect-ratio: 4 / 3.4; border-radius: 18px; box-shadow: var(--shadow); }

/* ---- CTA ---- */
.cta { position: relative; padding: clamp(64px, 9vw, 110px) 0; background: var(--brand-grad); color: #fff; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 10%, rgba(255, 255, 255, .18), transparent 60%); }
.cta-inner { position: relative; text-align: center; }
.cta .section-en { color: rgba(255, 255, 255, .9); }
.cta-title { font-size: clamp(20px, 4vw, 38px); font-weight: 900; letter-spacing: -.02em; }
.cta-lead { margin-top: 16px; color: rgba(255, 255, 255, .92); font-size: clamp(15px, 1.6vw, 17px); }
.cta-cards { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; justify-content: center; }
.cta-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 6px; box-shadow: 0 14px 34px rgba(0, 30, 80, .22); transition: transform .2s, box-shadow .2s; }
.cta-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0, 30, 80, .3); }
.cta-card-label { font-size: 14px; font-weight: 700; color: var(--muted); }
.cta-card-value { font-family: var(--font-en); font-size: clamp(20px, 3vw, 26px); font-weight: 800; color: var(--brand-blue); letter-spacing: -.01em; }
.cta-card-note { font-size: 13px; color: var(--muted); }

/* ---- Footer ---- */
.site-footer { background: #0F1B2E; color: #C4CDDA; padding-top: clamp(48px, 6vw, 72px); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { height: 40px; width: auto; background: #fff; padding: 8px 12px; border-radius: 10px; }
.footer-desc { margin-top: 18px; font-size: 13px; line-height: 1.9; color: #9CA9BB; }
.footer-address { margin-top: 16px; font-size: 13px; line-height: 1.9; color: #8593A6; }
.footer-address a:hover { color: #fff; }
.footer-nav ul { display: grid; gap: 14px; }
.footer-nav a { font-size: 14px; font-weight: 600; color: #C4CDDA; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; }
.footer-bottom small { font-size: 12px; color: #7D8CA1; }

/* ---- 404 ---- */
.error-page { position: relative; min-height: calc(100vh - var(--header-h) - 60px); display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 60px; overflow: hidden; }
.error-inner { text-align: center; }
.error-code { font-family: var(--font-en); font-size: clamp(80px, 18vw, 160px); font-weight: 800; line-height: 1; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.04em; }
.error-title { margin-top: 8px; font-size: clamp(22px, 4vw, 32px); font-weight: 900; letter-spacing: -.02em; }
.error-text { margin-top: 16px; color: var(--muted); font-size: clamp(15px, 1.6vw, 16px); }
.error-page .hero-actions { margin-top: 32px; }

/* ---- Drawer (mobile menu) ---- */
.wf-hamburger { cursor: pointer; }
.wb-drawer { position: fixed; inset: 0; z-index: 1500; }
.wb-drawer-bg { position: absolute; inset: 0; background: rgba(15, 27, 46, .5); backdrop-filter: blur(2px); }
.wb-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 82vw); background: #fff; box-shadow: -8px 0 40px rgba(15, 27, 46, .22); padding: 76px 26px 28px; display: flex; flex-direction: column; gap: 2px; }
.wb-drawer-panel a { padding: 15px 6px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; color: var(--ink); }
.wb-drawer-panel a:hover { color: var(--brand-blue); }
.wb-drawer-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 16px; color: var(--ink); display: flex; align-items: center; justify-content: center; }

/* ---- Back to top ---- */
.wb-totop { position: fixed; right: 22px; bottom: 22px; z-index: 950; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-size: 18px; box-shadow: 0 8px 24px rgba(15, 27, 46, .28); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; transform: translateY(10px); }
.wb-totop.wb-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ---- Scroll fade-in ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-list { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2)::after { display: none; }
  .company-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .gnav, .header-actions .btn { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .strengths-grid { grid-template-columns: 1fr; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -16px; transform: translateX(-50%); }
  .works-grid { grid-template-columns: 1fr; }
  .cta-cards { grid-template-columns: 1fr; }
  .news-item { flex-wrap: wrap; gap: 8px 14px; }
  .company-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
