@charset "UTF-8";
/* ============================================================
   tool.gorou-diy.com — DIY Tool Navigator HOME v7
   Task: DTN-TOP-V7-WORDPRESS-HOME-PRODUCTION-IMPLEMENTATION

   Visual / UX Authority : dtn-top-v7-review.html（v7、再デザイン禁止）
   Delivery              : AFFINGER7 Child Theme / HOME専用Template + CSS
   Scope                 : 本CSSは page-tool-gorou-home-v7.php が選択された
                           固定ページでのみ enqueue される（Page-scoped）。
                           さらに全ルールを .tgdv7 配下へ閉じ、AFFINGER既存CSSとの
                           双方向の衝突を回避する。

   本CSSが行わないこと:
     - site-wide設定の変更
     - AFFINGER7本体（親テーマ）の変更
     - header.php / footer.php の変更
     - 記事ページ・他固定ページへの影響（enqueueがpage-scopedのため構造的に不可能）
     - 新Renderer / 新Framework / 新Design Systemの導入

   html{} / :root{} / body{} に対する数本のルールはSelectorとしては大域だが、
   本ファイル自体がpage-scoped enqueueのため、他ページへは一切出力されない。
   ============================================================ */

/* ------------------------------------------------------------
   1. AFFINGER7 Header / Footer の可視部分をHOMEに限り非表示にする。
      get_header() / get_footer() は削除していないため、wp_head / wp_footer
      を含むWordPress lifecycle・Site Kit・テーマJSはすべて維持される。
      要素はDOMに残し、表示のみ抑止する（site-wide設定は変更しない）。

      #header-full  … キャッチフレーズ(h1.descr) / sitename / 既存グローバルナビ
                       (#s-navi) / 検索 / ヘッダー画像(#gazou-wide) を内包する
                       ヘッダー可視領域すべて。
                       front page では h1.descr + ヘッダー画像、それ以外では
                       p.descr かつヘッダー画像なし、と出力が変わるが、
                       ID単位で抑止するため両状態で同一に効く。
      #footer       … AFFINGERフッターの可視部分（ロゴ / description / copyright）
      #page-top     … AFFINGERの「上へ戻る」ボタン。v7のFloating CTAと衝突するため。
   ------------------------------------------------------------ */
#header-full,
#footer,
#page-top { display: none !important; }

/* v7ヘッダーを最上部へ密着させる（AFFINGERの #content-w 上余白を打ち消す） */
#content-w { padding-top: 0 !important; }

/* ------------------------------------------------------------
   2. v7 design tokens（dtn-top-v7-review.html :root をそのまま移設）
   ------------------------------------------------------------ */
:root{
  color-scheme:light;
  --ink:#10140f;
  --ink2:#3d453c;
  --ink3:#79806f;
  --line:#e3e0d6;
  --line2:#efece2;
  --bg:#fff;
  --bg2:#f7f5ee;
  --ph:#e8e4d9;
  --ph2:#dcd7c9;
  --green:#14512f;
  --green-d:#0d3a21;
  --green-l:#e6efe9;
  --wood:#a9773a;
  --wood-l:#f3e7d2;
  --mark:#eccf92;
  --need:#b3302b;   --need-l:#fbeae9;
  --sub:#9d6414;    --sub-l:#f9efdc;
  --no:#6e7469;     --no-l:#eeece4;
}

/* v7は body 背景=白を前提とする。ページ背景のみ合わせる（typographyは .tgdv7 側） */
body{ background:var(--bg); }

/* ------------------------------------------------------------
   3. v7ルート（v7 の :root box-sizing / safe-area、body typography を移設）
   ------------------------------------------------------------ */
.tgdv7{
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  background:var(--bg);
  color:var(--ink);
  font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",YuGothic,Meiryo,sans-serif;
  font-size:15.5px;
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
}

/* AFFINGERはbodyだけでなく個々の要素へ font-family を直接指定するため、
   .tgdv7 への指定だけでは子孫へ継承されず、v7と別フォントで描画されてしまう
   （実測: v7= system-ui系 / 未対策の実装= -apple-system,BlinkMacSystemFont系。
     hero-subが2行→3行に崩れる）。v7のフォントスタックを子孫まで明示する。
   後続のより詳細なSelector（例 .tgdv7 .spec code）は本ルールを上書きできる。 */
.tgdv7,
.tgdv7 *{
  font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",YuGothic,Meiryo,sans-serif;
}

/* AFFINGER既存CSSがv7内の素のh1〜h3 / p / ul へ及ぶのを打ち消すLocal reset。
   （本テンプレート出力は .post 配下ではないためAFFINGERの見出し装飾は
     元々適用されないが、テーマ更新時の退行を防ぐ保険として明示する） */
.tgdv7 h1,.tgdv7 h2,.tgdv7 h3,.tgdv7 h4,.tgdv7 p,.tgdv7 ul,.tgdv7 ol,.tgdv7 li{
  margin:0;padding:0;border:0;background:none;list-style:none;
}
.tgdv7 h1::before,.tgdv7 h1::after,
.tgdv7 h2::before,.tgdv7 h2::after,
.tgdv7 h3::before,.tgdv7 h3::after,
.tgdv7 h4::before,.tgdv7 h4::after{ content:none;display:none; }

.tgdv7 a:focus-visible,
.tgdv7 button:focus-visible{ outline:2px solid var(--green);outline-offset:2px;border-radius:4px; }

@media (prefers-reduced-motion: reduce){
  .tgdv7 *,.tgdv7 *::before,.tgdv7 *::after{ transition:none !important;animation:none !important; }
}

/* ------------------------------------------------------------
   4. v7本体CSS（dtn-top-v7-review.html <style> を .tgdv7 スコープへ移設）
      宣言値はv7のまま。Selectorのみスコープ化している（再デザインなし）。
   ------------------------------------------------------------ */
.tgdv7 *,.tgdv7 *::before,.tgdv7 *::after{box-sizing:inherit}
html{scroll-behavior:smooth;scroll-padding-top:78px}
.tgdv7 a{color:inherit;text-decoration:none}
.tgdv7 svg{display:block}
.tgdv7 .wrap{width:min(100% - 48px,1240px);margin-inline:auto}

/* ============================================================
   PHOTO PLACEHOLDER
   実写差し替え箇所。data-ph にAsset IDと構図を記載。
   ============================================================ */
.tgdv7 .ph{
  position:relative;background:var(--ph);overflow:hidden;
  background-image:
    repeating-linear-gradient(135deg,rgba(255,255,255,.55) 0 2px,transparent 2px 12px);
}
.tgdv7 .ph::after{
  content:attr(data-ph);
  position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);
  text-align:center;font-size:11px;line-height:1.7;letter-spacing:.06em;
  color:#8e8877;font-weight:700;padding:0 12px;white-space:pre-line;
}
.tgdv7 .ph::before{
  content:"PHOTO";position:absolute;left:10px;top:10px;z-index:2;
  font-size:9.5px;font-weight:900;letter-spacing:.14em;color:#fff;
  background:rgba(16,20,15,.5);padding:3px 7px;border-radius:3px;
}
.tgdv7 .ph-16x9{aspect-ratio:16/9}
.tgdv7 .ph-4x3{aspect-ratio:4/3}
.tgdv7 .ph-3x2{aspect-ratio:3/2}
.tgdv7 .ph-1x1{aspect-ratio:1/1}

.tgdv7 .ph.has-photo{background:none}
.tgdv7 .ph.has-photo::before,.tgdv7 .ph.has-photo::after{display:none}
.tgdv7 .ph.has-photo .slot-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}

/* ============================================================
   HEADER
   ============================================================ */
.tgdv7 .hd{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);backdrop-filter:blur(6px)}
.tgdv7 .hd-in{position:relative;display:flex;align-items:center;gap:32px;height:70px}
.tgdv7 .brand{display:flex;align-items:center;gap:10px}
.tgdv7 .brand-ic{width:30px;height:30px;border-radius:7px;background:var(--green);display:grid;place-items:center;flex:none}
.tgdv7 .brand b{display:block;font-size:17.5px;font-weight:900;letter-spacing:-.015em;line-height:1.2}
.tgdv7 .brand small{display:block;font-size:10.5px;color:var(--ink3);letter-spacing:.04em}
.tgdv7 .gnav{display:flex;gap:26px;font-size:14px;font-weight:700;color:var(--ink2)}
.tgdv7 .gnav a{padding:4px 0;border-bottom:2px solid transparent}
.tgdv7 .gnav a:hover{color:var(--green);border-color:var(--green)}
.tgdv7 .hd-r{margin-left:auto;display:flex;align-items:center;gap:14px}
.tgdv7 .ibtn{width:36px;height:36px;padding:0;display:grid;place-items:center;border:0;background:none;cursor:pointer;color:var(--ink2)}
.tgdv7 .ibtn:hover,.tgdv7 .ibtn[aria-expanded="true"]{color:var(--green)}
.tgdv7 .hd-cta{display:inline-flex;align-items:center;height:40px;padding:0 18px;border-radius:6px;background:var(--green);color:#fff;font-size:13.5px;font-weight:800}
.tgdv7 .hd-cta:hover{background:var(--green-d)}
.tgdv7 .burger{display:none}

/* 検索パネル（WordPress既存検索 = コアの `s` query var への GET）。
   Safe Repair: DTN-TOP-V7-WORDPRESS-HOME-PRODUCTION-IMPLEMENTATION（2026-09-21） */
.tgdv7 .search-panel{position:absolute;top:100%;right:0;left:auto;z-index:61;background:#fff;border:1px solid var(--line);box-shadow:0 16px 28px rgba(16,20,15,.14);padding:14px;width:min(320px,calc(100% - 24px))}
.tgdv7 .search-panel[hidden]{display:none}
.tgdv7 .search-form{display:flex;gap:8px}
.tgdv7 .search-form input[type="search"]{flex:1;min-width:0;height:40px;padding:0 12px;border:1px solid var(--line);border-radius:4px;font-size:14px;color:var(--ink);background:#fff}
.tgdv7 .search-form input[type="search"]:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.tgdv7 .search-submit{width:40px;height:40px;padding:0;display:grid;place-items:center;border:0;border-radius:4px;background:var(--green);color:#fff;cursor:pointer;flex:none}
.tgdv7 .search-submit:hover{background:var(--green-d)}
.tgdv7 .screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ============================================================
   HERO
   ============================================================ */
.tgdv7 .hero{padding:64px 0 0;border-bottom:1px solid var(--line)}
/* Safe Repair 2（2026-09-21）: Decision Cardの overlay配置を廃止したため、
   overlay分の余白確保だった padding-bottom:104px は不要。row-gapで
   写真行とCard行の間隔を取る（gap: row-gap column-gap）。 */
.tgdv7 .hero-in{display:grid;grid-template-columns:minmax(0,462px) minmax(0,1fr);gap:48px 64px;align-items:center;padding-bottom:64px}
.tgdv7 .eyebrow{font-size:12px;font-weight:900;letter-spacing:.16em;color:var(--wood);margin-bottom:18px}
.tgdv7 .hero h1{
  margin:0 0 24px;font-size:clamp(38px,3.7vw,53px);line-height:1.3;
  letter-spacing:-.025em;font-weight:900;
}
.tgdv7 .hero h1 .mk{
  background-image:linear-gradient(var(--mark),var(--mark));
  background-repeat:no-repeat;background-size:100% .34em;background-position:0 .82em;
}
.tgdv7 .hero-sub{margin:0 0 32px;font-size:16px;line-height:2;color:var(--ink2);max-width:30em}
.tgdv7 .hero-act{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.tgdv7 .btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  height:58px;padding:0 30px;border-radius:5px;font-size:16.5px;font-weight:800;
  border:1.5px solid transparent;letter-spacing:.01em;
}
.tgdv7 .btn-p{background:var(--green);color:#fff;min-width:300px}
.tgdv7 .btn-p:hover{background:var(--green-d)}
.tgdv7 .btn-s{border-color:var(--line);color:var(--ink);background:#fff;min-width:300px}
.tgdv7 .btn-s:hover{border-color:var(--green);color:var(--green)}
.tgdv7 .hero-note{margin-top:22px;font-size:13px;color:var(--ink3);display:flex;gap:18px;flex-wrap:wrap}
.tgdv7 .hero-note span{position:relative;padding-left:14px}
.tgdv7 .hero-note span::before{content:"";position:absolute;left:0;top:.72em;width:6px;height:6px;border-radius:50%;background:var(--wood)}

/* hero media + decision card */
.tgdv7 .hero-media .ph{border-radius:2px}
.tgdv7 .hero-img{
  display:block;width:100%;aspect-ratio:4/3;object-fit:cover;
  object-position:30% center;border-radius:2px;background:var(--ph);
}
/* Safe Repair 2（2026-09-21）: Desktopでは .hero-in の直下行として独立配置
   （overlay配置は廃止。写真との視認性競合を解消）。カード自体の見た目
   （背景・枠線・影・余白）は無変更、位置指定のみoverlay→staticへ変更。 */
.tgdv7 .dcard{
  grid-column:1/-1;position:static;width:auto;left:auto;right:auto;bottom:auto;
  background:#fff;border:1px solid var(--line);
  box-shadow:0 2px 6px rgba(16,20,15,.06),0 24px 48px rgba(16,20,15,.16);
  padding:20px 22px 16px;
}
.tgdv7 .dcard-lb{font-size:10.5px;font-weight:900;letter-spacing:.14em;color:var(--wood);margin-bottom:6px}
.tgdv7 .dcard-ttl{font-size:16px;font-weight:900;line-height:1.5;margin-bottom:16px;padding-bottom:14px;border-bottom:2px solid var(--ink)}
.tgdv7 .drow{display:grid;grid-template-columns:62px 1fr;gap:12px;align-items:start;padding:12px 0;border-bottom:1px solid var(--line2)}
.tgdv7 .drow:last-of-type{border-bottom:0}
.tgdv7 .tag{font-size:11px;font-weight:900;padding:4px 0;border-radius:3px;text-align:center;letter-spacing:.02em}
.tgdv7 .tag-need{background:var(--need-l);color:var(--need)}
.tgdv7 .tag-sub{background:var(--sub-l);color:var(--sub)}
.tgdv7 .tag-no{background:var(--no-l);color:var(--no)}
.tgdv7 .dname{font-size:14.5px;font-weight:900;line-height:1.45}
.tgdv7 .dwhy{font-size:12.5px;color:var(--ink3);line-height:1.6}
.tgdv7 .dfoot{margin-top:14px;padding-top:13px;border-top:1px solid var(--line2)}
.tgdv7 .dfoot a{font-size:13px;font-weight:800;color:var(--green)}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.tgdv7 section{padding:96px 0}
.tgdv7 .tint{background:var(--bg2)}
.tgdv7 .shd{display:flex;align-items:flex-end;gap:24px;margin-bottom:40px;padding-bottom:20px;border-bottom:2px solid var(--ink)}
.tgdv7 .shd h2{margin:0;font-size:31px;font-weight:900;letter-spacing:-.02em;line-height:1.4}
.tgdv7 .shd .lead{margin:8px 0 0;font-size:14px;color:var(--ink3);line-height:1.8}
.tgdv7 .shd .to{margin-left:auto;font-size:14px;font-weight:800;color:var(--green);white-space:nowrap;padding-bottom:4px}
.tgdv7 .shd .to:hover{text-decoration:underline;text-underline-offset:4px}

/* ============================================================
   JUDGMENT RESULT
   ============================================================ */
.tgdv7 .jr{display:grid;grid-template-columns:340px 1fr;gap:56px;align-items:start}
.tgdv7 .jr-ctx .ph{border-radius:2px;margin-bottom:18px}
.tgdv7 .jr-ctx .lv{display:inline-block;font-size:11px;font-weight:900;padding:4px 10px;background:var(--green-l);color:var(--green);margin-bottom:10px}
.tgdv7 .jr-ctx h3{margin:0 0 8px;font-size:21px;font-weight:900;line-height:1.5}
.tgdv7 .jr-ctx p{margin:0 0 14px;font-size:13.5px;color:var(--ink3);line-height:1.85}
.tgdv7 .jr-meta{display:flex;gap:16px;font-size:12.5px;color:var(--ink2);font-weight:700;border-top:1px solid var(--line);padding-top:12px}
.tgdv7 .jrow{display:grid;grid-template-columns:72px 1fr 112px;gap:20px;align-items:baseline;padding:22px 0;border-bottom:1px solid var(--line)}
.tgdv7 .jrow:first-child{border-top:2px solid var(--ink)}
.tgdv7 .jname{font-size:18px;font-weight:900;line-height:1.4;margin-bottom:4px}
.tgdv7 .jwhy{font-size:13.5px;color:var(--ink2);line-height:1.75}
.tgdv7 .jend{font-size:12.5px;color:var(--ink3);font-weight:700;text-align:right}
.tgdv7 .jend.go{color:var(--green);font-weight:800}
.tgdv7 .jrow:hover .jend.go{text-decoration:underline;text-underline-offset:3px}
.tgdv7 .jr-note{margin-top:22px;font-size:12.5px;color:var(--ink3);background:var(--bg2);padding:14px 18px;border-left:3px solid var(--wood)}

/* ============================================================
   PROJECTS (editorial)
   ============================================================ */
.tgdv7 .pfeat{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;margin-bottom:56px;padding-bottom:56px;border-bottom:1px solid var(--line)}
.tgdv7 .pfeat .ph{border-radius:2px}
.tgdv7 .pfeat .cat{font-size:11.5px;font-weight:900;letter-spacing:.12em;color:var(--wood);margin-bottom:12px}
.tgdv7 .pfeat h3{margin:0 0 14px;font-size:30px;font-weight:900;line-height:1.42;letter-spacing:-.02em}
.tgdv7 .pfeat p{margin:0 0 20px;font-size:15px;color:var(--ink2);line-height:1.95}
.tgdv7 .pjudge{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
.tgdv7 .pj{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:700;border:1px solid var(--line);padding:6px 12px;background:#fff}
.tgdv7 .pj b{font-weight:900}
.tgdv7 .pj.n b{color:var(--need)} .pj.s b{color:var(--sub)} .pj.x b{color:var(--no)}
.tgdv7 .pmeta{display:flex;gap:20px;font-size:13px;color:var(--ink3);font-weight:700;border-top:1px solid var(--line);padding-top:14px}

.tgdv7 .plist{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}
.tgdv7 .pcard .ph{border-radius:2px;margin-bottom:14px}
.tgdv7 .pcard .cat{font-size:11px;font-weight:900;letter-spacing:.1em;color:var(--wood);margin-bottom:7px}
.tgdv7 .pcard h3{margin:0 0 8px;font-size:18px;font-weight:900;line-height:1.45}
.tgdv7 .pcard p{margin:0 0 12px;font-size:13px;color:var(--ink3);line-height:1.75}
.tgdv7 .pcard .pmeta{font-size:12px;gap:14px;padding-top:11px}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.tgdv7 .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-bottom:56px}
.tgdv7 .st{padding-top:20px;border-top:3px solid var(--green)}
.tgdv7 .st-n{font-size:12px;font-weight:900;letter-spacing:.14em;color:var(--green);margin-bottom:12px}
.tgdv7 .st h3{margin:0 0 10px;font-size:20px;font-weight:900;line-height:1.5}
.tgdv7 .st p{margin:0;font-size:14px;color:var(--ink2);line-height:1.9}
.tgdv7 .outs{border-top:2px solid var(--ink);padding-top:26px}
.tgdv7 .outs-h{font-size:17px;font-weight:900;margin-bottom:4px}
.tgdv7 .outs-s{font-size:13px;color:var(--ink3);margin-bottom:22px}
.tgdv7 .outs-g{display:grid;grid-template-columns:repeat(5,1fr);gap:0;border-left:1px solid var(--line)}
.tgdv7 .o{padding:18px 20px;border-right:1px solid var(--line)}
.tgdv7 .o b{display:block;font-size:14.5px;font-weight:900;margin-bottom:5px}
.tgdv7 .o span{font-size:12px;color:var(--ink3);line-height:1.65;display:block}
.tgdv7 .o.cm{background:var(--green-l)}
.tgdv7 .o.cm b{color:var(--green)}

/* ============================================================
   ARTICLES
   ============================================================ */
.tgdv7 .arts{display:grid;grid-template-columns:repeat(2,1fr);gap:40px}
.tgdv7 .art{display:grid;grid-template-columns:160px 1fr;gap:22px;align-items:start}
.tgdv7 .art .ph{border-radius:2px}
.tgdv7 .art .cat{font-size:11px;font-weight:900;letter-spacing:.1em;color:var(--wood);margin-bottom:8px}
.tgdv7 .art h3{margin:0 0 10px;font-size:17px;font-weight:900;line-height:1.65}
.tgdv7 .art p{margin:0;font-size:12.5px;color:var(--ink3)}

/* ============================================================
   CTA
   ============================================================ */
.tgdv7 .cta{background:var(--green);color:#fff;padding:80px 0}
.tgdv7 .cta-in{display:grid;grid-template-columns:1fr 340px;gap:64px;align-items:center}
.tgdv7 .cta h2{margin:0 0 14px;font-size:32px;font-weight:900;line-height:1.45;letter-spacing:-.02em}
.tgdv7 .cta p{margin:0 0 28px;font-size:15px;color:#bfd6c8;line-height:1.95;max-width:32em}
.tgdv7 .cta .btn-w{background:#fff;color:var(--green-d);min-width:300px}
.tgdv7 .cta .btn-w:hover{background:#eef4f0}
.tgdv7 .cta-list{list-style:none;margin:0;padding:0;border-top:1px solid rgba(255,255,255,.2)}
.tgdv7 .cta-list li{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.2);font-size:14px;font-weight:700;display:flex;gap:12px;align-items:center}
.tgdv7 .cta-list svg{flex:none}

/* ============================================================
   FOOTER
   ============================================================ */
.tgdv7 footer{background:#10140f;color:#8d9488;padding:48px 0 36px;font-size:12.5px}
.tgdv7 .ft{display:flex;justify-content:space-between;gap:32px;flex-wrap:wrap;padding-bottom:26px;border-bottom:1px solid #242a22}
.tgdv7 .ft-nav{display:flex;gap:24px;flex-wrap:wrap}
.tgdv7 .ft-nav a{color:#c2c9bd;font-weight:700}
.tgdv7 .spec{margin-top:24px;line-height:2;color:#6d746a}
.tgdv7 .spec b{color:#c2c9bd;display:block;margin-bottom:6px}
.tgdv7 .spec code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;color:#9aa295;background:#1b211a;padding:1px 6px;border-radius:3px}

/* ============================================================
   FLOATING CTA (mobile only)
   ============================================================ */
.tgdv7 .fab{display:none}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:1180px){
  /* Safe Repair 2（2026-09-21）: dcardのoverlay位置調整（left/bottom/width）は
     .dcard の position:static 化により不要（デフォルト設定を継承）。
     padding-bottom もoverlay余白確保が目的だったため既定値へ戻す。 */
  .tgdv7 .hero-in{gap:44px}
  .tgdv7 .jr{grid-template-columns:280px 1fr;gap:40px}
  .tgdv7 .plist{grid-template-columns:repeat(2,1fr);gap:28px}

  /* バーガー開閉ナビ（Safe Repair: DTN-TOP-V7-WORDPRESS-HOME-PRODUCTION-IMPLEMENTATION）。
     文言・リンク先・順序はv7のまま。display:none/flexの開閉のみ追加。 */
  .tgdv7 .gnav{
    display:none;position:absolute;top:100%;left:0;right:0;z-index:61;
    flex-direction:column;gap:0;background:#fff;border:1px solid var(--line);
    box-shadow:0 16px 28px rgba(16,20,15,.14);padding:6px 0;
  }
  .tgdv7 .gnav.is-open{display:flex}
  .tgdv7 .gnav a{padding:14px 20px;border-bottom:1px solid var(--line2)}
  .tgdv7 .gnav a:last-child{border-bottom:0}
  .tgdv7 .gnav a:hover{color:var(--green);background:var(--bg2)}
  .tgdv7 .burger{display:grid}
}
@media(max-width:1140px) and (min-width:961px){
  .tgdv7 .hero-in{grid-template-columns:1fr;gap:0;padding-bottom:64px}
  .tgdv7 .hero-media{margin-top:40px}
  .tgdv7 .dcard{position:static;width:auto;margin-top:-1px;border-top:0;left:auto;bottom:auto}
}

@media(max-width:960px){
  .tgdv7 .hero-in{grid-template-columns:1fr;gap:0;padding-bottom:64px}
  .tgdv7 .hero-media{margin-top:40px}
  .tgdv7 .dcard{position:static;width:auto;margin-top:-1px;border-top:0;left:auto;bottom:auto}
  .tgdv7 .jr{grid-template-columns:1fr;gap:32px}
  .tgdv7 .pfeat{grid-template-columns:1fr;gap:28px}
  .tgdv7 .steps{grid-template-columns:1fr;gap:28px}
  .tgdv7 .outs-g{grid-template-columns:repeat(2,1fr);border-left:0}
  .tgdv7 .o{border:1px solid var(--line);border-top:0}
  .tgdv7 .arts{grid-template-columns:1fr;gap:28px}
  .tgdv7 .cta-in{grid-template-columns:1fr;gap:36px}
}

/* ---------------- MOBILE 390 / 375 ---------------- */
@media(max-width:680px){
  html{scroll-padding-top:62px}
  .tgdv7 .wrap{width:min(100% - 32px,1240px)}
  .tgdv7 .hd-in{height:58px;gap:12px}
  .tgdv7 .brand b{font-size:16px}.brand small{display:none}
  .tgdv7 .hd-cta{display:none}
  .tgdv7 .burger{display:grid}

  /* HERO: H1 → Sub → Primary → Decision Strip → Secondary → PHOTO */
  .tgdv7 .hero{padding:28px 0 0}
  .tgdv7 .hero-in{display:flex;flex-direction:column;padding-bottom:0;gap:0}
  .tgdv7 .hero-copy > div{display:flex;flex-direction:column}
  .tgdv7 .eyebrow{font-size:11px;margin-bottom:12px;letter-spacing:.14em}
  .tgdv7 .hero h1{font-size:30px;line-height:1.38;margin-bottom:16px;letter-spacing:-.03em}
  .tgdv7 .hero h1 .mk{background-size:100% .3em;background-position:0 .84em}
  .tgdv7 .hero-sub{font-size:14.5px;line-height:1.9;margin-bottom:22px}

  .tgdv7 .hero-act{display:contents}
  .tgdv7 #heroPrimary{order:3;margin-bottom:10px}
  .tgdv7 .dstrip{order:4;margin-bottom:10px}
  .tgdv7 .hero-act .btn-s{order:5}
  .tgdv7 .btn{width:100%;min-width:0;height:54px;font-size:16px}
  .tgdv7 .hero-note{order:6;margin-top:18px;gap:6px;flex-direction:column;font-size:12.5px}
  .tgdv7 .hero-media{margin:26px -16px 0}
  .tgdv7 .hero-img{object-position:68% center;border-radius:0}
  .tgdv7 .dcard{display:none}

  .tgdv7 section{padding:52px 0}
  .tgdv7 .shd{display:block;margin-bottom:26px;padding-bottom:14px}
  .tgdv7 .shd h2{font-size:22px}
  .tgdv7 .shd .lead{font-size:13px;margin-top:6px}
  .tgdv7 .shd .to{display:inline-block;margin-top:12px}

  .tgdv7 .jr-ctx h3{font-size:18px}
  .tgdv7 .jrow{grid-template-columns:64px 1fr;gap:12px;padding:16px 0}
  .tgdv7 .jname{font-size:16px}
  .tgdv7 .jwhy{font-size:13px}
  .tgdv7 .jend{grid-column:2;text-align:left;margin-top:4px;font-size:12px}
  .tgdv7 .jr-note{font-size:12px;padding:12px 14px}

  .tgdv7 .pfeat{margin-bottom:36px;padding-bottom:36px}
  .tgdv7 .pfeat h3{font-size:22px}
  .tgdv7 .pfeat p{font-size:14px;margin-bottom:16px}
  .tgdv7 .pj{font-size:11.5px;padding:5px 10px}
  .tgdv7 .plist{grid-template-columns:1fr;gap:26px}
  .tgdv7 .pcard h3{font-size:17px}

  .tgdv7 .steps{gap:22px;margin-bottom:36px}
  .tgdv7 .st{padding-top:14px}
  .tgdv7 .st h3{font-size:17.5px}
  .tgdv7 .st p{font-size:13.5px}
  .tgdv7 .outs-g{grid-template-columns:1fr}
  .tgdv7 .o{padding:13px 14px;display:flex;gap:12px;align-items:baseline}
  .tgdv7 .o b{flex:none;margin-bottom:0;font-size:13.5px}
  .tgdv7 .o span{font-size:11.5px}

  .tgdv7 .art{grid-template-columns:100px 1fr;gap:16px}
  .tgdv7 .art h3{font-size:15px;line-height:1.6}

  .tgdv7 .cta{padding:48px 0}
  .tgdv7 .cta h2{font-size:22px}
  .tgdv7 .cta p{font-size:14px;margin-bottom:22px}
  .tgdv7 .cta .btn-w{width:100%;min-width:0}

  .tgdv7 .ft{flex-direction:column;gap:18px}

  .tgdv7 .fab{
    display:block;position:fixed;right:16px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:70;
    transition:transform .24s ease,opacity .24s ease;
  }
  .tgdv7 .fab a{
    display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 20px;border-radius:24px;
    background:var(--green);color:#fff;font-size:14px;font-weight:800;
    box-shadow:0 6px 20px rgba(16,20,15,.28);
  }
  .tgdv7 .fab.hide{transform:translateY(130%);opacity:0;pointer-events:none}
}
@media(max-width:400px){
  .tgdv7 .hero h1{font-size:27px}
  .tgdv7 .dstrip .ds-row{grid-template-columns:58px 1fr}
}

/* ---------------- Mobile Decision Strip ---------------- */
.tgdv7 .dstrip{display:none}
@media(max-width:680px){
  .tgdv7 .dstrip{display:block;border:1px solid var(--line);background:#fff}
  .tgdv7 .ds-h{padding:12px 14px;border-bottom:2px solid var(--ink)}
  .tgdv7 .ds-h b{display:block;font-size:13.5px;font-weight:900;line-height:1.45}
  .tgdv7 .ds-h span{font-size:10.5px;font-weight:900;letter-spacing:.12em;color:var(--wood)}
  .tgdv7 .ds-row{display:grid;grid-template-columns:62px 1fr;gap:11px;align-items:center;padding:11px 14px;border-bottom:1px solid var(--line2)}
  .tgdv7 .ds-row:last-child{border-bottom:0}
  .tgdv7 .ds-row .dname{font-size:13.5px}
  .tgdv7 .ds-row .dwhy{font-size:11.5px}
}
