* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #2f2440;
  font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  line-height: 1.8;
  background-image: repeating-linear-gradient(
    -45deg,
    #eeeeee,
    #eeeeee 20px,
    #dddddd 20px,
    #dddddd 40px
  );
  padding-bottom: 72px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ===== ヘッダー ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #222;
  color: white;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-link a {
  cursor: pointer;
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
}

/* ===== ページ全体 ===== */
.note-top-page {
  padding-bottom: 80px;
}

.hero {
  padding: 40px 0 20px;
}

.hero-inner {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(31, 8, 36, 0.12);
  padding: 32px;
}

.hero-kicker {
  margin: 0 0 12px;
  color: rgb(90, 26, 95);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-title {
  margin: 0 0 16px;
  color: #24172f;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.35;
}

.hero-desc {
  margin: 0;
  color: #5b5068;
  font-size: 1rem;
}

/* ===== フィルター ===== */
.filter-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.filter-buttons::-webkit-scrollbar {
  height: 6px;
}

.filter-buttons::-webkit-scrollbar-thumb {
  background: rgba(90, 26, 95, 0.25);
  border-radius: 999px;
}

.filter-button {
  flex: 0 0 auto;
  white-space: nowrap;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  background: #ffffff;
  color: #4d2a67;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(31, 8, 36, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}


.filter-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(58, 18, 65, 0.12);
}

.filter-button.is-active {
  background: rgb(90, 26, 95);
  color: #ffffff;
}

/* ===== 一覧 ===== */
.article-list-section {
  padding-top: 24px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  color: #24172f;
  font-size: 1.5rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 22px;
  box-shadow: 0 14px 40px rgba(31, 8, 36, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(58, 18, 65, 0.12);
}

.article-thumb {
  aspect-ratio: 1200 / 630;
  background: #efe8f5;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  padding: 18px;
}

.card-date {
  display: block;
  margin-bottom: 10px;
  color: #7d718c;
  font-size: 0.88rem;
}

.article-title {
  margin: 0 0 10px;
  color: #24172f;
  font-size: 1.05rem;
  line-height: 1.65;
  font-weight: 700;
}

.article-lead-heading {
  margin: 0;
  color: #5b5068;
  font-size: 0.93rem;
  line-height: 1.7;
}


.article-excerpt {
  margin: 0;
  color: #5b5068;
  font-size: 0.92rem;
}

.loading-text,
.empty-text,
.error-text {
  margin: 0;
  color: #24172f;
  font-size: 0.98rem;
}

.bottomNoticeBox{
    margin-top: 80px;
    text-align: center;
}

/* ===== フッター ===== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: #252525;
  color: white;
  padding: 16px 0;
  font-size: 14px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
}

.footer-text {
  max-width: 960px;
  margin: 0 auto;
  gap: 12px;
  padding: 0 16px;
  box-sizing: border-box;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
  margin: 0 8px;
}

@media (max-width: 960px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header {
    padding: 10px 14px;
    gap: 10px;
  }

  .header-right {
    gap: 14px;
  }

  .header-link a {
    font-size: 14px;
  }

  .logo-img {
    height: 48px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 24px;
  }

  .hero-inner {
    padding: 22px 18px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 1.3rem;
  }
}
