/* ==========================================================================
   theme.css — WordPress 固有の追加スタイル
   tk-site.css の .kr スコープで動作する共通デザインに上乗せする
   ========================================================================== */

/* ---- WordPress 管理バー対応 ---- */
.admin-bar .hd { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .hd { top: 46px; } }

/* ---- .hd の over 制御（JS で付与） ---- */
.hd.over { position: fixed; left: 0; right: 0; }

/* ---- スキップリンク ---- */
.skip-link { position: absolute; top: -999px; left: 8px; padding: 8px 16px; background: var(--accent); color: #fff; border-radius: 4px; font-size: 14px; z-index: 999; }
.skip-link:focus { top: 8px; }

/* ---- 製品アーカイブ カテゴリーチップ ---- */
.prod-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(28px,3.5vw,44px); }

/* ---- 製品カード グリッド (.prods は 3列で tk-site.css 定義済み) ---- */

/* ---- 製品詳細：画像なし時のプレースホルダー ---- */
.pimg-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--bg-2); color: var(--ink-faint); font-size: 3.5rem; }

/* ---- 仕様表のJANコード列 ---- */
.ptable .col-jan { font-family: var(--fl); letter-spacing: 0.06em; color: var(--ink-soft); }

/* ---- ページネーション (.pager は tk-site.css に定義済みだが WordPress 出力に合わせる) ---- */
.kr .page-numbers { font-family: var(--fl); font-size: 14px; min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink-soft); transition: all .2s; padding: 0 12px; margin: 0 2px; }
.kr .page-numbers:hover, .kr .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.kr nav.kr-pagination { display: flex; justify-content: center; gap: 4px; margin-top: clamp(40px,5vw,64px); }

/* ---- 固定ページ コンテンツ ---- */
.kr .entry-content p  { margin-bottom: 1.6em; }
.kr .entry-content h2 { font-family: var(--fh); font-size: clamp(20px,2.6vw,26px); font-weight: 700; margin: 2.2em 0 .8em; }
.kr .entry-content h3 { font-family: var(--fh); font-size: clamp(17px,2vw,21px); font-weight: 700; margin: 1.8em 0 .6em; }
.kr .entry-content ul, .kr .entry-content ol { padding-left: 1.4em; margin-bottom: 1.6em; }
.kr .entry-content li { margin-bottom: .4em; }
.kr .entry-content a { color: var(--accent); text-decoration: underline; }
.kr .entry-content blockquote { border-left: 3px solid var(--accent); padding: 12px 24px; margin: 1.6em 0; background: var(--bg-2); font-style: italic; }
.kr .entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.6em; }
.kr .entry-content th, .kr .entry-content td { padding: 10px 14px; border: 1px solid var(--line); }
.kr .entry-content th { background: var(--tint); font-weight: 700; font-family: var(--fh); }
.kr .entry-content img { max-width: 100%; border-radius: 4px; margin: .4em 0; }

/* ---- ニュース一覧 カテゴリータグ色 ---- */
.ncat-release { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent) !important; }
.ncat-media   { color: #7a5cc0; border-color: color-mix(in srgb, #7a5cc0 50%, transparent) !important; }
.ncat-recruit { color: #1f8a5b; border-color: color-mix(in srgb, #1f8a5b 50%, transparent) !important; }

/* ---- 404 ---- */
.kr .sec-404 { min-height: 60vh; display: flex; align-items: center; }
.kr .sec-404 .inner { text-align: center; }
.kr .sec-404 .num { font-family: var(--fl); font-weight: 800; font-size: clamp(80px,14vw,160px); color: var(--line); line-height: 1; margin-bottom: 16px; }
.kr .sec-404 h1 { font-family: var(--fh); font-size: clamp(22px,3vw,30px); margin: 0 0 12px; }
.kr .sec-404 p { color: var(--ink-soft); margin: 0 0 32px; }

/* ---- お知らせ一覧 ---- */
.kr .news-list { display: flex; flex-direction: column; }
.kr .news-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; transition: background .15s; }
.kr .news-item:first-child { border-top: 1px solid var(--line); }
.kr .news-item:hover .news-title { color: var(--accent); }
.kr .news-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.kr .news-date { font-family: var(--fl); font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; }
.kr .news-cat { font-size: 11.5px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 4px; padding: 2px 8px; white-space: nowrap; }
.kr .news-title { font-size: 15px; line-height: 1.55; margin: 0; }
.kr .news-arrow { color: var(--ink-soft); flex-shrink: 0; }
@media (max-width: 640px) {
  .kr .news-item { grid-template-columns: 1fr auto; }
  .kr .news-meta { grid-column: 1 / -1; }
}

/* ---- お知らせ個別記事 ---- */
.kr .article-wrap { display: grid; grid-template-columns: 1fr 260px; gap: clamp(32px,5vw,64px); align-items: start; }
.kr .article-thumb { margin-bottom: clamp(24px,3vw,40px); }
.kr .article-content { font-size: 16px; line-height: 1.9; color: var(--ink); }
.kr .article-content h2 { font-family: var(--fh); font-size: clamp(18px,2vw,22px); margin: 2em 0 .75em; padding-left: 14px; border-left: 3px solid var(--accent); }
.kr .article-content h3 { font-family: var(--fh); font-size: clamp(16px,1.7vw,18px); margin: 1.8em 0 .6em; }
.kr .article-content p { margin: 0 0 1.4em; }
.kr .article-content a { color: var(--accent); text-decoration: underline; }
.kr .article-content img { max-width: 100%; height: auto; border-radius: 6px; }
.kr .article-content ul, .kr .article-content ol { padding-left: 1.5em; margin: 0 0 1.4em; }
.kr .article-content li { margin-bottom: .4em; }
.kr .side-block { background: var(--bg-2); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.kr .side-label { font-family: var(--fh); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--ink-soft); text-transform: uppercase; margin: 0 0 12px; }
.kr .side-cats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.kr .side-cats a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 5px; font-size: 14px; color: var(--ink); text-decoration: none; transition: background .15s, color .15s; }
.kr .side-cats a:hover, .kr .side-cats a.active { background: var(--accent); color: #fff; }
.kr .side-cats span { font-size: 12px; opacity: .75; }
.kr .side-recent { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.kr .side-recent li { border-bottom: 1px solid var(--line); }
.kr .side-recent li:last-child { border-bottom: none; }
.kr .side-recent a { display: flex; flex-direction: column; gap: 3px; padding: 10px 4px; text-decoration: none; transition: color .15s; }
.kr .side-recent a:hover { color: var(--accent); }
.kr .side-recent time { font-family: var(--fl); font-size: 12px; color: var(--ink-soft); }
.kr .side-recent span { font-size: 13.5px; color: var(--ink); line-height: 1.45; }
.kr .article-nav { margin-top: clamp(40px,5vw,64px); border-top: 1px solid var(--line); padding-top: 32px; }
.kr .article-nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.kr .article-nav-item { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); padding: 12px; border-radius: 8px; transition: background .15s; }
.kr .article-nav-item:hover { background: var(--bg-2); }
.kr .article-nav-item.next { align-items: flex-end; text-align: right; }
.kr .nav-dir { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-soft); }
.kr .nav-title { font-size: 14px; font-weight: 500; line-height: 1.4; }
.kr .article-nav-center { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 860px) {
  .kr .article-wrap { grid-template-columns: 1fr; }
  .kr .article-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .kr .side-block { margin-bottom: 0; }
}
@media (max-width: 560px) {
  .kr .article-side { grid-template-columns: 1fr; }
  .kr .article-nav-inner { grid-template-columns: 1fr; }
  .kr .article-nav-center { display: none; }
}

/* ---- お問い合わせフォーム (Contact Form 7 対応) ---- */
.kr .wpcf7-form { display: grid; gap: 20px; }
.kr .wpcf7-form p { margin: 0; }
.kr .wpcf7-form input[type="text"],
.kr .wpcf7-form input[type="email"],
.kr .wpcf7-form input[type="tel"],
.kr .wpcf7-form select,
.kr .wpcf7-form textarea { width: 100%; }
.kr .wpcf7-form .wpcf7-submit { font-family: var(--fh); }

/* ---- Reveal アニメーション ---- */
.kr .reveal { transition: transform .7s cubic-bezier(.2,.7,.3,1), opacity .7s; }
html.js-ready .kr .reveal:not(.in) { transform: translateY(22px); opacity: 0; }

/* ---- handoff フォルダをWebに公開しないための注意 ---- */
/* /katayama-riki/handoff/ は Apache/Nginx で拒否してください */
