/* 共通スタイル */
body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #f8f9fa;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1,
h2 {
  font-weight: bold;
  text-align: left;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 2px solid #999; /* グレーの下線 */
  padding-bottom: 5px; /* 下線とのスペース調整 */
}

/* ヘッダー */
header {
  background: url("/images/header-bg.png") center center / cover no-repeat;
  position: relative;
  padding: 60px 20px;
  color: white;
  text-align: center;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

header h1 {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 2.8em;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6); /* 白文字をくっきり見せる影 */
  animation: fadeInText 1s ease-out forwards;
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header h1,
header p,
nav {
  position: relative;
  z-index: 2;
}

/* ナビゲーション */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

nav ul li a {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

nav ul li a:hover {
  background-color: #2980b9;
  transform: scale(1.05);
}

/* セクション共通 */
section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 30px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

/* 最近の活動（タイムライン） */
.timeline ul {
  list-style: none;
  padding: 0;
}

.timeline ul li {
  background: #ecf0f1;
  border-left: 6px solid #f39c12;
  margin: 12px 0;
  padding: 16px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.timeline ul li:hover {
  transform: translateY(-2px);
}

/* 技術スタック */
.skills ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.skills li {
  background: #ffffff;
  border-left: 5px solid #3498db;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.skills li:hover {
  transform: translateY(-4px);
}

.skills strong {
  display: block;
  color: #3498db;
  margin-bottom: 6px;
  font-size: 1.05em;
  font-weight: bold;
}

/* CTAセクション */
.contact {
  text-align: center;
}

.cta {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  background: #3498db;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.cta:hover {
  background: #2980b9;
  transform: translateY(-3px);
}

/* フッター */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #888;
}
/* 実績カード一覧 */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.portfolio-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 24px;
  text-decoration: none;
  color: #333;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: block;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-card h3 {
  margin-top: 0;
  font-size: 1.4em;
  color: #3498db;
}

.portfolio-card p {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 0;
}

/* お問い合わせフォーム */
.contact-form {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.contact-form legend {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #3498db;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  background: #f9f9f9;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #3498db;
  outline: none;
  background: #fff;
}

/* カテゴリ見出しのスタイル */
.category-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-top: 60px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 6px solid #3498db;
  color: #333;
  background: linear-gradient(to right, #eaf6ff, #ffffff);
  border-radius: 8px;
}

/* CI/CDセクション */
.cicd-section {
  background-color: #eaf6ff;
  border-left: 4px solid #3498db;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.1);
}

/* Lambdaセクション */
.lambda-section {
  background-color: #fff8e1;
  border-left: 4px solid #f39c12;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(243, 156, 18, 0.1);
}

.terraform-title {
  border-left-color: #2ecc71; /* Terraform: 緑系 */
  background: linear-gradient(to right, #e8f8f5, #ffffff);
}

.terraform-section {
  background-color: #e8f8f5;
  border-left: 4px solid #2ecc71;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(46, 204, 113, 0.1);
}

.container,
.content {
  padding-left: 16px;
  padding-right: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.portfolio-card {
  cursor: pointer;
}

.portfolio-card:hover {
  background-color: #f0f8ff; /* 淡い青で視覚的変化 */
}
