/* ==========================================================
   株式会社タナボタ コーポレートサイト スタイルシート
   構成: 変数定義 → 基本 → ヘッダー → 各セクション → フッター → レスポンシブ
   ========================================================== */

:root {
  --color-main: #1b3a5b;      /* 濃紺: 信頼感のあるメインカラー */
  --color-accent: #e8a33d;    /* 琥珀: 「たなぼた」の温かみを表すアクセント */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;    /* 交互セクションの薄いグレー */
  --color-text: #2b2b2b;
  --color-text-sub: #5f6b76;
  --font-body: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.9;
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--color-main); }

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

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-large { padding: 18px 48px; font-size: 1.1rem; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e3e8ee;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: block; line-height: 0; }
.logo img { height: 46px; width: auto; }
.global-nav a {
  margin-left: 22px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--color-text);
}
.global-nav a:hover { color: var(--color-accent); }
.global-nav .nav-contact {
  background: var(--color-main);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
}
.global-nav .nav-contact:hover { color: #fff; opacity: 0.85; }

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-main) 0%, #2c5580 100%);
  color: #fff;
  text-align: center;
  padding: 110px 0 100px;
}
.hero-catch {
  font-size: 2.3rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.hero-lead {
  font-size: 1.02rem;
  opacity: 0.92;
  margin-bottom: 40px;
}

/* ---------- セクション共通 ---------- */
/* scroll-margin-top: 固定ヘッダーの高さぶん、アンカー移動時の重なりを避ける */
.section { padding: 90px 0; scroll-margin-top: 70px; }
.section-alt { background: var(--color-bg-alt); }

.section-title {
  font-size: 1.7rem;
  color: var(--color-main);
  margin-bottom: 48px;
  text-align: center;
}
.section-title span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-top: 6px;
}

/* ---------- 事業内容 ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 12px;
  padding: 34px 28px;
  box-shadow: 0 2px 10px rgba(27, 58, 91, 0.06);
}
.service-num {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 1.12rem;
  color: var(--color-main);
  margin-bottom: 14px;
  line-height: 1.6;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--color-text-sub);
}

/* ---------- ヘヤゼロ紹介 ---------- */
.heyazero-inner { max-width: 720px; }
.heyazero-text p { margin-bottom: 20px; }
.feature-list {
  list-style: none;
  margin-bottom: 32px;
}
.feature-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* ---------- 会社概要 ---------- */
.company-table {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  border-bottom: 1px solid #e3e8ee;
  padding: 18px 16px;
  text-align: left;
  font-size: 0.95rem;
  vertical-align: top;
}
.company-table th {
  width: 200px;
  color: var(--color-main);
  white-space: nowrap;
}

/* ---------- お問い合わせ ---------- */
.contact-inner { text-align: center; }
.contact-inner > p { margin-bottom: 24px; }

.contact-tel a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-main);
  text-decoration: none;
}

/* ---------- お問い合わせフォーム ---------- */
.contact-form {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: left;
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-weight: bold;
  font-size: 0.92rem;
  color: var(--color-main);
  margin-bottom: 6px;
}
.required {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: 2px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccd4dc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.contact-form textarea { min-height: 160px; resize: vertical; }

/* ハニーポット欄は画面外に隠す（display:noneだとbotが無視するため） */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.recaptcha-row {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}
.form-submit { text-align: center; margin-top: 24px; }
.form-submit button { border: none; cursor: pointer; font-size: 1.05rem; font-family: inherit; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--color-main);
  color: #fff;
  text-align: center;
  padding: 40px 0;
}
.footer-logo { font-weight: bold; margin-bottom: 8px; }
.footer-info { font-size: 0.8rem; opacity: 0.85; margin-bottom: 6px; }
.copyright { font-size: 0.8rem; opacity: 0.7; }

/* ---------- レスポンシブ ---------- */
.sp-only { display: none; }

@media (max-width: 768px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 0 10px;
    gap: 8px;
  }
  .global-nav a { margin: 0 8px; font-size: 0.85rem; }

  .hero { padding: 70px 0 60px; }
  .hero-catch { font-size: 1.5rem; }
  .hero-lead { font-size: 0.92rem; }

  .section { padding: 60px 0; scroll-margin-top: 110px; }
  .service-grid { grid-template-columns: 1fr; }

  .company-table th {
    width: auto;
    display: block;
    border-bottom: none;
    padding-bottom: 0;
  }
  .company-table td {
    display: block;
    padding-top: 6px;
  }
}
