/*
Theme Name: Reputation Media (Hyouban)
Description: 評判悪いドットコム用テーマ。承認済みサンプル（Space）の実装を移植したもの。
Version: 1.1.14
*/
button, [role="button"], select, summary, input:not([type="checkbox"], [type="radio"]) { min-height: 2.25rem; }
      * { box-sizing: border-box; }
      :root{
        --yellow:#F5C518;
        --yellow-deep:#E0AF00;
        --yellow-soft:#FFF7DC;
        --ink:#191919;
        --ink-2:#3d434c;
        --gray:#68707c;
        --line:#e7e5da;
        --line-2:#d9d6c8;
        --bg:#f4f3ec;
        --panel:#ffffff;
        --panel-2:#fafaf5;
        --radius:10px;
      }
      html{ -webkit-text-size-adjust:100%; }
      body{
        margin:0;
        background:var(--bg);
        color:var(--ink);
        font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
        font-size:16px;
        line-height:1.75;
      }
      a{ color:inherit; }
      img{ max-width:100%; }

      /* ===== サンプル切替バー（確認用UI・ページ最下部に配置。本番には無い） ===== */
      
      
      

      .stage{ max-width:1060px; margin:0 auto; padding:14px 14px 10px; }
      .site-frame{
        background:var(--panel);
        border:1px solid var(--line-2);
        border-radius:14px;
        overflow:visible;
        box-shadow:0 10px 34px rgba(25,25,25,.08);
      }

      /* ===== サイト共通（モック）／ヘッダーはロゴ＋ナビを1行に収める ===== */
      .site-header{
        display:flex; align-items:center; gap:10px 14px;
        min-height:56px; padding:6px 16px;
        background:#fff;
        border-bottom:1px solid var(--line-2);
        flex-wrap:wrap;
      }
      /* 横型ロゴ（Figma素材「logo」の1行版）：黄色の帯に黒太字＋黒箱に黄色文字 */
      .logo-h{
        display:inline-flex; align-items:center; gap:7px;
        background:var(--yellow); height:32px; padding:0 9px;
        text-decoration:none; line-height:1; flex:none;
      }
      .logo-h .lh-name{ font-weight:900; font-size:16px; letter-spacing:.06em; color:var(--ink); white-space:nowrap; }
      .logo-h .lh-sub{
        background:var(--ink); color:var(--yellow);
        font-weight:900; font-size:11px; letter-spacing:.18em;
        padding:3px 5px 3px 7px; white-space:nowrap;
      }
      /* ハンバーガーボタン：SPのみ表示。PCでは出さない */
      .hamburger-btn{
        appearance:none; background:#fff; border:1px solid var(--line-2); cursor:pointer;
        width:44px; height:44px; min-height:44px; flex:none; padding:0;
        display:none; align-items:center; justify-content:center; flex-direction:column; gap:5px;
        color:var(--ink); border-radius:8px;
      }
      .hamburger-btn span{
        display:block; width:20px; height:2px; background:var(--ink); border-radius:2px;
        transition:transform .18s ease, opacity .18s ease;
      }
      .hamburger-btn[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
      .hamburger-btn[aria-expanded="true"] span:nth-child(2){ opacity:0; }
      .hamburger-btn[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
      .hamburger-btn:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
      /* フッター用ロゴ（縦積み・従来どおり） */
      .logo{ display:flex; flex-direction:column; text-decoration:none; line-height:1; flex:none; width:172px; align-self:flex-start; }
      .logo-main{
        background:var(--yellow); color:var(--ink);
        font-weight:900; font-size:26px; letter-spacing:.08em;
        padding:8px 10px 6px; text-align:center;
      }
      .logo-sub{
        background:var(--ink); color:var(--yellow);
        font-weight:900; font-size:14.5px; letter-spacing:.5em; text-indent:.5em;
        padding:5px 10px 6px; text-align:center;
      }
      /* 検索バー：トップページのみ、ヘッダー直下の細い1行 */
      .search-bar{
        display:none;
        padding:10px 16px; background:#fff; border-bottom:1px solid var(--line);
      }
      .search-bar.on{ display:block; }
      .search-bar label{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
      .search-row{ display:flex; }
      .search-row input{
        flex:1 1 auto; min-width:0; font:inherit; font-size:15px;
        border:2px solid var(--ink); border-right:none; border-radius:8px 0 0 8px;
        padding:8px 12px; background:#fff; color:var(--ink);
      }
      .search-row button{
        appearance:none; flex:0 0 84px; border:2px solid var(--ink); background:var(--yellow);
        font:inherit; font-weight:700; font-size:14px; padding:8px 0;
        border-radius:0 8px 8px 0; cursor:pointer; color:var(--ink); text-align:center;
      }
      @media (min-width:721px){
        .site-header{ padding:6px 22px; flex-wrap:nowrap; }
        .search-bar{ padding:10px 22px; }
      }
      /* ナビはヘッダー内・ロゴと同じ行に置く（デスクトップは1行） */
      .site-nav{
        display:flex; flex-wrap:nowrap; gap:0 2px;
        align-items:center;
        flex:1 1 auto; min-width:0;
        order:2;
      }
      .site-nav a{
        font-size:13px; font-weight:700; text-decoration:none; color:var(--ink-2);
        padding:7px 7px; border-radius:6px; min-width:0; white-space:nowrap; line-height:1.3;
      }
      .site-nav a:hover{ background:var(--yellow-soft); color:var(--ink); }
      .site-header .logo-h{ order:1; }
      .site-header .hamburger-btn{ order:3; margin-left:auto; }
      @media (min-width:721px){
        .site-nav{ justify-content:flex-end; }
      }
      @media (min-width:721px) and (max-width:920px){
        .site-nav a{ font-size:12px; padding:6px 5px; letter-spacing:-.02em; }
        .logo-h .lh-name{ font-size:14.5px; }
        .logo-h{ height:30px; padding:0 7px; }
      }
      /* SP：1行目はロゴ＋ハンバーガーボタン（右端）だけ。ナビは初期状態では閉じ、タップでヘッダー下に開く */
      @media (max-width:720px){
        .site-header{ row-gap:0; padding:8px 12px; flex-wrap:wrap; }
        .site-header .hamburger-btn{ display:flex; order:2; margin-left:auto; }
        .site-nav{
          display:none;
          order:3; flex:1 1 100%; flex-direction:column; flex-wrap:nowrap;
          align-items:stretch; gap:0;
          border-top:1px solid var(--line); padding:6px 0 2px; margin-top:8px;
          justify-content:flex-start;
        }
        .site-nav.open{ display:flex; }
        .site-nav a{
          font-size:14px; font-weight:700; padding:12px 8px; flex:none;
          border-bottom:1px solid var(--line); border-radius:0; white-space:normal;
        }
        .site-nav a:last-child{ border-bottom:none; }
      }

      .site-body{ padding:26px 22px 34px; }
      
      .view.active{ display:block; }

      .breadcrumb{ font-size:12.5px; color:var(--gray); margin:0 0 14px; }
      .breadcrumb a{ color:var(--ink-2); text-decoration:none; font-weight:500; }
      .breadcrumb a:hover{ text-decoration:underline; }
      .breadcrumb span.sep{ margin:0 6px; color:var(--line-2); }

      h1.page-title{ font-size:clamp(24px,4.6vw,36px); font-weight:900; line-height:1.45; margin:0 0 10px; letter-spacing:.01em; overflow-wrap:break-word; }
      h2.sec-title{
        font-size:clamp(19px,3.4vw,23px); font-weight:900; line-height:1.5;
        margin:38px 0 14px; padding-left:12px; border-left:6px solid var(--yellow);
      }
      h2.sec-title:first-child{ margin-top:0; }
      p{ margin:0 0 14px; }
      .lead{ font-size:16.5px; color:var(--ink-2); }

      /* 結論ボックス */
      .verdict{
        border:2px solid var(--ink); border-radius:var(--radius); overflow:hidden; margin:18px 0 8px;
        background:#fff;
      }
      .verdict-head{
        background:var(--yellow); font-weight:900; font-size:15px; letter-spacing:.08em;
        padding:8px 16px; border-bottom:2px solid var(--ink);
        display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 14px;
      }
      .verdict-head > span{ min-width:0; overflow-wrap:anywhere; }
      .verdict-head .v-date{ font-weight:500; font-size:12.5px; letter-spacing:0; }
      .verdict-body{ padding:16px 18px 6px; }
      .verdict-body p.summary{ font-size:16.5px; font-weight:500; line-height:1.85; }
      .stat-grid{
        display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:14px 0 16px;
      }
      .stat{
        background:var(--panel-2); border:1px solid var(--line); border-radius:8px;
        padding:10px 12px; text-align:center;
      }
      .stat .num{ font-size:clamp(20px,3.6vw,27px); font-weight:900; line-height:1.25; }
      .stat .num small{ font-size:13px; font-weight:700; }
      .stat .lbl{ font-size:12px; color:var(--gray); font-weight:500; }

      /* 評価分布バー */
      .dist{ margin:6px 0 4px; }
      .dist-row{ display:flex; align-items:center; gap:10px; margin:5px 0; font-size:13.5px; }
      .dist-row .star{ width:34px; flex:none; font-weight:700; }
      .dist-row .track{ flex:1; height:14px; background:#efeee6; border-radius:4px; overflow:hidden; }
      .dist-row .fill{ height:100%; background:var(--yellow); border-right:2px solid var(--yellow-deep); }
      .dist-row .pct{ width:46px; flex:none; text-align:right; font-weight:700; }

      /* テーマ別集計 */
      .theme-list{ list-style:none; margin:0; padding:0; }
      .theme-list li{
        display:flex; flex-wrap:wrap; gap:4px 14px; align-items:baseline;
        padding:11px 2px; border-bottom:1px solid var(--line);
      }
      .theme-list .t-name{ font-weight:700; flex:1 1 200px; }
      .theme-list .t-note{ color:var(--ink-2); font-size:14px; flex:2 1 260px; }
      .theme-list .t-val{ font-weight:900; font-size:18px; flex:none; }
      .theme-list .t-val small{ font-size:12px; color:var(--gray); font-weight:500; }

      /* ジャンル・会社リスト */
      .genre-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
      .genre-grid a{
        display:flex; justify-content:space-between; align-items:center; gap:8px;
        border:1px solid var(--line-2); border-radius:8px; padding:12px 14px;
        text-decoration:none; font-weight:700; font-size:15px; background:#fff; min-height:52px; min-width:0;
      }
      .genre-grid a:hover{ border-color:var(--ink); background:var(--yellow-soft); }
      .genre-grid .cnt{ font-size:12px; color:var(--gray); font-weight:500; white-space:nowrap; }
      .company-list{ list-style:none; margin:0; padding:0; border-top:1px solid var(--line); }
      .company-list li{ border-bottom:1px solid var(--line); }
      .company-list a, .company-list .row{
        display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px;
        padding:13px 4px; text-decoration:none;
      }
      .company-list a:hover{ background:var(--yellow-soft); }
      .company-list .c-name{ font-weight:900; font-size:17px; }
      .company-list .c-genre{ font-size:12px; font-weight:700; background:var(--ink); color:#fff; border-radius:4px; padding:2px 8px; }
      .company-list .c-score{ margin-left:auto; font-size:14px; color:var(--ink-2); min-width:0; overflow-wrap:anywhere; }
      .company-list .c-score b{ font-size:18px; color:var(--ink); }
      .company-list .c-arrow{ font-weight:900; color:var(--yellow-deep); }
      .no-hit{ display:none; padding:14px 4px; color:var(--gray); font-size:14px; }

      /* 記事カード */
      .article-cards{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
      .a-card{
        border:1px solid var(--line-2); border-radius:var(--radius); padding:16px 18px 12px;
        background:#fff; display:flex; flex-direction:column;
      }
      .a-card .a-meta{ display:flex; flex-wrap:wrap; gap:6px 10px; font-size:12px; color:var(--gray); margin-bottom:8px; align-items:center; }
      .a-card .a-type{ font-weight:700; color:var(--ink); background:var(--yellow); border-radius:4px; padding:2px 8px; font-size:11.5px; }
      .a-card h3{ font-size:16.5px; font-weight:900; line-height:1.6; margin:0 0 8px; }
      .a-card h3 a{ text-decoration:none; }
      .a-card h3 a:hover{ text-decoration:underline; }
      .a-card p{ font-size:14px; color:var(--ink-2); margin:0 0 10px; }
      .a-card .a-foot{ margin-top:auto; font-size:12.5px; color:var(--gray); border-top:1px dashed var(--line-2); padding-top:8px; }

      /* 調査について */
      .method{
        background:var(--yellow-soft); border:1px solid var(--yellow-deep); border-radius:var(--radius);
        padding:18px 20px 8px; margin-top:14px;
      }
      .method h2{ margin-top:0; border-left-color:var(--ink); }
      .method dl{ margin:0; }
      .method .m-row{ display:flex; flex-wrap:wrap; gap:2px 16px; padding:8px 0; border-bottom:1px dashed var(--line-2); }
      .method .m-row:last-child{ border-bottom:none; }
      .method dt{ font-weight:900; flex:0 0 118px; font-size:14.5px; }
      .method dd{ margin:0; flex:1 1 260px; font-size:14.5px; color:var(--ink-2); }

      /* FAQ */
      .faq details{ border:1px solid var(--line-2); border-radius:8px; margin-bottom:10px; background:#fff; }
      .faq summary{
        cursor:pointer; font-weight:700; font-size:15.5px; padding:12px 16px; list-style:none;
        display:flex; gap:10px; align-items:flex-start; min-height:48px;
      }
      .faq summary::-webkit-details-marker{ display:none; }
      .faq summary .q{
        flex:none; background:var(--yellow); color:var(--ink); font-weight:900;
        width:24px; height:24px; border-radius:50%; text-align:center; line-height:24px; font-size:13px; margin-top:2px;
      }
      .faq .a-body{ padding:2px 16px 14px 50px; font-size:14.5px; color:var(--ink-2); }
      .faq .a-body p{ margin:0; }

      /* 記事ページ */
      .article-meta{
        display:flex; flex-wrap:wrap; gap:6px 18px; font-size:13px; color:var(--gray);
        border-top:1px solid var(--line); border-bottom:1px solid var(--line);
        padding:10px 2px; margin:14px 0 20px;
      }
      .article-meta b{ color:var(--ink-2); }
      .article-body h2{
        font-size:clamp(19px,3.4vw,22px); font-weight:900; margin:34px 0 12px;
        padding-bottom:6px; border-bottom:3px solid var(--yellow);
      }
      .article-body h3{ font-size:17px; font-weight:900; margin:22px 0 8px; }
      .article-body p{ color:var(--ink-2); }
      .article-body p b, .article-body li b{ color:var(--ink); }
      .reason-list{ counter-reset:reason; list-style:none; margin:0 0 8px; padding:0; }
      .reason-list li{
        border:1px solid var(--line-2); border-radius:var(--radius); padding:14px 16px 6px; margin-bottom:12px;
      }
      .reason-list .r-head{ font-weight:900; font-size:16.5px; margin-bottom:6px; display:flex; gap:10px; align-items:baseline; }
      .reason-list .r-no{
        flex:none; background:var(--ink); color:var(--yellow); font-weight:900;
        border-radius:6px; padding:1px 10px; font-size:14px;
      }
      .data-rows{ border:1px solid var(--line-2); border-radius:var(--radius); overflow:hidden; margin:14px 0; }
      .data-rows .d-row{ display:flex; flex-wrap:wrap; }
      .data-rows .d-row:nth-child(odd){ background:var(--panel-2); }
      .data-rows dt{
        flex:0 0 190px; font-weight:700; font-size:14.5px; padding:11px 14px;
        border-bottom:1px solid var(--line);
      }
      .data-rows dd{
        margin:0; flex:1 1 240px; font-size:14.5px; color:var(--ink-2); padding:11px 14px;
        border-bottom:1px solid var(--line);
      }
      .data-rows .d-row:last-child dt, .data-rows .d-row:last-child dd{ border-bottom:none; }
      .source-note{
        font-size:13.5px; color:var(--ink-2); background:var(--panel-2);
        border:1px solid var(--line); border-radius:8px; padding:12px 16px; margin:18px 0;
      }
      .source-note b{ color:var(--ink); }
      .toc{
        border:1px solid var(--line-2); border-radius:var(--radius); padding:14px 18px 8px; margin:20px 0;
        background:var(--panel-2);
      }
      .toc .toc-title{ font-weight:900; font-size:14px; letter-spacing:.06em; margin-bottom:6px; }
      .toc ol{ margin:0 0 8px; padding-left:22px; }
      .toc li{ margin:4px 0; font-size:14.5px; }
      .toc a{ text-decoration:none; color:var(--ink-2); font-weight:500; }
      .toc a:hover{ text-decoration:underline; }

      /* フッター（モック） */
      .site-footer{
        border-top:3px solid var(--ink); background:var(--panel-2);
        padding:22px 22px 26px;
      }
      .site-footer .f-logo{ transform:scale(.72); transform-origin:left top; margin-bottom:-16px; }
      .site-footer nav{ display:flex; flex-wrap:wrap; gap:4px 8px; margin:10px 0 12px; }
      .site-footer nav a{ font-size:13.5px; font-weight:700; text-decoration:none; padding:8px 8px; }
      .site-footer nav a:hover{ text-decoration:underline; }
      .site-footer .f-note{ font-size:12.5px; color:var(--gray); margin:0; }
      .site-footer .f-copy{ font-size:12.5px; color:var(--gray); margin:6px 0 0; }

      @media (max-width:720px){
        .stat-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
        .genre-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
        .genre-grid a{ flex-wrap:wrap; row-gap:2px; }
        .article-cards{ grid-template-columns:minmax(0,1fr); }
        .site-body{ padding:20px 15px 28px; }
        .data-rows dt{ flex-basis:100%; border-bottom:none; padding-bottom:0; }
        .data-rows dd{ padding-top:2px; }
        .faq .a-body{ padding-left:16px; }
        .site-footer{ padding:20px 16px 24px; }
      }

      /* 記事のアイキャッチ・本文リンク・カードのサムネイル・コメント欄（本番追加分） */
      .article-hero{ margin:16px 0 4px; }
      .article-hero img{ display:block; width:100%; height:auto; border:1px solid var(--line-2); border-radius:var(--radius); }
      .article-body a{ color:#7a5c00; font-weight:500; text-decoration:underline; text-underline-offset:2px; }
      .article-body a:hover{ color:#5f4700; }
      .a-card .a-thumb{ display:block; margin:-16px -18px 12px; }
      .a-card .a-thumb img{ display:block; width:100%; height:auto; border-radius:var(--radius) var(--radius) 0 0; }
      .comments-area{ margin-top:36px; border-top:3px solid var(--ink); padding-top:20px; }
      .comments-area .comments-title{ font-size:18px; font-weight:900; margin:0 0 14px; }
      .comment-list{ list-style:none; margin:0 0 22px; padding:0; }
      .comment-list .comment{ border:1px solid var(--line-2); border-radius:var(--radius); background:#fff; padding:12px 16px; margin:0 0 10px; }
      .comment-list .comment-meta{ font-size:12px; color:var(--gray); margin-bottom:6px; }
      .comment-list .comment-author{ font-weight:700; color:var(--ink); }
      .comment-list p{ font-size:14.5px; color:var(--ink-2); margin:0 0 6px; }
      .comment-respond{ border:1px solid var(--line-2); border-radius:var(--radius); background:var(--panel-2); padding:16px 18px; }
      .comment-reply-title{ font-size:16px; font-weight:900; margin:0 0 10px; }
      .comment-form label{ display:block; font-size:13px; font-weight:700; margin-bottom:4px; }
      .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea{
        width:100%; box-sizing:border-box; border:1px solid var(--line-2); border-radius:8px;
        padding:10px 12px; font:inherit; font-size:14.5px; background:#fff;
      }
      .comment-form .submit{
        appearance:none; border:2px solid var(--ink); background:var(--yellow); color:var(--ink);
        font:inherit; font-weight:700; font-size:14px; padding:10px 22px; border-radius:8px; cursor:pointer;
      }
      .comment-notes, .logged-in-as{ font-size:12.5px; color:var(--gray); }
.comment-list ol,.comment-list ul,.comment-list li{list-style:none}
.comment-list .children{list-style:none;margin:12px 0 0 16px;padding:0}
.comment-list .children .comment{background:var(--yellow-soft)}
.more-wrap{text-align:center;margin:20px 0 4px}
.more-link{font-weight:700;color:#7a5c00;text-decoration:underline;text-underline-offset:3px}

.status-chip{display:inline-block;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:800;background:#e7f6ec;color:#1c7a3d}
.status-chip.ongoing{background:var(--yellow-soft);color:#8a6d00}
.ongoing-note{margin-top:10px;font-size:13px;color:var(--muted)}

/* link cards (replace stock WP embeds) */
.article-body a.link-card{display:block;border:1px solid var(--line);border-left:5px solid var(--yellow);border-radius:var(--radius);background:#fff;padding:14px 16px;margin:22px 0;color:var(--ink);text-decoration:none}
.article-body a.link-card .lc-source{display:block;font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.04em}
.article-body a.link-card .lc-title{display:block;font-size:16.5px;font-weight:800;line-height:1.55;margin-top:4px}

.table-hint{display:none}
@media (max-width:720px){.table-hint{display:block;text-align:right;font-size:12px;font-weight:700;color:var(--muted);margin:12px 0 4px}}
.table-wrap::-webkit-scrollbar{height:6px}
.table-wrap::-webkit-scrollbar-thumb{background:#c9c9c9;border-radius:3px}

.table-wrap{border:1px solid var(--line);border-radius:var(--radius);overflow-x:auto;-webkit-overflow-scrolling:touch;margin:14px 0}

.table-box{position:relative;margin:14px 0}
.table-box .table-wrap{margin:0}
.table-box .tw-fade{position:absolute;top:0;right:0;bottom:0;width:44px;background:linear-gradient(to right,rgba(0,0,0,0),rgba(0,0,0,.14));border-radius:0 var(--radius,10px) var(--radius,10px) 0;pointer-events:none;transition:opacity .25s}
.table-box.at-end .tw-fade{opacity:0}
.tw-bar{height:4px;background:rgba(0,0,0,.08);border-radius:2px;margin:6px 0 2px;overflow:hidden}
.tw-bar span{display:block;height:100%;background:rgba(0,0,0,.45);border-radius:2px}
