/* 基本設定と背景色の変更 */
body {
    background-color: #FAE9EA; /* #FDF1F2 よりも約5%濃い色 */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* フォント設定をフォーム要素など含めて全体に適用 */
body, input, textarea, button, select {
    font-family: "MS PMincho", "MS Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
    color: #333;
}

/* コンテンツの中央寄せと最大幅の設定 (スマホ対応) */
.container {
    max-width: 1200px; /* PCでの最大幅 */
    margin: 0 auto; /* 中央寄せ */
    padding: 0 15px; /* 左右に余白を設定 (スマホで画面端に張り付かないように) */
}

/* ヘッダーとナビゲーション (リンクの横並び) */
header {
    background-color: #FAE9EA;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

header h1 {
    margin: 0;
    padding: 0 15px;
    font-size: 1.8em;
    color: #333;
}

/* ナビゲーションの横並び設定 */
header nav ul {
    list-style: none;
    padding: 0 15px;
    margin: 10px 0 0 0;
    display: flex; /* Flexboxで横並びにする */
    justify-content: flex-start; /* 左寄せ */
    flex-wrap: wrap; /* スマホで項目が多い場合のための折り返し設定 */
}

header nav ul li {
    margin-right: 15px;
}

header nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: 5px 0;
    display: block;
}

header nav ul li a:hover {
    color: #004d99;
}

/* メインコンテンツのセクション設定 */
main section {
    padding: 40px 0;
    text-align: center; /* コンテンツ内のテキストを中央寄せ */
}

/* キャッチコピー（Heroセクション）の強調 - ここを修正 */
.hero {
    /* 背景画像とオーバーレイを追加 */
    background-image: linear-gradient(rgba(0, 77, 153, 0.5), rgba(0, 77, 153, 0.5)), url('https://images.unsplash.com/photo-1579546929518-9e396f3cc809'); /* TODO: 実際の画像URLに差し替えてください */
    background-size: cover; /* 画像がセクションを覆うように */
    background-position: center; /* 画像を中央に配置 */
    color: #fff; /* テキストを白に変更 */
    padding: 100px 20px; /* 上下の余白を増やして高さを出す */
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative; /* テキスト要素の配置基準 */
    overflow: hidden; /* 角丸の外側を隠す */
}

.hero h2 {
    font-size: 2.5em;
    color: #fff; /* テキストカラーを白に */
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* テキストに影を付けて読みやすくする */
    position: relative; /* z-indexを有効にするため */
    z-index: 2;
}

.hero p {
    font-size: 1.2em;
    color: #fff; /* テキストカラーを白に */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* テキストに影を付けて読みやすくする */
    position: relative; /* z-indexを有効にするため */
    z-index: 2;
}

/* 強みとサービス紹介のリスト調整 */
.strengths ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.strengths ul li {
    background-color: #fff;
    padding: 20px;
    flex: 1 1 300px; /* カードの最小幅を少し広げる */
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 影を少し濃くする */
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* ホバー時のアニメーションを設定 */
}

.strengths ul li:hover {
    transform: translateY(-5px); /* 少し上に浮き上がる */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* 影をさらに濃くして立体感を出す */
}

/* アイコンのスタイル */
.icon {
    display: block;
    font-style: normal; /* iタグの斜体をリセット */
    font-size: 2.5em; /* アイコンサイズ */
    color: #004d99; /* ブランドカラーを適用 */
    margin-bottom: 15px;
}

/* LINE誘導ボタンの強調 */
.btn-line-cta {
    display: inline-block;
    background-color: #1ed81e; /* LINEカラー */
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    padding: 15px 30px;
    border-radius: 5px;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-line-cta:hover {
    background-color: #17a817;
}

/* フッター */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #fff;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    color: #333;
}

/* 下層ページのセクションをカード風にするスタイル */
#service section,
#company section,
#recruit section,
#contact section {
    background-color: transparent;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#service section:hover,
#company section:hover,
#recruit section:hover,
#contact section:hover {
    transform: none;
    box-shadow: none;
}

/* メディアクエリ (スマホ対応の微調整) */
@media (max-width: 600px) {
    header h1 {
        text-align: center;
        padding-bottom: 10px;
    }
    header nav ul {
        justify-content: center; /* スマホでは中央寄せ */
    }
    header nav ul li {
        margin: 5px 10px;
    }
    .hero h2 {
        font-size: 1.8em;
    }
    .strengths ul {
        flex-direction: column; /* 強みを縦に並べる */
    }
}

/* --- ここから追記（末尾に追加してください） --- */

/* キーボード操作時の可視フォーカス（既存UIに干渉しない単純アウトライン） */
:focus-visible {
  outline: 3px solid #ff9f1c; /* 目立つがデザインを壊さない色味（変更可） */
  outline-offset: 3px;
}

/* スキップリンク（必要ならHTMLに <a class="skip-link" href="#top">本文へスキップ</a> を配置） */
.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
  background: #004d99;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
}

/* アニメーションを好まないユーザー配慮（既存のトランジションを抑制） */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ベース */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html { font-size: 16px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: #111827;
  line-height: 1.8;
  text-align: left; /* センタリング禁止 */
}

/* コンテナ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* ヘッダー */
.header {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}
.site-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

/* グローバルナビ（li禁止のため、inlineリンク） */
.global-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.global-nav a {
  color: #374151;
  text-decoration: none;
  padding: 4px 2px;
}
.global-nav a[aria-current="page"] {
  color: #111827;
  font-weight: 600;
}
.sep {
  color: #9ca3af;
}

/* メイン */
.main { display: block; }
.page-title {
  font-size: 28px;
  margin: 20px 0 8px;
}

/* セクション */
.section {
  padding: 20px 0 8px;
  border-top: 1px solid #f3f4f6;
}
.section-title {
  font-size: 22px;
  margin: 0 0 12px;
}
.lead {
  color: #4b5563;
  margin: 0 0 14px;
}

/* 情報ブロック（li禁止・●禁止の代替） */
.info-block {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
  margin: 12px 0 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.info-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}
.info-row {
  margin: 4px 0;
  font-size: 15px;
  color: #1f2937;
}

/* 導入事例：2×2カードレイアウト */
.case-studies { padding-bottom: 16px; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2列 */
  gap: 18px; /* 余白拡張 */
}

.case-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.case-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: #111827;
  font-weight: 600;
}

.case-field {
  margin: 6px 0;
  font-size: 15px;
  color: #374151;
}

.case-note {
  margin: 10px 0 6px;
  font-size: 13px;
  color: #6b7280;
}

.case-links {
  margin-top: 10px;
}
.case-links a {
  color: #2563eb;
  text-decoration: none;
}
.case-links a:hover {
  text-decoration: underline;
}

/* フッター */
.footer {
  border-top: 1px solid #e5e7eb;
  background: #fff;
  margin-top: 24px;
}
.footer-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footer-nav a {
  color: #374151;
  text-decoration: none;
  padding: 4px 2px;
}
.footer .sep { color: #9ca3af; }
.copyright {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 20px;
  font-size: 13px;
  color: #6b7280;
}

/* レスポンシブ（スマホで1列） */
@media (max-width: 720px) {
  .case-grid {
    grid-template-columns: 1fr; /* スマホは1列 */
  }
}
/* --- ここまで追記 --- */