.article-section {
  margin: 4rem auto;
  padding: 1rem;
  max-width: 1000px;
}

.article-section h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--color-text);
}

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: 2rem;
  row-gap: 3rem;
}

.article-item {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.8rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}

.image-area {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background-color: #f3f3f3;
  margin-bottom: 0.5rem;
}

.image-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.image-area time {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.75rem;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.6);
  background: #ffffff; /* ← 濃い背景でコントラスト強化 */
  padding: 2px 6px;
  border-radius: 4px;
}

.article-item h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
  line-height: 1.4;
  height: 1.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-text);
}

.article-item p {
  margin: 0;
  line-height: 1.4;
  height: calc(1.4em * 3);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--color-text);
}

.article-more {
  text-align: right;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.article-more a {
  color: var(--color-link);
  text-decoration: underline;
}

/* --- 表示する記事がない場合のメッセージ --- */
.no-article-msg {
  grid-column: 1 / -1; /* グリッド全体に広げる */
  text-align: center;
  color: #666;
  font-style: italic;
  font-size: 0.95rem;
  margin: 2rem 0;
}

/* === リンク群：右寄せ === */
.service-links-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin: 2em 0;
}

/* === 縦並び === */
.service-links {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

/* === 各リンク行 === */
.service-link {
  display: flex;
  align-items: center;
}

/* →アイコン */
.service-link .arrow {
  display: inline-block;
  width: 1.5em;
  text-align: right;
  color: var(--color-link);
  font-weight: bold;
}

/* テキストリンク */
.service-link a {
  color: var(--color-link);
  text-decoration: none;
  font-size: 1rem;
  margin-left: 0.3em;
}

.service-link a:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
}

.donation-howto-block {
  border: 2px solid var(--color-border);
  background-color: var(--color-bg-soft);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
}

.donation-howto-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.donation-howto-text {
  flex: 1 1 300px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.donation-howto-text h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.donation-screenshot {
  flex: 1 1 300px;
  text-align: center;
}

.zoomable-image-wrapper {
  position: relative;
}

.zoom-hint {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.zoomable-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.zoomable-image.zoomed {
  transform: scale(2.5);
  z-index: 1000;
  position: relative;
  cursor: zoom-out;
}

/* === カラーテーマ === */
:root {
  --color-bg-soft: #f9f9f9;
  --color-border: #ccc;
  --color-text: #333;
  --color-main-bg: #e0e0e0;
}

[data-theme="dark"] {
  --color-bg-soft: #1a1a1a;
  --color-border: #777;
  --color-text: #eee;
  --color-main-bg: #333;
}

@media screen and (max-width: 768px) {
  .service-links-wrapper {
    justify-content: center;
  }
}
