@charset "utf-8";
/*
  style.css への補正（2026-10-15／2026-10-16 ヘッダー固定・AIビジュアル・見出し装飾・下層h2サイズを追加）
  style.css に統合する場合は、この内容を末尾に追記してこのファイルの読み込みを削除してください。
*/

/* ---------- TOP：header／footer を main の外に出した構造用 ----------
  - ヘッダーは .proposal（ヒーローのキャンバス背景）の外に出たため、
    絶対配置でヒーロー上部に重ね、従来と同じ見た目を保つ。
  - .hero の min-height は「100svh − ヘッダー高」で設計されているため、
    .proposal にヘッダー分の上余白を足して全体の高さを従来どおり 100svh にする。 */
:where(.page-top) .kitec-page > .site-header {
  position: fixed; /* スクロールしてもページ上部に固定（2026-10-16） */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

:where(.page-top) .proposal {
  padding-top: 88px; /* .site-header の min-height と同じ */
}

@media screen and (max-width: 1022px) {
  :where(.page-top) .proposal {
    padding-top: calc(1.8rem + 44px); /* ヘッダー上下余白0.9rem×2 ＋ メニューボタン44px */
  }
}

/* ---------- 共通ヘッダー：スクロール時もページ上部に固定（2026-10-16） ----------
  - TOP：上記のとおり fixed でヒーローに重ねる（ヒーロー上部の余白は既存の padding-top で確保済み）。
  - TOP以外（システム開発事業・今後の下層ページ）：通常の配置のまま sticky で上部に固定（本文の位置は変わらない）。
  - スクロールすると site.js が .is-scrolled を付け、半透明の白背景＋ぼかしを表示する。
    背景は ::before に持たせ、モバイルメニュー（.site-nav）のぼかし表示に影響しないようにしている。
  - ページ内リンク（#ai など）で見出しがヘッダーに隠れないよう scroll-padding-top を設定。 */
html {
  scroll-padding-top: 96px;
}

:where(body:not(.page-top)) .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(23, 60, 76, 0.08);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

/* ---------- システム開発事業：ソリューション画像 ----------
  img に width／height 属性（レイアウトシフト防止）を付けたため、
  属性の高さが効かないよう height を auto に戻し、style.css の縦横比表示を保つ。 */
:where(.page-system) .solution-visual img {
  height: auto;
}


/* ---------- AIビジュアル：AIソリューションのファーストビューと同じ図版に統一（2026-10-16） ----------
  TOP「AIソリューション」とシステム開発事業「SOLUTION 01」の図版を、
  AIソリューションページ（ai-solution.css の .ai-hero__diagram）と同じ明るい背景に変更。
  角丸・余白は style.css の各指定のまま。 */
:where(.page-top) .kitec-ai__visual,
:where(.page-system) .solution-visual--ai {
  background: radial-gradient(ellipse at 48% 42%, rgb(255 255 255 / 98%) 0%, rgb(255 255 255 / 80%) 35%, transparent 74%), radial-gradient(ellipse at 100% 0%, rgb(116 217 200 / 42%), transparent 65%), radial-gradient(ellipse at 0% 100%, rgb(72 166 225 / 32%), transparent 64%), linear-gradient(135deg, rgb(237 248 255 / 90%), rgb(246 253 251 / 88%));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 85%), 0 20px 60px rgb(7 100 165 / 7%);
}

/* ---------- システム開発事業：「4つのソリューション」見出しの平行四辺形（2026-10-16） ----------
  AIソリューションページの見出し（.ai-section-title::before）と同じ装飾。 */
:where(.page-system) .solutions-section .section-heading {
  position: relative;
  padding-left: 0.6em;
}

:where(.page-system) .solutions-section .section-heading::before {
  content: "";
  position: absolute;
  left: 0.06em;
  top: 0.475em;
  width: 0.22em;
  height: 0.5em;
  background: #0764a5;
  transform: skewX(-20deg);
}

/* ---------- 下層ページ：h2 の文字サイズ（2026-10-16） ----------
  画面幅を狭めていくと、h2 がファーストビューの h1 と同じか大きく見えていたため、
  h2 の最大を 3.25rem にし、どの幅でも h1 より小さくなるよう縮小率を調整。
  対象：システム開発事業・AIソリューション（body.page-system）の見出しと「まずはご相談ください」。
  AIソリューションの見出し（.ai-section-title）は ai-solution.css で同じ値を指定。 */
:where(.page-system) .section-heading,
:where(.page-system) .kitec-contact h2 {
  font-size: clamp(1.75rem, 3.2vw, 3.25rem);
}

@media screen and (max-width: 767px) {
  :where(.page-system) .section-heading {
    font-size: clamp(1.5rem, 6.4vw, 1.75rem);
  }

  /* 「4つのソリューション」は1行表示のため、style.css の計算式のまま上限のみ 1.75rem に変更 */
  :where(.page-system) #solutions-heading {
    font-size: clamp(1.125rem, 6.8vw, 1.75rem);
  }

  /* 1行表示（nowrap）の計算式は style.css のまま、上限のみ 1.75rem に変更 */
  :where(.page-system) .kitec-contact h2 {
    font-size: clamp(1.25rem, calc((100vw - 2.5rem) / 11.44), 1.75rem);
  }
}

/* ---------- 共通ヘッダー：ハンバーガーメニューの切替幅を 1022px 以下に拡張 ----------
  style.css では 767px 以下でハンバーガーに切り替わるため、768〜1022px（タブレット縦など）で
  PC用メニューが入りきらず「お問い合わせ」がはみ出していた。
  767px 以下の指定と同じ内容を 768〜1022px にも適用する。
  ※ site.js のメニュー自動クローズの判定も (min-width: 1023px) に合わせて変更済み。
  style.css に統合する場合は、該当の (max-width: 767px)／(min-width: 768px) を
  (max-width: 1022px)／(min-width: 1023px) に置き換え、この節を削除してください。 */
@media screen and (min-width: 768px) and (max-width: 1022px) {
  /* PC用メニューのホバー時の丸印を無効化 */
  :where(.page-top, .page-system) .site-nav a:not(.nav-recruit):not(.nav-contact)::after,
  :where(.page-top, .page-system) .nav-solutions-toggle .nav-solutions-label::after { content: none; }

  /* TOP */
  :where(.page-top) .site-header { min-height: 70px; padding: 0.9rem 1.25rem; gap: 1rem; }
  :where(.page-top) .brand img { width: 120px; }
  :where(.page-top) .menu-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(7, 100, 165, 0); border-radius: 50%; background: #fff; color: #222222; }
  :where(.page-top) .menu-toggle span { display: block; width: 22px; height: 2px; background: #0764a5; transition: transform 0.2s, opacity 0.2s; }
  :where(.page-top) .site-header.is-menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  :where(.page-top) .site-header.is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  :where(.page-top) .site-header.is-menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  :where(.page-top) .site-nav { display: none; position: absolute; top: calc(100% + 0.35rem); right: 1.25rem; left: 1.25rem; width: auto; flex-direction: column; align-items: stretch; gap: 0.2rem; padding: 0.8rem; border: 1px solid #fff; border-radius: 1rem; background: rgba(255, 255, 255, 0.03); box-shadow: rgba(23, 60, 76, 0.19) 0 18px 45px; backdrop-filter: blur(14px); max-height: calc(100svh - 110px); overflow-y: auto; }
  :where(.page-top) .site-header.is-menu-open .site-nav { display: flex; }
  :where(.page-top) .site-nav a { display: block; padding: 0.65rem 0.85rem; border-bottom: 1px solid #fff; }
  :where(.page-top) .site-nav .nav-recruit, :where(.page-top) .site-nav .nav-contact { padding: 0.65rem 0.85rem; text-align: center; }
  :where(.page-top) .site-nav .nav-recruit { margin-top: 0.45rem; }

  /* システム開発事業 */
  :where(.page-system) .site-header { min-height: 70px; padding: 0.9rem 1.25rem; gap: 0.5rem; }
  :where(.page-system) .brand { gap: 0.6rem; min-width: 0; flex: 1 1 auto; }
  :where(.page-system) .brand img { width: 120px; flex-shrink: 0; }
  :where(.page-system) .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #fff; border-radius: 50%; background: rgba(255, 255, 255, 0.61); padding: 11px; }
  :where(.page-system) .menu-toggle span { display: block; width: 20px; height: 2px; background: #0764a5; transition: transform 0.25s, opacity 0.25s; }
  :where(.page-system) .is-menu-open .menu-toggle span:first-child { transform: translateY(7px) rotate(45deg); }
  :where(.page-system) .is-menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  :where(.page-system) .is-menu-open .menu-toggle span:last-child { transform: translateY(-7px) rotate(-45deg); }
  :where(.page-system) .site-nav { display: none; position: absolute; top: calc(100% + 0.35rem); left: 1.25rem; right: 1.25rem; flex-direction: column; align-items: stretch; gap: 0.2rem; padding: 0.8rem; border: 1px solid #fff; border-radius: 1rem; background: rgba(255, 255, 255, 0.94); box-shadow: rgba(23, 60, 76, 0.19) 0 18px 45px; backdrop-filter: blur(14px); max-height: calc(100svh - 110px); overflow-y: auto; }
  :where(.page-system) .is-menu-open .site-nav { display: flex; }
  :where(.page-system) .site-nav a { padding: 0.65rem 0.85rem; }
  :where(.page-system) .site-nav .nav-recruit, :where(.page-system) .site-nav .nav-contact { text-align: center; padding: 0.65rem 0.85rem; }

  /* 両ページ共通：システム開発事業のサブメニュー */
  :where(.page-top, .page-system) .nav-solutions { flex-wrap: wrap; width: 100%; gap: 0; }
  :where(.page-top, .page-system) .nav-solutions > a { flex: 1 1 auto; }
  :where(.page-top, .page-system) .nav-solutions-list { position: static; flex: 0 0 100%; width: 100%; max-width: none; transform: none; margin: 0.25rem 0 0.5rem; border-radius: 0.75rem; box-shadow: none; }
  :where(.page-top, .page-system) .site-nav .nav-solutions-list a { padding: 0.65rem 0.75rem; }
  :where(.page-top, .page-system) .site-nav .nav-solutions-toggle { flex: 1 1 100%; width: 100%; justify-content: space-between; padding: 0.65rem 0.85rem; border-radius: 0; border-bottom: 1px solid #fff; }
  :where(.page-top, .page-system) .site-nav .nav-solutions-toggle .nav-current-marker { position: static; display: inline-block; margin-left: 0.5rem; vertical-align: middle; transform: none; }
}

/* ---------- 製品・パッケージ一覧の文字サイズ（2026-10-20） ----------
  PC（768px以上）は 0.875rem に統一。並びは style.css のまま（2列）。
  対象：TOP「AIソリューション」「システム開発事業」欄、システム開発事業ページの各ソリューション。
  スマホ（767px以下）は style.css の指定のまま。 */
@media screen and (min-width: 768px) {
  :where(.page-top) .kitec-ai__products li,
  :where(.page-top) .kitec-system__products li,
  :where(.page-system) .product-list li { font-size: .875rem; }
}

/* ---------- システム開発事業：「テラス・ガーデンルームWeb見積システム」を2列分の幅で表示（2026-10-20） ----------
  製品名が長く2列では折り返すため、この項目だけ1行全体を使う（他の製品は2列のまま）。
  3D見積・積算ソリューション（#estimate）の3番目の製品。並び順を変えた場合は nth-child の番号も変更してください。 */
@media screen and (min-width: 768px) {
  :where(.page-system) #estimate .product-list li:nth-child(3) { grid-column: 1 / -1; }
}

/* ---------- ヘッダー：会社情報のプルダウン（2026-10-20） ----------
  システム開発事業のプルダウン（.nav-solutions）と同じ部品を使用。
  会社情報は「トップ」項目がないため、1項目目の下の区切り線を外す。 */
:where(.page-top, .page-system) .nav-solutions--company .nav-solutions-list li:first-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

@media screen and (min-width: 1023px) {
  :where(.page-top, .page-system) .nav-solutions--company .nav-solutions-list { width: 12rem; }
}

/* スマホのみの改行（例：会社概要の住所 <br class="only-sp">）2026-11-05 */
.only-sp { display: none; }
@media screen and (max-width: 767px) {
  .only-sp { display: inline; }
}

/* 導入事例カード：お客様インタビュー → 企業名（見出し）→ 導入システム名 → 概要文（導入事例一覧と同じ並び）2026-11-10 */
:where(.page-top) .kitec-cases__system { margin: .5rem 0 0; padding-bottom: 1.25rem; border-bottom: 1px solid #d6e8f1; color: #222222; font-size: 1.125rem; font-weight: 700; line-height: 1.7; letter-spacing: .025em; }
@media screen and (max-width: 767px) { :where(.page-top) .kitec-cases__system { font-size: 1rem; padding-bottom: 1rem; } }

/* ---------- 見出しの印：平行四辺形 → 縦バー（角を少し丸める／上：ミント→下：ブルーのグラデーション）2026-11-10 ----------
  各ページCSSの平行四辺形（skewX）をここでまとめて上書きする。元に戻す場合はこのブロックを削除。
  ページCSSは adjust.css の後に読み込まれるため、先頭に html を付けて優先度を上げている。
  導入事例詳細の章見出しは、PCでは中央の下線のため、スマホ表示のときだけ置き換える。
  幅は文字サイズの0.1倍（小さい見出しでも4pxより細くしない）、高さは文字と同じ1em。 */
html :where(.page-system) .solutions-section .section-heading::before,
html .page-ai .ai-section-title::before,
html .page-company .company-section-title::before,
html .page-philosophy .company-section-title::before,
html .page-philosophy .company-script.company-english-heading::before,
html .page-privacy .privacy-content h2::before,
html .page-product .prd-heading::before {
  left: 0; top: .25em; width: max(.1em, 4px); height: 1em;
  border-radius: .05em;
  background: linear-gradient(180deg, #74d9c8 0 20%, #0764a5 64% 100%);
  transform: none;
}
@media screen and (max-width: 767px) {
  html .page-case .case-chapter h2::before {
    left: 0; top: .25em; bottom: auto; width: max(.1em, 4px); height: 1em;
    border-radius: .05em;
    background: linear-gradient(180deg, #74d9c8 0 20%, #0764a5 64% 100%);
    transform: none;
  }
}
/* 2026-11-17 取引先ロゴ：余白の少ないロゴを少し小さくして、他のロゴと見た目の大きさをそろえる */
.kitec-partners__item img[src$="fukuvi.png"] { transform: scale(.8); }
.kitec-partners__item img[src$="asahikasei.png"] { transform: scale(.86); }
/* 2026-11-19 トップページ：数字のフォントを他ページと同じ Roboto に（強みの番号・トピックスの日付） */
.page-top .kitec-feature__number { font-family: Roboto, "Noto Sans JP", sans-serif; font-weight: 700; letter-spacing: 0; }
.page-top .kitec-topics__date { font-family: Roboto, "Noto Sans JP", sans-serif; font-weight: 500; }
/* 2026-11-20 トップ AIソリューション欄：PerSketchを製品ページへリンク */
.kitec-ai__products .kitec-ai__product-link { color: inherit; text-decoration: none; transition: color .2s; }
.kitec-ai__products .kitec-ai__product-link:hover { color: #0764a5; }

/* トップ：AIソリューション／分野別ソリューションの上に「システム開発事業」を小さく表示（チェックリストNo.43） */
.page-top .kitec-feature__eyebrow { margin: 0 0 .25rem; color: #0764a5; font-size: 1rem; font-weight: 700; line-height: 1.6; letter-spacing: .08em; }
@media (max-width: 767px) { .page-top .kitec-feature__eyebrow { font-size: .875rem; } .page-top .kitec-system h2 { font-size: min(2.25rem, 8.4vw); } } /* 「分野別ソリューション」を1行に収める */

/* ============================================================
   見出しサイズ・太さの調整（チェックリストNo.50・No.64・No.67）2026-11-20
   トップ：セクション見出し 最大60px→40px、太さ800→700
   ============================================================ */

/* セクション見出し（KITecの4つの強み／AIソリューション／分野別ソリューション／まずはご相談ください など）
   PC：最大60px → 最大40px、太さ800 → 700 */
html .page-top .kitec-feature h2,
html .page-top .kitec-feature h2 .kitec-feature__gradient { font-size: clamp(1.75rem, calc(1rem + 1.8vw), 2.5rem); font-weight: 700; }

/* 見出し上の「KITecが提供する」：30px → 22px */
html .page-top .kitec-feature__label { font-size: 1.375rem; font-weight: 700; }

/* 小見出し（強みの各項目、分野別ソリューションの各ソリューション名）：26〜29px → 22〜24px、太さ700 */
html .page-top .kitec-feature h3 { font-size: 1.375rem; font-weight: 700; }
html .page-top .kitec-system__copy h3 { font-size: 1.5rem; font-weight: 700; }

@media (max-width: 767px) {
  /* スマートフォン：セクション見出し 29〜36px → 26px */
  html .page-top .kitec-feature h2,
  html .page-top .kitec-feature h2 .kitec-feature__gradient { font-size: 1.625rem; }
  html .page-top .kitec-feature__label { font-size: 1.125rem; }
  html .page-top .kitec-feature h3,
  html .page-top .kitec-system__copy h3 { font-size: 1.25rem; }
}

/* ============================================================
   下層ページ（トップ以外）
   ・ページの大見出し（h1）：PC 最大60px → 最大48px／スマートフォン 24〜36px → 28px
   ・セクション見出し（h2）：PC 最大46px → 最大38px／スマートフォン 26〜32px → 24px
     （大見出しよりセクション見出しが大きくなる「逆転」を解消）
   ・太さ 800 → 700
   ※英字の筆記体見出し（Message／Value）は装飾のため対象外
   ※ :not(#_) は、各ページ専用のCSSより優先させるための指定（意味は「トップ以外」のみ）
   ============================================================ */
html body:not(.page-top):not(#_) h1 { font-size: clamp(1.75rem, calc(1rem + 2.2vw), 3rem); font-weight: 700; }
html body:not(.page-top):not(#_) :is(.prd-heading, .section-heading, .company-section-title, .case-article-title, .kitec-feature h2, .case-chapter h2, .privacy-intro h2, .privacy-policy h2) { font-size: clamp(1.5rem, calc(1rem + 1.5vw), 2.375rem); font-weight: 700; }
/* 企業理念のミッション（大きな一文）：64px → 最大44px */
html body:not(.page-top):not(#_) .company-wide > h2:not(.company-script) { font-size: clamp(1.75rem, calc(1rem + 2vw), 2.75rem); font-weight: 700; }
/* 製品ページ概要のキャッチ：36px → 最大32px */
html body:not(.page-top):not(#_) .prd-catch { font-size: clamp(1.375rem, calc(1rem + 1vw), 2rem); font-weight: 700; }
/* その他の見出しも太さを 800 → 700 に */
html body:not(.page-top):not(#_) :is(h2, .company-value h3, .kitec-cases__content h3, .solution-copy h3) { font-weight: 700; }
html body:not(.page-top):not(#_) .solution-copy h3 { font-size: clamp(1.375rem, calc(1rem + .8vw), 1.75rem); }

@media (max-width: 767px) {
  html body:not(.page-top):not(#_) h1 { font-size: 1.75rem; }
  html body:not(.page-top):not(#_) :is(.prd-heading, .section-heading, .company-section-title, .case-article-title, .kitec-feature h2, .case-chapter h2, .privacy-intro h2, .privacy-policy h2) { font-size: 1.5rem; }
  html body:not(.page-top):not(#_) .company-wide > h2:not(.company-script) { font-size: 1.625rem; }
  html body:not(.page-top):not(#_) .prd-catch { font-size: 1.375rem; }
  /* 製品名の「Web見積システム」を途中で改行しない（例：ウッドデッキ／Web見積システム） */
  html body:not(.page-top):not(#_) .prd-hero--title h1 > span { display: inline-block; }
}

/* ============================================================
   番号（01・02…）と本文の行間（チェックリストNo.64・No.67）
   ============================================================ */
/* 本文の行間：2.0 → 1.85（少し詰める） */
html body:not(#_) p:not([class*="-no"]):not([class*="number"]):not([class*="label"]) { line-height: 1.85; }
@media (max-width: 767px) {
  /* スマートフォンの番号：32〜40px → 28px */
  html body:not(#_) :is(.kitec-feature__number, .sol-strength-no, .prd-step-no > span) { font-size: 1.75rem; }
}

/* お問い合わせ：スマートフォンで見出し・注意書き・同意欄が単語の途中で改行されないようにする（チェックリストNo.63） */
.page-contact #contact-form-heading,
.page-contact .contact-sales-note,
.page-contact .contact-checkbox span,
.page-contact .contact-consent-text { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 767px) { .page-contact .contact-form-actions > .contact-sales-note { text-align: left; } }

/* トップ「分野別ソリューション」：ソリューション名（画像・余白を含むカード全体）→ソリューショントップ、製品名→各製品ページ（チェックリスト2 No.65） */
.page-top .kitec-system__row { position: relative; }
.page-top .kitec-system__title-link { color: inherit; text-decoration: none; outline: none; }
.page-top .kitec-system__title-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.page-top .kitec-system__row:has(.kitec-system__title-link:focus-visible) { outline: 2px solid #0764a5; outline-offset: 8px; border-radius: 1.5rem; }
.page-top .kitec-system__row:has(.kitec-system__title-link:focus-visible) .kitec-system__card-arrow { transform: translateX(.5rem); }
.page-top .kitec-system__product-link { position: relative; z-index: 2; color: inherit; text-decoration: none; transition: color .2s; }
.page-top .kitec-system__product-link:hover, .page-top .kitec-system__product-link:focus-visible { color: #0764a5; text-decoration: underline; text-underline-offset: .2em; }
@media (hover: hover) { .page-top .kitec-system__row:hover .kitec-system__title-link { color: #0764a5; } }

/* スマートフォンでボタン・相談セクションの見出しが見切れないようにする（チェックリスト2 No.66）
   word-break: auto-phrase … 対応ブラウザ（Chrome・Android）では文節の区切りで改行。未対応ブラウザは通常の改行 */
@media (max-width: 767px) {
  html body:not(#_) .kitec-contact h2 .nw { display: inline-block; }
  html body:not(#_) .kitec-contact h2 { white-space: normal; font-size: 1.375rem; word-break: auto-phrase; overflow-wrap: anywhere; }
  html body:not(#_) :is(.prd-button, .kitec-contact__button, .kitec-system__button, .kitec-ai__button) { white-space: normal; word-break: auto-phrase; }
  html body:not(#_) .sol-intro .prd-actions .prd-button { white-space: normal; }
}

/* 企業理念ミッション：文の区切りで改行し、文節の途中で切れないようにする（チェックリスト2 No.69） */
.page-philosophy .company-mission h2,
.page-philosophy .company-mission-body { word-break: auto-phrase; }

/* 取引先ロゴ：スマートフォンで大きく（96×67px → 128×80px）（チェックリスト2 No.68） */
@media (max-width: 767px) {
  html body:not(#_) .kitec-partners__item { flex-basis: 8rem; width: 8rem; height: 5rem; padding: .5rem .4rem; }
  html body:not(#_) .kitec-partners__item img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
}

/* トップのスマートフォン用メニューを、下層ページと同じデザインにそろえる（チェックリスト2 No.71）
   白いパネル・区切り線なし・会社名表示・ボタンの形を下層ページに合わせる */
@media (max-width: 767px) {
  html .page-top .site-header { gap: .5rem; }
  html .page-top .brand { gap: .6rem; min-width: 0; flex: 1 1 auto; }
  html .page-top .brand img { width: 120px; flex-shrink: 0; }
  html .page-top .brand-name { display: block; min-width: 0; font-size: .625rem; white-space: normal; line-height: 1.6; overflow-wrap: anywhere; }
  html .page-top .menu-toggle { border: 1px solid #ffffff; background: #ffffff9c; }
  html .page-top .site-nav { background: #fffffff0; }
  html .page-top .site-nav a { border-bottom: 0; }
  html .page-top .site-nav .nav-solutions-toggle { border-bottom: 0; }
  html .page-top .site-nav :is(.nav-recruit, .nav-contact) { margin-top: 0; background: #ffffff; color: #222222; border: 0; box-shadow: none; }
}

/* トップのファーストビュー（スマートフォン）：キャッチを大きく、説明文・ボタンを控えめにして、文字のジャンプ率を上げる（チェックリスト2 No.70）
   キャッチ 38px → 40〜44px、説明文 18px → 15px、ボタン 16px → 15px */
@media (max-width: 767px) {
  html .page-top .hero .headline-line:last-child { font-size: clamp(2.5rem, 11vw, 3.75rem); line-height: 1.3; }
  html .page-top .hero .description { font-size: .9375rem; line-height: 1.8; margin: .9rem 0 1.25rem; }
  html .page-top .hero .hero-actions a { min-height: 2.9rem; padding: .6rem 1rem; font-size: .9375rem; }
  html .page-top .hero .hero-actions a span:first-child { word-break: auto-phrase; }
}

/* ============================================================
   トップ：ファーストビューのオープニングアニメーション（約4秒）
   index.html の <head> 内のスクリプトが <html> に .hero-intro を付けたときだけ再生
   （動きを減らす設定の端末では付けないため、最初から通常表示）
   0.0s 背景グリッド・カード → 0.35s 1行目「不動産・住宅・外構・建設の課題を、」→ 0.9s キャッチ「AIとシステムで解決する。」が左からフェードイン
   → 1.85s 説明文・ボタンが少し右からフェードインしながら左へ短く動く（約1秒。見た目では約0.6秒で止まる）→ 2.5s 止まると同時に、キャッチの上を光が一度流れる（順番に1つずつ）
   ============================================================ */
html.hero-intro .page-top .kitec-hero-grid { animation: hi-fade 1.2s ease-out var(--hi-offset, 0s) both; }
html.hero-intro .page-top .hero-copy { animation: hi-card .9s cubic-bezier(.22, 1, .36, 1) calc(var(--hi-content, 0s) + .1s) both; }
html.hero-intro .page-top .hero-copy h1 .headline-line:first-child { animation: hi-rise .6s cubic-bezier(.22, 1, .36, 1) calc(var(--hi-content, 0s) + .35s) both; }
html.hero-intro .page-top .hero-copy h1 .headline-line:last-child {
  color: transparent;
  background: linear-gradient(100deg, #0764a5 42%, #74d9c8 50%, #0764a5 58%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  animation: hi-wipe .9s ease-out calc(var(--hi-content, 0s) + .9s) backwards, hi-gloss 1.1s ease-in-out calc(var(--hi-content, 0s) + 2.5s) both;
}
/* ↑ 最後に一度だけ、キャッチの上を光（ミントグリーン）が流れる。説明文・ボタンが見た目上止まるタイミング（2.5s）で開始。外す場合は、この指定の color・background・background-clip と hi-gloss を削除 */
@keyframes hi-gloss { from { background-position: 100% 0; } to { background-position: 0 0; } }
/* 説明文・ボタン：少し右（約24px）から、フェードインしながら左へ短く動いて止まる（約1秒で完了） */
html.hero-intro .page-top .hero .description { animation: hi-from-right 1s cubic-bezier(.22, 1, .36, 1) calc(var(--hi-content, 0s) + 1.85s) both; }
html.hero-intro .page-top .hero .hero-actions a { animation: hi-from-right .95s cubic-bezier(.22, 1, .36, 1) calc(var(--hi-content, 0s) + 1.9s) both; }
html.hero-intro .page-top .hero .hero-actions a:nth-child(2) { animation-delay: calc(var(--hi-content, 0s) + 1.92s); }
html.hero-intro .page-top .hero .hero-actions a:nth-child(3) { animation-delay: calc(var(--hi-content, 0s) + 1.95s); }

@keyframes hi-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hi-card { from { opacity: 0; transform: translateY(2.5rem) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hi-from-right { from { opacity: 0; transform: translateX(1.5rem); } to { opacity: 1; transform: none; } }
@keyframes hi-rise { from { opacity: 0; transform: translateY(1.25rem); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hi-wipe {
  from { -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%); -webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%); -webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html.hero-intro .page-top :is(.kitec-hero-grid, .hero-copy, .hero-copy h1 .headline-line, .hero .description, .hero .hero-actions a) { animation: none; }
}

/* ============================================================
   トップ：ロゴのオープニング（同じタブで最初に開いたときだけ。<html> に .has-splash が付いたとき）
   0.1s〜 K・I・T・e・c が1文字ずつ左からフェードイン（ロゴ下の波は表示しない）
   → 1.3s ロゴがフェードアウトするのと同時に、白い画面が消えて背景のグリッド・光がフェードイン
   → 背景のグリッド・光だけの場面（約1秒）→ 3s〜 ファーストビューのアニメーション（文字のカード以降）
   ============================================================ */
.intro-splash { display: none; }
html.has-splash { --hi-offset: 1.3s; --hi-content: 3s; } /* 背景は1.3sから、文字のカードは3sから（背景のグリッドと光だけの場面を約1秒見せる） */
html.has-splash .intro-splash {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 1000; overflow: hidden; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, #e6f8f4 0%, transparent 55%), radial-gradient(circle at 75% 75%, #e3eefb 0%, transparent 55%), #ffffff;
  animation: is-out .9s ease-in-out 1.3s both;
}
html.has-splash .intro-logo { width: min(52vw, 17rem); height: auto; overflow: visible; animation: is-logo-out .5s ease-in 1.3s both; }
html.has-splash .intro-letter { opacity: 0; transform-box: fill-box; animation: is-letter .5s cubic-bezier(.22, 1, .36, 1) both; }
html.has-splash .intro-letter--1 { animation-delay: .1s; }
html.has-splash .intro-letter--2 { animation-delay: .22s; }
html.has-splash .intro-letter--3 { animation-delay: .34s; }
html.has-splash .intro-letter--4 { animation-delay: .46s; }
html.has-splash .intro-letter--5 { animation-delay: .58s; }
@keyframes is-letter { from { opacity: 0; transform: translateX(-1.1rem); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes is-logo-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes is-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { html.has-splash .intro-splash { display: none; } html.has-splash { --hi-offset: 0s; --hi-content: 0s; } }

/* ============================================================
   製品ページ「主な機能・ご利用の流れ」：スマートフォンだけ横スワイプのスライド（チェックリスト2 No.64）
   ・文章・画像はHTMLにすべて書いたまま（product.js が .step-slider を付け、下に操作部分を追加）
   ・1枚の幅は画面の約86%。次のステップが右端に少し見えて、続きがあることが分かる
   ・PCは従来どおりの一覧表示
   ============================================================ */
.step-slider-nav { display: none; }
@media (max-width: 767px) {
  html body:not(#_) #features .step-slider {
    display: flex; flex-direction: row; grid-template-columns: none; gap: .75rem;
    margin: 0 -1.25rem; padding: .25rem 1.25rem 1rem;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  html body:not(#_) #features .step-slider::-webkit-scrollbar { display: none; }
  html body:not(#_) #features .step-slider > * {
    flex: 0 0 86%; min-width: 0; margin: 0; scroll-snap-align: start; scroll-snap-stop: always;
    display: flex; flex-direction: column; gap: 1rem;
    padding: 1.25rem; border: 1px solid #d6e8f1; border-radius: 1rem; background: #ffffff; box-shadow: 0 8px 24px rgb(7 100 165 / 6%);
  }
  html body:not(#_) #features .step-slider > .prd-feature-row > * { order: 0; }
  html body:not(#_) #features .step-slider > * { align-items: stretch; }
  /* PerSketchは「番号の横に見出し」のレイアウトを残す */
  html body.page-persketch:not(#_) #features .step-slider > * { display: grid; align-items: center; gap: 1rem .875rem; }
  html body:not(#_) #features .step-slider-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .25rem; }
  html body:not(#_) #features .step-slider-arrow {
    display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; padding: 0; border: 1px solid #c7dfe9; border-radius: 50%;
    background: #ffffff; color: #0764a5; cursor: pointer;
  }
  html body:not(#_) #features .step-slider-arrow svg { width: 1.1rem; height: 1.1rem; }
  html body:not(#_) #features .step-slider-arrow:disabled { opacity: .35; cursor: default; }
  html body:not(#_) #features .step-slider-dots { display: flex; gap: .5rem; }
  html body:not(#_) #features .step-slider-dot { width: .6rem; height: .6rem; padding: 0; border: 0; border-radius: 50%; background: #c7dfe9; cursor: pointer; }
  html body:not(#_) #features .step-slider-dot[aria-current="true"] { width: 1.5rem; border-radius: .3rem; background: #0764a5; }
}

/* 製品ページなど下層の「〜についてご相談ください」見出し：最大36pxで止める（チェックリスト2 追加）
   38pxまで大きくなると、1440px以上の画面で「ベランダ手すりWeb見積システムについてご相談ください」の最後の「い」だけが改行されるため */
@media (min-width: 768px) {
  html body:not(.page-top):not(#_) .kitec-contact h2 { font-size: clamp(1.5rem, calc(1rem + 1.5vw), 2.25rem); word-break: auto-phrase; }
}

/* ============================================================
   トップ：ファーストビュー B案（URLの末尾に ?fv=2 を付けたときだけ。<html> に .fv-v2）
   ロゴ・背景はA案と同じ。その後（文字のカードが出るタイミングから）
   0.0s カードの境界線だけを、右下→左回り→右上へ一筆書きで描く（1.8s）
   → 1.7s 描き終わったら、カードの白い背景がフェードイン → 2.2s 1行目・説明文・ボタンがフェードイン → 3.0s 最後に「AIとシステムで解決する。」がフェードイン
   ============================================================ */
html.hero-intro.fv-v2 .page-top .hero-copy { position: relative; animation: fv2-card-bg 1s ease-out calc(var(--hi-content, 0s) + 1.7s) both; }
html.hero-intro.fv-v2 .page-top .hero-copy h1 .headline-line:first-child,
html.hero-intro.fv-v2 .page-top .hero .description,
html.hero-intro.fv-v2 .page-top .hero .hero-actions a { animation: fv2-fade .8s ease-out calc(var(--hi-content, 0s) + 2.2s) both; }
html.hero-intro.fv-v2 .page-top .hero-copy h1 .headline-line:last-child {
  color: #0764a5; background: none; -webkit-background-clip: border-box; background-clip: border-box;
  animation: fv2-catch 1s ease-out calc(var(--hi-content, 0s) + 3s) both;
}
html.hero-intro.fv-v2 .page-top .fv2-border { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; z-index: 2;
  filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 8px rgb(116 217 200 / 90%)) drop-shadow(0 0 16px rgb(7 100 165 / 35%)); }
html.hero-intro.fv-v2 .page-top .fv2-border path { fill: none; stroke: #ffffff; vector-effect: non-scaling-stroke; stroke-linecap: round; }
/* カードの境界線だけを、右下→下辺→左辺→上辺→右上へ一筆書きで描く。描き終わったらカード本来の白い縁に入れ替わる */
html.hero-intro.fv-v2 .page-top .fv2-border__head { display: none; }
html.hero-intro.fv-v2 .page-top .fv2-border__trail {
  stroke-width: 2.5;
  stroke-dasharray: var(--fv2-len) var(--fv2-len);
  stroke-dashoffset: var(--fv2-len-px);
  animation: fv2-draw 1.8s cubic-bezier(.45, .05, .4, 1) var(--hi-content, 0s) both, fv2-line-out .8s ease-out calc(var(--hi-content, 0s) + 2s) forwards;
}
@keyframes fv2-card-bg { from { background-color: rgb(255 255 255 / 0%); border-color: rgb(255 255 255 / 0%); box-shadow: none; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); } }
@keyframes fv2-draw { from { stroke-dashoffset: var(--fv2-len-px); } to { stroke-dashoffset: 0px; } }
@keyframes fv2-line-out { to { opacity: 0; } }
@keyframes fv2-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fv2-catch { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { html.hero-intro.fv-v2 .page-top .fv2-border { display: none; } }

/* 会社概要・プライバシーポリシーのTEL番号（チェックリスト2 No.60）
   format-detection で自動リンクを止め、TELだけを tel: リンクに。PCではリンクにせず通常の文字として表示 */
html body:not(#_) .tel-link { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 768px) { html body:not(#_) .tel-link { pointer-events: none; text-decoration: none; color: inherit; cursor: text; } }

/* お問い合わせ：送信完了画面の見出しと本文を左寄せ（アイコン・ボタンは中央のまま） */
.page-contact .contact-complete h3,
.page-contact .contact-complete > p { text-align: left; word-break: auto-phrase; }

/* スマートフォン：製品ページ・ソリューションのファーストビュー画像を幅90%にして中央寄せ（チェックリスト2 No.64） */
@media (max-width: 767px) {
  html body:not(#_) :is(.prd-overview-visual, .tri-hero-visual, .ip-hero-visual, .sys-hero-visual, .sol-fv-visual, .sol-ai-visual) { width: 90%; max-width: 90%; margin-left: auto; margin-right: auto; }
}

/* スマートフォンのメニュー：「システム開発事業」を折りたたまずに最初から開いて表示し、
   単独の「AIソリューション」は出さない（中の一覧に含まれるため、2回出ないように） */
@media (max-width: 767px) {
  html body:not(#_) .site-nav > a:first-child { display: none; } /* 先頭の「AIソリューション」 */
  html body:not(#_) .site-nav .nav-solutions:not(.nav-solutions--company) > .nav-solutions-toggle { display: none; }
  html body:not(#_) .site-nav .nav-solutions:not(.nav-solutions--company) > .nav-solutions-list,
  html body:not(#_) .site-nav .nav-solutions:not(.nav-solutions--company) > .nav-solutions-list[hidden] { display: block !important; margin-top: 0; } /* お問い合わせページの [hidden] { display: none !important } より優先 */
}
