@media (max-width: 580px) {
  /* 全ページ共通：横はみ出しと縮小時のレイアウト崩れを防ぐ */
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }
  .container,
  .hero-copy,
  .section-heading > *,
  .contact-inner > *,
  .footer-top > * {
    min-width: 0;
  }
  img,
  svg { max-width: 100%; }
  .btn,
  .text-link,
  .content-link {
    max-width: 100%;
  }
  .hero-actions,
  .contact-actions { max-width: 100%; }
  .back-top { display: none; }
  .content-link small {
    white-space: normal;
    text-align: right;
  }

  /* ファーストビューの技術説明 */
  .framework-kicker { font-size: 12px; }
  .tech-module > span { font-size: 11px; }
  .tech-module small { font-size: 13px; line-height: 1.55; }
  .framework-flow strong { font-size: 13px; letter-spacing: .02em; }
  .framework-result small { font-size: 12px; }
  .framework-deliverables span {
    min-height: 48px;
    padding: 10px 9px;
    font-size: 14px;
    line-height: 1.45;
  }

  /* TOP：Featuredカードは本文量に合わせて高さを伸ばす */
  .feature-card,
  .feature-card--main {
    min-height: 0;
    padding: 27px 24px 25px;
  }
  .feature-card .eyebrow {
    max-width: calc(100% - 82px);
  }
  .feature-card h3,
  .feature-card--main h3 {
    margin-top: 30px;
    font-size: clamp(24px, 7.5vw, 30px);
    line-height: 1.48;
  }
  .feature-card p {
    font-size: 14px;
    line-height: 1.85;
  }
  .feature-card .text-link {
    position: relative;
    left: auto;
    bottom: auto;
    width: fit-content;
    margin-top: 24px;
    white-space: normal;
  }
  .feature-card--main .text-link {
    min-height: 50px;
    padding: 9px 10px 9px 15px;
  }
  .feature-card .mini-visual {
    top: 21px;
    right: 20px;
    bottom: auto;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 27px;
  }
  .feature-card .mini-visual svg {
    width: 38px;
    height: 38px;
  }

  /* TOP：Why skyACEをコンパクトで追いやすい横組みにする */
  .why-grid { gap: 14px; }
  .reason-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 17px;
    row-gap: 7px;
    min-height: 0;
    padding: 23px 21px;
    border-color: #ccdbe4;
    border-left: 4px solid var(--blue);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f5fbfe 100%);
    box-shadow: 0 10px 28px rgba(20, 41, 77, .075);
  }
  .reason-card:nth-child(2) {
    border-left-color: var(--navy);
    background: linear-gradient(135deg, #fff 0%, #f4f7fa 100%);
  }
  .reason-card:nth-child(3) {
    border-left-color: var(--orange);
    background: linear-gradient(135deg, #fff 0%, #fff7f2 100%);
  }
  .reason-card:nth-child(4) {
    border-left-color: #14a692;
    background: linear-gradient(135deg, #fff 0%, #f2fbf8 100%);
  }
  .reason-no {
    grid-row: 1 / 3;
    align-self: start;
    width: 52px;
    height: 52px;
    margin: 0;
    font-size: 14px;
  }
  .reason-card h3 {
    margin: 1px 0 0;
    font-size: 21px;
    line-height: 1.48;
    letter-spacing: -.02em;
  }
  .reason-card p {
    grid-column: 2;
    margin: 2px 0 0;
    color: #40596a;
    font-size: 15px;
    line-height: 1.78;
  }

  /* TOP：製品カードもCTAを本文の後に配置する */
  .product-grid { gap: 14px; }
  .product-card {
    min-height: 0;
    padding: 27px 23px 23px;
    border-color: #cbd8e2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 11px 30px rgba(20, 41, 77, .08);
  }
  .product-card::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--blue), var(--navy));
  }
  .product-label {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    color: #5543a5;
    background: #f0edff;
    font-size: 11.5px;
    letter-spacing: .08em;
  }
  .product-card h3 {
    margin: 16px 0 9px;
    font-size: 26px;
    line-height: 1.38;
  }
  .product-card p {
    color: #425c6d;
    font-size: 15px;
    line-height: 1.78;
  }
  .product-tags {
    gap: 7px;
    margin-top: 18px;
  }
  .product-tags span {
    padding: 6px 10px;
    border: 1px solid #ddd7f8;
    color: #5645a7;
    background: #f6f4ff;
    font-size: 12px;
  }
  .product-card .text-link {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    margin-top: 21px;
    padding: 10px 14px;
    border: 1px solid #cbdde7;
    border-radius: 12px;
    color: var(--navy);
    background: #f3f8fb;
    font-size: 14px;
  }
  .product-all .btn,
  .case-all .btn {
    width: min(100%, 320px);
    justify-content: space-between;
  }

  .business-panel li strong { font-size: 13px; }
  .business-panel li small { font-size: 11.5px; line-height: 1.5; }

  .contact-map { aspect-ratio: 4 / 3; }
  .form-intro strong { font-size: 20px; line-height: 1.5; }

  /* 会社概要：見出しと追加情報をスマートフォンの幅に合わせる */
  .company-hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.22;
    overflow-wrap: normal;
  }
  .company-hero-copy p { font-size: 15px; line-height: 1.9; }
  .message-mark strong { font-size: clamp(27px, 8.3vw, 35px); }
  .ceo-photo { max-width: 360px; margin-inline: auto; }
  .core-panel-head p,
  .core-card p,
  .core-3t-list { font-size: 15px; }
  .policy-order span { padding-inline: 8px; font-size: 14px; }
  .profile-row dd { overflow-wrap: normal; }

  /* TOP：Knowledge内の項目を固定位置から通常フローへ戻す */
  .knowledge-feature {
    min-height: 0;
    padding: 34px 24px;
  }
  .knowledge-index {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 28px;
  }

  /* 子ページ：固定下端ラベルが本文と重ならない余白を確保 */
  .process-card { padding-bottom: 64px; }
  .gap-card strong {
    position: relative;
    left: auto;
    bottom: auto;
    display: block;
    margin-top: 22px;
  }

  /* 技術タグ・カード内の補足情報 */
  .hero-category-block > strong { font-size: 12px; }
  .category-tag {
    min-height: 30px;
    padding: 5px 11px;
    font-size: 12.5px;
  }
  .content-link { font-size: 13px; }
  .content-link small { font-size: 12px; }
  .service-tags span,
  .process-card span,
  .case-body small,
  .tech-group span,
  .works-case-body small,
  .case-meta span,
  .technology-group span,
  .product-tags span,
  .sample,
  .sample-badge { font-size: 12px; }

  /* 図・マップの説明文 */
  .map-center span,
  .map-card span,
  .team-core span,
  .team-node span { font-size: 12px; line-height: 1.55; }
  .map-card small { font-size: 11.5px; }
  .map-card p { font-size: 12px; }
  .map-foundation {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
  .map-foundation span {
    display: grid;
    min-height: 64px;
    place-items: center;
    padding: 10px 5px;
    font-size: 11.5px;
    line-height: 1.45;
    text-align: center;
  }
  .venn-circle small { font-size: 12px; line-height: 1.45; }
  .venn-core small { font-size: 11.5px; }
  .works-axis small { font-size: 12px; }
  .works-chip span { font-size: 12.5px; line-height: 1.55; }

  /* 一覧・ニュース・補足ラベル */
  .pillar-grid {
    border: 1px solid #cedae2;
    box-shadow: 0 14px 38px rgba(8, 41, 67, .11);
  }
  .pillar {
    border-bottom-color: #cedae2;
  }
  .pillar small {
    color: #405a6b;
    font-size: 12.5px;
    font-weight: 800;
  }
  .pillar-no {
    color: #007faa;
    font-size: 11.5px;
  }
  .work-body small,
  .domain-card b,
  .works-case-no { font-size: 12px; }
  .knowledge-index span,
  .news-card time,
  .news-card .news-type,
  .news-tag { font-size: 12px; }
  .knowledge-index span {
    display: grid;
    min-height: 48px;
    place-items: center;
    text-align: center;
  }
  .policy-order span {
    display: grid;
    min-height: 76px;
    place-items: center;
    align-content: center;
    text-align: center;
  }
  .blog-meta { font-size: 12.5px; }
  .office small { font-size: 11.5px; }
  .office span { font-size: 12.5px; }
  .form-note { font-size: 12px; }

  /* フッターもスマートフォンで判読しやすくする */
  .footer-brand p { font-size: 13px; }
  .footer-column a { font-size: 13px; }
  .footer-bottom { font-size: 12px; line-height: 1.7; }
  .mobile-language { font-size: 13px; }
}

@media (max-width: 380px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .hero-copy h1,
  .company-hero h1 { font-size: clamp(34px, 11vw, 42px); }
  .section-title { font-size: clamp(29px, 9.5vw, 38px); }
  .anchor-inner,
  .company-anchor-inner { grid-template-columns: 1fr; }
  .anchor-inner a:nth-child(n),
  .company-anchor a:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .anchor-inner a:nth-child(n):last-child,
  .company-anchor a:nth-child(n):last-child { border-bottom: 0; }
  .feature-card h3,
  .feature-card--main h3 { font-size: 24px; }
  .feature-card--main .text-link { font-size: 13px; }
  .policy-order { grid-template-columns: 1fr; }
}

/* 全ページ共通：現行サイト構成に合わせたフッターの可読性 */
.site-footer {
  padding-top: 64px;
}
.site-footer .footer-top {
  gap: clamp(42px, 6vw, 78px);
  padding-bottom: 48px;
}
.site-footer .footer-brand p {
  color: #9ab1bf;
  font-size: 14px;
  line-height: 1.8;
}
.site-footer .footer-column h3 {
  margin-bottom: 18px;
  font-size: 15px;
  letter-spacing: .02em;
}
.site-footer .footer-column a {
  margin: 11px 0;
  color: #a5bbc7;
  font-size: 14px;
  line-height: 1.6;
}
.site-footer .footer-column a:hover {
  color: #fff;
}
.site-footer .footer-bottom {
  font-size: 12px;
  line-height: 1.7;
}

/* 全子ページ共通：公式ロゴの上下左右を切らず、白いロックアップ内に収める */
.site-footer .brand--lockup {
  width: max-content;
  max-width: 100%;
  min-height: 66px;
  padding: 11px 15px 12px;
  align-items: center;
  overflow: visible;
}
.site-footer .brand--lockup .brand-logo {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  object-fit: contain;
  object-position: center;
  overflow: visible;
}
.site-footer .brand--lockup .brand-info {
  flex: 0 1 auto;
  min-width: 0;
  padding: 2px 0;
  overflow: visible;
}

/* 円形アイコン内の矢印を、フォントの行高に左右されず中央へ固定 */
.contact-actions .btn-arrow {
  position: relative;
  flex: 0 0 auto;
  font-size: 0;
  line-height: 1;
}
.contact-actions .btn-arrow::before {
  content: "→";
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -53%);
}

/* 会社概要：TOPと同じ公式グループ拠点図を共有 */
.company-locations-map {
  max-width: 980px;
  margin: 0 auto 30px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #d2e5ed;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(20, 41, 77, .07);
}
.company-locations-map img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 760px) {
  .site-footer { padding-top: 52px; }
  .site-footer .footer-top { gap: 36px; padding-bottom: 38px; }
  .site-footer .footer-sitemap { gap: 30px 20px; }
  .company-locations-map { margin-bottom: 22px; padding: 12px; border-radius: 18px; }
}

@media (max-width: 580px) {
  .site-footer .footer-column h3 { font-size: 15px; }
  .site-footer .footer-column a { font-size: 14px; }
  .site-footer .footer-bottom { font-size: 12px; }
  .site-footer .brand--lockup {
    min-height: 62px;
    padding: 10px 13px 11px;
  }
  .site-footer .brand--lockup .brand-logo {
    flex-basis: 41px;
    width: 41px;
    height: 41px;
  }
}

/* PPT review: child pages share the TOP-page section rhythm and text scale */
body:not(.home-page) .section {
  padding: clamp(72px, 5vw, 88px) 0 clamp(48px, 3.4vw, 58px);
}
body:not(.home-page) .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 500px);
  align-items: end;
  justify-content: start;
  column-gap: clamp(48px, 5vw, 72px);
  margin-bottom: clamp(38px, 3.8vw, 52px);
}
body:not(.home-page) .section-heading .section-lead {
  max-width: 500px;
  margin: 0;
  padding: 0 0 2px 24px;
  border-left: 3px solid rgba(0, 167, 224, .20);
  font-size: 17px;
  line-height: 1.9;
}
body:not(.home-page) .section--navy .section-heading .section-lead {
  border-left-color: rgba(127, 213, 255, .35);
}
body:not(.home-page) .section-kicker { font-size: 12.5px; }
body:not(.home-page) .section article p {
  font-size: max(14px, 1em);
  line-height: 1.8;
}
body:not(.home-page) .anchor-inner a,
body:not(.home-page) .company-anchor a {
  font-size: 15px;
}

/* 子ページ共通：パンくずとファーストビュー下部ナビゲーション */
body:not(.home-page) .breadcrumb {
  gap: 11px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}
body:not(.home-page) .page-anchor,
body:not(.home-page) .company-anchor {
  margin-top: -42px;
}
body:not(.home-page) .anchor-inner,
body:not(.home-page) .company-anchor-inner {
  border-radius: 18px;
}
body:not(.home-page) .anchor-inner a,
body:not(.home-page) .company-anchor a {
  position: relative;
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  padding: 24px 46px 24px 26px;
  font-size: 16px;
  line-height: 1.45;
}
body:not(.home-page) .anchor-inner a span,
body:not(.home-page) .company-anchor a span {
  display: block;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
}
body:not(.home-page) .anchor-inner a span::after,
body:not(.home-page) .company-anchor a span::after {
  content: " / SECTION";
}
.product-page .anchor-inner a span::after {
  content: " / CATEGORY";
}
.strengths-page .anchor-inner a span[data-section] {
  letter-spacing: .055em;
  white-space: nowrap;
}
.strengths-page .anchor-inner a span[data-section]::after {
  content: " / " attr(data-section);
}
.company-page .company-anchor a span[data-section] {
  letter-spacing: .055em;
  white-space: nowrap;
}
.company-page .company-anchor a span[data-section]::after {
  content: " / " attr(data-section);
}
.strengths-page .concept-venn .venn-circle small {
  width: max-content;
  max-width: 88%;
  margin-inline: auto;
  line-height: 1.45;
  white-space: normal;
}
body:not(.home-page) .anchor-inner a::after,
body:not(.home-page) .company-anchor a::after {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: #7e9bab;
  font-size: 15px;
}

/* skyACEの強み：重複タイトルを外し、メッセージを主役にする */
.strengths-page .strengths-eyebrow {
  margin: 0;
  color: #83defa;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}
.strengths-page .hero-copy .strengths-statement {
  max-width: 760px;
  margin: 26px 0 0;
  color: #fff;
  font-size: clamp(40px, 4.2vw, 58px);
  line-height: 1.38;
  letter-spacing: -.045em;
}

@media (max-width: 860px) {
  body:not(.home-page) .section { padding: 64px 0 44px; }
  body:not(.home-page) .section-heading { display: block; margin-bottom: 34px; }
  body:not(.home-page) .section-heading .section-lead {
    margin-top: 22px;
    padding-left: 18px;
  }
  body:not(.home-page) .page-anchor,
  body:not(.home-page) .company-anchor { margin-top: -24px; }
  body:not(.home-page) .anchor-inner a,
  body:not(.home-page) .company-anchor a { min-height: 100px; }
}

@media (max-width: 580px) {
  body:not(.home-page) .section { padding: 58px 0 40px; }
  body:not(.home-page) .section-title {
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.35;
  }
  body:not(.home-page) .section-lead { font-size: 15px; line-height: 1.85; }
  body:not(.home-page) .section article p { font-size: 14px; }
  body:not(.home-page) .anchor-inner a,
  body:not(.home-page) .company-anchor a {
    min-height: 88px;
    padding: 19px 48px 19px 22px;
    font-size: 15px;
  }
  body:not(.home-page) .breadcrumb { font-size: 13.5px; }
  body:not(.home-page) .page-anchor,
  body:not(.home-page) .company-anchor { margin-top: -12px; }
  body:not(.home-page) .anchor-inner,
  body:not(.home-page) .company-anchor-inner { grid-template-columns: 1fr; }
  body:not(.home-page) .anchor-inner a:nth-child(n),
  body:not(.home-page) .company-anchor a:nth-child(n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  body:not(.home-page) .anchor-inner a:nth-child(n):last-child,
  body:not(.home-page) .company-anchor a:nth-child(n):last-child { border-bottom: 0; }
  body:not(.home-page) .anchor-inner a::after,
  body:not(.home-page) .company-anchor a::after {
    right: 21px;
    bottom: 50%;
    transform: translateY(50%);
  }
  .strengths-page .strengths-eyebrow { font-size: 12px; }
  .strengths-page .hero-copy .strengths-statement {
    margin-top: 21px;
    font-size: clamp(31px, 8.6vw, 40px);
    line-height: 1.42;
  }

  /* skyACEの強み：数式見出しと3領域図を画面内に収める */
  body:not(.home-page) .section#concept > .container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
  }
  body:not(.home-page) .concept-layout {
    min-width: 0;
    max-width: 100%;
  }
  body:not(.home-page) .concept-layout > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  body:not(.home-page) .section-title.concept-title-formula {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 7px;
    width: 100%;
    max-width: 100%;
    font-size: clamp(19px, 6.5vw, 26px);
    line-height: 1.35;
    letter-spacing: -.055em;
    white-space: normal;
  }
  body:not(.home-page) .concept-title-formula .formula-term {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  body:not(.home-page) .concept-title-formula .formula-op {
    flex: 0 0 auto;
    color: #587487;
  }
  body:not(.home-page) .domain-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  body:not(.home-page) .domain-card p {
    max-width: 100%;
    overflow-wrap: normal;
  }
  body:not(.home-page) .concept-venn {
    position: relative;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 8px auto 0;
  }
  body:not(.home-page) .concept-venn .venn-circle {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    aspect-ratio: 1;
    transform: none;
    box-shadow: 0 10px 24px rgba(20, 41, 77, .12);
  }
  body:not(.home-page) .concept-venn .venn-circle strong {
    font-size: clamp(12px, 3.7vw, 15px);
    line-height: 1.3;
    white-space: nowrap;
  }
  body:not(.home-page) .concept-venn .venn-circle small {
    margin-top: 5px;
    font-size: clamp(8.5px, 2.55vw, 10px);
    line-height: 1.25;
  }
  body:not(.home-page) .concept-venn .venn-circle--bim,
  body:not(.home-page) .concept-venn .venn-circle--ai {
    color: #14294d;
  }
  body:not(.home-page) .concept-venn .venn-circle--web {
    color: #fff;
  }
  body:not(.home-page) .concept-venn .venn-core {
    position: relative;
    left: auto;
    top: auto;
    grid-column: 1 / -1;
    min-height: 72px;
    display: grid;
    place-items: center;
    padding: 13px 18px;
    transform: none;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #14294d, #087eaf);
    box-shadow: 0 12px 28px rgba(20, 41, 77, .16);
  }
  body:not(.home-page) .concept-venn .venn-core strong {
    color: #fff;
    font-size: 21px;
    line-height: 1.2;
  }
  body:not(.home-page) .concept-venn .venn-core small {
    margin-top: 5px;
    color: #c9efff;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .07em;
    white-space: normal;
  }
}

/* 対象3ページ：英数字の単語を途中で分割せず、語の間で折り返す。 */
.home-page,
.strengths-page,
.company-page {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}
.keep-word { white-space: nowrap; }
@media (max-width: 580px) {
  /* 長い見出しのまとまりは自然に折り返し、語そのものは分割しない。 */
  .home-page .hero-title-phrase { display: inline; }
  .company-page .manifesto-word strong {
    font-size: clamp(19px, 6vw, 30px);
    white-space: nowrap;
  }
  .company-page .manifesto-word {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }
}
