body {
  background-color: #0d0d0d;
  color: #f0f0f0;
  font-family: 'Noto Serif JP', serif;
  line-height: 1.8;
  max-width: 800px;
  margin: auto;
  padding: 2em;
  letter-spacing: 0.07em;
  
}

header {
  text-align: center;
  margin-bottom: 2em;
}
h1 {
  font-family: 'Noto Serif JP', serif;
  font-feature-settings: "palt" 1, "kern" 1;
  font-size: 3em;
  color: #ccc;
  letter-spacing: 0.3em;
  text-align: center;
  filter: blur(0.5px);
}
h1 a {
  text-decoration: none;
  color: #bbb;
  font-size: 2.5em;
  font-family: 'Courier New', monospace;
  font-feature-settings: "palt" 1, "kern" 1;
  letter-spacing: 0.2em;
  display: block;
  text-align: center;
  margin-bottom: 1em;
}

.poem-wrapper {
  margin-bottom: 3em;
}
.poem pre {
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  font-feature-settings: "palt" 1, "kern" 1;
  background: #111;
  padding: 1em;
  border-left: 4px solid #444;
}

.poem-image {
  max-width: 100%;
  margin: 1em 0;
  filter: grayscale(80%) contrast(120%) blur(1px);
}

.poem-list {
  list-style: none;
  padding: 0;
}
.poem-list a:hover {
    background-color: rgba(255, 255, 255, 0.03);
  }
  
.poem-list .title {
    
    font-size: 1.3em;
    display: block;
    margin-bottom: 0.2em;
    font-family: 'Sawarabi Mincho', serif;
font-feature-settings: "palt" 1, "kern" 1;
  }

.poem-list li {
    margin: 1em 0;
    padding: 1em;
    border-bottom: 1px solid #222;
    padding-bottom: 0.5em;
}

.poem-list a {
    text-decoration: none;
    color: #ccc;
}

.poem-list a:hover {
    color: #f5f5f5;
    background-color: #222;
}


.poem-item {
    display: block;
    padding: 1em;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
  }
  
  .poem-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    cursor: pointer;
  }

  .poem .meta {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 1em;
}

.poem pre {
    white-space: pre-wrap;
    font-family: 'Courier New', monospace;
    background: #111;
    padding: 1em;
    border-left: 4px solid #444;
}

.poem-image {
    max-width: 100%;
    margin: 1em 0;
    filter: grayscale(80%) contrast(120%) blur(1px);
}

.title {
  
  font-size: 1.3em;
  font-family: 'Sawarabi Mincho', serif;

}

.snippet {
  display: block;
  margin-top: 0.2em;
  color: #888;
}

footer {
  text-align: center;
  color: #666;
  font-size: 0.8em;
  margin-top: 4em;
  padding-top: 2em;
  border-top: 1px solid #222;
  opacity: 0.6;
}

.footer-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s ease;
  }
  .footer-link:hover {
    opacity: 1;
    text-decoration: underline;
  }

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3em;
    padding-top: 1em;
    border-top: 1px solid #222;
    font-size: 0.9em;
    opacity: 0.6;
    gap: 1em;
  }
  
  .nav-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
    max-width: 30%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Sawarabi Mincho', serif;
  }
  
  .nav-link:hover {
    opacity: 1;
    text-decoration: underline;
  }

/* ==== VERTICAL STYLES ==== */
.vertical {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  overflow-x: auto;
  gap: 2em;
}

.vertical-title {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: 'Sawarabi Mincho', serif;
font-feature-settings: "palt" 1, "kern" 1;
  line-height: 2;
  color: #aaa;
  white-space: nowrap;
  
  font-size: 1.3em;
}

.vertical-poem {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Noto Serif JP', serif;
  
  line-height: 2.2;
  background: #111;
  padding: 1em;
  border-right: 4px solid #444;
  white-space: pre-wrap;
  overflow-x: auto;
  font-size: 1.11em;
  letter-spacing: 0.07em;
}


@media screen and (max-width: 600px) {
  body {
    font-size: 1.1em;
    line-height: 2;
    padding: 1em;
  }

  .vertical {
    flex-direction: column; /* ← 縦並びにしてスマホで1カラムずつ表示 */
    align-items: stretch;
    overflow-x: hidden;
    gap: 1em;
  }

  .vertical-poem {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1.5em;  /* ← スマホで読みやすいサイズに拡大 */
    line-height: 2.4;
    padding: 2em 0.5em;
    border-right: none;
    border-left: 4px solid #444;
    overflow-x: hidden;
  }

  .vertical-title {
    font-size: 1.6em;
    line-height: 2.6;
    margin-bottom: 1em;
  }


  .poem pre {
    font-size: 1em;
    padding: 1em;
  }

  h1 {
    font-size: 2em;
    letter-spacing: 0.1em;
  }

  .poem .meta {
    font-size: 0.9em;
  }

  footer {
    color: #ddd;
    opacity: 1;    
    background: #0d0d0d; 
  }
  .footer-link {
  color: #eee;
  text-decoration: none;
  font-weight: 500;
}

.footer-link:hover {
  text-decoration: underline;
}

}

  