/* ============================================================
   株式会社XY — corporate site styles
   Trust-first / regulated context. Light, restrained, accessible.
   One accent (blue), one radius scale, minimal motion.
   ============================================================ */

:root {
  --ink:        #131a24;
  --ink-2:      #3d4a5c;
  --muted:      #6b7888;
  --line:       #e6eaf0;
  --line-2:     #d7dde6;
  --bg:         #ffffff;
  --bg-soft:    #f5f8fc;
  --bg-soft-2:  #eef3fa;
  --navy:       #0f2747;
  --navy-2:     #16335c;
  --accent:     #2563eb;
  --accent-ink: #1d4ed8;
  --accent-soft:#e8f0fe;
  --white:      #ffffff;

  --radius:     14px;
  --radius-sm:  10px;
  --radius-lg:  20px;

  --shadow:     0 1px 2px rgba(15,39,71,.04), 0 8px 28px rgba(15,39,71,.06);
  --shadow-lg:  0 2px 6px rgba(15,39,71,.05), 0 24px 60px rgba(15,39,71,.10);

  --maxw:       1180px;
  --ease:       cubic-bezier(.16,1,.3,1);

  --font: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; letter-spacing: .01em; color: var(--ink); }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em;
  color: var(--accent-ink); text-transform: uppercase; margin-bottom: 16px;
}
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 900;
  letter-spacing: .01em; line-height: 1.3;
}
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: 16.5px; max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15.5px; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,.24); }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn--onnavy { background: #fff; color: var(--navy); }
.btn--onnavy:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn--lined-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--lined-light:hover { background: rgba(255,255,255,.10); border-color: #fff; }
.btn i { font-size: 18px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav__brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 900; }
.nav__brand:hover { text-decoration: none; }
.nav__brand .logo { color: var(--ink); height: 30px; }
.nav__brand .brand-jp { font-size: 16px; letter-spacing: .04em; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav__links a:hover { color: var(--accent-ink); text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--navy); font-size: 15px; }
.nav__phone i { color: var(--accent); font-size: 17px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 6px; }
.nav__toggle i { font-size: 26px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
  padding: 84px 0 76px;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--accent-ink);
  background: var(--accent-soft); padding: 7px 15px; border-radius: 999px; margin-bottom: 24px;
}
.hero__eyebrow i { font-size: 16px; }
.hero h1 {
  font-size: clamp(29px, 4.2vw, 47px); font-weight: 900; line-height: 1.26;
  letter-spacing: 0; color: var(--ink);
}
.hero h1 .accent { color: var(--accent); }
.hero__lead { margin-top: 24px; font-size: 17.5px; color: var(--ink-2); max-width: 50ch; line-height: 1.85; }
.hero__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-size: 22px; font-weight: 900; color: var(--navy); letter-spacing: .01em; }
.hero__meta span { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* hero visual: layered brand panel (no stock dependency) */
.hero__visual { position: relative; }
.hero-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, #0f2747 0%, #16335c 55%, #1f4a86 100%);
  color: #fff; padding: 38px 34px; box-shadow: var(--shadow-lg); min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 220px at 85% 0%, rgba(37,99,235,.45), transparent 60%),
    radial-gradient(360px 240px at 0% 100%, rgba(56,132,255,.28), transparent 60%);
}
.hero-card__tag { position: relative; z-index: 1; font-size: 13px; letter-spacing: .14em; color: #9cc0ff; font-weight: 700; }
.hero-card__big { position: relative; z-index: 1; font-size: 60px; font-weight: 900; letter-spacing: .02em; line-height: 1.05; }
.hero-card__big small { display: block; font-size: 16px; font-weight: 500; color: #c7dcff; letter-spacing: .12em; margin-top: 10px; }
.hero-card__list { position: relative; z-index: 1; display: grid; gap: 11px; margin-top: 6px; }
.hero-card__list div { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: #e7eefc; }
.hero-card__list i { color: #6fa3ff; font-size: 18px; }

/* ---------- problem band ---------- */
.band-dark { background: var(--navy); color: #fff; }
.band-dark .eyebrow { color: #7fb0ff; }
.problem { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: start; }
.problem h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 900; line-height: 1.32; }
.problem p { color: #c4d2e6; margin-top: 18px; font-size: 16px; }
.problem__list { display: grid; gap: 18px; }
.problem__item { display: flex; gap: 16px; padding: 20px 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius); }
.problem__item i { color: #7fb0ff; font-size: 26px; flex-shrink: 0; }
.problem__item b { display: block; color: #fff; font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.problem__item span { color: #b4c4dc; font-size: 14.5px; line-height: 1.7; }

/* ---------- services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.svc__icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 20px;
}
.svc__icon i { font-size: 27px; }
.svc h3 { font-size: 19px; font-weight: 700; }
.svc p { margin-top: 11px; color: var(--ink-2); font-size: 15px; line-height: 1.78; }
.svc__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc__tags span { font-size: 12.5px; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; }

/* ---------- strengths (alternating rows) ---------- */
.strength { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.strength + .strength { margin-top: 40px; }
.strength__media {
  border-radius: var(--radius-lg); min-height: 280px; position: relative; overflow: hidden;
  background: var(--bg-soft-2); border: 1px solid var(--line); display: grid; place-items: center;
}
.strength__media .num { font-size: 120px; font-weight: 900; color: rgba(37,99,235,.12); line-height: 1; }
.strength__media i { position: absolute; font-size: 64px; color: var(--accent); opacity: .85; }
.strength:nth-child(even) .strength__media { order: 2; }
.strength__body h3 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; line-height: 1.4; }
.strength__body p { margin-top: 16px; color: var(--ink-2); font-size: 16px; }
.strength__body ul { margin-top: 18px; padding: 0; list-style: none; display: grid; gap: 11px; }
.strength__body li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.strength__body li i { color: var(--accent); font-size: 19px; flex-shrink: 0; margin-top: 2px; }

/* ---------- representative ---------- */
.rep { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.rep__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow); text-align: center; position: sticky; top: 96px;
}
.rep__avatar {
  width: 100%; max-width: 280px; aspect-ratio: 4 / 5; margin: 0 auto 22px; border-radius: var(--radius);
  background: linear-gradient(150deg, #0f2747, #1f4a86); color: #fff;
  display: grid; place-items: center; font-size: 68px; font-weight: 900; letter-spacing: .02em;
  box-shadow: 0 12px 34px rgba(15,39,71,.20); overflow: hidden; position: relative;
}
.rep__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.rep__name { font-size: 22px; font-weight: 900; }
.rep__name span { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 5px; letter-spacing: .08em; }
.rep__role { margin-top: 14px; font-size: 14px; color: var(--accent-ink); font-weight: 700; }
.rep__tags { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.rep__tags span { font-size: 13px; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); padding: 8px 12px; border-radius: var(--radius-sm); }
.rep__body h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.35; }
.rep__body p { margin-top: 18px; color: var(--ink-2); font-size: 16px; line-height: 1.95; }
.rep__quote { margin-top: 26px; padding: 22px 26px; border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: 16.5px; font-weight: 700; color: var(--navy); }

/* ---------- cases ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column;
}
.case__tag { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
.case h3 { font-size: 17.5px; margin-top: 16px; font-weight: 700; line-height: 1.5; }
.case p { margin-top: 12px; color: var(--ink-2); font-size: 14.5px; line-height: 1.78; flex-grow: 1; }
.case__result { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; color: var(--navy); font-weight: 700; font-size: 14.5px; }
.case__result i { color: var(--accent); font-size: 19px; }
.cases__note { margin-top: 24px; font-size: 13.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(140deg, #0f2747, #1c3f74); color: #fff;
  border-radius: var(--radius-lg); padding: 56px 52px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: center;
}
.cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 260px at 90% 10%, rgba(37,99,235,.4), transparent 60%); pointer-events: none; }
.cta__txt { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 33px); font-weight: 900; }
.cta p { color: #c7d6ec; margin-top: 14px; font-size: 16px; }
.cta__actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.cta__actions .btn { justify-content: center; }
.cta__phone { color: #fff; text-align: center; font-size: 14px; }
.cta__phone b { display: block; font-size: 24px; font-weight: 900; letter-spacing: .02em; margin-top: 2px; }
.cta__phone a { color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: #0c1f3a; color: #c6d3e6; padding: 64px 0 28px; font-size: 14.5px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer__brand .logo { color: #fff; height: 30px; }
.footer__brand .brand-jp { color: #fff; font-weight: 900; font-size: 17px; margin-top: 12px; }
.footer__brand p { margin-top: 14px; color: #9fb2cc; font-size: 13.5px; line-height: 1.85; }
.footer__col h4 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .06em; margin-bottom: 16px; }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer__col a { color: #c6d3e6; font-size: 14px; }
.footer__col a:hover { color: #fff; }
.footer__contact div { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 13px; color: #c6d3e6; font-size: 14px; line-height: 1.7; }
.footer__contact i { color: #6fa3ff; font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px; }
.footer__bottom p { color: #8497b3; font-size: 13px; }
.footer__bottom .legal { display: flex; gap: 20px; }
.footer__bottom .legal a { color: #8497b3; font-size: 13px; }

/* ---------- page hero (sub pages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0 56px; }
.page-hero .crumb { font-size: 13px; color: #9fb8d8; margin-bottom: 14px; }
.page-hero .crumb a { color: #9fb8d8; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: #fff; }
.page-hero p { margin-top: 14px; color: #c4d2e6; font-size: 16px; max-width: 60ch; }

/* ---------- company table ---------- */
.profile-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.profile-table th, .profile-table td { text-align: left; padding: 20px 26px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15.5px; }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: 0; }
.profile-table th { width: 240px; background: var(--bg-soft); color: var(--navy); font-weight: 700; white-space: nowrap; }
.profile-table td { color: var(--ink-2); }
.profile-table td b { color: var(--ink); font-weight: 700; }
.profile-table ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.profile-table .small { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- history / 沿革 ---------- */
.history { max-width: 860px; }
.history__item { display: grid; grid-template-columns: 130px 1fr; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.history__item:last-child { border-bottom: 0; }
.history__year { font-weight: 900; color: var(--accent-ink); font-size: 18px; letter-spacing: .01em; }
.history__body b { display: block; color: var(--ink); font-weight: 700; font-size: 16.5px; margin-bottom: 5px; }
.history__body span { color: var(--ink-2); font-size: 15px; line-height: 1.8; }
@media (max-width: 560px) {
  .history__item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-info__item { display: flex; gap: 18px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-info__item i { font-size: 26px; color: var(--accent); flex-shrink: 0; }
.contact-info__item h3 { font-size: 15px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.contact-info__item p { font-size: 18px; font-weight: 700; color: var(--navy); margin-top: 4px; }
.contact-info__item p.sub { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.contact-info__item a { color: var(--navy); }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.field label .req { color: #d9342b; font-size: 12px; margin-left: 6px; }
.field input, .field textarea, .field select {
  font-family: var(--font); font-size: 15.5px; color: var(--ink); width: 100%;
  padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa6b4; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.form__note { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.7; }

/* ---------- prose (privacy) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; font-weight: 800; margin-top: 44px; margin-bottom: 14px; color: var(--navy); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); margin-bottom: 14px; font-size: 15.5px; }
.prose ul { color: var(--ink-2); padding-left: 1.4em; margin-bottom: 14px; display: grid; gap: 8px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }

/* ---------- reveal animation (motion intensity 3) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .svc { transition: none; }
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .section { padding: 64px 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 0; }
  .hero__visual { order: -1; }
  .problem, .strength, .rep, .contact-grid, .cta { grid-template-columns: 1fr; gap: 32px; }
  .strength:nth-child(even) .strength__media { order: 0; }
  .rep__card { position: static; }
  .cta { padding: 40px 30px; text-align: center; }
  .cta__txt { } .cta__actions { max-width: 360px; margin: 0 auto; width: 100%; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav__links, .nav__phone { display: none; }
  .nav__toggle { display: block; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow);
  }
  .nav.open .nav__links a { padding: 13px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 16px; }
  .profile-table th { width: 150px; padding: 16px; }
  .profile-table td { padding: 16px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .svc-grid, .cases { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__meta { gap: 18px; }
  .hero-card__big { font-size: 46px; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; justify-content: center; }
  .profile-table, .profile-table tbody, .profile-table tr, .profile-table th, .profile-table td { display: block; width: 100%; }
  .profile-table th { border-bottom: 0; padding-bottom: 4px; }
  .profile-table td { padding-top: 4px; }
}
