body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}
header {
    background: #0078D7;
    color: white;
    padding: 15px;
    font-size: 20px;
}
header a {
    color: white;
    text-decoration: none;
}
/* タブレット */
@media (max-width: 1024px) {
  header {
    font-size: 16px;
  }
}
/* スマホ */
@media (max-width: 768px) {
   header {
    font-size: 12px;
  }
  h1 {
   font-size: 14px;
  }
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCでは3列 */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}
/* タブレット以下は2列 */
@media (max-width: 1024px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホは1列 */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
}
.content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    transition: transform 0.2s;
}
.content:hover {
    transform: scale(1.02);
}
.content img {
    max-width: 100%;
    border-radius: 5px;
}
.content h2 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}
.content p {
    color: #555;
}
.meta {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: space-between;
}

/* 詳細ページ */
.detail {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.detail img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}
.detail h1 {
    font-size: 24px;
    margin: 10px 0;
}
.like-btn {
    background: #eee;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
}
.comment-box {
    margin-top: 20px;
}
.comment {
    font-size: 14px;
    margin-bottom: 10px;
}
.comment-form input {
    padding: 5px;
    margin-right: 5px;
}
.comment-form button {
    padding: 5px 10px;
}
nav.menu {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}
nav.menu a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(255,255,255,0.2);
    transition: background 0.3s;
}
nav.menu a:hover {
    background: rgba(255,255,255,0.4);
}
nav.menu a.active {
    background: white;
    color: #0078D7;
    font-weight: bold;
}
.sns-links {
  display: flex;
  gap: 15px; /* アイコンの間隔 */
  justify-content: center;
  margin: 20px 0;
}

/* PC用（デフォルト） */
.sns-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 12px; /* 四隅を少し丸める */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 24px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sns-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* 各サービスの色に寄せる */
.sns-icon.fb { color: #1877f2; }
.sns-icon.ig { color: #e1306c; }
.sns-icon.x { color: #000000; }

/* スマホ用（768px以下） */
@media (max-width: 768px) {
  .sns-icon {
    width: 72px;   /* 大きめに */
    height: 72px;
    font-size: 32px;
    margin: 0 8px; /* 指で押しやすい間隔 */
  }
  .sns-links {
    gap: 20px;     /* アイコン間を広く */
  }
}
