/*
Theme Name: Web Consul Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: ウェブマーケティングコンサルティング会社向けのフルカスタムWordPressテーマです。トップページ・サービス概要/実績・会社概要/お問い合わせの3ページ構成を想定しています。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: web-consul-theme
*/

/* =========================================================
   0. CSS変数(カラー・余白などはここでまとめて管理)
   ========================================================= */
:root {
  --color-primary: #12294a;   /* ネイビー(信頼感) */
  --color-accent: #2563eb;    /* ブルー(アクション・データ感) */
  --color-accent-light: #e8f0fe;
  --color-text: #1f2937;
  --color-text-light: #5b6472;
  --color-bg: #ffffff;
  --color-bg-soft: #f6f8fb;
  --color-border: #e2e6ec;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(18, 41, 74, 0.08);
  --max-width: 1120px;
  --header-height: 76px;
}

/* =========================================================
   1. リセット & 基本設定
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; color: var(--color-primary); }

ul { list-style: none; margin: 0; padding: 0; }

button, input, textarea { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section--soft { background: var(--color-bg-soft); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--color-text-light);
  margin: 0;
}

/* =========================================================
   2. ボタン
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover { background: #1d4fc7; }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.btn--outline:hover { background: rgba(255,255,255,.12); }

.btn--dark {
  background: var(--color-primary);
  color: #fff;
}
.btn--dark:hover { background: #0b1c33; }

/* =========================================================
   3. ヘッダー
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-branding img { max-height: 44px; }

.site-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0;
  letter-spacing: .01em;
}
.site-title a { color: inherit; }
.site-title a:hover { text-decoration: none; }

.site-tagline {
  font-size: 11px;
  color: var(--color-text-light);
  margin: 0;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-navigation ul {
  display: flex;
  gap: 28px;
}

.main-navigation a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
}
.main-navigation a:hover { color: var(--color-accent); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: all .2s ease;
}

@media (max-width: 880px) {
  .main-navigation {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-140%);
    opacity: 0;
    transition: all .25s ease;
    gap: 20px;
  }
  .main-navigation.is-open { transform: translateY(0); opacity: 1; }
  .main-navigation ul { flex-direction: column; gap: 16px; width: 100%; }
  .header-cta .btn span.btn-label-full { display: none; }
  .menu-toggle { display: block; }
}

/* =========================================================
   4. ヒーロー(フロントページ)
   ========================================================= */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1b3a68 60%, var(--color-accent) 140%);
  color: #fff;
  padding: 110px 0 100px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}

.hero .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 20px;
}

.hero h1 {
  color: #fff;
  font-size: 40px;
  margin-bottom: 20px;
}

.hero p.lead {
  color: rgba(255,255,255,.85);
  font-size: 17px;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 28px;
}

.hero-stats ul { display: grid; gap: 20px; }

.hero-stats li { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 16px; }
.hero-stats li:last-child { border-bottom: none; padding-bottom: 0; }

.hero-stats .num { font-size: 26px; font-weight: 800; }
.hero-stats .label { font-size: 13px; color: rgba(255,255,255,.75); }

@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}

/* =========================================================
   5. カード共通(強み・サービス・実績)
   ========================================================= */
.grid { display: grid; gap: 28px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  height: 100%;
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 18px;
}

.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--color-text-light); margin: 0; font-size: 14.5px; }
.card .more { display: inline-block; margin-top: 16px; font-weight: 700; font-size: 14px; }

/* 実績カード */
.case-card {
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--color-border);
}
.case-card .tag {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.case-card h3 { font-size: 17px; margin-bottom: 8px; }
.case-card p { color: var(--color-text-light); font-size: 14.5px; }
.case-card .result {
  margin-top: 18px;
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
}
.case-card .result strong { display: block; font-size: 22px; color: var(--color-accent); }
.case-card .result span { font-size: 12.5px; color: var(--color-text-light); }

/* =========================================================
   6. 注力領域バナー(CDP / MA / BigQuery / CRM)
   ========================================================= */
.focus-banner {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
}
.focus-banner .section-head h2,
.focus-banner .section-head p,
.focus-banner .section-head .eyebrow { color: #fff; }
.focus-banner .section-head p { color: rgba(255,255,255,.75); }

.focus-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 880px) { .focus-grid { grid-template-columns: repeat(2, 1fr); } }

.focus-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
}
.focus-item .abbr { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.focus-item .desc { font-size: 13px; color: rgba(255,255,255,.75); }

/* =========================================================
   7. CTAセクション
   ========================================================= */
.cta-band {
  background: var(--color-accent-light);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}
.cta-band h2 { font-size: 26px; }
.cta-band p { color: var(--color-text-light); margin-bottom: 28px; }

/* =========================================================
   8. ページ共通ヘッダー(下層ページ)
   ========================================================= */
.page-header {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  padding: 64px 0 48px;
  text-align: center;
}
.page-header .eyebrow {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .05em;
}
.page-header h1 { font-size: 32px; margin: 8px 0 12px; }
.page-header p { color: var(--color-text-light); max-width: 620px; margin: 0 auto; }

/* =========================================================
   9. 会社概要テーブル
   ========================================================= */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.company-table th, .company-table td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}
.company-table th {
  width: 200px;
  background: var(--color-bg-soft);
  color: var(--color-primary);
  font-weight: 700;
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: none; }

@media (max-width: 640px) {
  .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { border-bottom: none; padding-bottom: 6px; }
  .company-table td { padding-top: 6px; }
}

/* =========================================================
   10. お問い合わせフォーム
   ========================================================= */
.contact-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.form-row .required { color: #e11d48; font-size: 12px; margin-left: 6px; }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--color-bg-soft);
  transition: border-color .2s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #fff;
}
.form-row textarea { min-height: 150px; resize: vertical; }

/* ハニーポット(スパム対策用の非表示フィールド) */
.form-honeypot { position: absolute; left: -9999px; top: -9999px; }

.form-notice {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 14.5px;
  font-weight: 600;
}
.form-notice--success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-notice--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* =========================================================
   11. フッター
   ========================================================= */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.8);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 { color: #fff; font-size: 14px; letter-spacing: .04em; margin-bottom: 18px; }
.footer-grid p { font-size: 14px; line-height: 1.9; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,.75); font-size: 14px; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* =========================================================
   12. ユーティリティ
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.u-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
