/* ===========================
   株式会社フォアループ - スタイルシート
   白ベース・プロフェッショナルブルー
   =========================== */

/* ===========================
   ユーティリティ
   =========================== */
.pc-only {
  display: inline;
}

/* リセット・基本設定 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* カラーパレット */
  --color-primary:      #1e3a5f;   /* 見出し・強調テキスト用ネイビー */
  --color-accent:       #2563eb;   /* アクセントブルー */
  --color-accent-hover: #1d4ed8;
  --color-accent-light: #eff6ff;   /* 薄青の背景 */
  --color-text:         #1e293b;   /* メインテキスト（ほぼ黒） */
  --color-text-mid:     #475569;   /* 補足テキスト */
  --color-text-light:   #64748b;   /* キャプション等 */
  --color-bg:           #ffffff;
  --color-bg-gray:      #f8fafc;   /* セクション背景 */
  --color-border:       #e2e8f0;
  --color-border-light: #f1f5f9;

  --font-main: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  --max-width: 960px;
  --header-height: 68px;

  /* シャドウ */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ===========================
   ヘッダー
   =========================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.header-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-decoration: none;
}

.logo-ja {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.logo-en {
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  font-weight: 400;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav ul li a {
  color: var(--color-text-mid);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.15s;
  text-decoration: none;
}

nav ul li a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ===========================
   ヒーローセクション
   =========================== */
.hero {
  background: var(--color-bg-gray);
  border-bottom: 1px solid var(--color-border);
  padding: 96px 32px 88px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-primary);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero p {
  font-size: 16px;
  color: var(--color-text-mid);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 2.0;
}

.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  padding: 13px 36px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,99,235,0.30);
  transform: translateY(-1px);
}

/* ===========================
   セクション共通
   =========================== */
section {
  padding: 80px 32px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 14px;
  border-radius: 2px;
}

/* ===========================
   事業内容セクション
   =========================== */
#services {
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.service-card {
  background: var(--color-bg-gray);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 32px 24px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: #bfdbfe;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.service-card p {
  font-size: 14px;
  color: var(--color-text-mid);
  line-height: 1.85;
}

.services-note {
  font-size: 14px;
  color: var(--color-text-light);
  text-align: center;
  padding: 14px 20px;
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  background: var(--color-bg-gray);
}

/* ===========================
   強み・専門領域セクション
   =========================== */
#strengths {
  background: var(--color-bg-gray);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.strengths-lead {
  font-size: 15px;
  color: var(--color-text-mid);
  line-height: 2.0;
  margin-bottom: 48px;
  max-width: 720px;
}

/* 専門領域：3列タグ風リスト */
.expertise-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.expertise-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.expertise-tag::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* 実績ハイライト：数字で見せる */
.strengths-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.stat-item {
  background: var(--color-bg);
  padding: 32px 24px;
  text-align: center;
}

.stat-number {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-number span {
  font-size: 22px;
  font-weight: 600;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-mid);
  font-weight: 500;
  line-height: 1.5;
}

/* ===========================
   会社概要セクション
   =========================== */
#about {
  background: var(--color-bg);
}

.about-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.about-table tr {
  border-bottom: 1px solid var(--color-border-light);
}

.about-table tr:first-child {
  border-top: 1px solid var(--color-border);
}

.about-table tr:last-child {
  border-bottom: 1px solid var(--color-border);
}

.about-table th {
  width: 180px;
  padding: 20px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
  vertical-align: top;
  white-space: nowrap;
}

.about-table td {
  padding: 20px 16px;
  color: var(--color-text);
  vertical-align: top;
  line-height: 1.85;
}

/* ===========================
   お問い合わせセクション
   =========================== */
#contact {
  background: var(--color-accent-light);
  border-top: 1px solid #bfdbfe;
  text-align: center;
  padding: 56px 32px;
}

#contact .section-label {
  color: var(--color-accent);
}

#contact .section-title {
  color: var(--color-primary);
}

#contact .section-title::after {
  background: var(--color-accent);
  margin: 14px auto 0;
}

.contact-lead {
  font-size: 15px;
  color: var(--color-text-mid);
  margin-bottom: 32px;
  line-height: 2.0;
}

.contact-items {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.contact-item-label {
  font-size: 11px;
  color: var(--color-text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.contact-item-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.contact-item-value a {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-item-value a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.btn-form-link {
  display: inline-block;
  background: var(--color-bg);
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  padding: 11px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.btn-form-link:hover {
  background: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
}

/* ===========================
   フッター
   =========================== */
footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 20px 32px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ===========================
   ハンバーガーボタン（モバイル用）
   =========================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.15s;
}

.nav-toggle:hover {
  background: var(--color-bg-gray);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   レスポンシブ対応：タブレット以下
   =========================== */
@media (max-width: 768px) {
  /* ヘッダー */
  .header-inner {
    padding: 0 20px;
  }

  /* ハンバーガーボタンを表示 */
  .nav-toggle {
    display: flex;
  }

  /* ナビゲーション：ドロワーダウンメニュー */
  nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }

  nav.is-open {
    max-height: 300px;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  nav ul li a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--color-border-light);
  }

  nav ul li:last-child a {
    border-bottom: none;
  }

  /* ヒーロー */
  .pc-only {
    display: none;
  }

  .hero {
    padding: 56px 20px 48px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.55;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.9;
  }

  /* セクション共通 */
  section {
    padding: 56px 20px;
  }

  #contact {
    padding: 48px 20px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 28px;
  }

  /* 事業内容 */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .service-card {
    padding: 24px 20px;
  }

  /* 強み・専門領域 */
  .strengths-lead {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .expertise-list {
    gap: 8px;
    margin-bottom: 28px;
  }

  .expertise-tag {
    font-size: 13px;
    padding: 8px 14px;
  }

  .strengths-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    padding: 20px 16px;
  }

  .stat-number {
    font-size: 36px;
  }

  /* 会社概要テーブル */
  .about-table {
    font-size: 14px;
  }

  .about-table th {
    width: 90px;
    font-size: 12px;
    padding: 14px 10px;
    white-space: normal;
  }

  .about-table td {
    padding: 14px 10px;
  }

  /* お問い合わせ */
  .contact-items {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
  }

  .contact-item-value {
    font-size: 16px;
  }

  .btn-form-link {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 13px 20px;
  }
}

/* ===========================
   レスポンシブ対応：スマートフォン
   =========================== */
@media (max-width: 480px) {
  /* ヘッダー */
  .logo-ja {
    font-size: 15px;
  }

  .logo-en {
    font-size: 10px;
  }

  /* ヒーロー */
  .hero {
    padding: 48px 16px 40px;
  }

  .hero h1 {
    font-size: 21px;
  }

  .hero-eyebrow {
    font-size: 10px;
    padding: 3px 12px;
    margin-bottom: 20px;
  }

  .btn-primary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  /* セクション共通 */
  section {
    padding: 48px 16px;
  }

  #contact {
    padding: 40px 16px;
  }

  .section-title {
    font-size: 20px;
  }

  /* 強み・専門領域 */
  .strengths-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
  }

  .stat-item {
    padding: 16px 8px;
  }

  .stat-number {
    font-size: 26px;
  }

  .stat-number span {
    font-size: 16px;
  }

  .stat-label {
    font-size: 11px;
  }

  /* 会社概要 */
  .about-table th {
    width: 80px;
    font-size: 11px;
    padding: 12px 8px;
  }

  .about-table td {
    font-size: 13px;
    padding: 12px 8px;
  }

  /* フッター */
  footer {
    font-size: 11px;
    padding: 16px;
  }
}

/* ===========================
   印刷用スタイル（PDF出力）
   =========================== */
@media print {
  /* ハンバーガーボタンを非表示 */
  .nav-toggle {
    display: none !important;
  }

  /* ナビゲーションを常に表示 */
  nav {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border-bottom: none !important;
  }

  nav ul {
    flex-direction: row !important;
    padding: 0 !important;
  }

  nav ul li a {
    padding: 0 12px !important;
    border-bottom: none !important;
  }

  /* pc-onlyを表示 */
  .pc-only {
    display: inline !important;
  }

  /* ヒーロー */
  .hero h1 {
    font-size: 32px !important;
  }

  /* 事業内容：3カラムに戻す */
  .services-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* 統計：3カラムに戻す */
  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* 専門領域タグ */
  .strengths-tags {
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }

  /* お問い合わせ */
  .contact-items {
    flex-direction: row !important;
  }

  /* ページ区切りを制御 */
  section {
    page-break-inside: avoid;
  }

  /* リンクの下線を非表示 */
  a {
    text-decoration: none !important;
  }

  /* ボタンの印刷 */
  .btn-primary,
  .btn-form-link {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* 背景色を印刷 */
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
