@charset "UTF-8";
/* =========================================================
   Senteiya / common.css  —  unified (PC:1200px / SP:800px)
   - Container: --container-pc = 1200px
   - Breakpoint: 800px
   - Header heights: PC 110px / SP 80px
   - FV height: 100vh - var(--header-h-*)
   ========================================================= */

/* ===== ベース ===== */
html, body { font-family: sans-serif; }

/* FV の first-text だけはセリフ体維持（子孫も含めて適用） */
#fv .first-text, #fv .first-text * { font-family: "Noto Serif JP", serif !important; }

/* ===== デザイントークン ===== */
:root{
  --brand:#2f7f5f; --brand-2:#2FA36A;
  --ink:#111; --ink-2:#4b5a52;
  --border:#e8ece9;
  --shadow-s:0 4px 16px rgba(0,0,0,.06);
  --shadow-m:0 8px 22px rgba(0,0,0,.08);
  --shadow-l:0 12px 30px rgba(0,0,0,.12);
  --card-bg:#fff; --card-bd:#e5e7eb;
  --text-main:#111827; --text-sub:#64748b;

  /* 器幅 & ガター */
  --container-pc: 1200px;
  --gutter-pc: 24px;
  --gutter-sp: 6px;   /* ← スマホ左右の余白（狭めたい時はここで調整） */

  /* ヘッダー高 */
  --header-h-pc: 110px;
  --header-h-sp: 80px;

  /* FAQ */
  --faq-bg:#fff; --faq-line:rgba(0,0,0,.07);
  --faq-shadow:0 2px 12px rgba(0,0,0,.06);
  --faq-radius:14px; --faq-accent:#2f6b4f; --faq-accent-weak:#88b49f;
}

/* Cocoon の overflow 隠しを解除（FV用） */
.entry-content { overflow: visible; }

/* =======================  ファーストビュー  ======================= */
.first-slider-fade{
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h-pc));
  min-height: 420px;
  overflow: hidden;
}

/* FVをビューポートいっぱいに（左右はみ出し防止） */
#fv.first-slider-fade{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: clamp(420px, 100vh - var(--header-h-pc), 820px);
}

#fv .slide{
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity .8s ease;
}
#fv .slide.active{ opacity: 1; }

/* 可読性オーバーレイ */
#fv .fv-overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 38%,
    rgba(0,0,0,.32) 60%,
    rgba(0,0,0,.62) 100%
  );
  z-index: 2;
}

/* FV テキスト */
#fv .first-text{
  position: absolute;
  z-index: 3;
  top: 50%;
  left: max(48px, 7vw);
  transform: translateY(-50%);
  text-align: left;
  max-width: 680px;
}
#fv h1, #fv p, #fv .hero-sub, #fv .hero-lead{
  margin: 0 0 .5em;
  color: #fff;
  background: transparent;
  border: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.75),
               0 0 3px rgba(0,0,0,.85),
               0 0 18px rgba(0,0,0,.45);
}
#fv h1{ font-family:"Noto Serif JP",serif; font-size: clamp(28px, 4vw, 56px); line-height: 1.12; }
#fv .hero-sub{ font-family:"Noto Serif JP",serif; font-weight: 700; font-size: clamp(18px, 2.2vw, 28px); }
#fv .hero-lead{ font-family:"Noto Serif JP",serif; font-size: clamp(14px, 1.6vw, 18px); line-height: 1.8; }

/* ★ SP（≤800px）：ヘッダー80px差し引き＋コントラスト強化 */
@media (max-width:800px){
  .first-slider-fade{ height: calc(100vh - var(--header-h-sp)); min-height: 360px; }
  #fv .first-text{
    top: 50%;
    left: clamp(16px, 5vw, 28px);
    transform: translateY(-50%);
    text-align: left !important;
    max-width: 92vw;
  }
  #fv h1{ font-size: 2rem; }
  .hero-sub{ font-size: 1.4rem; }
  .hero-lead{ font-size: 1rem; }
  #fv .fv-overlay{
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0) 30%,
      rgba(0,0,0,.50) 60%,
      rgba(0,0,0,.82) 100%
    );
  }
}

/* 動きが苦手なユーザー配慮 */
@media (prefers-reduced-motion:reduce){
  #fv .slide{ transition: none; }
}

/* =======================  見出し装飾 OFF  ======================= */
.lead h2,
#services .sec-title,
.entry-content h2,
.main .entry-content h2{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.lead h2::before,
.lead h2::after,
#services .sec-title::before,
#services .sec-title::after{ content: none !important; }

/* =======================  リード文  ======================= */
.lead{
  max-width: 920px;
  margin: clamp(28px,4vw,48px) auto clamp(12px,2vw,18px);
  text-align: center;
}
.lead h2{
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .02em;
  margin: 0 auto .8em;
}
@media (max-width:560px){
  .lead h2{ font-size: clamp(16px, 5.2vw, 28px); }
}
html{ -webkit-text-size-adjust: 100%; }

.lead p{ line-height: 2; margin: 0 auto; }
@media (max-width:800px){
  .lead p{ text-align: left; padding-inline: 16px; }
}

/* =======================  共通セクション / カード  ======================= */
.sec{ padding: 60px 20px; text-align: center; }
.sec--tight{ padding-top: 20px; padding-bottom: 48px; }
.sec-title{ font-size: 1.5rem; margin-bottom: 1.2em; }

.cards{ list-style: none; margin: 0 auto; padding: 0; }

.cards--2fixed{
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 28px;
  margin: 0 auto;
}
@media (max-width:560px){
  .cards--2fixed{ grid-template-columns: 1fr; max-width: 100%; }
}
.card{
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-m);
  padding: 16px;
}
.card img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 12px;
}
.card h3{ font-size: 1rem; margin: 6px 0 8px; }
.card p{ font-size: .95rem; line-height: 1.7; margin: 0; }

#services .card h3, #services .card h3 a{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
#services .card h3::before, #services .card h3::after{ content: none !important; }

/* サービス：カード行の最大幅 */
#services .cards{
  margin: clamp(16px,2.4vw,28px) auto 0;
  max-width: var(--container-pc);
}
#services .cards--2fixed{ max-width: var(--container-pc); }
#services .card{ padding: 12px 16px 12px !important; }
#services .card h3{
  text-align: center;
  font-weight: 700;
  font-size: clamp(16px,1.6vw,20px);
  margin: .7em 0 .45em !important;
}
#services .card p{ text-align: center; }
#services .card > *:last-child{ margin-bottom: 0 !important; }

@media (max-width:560px){
  #services.sec{ padding-left: 0 !important; padding-right: 0 !important; }
  #services .cards{
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 0 12px;
    max-width: 100% !important;
  }
  #services .card{ border-radius: 14px; box-shadow: var(--shadow-m); padding: 12px 14px; }
  #services .card img{ border-radius: 12px; }
}

/* 対応エリア＋CTA */
#services .note{
  margin: 12px auto 10px;
  text-align: center;
  font-size: 14px; line-height: 1.7;
  color: #5b6b65;
}
#services .cta-small{ text-align: center; margin-top: 6px; }

/* =======================  選ばれる3つの理由  ======================= */
.sen-sec{ padding-block: clamp(2rem, 2.5vw + 1rem, 3rem); }
.sen-container{
  inline-size: min(100%, var(--container-pc));
  margin-inline: auto;
  padding-inline: var(--gutter-pc);
}
.sen-container h2{ text-align: center; margin-bottom: 1rem; }

#reasons .reason-list{
  display: grid;
  gap: clamp(12px, 1.8vw, 18px);
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container-pc);
  margin: 0 auto;
}
#reasons .reason{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-s);
  padding: 14px 16px;
}
#reasons .reason .icon{
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  inline-size: 44px; block-size: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand), white 86%);
  color: var(--brand);
}
#reasons .reason .icon svg{ width: 24px; height: 24px; }
#reasons .reason h4{ margin: 0 0 .25em; font-size: clamp(15px,1.3vw,18px); }
#reasons .reason p{ margin: 0; font-size: .95rem; line-height: 1.65; color: var(--ink-2); }

@media (max-width:560px){
  #reasons .reason-list{ grid-template-columns: 1fr; }
  #reasons .reason{ padding: 12px 14px; }
  #reasons .reason .icon{ inline-size: 38px; block-size: 38px; }
  #reasons .reason .icon svg{ width: 20px; height: 20px; }
}

/* =======================  ショートカット  ======================= */
#shortcuts .cards--2fixed{
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
#shortcuts .card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 18px;
  box-shadow: var(--shadow-l);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
#shortcuts .card:hover{ transform: translateY(-2px); box-shadow: 0 12px 34px rgba(0,0,0,.12); }
#shortcuts .card > a{ display: block; color: inherit; text-decoration: none; }
#shortcuts .card img{ display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
#shortcuts .card h3{
  margin: 14px 16px 6px;
  font-size: clamp(18px,1.9vw,20px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  border: 0 !important; padding: 0 !important; background: transparent !important; box-shadow: none !important;
}
#shortcuts .card h3::before, #shortcuts .card h3::after{ display: none !important; content: none; }
#shortcuts .card p{
  margin: 0 16px 16px;
  font-size: clamp(14px,1.5vw,15px);
  line-height: 1.7;
  color: #555;
}
@media (max-width:800px){
  #shortcuts .cards--2fixed{ grid-template-columns: 1fr; gap: 16px; }
  #shortcuts{ padding-inline: clamp(12px, 5vw, 20px); }
}

/* =======================  お客様の声  ======================= */
#voices .voice{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(12px, 2vw, 20px);
}
@media (max-width:900px){
  #voices .voice{ grid-template-columns: 1fr; }
}
#voices .quote{
  margin: 0; padding: 20px 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(16,24,40,.06);
}
#voices .quote blockquote{
  margin: 0;
  font-size: clamp(14px, 2.1vw, 16px);
  line-height: 1.9;
  color: var(--text-main);
}
#voices .quote blockquote::before,
#voices .quote blockquote::after{ content: none !important; display: none !important; }
#voices .quote figcaption{
  margin-top: 10px; text-align: right; color: var(--text-sub); font-size: .9rem;
}

/* =======================  FAQ  ======================= */
#faq{ padding-block: clamp(44px, 6vw, 72px); }
#faq .accordion{
  box-sizing: border-box;
  width: min(var(--container-pc), 100%);
  padding-inline: 16px;
  margin-inline: auto;
  overflow-x: clip;
}
#faq .accordion-item{
  margin: 14px 0;
  border: 0; border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 28px rgba(0,0,0,.06);
  overflow: hidden;
}
#faq .accordion-item > .accordion-button{
  position: relative; display: flex; align-items: center; width: 100%;
  padding: 18px 56px 18px 20px;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.08) !important; border-radius: 14px !important;
  font-size: 16px; font-weight: 700; text-align: left; box-shadow: none !important; outline: 0;
}
/* 既存の見出し装飾系を消す */
#faq .accordion-item > .accordion-button::before,
#faq .accordion-item > .accordion-button i,
#faq .accordion-item > .accordion-button svg,
#faq .accordion-item > .accordion-button [class*="icon"],
#faq .accordion-item > .accordion-button [class*="toggle"],
#faq .accordion-item > .accordion-button *::before,
#faq .accordion-item > .accordion-button *::after{
  content: none !important; display: none !important;
}
#faq .accordion-item > .accordion-button::after{
  content: "+";
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%);
  color: #2b6e4a; font-size: 22px; font-weight: 800; line-height: 1;
  background: none !important; border: none !important; border-radius: 0 !important; box-shadow: none !important;
}
#faq .accordion-item > .accordion-button[aria-expanded="true"]::after{ content: "–"; }
#faq .accordion-item > .accordion-button[aria-expanded="true"]{
  border-radius: 14px 14px 0 0 !important;
  background: #f7fbf9 !important;
  box-shadow: inset 0 3px 0 #2b6e4a !important;
}
#faq .accordion-content{
  display: none !important;
  padding: 0 20px;
  background: #f7fbf9;
  border: 1px solid rgba(0,0,0,.08); border-top: none; border-radius: 0 0 14px 14px;
  overflow: visible; height: auto !important; max-height: none !important; opacity: 1 !important;
}
#faq .accordion-item > .accordion-button[aria-expanded="true"] + .accordion-content,
#faq .accordion-item > .accordion-button[aria-expanded="true"] ~ .accordion-content,
#faq .accordion-item:has(> .accordion-button[aria-expanded="true"]) .accordion-content{
  display: block !important; padding: 18px 20px 20px;
}
#faq .accordion-content p{
  margin: 0; font-size: 15px; line-height: 1.9; color: #333;
  word-break: break-word; overflow-wrap: anywhere;
}

/* =======================  幅の統一（器合わせ）  ======================= */
/* PC（>800px）は各セクションの“器”を1200pxに揃える */
@media (min-width:801px){
  #shortcuts, #reasons .sen-container, #voices, #faq{
    width: min(var(--container-pc), 100%);
    margin-inline: auto;
    padding-inline: var(--gutter-pc);
  }
  #shortcuts .cards--2fixed,
  #reasons .reason-list,
  #voices .voice,
  #faq .accordion{
    max-width: none !important;
    width: 100%;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }

  /* FV直上の余白リセット（ヘッダーとの空き対策） */
  .main{ padding-top: 0 !important; }
  .entry-content > *:first-child{ margin-top: 0 !important; }
  #fv, .first-slider-fade{ margin-top: 0 !important; }
}

/* SP（≤800px）は全面100%で左右gutterのみ */
@media (max-width:800px){
  .lead,
  #services.sec,
  #shortcuts,
  #reasons,
  #reasons .sen-container,
  #voices,
  #faq{
    width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: var(--gutter-sp) !important;
  }
  #services .cards,
  #shortcuts .cards--2fixed,
  #reasons .reason-list,
  #voices .voice,
  #faq .accordion{
    max-width: 100% !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }
}

/* =====（任意）1行固定にしたい時のユーティリティ ===== */
.lead h2.fit-one-line{
  text-align: center !important;
  white-space: nowrap !important;
  margin: 0 auto .8em !important;
  display: inline-block;
  line-height: 1.25;
  letter-spacing: .02em;
  max-width: 100%;
}

/* ===== メインとフッターの余白調整 ===== */
#faq {
  margin-bottom: 10px !important;   /* ← デフォルトの余白を小さく */
  padding-bottom: 10px !important;  /* 内側の下余白も縮める */
}
.main { margin-bottom: 10px !important; }

/* === 統一コンテナ：本文直下のブロックを全部そろえる === */
.entry-content :where(.wp-block-group, .wp-block-columns):not(.alignfull){
  width: min(var(--container-pc), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter-pc);
}
/* スマホはトークンどおり */
@media (max-width:800px){
  .entry-content :where(.wp-block-group, .wp-block-columns):not(.alignfull){
    padding-inline: var(--gutter-sp);
  }
}
/* alignwide は少し広めに（任意） */
.entry-content :where(.wp-block-group.alignwide, .wp-block-columns.alignwide){
  width: min(calc(var(--container-pc) + 160px), 100%);
}
/* 既に器指定がある自前セクタは重複しないように調整（任意の保険） */
:where(#services, #reasons, #shortcuts, #voices, #faq) :where(.sen-container){
  padding-inline: var(--gutter-pc);
}
@media (max-width:800px){
  :where(#services, #reasons, #shortcuts, #voices, #faq) :where(.sen-container){
    padding-inline: var(--gutter-sp);
  }
}

/* 料金の目安 などのカード列：横一列時の左右ガターは列ギャップに任せる */
.entry-content .wp-block-columns{
  padding-inline: 0;
  gap: 24px; /* PCの列間。スマホは下で縮める */
}
@media (max-width:800px){
  .entry-content .wp-block-columns{ gap: 12px; }
}

/* === SP: sen-container の横余白を統一（特異性を上げる＆セレクタ修正） === */
@media (max-width:800px){
  #services .sen-container,
  #reasons  .sen-container,
  #shortcuts .sen-container,
  #voices   .sen-container,
  #faq      .sen-container{
    padding-left:  var(--gutter-sp) !important;
    padding-right: var(--gutter-sp) !important;
  }
}

/* （PC）保険：各セクションの器合わせ。必ず .sen-container に掛ける */
@media (min-width:801px){
  #services .sen-container,
  #reasons  .sen-container,
  #shortcuts .sen-container,
  #voices   .sen-container,
  #faq      .sen-container{
    padding-left:  var(--gutter-pc) !important;
    padding-right: var(--gutter-pc) !important;
    width: min(100%, var(--container-pc));
    margin-inline: auto;
  }
}

/* === TOPだけ main をフルブリード化して、FVは100%で出す === */
@media (min-width:801px){
  /* 1) <main> を画面幅に（左右の白余白をゼロ） */
  body.page-id-35 .main{
    max-width: none !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 2) FVは“器＝main”に合わせて素直に100% */
  body.page-id-35 #fv.first-slider-fade{
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
}

/* 保険：横スクロール抑止 */
html, body { overflow-x: hidden; }
