/* 基本設定 */
body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  line-height: 1.6;
  color: #333;
  scroll-behavior: smooth;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0px 20px;
}

.section {
  /* padding: 80px 0; */
  padding: 50px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  /* width: 50px; */
  width: 250px;
  height: 3px;
  background: #007bff;
  margin: 15px auto 0;
}

/* ヘッダー */
header {
  background: #fff;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: "Meiryo UI";
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none !important;
}

.logo-img {
  height: 60px;
  margin-right: 10px;
}

.site-title {
  font-weight: bold;
  font-size: 1.5rem;
  color: #0056b3;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  margin: 0;
}

.main-nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 12px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    /* width: 100%; */
    background: #fff;
    padding: 16px 18px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav ul li a {
    display: block;
    width: 100%;
    padding: 8px 0;
  }

  header .container {
    flex-wrap: wrap;
  }
}

/* ヒーローエリア */
.hero {
  /* background: linear-gradient(135deg, #e0f2ff 0%, #ffffff 100%); */
  /* padding: 10px 0; */
  text-align: center;
  padding: 20px;
}

.hero h2 {
  font-size: 3rem;
  color: #0056b3;
  /* margin-bottom: 20px; */
  margin: 0px !important;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* ボタン */
.btn {
  background: #007bff;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #0056b3;
}

/* サービスカード */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  /* border-top: 4px solid #007bff; */
  border: 1px solid lightgray;
}

/* その他スタイル */
.bg-light {
  background: #f9f9f9;
}

.bg-blue {
  background: #0056b3;
}

.text-white {
  color: #fff;
  text-align: center;
}

footer {
  text-align: center;
  padding: 5px 0;
  background: #333;
  color: #fff;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: all 0.8s;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

.photo {
  width: 240px;
  height: 320px;
  background: #eaeaea;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 円レイアウト ===== */
.venn-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* 中央の画像 */
.venn-img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  padding-top: 50px;
}

/* 説明カード共通 */
.feature {
  position: absolute;
  width: 170px;
  background: white;
  /* padding: 20px; */
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 10px;
}

/* 各ポジション */
.ai {
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
}

.math {
  left: -240px;
  top: 50%;
  transform: translateY(-50%);
}

.web {
  right: -240px;
  top: 50%;
  transform: translateY(-50%);
}

/* タイトル色 */
.math h4 {
  color: #3d7be0;
}

.web h4 {
  color: #3fa7d6;
}

.ai h4 {
  color: #00a86b;
}

/* .feature h3 {
  margin-bottom: 10px;
} */

.feature p {
  font-size: 14px;
  /* line-height: 1.6; */
  color: #555;
  margin: 0;
}

.feature h4 {
  margin: 0;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .venn-wrapper {
    max-width: 400px;
  }

  /* カードを通常フローに戻す */
  .feature {
    position: static;
    width: auto;
    margin: 20px 0;
    transform: none;
  }

  .hero {
    padding: 60px 20px;
  }
}

.hero {
  background-image: url("./images/background5.png");
  /* background-size: contain;     全体を収める */
  background-size: cover;
  background-position: 50% 35%; /* 中央配置 */
  background-repeat: no-repeat; /* 繰り返さない */
}

@media (max-width: 768px) {
}

.profile-main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.profile-content {
  flex: 1;
}

.photo {
  width: 240px;
  height: 320px;
  background: #eaeaea;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .profile-main {
    flex-direction: column;
  }

  .photo {
    order: 1;
    width: 100%;
    max-width: 280px;
    height: 360px;
    margin: 0 auto 20px;
  }

  .profile-content {
    order: 2;
    width: 100%;
  }
}

hr.separator {
  max-width: 1000px;
  background: lightgray;
  height: 1px;
  border: none;
  padding: 0px 20px;
}
