body {
  margin: 30px;
  font-family: sans-serif;
}
/* 上部ナビゲーション */
header {
  border-bottom: 1px solid #ddd;
  margin-bottom: 2em;
}

.top-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  margin-bottom: 2em;
}

.site-title {
  margin-right: 1em;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 4vw, 2.5rem);

  margin-left: auto;
}

.nav-links a {
  white-space: nowrap;
}

.top-nav a {
  color: inherit;
  text-decoration: none;
}

.top-nav a:hover {
  text-decoration: underline;
}

/* 日記 */
article {
  margin-bottom: 3rem;
}

article h2 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

article p {
  margin: 0.5rem 0;
}

/* リンク一覧 */
.link-section-title {
  padding: 0.5em 1em;
  margin: 1em 0;
  font-weight: bold;
  border: solid 3px #000;
}

#links-ul-app {
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-card {
  position: relative;

  margin: 1.5em 0;
  padding: 1.2em 1em 1em;

  border: 2px solid #004c86;
  list-style: none;
  border-radius: 15px;
  background: #dbebf8;
  color: #505050;
}

.app-card-title {
  position: absolute;
  top: -0.8em;
  left: 1em;

  padding: 0 0.4em;
  background: #fff;

  font-weight: bold;
  color: inherit;
}

.app-card-title:hover {
  color: #004c86;
}

.app-card-description {
  margin: 0;
  line-height: 1.7;
}

#links-ul-club {
  padding: 0;
}

#links-ul-club > li {
  list-style: none;
  margin-bottom: 20px;
}

.link-club {
  padding: 0.5em;
  margin-bottom: 5px;
  line-height: 1.5;
  background: #dbebf8;
  color: #505050;
  border-radius: 15px 0 0 15px;
}

.link-club::before {
  display: inline-block;
  vertical-align: middle;
  content: "";
  width: 1em;
  height: 1em;
  margin-right: 8px;
  background: #fff;
  border-radius: 50%;
}

.club-description {
  margin-left: 25px;
}

.link-sns a {
  text-decoration: none;
}

#links-ul-sns {
  margin: 0;
  padding: 0;

  list-style: none;

  border-top: 1px solid #ddd;
}

#links-ul-sns > li {
  display: grid;

  /* 左：サービス＋ID / 右：一言 */
  grid-template-columns: minmax(18em, 24em) 1fr;
  gap: 1.5em;

  align-items: baseline;

  padding: 0.8em 0.3em;

  border-bottom: 1px solid #ddd;
}

#links-ul-sns > li > div {
  display: contents;
}

#links-ul-sns a {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  gap: 1em;

  color: inherit;
  text-decoration: none;
}

#links-ul-sns a:hover .sns-name {
  text-decoration: underline;
}

.sns-name {
  font-weight: bold;
}

.sns-account {
  color: #555;
}

.sns-comment {
  color: #666;
}

@media (max-width: 600px) {
  .sns-list a {
    grid-template-columns: auto 1fr;
  }

  .sns-comment {
    grid-column: 1 / -1;
  }
}
