@charset "UTF-8";
/* ==========================================================================
   阪神山手エステート ／ サイト全体共通CSS
   assets/css/base.css
   --------------------------------------------------------------------------
   【役割分担】重複を避けるため、次のとおり切り分けています。

     style.css   … サイトのデザイン一式（.hys-top スコープ）
                   ＋ :root のデザイントークン定義  ← トークンはここが唯一の正
                   ＋ Lightning標準ヘッダー/フッターの非表示
                   ＋ .hys-top.hys-inject のリセット
                   ＋ .pw / word-break などの日本語折り返し制御

     base.css    … style.css が担当「しない」範囲。つまり
                   (1) .hys-top の外側 ＝ Lightningが描画するページ本文の書体統一
                   (2) パンくずリストの見た目
                   (3) 文書ページ・記事本文の共通スタイル（見出し h2/h3/h4 など）
                       ★ 独自テンプレート（.hys-content）と
                         Lightningの投稿本文（.entry-body 等）の両方に効かせるため、
                         .hys-top スコープを付けずにここへ置いています。
                   (4) Lightning のページヘッダー（.page-header）を
                       独自テンプレートの .page-hero と同じ緑のグラデーションに揃える
                   トークンの再定義や、style.css と同じ指定は書かない。

     scheme.css  … /scheme/ ページ固有のスタイル

   【スタイルシートは assets/css/ のCSSのみ】
     SCSS（assets/_scss/）は廃止しました。各CSSを直接編集してください。

   【読み込み順】hys-fonts → base.css → style.css → 各ページCSS
   ※ CSS変数は宣言順に関係なく解決されるため、base.css から
     style.css の :root トークン（var(--green) 等）をそのまま参照できます。
   ========================================================================== */

/* ==========================================================================
   1. Lightning が描画するページの書体統一
   --------------------------------------------------------------------------
   投稿・アーカイブ・検索・404・通常の固定ページは Lightning のテンプレートが
   描画するため、.hys-top スコープの style.css が当たりません。
   ここで書体だけを揃え、サイト全体でフォントがばらつかないようにします。
   （.hys-top 内は style.css の方が詳細度が高いため影響しません）
   ========================================================================== */
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.95;
  color: var(--body);
  background: var(--paper);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

/* Bootstrap / Lightning が個別に書体指定してくる箇所を継承に戻す */
input, textarea, select, button,
.entry-body, .entry-content, .widget,
.page-header, .pagination, .btn {
  font-family: var(--sans);
}

h1, h2, h3, h4, h5, h6,
.entry-title, .page-header-title, .widget-title {
  font-family: var(--mincho);
  font-weight: 700;
  color: var(--green);
  line-height: 1.65;
  letter-spacing: 0.04em;
}

.entry-meta, .published, time, .page-numbers {
  font-family: var(--num);
  letter-spacing: 0.06em;
}

a { color: var(--brass); }
a:hover { color: var(--green); }

/* ==========================================================================
   2. デバイス別の表示切替ユーティリティ（.is-pc / .is-sp）
   --------------------------------------------------------------------------
   　<br class="is-pc">      … PCでのみ改行（スマホでは改行しない）
   　<br class="is-sp">      … スマホでのみ改行（PCでは改行しない）
   　<span class="is-pc">〜  … PCでのみ表示（改行以外の要素にも使えます）
   　<div  class="is-sp">〜  … スマホでのみ表示

   切替は 820px。レイアウトが1カラムに変わる幅と揃えています。
   display:revert なので、br は inline、div は block と、
   要素本来の表示形式に戻ります（要素を選びません）。
   ※ .hys-top の内外どちらでも効くよう、スコープを付けずここに置いています。
   ========================================================================== */
.is-sp { display: none !important; }

@media (max-width: 820px) {
  .is-pc { display: none !important; }
  .is-sp { display: revert !important; }
}

/* ==========================================================================
   3. パンくずリスト
   --------------------------------------------------------------------------
   出力は functions.php の hys_the_breadcrumb()。
   囲みは <div class="hys-breadcrumb-wrap">。あえて .hys-top を付けていません。
   （付けると style.css の .hys-top{min-height:100vh} や
     .hys-top.hys-inject{background:transparent} を受けてしまうため）
   ========================================================================== */
.hys-breadcrumb-wrap {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
/* .hys-top の外（Lightning描画ページ）でも幅が揃うように、内側の .wrap を定義 */
.hys-breadcrumb-wrap .wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 46px;
}

/* style.css の .hys-top *{padding:0} に負けないよう、
   パディングだけは .hys-breadcrumb-wrap を前置して指定します */
.breadcrumb,
.hys-breadcrumb-wrap .breadcrumb {
  margin: 0;
  padding: 13px 0;
  background: transparent;
  border: 0;
  font-size: 12.5px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--muted);
}
/* 独自ラッパーの中だけ .container を打ち消す。
   外側の .wrap がすでに幅と余白を持っているため、二重にならないようにする指定です。
   ※ Lightning が描画するページでは .container 自体がコンテンツ幅を作っているため、
     ここをスコープなしで書くとパンくずがブラウザ幅いっぱいに広がります。 */
.hys-breadcrumb-wrap .breadcrumb .container {
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
}
.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
/* 区切り記号は1つだけ。まず全部消してから足す */
.breadcrumb li::before,
.breadcrumb li::after {
  content: none;
}
.breadcrumb li + li::before {
  content: "\203A"; /* › ／ "/" にする場合は "\002F" */
  margin: 0 10px;
  color: var(--brass-soft);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); text-decoration: underline; }

/* ==========================================================================
   4. 文書ページ・記事本文の共通スタイル
   --------------------------------------------------------------------------
   ここで定義した見出し（h2 / h3 / h4）と本文要素は、次の両方に効きます。

     (a) 独自テンプレートの本文  … <div class="hys-content"> で囲んだ範囲
                                    例：/terms/（page-hys-terms.php）
     (b) Lightning が描画する本文 … 投稿・固定ページ・アーカイブの
                                    .entry-body / .entry-content / .post_content

   つまり「/terms/ の見出し」と「/column/ の記事の見出し」が同じ見た目になります。
   ブロックエディタで書いた投稿にもそのまま反映されます。

   【なぜ style.css ではなく base.css なのか】
     style.css は全体が .hys-top スコープのため、Lightning が描画する投稿には
     一切当たりません。共通化するにはスコープなしで書く必要があるので、
     サイト全体を担当する base.css がこのスタイルの置き場所です。
     （旧 style.css 内の .hys-top .hys-content 一式は、このセクションへ移しました）

   【詳細度についての注意】
     style.css には .hys-top *{margin:0;padding:0} というリセットがあります。
     詳細度は (0,1,0)。対してここの指定は .hys-content h2 = (0,1,1) なので、
     読み込み順に関係なくこちらが勝ちます。
     セレクタを単独の h2 などに簡略化するとリセットに負けるため、
     必ず「親クラス＋要素」の形を保ってください。
   ========================================================================== */

/* --- 本文ブロックそのもの --- */
.hys-content,
.entry-body,
.entry-content,
.post_content {
  font-size: 16px;
  line-height: 2;
  color: var(--body);
  letter-spacing: 0.02em;
}
.hys-content > *:first-child,
.entry-body > *:first-child,
.entry-content > *:first-child,
.post_content > *:first-child {
  margin-top: 0;
}

/* --- h2 ／ 章の見出し（下線＋左端に真鍮のアクセント） --- */
.hys-content h2,
.entry-body h2,
.entry-content h2,
.post_content h2 {
  position: relative;
  font-family: var(--mincho);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.6;
  color: var(--green);
  letter-spacing: 0.04em;
  margin: 56px 0 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.hys-content h2::after,
.entry-body h2::after,
.entry-content h2::after,
.post_content h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  background: var(--brass);
}

/* --- h3 ／ 節の見出し（左に真鍮の細罫） --- */
.hys-content h3,
.entry-body h3,
.entry-content h3,
.post_content h3 {
  font-family: var(--mincho);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 40px 0 14px;
  padding: 0 0 0 15px;
  border-left: 2px solid var(--brass-soft);
}

/* --- h4 ／ 小見出し（ゴシック） --- */
.hys-content h4,
.entry-body h4,
.entry-content h4,
.post_content h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  letter-spacing: 0.03em;
  margin: 30px 0 12px;
}

/* --- h5 / h6 ／ ごく小さな見出し --- */
.hys-content h5, .hys-content h6,
.entry-body h5, .entry-body h6,
.entry-content h5, .entry-content h6,
.post_content h5, .post_content h6 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 26px 0 10px;
}

/* --- 段落・強調・リンク --- */
.hys-content p,
.entry-body p,
.entry-content p,
.post_content p {
  margin: 0 0 20px;
}
.hys-content a,
.entry-body a,
.entry-content a,
.post_content a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hys-content a:hover,
.entry-body a:hover,
.entry-content a:hover,
.post_content a:hover {
  color: var(--green);
}
.hys-content strong, .hys-content b,
.entry-body strong, .entry-body b,
.entry-content strong, .entry-content b,
.post_content strong, .post_content b {
  font-weight: 700;
  color: var(--ink);
}

/* --- リスト --- */
.hys-content ul, .hys-content ol,
.entry-body ul, .entry-body ol,
.entry-content ul, .entry-content ol,
.post_content ul, .post_content ol {
  margin: 0 0 22px;
  padding-left: 1.5em;
}
.hys-content li, .entry-body li,
.entry-content li, .post_content li {
  margin: 0 0 9px;
  line-height: 1.9;
}
.hys-content li::marker, .entry-body li::marker,
.entry-content li::marker, .post_content li::marker {
  color: var(--brass);
}

/* --- 引用 --- */
.hys-content blockquote,
.entry-body blockquote,
.entry-content blockquote,
.post_content blockquote {
  margin: 0 0 24px;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brass-soft);
  color: var(--muted);
}

/* --- 表 --- */
.hys-content table,
.entry-body table,
.entry-content table,
.post_content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 15px;
}
.hys-content th, .hys-content td,
.entry-body th, .entry-body td,
.entry-content th, .entry-content td,
.post_content th, .post_content td {
  border: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  line-height: 1.85;
}
.hys-content th,
.entry-body th,
.entry-content th,
.post_content th {
  background: var(--paper-2);
  font-weight: 700;
  color: var(--ink);
}

/* --- 定義リスト（項目＋説明） --- */
.hys-content dl, .entry-body dl,
.entry-content dl, .post_content dl {
  margin: 0 0 24px;
}
.hys-content dt, .entry-body dt,
.entry-content dt, .post_content dt {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
.hys-content dd, .entry-body dd,
.entry-content dd, .post_content dd {
  margin: 0 0 16px;
  padding-left: 1em;
  color: var(--muted);
}

/* --- 画像・区切り線 --- */
.hys-content img, .entry-body img,
.entry-content img, .post_content img {
  max-width: 100%;
  height: auto;
}
.hys-content hr, .entry-body hr,
.entry-content hr, .post_content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 44px 0;
}

/* ==========================================================================
   4-2. 文書ページ・記事で使える共通の補助クラス
   --------------------------------------------------------------------------
   投稿の中でも同じ class を書けば同じ見た目になります。
     .doc-lead  … 導入のリード文（少し大きめ）
     .doc-box   … 囲みの注記ブロック
     .doc-note  … 小さな注釈（※〜）
     .doc-meta  … 制定日・改定日などの署名行
   ========================================================================== */
.hys-content .doc-lead,
.entry-body .doc-lead,
.entry-content .doc-lead,
.post_content .doc-lead {
  font-size: 17px;
  line-height: 2.1;
  color: var(--muted);
  margin: 0 0 28px;
}
.hys-content .doc-box,
.entry-body .doc-box,
.entry-content .doc-box,
.post_content .doc-box {
  background: var(--paper-2);
  border-left: 3px solid var(--brass-soft);
  padding: 22px 26px;
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.95;
}
.hys-content .doc-box > *:last-child,
.entry-body .doc-box > *:last-child,
.entry-content .doc-box > *:last-child,
.post_content .doc-box > *:last-child {
  margin-bottom: 0;
}
.hys-content .doc-note,
.entry-body .doc-note,
.entry-content .doc-note,
.post_content .doc-note {
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 18px;
}
.hys-content .doc-meta,
.entry-body .doc-meta,
.entry-content .doc-meta,
.post_content .doc-meta {
  margin: 48px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--muted);
  text-align: right;
}

/* ==========================================================================
   4-3. レスポンシブ（切替幅はサイト全体と同じ 820px）
   ========================================================================== */
@media (max-width: 820px) {
  .hys-content, .entry-body, .entry-content, .post_content {
    font-size: 15.5px;
    line-height: 1.95;
  }
  .hys-content h2, .entry-body h2,
  .entry-content h2, .post_content h2 {
    font-size: 21px;
    margin: 44px 0 16px;
  }
  .hys-content h3, .entry-body h3,
  .entry-content h3, .post_content h3 {
    font-size: 17.5px;
    margin: 32px 0 12px;
  }
  .hys-content h4, .entry-body h4,
  .entry-content h4, .post_content h4 {
    font-size: 15.5px;
    margin: 26px 0 10px;
  }
  .hys-content .doc-lead, .entry-body .doc-lead,
  .entry-content .doc-lead, .post_content .doc-lead {
    font-size: 15.5px;
    line-height: 2;
  }
  .hys-content .doc-box, .entry-body .doc-box,
  .entry-content .doc-box, .post_content .doc-box {
    padding: 18px 20px;
    font-size: 14.5px;
  }

  /* 表はスマホでは横スクロールさせる（セルを潰さない） */
  .hys-content table, .entry-body table,
  .entry-content table, .post_content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 14px;
  }
  .hys-content th, .hys-content td,
  .entry-body th, .entry-body td,
  .entry-content th, .entry-content td,
  .post_content th, .post_content td {
    padding: 10px 13px;
  }
}

/* ==========================================================================
   5. Lightning のページヘッダー（.page-header）
   --------------------------------------------------------------------------
   独自テンプレート（/scheme/ /terms/ など）の .page-hero と
   同じ「緑のグラデーション＋白文字」に揃えます。

   【対象】Lightning が描画するページすべて
     ・固定ページ（/privacy/ など）
     ・投稿記事（/column/ の各記事）
     ・アーカイブ（コラム一覧・カテゴリー一覧）・検索結果・404

   【Lightning が出力しているHTML】
     <div class="page-header">
       <div class="page-header-inner container">
         <h1 class="page-header-title">ページタイトル</h1>
       </div>
     </div>

   【style.css の .hys-top .page-hero との関係】
     見た目の定義は「同じ値」を二か所に書いています。
     .page-hero 側は .hys-top スコープ必須、こちら側はスコープ不可のため、
     セレクタを共有できないためです。
     ★ 色や角度を変更するときは、必ず両方を同じ値に更新してください。
       - style.css  … .hys-top .page-hero / ::before / ::after
       - base.css   … このセクション（.page-header / ::before / ::after）

   【レイヤー構成】.page-hero と同一
     ::before … 右上から差し込む光（207deg のグラデーション）
     ::after  … 和紙のような微細グレイン（SVGノイズ・不透明度6%）
     中身（.page-header-inner）は z-index:2 で最前面
   ========================================================================== */
.page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--green-deep);
  color: var(--paper);
  padding: 92px 0 78px;
  margin: 0 0 0;
  border: 0;
}

/* 光レイヤー（.hys-top .page-hero::before と同じ値） */
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(207deg,
    #55603C 0%,
    #3A472C 22%,
    #222C1F 48%,
    #0E1410 78%,
    #080C09 100%);
}

/* グレインレイヤー（.hys-top .page-hero::after と同じ値） */
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .06;
}

/* 中身をテクスチャより前面に。
   幅は Lightning の .container のままにして、下の本文と左端を揃えます。 */
.page-header .page-header-inner {
  position: relative;
  z-index: 2;
}

/* タイトル。base.css 上部の h1〜h6 ルール（色 var(--green)）を白で上書きします。
   .page-header を前置しているので詳細度で必ず勝ちます。 */
.page-header .page-header-title {
  font-family: var(--mincho);
  font-weight: 700;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.6;
  letter-spacing: .05em;
  color: #fff;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}
/* タイトルがリンクになっている場合（アーカイブ等）も白のまま */
.page-header .page-header-title a,
.page-header .page-header-title a:hover {
  color: #fff;
  text-decoration: none;
}

/* サブタイトル・説明文を出す設定にしている場合の保険 */
.page-header .page-header-desc,
.page-header .archive-header-description,
.page-header p {
  position: relative;
  z-index: 2;
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 2.1;
  color: rgba(242, 238, 228, .86);
  max-width: 700px;
  margin: 22px 0 0;
}

/* --- 緑の帯の直下に来るパンくず ---
   独自テンプレート側は .hys-breadcrumb-wrap が紙色の帯になります。
   Lightning 側はラッパーが無いので、下端にヘアラインだけ足して見え方を揃えます。 */
.page-header + .breadcrumb,
.page-header + * > .breadcrumb {
  border-bottom: 1px solid var(--line);
}

/* --- レスポンシブ（.page-hero と同じ 820px / 560px の区切り） --- */
@media (max-width: 820px) {
  .page-header {
    padding: 66px 0 56px;
  }
}
@media (max-width: 560px) {
  .page-header {
    padding: 54px 0 46px;
  }
  .page-header .page-header-title {
    font-size: 23px;
    line-height: 1.65;
  }
}
