/* 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f9fafb;
}

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

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
    color: #1e3a8a;
    font-weight: 700;
}

a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e40af;
}

/* ヘッダー */
header {
  position: relative;
  height: 100vh;
  background-image: url('images/wallpaper.png');
  background-size: cover;
  background-position: center;
  display: -webkit-flex; /* Safari向けのプレフィックス */
  display: flex;
  -webkit-align-items: center; /* Safari向けのプレフィックス */
  align-items: center;
  -webkit-justify-content: center; /* Safari向けのプレフィックス */
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: white; /* テキスト色を明示的に指定 */
}

header .container {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  max-width: 1200px; /* コンテナの最大幅を明示的に指定 */
  margin: 0 auto;
  padding: 0 20px;
}

header h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white !important; /* !importantを追加して確実に白色にする */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  text-align: center !important; /* 中央揃えを強制 */
  -webkit-text-align: center !important; /* Safari向け */
}

.tagline {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9) !important;
  text-align: center !important;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 15, 40, 0.7), rgba(20, 50, 90, 0.6));
  z-index: 0; /* オーバーレイがコンテンツの下に表示されるようにする */
}

/* 既存の.hero-imageクラスを完全に上書き - 古いスタイルが干渉する可能性があるため */
.hero-image {
  position: relative;
  height: 100vh;
  background-image: url('images/wallpaper.png');
  background-size: cover;
  background-position: center;
  color: white !important;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  text-align: center;
  -webkit-justify-content: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image .container {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.hero-image h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center !important;
}

/* セクション共通 */
section {
    padding: 100px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #7c3aed);
}

.content-box {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 30px;
}

.text, .image {
    flex: 1;
}

.text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* About Section */
.about {
    background-color: white;
}

/* Services Section */
.services {
    background-color: #f0f7ff;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.service-card h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1e3a8a;
}

/* Works Section */
.works {
    background-color: white;
}

.development-status {
    text-align: center;
    background: #f0f7ff;
    border-radius: 10px;
    padding: 40px;
    margin: 0 auto;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.development-status p {
    font-size: 1.2rem;
    color: #1e3a8a;
}

/* Profile Section */
.profile {
    background-color: #f0f7ff;
}

.profile-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.profile-box h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

/* Contact Section */
.contact {
    background-color: white;
    text-align: center;
}

.contact p {
    max-width: 700px;
    margin: 0 auto 30px;
}

.contact-info {
    display: inline-block;
    background-color: #f0f7ff;
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info p {
    margin: 10px 0;
}

/* Footer */
footer {
    background-color: #1e3a8a;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-image h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .content-box {
        flex-direction: column;
    }
    
    section {
        padding: 70px 0;
    }
}