/* ==========================================================================
   やねうら通信 _design-system.css
    brand: Navy × Orange（清潔感＋緊急性の住宅系）
   適用: 子テーマに本ファイルを配置し enqueue、または SWELL「追加CSS」に全量貼付。
   ルール(00): CSSはこのファイルに集約。別ファイル・勝手な色追加は禁止。
   ========================================================================== */

:root{
  --yt-navy:#1f3a5f;      /* メイン：信頼・住宅 */
  --yt-navy-d:#13263d;    /* 濃ネイビー（屋根裏/帯） */
  --yt-orange:#f5833f;    /* アクセント：緊急性・CTA */
  --yt-orange-d:#e06a24;  /* アクセント濃（hover） */
  --yt-cream:#f7f3ec;     /* ベース（背景） */
  --yt-ink:#2a2f36;       /* 本文テキスト */
  --yt-muted:#5a6672;     /* 補助テキスト */
  --yt-line:#e6ddcf;      /* 罫線 */
  --yt-white:#ffffff;
  --yt-radius:14px;
  --yt-maxw:1080px;
  --yt-shadow:0 6px 24px rgba(19,38,61,.08);
}

/* ---- base accents（サイト共通・控えめに適用） ---- */
body{ color:var(--yt-ink); }
a{ color:var(--yt-navy); text-underline-offset:2px; }
a:hover{ color:var(--yt-orange-d); }

/* 本文コンテンツの見出しアクセント（SWELL: .post_content） */
.post_content h2{
  border-left:6px solid var(--yt-orange);
  padding-left:.6em; color:var(--yt-navy); line-height:1.5;
}
.post_content h3{ color:var(--yt-navy); }

/* 比較表（Gutenberg標準テーブル） */
.wp-block-table th{ background:var(--yt-navy); color:#fff; font-weight:700; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd){ background:var(--yt-cream); }
.wp-block-table td,.wp-block-table th{ border-color:var(--yt-line); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.yt-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.85em 1.6em; border-radius:999px; font-weight:700;
  text-decoration:none; line-height:1.2; transition:.2s; border:2px solid transparent;
}
.yt-btn--primary{ background:var(--yt-orange); color:#fff; box-shadow:0 4px 14px rgba(245,131,63,.35); }
.yt-btn--primary:hover{ background:var(--yt-orange-d); color:#fff; transform:translateY(-1px); }
.yt-btn--ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.7); }
.yt-btn--ghost:hover{ background:rgba(255,255,255,.12); color:#fff; }

/* ==========================================================================
   Front page (yt-*)
   ========================================================================== */
.yt-hero{
  background:linear-gradient(135deg,var(--yt-navy) 0%,var(--yt-navy-d) 100%);
  color:#fff; padding:72px 20px; text-align:center;
}
.yt-hero__inner{ max-width:var(--yt-maxw); margin:0 auto; }
.yt-hero__eyebrow{ color:var(--yt-orange); font-weight:700; letter-spacing:.08em; margin:0 0 .6em; }
.yt-hero__title{ font-size:clamp(2rem,5vw,3.2rem); line-height:1.25; margin:0 0 .4em; color:#fff; font-weight:800; }
.yt-hero__lead{ color:#dbe3ee; font-size:1.05rem; max-width:720px; margin:0 auto 1.8em; line-height:1.9; }
.yt-hero__actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

.yt-section{ max-width:var(--yt-maxw); margin:0 auto; padding:60px 20px; }
.yt-section--tint{ background:var(--yt-cream); max-width:none; }
.yt-section--tint > *{ max-width:var(--yt-maxw); margin-left:auto; margin-right:auto; }
.yt-h2{
  text-align:center; color:var(--yt-navy) !important;
  background:none !important; border:none !important; box-shadow:none !important;
  font-size:clamp(1.5rem,3vw,2rem); font-weight:800;
  margin:0 0 1.6em; padding:0 0 .55em; position:relative; line-height:1.4;
}
.yt-h2::before{ display:none !important; }   /* SWELL見出し装飾の帯を無効化 */
.yt-h2::after{ content:""; position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:48px; height:4px; border-radius:2px; background:var(--yt-orange); }

.yt-grid{ display:grid; gap:20px; }
.yt-grid--3{ grid-template-columns:repeat(3,1fr); }

.yt-card{
  display:flex; flex-direction:column; gap:.4em; text-decoration:none;
  background:#fff; border:1px solid var(--yt-line); border-radius:var(--yt-radius);
  padding:24px; transition:.2s; box-shadow:var(--yt-shadow);
}
.yt-card:hover{ transform:translateY(-3px); border-color:var(--yt-orange); }
.yt-card__tag{ color:var(--yt-orange); font-weight:700; font-size:.85rem; }
.yt-card__title{ color:var(--yt-navy); font-weight:800; font-size:1.2rem; }
.yt-card__desc{ color:var(--yt-muted); font-size:.92rem; }
.yt-card--species .yt-card__title{ font-size:1.3rem; }

.yt-links{ list-style:none; margin:0 auto; padding:0; max-width:760px; }
.yt-links li{ border-bottom:1px dashed var(--yt-line); }
.yt-links a{ display:block; padding:16px 8px 16px 28px; position:relative; font-weight:600; }
.yt-links a::before{ content:"›"; position:absolute; left:8px; color:var(--yt-orange); font-weight:800; }

.yt-cta{ background:var(--yt-navy-d); color:#fff; padding:56px 20px; text-align:center; }
.yt-cta__inner{ max-width:720px; margin:0 auto; }
.yt-cta__title{ font-size:1.4rem; font-weight:800; margin:0 0 .4em; color:#fff; }
.yt-cta__text{ color:#cfd8e4; margin:0 0 1.4em; line-height:1.8; }

@media(max-width:768px){
  .yt-grid--3{ grid-template-columns:1fr; }
  .yt-hero{ padding:56px 18px; }
  .yt-section{ padding:44px 18px; }
}

/* ==========================================================================
   カテゴリアーカイブ（説明文ボックス）
   ※SWELLのクラス差異があれば調整。説明文は .yt-catdesc でも流用可
   ========================================================================== */
.archive .term-description,
.archive .archive_description{
  background:var(--yt-cream); border-left:5px solid var(--yt-orange);
  padding:16px 20px; border-radius:8px; color:var(--yt-ink); line-height:1.9; margin:0 0 1.5em;
}

/* ==========================================================================
   Contact Form 7（フォームデザイン調整）
   ========================================================================== */
.wpcf7{ max-width:680px; margin:0 auto; }
.wpcf7 .wpcf7-form p{ margin:0 0 1.1em; }
.wpcf7-form label{ display:block; font-weight:700; color:var(--yt-navy); margin-bottom:.4em; }
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form textarea,
.wpcf7-form select{
  width:100%; padding:.8em 1em; border:1.5px solid var(--yt-line); border-radius:10px;
  background:#fff; font-size:1rem; color:var(--yt-ink); transition:.2s; box-sizing:border-box;
}
.wpcf7-form input:focus,.wpcf7-form textarea:focus{
  outline:none; border-color:var(--yt-orange); box-shadow:0 0 0 3px rgba(245,131,63,.18);
}
.wpcf7-form textarea{ min-height:160px; resize:vertical; }
.wpcf7-form input[type=submit]{
  background:var(--yt-orange); color:#fff; border:0; border-radius:999px;
  padding:.9em 2.4em; font-weight:700; font-size:1rem; cursor:pointer;
  box-shadow:0 4px 14px rgba(245,131,63,.35); transition:.2s;
}
.wpcf7-form input[type=submit]:hover{ background:var(--yt-orange-d); transform:translateY(-1px); }
.wpcf7-spinner{ margin-top:.6em; }
.wpcf7 .wpcf7-not-valid-tip{ color:var(--yt-orange-d); font-size:.85rem; }
.wpcf7 .wpcf7-response-output{ border-radius:8px; }

