/* 全体共通のリセットとフォント */
body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Maru Gothic Pro", "游ゴシック", sans-serif;
  background-color: #fff8f0;
  color: #333;
  line-height: 1.8;
}

/* 全体に余白を持たせる */
main, header, footer {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

/* ヘッダー */
header {
  background-color: #eeccad;
  padding: 30px 20px;
  border-bottom: 3px dashed #fae1cc;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.8em;
  color: #4b2e1e;
}

nav ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: #4b2e1e;
  font-weight: bold;
  padding: 5px 10px;
  border: 2px solid #d3ab8a;
  border-radius: 5px;
  background-color: #fff;
}

nav a:hover {
  background-color: #ffe8d0;
}

/* メインの写真セクション */
.main-photo {
  text-align: center;
  margin-bottom: 40px;
}

.main-photo img {
  max-width: 100%;
  height: auto;
  width: 300px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.caption {
  margin-top: 10px;
  font-style: italic;
  color: #777;
}

/* 日記のプレビュー */
.diary-preview {
  margin-bottom: 50px;
}

.diary-preview h2 {
  border-left: 5px solid #e1bfa3;
  padding-left: 10px;
  margin-bottom: 20px;
}

.diary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
}

.diary-grid article {
  background-color: #fffdf8;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 10px;
  width: 200px;
  text-align: center;
}

.diary-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 日記ページの中の写真を小さめに表示 */
.diary-photo img {
  max-width: 100%;
  width: 300px;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}


/* フッター */
footer {
  background-color: #f2dec4;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9em;
  border-top: 3px dashed #edd9ae;
}
