@charset "utf-8";
/* =========================================================================
   新HP 共通部品（TOP・固定ページ・記事で読み込む）
   出典：MySelf\DDdeco_新HP_設計書.md「ビジュアル指示書」
   明朝体は見出しだけ。本文は Noto Sans JP 16px・行間1.9
   部品はすべて .ddf の中で使う（色・書体の変数が .ddf に入っている）
   ========================================================================= */
.ddf {
  --ddf-main: #d3dee0;      /* グレイッシュブルー：背景・区切り */
  --ddf-main-pale: #eef3f4;
  --ddf-sub: #c8bca0;       /* グレージュ：飾り線・アイコン */
  --ddf-ink: #4a4a4a;       /* 文字・ボタン */
  --ddf-ink-soft: #6b6b6b;
  --ddf-white: #ffffff;
  --ddf-serif: "Shippori Mincho", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  --ddf-sans: "Noto Sans JP", "Yu Gothic", "游ゴシック", "Hiragino Sans", sans-serif;
  --ddf-inner: 1040px;
  --ddf-gutter: 24px;

  color: var(--ddf-ink);
  font-family: var(--ddf-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  overflow-x: clip;
}
.ddf *, .ddf *::before, .ddf *::after { box-sizing: border-box; }
.ddf p { margin: 0 0 1em; }
.ddf p:last-child { margin-bottom: 0; }
.ddf ul, .ddf ol { list-style: none; margin: 0; padding: 0; }
.ddf img { max-width: 100%; height: auto; display: block; }
.ddf a { color: inherit; }

/* 改行の出し分け（sp-br＝スマホだけ改行／pc-br＝PCだけ改行／pc-sp＝PCだけ全角スペース） */
.ddf-sp-br, .ddf-pc-br { display: block; height: 0; }
@media (min-width: 768px) { .ddf-sp-br { display: inline; } }
@media (max-width: 767px) { .ddf-pc-br { display: inline; } .ddf-pc-sp { display: none; } }

/* 見出しの折り返し：このまとまりの途中では改行しない */
.ddf-nw { display: inline-block; }

/* 画面読み上げ用（見た目には出さない） */
.ddf-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Material Symbols：Googleの読み込みCSSより優先させる */
.ddf .material-symbols-rounded { line-height: 1; }

/* ---------- レイアウト共通 ---------- */
.ddf-inner { max-width: var(--ddf-inner); margin: 0 auto; padding: 0 var(--ddf-gutter); }
.ddf-sec { padding: 96px 0; }
.ddf-sec--tint { background: var(--ddf-main-pale); }
@media (max-width: 767px) {
  .ddf { --ddf-gutter: 16px; }
  .ddf-sec { padding: 64px 0; }
}
@media (max-width: 767px) {
  .ddf .ddf-h2 { font-size: 21px; margin-bottom: 36px; }
}

/* ---------- 見出し（明朝） ---------- */
.ddf-h2 {
  font-family: var(--ddf-serif);
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.6;
  letter-spacing: .06em;
  text-align: center;
  margin: 0 0 48px;
  color: var(--ddf-ink);
}
.ddf-h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--ddf-sub);
  margin: 20px auto 0;
}
.ddf-h2--left { text-align: left; }
.ddf-h2--left::after { margin-left: 0; }
.ddf-h3 {
  font-family: var(--ddf-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.6;
  margin: 0 0 12px;
  color: var(--ddf-ink);
}
.ddf-closing {
  text-align: center;
  font-family: var(--ddf-serif);
  font-size: clamp(17px, 2vw, 20px);
  margin-top: 48px !important;
}
.ddf-note { font-size: 14px; color: var(--ddf-ink-soft); }
.ddf-note a { color: var(--ddf-ink); font-weight: 500; text-underline-offset: 3px; }
.ddf-text-block { max-width: 760px; margin: 0 auto; }

/* ---------- ボタン（濃いグレー地・白文字） ---------- */
.ddf-btns { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 32px; }
.ddf-btns--center { justify-content: center; }
.ddf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 240px;
  padding: 12px 32px;
  border-radius: 999px;
  background: var(--ddf-ink);
  color: var(--ddf-white) !important;
  font-weight: 500;
  letter-spacing: .08em;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.6;
  border: 1px solid var(--ddf-ink);
  transition: opacity .2s, background-color .2s, color .2s;
}
.ddf-btn:hover { opacity: .85; }
.ddf-btn--sub { background: var(--ddf-white); color: var(--ddf-ink) !important; }
.ddf-btn--sub:hover { background: var(--ddf-main-pale); opacity: 1; }
@media (max-width: 767px) {
  .ddf-btn { width: 100%; min-width: 0; }
}

/* ---------- 画像プレースホルダー ---------- */
.ddf-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 12px, transparent 12px 24px),
    var(--ddf-main);
  border: 1px dashed #9fb3b7;
  border-radius: 12px;
  color: var(--ddf-ink-soft);
  text-align: center;
  padding: 24px;
}
.ddf-ph__label { font-size: 13px; line-height: 1.7; max-width: 28em; }

/* =========================================================================
   相談エリア（template-parts/ddf-cta.php・ショートコード [dddeco_cta]）
   グレイッシュブルーの背景に濃いグレーのボタン。各ページの最後に置く
   ========================================================================= */
.ddf-cta { background: var(--ddf-main); text-align: center; }
.ddf-cta .ddf-h2::after { background: var(--ddf-white); }
.ddf-cta__text { max-width: 640px; margin: 0 auto !important; }
.ddf-cta__gift { font-size: 14px; margin-top: 16px !important; color: var(--ddf-ink-soft); }
.ddf-cta__next {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 36px !important;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .7);
  font-size: 15px;
}
.ddf-cta__next-label { color: var(--ddf-ink-soft); font-size: 14px; }
.ddf-cta__next a { font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ddf-sub); }
.ddf-cta__next a::after { content: " →"; }
@media (max-width: 767px) {
  .ddf-cta__text { text-align: left; }
  .ddf-cta__next { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* =========================================================================
   TCDクラシックエディター（クイックタグ）への対応
   プラグインは本文（.tcdce-body）の中の h2・h3・ボタン・囲み枠すべてにスタイルをかけ、
   見た目はCSS変数（--tcdce-…）で決まる。.ddf の中だけ、その変数を新HPの見た目に置き換える。
   （コラムなど .ddf の外のクイックタグは、プラグインの設定どおりのまま）
   ========================================================================= */
.tcdce-body .ddf h2 {
  --tcdce-h2-font-family: var(--ddf-serif);
  --tcdce-h2-font-color: var(--ddf-ink);
  --tcdce-h2-font-weight: 600;
  --tcdce-h2-font-size-pc: clamp(22px, 3.2vw, 32px);
  --tcdce-h2-font-size-sp: 21px;
  --tcdce-h2-line-height: 1.6;
  --tcdce-h2-text-align: center;
  --tcdce-h2-content-width: 100%;
  --tcdce-h2-background: none;
  --tcdce-h2-border-width: 0;
  --tcdce-h2-element-background: none;
  --tcdce-h2-padding-pc: 0;
  --tcdce-h2-padding-sp: 0;
  --tcdce-h2-margin-top-pc: 0;
  --tcdce-h2-margin-top-sp: 0;
  --tcdce-h2-margin-bottom-pc: 48px;
  --tcdce-h2-margin-bottom-sp: 36px;
  letter-spacing: .06em;
}
.tcdce-body .ddf h2::before { display: none; }
/* 見出しの下のゴールドの短い線（クイックタグの見出しにも付ける） */
.ddf h2.custom_h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--ddf-sub);
  margin: 20px auto 0;
}
.ddf-cta h2.custom_h2::after { background: var(--ddf-white); }
.tcdce-body .ddf h3 {
  --tcdce-h3-font-family: var(--ddf-serif);
  --tcdce-h3-font-color: var(--ddf-ink);
  --tcdce-h3-font-weight: 600;
  --tcdce-h3-font-size-pc: 20px;
  --tcdce-h3-font-size-sp: 18px;
  --tcdce-h3-line-height: 1.6;
  --tcdce-h3-text-align: left;
  --tcdce-h3-background: none;
  --tcdce-h3-border-width: 0;
  --tcdce-h3-element-background: none;
  --tcdce-h3-padding-pc: 0;
  --tcdce-h3-padding-sp: 0;
  --tcdce-h3-margin-top-pc: 0;
  --tcdce-h3-margin-top-sp: 0;
  --tcdce-h3-margin-bottom-pc: 10px;
  --tcdce-h3-margin-bottom-sp: 8px;
}
.tcdce-body .ddf h3::before { display: none; }

/* ボタン（カスタムボタン）：濃いグレー地・白文字。is-sub は白地 */
.tcdce-body .ddf .tcdce-button-wrapper {
  --tcdce-button-font-size-pc: 16px;
  --tcdce-button-font-size-sp: 15px;
  --tcdce-button-font-weight: 500;
  --tcdce-button-shape: 999px;
  --tcdce-button-size-width-pc: 240px;
  --tcdce-button-size-width-sp: 100%;
  --tcdce-button-size-height-pc: auto;
  --tcdce-button-size-height-sp: auto;
  --tcdce-button-font-color: #ffffff;
  --tcdce-button-font-color-hover: #ffffff;
  --tcdce-button-background: var(--ddf-ink);
  --tcdce-button-background-hover: #5e5e5e;
  --tcdce-button-border: 1px solid var(--ddf-ink);
  --tcdce-button-border-hover: 1px solid var(--ddf-ink);
  --tcdce-button-transform: none;
  --tcdce-button-transform-hover: none;
  --tcdce-button-overlay: none;
  --tcdce-button-margin-top-pc: 0;
  --tcdce-button-margin-top-sp: 0;
  --tcdce-button-margin-bottom-pc: 0;
  --tcdce-button-margin-bottom-sp: 0;
  margin: 0 !important;
}
.tcdce-body .ddf .tcdce-button-wrapper:has(.is-sub) {
  --tcdce-button-font-color: var(--ddf-ink);
  --tcdce-button-font-color-hover: var(--ddf-ink);
  --tcdce-button-background: var(--ddf-white);
  --tcdce-button-background-hover: var(--ddf-main-pale);
}
.tcdce-body .ddf .tcdce-button { letter-spacing: .08em; line-height: 1.5; padding: 13px 28px; min-height: 52px; min-width: 240px; text-align: center; }
@media (max-width: 767px) {
  .tcdce-body .ddf .tcdce-button-wrapper { width: 100%; }
  .tcdce-body .ddf .tcdce-button { width: 100%; min-width: 0; }
}

/* 囲み枠（カスタム囲み枠）：グレイッシュブルーの淡い色・角丸 */
.tcdce-body .ddf .tcdce-box {
  --tcdce-box-font-size-pc: 16px;
  --tcdce-box-font-size-sp: 16px;
  --tcdce-box-font-color: var(--ddf-ink);
  --tcdce-box-background: var(--ddf-main-pale);
  --tcdce-box-border-width: 0;
  --tcdce-box-icon: none;
  --tcdce-box-icon-offset: 0em;
  --tcdce-box-margin-top-pc: 24px;
  --tcdce-box-margin-top-sp: 16px;
  --tcdce-box-margin-bottom-pc: 24px;
  --tcdce-box-margin-bottom-sp: 16px;
  border-radius: 20px;
  line-height: 1.9;
}
@media (max-width: 767px) { .tcdce-body .ddf .tcdce-box { border-radius: 14px; } }

/* 本文の中に置くとき（固定ページ・記事）：角丸の箱にする。TCDの本文スタイルを打ち消す */
.ddf-part { margin: 64px 0 0; }
.ddf-part .ddf-cta { border-radius: 16px; padding: 56px 0; }
.ddf-part .ddf-h2 { border: 0 !important; background: none !important; padding: 0 !important; }
.ddf-part p, .ddf-part a { line-height: 1.9; }
.ddf-part .ddf-btn { text-decoration: none !important; }
@media (max-width: 767px) {
  .ddf-part { margin-top: 48px; }
  .ddf-part .ddf-cta { padding: 40px 0; }
}
