/* ==========================================================================
   1. 変数定義 (:root)
   ========================================================================== */
:root {
  /* カラーパレット（青柳製本サイト寄りの落ち着いた印象） */
  --bg: #ffffff;
  --text: #0f1a2b;          /* 濃紺 */
  --muted: #5b6472;         /* グレイッシュ */
  --primary: #0a5a3b;       /* 深緑（CTA ※ただしボタン等では青系がハードコードされています） */
  --primary-hover: #084b31; /* 深緑 濃 */
  --accent: #b7d7c9;        /* 薄緑（下線・バッジなど） */
  --border: #e4e7ec;        /* 薄いグレー */
  --surface: #f7f9fb;       /* ごく淡いグレー */
  --shadow: rgba(17, 24, 39, .06);
}

/* ==========================================================================
   2. ベーススタイル / リセット
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   3. ユーティリティ / 共通クラス
   ========================================================================== */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.bg-light-gray {
  background-color: #f5f5f5;
}

.bg-blue {
  background-color: #0076c8;
  color: #fff;
}

/* 見出し共通 */
h1, h2, h3 {
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: bold;
}

h1 {
  font-size: 2.8em;
  color: #fff;
}

h2 {
  font-size: 2.5em;
  color: #333;
  text-align: center;
  margin-bottom: 40px;
}

.bg-blue h2 {
  color: #fff;
}

h3 {
  font-size: 1.5em;
  color: #333;
}

/* ==========================================================================
   4. ボタン (Buttons)
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: #0076c8; 
  color: #fff;
  border: 2px solid #0076c8;
}

.btn-primary:hover {
  background-color: #005a9c;
  border-color: #005a9c;
  text-decoration: none;
}

.btn-secondary {
  background-color: #fff;
  color: #0076c8;
  border: 2px solid #0076c8;
}

.btn-secondary:hover {
  background-color: #e0f2ff;
  text-decoration: none;
}

.btn-white {
  background-color: #fff;
  color: #0076c8;
  border: 2px solid #fff;
}

.btn-white:hover {
  background-color: #eee;
  color: #005a9c;
  text-decoration: none;
}

/* ==========================================================================
   5. ヘッダー (Header)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
}

/* ==========================================================================
   6. ヒーローセクション (Hero)
   ========================================================================== */
.hero {
  background: url('image/22114659_l.jpg') no-repeat center center/cover;
  min-height: 550px;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-subtext {
  font-size: 2em;
  margin-bottom: 10px;
  font-weight: 700;
}

.hero h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-description {
  font-size: 1.5em;
  margin-bottom: 35px;
  line-height: 1.8;
}

/* ==========================================================================
   7. セクション共通 & グリッド
   ========================================================================== */
.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
 
}

.section-spacing {
  padding: 80px 0;
}

.section-title {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 8px;
  line-height: 1.3;
}

.section-intro {
  color: var(--muted);
  text-align: center;
  font-size: 16px;
  margin: 0 0 16px;
  line-height: 1.95;
}

p.section-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #555;
  line-height: 1.8;
}

/* グリッドシステム */
.grid {
  display: grid;
  gap: 22px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.single { grid-template-columns: 1fr; }

/* ==========================================================================
   8. 特徴カード (Feature Card)
   ========================================================================== */
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 6px 18px var(--shadow);
}

.feature-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
  font-weight: 800;
}

.feature-card h3 .icon {
  width: 72px;
  height: 72px;
  vertical-align: middle;
  margin-right: 10px;
}

.feature-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

/* バッジ */
.badge-row {
  margin-top: 8px;
}

.badge {
  display: inline-block;
  background: var(--surface);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid var(--border);
  margin-right: 8px;
}

/* ==========================================================================
   9. テーブルとリスト
   ========================================================================== */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 15px;
}

.table th, .table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.95;
}

.table th {
  background: #f1f4f8;
  width: 24%;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.table td {
  font-size: 15px;
  color: var(--text);
}

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: none;
}

.list {
  margin: 0;
  padding-left: 20px;
}

.list li {
  margin: 6px 0;
  color: var(--text);
  line-height: 1.95;
}

/* ==========================================================================
   10. 導入事例 (Cases) & サムネイル
   ========================================================================== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 6px 18px var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.case-thumb {
  position: relative;
  width: 100%;
  height: 160px;
  background: #edf2f6;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border);
}

.case-body {
  padding: 14px;
}

.case-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.6;
}

.case-text {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.95;
}

/* サムネイル列 */
.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #edf2f6;
  object-fit: cover;
  box-shadow: 0 4px 12px var(--shadow);
  border: 1px solid var(--border);
}

/* ==========================================================================
   11. 料金表セクション (Pricing)
   ========================================================================== */
.pricing {
  background-color: #f7f9fc;
}

.pricing h2 {
  margin-bottom: 30px;
  font-weight: 700;
}

.pricing-intro {
  text-align: center;
  font-size: 1.1em;
  color: #555;
  margin-bottom: 50px;
  line-height: 1.6;
}
.pricing-table {
    width: 100%;
    max-width: 700px;
    margin: 30px auto;          /* ページ中央 */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    border-collapse: collapse;
    border: 2px solid #333;
    text-align: center;         /* 文字中央寄せ */
}

.pricing-table thead th {
    background-color: #007bff;
    color: #fff;
    padding: 16px 20px;
    font-size: 22px;
    font-weight: 700;
    border-bottom: 2px solid #333;
}

/* 列の縦線 */
.pricing-table th:first-child,
.pricing-table td:first-child {
    border-right: 2px solid #ccc;
}

.pricing-table tbody td {
    padding: 14px 20px;
    border-top: 1px solid #ccc;
}

/* 数字をきれいに並べる */
.pricing-table tbody td:last-child {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.pricing-note {
  text-align: center;
  font-size: 0.95em;
  color: #777;
  margin-top: 40px;
  line-height: 1.6;
}

/* ==========================================================================
   12. お問い合わせCTAセクション
   ========================================================================== */
.contact-cta {
  background-color: #f7f9fc;
  padding: 100px 0;
  text-align: center;
  color: #333;
}

.contact-cta h2 {
  color: #333;
  font-size: 2.8em;
  line-height: 1.4;
  margin-bottom: 40px;
  font-weight: 700;
}

.cta-button {
  display: inline-block;
  background-color: #0076c8;
  color: #fff;
  border: 2px solid #0076c8;
  padding: 15px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background-color: #0066aa;
  color: #fff;
  border-color: #0066aa;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   13. フッター (Footer)
   ========================================================================== */
.footer {
  background-color: #333;
  color: #fff;
  padding: 30px 0;
  font-size: 0.9em;
  text-align: center;
  border-top: 5px solid #0076c8;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: #ccc;
  font-weight: 300;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   14. レスポンシブ (Media Queries)
   ========================================================================== */

/* 1024px以下 */
@media (max-width: 1024px) {
  .pricing-list {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
}

/* 960px以下 */
@media (max-width: 960px) {
  .grid.cols-3 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .hero-wide { grid-template-columns: 1fr; }
  
  .contact-cta h2 { font-size: 1.6em; }
}

/* 768px以下 */
@media (max-width: 768px) {
  /* Pricing */
  .section-spacing { padding: 60px 0; }
  h2 { font-size: 2.5em; }
  .pricing-list {
    grid-template-columns: repeat(1, 1fr);
    max-width: 400px;
  }
  .pricing-plan.featured { transform: translateY(0); }
  .pricing-plan.featured:hover { transform: translateY(-5px); }
  .pricing-plan h3 { font-size: 1.3em; }
  .pricing-plan .price { font-size: 2em; }
  
  /* CTA */
  .contact-cta { padding: 80px 20px; }
  .contact-cta h2 {
    font-size: 2em;
    margin-bottom: 30px;
    line-height: 1.3;
  }
  .cta-button {
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 6px;
  }
}

/* 680px以下 */
@media (max-width: 680px) {
  .hero-title { font-size: 34px; }
  .section-title { font-size: 26px; }
  .feature-card h3 { font-size: 19px; }
  .hero-wide h3 { font-size: 20px; }
  .case-title { font-size: 17px; }
}

/* 480px以下 */
@media (max-width: 480px) {
  /* Pricing */
  .pricing-plan { padding: 20px; }
  h2 {
    font-size: 2em;
    margin-bottom: 40px;
  }
  .pricing-intro { margin-bottom: 40px; }
  
  /* CTA */
  .contact-cta { padding: 60px 15px; }
  .contact-cta h2 {
    font-size: 1.6em;
    line-height: 1.5;
  }
  .cta-button {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
  }
}