/* CAREBIZ CLOUD
 * Consolidated theme stylesheet.
 * Component rules are defined once per scope; responsive changes live only in their breakpoints.
 */

:root {
  --navy: #082b5f;
  --navy-2: #0c3e82;
  --blue: #1269d3;
  --blue-light: #eaf3ff;
  --text: #1f344d;
  --muted: #5d6d80;
  --line: #dfe6ee;
  --pale: #f7f9fc;
  --white: #ffffff;
  --content: 1180px;
  --content-narrow: 920px;
  --shadow: 0 18px 44px rgba(15, 48, 88, .10);
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.menu-open,
body.modal-open { overflow: hidden; }
main,
section,
.site-header,
.site-footer { max-width: 100%; }
.hero-copy,
.hero-actions,
.hero-card,
.service-copy,
.contact-form-card { min-width: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 78px;
  padding: 0 clamp(22px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(223, 230, 238, .85);
  backdrop-filter: blur(8px);
}
.site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-logo img { width: 164px; display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 32px); font-size: 13px; font-weight: 700; }
.site-nav > a:not(.header-cta) { white-space: nowrap; }
.site-nav > a:not(.header-cta):hover { color: var(--blue); }
.header-cta {
  min-height: 46px;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--navy);
  border-radius: 999px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--navy-2); }
.menu-button { display: none; }
.hero-title-mobile,
.about-title-mobile { display: none; }

.hero {
  padding: clamp(72px, 6vw, 94px) clamp(24px, 4.8vw, 72px) clamp(76px, 6.2vw, 98px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  width: min(100%, 1400px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: clamp(42px, 4vw, 58px);
}
.hero-kicker {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}
.hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(50px, 4.35vw, 68px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.05em;
}
.hero-lead {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--text);
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 600;
  line-height: 2;
}
.hero-sublead {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
.hero-actions { width: 380px; justify-self: end; display: grid; gap: 16px; }
.hero-card {
  position: relative;
  min-height: 158px;
  padding: 25px 28px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hero-card small {
  position: absolute;
  top: 22px;
  left: 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .22em;
}
.hero-card span {
  position: relative;
  z-index: 1;
  padding-right: 58px;
  font-size: clamp(27px, 2.2vw, 35px);
  font-weight: 800;
  line-height: 1.25;
}
.hero-card em {
  position: absolute;
  right: 22px;
  bottom: 21px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 19px;
  font-style: normal;
}
.hero-card-primary {
  color: #fff;
  background: linear-gradient(135deg, #073477 0%, #0d58c7 60%, #287ce8 100%);
}
.hero-card-primary::after {
  content: "";
  position: absolute;
  top: -58px;
  right: -48px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.hero-card-primary small { color: rgba(255, 255, 255, .78); }
.hero-card-primary em { background: rgba(255, 255, 255, .16); }
.hero-card-secondary {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
}
.hero-card-secondary small { color: var(--blue); }
.hero-card-secondary em { color: #fff; background: var(--blue); }

.section { padding: clamp(82px, 8vw, 124px) clamp(24px, 5vw, 72px); }
.section-heading { width: min(100%, var(--content-narrow)); margin: 0 auto clamp(46px, 5vw, 70px); text-align: center; }
.section-heading-left { text-align: left; }
.section-en {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
}
.section-heading h1,
.section-heading h2,
.contact-intro h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.035em;
}

.about { background: #fff; }
.about .section-heading { width: min(100%, 1050px); }
.about-copy { width: min(100%, 790px); margin: 0 auto; }
.about-copy > p { margin: 0 0 22px; color: var(--muted); font-size: 16px; line-height: 2; }
.about-approach {
  width: min(100%, 980px);
  margin: clamp(62px, 7vw, 92px) auto 0;
  padding: 0 12px;
  text-align: center;
}
.about-approach p { margin-left: auto; margin-right: auto; }
.approach-label {
  margin: 0 0 26px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .28em;
}
.approach-intro {
  margin: 0 0 28px;
  color: var(--navy);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.75;
}
.approach-main {
  margin: 0 0 34px;
  color: var(--navy);
  font-size: clamp(28px, 3.25vw, 44px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -.035em;
}
.approach-main span { color: var(--blue); }
.approach-line {
  display: block;
  width: 76px;
  height: 3px;
  margin: 0 auto;
  background: var(--blue);
}

.concerns { background: var(--pale); }
.concerns .section-heading { width: min(100%, var(--content)); }
.concern-list {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 54px;
  list-style: none;
  border-top: 1px solid var(--line);
}
.concern-list li {
  position: relative;
  padding: 20px 0 20px 28px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}
.concern-list li::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.concern-note { width: min(100%, var(--content)); margin: 34px auto 0; color: var(--muted); font-size: 14px; }

.service { background: #fff; }
.service-list-wrap { width: min(100%, var(--content)); margin: 0 auto; display: grid; gap: clamp(92px, 10vw, 148px); }
.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: start;
  gap: clamp(46px, 6vw, 84px);
}
.service-item-reverse { grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); }
.service-item-reverse .service-image { order: 2; }
.service-item-reverse .service-copy { order: 1; }
.service-image {
  margin: 0;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 20px;
}
.service-image img {
  width: 100%;
  height: 100%;
  display: block;
  padding: clamp(8px, 1.2vw, 16px);
  object-fit: contain;
}
.service-copy { padding-top: 4px; }
.service-number {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}
.service-number::after { content: ""; width: 42px; height: 1px; background: currentColor; opacity: .42; }
.service-label { margin: -4px 0 8px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.service-copy h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.04em;
}
.service-copy h4 {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  line-height: 1.75;
}
.service-copy > p:not(.service-number):not(.service-label):not(.service-note) { margin: 0 0 15px; color: var(--muted); font-size: 15px; }
.service-example { margin-top: 28px; padding: 24px 26px; background: var(--pale); }
.service-example h5 { margin: 0 0 14px; color: var(--navy); font-size: 15px; }
.service-example ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  list-style: none;
}
.service-example li { position: relative; padding-left: 17px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.service-example li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.service-note {
  margin: 18px 0 0;
  padding-left: 14px;
  color: var(--muted);
  border-left: 2px solid #cbd6e3;
  font-size: 12px;
  line-height: 1.85;
}
.service-note strong { color: var(--text); }

.flow { background: var(--pale); }
.flow-list { width: min(100%, var(--content)); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.flow-list article { padding: 28px 24px 0; border-right: 1px solid var(--line); }
.flow-list article:first-child { padding-left: 0; }
.flow-list article:last-child { padding-right: 0; border-right: 0; }
.flow-list span,
.promise-list span { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.flow-list h3,
.promise-list h3 { margin: 10px 0 12px; color: var(--navy); font-size: 20px; line-height: 1.45; }
.flow-list p,
.promise-list p { margin: 0; color: var(--muted); font-size: 14px; }

.promise { background: #fff; }
.promise-list { width: min(100%, var(--content)); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 54px; border-top: 1px solid var(--line); }
.promise-list article { padding: 30px 0; border-bottom: 1px solid var(--line); }

.faq { background: #fff; }
.faq-list { width: min(100%, var(--content-narrow)); margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 24px 52px 24px 0;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 26px;
  font-weight: 400;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 44px 24px 0; color: var(--muted); font-size: 14px; }

.company { background: var(--pale); }
.company-table { width: min(100%, var(--content-narrow)); margin: 0 auto; border-top: 1px solid var(--line); }
.company-table div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.company-table dt { color: var(--navy); font-weight: 700; }
.company-table dd { margin: 0; color: var(--muted); }

.contact { background: #fff; }
.contact-intro { width: min(100%, var(--content-narrow)); margin: 0 auto 46px; text-align: center; }
.contact-intro p { margin: 8px 0 0; color: var(--muted); }
.contact-form-card {
  width: min(100%, var(--content-narrow));
  margin: 0 auto;
  padding: clamp(22px, 3vw, 32px);
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.contact-form-card .wpcf7 { margin: 0; }
.contact-form-card p { margin: 0 0 14px; }
.contact-form-card label { display: block; margin: 0; color: var(--navy); font-size: 14px; font-weight: 700; line-height: 1.5; }
.required { color: #c73e3e; font-size: 12px; font-weight: 700; }
.contact-form-card .wpcf7-form-control-wrap { display: block; margin-top: 5px; }
.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card input[type="tel"],
.contact-form-card select,
.contact-form-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid #cbd6e3;
  border-radius: 8px;
  outline: none;
}
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 105, 211, .10); }
.contact-form-card textarea { min-height: 150px; padding-top: 12px; padding-bottom: 12px; resize: vertical; }
.form-notice { margin: 18px 0 14px; padding: 16px 18px; color: var(--muted); background: #fff; border: 1px solid var(--line); font-size: 13px; }
.form-notice p { margin: 0; }
.form-notice p + p { margin-top: 10px; }
.optional { color: var(--muted); font-size: 12px; font-weight: 600; }
.contact-form-card .privacy-check,
.contact-form-card .consent-line { margin: 0 0 14px; }
.contact-form-card .privacy-check .wpcf7-form-control-wrap,
.contact-form-card .consent-line .wpcf7-form-control-wrap { margin-top: 0; }
.contact-form-card .privacy-check .wpcf7-list-item,
.contact-form-card .consent-line .wpcf7-list-item { margin: 0; }
.contact-form-card .privacy-check label,
.contact-form-card .consent-line .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.7;
}
.contact-form-card .privacy-check input[type="checkbox"],
.contact-form-card .consent-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: .34em 0 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}
.text-button,
.contact-form-card .privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.text-button:hover,
.contact-form-card .privacy-link:hover { color: var(--navy-2); }
.text-button:focus-visible,
.contact-form-card .privacy-link:focus-visible {
  outline: 3px solid rgba(18, 105, 211, .28);
  outline-offset: 4px;
}
.contact-form-card .submit-row { margin: 22px 0 0; text-align: center; }
.submit-button,
.contact-form-card .contact-form__submit {
  min-width: 250px;
  min-height: 52px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  padding: 13px 26px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(18, 105, 211, .16);
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.submit-button:hover,
.contact-form-card .contact-form__submit:hover:not(:disabled) {
  background: var(--navy-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(8, 43, 95, .20);
}
.submit-button:focus-visible,
.contact-form-card .contact-form__submit:focus-visible {
  outline: 3px solid rgba(18, 105, 211, .28);
  outline-offset: 4px;
}
.submit-button:disabled,
.contact-form-card .contact-form__submit:disabled {
  color: rgba(255,255,255,.92);
  background: #8098b6;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.contact-form-card .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #c73e3e; font-size: 13px; font-weight: 500; }
.contact-form-card .wpcf7-response-output { margin: 14px 0 0; padding: 12px 14px; background: #fff; border-radius: 8px; }
.contact-form-card .wpcf7 form.sent .wpcf7-response-output { border-color: var(--blue); }
.contact-form-card .wpcf7 form.invalid .wpcf7-response-output,
.contact-form-card .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-form-card .wpcf7 form.payment-required .wpcf7-response-output { border-color: #c73e3e; }
.contact-form-card .wpcf7-spinner { margin-top: 14px; vertical-align: middle; }

.site-footer { padding: 58px clamp(24px, 5vw, 72px) 28px; color: #fff; background: var(--navy); }
.footer-top { width: min(100%, var(--content)); margin: 0 auto; padding-bottom: 32px; display: flex; justify-content: space-between; gap: 44px; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer-brand img { width: 142px; display: block; margin-bottom: 18px; }
.footer-brand p:not(.footer-message) { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }
.footer-message { margin: 8px 0 0; color: #fff; font-size: 13px; font-weight: 700; }
.footer-nav { max-width: 620px; display: flex; justify-content: flex-end; align-content: flex-start; gap: 16px 26px; flex-wrap: wrap; font-size: 13px; }
.footer-nav a,
.footer-nav button { color: rgba(255,255,255,.82); background: none; border: 0; padding: 0; }
.footer-nav a:hover,
.footer-nav button:hover { color: #fff; }
.footer-bottom { width: min(100%, var(--content)); margin: 0 auto; padding-top: 22px; color: rgba(255,255,255,.56); font-size: 12px; }

.privacy-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.privacy-modal.is-open { display: block; }
.privacy-modal-backdrop { position: absolute; inset: 0; background: rgba(5, 22, 47, .62); }
.privacy-modal-panel {
  position: relative;
  width: min(calc(100% - 32px), 920px);
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .24);
}
.privacy-modal-header { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.privacy-modal-header h2 { margin: 0; color: var(--navy); font-size: 24px; }
.privacy-close { width: 42px; height: 42px; display: grid; place-items: center; color: var(--navy); background: var(--pale); border: 0; border-radius: 50%; font-size: 26px; line-height: 1; }
.privacy-modal-body { max-height: calc(100vh - 142px); padding: 28px 30px 38px; overflow-y: auto; color: var(--muted); font-size: 14px; }
.privacy-modal-body h3 { margin: 30px 0 10px; color: var(--navy); font-size: 17px; }
.privacy-modal-body h4 { margin: 20px 0 8px; color: var(--navy); font-size: 15px; }
.privacy-modal-body p { margin: 0 0 12px; }
.privacy-modal-body ul,
.privacy-modal-body ol { margin: 0 0 16px; padding-left: 1.5em; }
.privacy-modal-body li + li { margin-top: 5px; }
.privacy-modal-body address { margin: 0 0 12px; font-style: normal; }
.privacy-modal-body .privacy-policy-date { margin-top: 30px; font-weight: 700; }

.sp-only { display: none; }

/* Tablet and navigation */
@media (max-width: 1040px) {
  .site-header {
    backdrop-filter: none;
  }

  .site-logo {
    position: relative;
    z-index: 122;
  }

  .menu-button {
    position: relative;
    z-index: 123;
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .menu-button span {
    width: 20px;
    height: 2px;
    background: var(--navy);
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    padding: 96px 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--navy);
    background: #fff;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav > a {
    width: min(100%, 420px);
    min-height: 52px;
    margin: 0 auto;
    padding: 13px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }

  .site-nav .header-cta {
    width: min(100%, 360px);
    min-width: 0;
    min-height: 50px;
    margin-top: 22px;
    padding: 12px 20px;
    border: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy {
    max-width: 900px;
  }

  .hero-actions {
    width: 100%;
    max-width: 820px;
    justify-self: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card {
    min-height: 138px;
  }

  .service-item,
  .service-item-reverse {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .service-item-reverse .service-image,
  .service-item-reverse .service-copy {
    order: initial;
  }

  .service-image {
    max-width: 760px;
  }

  .service-copy {
    max-width: 820px;
  }

  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
    gap: 0 34px;
  }

  .flow-list article,
  .flow-list article:first-child,
  .flow-list article:last-child {
    padding: 26px 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }
}

/* Smartphone */
@media (max-width: 720px) {
  .site-header {
    height: 68px;
    padding-inline: 16px;
  }

  .site-logo img {
    width: 132px;
    max-width: 42vw;
  }

  .menu-button {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
  }

  .site-nav {
    padding: 88px 18px 28px;
  }

  .site-nav > a {
    font-size: 16px;
  }

  .hero {
    padding: 42px 16px 54px;
  }

  .hero-inner {
    width: 100%;
    gap: 26px;
  }

  .hero-title-desktop,
  .about-title-desktop {
    display: none;
  }

  .hero-title-mobile,
  .about-title-mobile {
    display: block;
  }

  .hero-kicker {
    margin-bottom: 12px;
    font-size: 10px;
    line-height: 1.6;
    letter-spacing: .06em;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(29px, 8.4vw, 34px);
    line-height: 1.34;
    letter-spacing: -.055em;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .hero-lead {
    max-width: none;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.85;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  .hero-sublead {
    max-width: none;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    width: 100%;
    max-width: none;
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-card {
    width: 100%;
    min-width: 0;
    min-height: 108px;
    padding: 15px 12px;
    border-radius: 15px;
  }

  .hero-card small {
    top: 13px;
    left: 12px;
    font-size: 8px;
    letter-spacing: .14em;
  }

  .hero-card span {
    max-width: calc(100% - 27px);
    padding-right: 0;
    font-size: clamp(15px, 4.4vw, 18px);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .hero-card em {
    right: 9px;
    bottom: 10px;
    width: 29px;
    height: 29px;
    font-size: 14px;
  }

  .hero-card-primary::after {
    top: -34px;
    right: -42px;
    width: 112px;
    height: 112px;
  }

  .section {
    padding: 62px 18px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading-left {
    text-align: center;
  }

  .section-heading h1,
  .section-heading h2,
  .contact-intro h2 {
    font-size: clamp(25px, 7.2vw, 30px);
    line-height: 1.48;
    letter-spacing: -.04em;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .about .section-heading h2 {
    font-size: clamp(25px, 7.2vw, 30px);
    line-height: 1.52;
  }

  .about-copy {
    width: 100%;
  }

  .about-copy > p {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.95;
  }

  .about-approach {
    margin-top: 50px;
    padding: 0;
  }

  .approach-label {
    margin-bottom: 20px;
    font-size: 10px;
  }

  .approach-intro {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 1.75;
  }

  .approach-main {
    margin-bottom: 28px;
    font-size: clamp(22px, 6.5vw, 27px);
    line-height: 1.65;
    letter-spacing: -.035em;
  }

  .approach-break {
    display: block;
  }

  .approach-line {
    width: 58px;
  }

  .concern-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .concern-list li {
    font-size: 14px;
  }

  .service-list-wrap {
    gap: 64px;
  }

  .service-item,
  .service-item-reverse {
    gap: 0;
  }

  .service-image {
    display: none;
  }

  .service-copy h3 {
    font-size: clamp(24px, 6.6vw, 28px);
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .service-copy h4 {
    font-size: 15px;
    line-height: 1.8;
  }

  .service-copy > p:not(.service-number):not(.service-label):not(.service-note) {
    font-size: 14px;
    line-height: 1.9;
  }

  .service-example {
    margin-top: 28px;
    padding: 22px 18px;
  }

  .service-example ul {
    grid-template-columns: 1fr;
  }

  .flow-list {
    grid-template-columns: 1fr;
  }

  .promise-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-list h3,
  .promise-list h3 {
    font-size: 19px;
  }

  .company-table div {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .company-table dt {
    font-size: 13px;
  }

  .contact-intro {
    width: 100%;
    margin-bottom: 34px;
    text-align: left;
  }

  .contact-intro p {
    font-size: 14px;
    line-height: 1.8;
  }

  .contact-form-card {
    width: 100%;
    padding: 20px 16px;
    border-radius: 10px;
  }

  .contact-form-card input[type="text"],
  .contact-form-card input[type="email"],
  .contact-form-card input[type="tel"],
  .contact-form-card select,
  .contact-form-card textarea {
    max-width: 100%;
    font-size: 16px;
  }

  .submit-button,
  .contact-form-card .contact-form__submit {
    width: 100%;
    min-width: 0;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .privacy-modal-panel {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
  }

  .privacy-modal-body {
    max-height: calc(100vh - 104px);
    padding: 22px 20px 30px;
  }

  .sp-only {
    display: inline;
  }

  .pc-only {
    display: none;
  }
}

@media (max-width: 390px) {
  .site-header {
    padding-inline: 14px;
  }

  .site-logo img {
    width: 124px;
  }

  .hero {
    padding-inline: 14px;
  }

  .hero h1 {
    font-size: clamp(28px, 8.2vw, 31px);
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-card {
    min-height: 104px;
    padding: 14px 10px;
  }

  .hero-card small {
    left: 10px;
  }

  .hero-card span {
    font-size: clamp(14px, 4.2vw, 16px);
  }

  .hero-card em {
    right: 8px;
    bottom: 9px;
    width: 27px;
    height: 27px;
  }

  .section {
    padding-inline: 16px;
  }

  .section-heading h1,
  .section-heading h2,
  .contact-intro h2,
  .about .section-heading h2 {
    font-size: 25px;
  }

  .approach-main {
    font-size: 22px;
  }
}

@media (max-width: 340px) {
  .site-logo img {
    width: 116px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero-card span {
    max-width: 100%;
    font-size: 13.5px;
  }

  .hero-card em {
    display: none;
  }
}
