/* 管理人が FrontPage で初めて作った日記用スタイルシート */
html { background: #fff7fa; }
body {
  margin: 0;
  color: #463b46;
  font-family: "MS PGothic", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
  background-color: #fff7fa;
  background-image:
    radial-gradient(circle at 8px 8px, #fff 0 2px, transparent 2.5px),
    radial-gradient(circle at 12px 8px, #f4b9c8 0 2px, transparent 2.5px),
    radial-gradient(circle at 10px 12px, #f4b9c8 0 2px, transparent 2.5px),
    radial-gradient(circle at 8px 12px, #f4b9c8 0 2px, transparent 2.5px),
    radial-gradient(circle at 10px 10px, #f5d15c 0 1.5px, transparent 2px);
  background-size: 40px 40px;
}
a { color: #174db3; text-decoration: underline; }
a:visited { color: #6c3a87; }
.page { width: 760px; margin: 20px auto; background: #fffdfd; border: 5px ridge #f0c9d5; }
.header { padding: 12px 18px 8px; text-align: center; background: #f8dfe7; border-bottom: 4px outset #fff4f7; }
.header h1 { color: #b34d70; font-size: 22px; letter-spacing: 2px; margin: 0; }
.header p { margin: 2px 0 0; color: #6f6770; font-size: 12px; }
.layout { width: 100%; border-collapse: separate; border-spacing: 7px; }
.side { width: 168px; vertical-align: top; }
.main { vertical-align: top; }
.box, .entry { background: #fff; border: 4px outset #f5dce4; padding: 9px; }
.box { margin-bottom: 9px; font-size: 12px; }
.box-title { color: #a94969; font-weight: bold; border-bottom: 2px groove #f2cbd6; margin: 0 0 5px; }
.nav { margin: 0; padding: 0; list-style: none; }
.nav li { border-bottom: 1px dotted #d9aab8; padding: 3px 0; }
.visitor { color: #b24a6b; text-align: center; font-family: "Courier New", monospace; font-weight: bold; }
.content-title { background: #f6e6ad; border: 3px outset #fff8d8; color: #865c28; font-size: 16px; font-weight: bold; padding: 4px 8px; margin: 0 0 9px; }
.entry { margin-bottom: 12px; }
.entry h2 { color: #b34d70; font-size: 15px; margin: 0 0 8px; border-bottom: 2px solid #f1cad5; }
.entry p { margin: 0 0 11px; }
.date { color: #7b7279; font-size: 12px; }
.new { color: #e32b39; font-size: 11px; font-family: Arial, sans-serif; font-weight: bold; }
hr { border: 0; border-top: 2px groove #f0d5dc; height: 2px; }
.pager { text-align: center; font-size: 12px; margin: 14px 0; }
.entry-pagination { display: flex; justify-content: space-between; gap: 12px; margin: -2px 0 14px; font-size: 12px; }
.entry-pagination span, .entry-pagination a { flex: 1; }
.entry-pagination a:last-child { text-align: right; }
.footer { color: #81747a; font-size: 11px; text-align: center; padding: 5px 0 15px; }
.archive-list { padding-left: 22px; }
.note { color: #82757b; font-size: 12px; }
.form-row { margin: 8px 0; }
label { display: block; color: #9b4865; font-weight: bold; font-size: 12px; }
input[type="text"], input[type="date"], textarea { box-sizing: border-box; width: 100%; border: 2px inset #ead1d9; background: #fffefa; color: #463b46; font: inherit; padding: 5px; }
textarea { min-height: 130px; resize: vertical; }
button { color: #64414e; background: #f7d9e3; border: 3px outset #fff3f7; cursor: pointer; font: inherit; padding: 4px 12px; }
button:active { border-style: inset; }
.github-comment-button { display: inline-block; color: #64414e; background: #f7d9e3; border: 3px outset #fff3f7; font: inherit; font-size: 13px; padding: 4px 12px; text-decoration: none; }
.github-comment-button:visited { color: #64414e; }
.github-comment-button:active { border-style: inset; }
.bbs-pagination { text-align: center; margin: 12px 0 3px; font-size: 12px; }
.bbs-pagination a { margin: 0 8px; }
.comment { border-top: 1px dotted #d9aab8; padding: 8px 2px; }
.comment-avatar { float: left; width: 34px; height: 34px; margin: 1px 8px 4px 1px; border: 2px outset #f3dce3; background: #fff; }
.comment::after { content: ""; display: block; clear: both; }
.comment-name { color: #a94969; font-weight: bold; }
.comment-date { color: #8c8186; font-size: 11px; }
.local-badge { color: #7f6730; background: #fff3bd; border: 2px outset #fff9df; font-size: 11px; padding: 2px 5px; }
.diary-photo { display: inline-block; width: auto; max-width: min(100%, 220px); height: auto; margin: 7px 4px; vertical-align: top; }
.entry-thumb { float: right; width: 92px; height: 68px; object-fit: cover; margin: 0 0 6px 10px; border: 3px outset #f4dce4; }
/* 携帯版：保留旧式表格与凸起边框，只把 MENU 放到正文上方。 */
@media (max-width: 800px) {
  html, body { min-width: 0; overflow-x: hidden; }
  body { font-size: 13px; line-height: 1.55; }
  .page { width: auto; margin: 4px; border-width: 4px; }
  .header { padding: 7px 6px 5px; }
  .header h1 { font-size: 18px; letter-spacing: 1px; }
  .header p { font-size: 11px; }
  .layout, .layout tbody, .layout tr, .layout td { display: block; width: auto; }
  .layout { border-spacing: 4px; }
  .side { width: auto; }
  .side .box { display: none; }
  .side .box:first-child { display: block; margin: 0 0 6px; padding: 4px 5px; }
  .side .box-title { display: none; }
  .nav { line-height: 1.7; }
  .nav li { display: inline; border: 0; padding: 0; }
  .nav li::before { content: "["; }
  .nav li::after { content: "] "; }
  .content-title { margin: 0 0 6px; padding: 3px 5px; font-size: 14px; }
  .box, .entry { padding: 6px; border-width: 3px; }
  .entry { margin-bottom: 8px; }
  .entry h2 { margin-bottom: 5px; }
  .entry-thumb { width: 72px; height: 54px; margin-left: 6px; }
  .diary-photo { max-width: min(100%, 220px); margin: 5px 3px; }
  .footer { padding: 4px 3px 9px; font-size: 10px; line-height: 1.45; }
  input[type="text"], input[type="date"], textarea { font-size: 16px; }
  button { padding: 3px 8px; }
}
