/*
 Theme Name: Chouseiji Child
 Template: twentytwentyfive
 Description: 長清寺 静的HTML移行用子テーマ
 Version: 1.0.0
*/

/* ==================================================
   ここに元の style.css の内容をすべて貼り付けてください
   ※画像のパスが ../images/ 等になっている場合は
     images/ に置換が必要な場合があります
   ================================================== */

   /* =======================================================
   長清寺 Top – Clean CSS (2025-11-11)
   - タイポ/レイアウト/ヘッダー/スライダー/各セクション/フッター
   - 見出しは明朝、本文はゴシック
======================================================= */

/* ========== Reset / Base ========== */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; color:#222; background:#fff;
  font:16px/1.8 system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",sans-serif;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }

:root{
  --ink:#222;
  --muted:#666;
  --line:#e8e4db;            /* 生成りの薄線 */
  --brand:#7b6b4b;           /* 落ち着いた強調色 */
  --bg-soft:#faf8f3;         /* ほんのり生成り */
  --bg-dark:#1f1f1f;         /* フッター用 */
  --heading-font:"Noto Serif JP","Hiragino Mincho ProN","Yu Mincho","HGS明朝E","MS PMincho",serif;
}

.container{ width:min(1100px,92vw); margin-inline:auto; }

/* ========== Typography ========== */
h1,h2,h3,.sec-title,.card-title,.mv-copy h1,.flow-card h3,.faq summary,.news-title{
  font-family:var(--heading-font);
  letter-spacing:.02em;
}
h1,.mv-copy h1{ font-weight:700; }
h2,.sec-title{ font-weight:700; }
h3,.card-title,.flow-card h3,.faq summary,.news-title{ font-weight:600; }

/* ========== Sections ========== */
.section{ padding:64px 0; background:#fff; }
.section + .section{ border-top:1px solid var(--line); }
.section--soft{ background:var(--bg-soft); }
.section--text .text-block{ max-width:900px; }
.sec-title{ margin:0 0 20px; font-size:clamp(20px,2.2vw,28px); }
.sec-title--light{ color:#fff; text-shadow:0 1px 0 rgb(0 0 0 / 30%); }

/* 汎用リスト */
.list{ margin:10px 0 0; padding-left:1.2em; }
.list li{ margin:.25em 0; }

/* 2カラムテキスト（可変） */
.text-cols{ display:grid; gap:18px; grid-template-columns:1fr; }
@media (min-width:920px){ .text-cols{ grid-template-columns:1fr 1fr; } }
.inline-ctas{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

/* ========== Header ========== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.9); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{ display:flex; align-items:center; gap:20px; padding:10px 0; justify-content: space-between;}
.logo img{ height:56px; width:auto; }

.gnav{ margin-left:auto; display:none; }
.gnav ul{ display:flex; gap:20px; margin:0; padding:0; list-style:none; }
.gnav a{ color:var(--muted); font-size:14px; }
@media (min-width:960px){ .gnav{ display:block; } }

/* SPメニュー */
.nav-toggle{ display:none; }
.sp-nav{ display:none; }
@media (max-width:959px){
  .gnav{ display:none; }
  .nav-toggle{
    display:inline-flex; flex-direction:column; gap:6px;
    width:36px; height:36px; align-items:center; justify-content:center;
    border:1px solid #ddd; background:#fff; border-radius:6px;
  }
  .nav-toggle span{ width:18px; height:2px; background:#333; display:block; }
  body.nav-open .sp-nav{ display:block; }
  .sp-nav{
    position:absolute; top:100%; left:0; right:0; z-index:60;
    background:#fff; border-top:1px solid #eee;
  }
  .sp-nav ul{ list-style:none; margin:0; padding:12px; }
  .sp-nav li{ border-bottom:1px solid #f0f0f0; }
  .sp-nav li:last-child{ border-bottom:none; }
  .sp-nav a{ display:block; padding:12px 6px; color:#333; }
}

/* ========== Buttons ========== */
.btn{
  display:inline-block; padding:12px 18px;
  border-radius:999px; border:1px solid var(--brand);
  background:var(--brand); color:#fff; font-weight:700; letter-spacing:.02em;
  transition:filter .15s ease, opacity .15s ease;
}
.btn:hover{ filter:brightness(1.05); }
.btn--ghost{ background:transparent; color:#fff; border-color:#fff; }
.btn--line{ background:#fff; color:var(--brand); border-color:var(--brand); }
.btn--primary{ background:var(--brand); color:#fff; border-color:var(--brand); }
.btn--sm{ padding:8px 12px; font-size:14px; }

/* ========== MV（フェードスライダー） ========== */
.mv{ position:relative; }
.mv-slider{ position:relative; height:min(72vh,720px); overflow:hidden; }
.mv-slide{ position:absolute; inset:0; opacity:0; transition:opacity .6s ease; will-change:opacity; }
.mv-slide.is-active{ opacity:1; z-index:2; }
.mv-slide img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }

/* コピー：行間を詰め、読みやすく（①） */
.mv-copy{
  position:absolute; inset:0; z-index:3; display:grid; place-items:center;
  text-align:center; color:#fff; padding:0 16px;
}
.mv-copy::before{ content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.38));
}
.mv-copy h1{ font-size:clamp(25px,3.6vw,40px); margin:0 0 4px; line-height:1.25; }   /* ← 詰める */
.mv-copy p { margin:0 0 12px; line-height:1.6; opacity:.95; }                     /* ← 詰める */
.mv-ctas{ display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }

/* ========== News ========== */
.news-list{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.news-item{
  display:grid; grid-template-columns:auto auto 1fr;
  align-items:start; gap:12px; padding:14px 12px;
  border:1px solid var(--line); border-radius:12px; background:#fff;
}
.chip{ display:inline-block; padding:2px 8px; border-radius:999px; background:#f1ede4; color:#826f4d; font-weight:700; font-size:12px; }
.chip--outline{ background:transparent; border:1px solid var(--line); color:var(--muted); }
.news-desc{ grid-column:3/4; margin:4px 0 0; color:var(--muted); font-size:14px; }

/* ========== Cards ========== */
.card-grid{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.grid-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.grid-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (max-width:959px){ .grid-3,.grid-4{ grid-template-columns:1fr; } }

.card{ border:1px solid var(--line); border-radius:16px; overflow:hidden; background:#fff;
  transition:transform .12s ease, box-shadow .12s ease; }
.card:hover{ transform:translateY(-2px); box-shadow:0 6px 18px rgba(0,0,0,.06); }
.card figure{ margin:0; }
.card img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
.card-body{ padding:14px; }
.card-title{ margin:0; font-size:18px; }

/* ========== 背景画像セクション（Flow） ========== */
.section--image{ position:relative; color:#fff; padding:70px 0; }
.section--image .container{ position:relative; }
.section__bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.section__overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.45)); }

.flow-steps{ list-style:none; margin:22px 0 0; padding:0; display:grid; gap:14px; grid-template-columns:1fr; }
@media (min-width:900px){ .flow-steps{ grid-template-columns:repeat(5,1fr); } }
.flow-card{
  background:rgba(255,255,255,.88); color:#222;
  border:1px solid rgba(255,255,255,.7); border-radius:14px; padding:16px;
  box-shadow:0 6px 20px rgba(0,0,0,.08);
}
.flow-card h3{ margin:6px 0; font-size:16px; }
.flow-card p{ margin:4px 0 0; font-size:14px; color:#333; }
.flow-step{
  display:inline-grid; place-items:center; width:28px; height:28px; border-radius:999px;
  background:var(--brand); color:#fff; font-weight:700; font-size:14px;
}
.flow-ctas{ margin-top:18px; display:flex; gap:12px; flex-wrap:wrap; }

/* ========== FAQ ========== */
.faq details{ border:1px solid var(--line); border-radius:12px; padding:10px 12px; margin-bottom:10px; background:#fff; }
.faq summary{ cursor:pointer; list-style:none; font-weight:700; color:#222; }
.faq summary::-webkit-details-marker{ display:none; }
.faq .chip{ margin-right:6px; }
.faq-a{ margin-top:8px; color:var(--muted); }

/* ========== Access ========== */
.access-grid{ display:grid; gap:18px; grid-template-columns:1.2fr 1fr; }
@media (max-width:920px){ .access-grid{ grid-template-columns:1fr; } }
.access-map iframe{ width:100%; height:360px; border:0; border-radius:12px; }
.dl{ display:grid; grid-template-columns:100px 1fr; gap:6px 12px; margin:0 0 16px; }
.dl dt{ color:var(--muted); }

/* ========== Footer（④ 背景濃色＋白文字） ========== */
.site-footer{
  background:var(--bg-dark); color:#fff;
  border-top:none; padding:22px 0; margin-top:0;
}
.site-footer .container{ display:flex; flex-direction:column; gap:10px; }
.footer-nav ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:12px; }
.footer-nav a{ color:#fff; opacity:.9; }
.footer-nav a:hover{ opacity:1; }
small{ color:#ddd; }

/* ========== Helpers ========== */
.mv-copy *{ text-shadow:0 1px 1px rgba(0,0,0,.25); }

/* ===== Scroll Reveal ===== */
@media (prefers-reduced-motion: no-preference){
  .reveal{
    opacity: 0;
    transform: translateY(16px) scale(.98);
    filter: saturate(.9);
    transition:
      opacity .6s ease,
      transform .6s ease,
      filter .6s ease;
    will-change: opacity, transform, filter;
  }
  .reveal.is-in{
    opacity: 1;
    transform: none;
    filter: none;
  }
  /* 遅延バリエーション（必要になったら付与） */
  .reveal.d1{ transition-delay: .05s; }
  .reveal.d2{ transition-delay: .10s; }
  .reveal.d3{ transition-delay: .15s; }
}

/* ===== カード：スマホは2列 ===== */
@media (max-width: 959px){
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
/* ===== Hero：中央寄せ＆クラスターの密度調整 ===== */
.mv-copy{
  place-content: center;
}
@media (max-width: 600px){
  .mv-copy{ transform: translateY(-2vh); }
}
.mv-copy > *{ max-width: min(960px, 92vw); margin-left: auto; margin-right: auto; }
.mv-copy h1{ line-height: 1.22; margin-bottom: .2em; }   /* タイトルを詰める */
.mv-copy p { line-height: 1.6;  margin-bottom: .8em; }   /* 補足も少し詰める */
.mv-ctas   { gap: 8px; margin-top: .3em; }               /* CTAの間隔を微縮 */

/* ===== 固定フッターCTA（背景バーなしの単体ボタン） ===== */
.fixed-cta{
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  padding: 12px 18px; border-radius: 999px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  opacity: 0; transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, filter .15s ease;
}
.fixed-cta:hover{ filter: brightness(1.05); }
.fixed-cta.is-show{ opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 960px){
  .fixed-cta{ right: 24px; bottom: 24px; }
}
/* SPメニュー展開時は邪魔しない */
body.nav-open .fixed-cta{ opacity: 0; pointer-events: none; }

/***********************************
下層スタート
***********************************/
/* ===== Subpage Base ===== */

/* Page Hero */
.page-hero{ position:relative; padding:48px 0; height: 46vh;}
.page-hero__bg{ position:absolute; inset:0; width:100%; height:46vh; min-height:260px; object-fit:cover; }
.page-hero__overlay{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.25)); }
.page-hero__box{ position:relative; z-index:2; color:#fff; padding-top:8vh; padding-bottom:8vh; }
.page-hero__ttl{ font-size:clamp(22px,3vw,34px); margin:6px 0 4px; }
.page-hero__sub{ margin:0; opacity:.9; }

/* Breadcrumb */
.breadcrumb{ font-size:14px; margin:0 0 6px; }
.breadcrumb ol{ list-style:none; margin:0; padding:0; display:flex; gap:8px; flex-wrap:wrap; color:#eee; }
.breadcrumb a{ color:#fff; opacity:.9; }
.breadcrumb li+li::before{ content:"›"; margin:0 4px; opacity:.6; }

/* Two column */
.two-col{ display:grid; gap:18px; grid-template-columns:1fr; align-items:start; }
.two-col--rev{ direction:rtl; }
.two-col--rev > *{ direction:ltr; }
@media(min-width:920px){ .two-col{ grid-template-columns:1fr 1.2fr; } }
.two-col__media img{ width:100%; border-radius:12px; }
.caption{ margin:.4em 0 0; font-size:13px; color:var(--muted); }
.two-col__body details{ margin-top:10px; }

/* Prose（長文の可読性） */
.prose p{ margin:0 0 .9em; }
.prose .ta-right{ text-align:right; }
.muted{ color:var(--muted); }

/* Timeline */
.timeline{ margin-top:20px; }
.timeline__ttl{ margin:0 0 8px; font-size:18px; }
.timeline ul{ list-style:none; margin:0; padding:0; border-left:2px solid var(--line); }
.timeline li{ position:relative; padding:8px 0 8px 12px; }
.timeline li::before{
  content:""; position:absolute; left:-6px; top:16px; width:8px; height:8px; border-radius:50%;
  background:var(--brand);
}
.timeline li span{ font-weight:700; margin-right:6px; }

/* Info box */
.info-box{ display:grid; gap:18px; grid-template-columns:1fr; align-items:start; }
.info-box__media img{ width:100%; border-radius:12px; }
@media(min-width:920px){ .info-box{ grid-template-columns:1.1fr 1fr; } }

/* Gallery rows */
.gallery-rows{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.gallery-rows li img{ width:100%; height:280px; object-fit:cover; border-radius:12px; }
@media(min-width:920px){ .gallery-rows li img{ height:320px; } }

/* Align helpers */
.ta-center{ text-align:center; }

/* Contact Form 7 用スタイル */
.contact-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
  padding: 24px 0;
  margin: 0;
}
.form-row:last-of-type {
  border-bottom: none;
}

.form-row dt {
  width: 100%;
  margin-bottom: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}
@media (min-width: 768px) {
  .form-row dt {
    width: 30%;
    margin-bottom: 0;
  }
  .form-row dd {
    width: 70%;
    margin: 0;
  }
}

.form-row dd {
  width: 100%;
  margin: 0;
}

/* 必須・任意チップ */
.required-chip, .optional-chip {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  font-weight: normal;
}
.required-chip {
  background-color: #d85d5d; /* 必須：赤系 */
}
.optional-chip {
  background-color: #888; /* 任意：グレー */
}

/* 入力欄 */
.input-text, .textarea, .select-box {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f9f9f9;
  font-size: 1rem;
  box-sizing: border-box;
}
.input-text:focus, .textarea:focus, .select-box:focus {
  background: #fff;
  border-color: #333;
  outline: none;
}

/* 送信ボタンエリア */
.form-submit-wrap {
  text-align: center;
  margin-top: 40px;
}
/* Contact Form 7のローダー位置調整 */
.wpcf7-spinner {
  position: absolute;
  margin-top: 10px;
}

/* WordPress Pagination */
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  border-radius: 4px;
}
.pagination .page-numbers.current {
  background-color: #333; /* メインカラーに合わせて変更可 */
  color: #fff;
  border-color: #333;
}
.pagination .page-numbers:hover {
  background-color: #eee;
}

/* Post Navigation */
.post-navigation a {
  text-decoration: none;
  color: #666;
  font-weight: bold;
}
.post-navigation a:hover {
  text-decoration: underline;
  color: #333;
}

/* =========================================
   お問い合わせページ専用スタイル
   ========================================= */

/* --- 共通ユーティリティ --- */
.ta-center {
  text-align: center;
}

/* --- 電話お問い合わせセクション --- */
.contact-phone-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.tel-btn-wrapper {
  text-align: center;
  margin-top: 30px;
}

/* 茶色の電話番号ボタン（画像の色味に合わせる） */
.btn--tel {
  display: inline-block;
  background-color: #7b6d55; /* 茶系 */
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 15px 60px;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.3s;
  letter-spacing: 0.05em;
}
.btn--tel:hover {
  opacity: 0.8;
  color: #fff;
}
@media (max-width: 768px) {
  .btn--tel {
    font-size: 1.4rem;
    padding: 12px 40px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* --- メールフォームセクション --- */
.contact-form-section {
  background-color: #f9f9f6; /* 淡いベージュ背景 */
  padding-top: 60px;
  padding-bottom: 80px;
}

/* レイアウト幅制限（中央寄せ） */
.contact-form-layout {
  max-width: 900px;
  margin: 0 auto;
}

/* 見出し位置調整 */
.contact-form-ttl {
  margin-bottom: 30px;
  text-align: left; /* PCでは左揃え */
}
@media (max-width: 768px) {
  .contact-form-ttl {
    text-align: center; /* スマホでは中央 */
  }
}

/* 白いフォームカード */
.contact-form-card {
  background: #fff;
  border-radius: 10px;
  padding: 50px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
@media (max-width: 768px) {
  .contact-form-card {
    padding: 30px 20px;
  }
}

.contact-form-desc {
  margin-bottom: 40px;
  line-height: 1.8;
}

/* --- Contact Form 7 補正 --- */
/* 以前のCSSに加え、より安定させるための記述 */
.contact-form-wrapper {
  max-width: 100% !important; /* カード幅いっぱいに */
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
  padding: 24px 0;
  margin: 0;
  align-items: center; /* 垂直中央揃え */
}

/* ラベル周り */
.form-row dt {
  width: 30%;
  margin: 0;
  padding-right: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}

/* 入力エリア周り */
.form-row dd {
  width: 70%;
  margin: 0;
  box-sizing: border-box;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .form-row {
    display: block; /* 縦積み */
    padding: 20px 0;
  }
  .form-row dt {
    width: 100%;
    margin-bottom: 10px;
    padding-right: 0;
  }
  .form-row dd {
    width: 100%;
  }
}

/* 必須・任意バッジ（画像に合わせて赤色調整） */
.required-chip {
  background-color: #e06c6c;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.optional-chip {
  background-color: #ccc;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 入力欄のデザイン調整 */
.input-text, .textarea, .select-box {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
  font-size: 1rem;
  box-sizing: border-box;
}
.input-text:focus, .textarea:focus, .select-box:focus {
  background: #fff;
  border-color: #7b6d55; /* フォーカス時に茶色枠 */
  outline: none;
}
