@charset "UTF-8";
/* ==========================================================================
   共通（全ページ）（css/base.css）
   フォントウェイト、PCのコンテンツ幅、記事コンテンツ幅、h2の共通指定、テキストグラデーションなど。
   読み込み順：functions.php の配列の順（共通 → ヘッダー・フッター → トップ → 会社概要 → その他の固定ページ → フォーム → 準備中）。
   ※ 元の style.css から、順番を保って分けたもの（2026-10-24）。
   ========================================================================== */

/* ===========================
   PICAZOカスタムスタイル
=========================== */

/* カラー・グラデーション・シャドウ・フォント・line-height/letter-spacingは
   theme.json（settings/styles）側で一元管理。
   このファイルではtheme.jsonのpreset変数(var(--wp--preset--*))を参照するのみ。 */

/* ===========================
   フォントウェイト
=========================== */

.fw-regular { font-weight: 400; }
.fw-medium  { font-weight: 500; }
.fw-bold    { font-weight: 700; }

/* SWELLのh2帯スタイルを無効化 */
.post_content h2{
  background: none;
  padding: 0;
  color: inherit;
}
.post_content h2::before {
  display: none;
}

/* エディタ画面のh2帯を非表示 */
.mce-content-body h2:where(:not([class^="swell-block-"])):not(.faq_q):not(.p-postList__title),
.editor-styles-wrapper h2:where(:not([class^="swell-block-"])):not(.faq_q):not(.p-postList__title) {
  background: none;
  padding: 0;
  color: inherit;
}

.editor-styles-wrapper h2::before {
  display: none;
}

/* テキストグラデーション（theme.jsonのgradient-main/gradient-blueとは異なる専用配色のため固定値） */
.text-gradient {
  background: linear-gradient(170deg, #154590 5%, #138FC2 30%, #4CBDC8 73%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* h2テキストグラデーション */
.post_content h2.text-gradient {
  background: linear-gradient(170deg, #154590 5%, #138fc2 30%, #4cbdc8 73%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0;
  color: transparent;
}

/* 本文の塗り・線のボタン（is-style-btn_line／btn_shiny：「仮見積もりはこちら」「お問い合わせはこちら」）：
   エディタで文字24px・幅14em（約336〜353px）に固定しているものがあり、SPでは
   ・Android（標準フォントの字幅がやや広い）で文字が2行になる
   ・画面より広いボタンが左端から右にはみ出し、狭い画面で右寄りに見える
   ため、599px以下では文字を画面幅の5%まで（16pxのボタンはそのまま）に抑え、
   1行に固定し、幅は画面幅を超えないようにする。
   ※文字サイズ・幅はインラインの変数（--the-fz／--the-width）なので、その値を上限として使う。 */
@media (max-width: 599px) {
  .post_content .swell-block-button[class*="is-style-btn_"] {
    font-size: min(var(--the-fz), 5vw);
  }
  .post_content .swell-block-button[class*="is-style-btn_"] > .swell-block-button__link {
    white-space: nowrap;
  }
  .post_content .swell-block-button[class*="is-style-btn_"].-size-custom > .swell-block-button__link {
    width: min(var(--the-width), 100%);
  }
}

/* 縦並び（781px以下）のとき、見出し「ここまできれいにしてもらっていいんですか？」を写真より上に出す。
   見出しは右のカラムの中にあるため、右のカラムを display:contents で外し、
   見出し → 左のカラム（写真・代表名） → 本文 の順に並べ替える */
@media (max-width: 781px) {
  .wp-block-columns:has(> .wp-block-column img.wp-image-942) {
    flex-direction: column;
  }
  .wp-block-columns:has(> .wp-block-column img.wp-image-942) > .wp-block-column:last-child {
    display: contents;
  }
  .wp-block-columns:has(> .wp-block-column img.wp-image-942) > .wp-block-column:last-child > .wp-block-heading {
    order: -1;
  }
  /* 縦並びでは写真が画面幅いっぱい（SPで約250px、タブレットでは500px超）になり大きすぎるため、
     横並びのタブレット幅（約200px）にそろえて中央に置く */
  .wp-block-columns:has(> .wp-block-column img.wp-image-942) figure:has(> img.wp-image-942) {
    max-width: 200px;
    margin-inline: auto;
  }
}

/* ===========================
   記事コンテンツ幅を全幅ブロックと揃える
   SWELL標準では記事本文（.l-article）の幅は --article_size(900px)、
   全幅ブロック（swell-block-fullWide内の.l-container）は
   --container_size(1200px)と、別の変数で管理されており幅が異なる。
   「事業内容」等の通常セクションも全幅ブロックの中のカラムと
   同じ1200px幅に揃うよう、記事幅の変数を1200pxに統一する。
=========================== */
:root {
  --article_size: 1200px;
}
@media (max-width: 959px) {
  /* 青い見出し（SP）は、固定にせず、ほかのH2と同じ大きさの設定（48pxのプリセット＝幅375pxで24px、幅600pxで30pxと幅に合わせて大きくなる）に任せる。
     固定24pxにすると、幅600〜959pxでほかのH2（30〜41px）よりかなり小さく見えたため（2026-10-20 YUKAさん） */
  h2.has-48-font-size + .swell-block-columns p.has-24-font-size {
    font-size: 20px !important;
  }
}

/* サービスのカード（「宇治市・京都の清掃サービス」の6枚）：説明文が長いカード（新築・改修美装は3行、ほかは2行）があると、
   各カードが上下中央揃えになっているため、背の低いカードの写真・タイトルが下がってズレていた。
   カードの上端をそろえ（stretch）、ボタンは各カードの下端にそろえる。 */
.swell-block-columns:has(> .swell-block-columns__inner > .swell-block-column > h3 + figure) > .swell-block-columns__inner > .swell-block-column {
  align-self: stretch !important;
  display: flex;
  flex-direction: column;
}
.swell-block-columns:has(> .swell-block-columns__inner > .swell-block-column > h3 + figure) > .swell-block-columns__inner > .swell-block-column > .swell-block-button {
  margin-top: auto;
}