body {
  font-family: sans-serif;
  padding: 2rem;
  background-color: #f5f5f5;
}
header {
  background-color: #f7b946;
  color: black;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
}
.header-title {
  position: relative;
  margin: 0;
  padding: 0;
  text-align: center;
  width:100%;
  height: 200px;
}
/*
.header-title img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
}
*/
.header-title #title-back {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
}
.header-title #title-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
}
.header-description {
  display:flex;
  justify-content: center;
}
/*
.header-menu {
  display:flex;
  justify-content: center;
  gap: 2rem;
}
*/
main {
  display:flex;
}
footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  color: #777;
}
footer .important a {
  margin: 2rem;
}
.content {
  padding: 1rem;
  background-color: white;
  width:70%;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
}
.sidebar {
  padding: 1rem;
  background-color: #f7b946;
  width: 30%;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
}
.tile {
  background-color: white;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
}
.menu {
  background-color: white;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
}
.menu a {
  display: block;         /* 各リンクを縦に並べる */
  padding: 10px;          /* 内側の余白 */
  color: #333;            /* 文字色 */
  text-decoration: none;  /* 下線を消す */
  background-color: #f0f0f0; /* 背景色 */
  border-bottom: 1px solid #ccc; /* 下に線を引く */
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
}
.menu a:hover {
  background-color: #ddd; /* ホバー時の背景色 */
  color: #000;            /* ホバー時の文字色 */
}
.tag-image {
  width: 100%;
  height: auto;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
  aspect-ratio: 2/1;
}
.category-image {
  width: 100%;
  height: auto;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
  aspect-ratio: 2/1;
}
.post-image {
  width: 100%;
  height: auto;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
  aspect-ratio: 2/1;
}
.contact-image {
  width: 100%;
  height: auto;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
  aspect-ratio: 2/1;
}
.popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  width: 70%;
  height:70%;
  opacity: 0;
  animation: floatUp 0.5s forwards;
}
.post-content pre {
  background: #f5f5f5;
  padding: 1rem;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
  overflow: auto;
}
.post-content table, .post-content table tr, .post-content table th, .post-content table td {
  border: 1px solid black;
  border-collapse: collapse;
}
.post-content table th {
  background-color: skyblue;
}
.post-content img {
  width: 100%;
  height: auto;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
  aspect-ratio: 2/1;
}
.post-navi {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  color: #777;
}
.post-navi a {
  margin: 1rem;
}
/*
.content-image {
  max-width: 100%;
  height: auto;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
}
*/
.board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1rem;
}
.chip {
  background-color: white;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
  aspect-ratio: 2/1;
}
.chip .category-link {
  text-decoration: none;  /* 下線を消す */
}
.side-by-side {
  display: flex;
  gap: 2.5rem;
  height: 9.5rem;
  overflow-y: hidden;
}
.side-by-side:hover {
  overflow-y: auto;
}
.post-dates {
  font-size: 0.875em;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.date-row {
  display: flex;
  gap: 0.5em;
}
/*
.date-row span:last-child {
  display: inline-block;
  text-align: left;
  min-width: 8em;
}
*/
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    /*
    z-index: calc(Infinity);
    */
}
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.popup-header {
  text-align: center;
}
#popup-title {
  font-weight: bold;
  text-align: center;
}
.popup-body {
  width: 100%;
  height: 80%;
}
#popup-iframe {
  width: 100%;
  height: 100%;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
  border-radius: 5px;
}
.separate-line {
  border-top: 1px solid gray;
  border-bottom: 1px solid gray;
  margin: 2rem 0;
  height: 3px;
}
pre, pre code, pre.line-numbers {
  -webkit-text-size-adjust: none !important;
}
.post-list {
  list-style: none;
  padding: 0;
  height: 8rem;
  overflow-y: hidden;
}
.post-list:hover {
  overflow-y: auto;
}
.related-posts {
  display: flex;
  gap: 2.5rem;
  height: 9.5rem;
  overflow-y: hidden;
}
.related-posts:hover {
  overflow-y: auto;
}
@media (hover: none) and (pointer: coarse) {
  .side-by-side, .post-list, .related-posts {
    overflow-y: auto;
  }
}
