@charset "UTF-8";

/* ==========================================================================
   本文（the_content）のスタイル

   本文の HTML は旧サイトから引き継いだ生の HTML で、Bootstrap のグリッド
   （row / col-md-*）と独自クラス（.service_menu, .boxQA, .price_table …）に
   依存している。テーマ側でその語彙を受け止め、和モダンの見た目に置き換える。
   本文そのものは書き換えないので、WordPress 上でこれまで通り編集できる。
   ========================================================================== */

/* ---------- 本文の基本 ---------- */
.entry-content { font-size: 16px; line-height: 2; }
.entry-content > *:first-child { margin-top: 0; }

.entry-content p { margin: 0 0 1.6em; }
.entry-content h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: 0.14em; margin: 2.4em 0 1.2em; }
.entry-content h3 { font-size: clamp(19px, 2vw, 24px); letter-spacing: 0.1em; margin: 2.2em 0 1em; }
.entry-content h4 { font-size: 17px; letter-spacing: 0.08em; margin: 1.8em 0 0.8em; }
.entry-content h5 { font-size: 16px; margin: 1.6em 0 0.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.6em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content img { height: auto; }
.entry-content hr { border: 0; border-top: 1px solid var(--rule); margin: 3em 0; }
.entry-content blockquote {
  margin: 2em 0; padding: 4px 0 4px 28px;
  border-left: 1px solid var(--accent);
  color: var(--muted); font-family: var(--mincho);
}

/* トップページの見出しは、テーマの .section-title と同じ縦罫つきにする */
.front .entry-content section > .inner > h2 {
  text-align: center;
  padding-top: 44px;
  margin: 0 0 56px;
  position: relative;
}
.front .entry-content section > .inner > h2::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  width: 1px; height: 28px;
  background: var(--rule-strong);
}

/* ---------- Bootstrap グリッドの最小互換 ----------
   本文が row / col-md-* に依存しているため、使われている分だけ補う。 */
.entry-content .container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.entry-content .row { display: flex; flex-wrap: wrap; margin: 0 -16px; }
.entry-content [class*="col-md-"],
.entry-content [class*="col-xs-"] { position: relative; width: 100%; min-width: 0; padding: 0 16px; }

@media (min-width: 768px) {
  .entry-content .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  .entry-content .col-md-8  { flex: 0 0 66.6667%; max-width: 66.6667%; }
  .entry-content .col-md-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .entry-content .col-md-6  { flex: 0 0 50%; max-width: 50%; }
  .entry-content .col-md-5  { flex: 0 0 41.6667%; max-width: 41.6667%; }
  .entry-content .col-md-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
}
.entry-content .col-xs-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }

/* ---------- セクションの器 ---------- */
.entry-content section { padding: 96px 0; }
.entry-content section + section { border-top: 1px solid var(--rule); }
.entry-content section.bg { background: var(--paper-2); }
.entry-content .inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

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

/* 旧レイアウトの名残で中身が空のまま残っているセクション・リスト項目を畳む。
   見出しも本文も画像も持たないものだけが対象なので、内容を入れれば自然に出る。 */
.entry-content section:not(:has(h2, h3, p, img, table, form)) { display: none; }
.service_menu > li:not(:has(h3)) { display: none; }

/* ==========================================================================
   #service — サービス一覧
   カードにせず、写真とテキストを罫線で区切って交互に並べる。
   ========================================================================== */
#service .service_menu { max-width: none; margin: 0; padding: 0; list-style: none; counter-reset: service; }

#service .service_menu > li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 64px 0;
  border-top: 1px solid var(--rule);
}
#service .service_menu > li:first-child { border-top: 0; padding-top: 0; }
/* 偶数番目は写真を右に。DOM 順は変えずに列だけ入れ替える。 */
#service .service_menu > li:nth-child(2n) .service_img { grid-column: 2; grid-row: 1; }
#service .service_menu > li:nth-child(2n) .service_inner { grid-column: 1; grid-row: 1; }

#service .service_img { display: block; margin: 0; overflow: hidden; }
#service .service_img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

#service .service_inner { width: auto; margin: 0; }

/* 見出しの上に 01 / 02 の連番。欧文小サイズ＋横罫。
   連番は h3 で数える。中身が空の li には h3 がないため、番号が飛ばない。 */
#service .service_inner h3 {
  position: relative;
  counter-increment: service;
  padding-top: 34px;
  margin: 0 0 20px;
  font-size: clamp(22px, 2.2vw, 28px);
  letter-spacing: 0.12em;
  color: var(--sumi);
  text-align: left;
}
#service .service_inner h3::before {
  content: counter(service, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--mincho);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--accent);
}
#service .service_inner h3::after {
  content: "";
  position: absolute; top: 11px; left: 36px;
  width: 40px; height: 1px;
  background: var(--rule-strong);
  border: 0;
}

/* 価格。プラン名を左、金額を右に振り分けた 1 行にする。 */
#service .service_inner ul.price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin: 24px 0; padding: 14px 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
#service .service_inner ul.price li { margin: 0; white-space: nowrap; }
#service .service_inner ul.price li:first-child { font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
#service .service_inner ul.price p { margin: 0; font-family: var(--mincho); font-size: clamp(20px, 2vw, 25px); color: var(--accent); letter-spacing: 0.02em; white-space: nowrap; }

#service .service_inner p { font-size: 14px; line-height: 1.95; color: var(--ink); }

#service .service_inner > a {
  display: inline-flex; align-items: center; gap: 0.9em;
  margin-top: 12px; padding: 14px 30px;
  border: 1px solid var(--sumi);
  color: var(--sumi);
  font-size: 14px; letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
#service .service_inner > a::after { content: ""; width: 22px; height: 1px; background: currentColor; transition: width 0.25s; }
#service .service_inner > a:hover { background: var(--sumi); color: var(--paper); }
#service .service_inner > a:hover::after { width: 30px; }

@media (max-width: 900px) {
  #service .service_menu > li { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  #service .service_menu > li:nth-child(2n) .service_img,
  #service .service_menu > li:nth-child(2n) .service_inner { grid-column: 1; grid-row: auto; }
}

/* ==========================================================================
   #voice — お客様の声
   カードの影と角丸をやめ、鉤括弧つきの引用として組む。
   ========================================================================== */
#voice .voice_inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
#voice .voice_inner .col-md-6 { padding: 0; max-width: none; flex: none; }

#voice article {
  height: 100%;
  margin: 0;
  padding: 36px 32px;
  background: var(--paper);
  border: 0;
}
#voice .customer { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
#voice .customer h3 {
  width: auto; padding: 2px 10px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--gothic);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
#voice .customer p { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* 見出しを鉤括弧の引用に。元の文言が「」つきなので二重にならないよう括弧は足さない。 */
#voice article h4 {
  margin: 0 0 16px;
  padding: 0;
  background: none;
  color: var(--sumi);
  font-size: 19px;
  line-height: 1.7;
  letter-spacing: 0.08em;
}
#voice .customer_voice { margin: 0; padding: 0; font-size: 14px; line-height: 2; color: var(--ink); }

@media (max-width: 900px) {
  #voice .voice_inner { grid-template-columns: 1fr; }
  #voice article { padding: 28px 22px; }
}

/* ==========================================================================
   #faq — よくある質問
   丸バッジをやめ、Q / A を明朝の欧文で罫線の外に置く。
   ========================================================================== */
#faq .inner { max-width: 860px; }

#faq .boxQA { margin: 0; padding: 32px 0; border: 0; border-bottom: 1px solid var(--rule); }
#faq .boxQA:first-of-type { border-top: 1px solid var(--rule); }

#faq .boxQA .box-title {
  position: relative;
  margin: 0 0 14px;
  padding: 0 0 0 48px;
  border-radius: 0;
  color: var(--sumi);
  font-family: var(--mincho);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.08em;
}
#faq .boxQA .box-title::before {
  content: "Q";
  position: absolute; top: 0; left: 0;
  width: auto; height: auto;
  background: none; border-radius: 0;
  color: var(--accent);
  font-family: var(--mincho);
  font-size: 18px;
  font-weight: 600;
  line-height: inherit;
  transform: none;
}
#faq .boxQA .box-title::after { content: none; }

#faq .boxQA p {
  position: relative;
  margin: 0;
  padding: 0 0 0 48px;
  font-size: 15px;
  color: var(--ink);
}
#faq .boxQA p::before {
  content: "A";
  position: absolute; top: 0; left: 1px;
  color: var(--rule-strong);
  font-family: var(--mincho);
  font-size: 18px;
  font-weight: 600;
}

/* 旧サイト由来の dl 形式の FAQ（下層ページ）も同じ体裁に揃える */
#faq dl, #top_faq dl { margin: 0; padding: 32px 0; border: 0; border-bottom: 1px solid var(--rule); box-shadow: none; border-radius: 0; min-height: 0; }
#faq dl dt, #top_faq dl dt {
  padding: 0 0 0 48px; border: 0;
  color: var(--sumi); font-family: var(--mincho); font-size: 18px; font-weight: 600; letter-spacing: 0.08em;
}
#faq dl dt::before, #top_faq dl dt::before {
  content: "Q"; display: block;
  width: auto; height: auto;
  background: none; border-radius: 0;
  color: var(--accent); font-family: var(--mincho); font-size: 18px;
}
#faq dl dd, #top_faq dl dd { margin: 12px 0 0; padding: 0 0 0 48px; font-size: 15px; }
#faq dl dd::before, #top_faq dl dd::before {
  content: "A"; display: block;
  width: auto; height: auto;
  background: none; border: 0; border-radius: 0;
  color: var(--rule-strong); font-family: var(--mincho); font-size: 18px;
}

/* ==========================================================================
   #area — 対応エリア
   県名を左、市町村名を右に置いた定義リスト風の 2 カラム。
   ========================================================================== */
#area .area_details {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}
#area .area_details:first-of-type { border-top: 1px solid var(--rule); }

#area .area_details h3 {
  margin: 0; padding: 0;
  text-align: left;
  font-size: 22px;
  letter-spacing: 0.14em;
  color: var(--sumi);
}
#area .area_details h3::after { content: none; }
#area .area_details h3::first-letter { color: var(--accent); }

#area .area_details p { margin: 0; font-size: 13px; line-height: 2.1; color: var(--muted); }

@media (max-width: 900px) {
  #area .area_details { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  #area .area_details h3 { font-size: 19px; }
}

/* ==========================================================================
   #info — News & Information（コアの最新投稿ブロック）
   ========================================================================== */
#info .inner { max-width: 860px; }
#info h2 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: 0.16em; }

#info .wp-block-latest-posts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
#info .wp-block-latest-posts li {
  margin: 0; padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
#info .wp-block-latest-posts__featured-image { margin: 0 20px 0 0; }
#info .wp-block-latest-posts__featured-image img { width: 120px; height: 90px; object-fit: cover; }
#info .wp-block-latest-posts__post-title {
  display: block;
  font-family: var(--mincho);
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--sumi);
  text-decoration: none;
}
#info .wp-block-latest-posts__post-title:hover { color: var(--accent); }
#info .wp-block-latest-posts__post-date { display: block; margin-bottom: 6px; font-family: var(--mincho); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
#info .wp-block-latest-posts__post-full-content { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   #contact_box — 本文末尾の問い合わせ導線
   テーマ側の .cta と同じ体裁に揃える。
   ========================================================================== */
#contact_box {
  margin: 0;
  padding: 80px 0;
  background: var(--sumi);
  color: var(--paper);
  text-align: center;
}
#contact_box h2, #contact_box h3 {
  margin: 0 0 40px;
  color: var(--paper);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: 0.12em;
}
#contact_box h3::after { content: none; }

#contact_box ul { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 20px 48px; margin: 0; padding: 0; list-style: none; }
#contact_box ul li { margin: 0; }

#contact_box .tel { color: var(--paper); font-size: 12px; line-height: 1.6; opacity: 0.85; }
#contact_box .tel a { display: block; margin-bottom: 4px; color: var(--paper); font-family: var(--mincho); font-size: clamp(30px, 3.4vw, 40px); letter-spacing: 0.04em; text-decoration: none; }

#contact_box .mail a {
  display: inline-flex; align-items: center; gap: 0.9em;
  padding: 16px 32px;
  background: transparent;
  border: 1px solid var(--paper);
  border-radius: 0;
  color: var(--paper);
  font-size: 15px; letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
#contact_box .mail a::after { content: ""; width: 22px; height: 1px; background: currentColor; transition: width 0.25s; }
#contact_box .mail a:hover { background: var(--paper); color: var(--sumi); opacity: 1; }
#contact_box .mail a:hover::after { width: 30px; }

#contact_box .line { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, 0.35); }
#contact_box .line a { display: block; padding: 0; background: none; border-radius: 0; }
#contact_box .line img { width: 44px; height: 44px; }
#contact_box .line p { order: -1; margin: 0; font-size: 13px; line-height: 1.5; text-align: left; color: var(--paper); }
#contact_box .line p span { color: inherit; font-weight: 400; font-size: inherit; }

@media (max-width: 900px) {
  #contact_box { padding: 56px 0; height: auto; }
  #contact_box ul { flex-direction: column; gap: 28px; }
}

/* Font Awesome は読み込まない。アイコンの代わりに余白と罫線で見せる方針のため、
   本文に残っている <i class="fas …"> は非表示にする。 */
.entry-content i[class*="fa-"] { display: none; }

/* ==========================================================================
   下層ページ
   ========================================================================== */

/* ---------- ページ上部のメインビジュアル ----------
   旧テーマは背景画像に文字を重ねていた。重ねると必ず読みにくい箇所ができるので、
   写真は帯として敷き切り、文言はその下、生成りの地の上に置く。 */
#daikou, #cleaning, #about, #hakajimai { margin-top: 0; padding: 0; }

/* 墓石クリーニング。.massege（見出し＋箇条書き）は .main_image の中にあるが、
   写真は ::before の帯にして、文言は写真の下に流す。 */
#cleaning .main_image {
  width: auto; max-width: none;
  height: auto;
  margin: 0 0 72px;
  padding: 0;
  background: none;
}
#cleaning .main_image::before {
  content: "";
  display: block;
  height: 400px;
  margin-bottom: 56px;
  background-image: url(/wp-content/uploads/2026/08/cleaning_main.webp);
  background-size: cover;
  background-position: center;
}
#cleaning .main_image .massege {
  position: static;
  width: 100%; max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  top: auto;
}
#cleaning .main_image h2 {
  margin: 0 0 24px;
  padding: 0;
  color: var(--sumi) !important;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-align: left;
  text-shadow: none;
}
#cleaning .main_image h2::before { content: none; }

#cleaning .main_image ul {
  margin: 0;
  padding: 4px 0 4px 24px;
  background: none;
  border: 0;
  border-left: 1px solid var(--accent);
  border-radius: 0;
  color: var(--muted);
  font-family: var(--gothic);
  font-size: 14px;
  line-height: 2.1;
  list-style: none;
}

#cleaning .under { width: 100%; max-width: 860px; margin: 0 auto 88px; padding: 0 var(--gutter); background: none; }
#cleaning .under .text-caption1 {
  width: auto; margin: 0 0 24px; padding: 0;
  background: none; border-radius: 0;
  color: var(--sumi);
  font-family: var(--mincho);
  font-size: clamp(18px, 2.1vw, 24px);
  font-weight: 600;
  line-height: 1.9;
  letter-spacing: 0.1em;
  text-align: center;
}
#cleaning .under .text-caption1::before { content: none; }
#cleaning .under .text-caption2 {
  margin: 0; padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--gothic);
  font-weight: 400;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 900px) {
  #cleaning .main_image::before {
    height: 240px;
    margin-bottom: 36px;
    /* 画像は PC と同じものを継承する。左半分が余白で被写体が右に寄っているため、
       狭い幅で cover すると中央基準では右端の親子が切れる。右端を基準にする。 */
    background-position: right center;
  }
}

/* ---------- #about — 光蔵について ---------- */
#about .about_main { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* 中身が空の div。写真の帯として使う。 */
#about .about_top_img {
  height: 380px;
  margin: 0 calc(var(--gutter) * -1) 64px;
  background-image: url(/wp-content/uploads/2022/02/about.webp);
  background-size: cover;
  background-position: center;
}

#about .about_flex { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
#about .about_flex .l { min-width: 0; }
#about .about_flex .r img { width: 100%; height: auto; }
/* 左右どちらかが空の行は 1 カラムにする */
#about .about_flex:has(.l:not(:has(p:not(:empty)))) { grid-template-columns: 1fr; }

/* 本文に直書きされた紫の区切り線を、罫線の色に置き換える。 */
#about div[style*="#640087"] { background: var(--rule) !important; }

@media (max-width: 900px) {
  #about .about_top_img { height: 220px; margin-bottom: 40px; }
  #about .about_flex { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 見出しユーティリティ（旧サイト由来） ---------- */
.entry-content .title {
  position: relative;
  padding-bottom: 24px;
  background: none; border: 0;
  color: var(--sumi);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: center;
}
.entry-content .title::before {
  content: "";
  position: absolute; left: 50%; bottom: 8px;
  width: 40px; height: 1px;
  background: var(--accent);
  transform: translateX(-50%);
}
.entry-content .title_sub { margin-top: 0; text-align: center; font-size: 15px; color: var(--muted); letter-spacing: 0.08em; }

.entry-content .title_bg {
  margin: 2.4em 0 1.4em;
  padding: 12px 0 12px 20px;
  background: none;
  border: 0;
  border-left: 3px solid var(--accent);
  box-shadow: none;
  color: var(--sumi);
  font-size: 21px;
  letter-spacing: 0.1em;
  text-align: left;
}
.entry-content .title_bg::after { content: none; }
.entry-content .title_bg span {
  margin-right: 14px; padding: 0;
  background: none; border-radius: 0;
  color: var(--accent);
  font-family: var(--mincho);
  font-size: 14px;
  letter-spacing: 0.2em;
}
.entry-content .title_bg_2 { background: none; border-left-color: var(--rule-strong); }
.entry-content .title_bg_2 span { color: var(--rule-strong); }

.entry-content .title_2 {
  margin: 2.6em auto 1.2em;
  border: 0; box-shadow: none;
  color: var(--sumi);
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.12em;
  text-align: center;
}
.entry-content .title_2::after { content: none; }

.entry-content .scroll_title { margin-bottom: 0; padding-bottom: 12px; background: none; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 17px; text-align: center; }

/* ---------- 面の色（旧サイト由来） ---------- */
.entry-content .bg_beige, .entry-content .bg_grey, .entry-content .bg_grey_2 {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 28px;
}
.entry-content .border_box { width: auto; margin: 2em auto; padding: 32px; border: 1px solid var(--rule); }

.entry-content .anchor { padding-top: calc(var(--header-h) + 24px) !important; margin-top: calc((var(--header-h) + 24px) * -1) !important; }
#standard, #special, #deluxe, #cleaning_course, #daikou_course {
  padding-top: calc(var(--header-h) + 24px) !important;
  margin-top: calc((var(--header-h) + 24px) * -1) !important;
}

/* ---------- #reason / #guide / #flow — 手順・理由の連番 ---------- */
#reason h3, #service h3, #top_about h2, #top_about_2 h3 {
  background: none; border: 0; box-shadow: none;
  color: var(--sumi);
  font-weight: 600;
}
#reason h3 span, #flow p.step, #flow2 p.step {
  color: var(--accent);
  font-family: var(--mincho);
  font-style: normal;
}

#guide h3, #price h3 {
  margin: 2.4em 0 1.2em;
  padding: 12px 0 12px 20px;
  background: none;
  border-left: 3px solid var(--accent);
  color: var(--sumi);
  text-align: left;
  font-size: 21px;
}
#guide h3::after, #price h3::after { content: none; }
#guide h3 span { margin-right: 14px; color: var(--accent); font-family: var(--mincho); font-size: 14px; letter-spacing: 0.2em; }

#guide ol, #flow ol, #flow2 ol, .mitumori {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
#guide ol li, #flow ol li, #flow2 ol li, .mitumori li {
  counter-increment: step;
  position: relative;
  margin-bottom: 14px;
  padding-left: 42px;
}
#guide ol li::before, #flow ol li::before, #flow2 ol li::before, .mitumori li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  float: none;
  width: auto; height: auto;
  margin: 0;
  background: none; border-radius: 0;
  color: var(--accent);
  font-family: var(--mincho);
  font-size: 13px;
  letter-spacing: 0.14em;
  line-height: 2;
}

/* 問い合わせ導線（#guide 内） */
#guide .contact { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px; padding: 32px 0; margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
#guide .contact li { list-style: none; margin: 0; text-align: center; }
#guide .tel a { color: var(--sumi); font-family: var(--mincho); font-size: 32px; letter-spacing: 0.04em; text-decoration: none; }
#guide .tel a span { color: var(--sumi); font-size: inherit; }
#guide .mail a {
  display: inline-flex; align-items: center; gap: 0.9em;
  margin: 0; padding: 14px 30px;
  border: 1px solid var(--sumi); border-radius: 0;
  color: var(--sumi); font-size: 15px; letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
#guide .mail a:hover { background: var(--sumi); color: var(--paper); }
#guide .line a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 0; text-decoration: none; }
#guide .line img { width: 44px; height: 44px; }
#guide .line p { margin: 0; font-size: 12px; line-height: 1.5; text-align: left; }
#guide .line p span { color: var(--ink); font-size: inherit; font-weight: 400; }

/* ---------- 表（料金表） ---------- */
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 14px; }
.entry-content table th, .entry-content table td { padding: 12px 14px; border: 1px solid var(--rule); background: none; text-align: left; vertical-align: middle; }
.entry-content table th { background: var(--paper-2); font-weight: 600; }

.price_table { overflow-x: auto; margin-bottom: 2em; }
.price_table table { min-width: 640px; }
.price_table table tr th { text-align: center; border: 1px solid var(--rule); background: var(--paper-2); }
.price_table table tr th.table_title, .price_table table tr th.size_title, .price_table table tr th.years_title, .price_table table tr th.region {
  background: var(--sumi);
  border-color: var(--sumi);
  color: var(--paper);
  font-family: var(--mincho);
  font-size: 17px;
  letter-spacing: 0.1em;
  font-weight: 400;
}
.price_table table tr th.price, .price_table table tr th.size, .price_table table tr th.years { background: var(--white); }
.price_table table tr td { border: 1px solid var(--rule); }
.price_table table tr td.price { text-align: center; font-family: var(--mincho); color: var(--accent); white-space: nowrap; }
.price_table table tr.bg_yellow th { background: var(--white); }

#price table { border: 0; }
#price table thead { border-bottom: 2px solid var(--sumi); }
#price table thead th { border: 0; border-right: 1px solid var(--rule); background: none; text-align: center; }
#price table thead th:last-child { border-right: 0; }
#price table thead tr th.table_title { padding: 12px 0; background: none; color: var(--sumi); font-family: var(--mincho); font-size: 17px; letter-spacing: 0.1em; }
#price table tbody tr th, #price table tbody tr td { border: 0; border-top: 1px solid var(--rule); background: none; }
#price table tbody tr th.kukaku { width: 90px; border-right: 1px solid var(--rule); color: var(--accent); text-align: center; }
#price table tbody tr td.price { border-left: 1px solid var(--rule); text-align: center; font-family: var(--mincho); color: var(--accent); }
#price p { text-align: right; font-size: 12px; color: var(--muted); }
#price .table-scroll { overflow-x: auto; }

/* 横スクロール時に 1 列目を固定する（旧サイトの .fixed を踏襲） */
@media (max-width: 900px) {
  .fixed { position: sticky; left: 0; background: var(--paper); }
  .price_table table { min-width: 560px; }
}

/* ---------- .recommend — こんな方におすすめ ---------- */
.recommend h3 { padding: 10px; border: 1px solid var(--accent); color: var(--accent); font-size: 17px; letter-spacing: 0.1em; text-align: center; }
.recommend h4 { padding-bottom: 12px; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; color: var(--sumi); text-align: center; }
.recommend ul { padding-left: 0; list-style: none; }
.recommend ul li { position: relative; margin-top: 12px; padding-left: 32px; font-size: 16px; }
.recommend ul li::before {
  content: "";
  position: absolute; left: 2px; top: 0.85em;
  width: 16px; height: 1px;
  background: var(--accent);
  color: transparent;
}

/* ---------- .service（タグ列） ---------- */
.entry-content ul.service { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 0; list-style: none; }
.entry-content ul.service li { margin: 0; padding: 4px 14px; border: 1px solid var(--rule-strong); border-radius: 0; color: var(--ink); font-size: 13px; letter-spacing: 0.06em; }

.service_box { width: auto; padding: 32px; background: var(--white); border: 1px solid var(--rule); }
.service_box h3 { color: var(--sumi); font-size: 21px; }
.service_box ul { display: flex; flex-wrap: wrap; gap: 16px; padding: 0; }
.service_box ul li { width: calc(25% - 12px); margin: 0; list-style: none; text-align: center; }

@media (max-width: 900px) { .service_box { padding: 20px; } .service_box ul li { width: calc(50% - 8px); } }

/* ---------- .training_course — 研修コース ---------- */
.training_course { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin: 64px 0 0; padding: 0; list-style: none; }
.training_course li { width: auto; padding: 0; }
.training_course li.course_1, .training_course li.course_2 { background: none; border: 1px solid var(--rule); padding: 32px; }
.training_course li.course_1::before, .training_course li.course_1::after,
.training_course li.course_2::before, .training_course li.course_2::after { content: none; }
.training_course li h3 { margin: 0 0 8px; padding: 0; border: 0; box-shadow: none; color: var(--sumi); font-size: 26px; letter-spacing: 0.1em; text-align: center; }
.training_course li h3::after { content: none; }
.training_course li h3 span { display: block; color: var(--accent); font-family: var(--mincho); font-size: 13px; letter-spacing: 0.2em; }
.training_course li h4 { margin-bottom: 16px; background: none; color: var(--sumi); font-size: 19px; text-align: center; }
.training_course li h4 span { color: var(--accent); }
.training_course li .course_inner { width: auto; padding: 20px 0 0; background: none; border-top: 1px solid var(--rule); }
.training_course li p { margin: 20px 0 0; color: var(--ink); font-size: 15px; font-weight: 400; text-align: center; }
.training_course li p a {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.8em;
  width: auto; margin: 0; padding: 12px 28px;
  background: none; border: 1px solid var(--sumi); border-radius: 0;
  color: var(--sumi) !important;
  font-size: 14px; letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
.training_course li p a:hover { background: var(--sumi); color: var(--paper) !important; opacity: 1; }
.training_course li.course_2 { margin-top: 0; }

.training_merit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.training_merit li { width: auto; }

.cleaning_course { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 0; list-style: none; }
.cleaning_course li { margin: 0; text-align: center; }
.cleaning_course li img { width: 100%; }

/* グリッドに並べ替えたリストの中で、Bootstrap の col-* が幅を 1/3 に縛ってしまう。
   グリッド側に幅を任せるため打ち消す。 */
.entry-content .cleaning_course > li[class*="col-"],
.entry-content .training_course > li[class*="col-"],
.entry-content .training_merit > li[class*="col-"] { flex: none; max-width: none; padding: 0; }

@media (max-width: 900px) {
  .training_course, .training_merit { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- #before_after / #company / #media / #blog ---------- */
#before_after h3 { margin: 0 auto 20px; padding: 0; border: 0; box-shadow: none; color: var(--sumi); font-family: var(--mincho); font-size: 21px; text-align: center; }
#before_after h3::after { content: none; }

#company table { width: 100%; }
#company table tr th { width: 200px; background: var(--paper-2); font-weight: 600; vertical-align: top; white-space: nowrap; }
@media (max-width: 900px) { #company table tr th { width: 110px; white-space: normal; } }

#media ul, #blog ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; padding: 0; list-style: none; }
#media ul li, #blog ul li { margin: 0; }
#blog ul li a { color: var(--ink); text-decoration: none; }
#blog ul li .blog_thum { width: 100%; max-height: 200px; object-fit: cover; }
#blog ul li p.time { margin-top: 10px; font-family: var(--mincho); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
#blog ul li p.blog_title { margin-top: 4px; font-size: 14px; line-height: 1.7; }

.option_comment { padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }

/* ---------- 各セクションの間隔 ---------- */
#guide, #price, #reason, #flow, #flow2, #option, #before_after,
#cleaning_option, #cleaning_voice, #top_voice, #top_faq, #top_about_2,
#media, #blog, #company, .area { margin-top: 88px; }

@media (max-width: 900px) {
  #guide, #price, #reason, #flow, #flow2, #option, #before_after,
  #cleaning_option, #cleaning_voice, #top_voice, #top_faq, #top_about_2,
  #media, #blog, #company, .area { margin-top: 56px; }
}

/* ---------- #about — 会社情報 ---------- */
#about .shop_data {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 48px;
  width: auto;
  margin: 0 0 88px;
  padding: 0;
}
#about .shop_data ul { max-width: none; margin: 0; padding: 0; list-style: none; }
#about .shop_data ul li.title { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font-family: var(--mincho); }
#about .shop_data ul li img { width: 56px; height: 56px; margin: 0; }
#about .shop_data ul span { font-family: var(--mincho); font-size: 22px; font-weight: 600; letter-spacing: 0.1em; }
#about .shop_data > img { width: 100%; height: auto; margin: 0; }
#about .recruitment { margin: 88px auto; }
#about .recruitment h3::after { content: none; }

@media (max-width: 900px) {
  #about .shop_data { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
}

/* ==========================================================================
   #hakajimai — 墓じまい
   ========================================================================== */
#hakajimai .main_image { margin-bottom: 64px; }

/* ==========================================================================
   Contact Form 7
   ========================================================================== */
#contact { width: 100%; max-width: 760px; margin: 0 auto; }
.confirm { width: 100%; max-width: 800px; margin: 0 auto 88px; padding: 0; }
#thanks { width: 100%; max-width: 760px; margin: 0 auto; text-align: center; }
#thanks h2 { margin-bottom: 40px; }
#thanks p { padding: 0; }
#thanks a {
  display: inline-flex; align-items: center; gap: 0.9em;
  margin: 64px auto 0; padding: 16px 32px;
  width: auto;
  border: 1px solid var(--sumi);
  color: var(--sumi);
  font-size: 15px; letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}
#thanks a:hover { background: var(--sumi); color: var(--paper); }

.entry-content .inquiry { border: 1px solid var(--rule); }
.inquiry th { width: 30%; padding: 16px; background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink); font-weight: 600; text-align: left; }
.inquiry td { padding: 16px; border: 1px solid var(--rule); }
.confirm td.title { width: 180px; background: var(--paper-2); }

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content input[type="date"],
.entry-content select,
.entry-content textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* iOS の自動ズームを防ぐため 16px を下回らせない */
}
.entry-content textarea { min-height: 180px; }
.entry-content input:focus, .entry-content select:focus, .entry-content textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* CF7 のフォーム本体（テーブルではなく p + label で組まれている） */
.wpcf7-form p { margin-bottom: 28px; }
.wpcf7-form label { display: block; font-size: 14px; letter-spacing: 0.06em; color: var(--ink); }
.wpcf7-form .wpcf7-form-control-wrap { display: block; margin-top: 8px; }

/* フォーム定義側に background:red のインラインスタイルで「必須」バッジが書かれている。
   インライン指定は !important でしか上書きできないため、ここで臙脂に置き換える。
   （CF7 の管理画面でバッジの HTML を直せば、この 1 行は不要になる） */
.wpcf7-form label span[style*="background"] { background: var(--accent) !important; }

.entry-content input[type="submit"],
.entry-content .wpcf7-submit {
  display: block;
  width: 320px;
  margin: 32px auto 0;
  padding: 16px 0;
  background: var(--sumi);
  border: 1px solid var(--sumi);
  border-radius: 0;
  color: var(--paper);
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.entry-content input[type="submit"]:hover,
.entry-content .wpcf7-submit:hover { background: transparent; color: var(--sumi); }

.wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7-not-valid-tip { color: var(--accent); font-size: 12px; }
.wpcf7-response-output { margin: 24px 0 0; padding: 14px 16px; border: 1px solid var(--rule-strong); font-size: 14px; }

/* 必須 / 任意 */
.haveto, .any {
  display: inline-block;
  margin-left: 8px; padding: 2px 8px;
  border-radius: 0;
  font-size: 10px;
  letter-spacing: 0.08em;
  vertical-align: middle;
}
.haveto { background: var(--accent); color: var(--white); }
.any { background: none; border: 1px solid var(--rule-strong); color: var(--muted); }

.verticallist .wpcf7-list-item { display: block; margin: 0; line-height: 2.2; }
span.wpcf7-list-item { margin: 0 20px 0 0; }

#formbtn, #confirmbtn, #backbtn {
  display: block;
  width: 320px;
  margin: 32px auto 0;
  padding: 16px 0;
  border: 1px solid var(--sumi);
  border-radius: 0;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
#formbtn, #confirmbtn { background: var(--sumi); color: var(--paper); }
#formbtn:hover, #confirmbtn:hover { background: transparent; color: var(--sumi); }
#backbtn { background: transparent; color: var(--muted); border-color: var(--rule-strong); }
#backbtn:hover { background: var(--rule-strong); color: var(--white); }

@media (max-width: 900px) {
  /* フォームの表を縦積みにする */
  .inquiry th, .inquiry td { display: block; width: 100%; border-top: 0; }
  .inquiry tr:first-child th { border-top: 1px solid var(--rule); }
  #formbtn, #confirmbtn { width: 100%; }
  #backbtn { width: 100%; }
}

@media (min-width: 769px) {
  .contact_flex { display: flex; width: 90%; }
  .contact_flex #contact__flexcon { width: 30%; }
}

/* PC では電話番号のリンクを無効にする（発信できないため） */
@media (min-width: 901px) {
  .entry-content a[href^="tel:"] { pointer-events: none; }
}

/* ==========================================================================
   本文が使っている残りの語彙
   ========================================================================== */

/* Bootstrap のボタン。テーマの .btn が効くので、幅と揃えだけ足す。 */
.entry-content .btn { justify-content: center; }
.entry-content .btn-topmenu { display: flex; width: 100%; margin-top: 12px; font-size: 14px; }
.entry-content .btn-default { border-color: var(--sumi); color: var(--sumi); }

.entry-content .text-center { text-align: center; }
.entry-content .font14 { font-size: 13px; color: var(--muted); }

/* Bootstrap のオフセット */
@media (min-width: 768px) {
  .entry-content .col-md-offset-3 { margin-left: 25%; }
  .entry-content .col-md-push-8 { left: 66.6667%; }
  .entry-content .col-md-pull-4 { right: 33.3333%; }
}
.entry-content .col-xs-offset-1 { margin-left: 8.3333%; }

/* FAQ の 2 カラム版。
   固定ページ側の「VK CSS Customize」に旧テーマ向けの幅指定（40vw / 475px）が
   残っていて桁が合わないため、グリッドに任せる形へ打ち消す。 */
#faq .boxQA_flex { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
#faq .boxQA_flex .boxQA { padding: 28px 0; }
#faq .boxQA_flex .boxQA_flex_box { width: auto; max-width: none; }
@media (max-width: 900px) { #faq .boxQA_flex { grid-template-columns: 1fr; } }

/* 公開済みの投稿が 0 件のとき、最新投稿ブロックが空の罫線だけ残すのを防ぐ。 */
#info .wp-block-latest-posts:empty { display: none; }

/* ご利用の流れの見出し（Step.1 …） */
.entry-content .steptitle {
  margin: 2.4em 0 1em;
  padding: 12px 0 12px 20px;
  background: none;
  border-left: 3px solid var(--accent);
  color: var(--sumi);
  font-size: 20px;
  letter-spacing: 0.1em;
  text-align: left;
}
.entry-content .steptitle::after { content: none; }
.entry-content .steptitle span { margin-right: 10px; color: var(--accent); font-family: var(--mincho); font-size: 13px; letter-spacing: 0.16em; }
.entry-content .step { margin-bottom: 48px; padding: 0; }

/* 施工前・施工後の 2 枚並べ（.service_img2） */
.service_img2 { display: flex; gap: 6px; flex: 0 1 auto; width: auto; }
.service_img2 img { width: 50%; height: auto; margin: 0 !important; object-fit: cover; }

.before_after_pic { margin-bottom: 48px; }
.before_after_pic img { width: 100%; }

/* 料金表の中で使われている見出しセル */
.price_table table tr th.number, .price_table table tr th.frequency { background: var(--white); font-weight: 400; }
.price_table table tr th.frequency { text-align: left; white-space: normal; }
#price table tbody tr th.number { width: 60px; border-right: 1px solid var(--rule); text-align: center; }
#price table tbody tr th.frequency { border-right: 1px solid var(--rule); font-weight: 400; text-align: left; white-space: normal; }

/* プラン詳細のアンカー先 */
#fee, #standardplan, #specialplan, #deluxeplan {
  padding-top: calc(var(--header-h) + 24px);
  margin-top: calc((var(--header-h) + 24px) * -1);
}

/* ==========================================================================
   ユーティリティ（本文 HTML が直接参照しているため残す）
   ========================================================================== */
.mt0 { margin-top: 0 !important; }
.mt5 { margin-top: 5px !important; }
.mt10 { margin-top: 10px !important; }
.mt20 { margin-top: 20px !important; }
.mt30 { margin-top: 30px !important; }
.mt40 { margin-top: 40px !important; }
.mt50 { margin-top: 50px !important; }
.mt60 { margin-top: 60px !important; }
.mt70 { margin-top: 70px !important; }
.mt80 { margin-top: 80px !important; }
.mt90 { margin-top: 90px !important; }
.mt100 { margin-top: 100px !important; }
.mt10m { margin-top: -10px; }
.mt20m { margin-top: -20px; }
.mt30m { margin-top: -30px; }
.mt40m { margin-top: -40px; }
.mt50m { margin-top: -50px; }
.mb10 { margin-bottom: 10px !important; }
.mb20 { margin-bottom: 20px !important; }
.mb30 { margin-bottom: 30px !important; }
.mb40 { margin-bottom: 40px !important; }
.mb50 { margin-bottom: 50px !important; }
.mb80 { margin-bottom: 80px !important; }
.mb120 { margin-bottom: 120px !important; }
.pt5 { padding-top: 5px !important; }
.pt10 { padding-top: 10px !important; }
.pt20 { padding-top: 20px !important; }
.pt30 { padding-top: 30px !important; }
.pt40 { padding-top: 40px !important; }
.pt50 { padding-top: 50px !important; }
.font16 { font-size: 16px !important; }
.font18 { font-size: 18px !important; }
.font20 { font-size: 20px !important; }
.font22 { font-size: 22px !important; }
.font24 { font-size: 24px !important; }
.font26 { font-size: 26px !important; }
.font28 { font-size: 28px !important; }
.enji { color: var(--accent); }
.price_img { text-align: center; }
.logo-after { display: none; }
