/*
Theme Name: tiptiphives
Theme URI: https://tiptiphives.jp/
Author: tiptiphives
Author URI: https://tiptiphives.jp/
Description: tiptiphives マルチサイト用ブランドテーマ。フラットデザイン・brand.css・影なし。既存静的サイトと同一のマークアップ／クラス（.site-header / .nav / .hero / .tool-card / .prose 等）を再現するクラシックテーマ。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tiptiphives
*/

/* ============================================================
   ベース・レイアウト（旧静的サイト css/style.css を移植）
   ※ ブランド上書きは brand.css（この後に読み込む）が担当
   ============================================================ */
:root {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #66737f;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #e8f0fe;
  --border: #e2e8f0;
  --danger: #dc2626;
  --ok: #16a34a;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.container { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand span { color: var(--primary); }
.nav a { margin-left: 18px; color: var(--muted); font-size: .92rem; }

/* Hero */
.hero { text-align: center; padding: 56px 20px 32px; }
.hero h1 { font-size: 1.9rem; margin: 0 0 12px; }
.hero p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* Tool cards */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.tool-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
  color: var(--text);
}
.tool-card:hover { transform: translateY(-2px); text-decoration: none; }
.tool-card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.tool-card h3 { margin: 6px 0; font-size: 1.1rem; }
.tool-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.tool-card.soon { opacity: .55; pointer-events: none; }
.badge-soon {
  display: inline-block; font-size: .7rem; background: var(--border);
  color: var(--muted); border-radius: 999px; padding: 2px 8px; margin-left: 6px;
}

/* Generic card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 22px 0;
}

.btn {
  display: inline-block; background: var(--primary); color: #fff;
  border: none; border-radius: 10px; padding: 12px 22px; font-size: 1rem;
  font-weight: 600; cursor: pointer; transition: background .15s; text-decoration: none;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn:disabled { background: #9db4e0; cursor: not-allowed; }
.btn-row { margin-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.note {
  background: var(--primary-soft); border: 1px solid #c7dbfd;
  border-radius: 3px; padding: 12px 16px; font-size: .88rem; color: #1e3a8a;
  margin: 16px 0;
}

/* パンくず */
.breadcrumb { font-size: .76rem; color: #aab1b9; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 14px 0 2px; }
.breadcrumb a { color: #2460A7; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: #cbd5e1; }
.breadcrumb .current { color: #7a828b; }

/* Ad slots */
.ad-slot {
  margin: 26px 0; min-height: 90px; display: flex; align-items: center;
  justify-content: center; color: #b7c0cc; font-size: .8rem;
  background: repeating-linear-gradient(45deg, #f0f3f7, #f0f3f7 10px, #f5f7fa 10px, #f5f7fa 20px);
  border: 1px dashed var(--border); border-radius: 10px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 48px;
  padding: 36px 20px 24px; color: var(--muted); font-size: .85rem;
  background: var(--card);
}
.footer-cols {
  max-width: 1080px; margin: 0 auto; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: left;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--primary); }
.footer-h { color: var(--text); font-size: .92rem; }
.footer-col a.footer-h:hover { color: var(--primary); }
.footer-col a:not(.footer-h) { margin-left: 12px; }
.footer-col a:not(.footer-h)::before { content: "- "; }
.footer-copy { text-align: center; margin: 28px 0 0; color: var(--muted); }
@media (max-width: 680px) {
  .footer-cols { grid-template-columns: 1fr; gap: 22px; }
}

/* Prose（記事・固定ページ本文） */
.prose { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin: 22px 0; }
.prose h1 { font-size: 1.6rem; }
.prose h2 { font-size: 1.2rem; margin-top: 28px; border-left: 4px solid var(--primary);
  padding-left: 10px; }
.prose h3 { font-size: 1.06rem; margin-top: 22px; }
.prose img { border-radius: 8px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { margin: 18px 0; padding: 8px 16px; border-left: 4px solid var(--amber, #F5A800);
  background: #fff8e8; color: #7a5a12; border-radius: 3px; }
.prose code { background: #f0f3f7; padding: 2px 6px; border-radius: 4px; font-size: .92em; }
.prose pre { background: #1f2933; color: #f5f7fa; padding: 16px; border-radius: 8px; overflow: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose th { background: var(--primary-soft); }

/* 記事メタ */
.post-meta { color: var(--muted); font-size: .82rem; margin: 4px 0 0; display: flex; gap: 12px; flex-wrap: wrap; }
.post-meta a { color: var(--muted); }

/* 記事一覧カードの見た目は blog.css（.post-card …）に統一。
   旧フロント用の縦型ルールは blog.css の横型レイアウトと衝突するため削除。 */

/* ページネーション */
.pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 34px 0; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 10px; border: 1px solid var(--border); border-radius: 3px; color: var(--brand-blue, #1B4F8A);
  background: #fff; font-weight: 600; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--brand-blue, #1B4F8A); color: #fff; border-color: var(--brand-blue, #1B4F8A); }
.pagination .page-numbers:hover:not(.current) { background: var(--primary-soft); text-decoration: none; }

/* WordPress 標準クラス */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 18px 12px 0; }
.alignright { float: right; margin: 0 0 12px 18px; }
.wp-caption-text { color: var(--muted); font-size: .82rem; text-align: center; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px);
  word-wrap: normal !important;
}
.sticky, .gallery-caption, .bypostauthor { }
