html,body{
  height: 100%;
}

body {
  font-family: "Kiwi Maru", system-ui, sans-serif;
  color: #F1F3EB;
  background-color: #184448;
  /* 麻の葉とかのパターン背景（ファイル名は仮） */
  background-image: url("./img/BG_asanoha.webp");
  background-repeat: no-repeat;
  background-size: cover;
  /* or 260px auto; とか好みで */
  background-attachment: fixed;

  margin: 0;
  min-height: 100svh;
  position: relative;
}

/*上の森*/
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 684px;
  /*（森の高さ。好みで）*/
  background-image: url("./img/BGhead_forest.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;

  pointer-events: none;
  z-index: 0;
}

/*下の森*/
body::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 685px;
  background-image: url("./img/BGfoot_forest.webp");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 1;
}

main,
header,
footer {
  position: relative;
  z-index: 2;
}

.contents {
  width: min(1080px, calc(100% - 32px));
  margin: 24px auto 48px;
  align-items: start;

  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}

.mainarea,.subarea {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.30);
}

.mainarea .container{
  padding: 20px;
}

.subarea{
  padding: 20px;
}


@media (max-width: 900px) {
  .contents {
    grid-template-columns: 1fr;
  }
  .subarea{
    order: 2;
  } 
}


.icon {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 22px;
  /* アイコンの大きさ */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  font-variation-settings:
    "FILL" 1,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  color: #ffe7a8;
  /* アイコンの色。好みで */
}

.icon::before {
  display: inline-block;
}

.icon-image::before {
  content: "image";
  /* クイック投稿の画像ボタン */
}

.icon-link::before {
  content: "link";
  /* クイック投稿のリンクボタン */
}

.icon-pin::before {
  content: "push_pin";
  /* 先頭固定（ピン留め） */
}

.icon-admin::before {
  content: "build";
  /* 管理ページのスパナアイコン */
}

/* ------------ */
/* ▼本文入力欄 */
/* ------------ */
textarea.tegalogpost {
  border: 1px solid #adadad;
  border-radius: 4px;
  background-color: white;
  font-family: "M PLUS Rounded 1c", sans-serif;
  padding: 0.5em;
  margin-bottom: 0.25em;
  line-height: 1.4em;
  box-sizing: border-box;
  width: 100%;
  height: 100px !important;
  overflow-wrap: break-word;
  overflow: auto;
}

/* ▽プレースホルダ(※入力文字数がゼロの際にだけ見える薄文字)の装飾 */
textarea.tegalogpost:-moz-placeholder-shown {
  color: #777;
}
textarea.tegalogpost:-ms-input-placeholder {
  color: #777;
}
textarea.tegalogpost:placeholder-shown {
  color: #777;
}

/* 通常時 */
textarea.tegalogpost:focus:-moz-placeholder-shown {
  color: #bbb;
}
textarea.tegalogpost:focus:-ms-input-placeholder {
  color: #bbb;
}
textarea.tegalogpost:focus:placeholder-shown {
  color: #bbb;
}

/* カーソルが入ったとき */
textarea.tegalogpost:-ms-input-placeholder {
  color: #aaa;
}

/* for IE */
/* 横幅800px以下の環境の場合 */
@media all and (max-width: 800px) {
  textarea.tegalogpost {
    font-size: 16px;
    /* 文字サイズ */
    padding: 0.4em;
    /* 内側の余白量 */
  }
}

/* 投稿カード：外枠 */
.onelogbox {
margin: 0 0 18px;
border-radius: 18px;
overflow: hidden;

background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);

border: 1px solid rgba(255, 255, 255, 0.14);
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

/* 本文 */
.onelogbox .comment {
line-height: 1.75;
letter-spacing: 0.02em;
}

/* 本文内の画像をカードに馴染ませる */
.onelogbox .comment img {
max-width: 100%;
height: auto;
display: block;
margin: 12px auto;
border-radius: 12px;
}

/* 本文内のリンク */
.onelogbox .comment a {
text-decoration: none;
}
.onelogbox .comment a:hover {
text-decoration: underline;
}

/* 下の情報行（日時とか） */
.oneloginfo {
margin: 14px 0 0;
padding: 12px 0 0;
border-top: 1px solid rgba(255, 255, 255, 0.10);

display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;

font-size: 0.92em;
opacity: 0.95;
}

/* 日時リンク */
.oneloginfo .postdate a {
text-decoration: none;
}

/* 編集アイコン（右側） */
.oneloginfo .editlink a {
display: inline-flex;
align-items: center;
gap: 6px;
text-decoration: none;
opacity: 0.85;
}
.oneloginfo .editlink a:hover {
opacity: 1;
}

/* 先頭固定ラベル（もし出すなら） */
.entry-pin {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
border-radius: 999px;

background: rgba(255, 255, 255, 0.10);
border: 1px solid rgba(255, 255, 255, 0.14);
font-size: 0.85em;
}