/* T-Office スタイルシート */

/* 基本スタイル */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
}

/* ヘッダー */
header {
  color: #000;
  text-align: center;
  padding: 0.5em;
  display: flex;
  height: 80px;
}

header div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

header img {
  margin-right: 10px;
  width: auto;
  height: 60px;
}

/* ヒーローセクション */
.hero-image {
  width: 100%;
  height: 400px;
  background-image: url('images/thecountory.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 2em;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-overlay h1 {
  font-size: 3em;
  margin: 0;
}

.hero-overlay p {
  font-size: 1.2em;
  margin-top: 0.5em;
}

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

/* ナビゲーション */
nav {
  background: rgba(255, 255, 255, 0.9);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav ul {
  display: flex;
  justify-content: center;
  padding: 1em 0;
  list-style: none;
  margin: 0;
}

nav ul li {
  margin: 0 1em;
}

nav ul li a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em 1em;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav ul li a:hover {
  background-color: #f0f0f0;
}

/* セクション */
section {
  margin: 2em 0;
  padding: 1.5em;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h2 {
  background-color: transparent;
  padding: 0;
  margin-top: 0;
  color: #333;
  border-bottom: 2px solid #6872ff;
  padding-bottom: 0.5em;
}

/* 自己紹介セクション (学校画像付き) */
.school-section {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 2em;
}

.school-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: 300px;
  background-image: url('images/school.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 8px;
}

.school-content {
  flex: 1;
}

/* AIリンクグリッド */
.ai-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1em;
}

.ai-link-grid a {
  display: block;
  padding: 1em;
  background-color: #f0f0f0;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, background-color 0.3s;
}

.ai-link-grid a:hover {
  background-color: #6872ff;
  color: white;
  transform: translateY(-3px);
}

/* フッター */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1.5em;
  margin-top: 2em;
}

/* ユーティリティクラス */
.center {
  text-align: center;
}

.center img {
  display: block;
  margin: 0 auto;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .school-section {
    flex-direction: column;
  }
  
  .school-image {
    width: 100%;
    max-width: none;
    margin-bottom: 1em;
  }
  
  .hero-overlay h1 {
    font-size: 2em;
  }
  
  nav ul {
    flex-wrap: wrap;
  }
  
  nav ul li {
    margin: 0.5em;
  }
}