/* ============================================
   うちけんコンサルティング 共通スタイル
   ============================================ */

/* リセット・基本設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1a3a5c;
  --color-primary-light: #2a5298;
  --color-accent: #e8a020;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-gray: #f7f7f7;
  --color-bg-dark: #1a3a5c;
  --color-border: #dddddd;
  --font-main: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  --max-width: 1000px;
  --section-padding: 60px 20px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   ヘッダー
   ============================================ */
header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.site-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.site-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
}

nav ul li a {
  display: block;
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ============================================
   ヒーロー（トップ）
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* ============================================
   ページヒーロー（内部ページ共通）
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  padding: 52px 20px;
  text-align: center;
}

.page-hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.page-hero p {
  margin-top: 12px;
  opacity: 0.85;
  font-size: 0.95rem;
}

/* ============================================
   セクション共通
   ============================================ */
section {
  padding: var(--section-padding);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 8px;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  margin: 12px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 40px;
  margin-top: 4px;
  font-size: 0.95rem;
}

.bg-gray { background: var(--color-bg-gray); }
.bg-dark {
  background: var(--color-primary);
  color: #fff;
}
.bg-dark .section-title { color: #fff; }
.bg-dark .section-subtitle { color: rgba(255,255,255,0.75); }

/* ============================================
   お悩みリスト
   ============================================ */
.worry-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.worry-list li {
  background: #fff;
  border-left: 4px solid var(--color-accent);
  padding: 14px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.worry-list li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   カードグリッド
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-top: 4px solid var(--color-accent);
}

.card-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   ステップフロー
   ============================================ */
.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-top: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.step-item {
  display: flex;
  gap: 20px;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.step-num {
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-content {
  padding: 8px 0 36px;
}

.step-content h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ============================================
   料金テーブル
   ============================================ */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

.price-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
}

.price-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  vertical-align: middle;
}

.price-table tr:nth-child(even) td {
  background: var(--color-bg-gray);
}

.check { color: #27ae60; font-size: 1.2rem; }
.cross { color: #ccc; font-size: 1.2rem; }

/* ============================================
   ボタン
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary { background: var(--color-accent); color: #fff; }
.btn-secondary { background: var(--color-primary); color: #fff; }
.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 12px 36px;
}

/* CTAセクション */
.cta-section {
  background: var(--color-accent);
  padding: 52px 20px;
  text-align: center;
  color: #fff;
}

.cta-section h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.cta-section p {
  margin-bottom: 28px;
  opacity: 0.9;
}

.btn-cta {
  background: #fff;
  color: var(--color-accent);
  padding: 14px 48px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn-cta:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* ============================================
   ブログ一覧
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.blog-card:hover { transform: translateY(-3px); }

.blog-card-thumb {
  background: var(--color-bg-gray);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.blog-card-body { padding: 16px; }

.blog-card-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.blog-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.5;
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--color-bg-gray);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 8px;
}

/* ============================================
   フッター
   ============================================ */
footer {
  background: #111;
  color: #ccc;
  padding: 40px 20px 20px;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 6px; }

.footer-col ul li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-col p { line-height: 1.8; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #777;
  font-size: 0.8rem;
}

/* ============================================
   レスポンシブ
   ============================================ */
@media (max-width: 768px) {
  .header-inner { height: 56px; }

  nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 12px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  nav.open { display: block; }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav ul li a {
    padding: 12px 20px;
    border-radius: 0;
  }

  .hamburger { display: flex; }

  .hero h1 { font-size: 1.4rem; }
  .page-hero h1 { font-size: 1.4rem; }
  .section-title { font-size: 1.3rem; }
}
