body {
    font-family: 'Helvetica Neue', 'Noto Sans JP', sans-serif;
    background-color: #e4e9f1;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 80px auto;
    padding: 40px 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

h1 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #2c3e50;
}

.title {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 10px;
}

form label {
    display: block;
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #34495e;
}

select {
    width: 80%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 20px;
    background-color: #fafafa;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    padding: 20px;
    transition: transform 0.2s;
}

li:hover {
    transform: scale(1.02);
}

h2 {
    margin-top: 0;
    color: #2980b9;
}

img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 10px;
    margin-bottom: 15px;
}

p {
    line-height: 1.6;
}

a {
    display: inline-block;
    margin-top: 30px;
    text-decoration: none;
    color: #fff;
    background: #3498db;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

a:hover {
    background: #2980b9;
}

.official-link {
    display: inline-block;
    padding: 12px 24px;
    background-color: #9998e6;
    color: #3b3c3c;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.official-link:hover {
    background-color: #9fa1e2;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.link-row {
    display: flex;
    gap: 12px;
    /* リンク間の余白 */
    flex-wrap: wrap;
    /* 画面が狭いときに折り返し */
    margin-top: 8px;
}

.map-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #76c5cf;
    color: #414544;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.map-link:hover {
    background-color: #a1d0da;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.top-buttons {
    margin-bottom: 20px;
    text-align: right;
}

.gourmet-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #feef67;
    color: rgb(241, 160, 73);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.gourmet-button:hover {
    background-color: #f6ca1c;
}

html {
    scroll-behavior: smooth;
}

/* gourmets */
body .gourmet {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    background-color: #fdfaf5;
    color: #3c3c3c;
    margin: 0;
    padding: 40px;
}

h2 .gourmet {
    font-size: 28px;
    color: #5c4b3b;
    border-bottom: 2px solid #d8cfc4;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: center;
}

ul .gourmet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0;
    list-style: none;
}

li .gourmets {
    background-color: #fff;
    border: 1px solid #e0dcd5;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

li .gourmets:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h3 {
    font-size: 20px;
    color: #a0522d;
    margin-top: 0;
}

p.gourmet {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.img_gourmet {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.recipe_url {
    display: inline-block;
    padding: 8px 14px;
    background-color: #8f5e3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.recipe_url:hover {
    background-color: #6f4428;
}

.official_url {
    display: inline-block;
    padding: 8px 14px;
    background-color: #a2a460;
    color: #e5e5dd;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.official_url:hover {
    background-color: #847432;
}

/* 投稿 */
.post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.post-card {
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 10px;
}

.user-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}

.post-image {
  width: 300px;        
  height: 200px;        
  object-fit: cover;    /* はみ出した部分をトリミングして中央に表示 */
  border-radius: 8px;   /* 角を少し丸くする（任意） */
}

.post-caption {
    padding: 10px;
    font-size: 14px;
}

.post-actions {
    padding: 10px;
    font-size: 14px;
    color: #555;
}

.button-area {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

button.post {
    background: linear-gradient(135deg, #9affee 0%, #61c0d8 100%);
    color: rgb(64, 78, 116);
    font-size: 1.2em;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.post:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);

}
a.post {
    background: linear-gradient(135deg, #c1ff9a 0%, #8fd861 100%);
}

/* いいねコメント */
.like-form button,
.comment-form button {
  background-color: #fd96c9;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 5px;
}

.comment-list {
  margin-top: 10px;
  background: #fffafc;
  padding: 10px;
  border-radius: 8px;
}
.comment-item {
  margin-bottom: 5px;
  font-size: 14px;
}

/* コメント */
.comment-item {
  margin-bottom: 10px;
  padding: 5px;
  background-color: #fffafc;
  border-radius: 6px;
}
.reply-form {
  margin-top: 5px;
}