* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  color: #333;
  line-height: 1.7;
  background: #dedede;
  padding-top: 90px;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.narrow {
  max-width: 700px;
}

header {
  padding: 20px 0;
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(255,255,255,0.9); /* ←追加 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* Safari用 */
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #ff6868;
}

.hero {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(135deg, #fff 0%, #ffeaea 100%);
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: #ff6868;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  margin-top: 20px;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,104,104,0.4);
}

.section {
  padding: 100px 0;
}

.bg-light {
  background: #fafafa;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card, .work-card {
  padding: 30px;
  border-radius: 20px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.card:hover, .work-card:hover {
  transform: translateY(-5px);
}

footer {
  text-align: center;
  font-size: 14px;
  color: #888;
}

/* Fade Animation */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  /* 背景画像の設定 */
  background-image: url('./image/hero.png'); /* 画像のパスを確認してね */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* スクロール時に画像が固定されるとおしゃれです */
  
  /* 高さとレイアウト */
  min-height: 80vh; /* 画面の8割くらいの高さ */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0; /* paddingをリセット */
  text-align: center;
}

/* 画像の上に半透明の膜を張って、文字を読みやすくする */
.hero-inner {
  background: rgba(0, 0, 0, 0.3); /* 0.3は暗さの加減。お好みで調整してね */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 100px 0;
}

/* ヒーローエリア内の文字色を白にする */
.hero h2, 
.hero p {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* 文字に影をつけてさらに読みやすく */
}

.hero h2 {
  font-size: clamp(24px, 5vw, 48px); /* 画面サイズに合わせて文字の大きさを可変に */
  font-weight: 700;
}

#about {
  position: relative;
  overflow: hidden; /* 文字がはみ出さないように */
}

#about::before {
  content: "ABOUT ME";
  position: absolute;
  top: 10%;
  left: 5%;
  font-size: 150px; /* 特大サイズ */
  font-weight: 900;
  color: rgba(0, 0, 0, 0.03); /* ギリギリ見えるくらいの薄さ */
  z-index: 0;
  white-space: nowrap;
}

#about .container {
  position: relative;
  z-index: 1; /* コンテンツを文字の前に出す */
}

/* ワークカードがリンクとして機能するための調整 */
a .work-card {
  cursor: pointer;
}

a .work-card:hover h3 {
  color: #ff6868; /* ホバー時にロゴと同じ赤色にする */
}

/* 画像代わりのプレースホルダー（後で本物の画像に変えてね！） */
.work-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}
/* --- Contact Section Styles --- */

.contact-card {
  background: #fff;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.contact-lead {
  text-align: center;
  margin-bottom: 40px;
  color: #666;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fdfdfd;
  font-size: 16px;
  transition: 0.3s;
  outline: none;
}

.form-input:focus {
  border-color: #ff6868;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,104,104,0.1);
}

/* テキストエリアの調整 */
textarea.form-input {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

/* フォームのレスポンシブ対応 */
@media (max-width: 600px) {
  .contact-card {
    padding: 30px 20px;
  }
}

/* --- Works Section Styles --- */

/* ワークカードのサムネイル画像の設定 */
.work-thumb {
  width: 100%;
  height: 200px; /* サムネイルの高さを固定します */
  object-fit: cover; /* 画像を枠いっぱいに広げ、アスペクト比を保ったままトリミング */
  object-position: center; /* 中央を中心に表示 */
  border-radius: 10px; /* 角を丸く */
  margin-bottom: 20px; /* 下に余白を作る */
  transition: 0.3s ease; /* ホバー時のアニメーション */
}

/* カードをホバーしたときに画像を少し大きく見せる効果 */
.work-card:hover .work-thumb {
  transform: scale(1.03); /* 3%だけ拡大 */
}