/* ===============================
   基本設定
================================ */

* {
  box-sizing: border-box;
}

body {
  background-color: #f2f2b0;
  color: #2b2b2b;
  margin: 0;
  padding: 24px 20px;
  font-size: 16px;
  font-family: "Helvetica", "sans-serif";
  line-height: 1.5;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* ===============================
   レイアウト基準（左寄せ）
================================ */

header,
article,
form,
footer,
.post,
h2,
h3 {
  max-width: 520px;
  width: 100%;
  margin: 0; 
}

/* ===============================
   テキスト要素
================================ */

p,
ul,
dl {
  margin: 0 0 12px 0;
}

ul {
  padding-left: 18px;
}

dfn,
cite,
address {
  font-style: normal;
}

/* ---- 見出し（左基準） ---- */

h1 {
  font-size: 30px;
  font-weight: normal;
  margin: 0 0 12px 0;
}

h2 {
  font-size: 20px;
  font-weight: normal;
  margin: 32px 0 12px 0;
}

h3 {
  font-size: 18px;
  font-weight: normal;
  margin: 28px 0 10px 0;
}

/* ===============================
   横断ライン
================================ */

hr {
  width: 100%;
  margin: 32px 0;
  border: none;
  border-top: 1px solid #777;
}

/* ===============================
   リンク
================================ */

a:link    { color: #2ca9e1; }
a:visited { color: #e45e32; }
a:hover   { color: #4d5aaf; }
a:active  { color: #007bbb; }

/* ===============================
   フォーム
================================ */

form {
  margin-top: 24px;
}

textarea {
  width: 100%;
  max-width: 100%;
  height: 80px;
  margin: 10px 0 12px 0;
  font-family: inherit;
}

input[type="text"],
input[type="password"],
input[type="number"] {
  width: 70px;
  height: 22px;
  margin-right: 4px;
  font-family: inherit;
}

button,
input[type="button"] {
  background-color: #c8c2c6;
  border: 0.5px solid #47585c;
  border-radius: 0.3em;
  width: 50px;
  height: 24px;
  font-family: inherit;
}

/* ===============================
   聯詩投稿表示
================================ */

.post {
  border: 0.8px solid #777;
  padding: 14px 16px;
  margin: 24px 0;
  background: #f2f2b0;
}

.post pre {
  margin: 0 0 10px 0;
  font-family: inherit;
  white-space: pre-wrap;
  line-height: 1.6;
}

.post div {
  margin-top: 6px;
  font-size: 13px; 
  color: #555; 
}

/* ===============================
   テーブル（将来用）
================================ */

table {
  border-collapse: collapse;
}

td,
th {
  border: 1px solid #595959;
  padding: 4px;
}

/* ===============================
   スマホ対応
================================ */

@media screen and (max-width: 600px) {

  body {
    padding: 20px 16px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 16px;
  }

  textarea {
    height: 90px;
  }
}

details {
  margin: 24px 0;
}

summary {
  cursor: pointer;
  font-size: 15px;
  color: #333;
  margin-bottom: 12px;
}

.month-block {
  margin-top: 12px;
}

.ym-nav {
  margin: 12px 0 24px 0;
  font-size: 14px;
}

.ym-nav a {
  margin-right: 10px;
  color: #555;
  text-decoration: none;
}

.ym-nav a:hover {
  text-decoration: underline;
}

.random-post {
  margin: 32px 0;
}

.random-post h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.random-post .post {
  background: #fff9d8;
  border-color: #999;

