/* 千吉良 Studio → 静的化: 比較・表示の確定状態（アニメーション完了相当） */
.TitleAnnouncer,
.DynamicAnnouncer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* トップ導入スプラッシュ: 再生中（html.m0-intro-playing）以外は非表示 */
html:not(.m0-intro-playing) .sd[data-s-0d3f16bc-18d7-4a60-8aa1-33ae23d23f85],
html:not(.m0-intro-playing) .sd[data-s-3b5f9090-3d04-4e5c-a973-298805a14ead],
html:not(.m0-intro-playing) .sd[data-s-ec885ad8-fcd0-4eb5-a6b0-4cca61898b4a],
html:not(.m0-intro-playing) .sd[data-s-1eff61f9-cb9f-484f-9107-37f0896d9d78],
html:not(.m0-intro-playing) .sd[data-s-c9d9c399-b11f-46d8-85a6-19ae03510239] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* イントロ再生中以外は遷移・キーフレームを静止化（プライバシー・メニュー含む） */
html:not(.m0-intro-playing) .sd,
html:not(.m0-intro-playing) .sd * {
  transition-duration: 0ms !important;
  transition-delay: 0ms !important;
  animation-duration: 0ms !important;
  animation-delay: 0ms !important;
}

/* Studio 計算失敗による invalid top の補正 */
#site_top_btn {
  top: auto !important;
  bottom: 78px !important;
}

body {
  transition: none !important;
}

/* モーダル表示時: 背面ページが透けるよう dialog を前面固定 */
.design-canvas__modal,
.studio-canvas[role="dialog"] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
}
/* 取り込み時にまだ差し込まれていなかった画像（Studio が表示時に :before の背景として足すもの）。
   www の最終状態から取得し、画像は自前の複製を参照する（2026-11-17） */
.sd[data-r-0_10_2_0_1_30954c4c-57f9-4b5e-89ba-ea71f0619915]:before { background-image: url("/assets/ext/3ff324c269-s-145x95_ac877e32-b682-44e5-8b43-1452c8259ceb.svg") }
.sd[data-r-1_11_1_0_7_ecb14d68-0d5d-4f8f-af64-7addd2b13942]:before { background-image: url("/assets/ext/04d91a5b3d-s-73x173_49a6406b-1e31-4014-b6cb-85faeb7159a3.svg") }
.sd[data-r-12_1_0_7_e27cde55-1caf-4d59-94d5-f4bc5a659549]:before { background-image: url("/assets/ext/9e932b271f-s-300x45_351cf750-3dab-468c-bd48-2ade4a8ebbb2.svg") }
.sd[data-r-0_1_0_8_1265e66c-5586-4736-a985-8930474ee38a]:before { background-image: url("/assets/ext/9e932b271f-s-300x45_351cf750-3dab-468c-bd48-2ade4a8ebbb2.svg") }
.sd[data-r-8_2cfabb87-040d-40fe-b02f-1e1d131fcc9a]:before { background-image: url("/assets/ext/984fe5d5e0-s-790x637_v-fs_webp_4e8ecef2-21e7-4778-9372-f0ae.webp") }
.sd[data-r-0_0_1_0_10_1422d87a-176f-4eff-ac7a-eb7da93dcf95]:before { background-image: url("/assets/ext/9b87c796e6-s-832x478_v-fs_webp_a9c43cc4-ccec-4d13-bd41-ecc7.webp") }
.sd[data-r-1_0_1_0_10_c2737faa-6882-4741-82ab-4b7afc722814]:before { background-image: url("/assets/ext/bd50111437-s-832x478_v-fs_webp_071f43fe-6a79-4f21-888d-fe2d.webp") }
.sd[data-r-2_0_1_0_10_04a4217a-25f9-4ef8-bdd3-04dbdc11652d]:before { background-image: url("/assets/ext/926cbde7d5-s-832x478_v-fs_webp_1ffbbf90-1c5c-4921-acfd-0c58.webp") }
.sd[data-r-3_0_1_0_10_ebee54eb-9f4d-4be8-a84a-e31a1a4b279d]:before { background-image: url("/assets/ext/4835d53b39-s-832x478_v-fs_webp_4f69cd20-8ea3-4efe-a9ea-f50c.webp") }
.sd[data-r-4_0_1_0_10_7b9b884b-64d7-46ee-a838-179f6bf29aaf]:before { background-image: url("/assets/ext/9573424121-s-1280x218_e16d359e-d9e7-4f00-aeaf-d92d609f7a7e.svg") }
.sd[data-r-0_10_5211e4b4-cc16-48a5-b01a-494bb46f9f05]:before { background-image: url("/assets/ext/7479086b78-s-1280x606_559c3990-af48-4628-bf89-a9a21e585002.svg") }
.sd[data-r-0_0_11_7e8a2026-0e2b-4747-96f4-c7c34151bef3]:before { background-image: url("/assets/ext/4557beba0d-s-55x45_58da32b9-e01a-4e8e-873e-ab2842445d2d.svg") }

/* ===== 見た目の整え 第2弾（2026-11-17）: 素材・色・フォントは変えず、文字組みと読みやすさだけ整える ===== */

/* 日本語の折り返し: 最後の行が1〜2文字だけになるのを避ける（対応ブラウザのみ。未対応は従来どおり） */
.sd p,
.sd h1,
.sd h2,
.sd h3 {
  text-wrap: pretty;
}

/* 見出し・短い中央寄せの文は、文節の途中で折り返さない（「種）」「す！」「円」だけの行を防ぐ） */
.sd[data-s-section-inner-1f3db798-8bd6-4432-b01a-1a290c0f2911] h3,
.sd[data-s-c43ed16d-f649-4f79-8962-2e7a6dabd3e8],
.sd[data-s-71ce5c2a-d12b-481a-bc2e-8c39f438e9ce],
.sd[data-s-ab12539f-54f7-405b-9c9c-d120746e0548] p,
.sd[data-s-87a8dbd2-c9dd-4c81-964b-2e0b236612bc],
.sd[data-s-1d858a22-8d01-44a5-86c6-04a4250d92ac] {
  word-break: auto-phrase !important;
}

/* 事業内容カード: 写真の上の説明文が読みにくいので、見出しの帯と同じ半透明の白を文字の下に敷き（inline の焼き付けのため chigira-web.config.json の studioFinalState で指定）、白いにじみも少し強める */
.sd[data-s-bdc0bdfd-1e8a-4cb0-ad2f-eba9139872f0],
.sd[data-s-b48f15a5-f93c-4cd5-9684-732ea780078e],
.sd[data-s-7e1b59f7-352b-405e-b04e-5137f974cdcb],
.sd[data-s-6aac5577-1f10-463e-bd4b-b3de5bec3cda],
.sd[data-s-dba0921a-4572-4d6c-9536-c1e32187c79a],
.sd[data-s-102a9efe-fe22-4fdf-8a37-8507080fc7fc],
.sd[data-s-f729bfa8-7a34-4eb8-a72c-68b68d66a48c],
.sd[data-s-2e9d25de-3fcd-4d09-a264-f00ddab27d8b],
.sd[data-s-154ade12-f9c5-4c4e-bc2a-9367fa06d9a1] {
  text-shadow:
    0 0 2px #fff,
    0 0 4px #fff,
    0 0 8px rgba(255, 255, 255, 0.95),
    0 0 14px rgba(255, 255, 255, 0.9) !important;
  word-break: auto-phrase !important;
}

/* お問合せ: 同意のチェックボックスを指で押しやすい大きさに（13px → 18px） */
form[name="Contact"] input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 0 8px 0 0 !important;
  vertical-align: middle;
  cursor: pointer;
}
