@charset "UTF-8";
/*!
Theme Name: Kozo
Theme URI: https://pika-zo.com/
Description: 墓石クリーニング光蔵のオリジナルテーマ。白の紙・墨紫・藤紫の三色と明朝の見出しで構成した和モダンのクラシックテーマ。
Author: 光蔵
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kozo
Tags: two-columns, custom-menu, translation-ready
*/

/* ==========================================================================
   デザインの決めごと（変更する場合はここを読んでから）

   1. 影・グラデーション・角丸は使わない。
      面の分離は「1px の罫線」と「余白」だけで表現する。
   2. 色は三色。白(paper) / 墨紫(sumi) / 藤紫(accent)。
      藤紫は線・強調・ボタンにのみ使う。地は白のままにして、
      紫は「差し色」を超えて面を塗らない。
   3. 見出しは明朝、本文はゴシック。和文は字間 0.04em・行間 1.9 を基準にする。
   ========================================================================== */

/* ---------- トークン ---------- */
:root {
  --paper:      #ffffff; /* 白。ページの地色 */
  --paper-2:    #f5f1fa; /* 一段沈めた地色。.bg セクション・表の見出しセル */
  --white:      #ffffff; /* 濃色の面に置く文字・罫線の白。地色と同値 */
  --sumi:       #564080; /* 見出し・CTA の面。墨ではなく濃い紫 */
  --ink:        #564080; /* 本文 */
  --muted:      #6f6880; /* 補助テキスト */
  --rule:       #e4ddf0; /* 罫線 */
  --rule-strong:#b3a6cc;
  --accent:     #6b3fa0; /* 藤紫 */
  --accent-deep:#4e2b7a;

  --mincho: "Zen Old Mincho", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;

  --wrap: 1080px;      /* 通常のコンテンツ幅 */
  --wrap-narrow: 760px;/* 本文だけの記事幅 */
  --gutter: 24px;

  --header-h: 88px;
}

@media (max-width: 900px) {
  :root { --header-h: 64px; --gutter: 20px; }
}

/* ---------- ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  font-feature-settings: "palt" 1; /* 和文の詰め。明朝見出しが間延びするのを防ぐ */
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--accent); text-underline-offset: 0.25em; }
a:hover { color: var(--accent-deep); }

h1, h2, h3, h4, h5 {
  font-family: var(--mincho);
  color: var(--sumi);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin: 0;
}

/* キーボード操作時だけフォーカスリングを出す */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 100;
  background: var(--sumi); color: var(--white);
  padding: 10px 20px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- レイアウト ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.site-main { display: block; }

/* ---------- 欧文ラベル ----------
   「01」「SERVICE」のような小さな欧文。和文と混ぜず、必ず単独で置く。 */
.label {
  font-family: var(--mincho);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-feature-settings: "tnum" 1;
}

/* ---------- ボタン ----------
   角丸なし・影なし。罫線の矩形。ホバーで墨に反転する。 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 16px 32px;
  border: 1px solid var(--sumi);
  color: var(--sumi);
  background: transparent;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.btn::after {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  transition: width 0.25s;
}
.btn:hover { background: var(--sumi); color: var(--paper); }
.btn:hover::after { width: 30px; }

.btn--accent { border-color: var(--accent); color: var(--accent); }
.btn--accent:hover { background: var(--accent); color: var(--white); }

.btn--light { border-color: var(--white); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--sumi); }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; text-decoration: none; color: var(--sumi); }
.site-brand img { max-height: calc(var(--header-h) - 26px); width: auto; }
.site-brand__name { font-family: var(--mincho); font-size: 18px; letter-spacing: 0.12em; white-space: nowrap; }

@media (max-width: 1100px) { .site-brand__name { display: none; } }

/* グローバルナビ */
.global-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.global-nav a {
  position: relative;
  display: block;
  padding: 6px 0;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-decoration: none;
}
/* 下線はホバーで中央から伸びる。色が動かないぶん静かに見える。 */
.global-nav a::after {
  content: "";
  position: absolute; left: 50%; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.3s;
}
.global-nav a:hover::after,
.global-nav .current-menu-item > a::after { width: 100%; }
.global-nav .current-menu-item > a { color: var(--sumi); }

.header-actions { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.header-tel { text-align: right; line-height: 1.3; text-decoration: none; color: var(--sumi); }
.header-tel__num { display: block; font-family: var(--mincho); font-size: 21px; letter-spacing: 0.02em; white-space: nowrap; }
.header-tel__hours { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }

@media (max-width: 1200px) { .header-tel { display: none; } }

/* ハンバーガー。線 3 本だけ。 */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--rule);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1px;
  margin: 5px auto;
  background: var(--sumi);
  transition: transform 0.3s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 32px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .global-nav.is-open { transform: none; opacity: 1; visibility: visible; }

  .global-nav ul { display: block; }
  .global-nav li { border-bottom: 1px solid var(--rule); }
  .global-nav a { padding: 18px 4px; font-size: 16px; }
  .global-nav a::after { display: none; }

  .global-nav .nav-tel {
    display: block;
    margin-top: 28px;
    text-align: center;
    font-family: var(--mincho);
    font-size: 26px;
    color: var(--sumi);
    text-decoration: none;
  }
}
@media (min-width: 901px) { .global-nav .nav-tel { display: none; } }

/* ==========================================================================
   ヒーロー（トップページ）
   文字を写真に重ねない。左半分は生成りの余白、右半分に写真を落とす。
   重ねないので、スクリム（黒い覆い）も影も要らない。
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}

/* min-width: 0 がないと、グリッド項目の既定（min-width: auto）が
   中身の最小幅を下回れず、狭い画面で本文が枠からはみ出す。 */
.hero__body { display: flex; align-items: center; min-width: 0; padding: 96px 56px 96px var(--gutter); }
.hero__inner { min-width: 0; max-width: 480px; margin-left: auto; }

/* 見出しの左に縦罫を一本立てる。ここから和文が始まる、という合図。 */
.hero__lead { border-left: 1px solid var(--accent); padding-left: 28px; }

.hero__label { display: block; margin-bottom: 22px; }
.hero__title {
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.75;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.hero__text { font-size: 14px; line-height: 2.1; color: var(--muted); margin: 0 0 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; overflow: hidden; min-width: 0; min-height: 560px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 写真の隅に縦書きの一行。和文組みでしか出ない気配を足す。 */
.hero__vertical {
  position: absolute;
  top: 40px; right: 32px;
  writing-mode: vertical-rl;
  padding: 20px 10px;
  background: var(--paper);
  color: var(--sumi);
  font-family: var(--mincho);
  font-size: 14px;
  letter-spacing: 0.3em;
}

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero__body { order: 2; padding: 48px var(--gutter) 56px; }
  .hero__inner { max-width: none; margin-left: 0; }
  .hero__media { order: 1; min-height: 0; height: min(44vh, 400px); }
  .hero__vertical { top: auto; bottom: 0; right: 20px; font-size: 12px; }
  .hero__title { font-size: 26px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ==========================================================================
   セクション見出し（本文 HTML の h2 にも共通で当たる）
   ========================================================================== */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section--tint { background: var(--paper-2); }

@media (max-width: 900px) { .section { padding: 64px 0; } }

/* 見出しの上に短い縦罫を立てる。下線を引くより静かに間が取れる。 */
.section-title {
  text-align: center;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0.14em;
  padding-top: 44px;
  margin-bottom: 56px;
  position: relative;
}
.section-title::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 1px; height: 28px;
  background: var(--rule-strong);
}

/* ==========================================================================
   下層ページ / アーカイブの共通シェル
   ========================================================================== */
.page-head {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.page-head__label { display: block; margin-bottom: 18px; }
.page-head__title { font-size: clamp(26px, 3vw, 36px); letter-spacing: 0.14em; }

.breadcrumb {
  padding: 20px 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "／"; margin-right: 10px; color: var(--rule-strong); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.page-body { padding: 72px 0 104px; }

/* ---------- 記事カード（施工事例・ブログ一覧） ---------- */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; /* 罫線 1px ぶんの隙間。背景色が透けてグリッド線になる */
  background: var(--rule);
  border: 1px solid var(--rule);
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: 28px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.25s;
}
/* 地が白なので、ホバーは明るくする方向に振れない。薄紫に沈める。 */
.card:hover { background: var(--paper-2); color: var(--ink); }
.card__thumb { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 20px; background: var(--paper-2); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover .card__thumb img { transform: scale(1.03); }
.card__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card__date { font-family: var(--mincho); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.card__cat { font-size: 11px; letter-spacing: 0.08em; color: var(--accent); border: 1px solid var(--accent); padding: 1px 8px; }
.card__title { font-size: 17px; line-height: 1.7; letter-spacing: 0.06em; }

/* ---------- ページネーション ---------- */
.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 44px; height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--mincho);
  font-size: 14px;
  text-decoration: none;
}
.pagination .page-numbers:hover { border-color: var(--sumi); color: var(--sumi); }
.pagination .page-numbers.current { background: var(--sumi); border-color: var(--sumi); color: var(--paper); }

/* ---------- 単一記事 ---------- */
.entry-header { margin-bottom: 48px; }
.entry-header .entry-title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.6; margin-bottom: 20px; }
.entry-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }
.entry-meta time { font-family: var(--mincho); }
.entry-thumb { margin-bottom: 48px; }

.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--rule); }
.post-nav a { font-size: 14px; color: var(--ink); text-decoration: none; letter-spacing: 0.06em; }
.post-nav a:hover { color: var(--accent); }

/* ---------- 検索フォーム ---------- */
.search-form { display: flex; border: 1px solid var(--rule); background: var(--white); }
.search-form input[type="search"] { flex: 1; border: 0; padding: 14px 16px; background: transparent; font: inherit; font-size: 15px; }
.search-form input[type="search"]:focus { outline: none; }
.search-form button { border: 0; border-left: 1px solid var(--rule); background: transparent; padding: 0 22px; cursor: pointer; font: inherit; font-size: 13px; letter-spacing: 0.1em; color: var(--sumi); }
.search-form button:hover { background: var(--sumi); color: var(--paper); }

/* ---------- 404 ---------- */
.error-404 { padding: 120px 0; text-align: center; }
.error-404__code { font-family: var(--mincho); font-size: 72px; letter-spacing: 0.1em; color: var(--rule-strong); line-height: 1; margin-bottom: 24px; }

/* ==========================================================================
   固定の問い合わせ導線（フッター直前）
   ========================================================================== */
.cta {
  background: var(--sumi);
  color: var(--paper);
  padding: 80px 0;
  text-align: center;
}
.cta__label { color: var(--paper); opacity: 0.55; display: block; margin-bottom: 20px; }
.cta__title { color: var(--paper); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0.12em; margin-bottom: 40px; }
.cta__list {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 20px 48px;
  margin: 0; padding: 0; list-style: none;
}
.cta__tel { text-align: center; text-decoration: none; color: var(--paper); }
.cta__tel span { display: block; font-family: var(--mincho); font-size: clamp(30px, 3.4vw, 40px); letter-spacing: 0.04em; line-height: 1.2; }
.cta__tel small { font-size: 12px; opacity: 0.7; letter-spacing: 0.06em; }
.cta__line { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--paper); border: 1px solid rgba(255, 255, 255, 0.35); padding: 12px 20px; transition: border-color 0.25s; }
.cta__line:hover { border-color: var(--paper); color: var(--paper); }
.cta__line img { width: 44px; height: 44px; }
.cta__line span { font-size: 13px; line-height: 1.5; text-align: left; }

@media (max-width: 900px) {
  .cta { padding: 56px 0; }
  .cta__list { flex-direction: column; gap: 28px; }
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding: 72px 0 32px; }
.site-footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.site-footer__brand { max-width: 300px; }
.site-footer__brand img { max-height: 84px; width: auto; margin-bottom: 20px; }
.site-footer__desc { font-size: 13px; color: var(--muted); line-height: 1.9; margin: 0; }

.footer-nav ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 56px; }
.footer-nav li { margin-bottom: 14px; break-inside: avoid; }
/* トップページの「VK CSS Customize」に旧テーマ向けの
   `footer .menu-item { background: #fff }` が残っている。白い箱になるので打ち消す。 */
.site-footer .footer-nav li.menu-item { background: none; padding: 0; }
.footer-nav a { font-size: 14px; color: var(--ink); text-decoration: none; letter-spacing: 0.06em; }
.footer-nav a:hover { color: var(--accent); }

.site-footer__bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: var(--muted); letter-spacing: 0.08em;
}
.site-footer__bottom a { color: var(--muted); text-decoration: none; }
.site-footer__bottom a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .site-footer { padding: 56px 0 28px; }
  .footer-nav ul { columns: 1; }
}

/* ---------- ページトップ ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--sumi); color: var(--paper);
  border: 0; cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top::before { content: ""; width: 9px; height: 9px; border-left: 1px solid currentColor; border-top: 1px solid currentColor; transform: translateY(2px) rotate(45deg); }

/* ---------- reCAPTCHA ---------- */
/* Google のガイドラインどおり、バッジの代わりに .recaptcha_policy の文言を出している。
   visibility だけで隠すと固定配置の箱（256px）が残り、スマホで横スクロールが出るため
   display で完全に消す。 */
.grecaptcha-badge { display: none !important; }
.recaptcha_policy { margin: 24px auto 0; text-align: center; font-size: 11px; color: var(--muted); }
.recaptcha_policy a { color: var(--ink); }

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
