/*
Theme Name: ReJAP
Theme URI: https://re-jap.com
Author: ReJAP Consulting
Description: ReJAP Consulting オリジナルテーマ
Version: 1.0
*/

:root {
  --red: #C0392B;
  --red-light: #E74C3C;
  --navy: #1a1a2e;
  --dark: #2C3E50;
  --gray: #ECF0F1;
  --gray-mid: #95a5a6;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ナビゲーション */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo { font-size: 20px; font-weight: 700; color: var(--red); letter-spacing: 0.05em; }
.logo span { color: var(--navy); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--red); }

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px !important;
  font-weight: 500;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--red-light) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); }

/* セクション共通 */
section { padding: 80px 0; }
.section-label { font-size: 12px; font-weight: 500; letter-spacing: 0.15em; color: var(--red); text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: 32px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.section-desc { font-size: 15px; color: var(--text-muted); max-width: 600px; line-height: 1.8; }

/* ヒーロー */
.hero { margin-top: 64px; background: var(--navy); color: var(--white); padding: 100px 0 80px; }
.hero-eyebrow { display: inline-block; background: var(--red); color: var(--white); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; padding: 4px 12px; border-radius: 2px; margin-bottom: 24px; }
.hero h1 { font-size: 48px; font-weight: 700; line-height: 1.3; margin-bottom: 24px; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-sub { font-size: 16px; line-height: 1.8; color: #b0bec5; max-width: 600px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary { display: inline-block; background: var(--red); color: var(--white); padding: 14px 32px; border-radius: 4px; font-size: 15px; font-weight: 500; transition: background 0.2s; }
.btn-primary:hover { background: var(--red-light); }
.btn-outline { display: inline-block; border: 1.5px solid rgba(255,255,255,0.4); color: var(--white); padding: 14px 32px; border-radius: 4px; font-size: 15px; font-weight: 500; }
.btn-outline:hover { border-color: var(--white); }

/* 選ばれる理由 */
.reasons { background: var(--gray); }
.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.reason-card { background: var(--white); border-radius: 8px; padding: 32px 28px; border-top: 3px solid var(--red); }
.reason-num { font-size: 36px; font-weight: 700; color: var(--red); opacity: 0.2; line-height: 1; margin-bottom: 16px; }
.reason-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
.reason-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; }

/* サービス */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.service-card { border: 1px solid var(--border); border-radius: 8px; padding: 36px 32px; transition: box-shadow 0.2s; }
.service-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.service-tag { display: inline-block; background: #fde8e8; color: var(--red); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 2px; margin-bottom: 16px; }
.service-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.8; margin-bottom: 24px; }
.service-price { font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 16px; }
.service-price strong { color: var(--red); }
.service-link { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--red); font-weight: 500; }
.service-link::after { content: ' →'; }

/* 代表 */
.about { background: var(--navy); color: var(--white); }
.about-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: center; }
.about-avatar { width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 2px solid var(--red); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.about-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; text-align: center; }
.about-title-text { font-size: 13px; color: #b0bec5; text-align: center; }
.about-career { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; justify-content: center; }
.career-tag { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); color: #b0bec5; font-size: 12px; padding: 4px 12px; border-radius: 2px; }
.about-message .section-title { color: var(--white); }
.about-message p { font-size: 15px; color: #b0bec5; line-height: 1.9; margin-bottom: 16px; }

/* 実績 */
.results { background: var(--gray); }
.results-placeholder { margin-top: 48px; border: 2px dashed var(--border); border-radius: 8px; padding: 80px 40px; text-align: center; }
.results-placeholder p { color: var(--text-muted); font-size: 15px; }

/* ブログ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.blog-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; display: block; }
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.blog-thumb { height: 160px; background: var(--gray); overflow: hidden; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 20px; }
.blog-cat { display: inline-block; background: #fde8e8; color: var(--red); font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 2px; margin-bottom: 8px; }
.blog-title-card { font-size: 15px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; color: var(--navy); }
.blog-date { font-size: 12px; color: var(--text-muted); }

/* CTA */
.cta-section { background: var(--red); color: var(--white); text-align: center; padding: 80px 0; }
.cta-section .section-title { color: var(--white); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.8); font-size: 15px; margin-bottom: 32px; }
.btn-white { display: inline-block; background: var(--white); color: var(--red); padding: 14px 40px; border-radius: 4px; font-size: 15px; font-weight: 700; }
.btn-white:hover { opacity: 0.9; }

/* フッター */
footer { background: var(--navy); color: #b0bec5; padding: 48px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-logo { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-logo span { color: var(--red); }
.footer-tagline { font-size: 13px; line-height: 1.8; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13px; color: #b0bec5; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 12px; text-align: center; }

/* ブログページ */
.blog-page { padding: 80px 0; }
.blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.blog-list { display: flex; flex-direction: column; gap: 24px; }
.blog-list-card { display: grid; grid-template-columns: 200px 1fr; gap: 24px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s; }
.blog-list-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.blog-list-thumb { background: var(--gray); min-height: 140px; overflow: hidden; }
.blog-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-list-body { padding: 20px 20px 20px 0; }
.blog-list-title { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--navy); margin-bottom: 8px; }
.blog-list-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 8px; }

/* サイドバー */
.sidebar { position: sticky; top: 80px; }
.sidebar-block { border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 24px; }
.sidebar-block h3 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--red); }
.sidebar-cta { background: var(--red); border-radius: 8px; padding: 24px; text-align: center; }
.sidebar-cta p { font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.sidebar-cta a { display: block; background: var(--white); color: var(--red); font-size: 13px; font-weight: 700; padding: 10px; border-radius: 4px; }

/* 投稿ページ */
.page-hero { margin-top: 64px; background: var(--navy); color: var(--white); padding: 64px 0; }
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.page-hero p { color: #b0bec5; font-size: 15px; }

.single-post { padding: 64px 0; }
.post-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.post-content { line-height: 1.9; }
.post-content h2 { font-size: 24px; font-weight: 700; margin: 40px 0 16px; padding-left: 12px; border-left: 4px solid var(--red); }
.post-content h3 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { margin: 16px 0 16px 24px; }
.post-content li { margin-bottom: 8px; }

/* ブログ記事 テーブルスタイル（Dタイプ） */
.post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: 15px;
  margin: 24px 0;
}
.post-content table thead tr th {
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.post-content table thead tr th:first-child { border-radius: 6px 0 0 6px; }
.post-content table thead tr th:last-child { border-radius: 0 6px 6px 0; }
.post-content table tbody tr td {
  background: #fff;
  padding: 10px 14px;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.post-content table tbody tr td:first-child {
  border-radius: 6px 0 0 6px;
  font-weight: 600;
}
.post-content table tbody tr td:last-child { border-radius: 0 6px 6px 0; }
.post-content table tbody tr:hover td { background: #fef2f2; }

/* お問い合わせ */
.contact-page { padding: 80px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
.form-group { margin-bottom: 24px; }
label { display: block; font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.required { display: inline-block; background: var(--red); color: var(--white); font-size: 10px; padding: 1px 6px; border-radius: 2px; margin-left: 6px; }
.optional { display: inline-block; background: var(--gray); color: var(--text-muted); font-size: 10px; padding: 1px 6px; border-radius: 2px; margin-left: 6px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 4px; font-size: 15px; font-family: inherit; color: var(--text); background: var(--white); transition: border-color 0.2s; appearance: none; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); }
textarea { resize: vertical; min-height: 160px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.submit-btn { width: 100%; background: var(--red); color: var(--white); border: none; padding: 16px; border-radius: 4px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer; transition: background 0.2s; margin-top: 8px; }
.submit-btn:hover { background: var(--red-light); }

/* レスポンシブ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 30px; }
  .reasons-grid, .services-grid, .blog-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .blog-layout, .post-layout, .contact-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .blog-list-card { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
}

/* ブログ記事 テーブルスタイル（Dタイプ） */
.post-content table, .wp-block-table table, .entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: 15px;
  margin: 24px 0;
}
.post-content table thead tr th {
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.post-content table thead tr th:first-child { border-radius: 6px 0 0 6px; }
.post-content table thead tr th:last-child { border-radius: 0 6px 6px 0; }
.post-content table tbody tr td {
  background: #fff;
  padding: 10px 14px;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.post-content table tbody tr td:first-child {
  border-radius: 6px 0 0 6px;
  font-weight: 600;
}
.post-content table tbody tr td:last-child { border-radius: 0 6px 6px 0; }
.post-content table tbody tr:hover td { background: #fef2f2; }

figure.wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 4px;
  font-size: 15px;
  margin: 24px 0;
}
figure.wp-block-table table thead tr th {
  background: #C0392B;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
figure.wp-block-table table thead tr th:first-child { border-radius: 6px 0 0 6px; }
figure.wp-block-table table thead tr th:last-child { border-radius: 0 6px 6px 0; }
figure.wp-block-table table tbody tr td {
  background: #fff;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
figure.wp-block-table table tbody tr td:first-child {
  border-radius: 6px 0 0 6px;
  font-weight: 600;
}
figure.wp-block-table table tbody tr td:last-child { border-radius: 0 6px 6px 0; }
figure.wp-block-table table tbody tr:hover td { background: #fef2f2; }

figure.wp-block-table table {
  border-collapse: separate !important;
  border-spacing: 0 4px !important;
}
figure.wp-block-table table thead tr th {
  background: #C0392B !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 14px !important;
  font-weight: 700 !important;
}
figure.wp-block-table table thead tr th:first-child { border-radius: 6px 0 0 6px !important; }
figure.wp-block-table table thead tr th:last-child { border-radius: 0 6px 6px 0 !important; }
figure.wp-block-table table tbody tr td {
  background: #fff !important;
  border: none !important;
  padding: 10px 14px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06) !important;
}
figure.wp-block-table table tbody tr td:first-child {
  border-radius: 6px 0 0 6px !important;
  font-weight: 600 !important;
}
figure.wp-block-table table tbody tr td:last-child { border-radius: 0 6px 6px 0 !important; }
figure.wp-block-table table tbody tr:hover td { background: #fef2f2 !important; }