/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

 body {
   max-width: 880px;
   margin: 0 auto;
   padding: 12px 16px;
   color: #222;
   line-height: 1.6;
   font-family: system-ui, sans-serif;
   background: #f7f5f0;
 }

 a {
   color: #0f5f76;
 }

 header {
   margin-bottom: 14px;
   padding: 8px 0;
   border-bottom: 1px solid #d8d2c8;
 }

 .site-nav {
   display: flex;
   align-items: flex-start;
   justify-content: space-between;
   gap: 16px;
 }

 .site-brand {
   flex: 0 0 auto;
   color: #193f45;
   font-weight: 700;
   text-decoration: none;
 }

 .nav-menu {
   flex: 1 1 auto;
 }

 .nav-menu summary {
   display: none;
 }

 nav {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
   align-items: center;
   justify-content: flex-end;
 }


 nav a,
 nav button,
 nav input[type="submit"] {
   min-height: 32px;
 }

 nav button,
 nav input[type="submit"] {
   padding: 0;
   border: 0;
   color: #0f5f76;
   background: transparent;
   cursor: pointer;
   text-decoration: underline;
 }

 .nav-user {
   color: #6b6258;
 }

 .nav-divider {
   display: none;
 }

 main {
   padding-bottom: 40px;
 }

 article {
   padding: 16px 0;
 }

 input,
 textarea,
 select,
 button {
   font: inherit;
 }

 textarea {
   width: 100%;
   min-height: 5em;
 }

 .current-kukai {
   padding: 16px;
   margin: 16px 0;
   border: 1px solid #d8d2c8;
   border-radius: 8px;
   background: #fffdf9;
 }
 
del { background: #ffecec;}
ins { background: #eaffea;}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kukai-title {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.3;
}

.kukai-month {
  margin: 0 0 0.2rem;
  color: #6b6258;
  font-size: 0.85rem;
}

.kukai-header {
  margin: 0 0 12px;
  padding: 10px 0 8px;
  border-bottom: 1px solid #d8d2c8;
}

.kukai-keywords,
.kukai-stats,
.post-meta-line,
.like-row,
.post-actions,
.revision-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.kukai-keywords {
  margin-top: 8px;
}

.keyword-group-heading {
  margin: 16px 0 0;
  color: #6b6258;
  font-size: 0.95rem;
}

.kukai-keyword {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border: 1px solid #d8d2c8;
  border-radius: 999px;
  color: #36545b;
  background: #f6fbfb;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.kukai-keyword:hover {
  border-color: #9dbdc5;
  background: #edf8fa;
}

.kukai-keyword.current {
  border-color: #177b91;
  background: #edf8fa;
}

.kukai-stats {
  margin-top: 6px;
  color: #6b6258;
  font-size: 0.85rem;
}

.post-form-box {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 2px 8px rgba(54, 44, 34, 0.04);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.section-heading h2 {
  margin: 0;
  font-size: 0.95rem;
}

.posts-heading {
  margin-top: 8px;
}

.current-keyword {
  font-size: 1rem;
}

fieldset.current-keyword {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-label {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.form-row {
  margin: 0.7rem 0;
}

.form-row label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.form-row textarea {
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  min-height: 4.2em;
  padding: 0.55rem 0.65rem;
  border: 1px solid #bdb5aa;
  border-radius: 8px;
  background: #fff;
}

.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid #bdb5aa;
  border-radius: 8px;
  background: #fff;
}

.form-row textarea:focus,
.form-row input:focus,
.comment-form textarea:focus {
  outline: 3px solid #d4edf2;
  border-color: #177b91;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
}

.primary-button,
.secondary-button {
  font-size: 1rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #193f45;
  border-radius: 8px;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: #193f45;
}

.secondary-button {
  color: #193f45;
  background: #edf8fa;
}

.secondary-link {
  color: #0f5f76;
}

.primary-link-button {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid #193f45;
  border-radius: 8px;
  color: #fff;
  background: #193f45;
  text-decoration: none;
}

.danger-button {
  padding: 0.45rem 0.9rem;
  border: 1px solid #9b2f2f;
  border-radius: 8px;
  color: #9b2f2f;
  background: #fff7f7;
  cursor: pointer;
}

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.7rem;
}

.keyword-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.keyword-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.keyword-chip span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #d1c9bd;
  color: #4f4a43;
  background: #fffdf9;
}

.keyword-chip input[type="radio"]:checked+span {
  background: #edf8fa;
  color: #193f45;
  border-color: #177b91;
  box-shadow: inset 0 0 0 1px #177b91;
}

.keyword-chip-group:has(input[type="radio"]:checked) .keyword-chip-detail {
  border-color: #177b91;
}

.keyword-chip input[type="radio"]:focus+span {
  outline: 3px solid #d4edf2;
}

.keyword-chip-group {
  display: inline-flex;
  align-items: stretch;
}

.keyword-chip-group .keyword-chip span {
  border-radius: 999px 0 0 999px;
  border-right: none;
}

.keyword-chip-detail {
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
  font-size: 0.75rem;
  border: 1px solid #d1c9bd;
  border-radius: 0 999px 999px 0;
  color: #0f5f76;
  background: #fffdf9;
  text-decoration: none;
  white-space: nowrap;
}

.keyword-chip-detail:hover {
  background: #edf8fa;
}

.signin-prompt,
#no_posts {
  margin: 0;
  padding: 14px 0;
  color: #6b6258;
}

.back-link {
  margin: -8px 0 18px;
  font-size: 0.8rem;
  color: #8a7f74;
}

.back-link a {
  color: inherit;
}

.page-header {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d8d2c8;
}

.page-header h1 {
  margin: 0;
  font-size: 1.3rem;
}

.page-header p {
  margin: 0.2rem 0 0;
  color: #6b6258;
  font-size: 0.9rem;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.list-card {
  padding: 14px;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  background: #fffdf9;
}

.list-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.list-card p {
  margin: 0;
  color: #6b6258;
}

.keyword-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.keyword-meta span {
  display: inline-flex;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #f1eee8;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.mini-links a {
  display: inline-flex;
  padding: 0.15rem 0.5rem;
  border: 1px solid #d8d2c8;
  border-radius: 999px;
  background: #f6fbfb;
  text-decoration: none;
}

.admin-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 12px;
  color: #6b6258;
}

.admin-summary.with-actions {
  justify-content: space-between;
}

.csv-import-box summary {
  cursor: pointer;
  color: #0f5f76;
  font-size: 0.9rem;
  padding: 0.3rem 0;
}

.csv-import-form {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  background: #fffdf9;
}

.csv-import-note {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  color: #6b6258;
}

.csv-import-note code {
  background: #f0ece6;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.csv-import-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  background: #fffdf9;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #ebe5dc;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #6b6258;
  font-size: 0.9rem;
  font-weight: 700;
  background: #f7f5f0;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table th.sortable {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.admin-table th.sortable:hover {
  color: #0f5f76;
}

.admin-table th[data-sort-dir="asc"]::after  { content: " ▲"; font-size: 0.7em; }
.admin-table th[data-sort-dir="desc"]::after { content: " ▼"; font-size: 0.7em; }

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.auth-panel {
  max-width: 520px;
  margin: 0 auto 36px;
  padding: 18px;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  background: #fffdf9;
}

.auth-panel h1 {
  margin: 0;
  font-size: 1.35rem;
}

.auth-form {
  margin-top: 12px;
}

.auth-lead,
.form-hint {
  margin: 0.2rem 0 0.35rem;
  color: #6b6258;
  font-size: 0.92rem;
}

.radio-group {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.4rem 0 1rem;
}

.auth-links {
  margin-top: 16px;
  color: #6b6258;
}

.auth-links p {
  margin: 0.25rem 0;
}

.form-errors {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 4px solid #9b2f2f;
  border-radius: 0 8px 8px 0;
  color: #5f2323;
  background: #fff7f7;
}

.form-errors p {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.form-errors.compact {
  margin: 0 0 12px;
}

.danger-zone {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #ebe5dc;
}

.danger-zone h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.danger-zone p {
  margin: 0 0 0.7rem;
  color: #6b6258;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.assigned-keywords {
  margin: 18px 0;
  padding-top: 14px;
  border-top: 1px solid #ebe5dc;
}

.assigned-keywords h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.keyword-chips.readonly span {
  cursor: default;
}

.keyword-chip-with-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.keyword-chip-with-action form {
  display: inline;
}

.chip-button {
  padding: 0;
  border: 0;
  color: #9b2f2f;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
}

.keyword-candidate-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.keyword-candidate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #ebe5dc;
  border-radius: 8px;
  background: #fff;
}

.keyword-candidate strong,
.keyword-candidate span {
  display: block;
}

.keyword-candidate span {
  color: #6b6258;
  font-size: 0.9rem;
}

.post-card {
  margin: 0 0 14px;
  padding: 18px;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  background: #fffdf9;
}

.post-meta-line {
  justify-content: space-between;
  color: #6b6258;
  font-size: 0.9rem;
}

.post-keyword {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  color: #36545b;
  background: #edf8fa;
  font-weight: 700;
}

.post-verse {
  margin: 12px 0;
  font-size: 1.35rem;
  line-height: 1.7;
}

.post-verse p {
  margin: 0;
}

.post-author,
.muted-text {
  margin: 0;
  color: #6b6258;
  font-size: 0.95rem;
}

.like-row {
  margin-top: 12px;
  justify-content: space-between;
}

.post-actions {
  margin-top: 12px;
}

.post-actions form {
  display: inline;
}

.post-actions input[type="submit"] {
  padding: 0;
  border: 0;
  color: #9b2f2f;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
}

.post-extra {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ebe5dc;
}

.post-extra summary {
  cursor: pointer;
  color: #0f5f76;
}

.comment-item {
  margin: 10px 0;
  padding-left: 10px;
  border-left: 3px solid #d8d2c8;
}

.comment-item p {
  margin: 0 0 0.15rem;
}

.comment-item small {
  color: #6b6258;
}

.comment-form {
  margin-top: 12px;
}

.comment-form textarea {
  box-sizing: border-box;
  padding: 0.6rem;
  border: 1px solid #bdb5aa;
  border-radius: 8px;
  background: #fff;
}

.revision-links {
  margin-top: 8px;
}

.ai-comment {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid #9dbdc5;
  border-radius: 0 8px 8px 0;
  background: #f6fbfb;
}

.ai-comment h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.ai-comment p {
  margin: 0;
}

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  header {
    margin-bottom: 18px;
    padding: 10px 0;
  }

  nav {
    gap: 10px;
  }

  .site-nav {
    align-items: center;
  }

  .nav-menu {
    position: relative;
    flex: 0 0 auto;
  }

  .nav-menu summary {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 0 0.75rem;
    border: 1px solid #d8d2c8;
    border-radius: 8px;
    color: #193f45;
    background: #fffdf9;
    cursor: pointer;
  }

  .nav-menu[open] nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 10;
    width: min(78vw, 280px);
    padding: 12px;
    border: 1px solid #d8d2c8;
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: 0 12px 24px rgba(54, 44, 34, 0.14);
  }

  .nav-menu:not([open]) nav {
    display: none;
  }

  .nav-menu nav {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .nav-menu nav a,
  .nav-menu nav button,
  .nav-menu nav input[type="submit"] {
    display: flex;
    min-height: 40px;
    align-items: center;
  }

  .nav-divider {
    display: block;
    border: 0;
    border-top: 1px solid #d8d2c8;
    margin: 4px 0;
    width: 100%;
  }

  .nav-user {
    font-size: 0.8rem;
    color: #8a7f74;
    padding: 4px 0 2px;
  }

  .nav-user-action {
    padding-left: 0.75rem;
  }

  .post-form-box,
  .post-card {
    padding: 14px;
  }

  .form-actions,
  .like-row,
  .keyword-candidate {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}

/* admin alert */
.admin-alert {
  background: #fff8e6;
  border: 1px solid #e8c84a;
  border-left: 4px solid #c8a000;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.admin-alert-title {
  font-weight: 700;
  margin: 0 0 4px;
}

.admin-alert p {
  margin: 0 0 12px;
  color: #5a4a00;
}

/* senku (selection) */
.selection-banner {
  background: #f0ede8;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.selection-banner--revealed {
  background: #eaf0ed;
  border-color: #b0c8b8;
}

.selection-banner-title {
  font-weight: 700;
  margin: 0 0 6px;
}

.selection-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: #193f45;
  margin: 0 0 4px;
}

.selection-hint {
  font-size: 0.85rem;
  color: #8a7f74;
  margin: 0;
}

.selection-row {
  margin: 6px 0 4px;
}

.selection-button {
  padding: 5px 14px;
  font-size: 0.85rem;
  border: 1px solid #193f45;
  border-radius: 4px;
  background: #fff;
  color: #193f45;
  cursor: pointer;
}

.selection-button--selected {
  background: #193f45;
  color: #fff;
}

.selection-result {
  font-size: 0.85rem;
  margin: 6px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.selection-result-count {
  font-weight: 700;
  color: #193f45;
}

.selection-result-names {
  color: #8a7f74;
}

.kukai-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kukai-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #e8e4de;
}

.kukai-status {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: #e8e4de;
  color: #555;
  white-space: nowrap;
}

.kukai-status--selecting {
  background: #fdf0d0;
  color: #7a5500;
}

.kukai-status--revealed {
  background: #d4eadc;
  color: #1a5c30;
}

.status-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.status-button {
  font-size: 0.8rem;
  padding: 4px 10px;
  white-space: nowrap;
}

/* year ranking */
.year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.year-nav-item {
  padding: 4px 12px;
  border: 1px solid #d8d2c8;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #0f5f76;
}

.year-nav-item--current {
  background: #193f45;
  border-color: #193f45;
  color: #fff;
}

/* ranking */
.ranking-link {
  font-size: 0.85rem;
}

.ranking-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ranking-item {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid #e8e4de;
  align-items: baseline;
}

.ranking-rank {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 0.85rem;
  color: #8a7f74;
  text-align: right;
}

.ranking-verse {
  font-size: 1.1rem;
  font-weight: 600;
}

.ranking-meta {
  font-size: 0.8rem;
  color: #8a7f74;
  grid-column: 2;
}

.ranking-likes {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 0.9rem;
  color: #b04060;
  white-space: nowrap;
}

/* ── コンパクト投稿行 ─────────────────── */
.posts-list {
  margin-top: 4px;
}

.post-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 7px 2px;
  border-bottom: 1px solid #ebe5dc;
}

.post-row-verse {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
}

.post-row-verse-link {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1rem;
  color: #2c2820;
  text-decoration: none;
}

.post-row-verse-link:hover {
  text-decoration: underline;
  color: #0f5f76;
}

.revision-mark {
  flex: 0 0 auto;
  font-size: 0.7rem;
  color: #888;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}

.edit-mark:hover {
  color: #0f5f76;
}

.post-row-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 0.75rem;
  color: #6b6258;
  white-space: nowrap;
}

.post-row-meta turbo-frame,
.post-row-meta form {
  display: contents;
}

.post-row-keyword {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  color: #36545b;
  background: #edf8fa;
  font-size: 0.72rem;
  font-weight: 700;
}

.post-row-author,
.post-row-date {
  font-size: 0.72rem;
  color: #8a7f74;
}

.like-count {
  font-size: 0.75rem;
  color: #b04060;
}

.like-inline-button {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  color: #b04060;
  cursor: pointer;
}

.like-inline-button.liked {
  font-weight: 700;
}

.like-action-button {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  color: #aaa;
  cursor: pointer;
}

.like-action-button.liked {
  color: #c0392b;
  font-weight: 700;
}

.post-row-action {
  font-size: 0.7rem;
  color: #0f5f76;
  text-decoration: underline;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.post-row-delete {
  color: #9b2f2f;
}

/* ── 投稿詳細ページ ─────────────────── */
.post-detail {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 4px;
}

.post-detail-comments,
.post-detail-revisions {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #ebe5dc;
}

.post-detail-comments h2,
.post-detail-revisions h2 {
  font-size: 1rem;
  margin: 0 0 12px;
  color: #5a4f46;
}

/* ===== 上中下の句 分割入力フォーム ===== */

.verse-parts {
  margin: 0.5rem 0;
}

.verse-swap {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  margin: 0.25rem 0;
}

.swap-button {
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid #bdb5aa;
  border-radius: 6px;
  background: #f5f0eb;
  color: #193f45;
  cursor: pointer;
  min-height: 40px;
}

.swap-button:hover,
.swap-button:focus {
  background: #edf8fa;
  border-color: #177b91;
  outline: 3px solid #d4edf2;
}

.verse-preview {
  margin: 1rem 0 0.5rem;
  padding: 0.75rem 1rem;
  background: #fffdf9;
  border: 1px solid #d8d2c8;
  border-radius: 8px;
}

.verse-preview-label {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  font-weight: bold;
  color: #6b6258;
}

.verse-preview-text {
  display: block;
  font-size: 1.1rem;
  color: #193f45;
  min-height: 1.5em;
  word-break: break-all;
}

/* ===== ナビ 閉じるボタン（スマホのみ表示） ===== */

.nav-close-button {
  display: none;
}

@media (max-width: 640px) {
  .nav-close-button {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    padding: 0 0.75rem;
    margin-bottom: 4px;
    border: 1px solid #d8d2c8;
    border-radius: 6px;
    background: #f5f0eb;
    color: #193f45;
    font-size: 0.9rem;
    cursor: pointer;
  }

  .nav-close-button:focus {
    outline: 3px solid #d4edf2;
    border-color: #177b91;
  }
}
