:root {
  --white: #FFFFFF;
  --steel: #EEF1F4;
  --steel-2: #DCE2E8;
  --ink: #17212B;
  --ink-soft: #55616D;
  --cobalt: #2350C8;
  --cobalt-deep: #1A3E9E;
  --line: #CDD5DD;
  --error: #B42318;

  --font: "IBM Plex Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px; line-height: 1.85; letter-spacing: .02em;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--steel); }

h1, h2, h3 { font-weight: 700; letter-spacing: .02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.45; margin: 0 0 1.25rem; }
.lead { color: var(--ink-soft); max-width: 38em; margin: 0 0 3rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.8em;
  background: var(--cobalt); color: var(--white);
  font: inherit; font-weight: 700; text-decoration: none;
  border: 0; border-radius: 4px; cursor: pointer;
  transition: background-color .2s;
}
.btn:hover { background: var(--cobalt-deep); }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.logo svg { flex: none; }
.global-nav ul { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.global-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.global-nav a:not(.btn):hover, .global-nav a:not(.btn)[aria-current="page"] { color: var(--cobalt); }
.global-nav .btn { min-height: 42px; padding: 0 1.2em; font-size: .9rem; color: var(--white); }
.global-nav .btn:hover { color: var(--white); }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 4px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .global-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.5rem;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav li a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--steel-2); }
  .global-nav li a.btn { display: flex; margin-top: 1rem; padding: 0 1.2em; border: 0; min-height: 52px; }
}

/* ---------- hero ---------- */
.hero { background: var(--steel); overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px);
}
.hero h1 { font-size: clamp(1.8rem, 3.8vw, 3rem); line-height: 1.4; margin: 0 0 1.5rem; }
.hero p { color: var(--ink-soft); margin: 0 0 2rem; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.drawing { width: 100%; height: auto; color: var(--ink); }
.drawing .part { fill: none; stroke: currentColor; stroke-width: 2; }
.drawing .hidden-line { fill: none; stroke: currentColor; stroke-width: 1; stroke-dasharray: 6 4; opacity: .55; }
.drawing .center { fill: none; stroke: var(--cobalt); stroke-width: 1; stroke-dasharray: 18 4 3 4; }
.drawing .dim { fill: none; stroke: var(--cobalt); stroke-width: 1; }
.drawing .dim-text { fill: var(--cobalt); font-family: var(--font); font-size: 13px; font-weight: 500; }
.drawing .title-block { fill: none; stroke: currentColor; stroke-width: 1; }
.drawing .tb-text { fill: currentColor; font-family: var(--font); font-size: 11px; }

@media (prefers-reduced-motion: no-preference) {
  .drawing .part { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s ease-out forwards; }
  .drawing .anno { opacity: 0; animation: appear .6s ease-out 1.9s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}

/* ---------- strengths ---------- */
.strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.strength { border-top: 3px solid var(--ink); padding-top: 1.4rem; }
.strength h3 { font-size: 1.2rem; line-height: 1.6; margin: 0 0 .8rem; }
.strength p { margin: 0; color: var(--ink-soft); }
.strength .figure { display: block; font-size: 2rem; font-weight: 700; color: var(--cobalt); line-height: 1.2; margin-bottom: .6rem; letter-spacing: 0; }
.strength .figure small { font-size: 1rem; margin-left: .15em; }

/* ---------- processes ---------- */
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--steel-2); border: 2px solid var(--steel-2); }
.process { background: var(--white); padding: 2rem 1.8rem; }
.process h3 { font-size: 1.15rem; margin: 0 0 .6rem; }
.process p { margin: 0 0 1rem; color: var(--ink-soft); font-size: .95rem; }
.process dl { margin: 0; font-size: .88rem; display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.process dt { color: var(--ink-soft); }
.process dd { margin: 0; }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--white); font-size: .95rem; }
.data-table th, .data-table td { text-align: left; padding: .95rem 1rem; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--ink); color: var(--white); font-weight: 500; font-size: .88rem; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.materials { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 2rem 0 0; padding: 0; }
.materials li { padding: .35em 1em; border: 1px solid var(--line); border-radius: 4px; background: var(--white); font-size: .9rem; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 1rem 0 0; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cobalt); color: var(--white); font-weight: 700;
  margin-bottom: 1rem; position: relative; z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 2px; background: var(--steel-2); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.steps p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* ---------- cta band ---------- */
.cta-band { background: var(--ink); color: var(--white); padding: clamp(56px, 8vw, 88px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta-band h2 { margin: 0 0 .5rem; }
.cta-band p { margin: 0; color: #B9C3CD; }
.cta-band .tel { display: block; font-size: 1.6rem; font-weight: 700; text-decoration: none; letter-spacing: .04em; }
.cta-band .tel small { display: block; font-size: .8rem; font-weight: 400; color: #B9C3CD; letter-spacing: .02em; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; }

/* ---------- page header ---------- */
.page-head { background: var(--steel); padding: clamp(48px, 7vw, 80px) 0; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .5rem; }
.page-head p { margin: 0; color: var(--ink-soft); }
.breadcrumb { list-style: none; display: flex; gap: .5rem; margin: 0 0 1.2rem; padding: 0; font-size: .85rem; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; }

/* ---------- company ---------- */
.message { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 64px); }
.message p { margin: 0 0 1.2rem; }
.message .sign { text-align: right; font-weight: 700; }
.message .sign small { display: block; font-weight: 400; color: var(--ink-soft); }

.profile { margin: 0; display: grid; grid-template-columns: 12em 1fr; border-top: 1px solid var(--line); }
.profile dt, .profile dd { margin: 0; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.profile dt { font-weight: 700; padding-right: 1rem; }

.history { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--steel-2); }
.history li { position: relative; padding: 0 0 2rem 2rem; display: grid; grid-template-columns: 6em 1fr; gap: 1rem; }
.history li::before {
  content: ""; position: absolute; left: -7px; top: .55em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--cobalt);
}
.history time { font-weight: 700; font-variant-numeric: tabular-nums; }
.history p { margin: 0; }

.map { width: 100%; aspect-ratio: 16 / 7; border: 0; background: var(--steel-2); margin-top: 1.5rem; }

/* ---------- contact form ---------- */
.form { max-width: 760px; }
.field { margin-bottom: 1.6rem; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: .4rem; padding: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; }
.req { display: inline-block; margin-left: .6em; padding: 0 .5em; border-radius: 3px; background: var(--cobalt); color: var(--white); font-size: .75rem; font-weight: 500; vertical-align: .1em; }
.opt { display: inline-block; margin-left: .6em; color: var(--ink-soft); font-size: .8rem; font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: .8rem .9rem;
  font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid #A9B4BF; border-radius: 4px;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--cobalt); outline-offset: 0; border-color: var(--cobalt); }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin: .3rem 0 0; }
.field .error { display: none; font-size: .88rem; color: var(--error); margin: .4rem 0 0; font-weight: 500; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }
.field.is-invalid .error { display: block; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.choices label { font-weight: 400; display: inline-flex; align-items: center; gap: .4rem; margin: 0; cursor: pointer; }
.choices input { width: 18px; height: 18px; accent-color: var(--cobalt); }
.agree { display: flex; align-items: flex-start; gap: .5rem; font-weight: 400 !important; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: .3em; accent-color: var(--cobalt); }
.form-done { display: none; padding: 2rem; background: var(--steel); border-left: 4px solid var(--cobalt); }
.form-done h2 { font-size: 1.3rem; margin: 0 0 .6rem; }
.form-done p { margin: 0; }
.contact-side { padding: 1.6rem; background: var(--steel); }
.contact-side h2 { font-size: 1.1rem; margin: 0 0 .6rem; }
.contact-side .tel { font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.contact-side p { margin: .3rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }

/* ---------- footer ---------- */
.site-footer { background: #0F171F; color: #AEB8C2; padding: 48px 0 32px; font-size: .88rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; }
.site-footer .logo { color: var(--white); margin-bottom: .6rem; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid #2A3540; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .strengths, .process-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps li { padding: 0 0 0 56px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { top: 40px; bottom: -1.5rem; left: 19px; right: auto; width: 2px; height: auto; }
  .message, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .profile { grid-template-columns: 1fr; }
  .profile dt { padding-bottom: 0; border-bottom: 0; }
  .profile dd { padding-top: .2rem; }
  .history li { grid-template-columns: 1fr; gap: 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
}

  /* ---------- 日本語の改行：文節の区切りで折り返す ---------- */
  h1, h2, h3, p, li, dt, dd, th, td, summary, blockquote, figcaption, b, a { word-break: auto-phrase; line-break: strict; }
  h1, h2, h3, summary { text-wrap: balance; }
  p, li, dd, blockquote { text-wrap: pretty; }
