/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基本設定 */
body {
  font-family: "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* ヘッダー */
header {
  background: #222;
  color: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  margin: 0;
  text-align: center;
  font-size: 2em;
}

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

nav li {
  margin: 0 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 5px 0;
}

nav a:hover {
  border-bottom: 2px solid #fff;
}

/* セクション */
.section {
  padding: 80px 0;
  background: #fff;
  margin-bottom: 20px;
}

.section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5em;
}

/* About */
.about-text {
  text-align: center;
}

.about-img {
  display: block;
  max-width: 300px;
  margin: 30px auto 0;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Services */
.cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.cards li {
  background: #eee;
  padding: 20px;
  margin: 10px;
  flex: 1 1 250px;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s;
  display: grid;
}

.cards li img {
  object-fit: cover;
  width: 100%;
  height: 200px;
  border-radius: 10px;
}

.cards li:hover {
  transform: translateY(-10px);
}

/* Works */

/* .works {
  padding: 50px 20px;
  background: #f9f9f9;
  text-align: center;
} */

.works-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.work-item {
  background: #fff;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.work-item:hover {
  transform: scale(1.05);
}

.work-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work-item h3 {
  margin: 15px 0 5px;
}

.work-item p {
  color: #666;
  margin-bottom: 15px;
}

/* モーダル全体 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* モーダル内 */
.modal-content {
  background: #fff;
  padding: 15px;
  max-width: 600px;
  width: 90%;
  border-radius: 8px;
  position: relative;
  text-align: center;
}

.modal-content img {
  object-fit: cover;
  width: 100%;
  max-width: 300px;
  height: 180px;
  margin: 20px 0;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

/* モーダル内のボタン */
.modal-link-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.modal-link-btn:hover {
  background: #0056b3;
}

/* Contact */
#contact p {
  text-align: center;
  font-size: 1.2em;
}

/* フッター */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 15px 0;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
