/* 基本スタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.7; /* 少し広げる */
  color: #212529; /* 標準的な濃いグレー */
  background-color: #fff;
}

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

.container {
  width: 90%;
  max-width: 1140px; /* 少し狭くしてコンテンツをまとめる */
  margin: 0 auto;
  padding: 3rem 0; /* セクションの上下余白を増やす */
}

h1,
h2,
h3 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.2rem; /* 少し大きく */
  color: #1A3A5A; /* ネイビー系の見出し色 */
  margin-bottom: 2rem; /* 下マージンを増やす */
}

h3 {
  font-size: 1.5rem; /* 少し大きく */
  color: #1A3A5A; /* ネイビー系の見出し色 */
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #fff;
}

/* ヘッダー */
header {
  padding: 0.5rem 1rem; /* パディングを調整 */
  text-align: left;
  border-bottom: 1px solid #e9ecef; /* 薄い区切り線 */
}

.logo-small {
  width: 80px; /* ロゴを少し大きく */
  margin: 0; /* auto を削除して左寄せに対応 */
}

/* ヒーローセクション */
.hero {
  padding: 4rem 0; /* 上下パディングを増やす */
  background-color: #f8f9fa; /* 薄い背景色を追加 */
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem; /* ロゴとテキストの間隔を調整 */
  text-align: center; /* 中央揃え */
}

@media (min-width: 768px) {
  .hero .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.hero-content {
  text-align: left;
  flex-basis: 60%; /* テキストエリアの幅 */
}

.hero-content h1 {
  font-size: 3rem; /* 大幅に大きく */
  margin-bottom: 1rem;
  color: #0f3c5f; /* メインの濃い青 */
}

.hero-logo {
  text-align: center;
  margin-top: 1rem; /* テキストとの間隔 */
  flex-basis: 35%; /* ロゴエリアの幅 */
}

.hero-logo img {
  width: 100%;
  max-width: 350px; /* ロゴの最大幅を調整 */
  margin-bottom: 0.5rem;
}

.company-name {
  font-size: 1.8rem; /* 少し大きく */
  font-weight: 700; /* 太く */
  color: #0f3c5f;
}

/* 企業理念 */
.philosophy {
  padding: 4rem 0;
}

.philosophy p {
  max-width: 800px;
  font-size: 1.1rem; /* 少し大きく */
  line-height: 1.8;
  margin-bottom: 1.5rem; /* 段落間を広げる */
}

/* 事業内容 */
.business {
  padding: 4rem 0;
  background-color: #f8f9fa; /* 薄い背景色 */
}

.business-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .business-content {
    flex-direction: row;
    align-items: flex-start; /* 上端揃えに変更 */
  }

  .business-text {
    flex: 1.5; /* テキストエリアを少し広めに */
  }

  .business-image {
    flex: 1;
  }
}

/* 生成AI塾 */
.ai-academy {
  padding: 4rem 0;
  background-color: #f8f9fa; /* 統一した薄いグレー */
}

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  background-color: #fff;
  padding: 2rem; /* パディングを増やす */
  border-radius: 8px;
  border: 1px solid #e0e0e0; /* 枠線を追加 */
  box-shadow: none; /* 影を削除 */
}

.feature img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* 研修プログラム */
.training {
  padding: 4rem 0;
}

.program-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .program-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.program {
  background-color: #fff; /* 背景を白に */
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0; /* 枠線を追加 */
}

.program ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

.program li {
  margin-bottom: 0.5rem;
}

.cta-button {
  text-align: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  background-color: #007bff; /* 明るい青 */
  color: #fff;
  padding: 12px 24px; /* パディング調整 */
  border-radius: 4px;
  font-weight: 500;
  font-size: 1rem; /* フォントサイズ指定 */
  text-transform: uppercase; /* 大文字に */
  border: none; /* ボーダーなし */
  transition: background-color 0.2s ease-in-out;
}

.btn:hover {
  background-color: #0056b3; /* ホバー時の色 */
}

/* 冊子企画・制作 */
.book-production {
  padding: 4rem 0;
  background-color: #f8f9fa; /* 統一した薄いグレー */
}

.service-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .service-container {
    grid-template-columns: 1fr 1fr; /* 2列レイアウトに変更 */
    grid-template-rows: auto auto;    /* 2行を定義 */
    grid-template-areas:
      "text1 image"
      "text2 image";
  }
  .service:nth-of-type(1) {
    grid-area: text1;
  }
  .service:nth-of-type(2) {
    grid-area: text2;
  }
  .service-image {
    grid-area: image;
    align-self: start; /* 画像を上揃えにする */
  }
}

.service {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0; /* 枠線を追加 */
  box-shadow: none; /* 影を削除 */
}

/* アプリケーション開発 */
.app-development {
  padding: 4rem 0;
}

.app-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .app-services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.app-service {
  text-align: center;
  padding: 2rem;
  background-color: #fff; /* 背景を白に */
  border-radius: 8px;
  border: 1px solid #e0e0e0; /* 枠線を追加 */
}

.icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
}

.app-note {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* 経営サポート */
.business-support {
  padding: 4rem 0;
  background-color: #f8f9fa; /* 統一した薄いグレー */
}

.support-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .support-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .support-services {
    grid-template-columns: repeat(4, 1fr);
  }
}

.support-service {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e0e0e0; /* 枠線を追加 */
  box-shadow: none; /* 影を削除 */
}

.support-note {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* フッター */
footer {
  background-color: #343a40; /* 標準的なダークグレー */
  color: #adb5bd; /* 少し明るいグレーのテキスト */
  padding: 4rem 0; /* パディングを増やす */
}

.footer-links {
  margin-bottom: 2rem;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none; /* 下線を削除 */
  transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
  color: #fff; /* ホバーで白く */
  text-decoration: underline; /* ホバーで下線 */
}

footer h2 {
  color: #FFFFFF; /* フッターのh2を見やすい白色に変更 */
}

.company-info {
  border-top: 1px solid #495057; /* 少し濃い区切り線 */
  padding-top: 2rem;
}

.company-info ul {
  margin-top: 1rem;
  padding-left: 0; /* リストの左パディングをリセット */
}

.company-info h3 {
  color: #fff; /* 見出しの色を白に */
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.company-info li {
  margin-bottom: 0.75rem; /* 少し間隔を広げる */
  font-size: 0.9rem;
}

/* スクロールアニメーション用スタイル */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px); /* 初期状態で50px下に配置 */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.is-visible {
  opacity: 1;
  transform: translateY(0); /* 表示されたら元の位置に */
}
