
/* =========================================================
   Home page
   ========================================================= */

.hero {
  padding: 56px 0 0;
  background:
    linear-gradient(
      135deg,
      rgba(31, 78, 121, 0),
      rgba(31, 78, 121, 0) 40%,
      rgba(31, 78, 121, 0.45) 65%,
      rgba(31, 78, 121, 0.8)
    ),
    url("../images/hero-building.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 100px;
  padding: 64px 0;
}

.hero-text {
  max-width: 480px;
  text-align: right;
}

.hero-label {
  margin: 0 0 12px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero h1 {
  margin: 0 0 50px;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-kanji {
  font-family: 
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.hero-kana {
  font-family: 
    "Noto Serif JP",
    "Hiragino Mincho ProN",
    "Yu Mincho",
    serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.hero p {
  margin-top: 20px;
  font-size: 1.05rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.news,
.quick-links,
.note-posts {
  position: relative;
}

.quick-links,
.note-posts {
  border-top: 1px solid rgba(31, 41, 51, 0.06);
}

.news {
  background: var(--color-bg);
}

.news-filter select {
  min-width: 220px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--color-text);
  font: inherit;
}

.news-list {
  margin: 0;
  padding: 0 16px;
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.news-list li {
  display: grid;
  grid-template-columns: 120px 96px minmax(0, 1fr);
  grid-template-areas: "date tag body";
  align-items: start;
  column-gap: 16px;
  row-gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-list time {
  grid-area: date;
  display: block;
  color: var(--color-muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.news-list .tag {
  grid-area: tag;
  align-self: start;
  min-width: 76px;
}

.news-list .news-text {
  grid-area: body;
  color: var(--color-text);
  line-height: 1.6;
}

.news-list .news-text a {
  color: var(--color-primary);
  margin: 0 5px 0 0;
}

.news-list .news-text a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.quick-links {
  background: #fffdf5; 
}

.note-posts {
  background: var(--color-sub-bg);
}

.note-card-grid {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.note-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.note-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 6px 18px rgba(31, 41, 51, 0.08);
  transform: translateY(-1px);
}

.note-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.note-card a:hover {
  text-decoration: none;
}

.note-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 22px;
}

.note-card time {
  color: var(--color-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.note-card h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.08rem;
  line-height: 1.55;
}

.note-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.note-more {
  text-align: right;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  display: block;
  min-height: 180px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.card:hover {
  border-color: var(--color-primary);
  text-decoration: none;
}

.card h3 {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* =========================================================
   Top page alert
   ========================================================= */

.site-alert {
  background: #fff7e8;
  border-bottom: 1px solid #e6d3a5;
}

.site-alert-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.site-alert-label {
  display: inline-block;
  flex-shrink: 0;
  padding: 2px 8px;
  background: #8a5a00;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.site-alert-text {
  margin: 0;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-alert-text a {
  margin-left: 8px;
  font-weight: 700;
}


/* =========================================================
   Responsive: <= 840px
   ========================================================= */

@media (max-width: 840px) {

  .news-list {
    max-height: 320px;
  }

  .news-list li {
    grid-template-columns: 8em 6.5em minmax(0, 1fr);
    grid-template-areas:
      "date tag ."
      "body body body";
    column-gap: 10px;
    row-gap: 8px;
    align-items: start;
  }

  .news-list time {
    white-space: normal;
  }

  .news-list .tag {
    justify-self: start;
  }

}


/* =========================================================
   Responsive: <= 640px
   ========================================================= */

@media (max-width: 640px) {
  .site-alert-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .site-alert-text a {
    margin-left: 0;
  }
}


/* =========================================================
   Responsive: <= 560px
   ========================================================= */

@media (max-width: 560px) {

  .hero-inner {
    min-height: auto;
    padding: 48px 0;
  }

  .hero-text {
    width: 100%;
    max-width: none;
  }

}



