/* =========================================================
   ARCHNET DESIGN SYSTEM
   全ページ共通CSS
   - ヘッダー
   - ヒーロー
   - セクション
   - カード
   - CTA
   - フッター
   - レスポンシブ
   ========================================================= */

:root {
  --arch-blue: #163a5f;
  --arch-blue-dark: #102c49;
  --arch-blue-soft: #eaf0f5;
  --arch-bg: #ffffff;
  --arch-bg-light: #f4f7f9;
  --arch-text: #263238;
  --arch-muted: #66737c;
  --arch-border: #dfe6eb;
  --arch-white: #ffffff;
  --arch-shadow: 0 10px 30px rgba(16, 44, 73, .07);
  --arch-shadow-hover: 0 16px 36px rgba(16, 44, 73, .11);
  --arch-radius: 16px;
  --arch-section: 88px;
  --arch-header: 78px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  background: var(--arch-bg) !important;
}
body {
  font-family: "Noto Sans JP", "Roboto", sans-serif !important;
  color: var(--arch-text) !important;
  line-height: 1.8;
}
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease; }
main { position: relative; z-index: 1; background: #fff; }
section { position: relative; }

/* ---------- Header ---------- */
#header.arch-header,
body > #header {
  position: fixed !important;
  inset: 0 0 auto 0;
  width: 100% !important;
  height: var(--arch-header);
  min-height: var(--arch-header);
  z-index: 1000 !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 2px 18px rgba(0,0,0,.07) !important;
  isolation: isolate;
}
#header::before, #header::after { display: none !important; content: none !important; }
#header > .container {
  height: 100%;
  max-width: 1320px;
  position: relative;
  z-index: 1001;
}
#header .logo {
  flex: 0 0 auto;
  min-width: 210px;
  text-decoration: none;
  color: inherit;
}
#header .logo img {
  display: block;
  width: auto;
  max-height: 50px !important;
}
#header .sitename {
  margin: 0 0 0 10px !important;
  color: #555 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 500;
  white-space: nowrap;
}
#header .navmenu {
  margin-left: auto;
}
#header .navmenu > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#header .navmenu > ul > li { margin: 0; padding: 0; }
#header .navmenu a {
  display: block;
  padding: 10px 10px;
  color: #33414b !important;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600 !important;
  text-decoration: none;
  white-space: nowrap;
}
#header .navmenu a:hover,
#header .navmenu a.active { color: var(--arch-blue) !important; }
#header .navmenu a.active { font-weight: 800 !important; }
#header .navmenu .nav-contact {
  margin-left: 5px;
  padding: 11px 15px !important;
  background: var(--arch-blue) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
#header .navmenu .nav-contact:hover {
  background: var(--arch-blue-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ---------- Common typography ---------- */
.arch-section-label,
.dell-section-label,
.label,
.eyebrow,
.problem-eyebrow,
.service-hero .eyebrow,
.case-hero .hero-label,
.contact-hero .eyebrow {
  color: var(--arch-blue) !important;
  font-size: .78rem !important;
  line-height: 1.4;
  font-weight: 800 !important;
  letter-spacing: .16em;
}
.eyebrow,
.problem-eyebrow,
.service-hero .eyebrow,
.case-hero .hero-label,
.contact-hero .eyebrow,
.dell-section-label {
  margin-bottom: 14px !important;
}
.arch-section-title,
.section-head,
.section-heading { margin-bottom: 42px; }
.arch-section-title h2,
.section-head h2,
.section-heading h2,
.section-title {
  margin-top: 8px;
  margin-bottom: 14px;
  color: var(--arch-blue) !important;
  font-weight: 800;
  line-height: 1.45;
}
.arch-section-title p,
.section-head p,
.section-heading p { color: var(--arch-muted); margin-bottom: 0; }

/* ---------- Hero ---------- */
.arch-hero,
.arch-subhero,
.problem-hero,
.service-hero,
.case-hero,
.contact-hero,
.dell-hero {
  margin-top: 0 !important;
  overflow: hidden;
}
.arch-subhero,
.problem-hero,
.service-hero,
.case-hero,
.contact-hero {
  padding: calc(var(--arch-header) + 72px) 0 78px !important;
  background: linear-gradient(135deg, var(--arch-blue) 0%, var(--arch-blue-dark) 100%) !important;
  color: #fff !important;
}
.arch-subhero::after,
.problem-hero::after,
.service-hero::after,
.case-hero::after,
.contact-hero::after,
.dell-hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -160px;
  bottom: -230px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  pointer-events: none;
}
.arch-subhero > .container,
.problem-hero > .container,
.service-hero > .container,
.case-hero > .container,
.contact-hero > .container { position: relative; z-index: 2; }
.arch-subhero .eyebrow,
.problem-hero .eyebrow,
.service-hero .eyebrow,
.case-hero .hero-label,
.contact-hero .eyebrow {
  color: rgba(255,255,255,.78) !important;
}
.arch-subhero h1,
.problem-hero h1,
.service-hero h1,
.case-hero h1,
.contact-hero h1 {
  margin-bottom: 18px;
  color: #fff !important;
  font-weight: 800;
  line-height: 1.4;
}
.arch-subhero p,
.problem-hero p,
.service-hero p,
.case-hero p,
.contact-hero p {
  margin-bottom: 0;
  color: rgba(255,255,255,.92) !important;
  line-height: 1.9;
}

/* Home hero */
.arch-hero {
  min-height: 660px;
  display: flex;
  align-items: center;
  padding: 150px 0 90px !important;
  background: linear-gradient(135deg, #f4f7f9 0%, #fff 68%) !important;
}
.arch-hero h1 { color: var(--arch-blue); font-weight: 800; line-height: 1.45; }
.arch-hero p { color: var(--arch-muted); }

/* ---------- Common sections ---------- */
.arch-section,
.p-section,
.service-section,
.case-section,
.arch-content-section,
.section,
.contact-section {
  padding: var(--arch-section) 0 !important;
  background: #fff;
}
.arch-section.light,
.p-section.light,
.service-section.light,
.case-section.alt,
.arch-content-section.alt,
.section.bg-light,
.contact-bottom {
  background: var(--arch-bg-light) !important;
}
.arch-section.pt-0,
.arch-content-section.pt-0 { padding-top: 0 !important; }

/* ---------- Generic cards ---------- */
.arch-card,
.p-card,
.service-card,
.case-card,
.strength-card,
.dell-card,
.arch-service-card,
.arch-case-card,
.arch-flow-item {
  min-height: 170px;
  height: 100%;
  padding: 26px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.arch-flow-item h3 {
  margin: 8px 0 10px;
  color: var(--arch-blue);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.5;
}
.arch-flow-item p {
  margin: 0;
  line-height: 1.8;
}

/* ---------- Home: Flow diagram ---------- */
.arch-flow-diagram {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
  margin-top: 8px;
}

.arch-flow-step {
  position: relative;
  min-width: 0;
  min-height: 184px;
  padding: 24px 18px 22px;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 44, 73, .06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.arch-flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -31px;
  width: 31px;
  height: 1px;
  background: #b8c7d3;
  z-index: 1;
}

.arch-flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: -31px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--arch-blue);
  border-right: 2px solid var(--arch-blue);
  transform: rotate(45deg);
  z-index: 2;
}

.arch-flow-step:hover {
  transform: translateY(-3px);
  border-color: #c6d4df;
  box-shadow: 0 14px 30px rgba(16, 44, 73, .10);
}

.arch-flow-step-no {
  width: 46px;
  height: 46px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: var(--arch-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  flex: 0 0 auto;
}

.arch-flow-step-content {
  width: 100%;
}

.arch-flow-step .step {
  margin-bottom: 5px;
  font-size: .68rem;
  letter-spacing: .13em;
}

.arch-flow-step h3 {
  margin: 0 0 8px;
  color: var(--arch-blue);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
}

.arch-flow-step p {
  margin: 0;
  color: var(--arch-muted);
  font-size: .78rem;
  line-height: 1.7;
}
.dell-flow-item { padding: 25px; text-align: center; }
.dell-flow-item h3 { color: var(--arch-blue); font-size: 1.05rem; font-weight: 800; }
.step { color: var(--arch-blue); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.flow-note { margin-top: 25px; padding: 22px; background: var(--arch-bg-light); border-radius: 12px; color: var(--arch-muted); }


/* ---------- Problem: Excel flow diagram ---------- */
.problem-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
}

.problem-flow-step {
  min-width: 0;
  min-height: 180px;
  padding: 28px 22px;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 44, 73, .06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.problem-flow-step:hover {
  transform: translateY(-3px);
  border-color: #c6d4df;
  box-shadow: 0 14px 30px rgba(16, 44, 73, .10);
}

.problem-flow-no {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--arch-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
}

.problem-flow-content {
  width: 100%;
}

.problem-flow-content h3 {
  margin: 0 0 7px;
  color: var(--arch-blue);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.5;
}

.problem-flow-content p {
  margin: 0;
  color: var(--arch-muted);
  font-size: .82rem;
  line-height: 1.7;
}

.problem-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arch-blue);
  font-size: 1.35rem;
}

.problem-flow-arrow i {
  display: block;
}

/* DELL */
.dell-hero {
  padding: calc(var(--arch-header) + 72px) 0 82px !important;
  background: linear-gradient(135deg, #f4f7f9 0%, #fff 70%) !important;
}
.dell-hero h1 { color: var(--arch-blue); font-weight: 800; line-height: 1.4; }
.dell-hero h1 span { color: #253e56; }
.dell-hero .lead { color: var(--arch-muted); }
.dell-note { padding: 25px; background: var(--arch-bg-light); border-left: 4px solid var(--arch-blue); border-radius: 10px; }
.dell-card { padding: 26px; text-align: center; }
.dell-icon { margin-bottom: 15px; }
.dell-ba-box { height: 100%; }
.dell-ba-title { color: var(--arch-blue); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.dell-flow-item { height: 100%; }
.dell-cta,
.arch-page-cta,
.case-cta {
  padding: 78px 0 !important;
  background: var(--arch-blue) !important;
  color: #fff;
}
.dell-cta h2,
.dell-cta p,
.arch-page-cta h2,
.arch-page-cta p,
.case-cta h2,
.case-cta p { color: #fff !important; }

/* ---------- CTA / Buttons ---------- */
.arch-btn,
.arch-btn-light,
.arch-btn-outline,
.problem-cta-btn,
.cta-btn,
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 8px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: .2s ease;
}
.arch-btn,
.problem-cta-btn,
.cta-btn,
.contact-submit {
  background: var(--arch-blue) !important;
  border: 2px solid var(--arch-blue) !important;
  color: #fff !important;
}
.arch-btn:hover,
.problem-cta-btn:hover,
.cta-btn:hover,
.contact-submit:hover {
  background: var(--arch-blue-dark) !important;
  border-color: var(--arch-blue-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.arch-btn-light {
  background: #fff !important;
  border: 2px solid #fff !important;
  color: var(--arch-blue) !important;
}
.arch-btn-light:hover { background: transparent !important; color: #fff !important; }
.arch-btn-outline {
  background: #fff !important;
  border: 2px solid var(--arch-blue) !important;
  color: var(--arch-blue) !important;
}
.arch-btn-outline:hover { background: var(--arch-blue) !important; color: #fff !important; }
.cta-box { padding: 48px 30px; text-align: center; }

/* ---------- Contact ---------- */
.contact-card { padding: 36px; }
.contact-info {
  height: 100%;
  padding: 30px;
  background: var(--arch-bg-light);
  box-shadow: none;
}
.contact-note {
  margin-bottom: 28px;
  padding: 18px 20px;
  background: var(--arch-bg-light);
  border-left: 4px solid var(--arch-blue);
  border-radius: 8px;
  color: var(--arch-muted);
}
.form-label { color: #34434d; font-weight: 700; }
.form-control,
.form-select {
  min-height: 48px;
  border-color: #cfd9e0 !important;
  border-radius: 8px !important;
}
textarea.form-control { min-height: 180px; resize: vertical; }
.form-control:focus,
.form-select:focus {
  border-color: var(--arch-blue) !important;
  box-shadow: 0 0 0 .2rem rgba(22,58,95,.12) !important;
}
.required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  background: #b42318 !important;
  color: #fff;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
}
.contact-info-item { display: flex; gap: 15px; align-items: flex-start; margin: 22px 0; }
.contact-info-item > i { color: var(--arch-blue); font-size: 1.4rem; }
.contact-info-item strong { display: block; color: var(--arch-blue); font-size: .75rem; letter-spacing: .08em; }
.contact-info-item a { color: var(--arch-blue); font-weight: 700; text-decoration: none; }
.contact-info-item span { color: var(--arch-muted); }

/* ---------- Footer ---------- */
#footer {
  position: relative !important;
  z-index: 2 !important;
  background: #102c49 !important;
  color: rgba(255,255,255,.78) !important;
}
#footer .footer-top { padding-top: 65px; padding-bottom: 45px; }
#footer .logo { color: #fff !important; text-decoration: none; }
#footer .sitename { color: #fff !important; font-weight: 800; }
#footer .footer-contact p,
#footer .footer-links li,
#footer .footer-links a,
#footer .footer-links p { color: rgba(255,255,255,.75) !important; }
#footer .footer-links h4 { color: #fff !important; font-weight: 700; }
#footer .footer-links ul { list-style: none; margin: 0; padding: 0; }
#footer .footer-links li { margin-bottom: 9px; }
#footer .footer-links a { text-decoration: none; }
#footer .footer-links a:hover { color: #fff !important; }
#footer .social-links { gap: 9px; }
#footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff !important;
  text-decoration: none;
}
#footer .copyright {
  padding: 20px 0 25px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.62);
}
#footer iframe { max-width: 100%; }

/* ---------- Send result ---------- */
.send-result {
  min-height: calc(100vh - var(--arch-header));
  padding: calc(var(--arch-header) + 70px) 20px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--arch-bg-light);
}
.send-card {
  width: min(760px, 100%);
  padding: 50px 40px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: var(--arch-radius);
  box-shadow: var(--arch-shadow);
}
.send-card h2 { margin-bottom: 18px; color: var(--arch-blue); font-weight: 800; }
.send-card p { color: var(--arch-muted); line-height: 1.9; }
.send-card a { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  :root { --arch-header: 74px; }
  #header .logo { min-width: 185px; }
  #header .navmenu a { padding: 9px 7px; font-size: 12px; }
  #header .navmenu .nav-contact { padding: 10px 11px !important; }
}

@media (max-width: 991.98px) {
  :root { --arch-section: 72px; }
  #header > .container { max-width: 100%; }
  #header .logo { min-width: 175px; }
  #header .sitename { font-size: 11px !important; }
  #header .navmenu {
    max-width: calc(100% - 180px);
    overflow-x: auto;
    scrollbar-width: thin;
  }
  #header .navmenu > ul { width: max-content; }
  .ba-wrap { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); }
  .story-grid { grid-template-columns: 1fr; }

  .arch-flow-diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .arch-flow-step {
    min-height: 170px;
  }

  .arch-flow-step:not(:last-child)::after,
  .arch-flow-step:not(:last-child)::before {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .problem-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .problem-flow-arrow {
    display: none;
  }

  .problem-flow-step {
    min-height: 165px;
  }
}

@media (max-width: 767.98px) {
  .problem-flow {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 520px;
  }

  .problem-flow-step {
    min-height: 0;
    padding: 24px 20px;
  }

  .problem-flow-arrow {
    display: flex;
    height: 18px;
    color: var(--arch-blue);
    font-size: 1.15rem;
  }

  .problem-flow-arrow i {
    transform: rotate(90deg);
  }

  :root { --arch-header: 64px; --arch-section: 58px; }
  #header.arch-header,
  body > #header { height: auto; min-height: 64px; }
  #header > .container {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
  }
  #header .logo { min-width: 0; }
  #header .logo img { max-height: 40px !important; }
  #header .sitename { display: none; }
  #header .navmenu {
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #header .navmenu > ul { gap: 0; }
  #header .navmenu a { padding: 7px 9px; font-size: 12px; }
  #header .navmenu .nav-contact { margin-left: 3px; padding: 8px 11px !important; }

  .arch-hero { min-height: 600px; padding: 145px 0 70px !important; }
  .arch-subhero,
  .problem-hero,
  .service-hero,
  .case-hero,
  .contact-hero,
  .dell-hero { padding: 132px 0 58px !important; }
  .arch-subhero h1,
  .problem-hero h1,
  .service-hero h1,
  .case-hero h1,
  .contact-hero h1,
  .dell-hero h1 { font-size: 1.8rem; }
  .arch-section-title,
  .section-head,
  .section-heading { margin-bottom: 30px; }
  .arch-card,
  .p-card,
  .service-card,
  .case-card,
  .strength-card,
  .dell-card,
  .arch-service-card,
  .arch-case-card,
  .support-card { padding: 24px; }
  .story-top,
  .story-body,
  .ba-card,
  .ba-panel,
  .dell-ba-box,
  .message-box { padding: 24px; }
  .contact-card { padding: 24px; }
  .arch-case-card > img {
    height: 240px;
  }
  .arch-case-body {
    padding: 18px 20px 20px;
  }
  .arch-ba-box {
    min-height: 0;
    padding: 26px 24px;
  }
  .arch-arrow {
    transform: rotate(90deg);
    margin: 4px auto;
  }
  .arch-flow-item {
    min-height: 155px;
    padding: 22px 18px;
  }

  .arch-flow-diagram {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .arch-flow-step {
    min-height: 0;
    padding: 20px 18px;
  }

  .arch-flow-step:not(:last-child)::after {
    display: block;
    top: auto;
    right: auto;
    left: 50%;
    bottom: -18px;
    width: 1px;
    height: 18px;
  }

  .arch-flow-step:not(:last-child)::before {
    display: block;
    top: auto;
    right: auto;
    left: calc(50% - 4px);
    bottom: -18px;
    width: 8px;
    height: 8px;
    border-top: 0;
    border-right: 2px solid var(--arch-blue);
    border-bottom: 2px solid var(--arch-blue);
    transform: rotate(45deg);
  }
  .send-card { padding: 36px 24px; }
  #footer .footer-top { padding-top: 50px; padding-bottom: 30px; }
}

/* ---------- Home: Problem cards ---------- */
.arch-card {
  min-height: 220px;
  height: 220px;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: var(--arch-radius);
  box-shadow: var(--arch-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.arch-card:hover {
  box-shadow: var(--arch-shadow-hover);
  transform: translateY(-2px);
}

.arch-card .arch-number {
  margin-bottom: 10px;
  color: var(--arch-blue);
  font-size: .76rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .08em;
}

.arch-card h4 {
  margin: 0 0 12px;
  color: var(--arch-blue);
  font-size: 1.35rem;
  line-height: 1.5;
  font-weight: 800;
}

.arch-card p {
  margin: 0;
  color: var(--arch-muted);
  font-size: .92rem;
  line-height: 1.8;
}

@media (max-width: 767.98px) {
  .arch-card {
    height: auto;
    min-height: 190px;
    padding: 24px 20px;
  }
}

/* ---------- Home: Before / After redesigned ---------- */
.arch-ba-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.arch-ba-box {
  min-height: 620px;
  padding: 36px 36px 32px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--arch-border);
  border-radius: 18px;
  box-shadow: var(--arch-shadow);
  box-sizing: border-box;
}

.arch-ba-box.after {
  border-color: #cfe2f8;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.arch-ba-title {
  margin-bottom: 12px;
  color: var(--arch-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.arch-ba-box.before .arch-ba-title { color: #6f849a; }
.arch-ba-box h3 {
  margin: 0 0 26px;
  color: var(--arch-blue);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.45;
}

.arch-ba-steps {
  display: flex;
  flex-direction: column;
}

.arch-ba-step {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 12px 16px 12px 0;
  background: rgba(255,255,255,.9);
  border: 1px solid #edf1f5;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(28,57,84,.06);
}

.arch-ba-icon {
  width: 58px;
  height: 58px;
  margin-left: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.before-icon { background: #eef3f8; color: #56708d; }
.after-icon { background: #e9f4ff; color: #287ed3; }
.arch-ba-step strong {
  display: block;
  color: var(--arch-blue);
  font-size: 1.02rem;
  line-height: 1.5;
}
.arch-ba-step span {
  display: block;
  margin-top: 3px;
  color: var(--arch-muted);
  font-size: .88rem;
  line-height: 1.55;
}

.arch-ba-connector {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arch-blue);
  font-size: 1.25rem;
  line-height: 1;
}

.arch-ba-middle {
  display: flex;
  align-items: center;
  justify-content: center;
}
.arch-ba-middle .arch-arrow {
  width: 58px;
  height: 58px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf3ff;
  color: #4d8edb;
  font-size: 2.2rem;
  box-shadow: 0 8px 20px rgba(58,112,166,.12);
}

@media (max-width: 991.98px) {
  .arch-ba-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .arch-ba-box { min-height: 0; }
  .arch-ba-middle { order: 2; }
  .arch-ba-middle .arch-arrow { transform: rotate(90deg); }
  .arch-ba-box.after { order: 3; }
}

@media (max-width: 575.98px) {
  .arch-ba-box { padding: 28px 20px 24px; }
  .arch-ba-box h3 { font-size: 1.3rem; }
  .arch-ba-step { grid-template-columns: 54px minmax(0,1fr); gap: 12px; padding-right: 12px; }
  .arch-ba-icon { width: 48px; height: 48px; margin-left: 4px; font-size: 1.35rem; }
  .arch-ba-step strong { font-size: .96rem; }
  .arch-ba-step span { font-size: .82rem; }
}


/* =========================================================
   SERVICE PAGE: service cards repair
   ========================================================= */
.service-section .service-card {
  position: relative;
  height: 100%;
  min-height: 360px;
  padding: 30px 28px 28px;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: var(--arch-radius);
  box-shadow: var(--arch-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-section .service-card:hover {
  transform: translateY(-3px);
  border-color: #c6d4df;
  box-shadow: var(--arch-shadow-hover);
}

.service-section .service-icon {
  width: 48px;
  height: 48px;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--arch-blue);
  font-size: 1.45rem;
  line-height: 1;
  border: 1px solid var(--arch-border);
  border-radius: 12px;
  background: var(--arch-bg-light);
}

.service-section .service-card h3 {
  margin: 0 0 12px;
  color: var(--arch-blue);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.5;
}

.service-section .service-card > p {
  width: 100%;
  min-height: 58px;
  margin: 0 0 18px;
  color: var(--arch-muted);
  font-size: .9rem;
  line-height: 1.8;
}

.service-section .service-list {
  width: 100%;
  margin: auto 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--arch-border);
  list-style: none;
  text-align: left;
}

.service-section .service-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 25px;
  color: var(--arch-text);
  font-size: .88rem;
  line-height: 1.7;
}

.service-section .service-list li i {
  position: absolute;
  left: 0;
  top: .25em;
  color: var(--arch-blue);
  font-size: .95rem;
}

/* One-stop support cards */
.service-section .support-box {
  padding: 42px 40px;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: var(--arch-radius);
  box-shadow: var(--arch-shadow);
}

.service-section .support-card {
  height: 100%;
  min-height: 135px;
  padding: 24px 20px;
  background: var(--arch-bg-light);
  border: 1px solid var(--arch-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

.service-section .support-card > i {
  color: var(--arch-blue);
  font-size: 1.35rem;
  margin-bottom: 3px;
}

.service-section .support-card strong {
  color: var(--arch-blue);
  font-weight: 800;
}

.service-section .support-card span {
  color: var(--arch-muted);
  font-size: .85rem;
}

/* =========================================================
   SERVICE PAGE: Before / After - visual flow
   ========================================================= */
.service-section .ba-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
}

.service-section .ba-card {
  position: relative;
  min-height: 330px;
  padding: 32px 34px 30px;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(16, 44, 73, .07);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-section .ba-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
}

.service-section .ba-card.before::before {
  background: #9aa9b8;
}

.service-section .ba-card.after::before {
  background: var(--arch-blue);
}

.service-section .ba-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 44, 73, .11);
}

.service-section .ba-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.service-section .ba-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
}

.service-section .ba-card.before .ba-badge {
  background: #edf1f4;
  color: #617386;
}

.service-section .ba-card.after .ba-badge {
  background: #e8f3ff;
  color: var(--arch-blue);
}

.service-section .ba-head-title {
  color: var(--arch-blue);
  font-size: 1.28rem;
  font-weight: 800;
  line-height: 1.4;
}

.service-section .ba-summary {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--arch-border);
  color: var(--arch-muted);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.7;
}

.service-section .ba-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-section .ba-card li {
  position: relative;
  margin: 0;
  padding: 9px 0 9px 28px;
  color: var(--arch-text);
  font-size: .94rem;
  line-height: 1.6;
}

.service-section .ba-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.service-section .ba-card.before li::before {
  background: #a7b2bd;
}

.service-section .ba-card.after li::before {
  background: var(--arch-blue);
  box-shadow: 0 0 0 4px #edf6ff;
}

.service-section .ba-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--arch-blue);
  text-align: center;
}

.service-section .ba-arrow span {
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9f3ff;
  border: 1px solid #cfe2f5;
  box-shadow: 0 8px 22px rgba(40, 126, 211, .12);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.service-section .ba-arrow small {
  margin-top: 10px;
  color: var(--arch-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .service-section .ba-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 720px;
  }

  .service-section .ba-card {
    min-height: 0;
  }

  .service-section .ba-arrow {
    height: 48px;
  }

  .service-section .ba-arrow span {
    transform: rotate(90deg);
  }

  .service-section .ba-arrow small {
    margin-top: 7px;
  }
}

@media (max-width: 767.98px) {
  .service-section .ba-card {
    padding: 28px 22px 24px;
    border-radius: 15px;
  }

  .service-section .ba-head-title {
    font-size: 1.12rem;
  }

  .service-section .ba-summary {
    font-size: .86rem;
  }

  .service-section .ba-card li {
    font-size: .88rem;
  }
}

@media (max-width: 767.98px) {
  .service-section .service-card {
    min-height: 0;
    padding: 26px 22px;
  }

  .service-section .service-card > p {
    min-height: 0;
  }

  .service-section .support-box {
    padding: 28px 20px;
  }
}

/* =========================================================
   CASE PAGE: story / before-after repair
   ========================================================= */
.case-section .section-head,
.case-section .section-heading {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.case-story {
  max-width: 1120px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: 18px;
  box-shadow: var(--arch-shadow);
  overflow: hidden;
}

.story-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 34px;
  background: linear-gradient(135deg, #f5f8fb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--arch-border);
}

.story-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--arch-blue);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 8px 18px rgba(16,44,73,.12);
}

.story-label {
  margin-bottom: 4px;
  color: var(--arch-blue);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.story-title {
  margin: 0;
  color: var(--arch-blue);
  font-size: 1.45rem;
  line-height: 1.5;
  font-weight: 800;
}

.story-body {
  padding: 30px 34px 34px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.story-panel {
  min-height: 250px;
  padding: 25px 26px 24px;
  border: 1px solid var(--arch-border);
  border-radius: 14px;
}

.story-panel.problem {
  background: #f7f9fb;
}

.story-panel.solution {
  background: #f5faff;
  border-color: #d6e6f5;
}

.story-panel h3,
.result h3 {
  display: flex;
  align-items: center;
  margin: 0 0 18px;
  color: var(--arch-blue);
  font-size: 1.18rem;
  line-height: 1.5;
  font-weight: 800;
}

.story-panel.problem h3 { color: #5f7181; }
.story-panel.solution h3 { color: var(--arch-blue); }

.story-panel h3 i,
.result h3 i { font-size: 1.25rem; }

.story-panel ul {
  margin: 0;
  padding-left: 1.25rem;
}

.story-panel li {
  margin-bottom: 10px;
  color: var(--arch-text);
  font-size: .94rem;
  line-height: 1.75;
}

.story-panel li:last-child { margin-bottom: 0; }

.result {
  margin-top: 22px;
  padding: 24px 26px;
  border: 1px solid #cfe0ef;
  border-left: 4px solid var(--arch-blue);
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f9fd 0%, #fff 100%);
}

.result h3 {
  margin-bottom: 9px;
}

.result p {
  margin: 0;
  color: var(--arch-muted);
  font-size: .94rem;
  line-height: 1.85;
}

/* Case page: Before / After */
.case-section.alt .section-heading {
  text-align: center;
}

.ba-wrap {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
}

.ba-panel {
  position: relative;
  min-height: 300px;
  padding: 30px 32px 28px;
  border: 1px solid var(--arch-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--arch-shadow);
  overflow: hidden;
}

.ba-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: #9aa9b6;
}

.ba-panel.after {
  border-color: #cfe2f5;
  background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.ba-panel.after::before { background: #3d82b9; }

.ba-panel h3 {
  display: flex;
  align-items: center;
  margin: 0 0 22px;
  color: var(--arch-blue);
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 800;
}

.ba-panel.before h3 { color: #5f7181; }
.ba-panel h3 i { font-size: 1.35rem; }

.ba-panel ul {
  margin: 0;
  padding-left: 1.25rem;
}

.ba-panel li {
  margin-bottom: 12px;
  color: var(--arch-text);
  font-size: .96rem;
  line-height: 1.75;
}

.ba-panel li:last-child { margin-bottom: 0; }

.ba-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--arch-blue);
  text-align: center;
}

.ba-arrow i {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf3fb;
  border: 1px solid #cfe0ef;
  font-size: 1.7rem;
  box-shadow: 0 8px 18px rgba(16,44,73,.08);
}

.ba-arrow::after {
  content: "仕組み化";
  color: var(--arch-blue);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .ba-wrap {
    grid-template-columns: 1fr;
    max-width: 760px;
    gap: 14px;
  }

  .ba-arrow {
    min-height: 58px;
    flex-direction: row;
  }

  .ba-arrow i { transform: rotate(90deg); }
  .ba-arrow::after { content: "仕組み化"; }
}

@media (max-width: 767.98px) {
  .story-top {
    align-items: flex-start;
    padding: 24px 20px;
  }

  .story-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 1.25rem;
  }

  .story-title { font-size: 1.18rem; }
  .story-body { padding: 22px 20px 24px; }
  .story-panel { min-height: 0; padding: 22px 20px; }
  .story-panel h3,
  .result h3 { font-size: 1.05rem; }
  .story-panel li,
  .result p { font-size: .88rem; }

  .ba-panel {
    min-height: 0;
    padding: 26px 22px 24px;
  }

  .ba-panel h3 { font-size: 1.12rem; }
  .ba-panel li { font-size: .88rem; }
}


/* =========================================================
   Strength page refinements
   ========================================================= */

/* Strength cards: make the six strengths clearly read as cards */
.strength-card {
  position: relative;
  min-height: 300px;
  height: 100%;
  padding: 34px 30px 32px;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: var(--arch-radius);
  box-shadow: 0 8px 24px rgba(16,44,73,.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.strength-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  background: var(--arch-blue);
  border-radius: 0 0 3px 3px;
  opacity: .9;
}

.strength-card:hover {
  transform: translateY(-4px);
  border-color: #c8d5df;
  box-shadow: var(--arch-shadow-hover);
}

.strength-icon {
  width: 48px;
  height: 48px;
  margin: 2px auto 15px;
  border: 1px solid #d7e1e8;
  border-radius: 12px;
  background: var(--arch-bg-light);
  color: var(--arch-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex: 0 0 auto;
}

.strength-card .num {
  margin-bottom: 8px;
  color: var(--arch-blue);
  font-family: "Roboto", sans-serif;
  font-size: .70rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.4;
}

.strength-card h3 {
  margin: 0 0 13px;
  color: var(--arch-blue);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5;
}

.strength-card p {
  width: 100%;
  max-width: 34em;
  margin: 0;
  color: var(--arch-muted);
  font-size: .91rem;
  line-height: 1.9;
}

/* Keep the six cards visually aligned */
.arch-content-section .row.g-4 > [class*="col-"] {
  display: flex;
}

.arch-content-section .row.g-4 > [class*="col-"] > .strength-card {
  width: 100%;
}

/* Message section */
.strength-message {
  max-width: 1080px;
  margin: 0 auto;
  padding: 42px 48px;
  background: #fff;
  border-left: 4px solid var(--arch-blue);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16,44,73,.05);
}

.strength-message h3 {
  margin: 0 0 12px;
  color: var(--arch-blue);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.5;
}

.strength-message p {
  margin: 0;
  color: var(--arch-muted);
  line-height: 1.9;
}

/* CTA: give the closing message enough breathing room */
.strength-message + * { margin-top: 0; }

.arch-page-cta {
  max-width: 1290px;
  margin: 0 auto;
  padding: 58px 64px !important;
  border-radius: 0;
}

.arch-page-cta h2 {
  margin: 0 0 10px;
  line-height: 1.5;
}

.arch-page-cta p {
  margin: 0 0 22px;
}

/* Strength page responsive */
@media (max-width: 991.98px) {
  .strength-card {
    min-height: 280px;
    padding: 30px 24px;
  }

  .strength-card h3 {
    font-size: 1.15rem;
  }

  .strength-message {
    padding: 34px 30px;
  }
}

@media (max-width: 767.98px) {
  .strength-card {
    min-height: 0;
    padding: 28px 22px 26px;
  }

  .strength-card::before {
    left: 22px;
    right: 22px;
  }

  .strength-card p {
    font-size: .88rem;
  }

  .strength-message {
    padding: 28px 22px;
    border-left-width: 3px;
  }

  .strength-message h3 {
    font-size: 1.25rem;
  }

  .arch-page-cta {
    padding: 42px 24px !important;
  }

  .arch-page-cta h2 {
    font-size: 1.35rem;
  }
}


/* =========================================================
   FLOW PAGE: layout repair / visual refinement
   ========================================================= */
.flow-page .arch-content-section {
  position: relative;
}

.flow-page .arch-section-title {
  max-width: 900px;
  margin: 0 auto 46px;
  text-align: center;
}

.flow-page .arch-section-title .label {
  margin-bottom: 8px;
  color: var(--arch-blue);
  font-family: "Roboto", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.flow-page .arch-section-title h2 {
  margin: 0 0 12px;
  color: var(--arch-blue);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.45;
}

.flow-page .arch-section-title p {
  margin: 0;
  color: var(--arch-muted);
  line-height: 1.9;
}

/* Main six-step flow */
.flow-page .flow-list {
  width: min(100%, 1220px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.flow-page .flow-step {
  position: relative;
  min-width: 0;
  min-height: 292px;
  padding: 30px 22px 26px;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(16,44,73,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.flow-page .flow-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--arch-blue);
}

.flow-page .flow-step:hover {
  transform: translateY(-4px);
  border-color: #c7d5df;
  box-shadow: 0 14px 32px rgba(16,44,73,.10);
}

.flow-page .flow-step .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 15px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #eef5fa;
  color: var(--arch-blue);
  font-family: "Roboto", sans-serif;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1;
}

.flow-page .flow-step .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border: 1px solid #d7e2ea;
  border-radius: 14px;
  background: var(--arch-bg-light);
  color: var(--arch-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.flow-page .flow-step h3 {
  margin: 0 0 12px;
  color: var(--arch-blue);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.5;
}

.flow-page .flow-step p {
  width: 100%;
  margin: 0;
  color: var(--arch-muted);
  font-size: .86rem;
  line-height: 1.85;
}

.flow-page .flow-arrow {
  display: none;
}

/* Desktop arrows are drawn between cards */
@media (min-width: 1200px) {
  .flow-page .flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -24px;
    width: 20px;
    height: 1px;
    background: #b8c7d3;
    z-index: 2;
  }

  .flow-page .flow-step:not(:last-child) .flow-arrow {
    display: none;
  }

  .flow-page .flow-step:not(:last-child)::before {
    /* keep the top accent and use box-shadow for the arrow head */
  }

  .flow-page .flow-step:nth-child(odd) {
    /* no-op: keeps source order predictable */
  }
}

/* Hide the old arrow elements; the grid itself controls the flow */
.flow-page .flow-arrow {
  display: none !important;
}

/* Note below the process */
.flow-page .flow-note {
  max-width: 1050px;
  margin: 34px auto 0;
  padding: 18px 24px;
  border: 1px solid var(--arch-border);
  border-radius: 12px;
  background: var(--arch-bg-light);
  color: var(--arch-muted);
  font-size: .86rem;
  line-height: 1.8;
  text-align: center;
}

/* What we ask cards */
.flow-page .arch-content-section.alt .row {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.flow-page .arch-content-section.alt .strength-card {
  min-height: 250px;
  padding: 32px 28px;
  border-radius: 16px;
  text-align: center;
}

.flow-page .arch-content-section.alt .strength-card h3 {
  font-size: 1.18rem;
}

.flow-page .arch-content-section.alt .strength-card p {
  font-size: .9rem;
}

/* Closing CTA */
.flow-page .arch-page-cta {
  max-width: 1220px;
  padding: 62px 70px !important;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.flow-page .arch-page-cta::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -120px;
  bottom: -190px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  pointer-events: none;
}

.flow-page .arch-page-cta h2,
.flow-page .arch-page-cta p,
.flow-page .arch-page-cta a {
  position: relative;
  z-index: 1;
}

.flow-page .arch-page-cta h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

/* Tablet */
@media (max-width: 1199.98px) {
  .flow-page .flow-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .flow-page .flow-step {
    min-height: 265px;
  }
}

/* Mobile/tablet */
@media (max-width: 767.98px) {
  .flow-page .arch-section-title {
    margin-bottom: 30px;
  }

  .flow-page .flow-list {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 560px;
  }

  .flow-page .flow-step {
    min-height: 0;
    padding: 28px 24px 26px;
  }

  .flow-page .flow-step .icon {
    width: 48px;
    height: 48px;
  }

  .flow-page .flow-step h3 {
    font-size: 1.05rem;
  }

  .flow-page .flow-step p {
    font-size: .88rem;
  }

  .flow-page .flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    right: auto;
    top: auto;
    bottom: -18px;
    width: 1px;
    height: 18px;
    background: #b8c7d3;
  }

  .flow-page .flow-step:not(:last-child)::before {
    /* top accent is intentionally kept; arrow head is supplied below */
  }

  .flow-page .flow-step:not(:last-child) {
    margin-bottom: 0;
  }

  .flow-page .flow-note {
    padding: 16px 18px;
    font-size: .82rem;
    text-align: left;
  }

  .flow-page .arch-content-section.alt .strength-card {
    min-height: 0;
  }

  .flow-page .arch-page-cta {
    padding: 42px 24px !important;
    border-radius: 14px;
  }
}


/* =========================================================
   DELL PAGE — LAYOUT REPAIR / VISUAL REFINEMENT
   ========================================================= */

.dell-hero {
  position: relative;
  padding: calc(var(--arch-header) + 72px) 0 86px !important;
  background: linear-gradient(135deg, #f3f7fa 0%, #ffffff 72%) !important;
  overflow: hidden;
}
.dell-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: 20px;
  border: 1px solid rgba(22,58,95,.08);
  border-radius: 50%;
  pointer-events: none;
}
.dell-hero > .container {
  position: relative;
  z-index: 2;
}
.dell-hero .row {
  min-height: 430px;
}
.dell-hero h1 {
  margin: 0 0 22px !important;
  color: var(--arch-blue) !important;
  font-size: clamp(2.35rem, 4vw, 4rem) !important;
  font-weight: 900 !important;
  line-height: 1.28 !important;
  letter-spacing: -.02em;
}
.dell-hero h1 span {
  color: #244f78;
}
.dell-hero .lead {
  max-width: 700px;
  color: var(--arch-muted) !important;
  font-size: 1.02rem;
  line-height: 2 !important;
}
.dell-hero .d-flex {
  margin-top: 8px;
}
.dell-hero .col-lg-5 {
  display: flex;
  justify-content: center;
  align-items: center;
}
.dell-hero .col-lg-5 img {
  display: block;
  width: min(100%, 390px);
  max-height: 270px;
  object-fit: contain;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(16,44,73,.10);
}

/* Common DELL section rhythm */
main > .section,
main > .arch-ba,
main > .arch-flow {
  padding: 92px 0 !important;
}
main > .section > .container,
main > .arch-ba > .container,
main > .arch-flow > .container {
  max-width: 1180px;
}
.dell-section-label,
.arch-section-label {
  margin-bottom: 12px !important;
}
main .text-center.mb-5 {
  margin-bottom: 48px !important;
}
main .text-center.mb-5 h2 {
  color: var(--arch-blue) !important;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.45;
}
main .text-center.mb-5 p {
  color: var(--arch-muted);
}

/* ABOUT */
.dell-note {
  margin-top: 30px;
  padding: 17px 20px;
  border-left: 3px solid #b7c8d7;
  background: var(--arch-bg-light);
  border-radius: 0 10px 10px 0;
  color: var(--arch-muted);
  font-size: .86rem;
  line-height: 1.8;
}
.dell-note + * { margin-top: 0; }

/* BENEFITS */
.dell-card {
  position: relative;
  min-height: 265px !important;
  height: 100%;
  padding: 32px 26px !important;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: var(--arch-radius);
  box-shadow: var(--arch-shadow);
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dell-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 46px;
  height: 3px;
  background: var(--arch-blue);
  border-radius: var(--arch-radius) 0 0 0;
}
.dell-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--arch-shadow-hover);
  border-color: #c9d6df;
}
.dell-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--arch-blue-soft);
  color: var(--arch-blue);
  font-size: 1.35rem;
}
.dell-card h3 {
  margin: 0 0 12px;
  color: var(--arch-blue);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.5;
}
.dell-card p {
  margin: 0;
  color: var(--arch-muted);
  font-size: .91rem;
  line-height: 1.85;
}

/* WHY ARCHNET / BEFORE AFTER */
.arch-ba {
  background: #fff;
}
.dell-ba-box {
  position: relative;
  min-height: 285px;
  height: 100%;
  padding: 34px 34px 30px;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: 18px;
  box-shadow: var(--arch-shadow);
}
.dell-ba-box.before {
  background: #fafbfc;
}
.dell-ba-box.after {
  border-color: #c7d8e5;
  background: linear-gradient(180deg, #f6f9fb 0%, #fff 100%);
}
.dell-ba-title {
  font-size: .78rem !important;
  font-weight: 900 !important;
  letter-spacing: .13em;
}
.dell-ba-box h3 {
  margin: 12px 0 20px !important;
  color: var(--arch-blue);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.5;
}
.dell-ba-box ul {
  margin: 0;
  padding-left: 1.2rem;
}
.dell-ba-box li {
  margin: 8px 0;
  color: var(--arch-text);
  line-height: 1.7;
}
.dell-ba-box.after li::marker {
  color: var(--arch-blue);
}
.dell-arrow {
  width: 64px;
  height: 64px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--arch-blue);
  color: #fff;
  font-size: 1.45rem;
  box-shadow: 0 10px 24px rgba(16,44,73,.16);
}

/* FLOW */
.arch-flow {
  background: var(--arch-bg-light);
}
.arch-flow .row.g-3 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}
.arch-flow .row.g-3 > div {
  width: auto;
  padding: 0 10px;
}
.dell-flow-item {
  position: relative;
  min-height: 205px;
  height: 100%;
  padding: 30px 18px 25px !important;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16,44,73,.05);
  text-align: center;
}
.arch-flow .row.g-3 > div:not(:last-child) .dell-flow-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 22px;
  height: 1px;
  background: #b6c5d0;
  z-index: 3;
}
.arch-flow .row.g-3 > div:not(:last-child) .dell-flow-item::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px);
  right: -22px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--arch-blue);
  border-right: 2px solid var(--arch-blue);
  transform: rotate(45deg);
  z-index: 4;
}
.dell-flow-item .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 15px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--arch-blue-soft);
  color: var(--arch-blue);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.dell-flow-item h3 {
  margin: 0 0 11px;
  color: var(--arch-blue);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.55;
}
.dell-flow-item p {
  color: var(--arch-muted);
  line-height: 1.75;
}

/* RECOMMENDED */
.arch-card {
  position: relative;
  min-height: 190px !important;
  height: 100%;
  padding: 30px 28px !important;
  background: #fff;
  border: 1px solid var(--arch-border);
  border-radius: var(--arch-radius);
  box-shadow: var(--arch-shadow);
  text-align: left !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.arch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--arch-shadow-hover);
}
.arch-number {
  margin-bottom: 14px;
  color: var(--arch-blue);
  font-family: "Roboto", sans-serif;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.arch-card h3 {
  margin: 0 0 10px;
  color: var(--arch-blue);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.5;
}
.arch-card p {
  margin: 0;
  color: var(--arch-muted);
  font-size: .9rem;
  line-height: 1.8;
}

/* CTA */
.dell-cta {
  position: relative;
  padding: 86px 0 !important;
  background: linear-gradient(135deg, var(--arch-blue) 0%, var(--arch-blue-dark) 100%) !important;
  overflow: hidden;
}
.dell-cta::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  bottom: -260px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.dell-cta > .container {
  position: relative;
  z-index: 2;
}
.dell-cta .arch-section-label {
  color: rgba(255,255,255,.72) !important;
}
.dell-cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.5;
}
.dell-cta p {
  color: rgba(255,255,255,.88) !important;
  line-height: 1.9;
}

/* DELL responsive */
@media (max-width: 991.98px) {
  .dell-hero {
    padding: calc(var(--arch-header) + 54px) 0 68px !important;
  }
  .dell-hero .row {
    min-height: 0;
  }
  .dell-hero .col-lg-5 {
    margin-top: 15px;
  }
  .dell-hero .col-lg-5 img {
    width: min(100%, 340px);
  }
  .arch-flow .row.g-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  .arch-flow .row.g-3 > div {
    padding: 0;
  }
  .arch-flow .row.g-3 > div:not(:last-child) .dell-flow-item::after,
  .arch-flow .row.g-3 > div:not(:last-child) .dell-flow-item::before {
    display: none;
  }
  .dell-ba-box {
    min-height: 0;
  }
  .dell-arrow {
    transform: rotate(90deg);
    margin: 4px auto;
  }
}
@media (max-width: 767.98px) {
  main > .section,
  main > .arch-ba,
  main > .arch-flow {
    padding: 68px 0 !important;
  }
  main .text-center.mb-5 {
    margin-bottom: 34px !important;
  }
  .dell-hero h1 {
    font-size: 2.15rem !important;
  }
  .dell-hero .lead {
    font-size: .95rem;
  }
  .dell-hero .d-flex {
    flex-direction: column;
    align-items: stretch;
  }
  .dell-hero .d-flex .btn {
    width: 100%;
  }
  .dell-card {
    min-height: 0 !important;
  }
  .dell-ba-box {
    padding: 28px 24px;
  }
  .arch-flow .row.g-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .dell-flow-item {
    min-height: 0;
  }
  .arch-card {
    min-height: 0 !important;
  }
  .dell-cta {
    padding: 68px 0 !important;
  }
}

/* DELL Interview / YouTube */
.dell-interview {
  background: #fff;
}
.dell-interview-wrap {
  max-width: 1000px;
  margin: 0 auto;
}
.dell-interview-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #0e2f50;
  box-shadow: 0 12px 35px rgba(14, 79, 134, .12);
}
.dell-interview-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.dell-interview-caption {
  margin: 24px auto 0;
  padding: 22px 28px;
  border: 1px solid rgba(14, 79, 134, .14);
  border-left: 4px solid var(--arch-blue);
  border-radius: 12px;
  background: var(--arch-bg-light);
  text-align: center;
}
.dell-interview-caption strong {
  display: block;
  color: var(--arch-blue);
  font-size: 1.1rem;
  line-height: 1.8;
}
.dell-interview-caption span {
  display: block;
  margin-top: 7px;
  color: var(--arch-muted);
  line-height: 1.8;
}
@media (max-width: 767.98px) {
  .dell-interview-caption {
    padding: 18px 20px;
    text-align: left;
  }
  .dell-interview-caption strong {
    font-size: 1rem;
  }
}

/* ---------- Home hero image ---------- */
.arch-home-hero-image-wrap {
  width: 100%;
  overflow: hidden;
}

.arch-home-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1400px;
  width: calc(100% - 40px);
  margin: 0 auto;
}

@media (max-width: 767px) {
  .arch-home-hero-image-wrap {
    margin-top: 0;
  }

  .arch-home-hero-image {
    width: 100%;
    max-width: none;
    height: auto;
  }
}

/* Home: generated OGP visual used as the main hero */
.arch-hero.arch-hero-image {
  min-height: auto;
  padding: 92px 0 0 !important;
  background: #fff !important;
}

.arch-hero.arch-hero-image .container-fluid {
  max-width: 100%;
}

@media (max-width: 767px) {
  .arch-hero.arch-hero-image {
    padding: 76px 0 0 !important;
  }
}
