/* ============================================================
   ds-templates.css
   WP Code: 全ページ / Site Wide Header
   内容: /templates 固有スタイル
          DLカード / LP全セクション
   配色: 既存サイト（#1a2035ベース）準拠
   ============================================================ */

/* --- DLカード（global.css の .ds-card をそのまま使用） --- */
.ds-card-desc { font-size:13px; margin:4px 0 12px; color:#737373; line-height:1.7; }
.ds-card-dl { margin-top:auto; }
.ds-card--template .ds-card-body { display:flex; flex-direction:column; flex-grow:1; }

/* --- ボタン --- */
.ds-btn {
  display:block;
  padding:10px 30px;
  text-decoration:none !important;
  font-weight:bold;
  border-radius:50px;
  font-size:14px;
  text-align:center;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  word-break:keep-all !important;
  line-height:1.5;
  transition:background .2s, color .2s;
}
.ds-btn--dark {
  background:transparent;
  border:1px solid #222;
  color:#222 !important;
}
.ds-btn--dark:hover {
  background:#222;
  color:#fff !important;
}

/* --- LP ラッパー --- */
.ds-lp { margin-top:48px; }
.ds-inner { max-width:1080px; margin:0 auto; padding:0 24px; }

/* --- セクション --- */
.ds-section { padding:56px 0; }
.ds-section--gray { background:#f5f7fa; }
.ds-section--dark { background:#1a2035; color:#fff; }
.ds-section__label { font-size:11px; letter-spacing:.2em; color:#8b93a6; text-transform:uppercase; margin-bottom:8px; }
.ds-section--dark .ds-section__label { color:rgba(255,255,255,.35); }
.ds-section__title { font-size:clamp(18px,2.5vw,24px); font-weight:700; line-height:1.5; margin-bottom:12px; }
.ds-section--dark .ds-section__title { color:#fff; }
.ds-section__lead { font-size:14px; color:#565e74; line-height:1.9; max-width:680px; margin-bottom:36px; }
.ds-section--dark .ds-section__lead { color:rgba(255,255,255,.55); }

/* --- イントロ --- */
.ds-intro { font-size:14px; color:#565e74; line-height:2; max-width:720px; }
.ds-intro p { margin-bottom:16px; }
.ds-intro__note { margin-top:16px; font-size:12px; color:#8b93a6; line-height:1.9; border-left:2px solid #d0d5dd; padding-left:14px; }

/* --- 注意事項ボックス --- */
.ds-note { background:#fff; border:1px solid #e8ecf0; border-radius:6px; padding:24px; font-size:13px; color:#565e74; line-height:2; }
.ds-note__title { font-size:14px; font-weight:700; color:#1a2035; margin-bottom:8px; }
.ds-note ul { padding-left:18px; margin-top:8px; }
.ds-note li { margin-bottom:4px; }

/* --- 収録項目リスト --- */
.ds-contents { display:grid; grid-template-columns:1fr; gap:0; }
.ds-contents__item { display:grid; grid-template-columns:40px 1fr; gap:14px; padding:20px 0; border-bottom:1px solid #e8ecf0; align-items:start; }
.ds-contents__item:last-child { border-bottom:none; }
.ds-contents__icon { width:40px; height:40px; background:#f0f3f6; border-radius:6px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ds-contents__icon svg { width:18px; height:18px; stroke:#8b93a6; fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.ds-contents__name { font-size:14px; font-weight:700; margin-bottom:2px; line-height:1.4; }
.ds-contents__desc { font-size:13px; color:#565e74; line-height:1.8; }
.ds-contents__tag { display:inline-block; font-size:10px; font-weight:500; letter-spacing:.04em; padding:2px 8px; border-radius:2px; margin-bottom:4px; background:#f0f3f6; color:#565e74; }

/* --- フロー --- */
.ds-flow { counter-reset:flow; }
.ds-flow__step { counter-increment:flow; position:relative; padding:0 0 28px 48px; }
.ds-flow__step:last-child { padding-bottom:0; }
.ds-flow__step::before { content:counter(flow); position:absolute; left:0; top:0; width:32px; height:32px; background:#f0f3f6; color:#565e74; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; font-family:'Cormorant Garamond',serif; }
.ds-flow__step::after { content:""; position:absolute; left:15px; top:36px; width:1px; height:calc(100% - 40px); background:#d0d5dd; }
.ds-flow__step:last-child::after { display:none; }
.ds-flow__title { font-size:14px; font-weight:700; margin-bottom:4px; padding-top:5px; }
.ds-flow__text { font-size:13px; color:#565e74; line-height:1.8; }

/* --- テキストリンク --- */
.ds-text-link { color:#1a2035; text-decoration:underline; font-weight:700; }

/* --- FAQ --- */
.ds-faq__item { border-bottom:1px solid #e8ecf0; padding:18px 0; }
.ds-faq__item:first-child { border-top:1px solid #e8ecf0; }
.ds-faq__q { font-size:14px; font-weight:700; line-height:1.6; padding-left:24px; position:relative; margin-bottom:6px; }
.ds-faq__q::before { content:"Q"; position:absolute; left:0; top:0; font-family:'Cormorant Garamond',serif; font-size:16px; font-weight:600; color:#8b93a6; }
.ds-faq__a { font-size:13px; color:#565e74; line-height:1.9; padding-left:24px; position:relative; }
.ds-faq__a::before { content:"A"; position:absolute; left:0; top:0; font-family:'Cormorant Garamond',serif; font-size:16px; font-weight:600; color:#8b93a6; }

/* --- CTA（pill型ボタン・global.css準拠） --- */
.ds-cta-box { text-align:center; max-width:560px; margin:0 auto; padding:40px 24px; }
.ds-cta-box__title { font-size:16px; font-weight:700; margin-bottom:8px; color:#fff; }
.ds-cta-box__sub { font-size:12px; color:rgba(255,255,255,.45); margin-bottom:24px; }
.ds-cta-box__btn { display:inline-block; padding:12px 30px; border:1px solid #fff; color:#fff; border-radius:50px; font-size:14px; font-weight:700; text-decoration:none; transition:background .2s,color .2s; }
.ds-cta-box__btn:hover { background:#fff; color:#1a2035; }

/* --- 監修者カード --- */
.ds-sv-card { background:#fff; border:1px solid #e8ecf0; border-radius:8px; overflow:hidden; display:grid; grid-template-columns:100px 1fr; gap:0; max-width:720px; align-items:start; }
.ds-sv__photo { width:100px; aspect-ratio:3/4; background:#e8ecf0; overflow:hidden; }
.ds-sv__photo img { width:100%; height:100%; object-fit:cover; object-position:center 15%; }
.ds-sv__body { padding:28px 24px; }
.ds-sv__name { font-size:18px; font-weight:700; line-height:1.3; margin-bottom:2px; }
.ds-sv__name small { display:block; font-size:12px; font-weight:400; color:#8b93a6; margin-top:4px; }
.ds-sv__bio { font-size:13px; color:#565e74; line-height:1.9; margin-top:16px; }
.ds-sv__quals { list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.ds-sv__quals li { font-size:11px; color:#565e74; background:#eef1f5; padding:4px 12px; border-radius:3px; }
.ds-sv__scope { font-size:12px; color:#8b93a6; line-height:1.9; max-width:720px; margin-top:16px; }

/* --- 運営者情報 --- */
.ds-about-grid { display:grid; grid-template-columns:1fr; gap:20px; }
.ds-about-grid__item { border-top:1px solid #e8ecf0; padding-top:16px; }
.ds-about-grid__name { font-size:14px; font-weight:700; margin-bottom:4px; }
.ds-about-grid__meta { font-size:12px; color:#8b93a6; line-height:2; }

/* --- 免責事項 --- */
.ds-disclaimer { background:#f0f3f6; border-top:1px solid #e8ecf0; padding:40px 0; font-size:13px; color:#565e74; line-height:2; }
.ds-disclaimer p { max-width:800px; }
.ds-disclaimer__title { font-size:14px; font-weight:700; color:#1a2035; margin-bottom:12px; }

/* --- レスポンシブ --- */
@media (min-width:768px) {
  .ds-section { padding:72px 0; }
  .ds-about-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width:768px) {
  .ds-btn {
    font-size:12px !important;
    padding:8px 10px !important;
    border-radius:8px !important;
  }
}