/* リセット＆基本 */
* {
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background: #f9fafb;
  margin: 0;
  padding: 20px;
  color: #333;
  line-height: 1.5;
}

/* コンテナ幅制限 */
.container {
  max-width: 900px;
  margin: 0 auto;
}

/* セクションタイトル */
h2 {
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 12px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 6px;
}

/* フォーム全体 */
.form-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

/* 入力 */
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1.8px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.25s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: #007bff;
  outline: none;
}

/* ボタン */
button {
  background: #007bff;
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.25s ease;
}
button:hover {
  background: #0056b3;
}

/* 写真グリッド */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 60px;
}
.photo-grid div {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: transform 0.3s ease;
}
.photo-grid div:hover {
  transform: scale(1.05);
}
.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 480px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}