/* 下層ページをトップの基準値に揃える（2026-11-09 総点検A1〜6）。下層の最後に読み込む。 */

/* A2 ロゴ：トップと同じ165px（スマホも同じ） */
.brand,
.header .brand{width:165px}

/* A3 グローバルメニューの字間：トップと同じ .05em */
.desktop-nav{letter-spacing:.05em}

/* A4 フッターリンク：トップと同じ600 */
.footer-top nav a{font-weight:600}

/* A1 ヒーロー大見出し：基本書体に統一（旧 system-page.css は Yu Gothic 指定） */
.system-hero h2{font-family:"Noto Sans JP","Yu Gothic",Meiryo,sans-serif}

/* A5 お問い合わせ・相談ボタン：トップの .contact a と同じ寸法・配置 */
body.home-page main :is(.new-contact a,.closing a,.contact-inline a,.ai-review-cta a.ai-review-btn){
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:space-between;gap:65px;
  width:auto;min-width:220px;min-height:54px;padding:15px 22px;
  font-size:14px;font-weight:700;line-height:1.6;letter-spacing:.04em
}
/* 文言が長い相談ボタンは矢印との間隔を詰め、狭い画面ではみ出さない */
body.home-page main .ai-review-cta a.ai-review-btn{gap:28px;max-width:100%}

/* A6 AI開発システム：他の下層と同じセクション余白。
   最後のFAQは末尾の濃色の相談帯がフッターに接するため下余白0（トップのお問い合わせ帯と同じ） */
@media(min-width:651px){
  .ai-renew .review-section:not(.faq){padding-block:60px 58px!important}
  .ai-renew .review-section.faq{padding-top:60px!important;padding-bottom:0!important}
}
@media(max-width:650px){
  .ai-renew .review-section:not(.faq){padding-block:44px 46px!important}
  .ai-renew .review-section.faq{padding-top:44px!important;padding-bottom:0!important}
}

/* ===== B 基準統一（2026-11-09）=====
   S = body.home-page main（マモリスは body に home-page が無いため対象外）
   ヒーロー大見出し51.2px／英字ラベルはTOPと同じ／見出しh2はTOPと同じ／本文は役割ごと（リード15・本文14・補足13） */

/* B1 下層ヒーロー */
body.home-page main > :is(.system-hero,.recruit-hero,.contact-intro){padding-top:42px;padding-bottom:42px}
body.home-page main > :is(.system-hero,.recruit-hero,.contact-intro) > :is(.label,.recruit-label,.contact-label){margin:0 0 24px!important;color:#414a43!important}
body.home-page main > :is(.system-hero,.recruit-hero,.contact-intro) > h1{margin:0 0 32px!important;font-size:20px!important;line-height:1.5!important;letter-spacing:normal!important}
body.home-page main > :is(.system-hero,.recruit-hero,.contact-intro) > :is(h2,.recruit-hero-copy,.lead){
  margin:0 0 24px!important;font-family:"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;font-weight:700;
  font-size:clamp(34px,4vw,51.2px)!important;line-height:1.45!important;letter-spacing:.025em!important}
body.home-page main > :is(.system-hero,.recruit-hero,.contact-intro) > p:not(.label):not(.recruit-label):not(.contact-label):not(.lead):not(.recruit-hero-copy){
  margin:0!important;font-size:15px!important;line-height:2!important}
@media(max-width:650px){
  body.home-page main > :is(.system-hero,.recruit-hero,.contact-intro){padding-top:28px;padding-bottom:28px}
  body.home-page main > :is(.system-hero,.recruit-hero,.contact-intro) > h1{font-size:18px!important;margin-bottom:24px!important}
  body.home-page main > :is(.system-hero,.recruit-hero,.contact-intro) > :is(h2,.recruit-hero-copy,.lead){font-size:clamp(22px,7vw,34px)!important;margin-bottom:20px!important}
  body.home-page main > :is(.system-hero,.recruit-hero,.contact-intro) > p:not(.label):not(.recruit-label):not(.contact-label):not(.lead):not(.recruit-hero-copy){font-size:14px!important;line-height:2!important}
}

/* B2 英字ラベル：TOPの .section-kicker と同じ */
body.home-page main :is(.label,.recruit-label,.contact-label){
  font-family:Arial,sans-serif!important;font-size:10px!important;font-weight:700!important;line-height:15px!important;
  letter-spacing:.16em!important;color:#777b73!important;margin-bottom:24px!important;text-transform:none}
@media(max-width:650px){body.home-page main :is(.label,.recruit-label,.contact-label){margin-bottom:19px!important}}
body.home-page main :is(.label,.recruit-label,.contact-label)::first-letter{color:inherit!important}
body.home-page main :is(.new-contact,.ai-review-cta) .label{color:#bfc5bc!important}
body.home-page main :is(.label,.recruit-label,.contact-label) + h2{margin-top:0!important}

/* B3 セクション見出し h2：TOPと同じ（PC 42.24px、スマホ 30px、行間1.3、字間.06em） */
body.home-page main.system-page:not(.web-new):not(.ai-renew) > :is(.intro,.solutions,.cases,.cms,.process,.review,.faq) h2,
body.home-page main.ai-renew .review-section > h2,
body.home-page main.web-new > .new-section h2,
body.home-page main.recruit-page :is(.recruit-heading,.recruit-entry) h2{
  font-size:clamp(30px,3.3vw,42.24px)!important;line-height:1.3!important;letter-spacing:.06em!important;font-weight:700}
/* 締めのお問い合わせ帯の見出しはTOPのお問い合わせと同じ（38.4px／スマホ28px、行間1.5、字間.05em） */
body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing h2,
body.home-page main.ai-renew .ai-review-cta h2,
body.home-page main.web-new > .new-contact h2{
  font-size:clamp(28px,3vw,38.4px)!important;line-height:1.5!important;letter-spacing:.05em!important;font-weight:700}
@media(max-width:650px){
  body.home-page main.system-page:not(.web-new):not(.ai-renew) > :is(.intro,.solutions,.cases,.cms,.process,.review,.faq) h2,
  body.home-page main.ai-renew .review-section > h2,
  body.home-page main.web-new > .new-section h2,
  body.home-page main.recruit-page :is(.recruit-heading,.recruit-entry) h2{font-size:30px!important}
  body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing h2,
  body.home-page main.ai-renew .ai-review-cta h2,
  body.home-page main.web-new > .new-contact h2{font-size:28px!important}
}

/* B4 本文：役割ごとに統一（PC リード15/30・本文14/26.6・補足13/24.7、スマホのリードは14/28） */
/* 本文 14px */
body.home-page main.system-page .case-grid article p:not(.case-scope),
body.home-page main.ai-renew .review-section :is(p,li):not(.label,.review-section > p,.point-group *,.ai-review-flow *,.sample-page *,.sample-heading *,.ai-review-cta *),
body.home-page main.ai-renew .content-cards article p,
body.home-page main.ai-renew .ai-review-note p,
body.home-page main.web-new :is(.app-questions,.app-example-grid) p,
body.home-page main.web-new .company-profile dd,
body.home-page main.web-new .company-business li,
body.home-page main.recruit-page .recruit-work-list :is(p,li),
body.home-page main.recruit-page .recruit-table dd,
body.home-page main.web-new .type-card p,
body.home-page main .post p{font-size:14px!important;line-height:1.9!important}
/* 補足 13px */
body.home-page main.system-page .case-grid .case-scope,
body.home-page main.ai-renew .point-group p,
body.home-page main.ai-renew .ai-review-flow li p{font-size:13px!important;line-height:1.9!important}
/* リード 15px（後に書いて本文より優先） */
body.home-page main.system-page:not(.web-new):not(.ai-renew) :is(.approach-body > p,.section-lead,.cms > div > p,.review > div > p,.closing > p):not(.label),
body.home-page main.ai-renew .review-section > p:not(.label),
body.home-page main.ai-renew .challenge-copy p,
body.home-page main.ai-renew .ai-review-cta > p:not(.label),
body.home-page main.web-new > .new-contact p:not(.label),
body.home-page main.web-new :is(.section-lead,.company-business-lead,.company-map-link),
body.home-page main.recruit-page .recruit-lead,
body.home-page main.contact-page .contact-heading p,
body.home-page main.contact-page .privacy-content :is(p,li){font-size:15px!important;line-height:2!important}
@media(max-width:650px){
  body.home-page main.system-page:not(.web-new):not(.ai-renew) :is(.approach-body > p,.section-lead,.cms > div > p,.review > div > p,.closing > p):not(.label),
  body.home-page main.ai-renew .review-section > p:not(.label),
  body.home-page main.ai-renew .challenge-copy p,
  body.home-page main.ai-renew .ai-review-cta > p:not(.label),
  body.home-page main.web-new > .new-contact p:not(.label),
  body.home-page main.web-new :is(.section-lead,.company-business-lead,.company-map-link),
  body.home-page main.recruit-page .recruit-lead,
  body.home-page main.contact-page .contact-heading p,
  body.home-page main.contact-page .privacy-content :is(p,li){font-size:14px!important;line-height:2!important}
}

/* B5 お知らせ・ブログ一覧：見出しと一覧を他の下層と同じ左端（共通の左右余白）に */
body.home-page main > .heading,
body.home-page main > .heading + .layout{max-width:none!important;margin-inline:0!important}
/* 一覧の見出しはラベル直下に大きいh1が続く構成のため、ラベル下は従来どおり（h1側の15px） */
body.home-page main > .heading > .label{margin-bottom:0!important}
/* 359px以下：改行しない語句を含む長い見出しが画面からはみ出さないよう、画面幅に合わせて縮小（TOPの見出しは短いため30/28pxのまま） */
@media(max-width:359px){
  body.home-page main.system-page:not(.web-new):not(.ai-renew) > :is(.intro,.solutions,.cases,.cms,.process,.review,.faq) h2,
  body.home-page main.ai-renew .review-section > h2,
  body.home-page main.web-new > .new-section h2,
  body.home-page main.recruit-page :is(.recruit-heading,.recruit-entry) h2{font-size:min(30px,7vw)!important}
  body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing h2,
  body.home-page main.ai-renew .ai-review-cta h2,
  body.home-page main.web-new > .new-contact h2{font-size:min(28px,6.6vw)!important}
}

/* ===== 再総点検の修正（2026-11-09）===== */
/* 1 採用ヒーロー：改行しない「「どうすればできる？」を。」（13字）が画面内に収まる大きさに（左右余白22px×2＋余裕） */
@media(max-width:650px){
  body.home-page main.recruit-page > .recruit-hero > .recruit-hero-copy{font-size:min(34px,7vw,calc((100vw - 60px) / 13.6))!important}
}
/* 2 英字ラベルの上余白：段落の標準余白（1em）を消し、全ページでセクション上端から始める */
body.home-page main :is(.label,.recruit-label,.contact-label){margin-top:0!important}
/* 3 システム開発の締めのお問い合わせ帯：他の下層・TOPと同じ濃色帯に */
body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing{background:#252b28;color:#fff;column-gap:30px}
body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing :is(h2,p:not(.label)){color:#fff}
body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing .label{color:#bfc5bc!important}
body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing h2{margin:0 0 24px!important}
body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing p:not(.label){margin:0!important}
body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing a{margin-top:0;background:#faf9f5;border-color:#faf9f5;color:#212521}
body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing a span{color:inherit}
@media(max-width:650px){
  body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing h2{margin-bottom:20px!important}
  body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing a{margin-top:24px}
}
/* 4 ヒーロー内の文字：システム開発・AIも他ページと同じ上揃え */
body.home-page main > .system-hero{justify-content:flex-start!important}
/* 5 よくあるご相談の質問：全ページ 16px（スマホ15px）・行間1.7。答えは本文14px */
body.home-page main :is(.faq,.faq-block) summary{font-size:16px!important;line-height:1.7!important}
@media(max-width:650px){body.home-page main :is(.faq,.faq-block) summary{font-size:15px!important}}
/* 6 見出し下の間隔：AI・採用エントリーも他と同じ24px（スマホは他ページと同じ値） */
body.home-page main.ai-renew .review-section > h2,
body.home-page main.recruit-page .recruit-entry-heading h2{margin-bottom:24px!important}
/* 2 補足：システム開発の最初のセクションはスマホで見出し側に旧指定の上余白22pxが残るため0に */
@media(max-width:650px){body.home-page main.system-page:not(.web-new):not(.ai-renew) > .intro > .approach-title{margin-top:0}}

/* ===== 要検討7〜12の統一（2026-11-09）===== */
/* 7 小見出しh3：TOPの2種類（導入見出し25.6px・カード見出し19px）を基準に3段階。行間normalを解消 */
/* 大：導入・事例の見出し（TOP「私たちについて」の小見出しと同じ） */
body.home-page main.web-new :is(.example-copy,.booking) h3,
body.home-page main.web-new .app-example-grid h3,
body.home-page main.recruit-page .recruit-work-list h3,
body.home-page main.ai-renew .ai-review-security > h2{font-size:25.6px!important;line-height:1.6!important;letter-spacing:.035em!important}
/* 中：カード見出し（TOPのサービスカードと同じ） */
body.home-page main.system-page:not(.web-new):not(.ai-renew) :is(.cards,.case-grid) h3,
body.home-page main.ai-renew :is(.content-cards,.ai-review-scope,.point-heading) h3,
body.home-page main.web-new .service-list h3,
body.home-page main.recruit-page .recruit-copy h3{font-size:19px!important;line-height:1.55!important;letter-spacing:.025em!important}
/* 小：手順・種類の一覧の項目 */
body.home-page main.system-page:not(.web-new):not(.ai-renew) .steps h3,
body.home-page main.web-new :is(.process-list,.type-card) h3,
body.home-page main.ai-renew .ai-review-flow h3{font-size:17px!important;line-height:1.55!important;letter-spacing:.025em!important}
@media(max-width:650px){
  body.home-page main.web-new :is(.example-copy,.booking) h3,
  body.home-page main.web-new .app-example-grid h3,
  body.home-page main.recruit-page .recruit-work-list h3,
  body.home-page main.ai-renew .ai-review-security > h2{font-size:20px!important}
  body.home-page main.system-page:not(.web-new):not(.ai-renew) :is(.cards,.case-grid) h3,
  body.home-page main.ai-renew :is(.content-cards,.ai-review-scope,.point-heading) h3,
  body.home-page main.web-new .service-list h3,
  body.home-page main.recruit-page .recruit-copy h3{font-size:17px!important}
  body.home-page main.system-page:not(.web-new):not(.ai-renew) .steps h3,
  body.home-page main.web-new :is(.process-list,.type-card) h3,
  body.home-page main.ai-renew .ai-review-flow h3{font-size:16px!important}
}
/* 8 ページ内メニュー：字間を全ページなしに（システム・AIの .02em を解除） */
body.home-page .service-page-nav a{letter-spacing:normal!important}
/* 9 パンくず：全ページ14px・行間1.9（記事詳細などの13pxを統一） */
body.home-page .crumb{font-size:14px!important;line-height:1.9!important}
/* 10 本文の例外：システムの手順説明は本文14/1.9、アプリ利用例の項目は本文14px、お問い合わせのヒントは補足13/1.9 */
body.home-page main.system-page:not(.web-new):not(.ai-renew) .steps article p,
body.home-page main.web-new .app-example-grid dd{font-size:14px!important;line-height:1.9!important}
body.home-page main.contact-page .hint{line-height:1.9!important}
/* 11 ロゴの縦位置（TOPとの差0.4px）と12 濃色ボタン（3の修正で解消）は変更なし */
/* 7 補足：小の見出しは狭い列で2行になるため、語の途中で折り返さない（収まらない場合のみ折り返す） */
body.home-page main.system-page:not(.web-new):not(.ai-renew) .steps h3,
body.home-page main.web-new :is(.process-list,.type-card) h3,
body.home-page main.ai-renew .ai-review-flow h3{word-break:keep-all;overflow-wrap:anywhere}

/* ===== 改行修正（2026-11-09）：見出し・質問の最後の語句を途中で折り返さない。HTML側で <wbr><span class="tb-nowrap"> を付けた語句に適用 ===== */
.tb-nowrap{white-space:nowrap}

/* 電話番号の画像（2026-11-09）：文中に置く場合は文字の高さに合わせる（フッター・会社概要は既存の指定） */
.phone-image.phone-image-inline{width:auto;height:.95em;vertical-align:-.1em}

/* 49396 表示修正 */
body.home-page main :is(.label,.recruit-label,.contact-label){font-size:12px!important;line-height:18px!important;color:#515b52!important}
body.home-page main > :is(.system-hero,.recruit-hero,.contact-intro) > :is(.label,.recruit-label,.contact-label){color:#414a43!important}
body.home-page main :is(.new-contact,.ai-review-cta,.closing,.review) .label{color:#bfc5bc!important}
@media(min-width:651px){body.home-page main.contact-page.contact-form-page > .contact-intro{min-height:460px;justify-content:flex-start}}
.company-map{scroll-margin-top:110px}

/* ヒーローとお問い合わせ背景を画面の左右端まで延長。本文の幅は維持する。 */
body.home-page main :is(.system-hero, .recruit-hero, .contact-intro) {
  box-shadow: 0 0 0 100vmax #d3dfd2;
  clip-path: inset(0 -100vmax);
}
body.home-page main :is(.closing, .new-contact) {
  box-shadow: 0 0 0 100vmax #252b28;
  clip-path: inset(0 -100vmax);
}
body.home-page main .ai-review-cta {
  box-shadow: 0 0 0 100vmax #252a27;
  clip-path: inset(0 -100vmax);
}
body.home-page main .article-heading {
  box-shadow: 0 0 0 100vmax #dbe7d9;
  clip-path: inset(0 -100vmax);
}

/* 360〜389pxでは30px・28pxを保ち、長い見出しは自然に改行する。 */
@media (min-width:360px) and (max-width:389px){
  .app-process-phrase{display:inline;white-space:normal}
}

/* サービスの相談導線：PCは右側、スマートフォンは本文の下に配置。 */
@media (min-width:651px){
  body.home-page main.ai-renew .ai-review-cta{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:30px;align-items:center}
  body.home-page main.ai-renew .ai-review-cta > :not(:last-child){grid-column:1}
  body.home-page main.ai-renew .ai-review-cta > p:last-child{grid-column:2;grid-row:1 / span 4;align-self:center;margin:0!important}
}
@media (max-width:650px){
  body.home-page main.ai-renew .ai-review-cta > p:last-child{margin:24px 0 0!important}
}
/* 相談・お問い合わせなど同じ形のボタンはホバー色を揃える。 */
body.home-page main :is(.new-contact a,.closing a,.contact-inline a,.review a,.ai-review-cta a.ai-review-btn):hover{background-color:#be202c;border-color:#be202c;color:#fff}
body.home-page main :is(.new-contact a,.closing a,.contact-inline a,.review a,.ai-review-cta a.ai-review-btn):hover span{color:inherit}

body.home-page main.system-page:not(.web-new):not(.ai-renew) > .closing a:hover{background-color:#be202c;border-color:#be202c;color:#fff}

/* スマートフォンでも相談文は文の区切りで改行する。 */
@media(max-width:650px){body.home-page main.web-new > .new-contact p br{display:block}}
