/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 全ページ共通

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Zen Kaku Gothic New", "Noto Sans", YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, "sans-serif";
  font-feature-settings: "palt";
  font-size: clamp(1.4rem, 1.3rem + 0.5vw, 1.6rem);
  color: #dddddd;
  letter-spacing: 1px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

body::before {
  position: fixed;
  top: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #494250 no-repeat;
  background-size: cover;
  z-index: -1;
}

/* サブメニュー */

.contents .subarea {
  padding-top: 10px;
  margin-top: 10px;
}

.sidebar_title {
  background: rgba(36, 32, 39, 0.9);
  color: #dddddd;
  padding: 6px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  border: 1px solid #111111;
}

ul.cattree.depth1 {
  padding-left: 10px;
}

ul.cattree.depth2 {
  padding-left: 10px;
}

ul.datelimitlist li {
  margin-left: 10px;
}

ul.datelimitlist > li {
  margin-bottom: 12px;
}

ul.datelimitlist > li:last-child {
  margin-bottom: 0;
}

ul.datelimitlist li::before {
  font-family: "Line Awesome Free";
  content: "\f08d"; /* thumbtack */
  font-weight: 900;
  margin-right: 5px;
}

/* RSS */

img[src*="rss"], a[href*="rss"] {
  display: none;
}

/* フッター */

footer {
  position: relative;
  width: 100%;
}

footer .container {
  max-width: none;
  margin: 0;
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 文字

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

p {
  margin: 20px 0;
  letter-spacing: 1px;
  text-align: left;
}

/* ページタイトル */

h1.maintitle a {
  color: #dddddd;
  font-family: "Montserrat";
  text-decoration: none;
}

/* 強調タグ */

.onelogbox em.decorationE {
  background: #111111;
  color: #ffd700;
  padding: 3px 8px;
  margin: 5px 5px;
  border-radius: 4px;
}

/* 引用タグ */

.decorationQ + br {
  display: none;
}

.onelogbox q.decorationQ {
  background: #111111;
  color: #dddddd;
  border-left: 4px solid #000000;
  quotes: none;
  margin: 10px 0 10px 0;
}

/* ルビタグ */

.onelogbox ruby, .onelogbox ruby * {
  letter-spacing: normal;
}

.onelogbox ruby {
  display: inline-block;
  position: relative;
}

.onelogbox ruby rt {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -1.2em;
  white-space: nowrap;
  font-size: 0.6em;
  color: #dddddd;
}

/* リストタグ */

.onelogbox ul.decorationL li {
  margin-left: 0;
  padding-left: 0;
}

.onelogbox ul.decorationL li:before {
  content: "●";
  display: inline-block;
  width: auto;
  background: none;
  position: static;
  margin-right: 6px;
  color: #dddddd;
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 画像

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

/* 画像の固定 */

img {
  max-width: 100%;
  height: auto;
}

/* 記事内の画像 */

.imagelink-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.imagelink-wrapper a {
  display: block;
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
}

.imagelink-wrapper:has(a:only-child) a {
  padding-top: 0;
}

.imagelink-wrapper:has(a:only-child) {
  display: block;
}

.imagelink-wrapper a:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  padding-top: 100%;
}

.imagelink-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.imagelink-wrapper:has(a:only-child) img {
  position: static;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 520px) {
  .imagelink-wrapper {
    grid-template-columns: 1fr;
  }
  .imagelink-wrapper a:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 装飾

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

/* タイトル下の罫線 */

header {
  width: 100%;
  margin: 0;
  padding: 1px 0 40px;
  border-bottom: 2px dotted #111111;
}

/* 記事下の線 */

.onelogbox {
  border-bottom: none;
}

/* 見出し */

p.situation {
  background: rgba(36, 32, 39, 0.9);
  color: #dddddd;
  border: 1px solid #111111;
}

/* 記事のカテゴリの余白 */

.categorylink {
  margin-left: 6px;
}

.catseparator {
  display: none;
}

/* 記事のカテゴリアイコンを削除 */

.categories .categorylink::before {
  display: none;
}

.categorylink, .categorylink:hover {
  text-decoration: none;
}

/* 一覧のカテゴリアイコン */

ul.cattree.depth1 > li::before {
  content: none;
}

ul.cattree.depth1 > li::before {
  font-family: "Line Awesome Free";
  content: "\f02d"; /* book */
  font-weight: 900;
  margin-right: 6px;
  display: inline-block;
  width: 1.2em;
}

ul.cattree.depth1 > li.cat-AIworks::before {
  content: "\f013"; /* cog */
}

ul.cattree.depth1 > li.cat-memo::before {
  content: "\f083"; /* camera-retro */
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 リンク

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

/* 全体リンク */

a {
  color: #ffd700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ホバー */

a:hover {
  color: #adff26;
}

/* ハッシュタグ */

.onelogbox a.taglink {
  background: none;
  color: #ffd700;
}

ul.hashtaglist li {
  background: #111111;
  color: #ffd700;
  text-decoration: none;
}

/* 記事内リンクを優先的に上書き */

.onelogbox a {
  color: #ffd700;
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 個別記事

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

/* メインラッパー */

.body_wrap {
  background: rgba(17, 17, 17, 0.2);
  width: 70%;
  margin: 0 auto;
  border: 1px solid #111111;
  border-top: none;
  border-bottom: none;
}

@media (max-width: 520px) {
  .body_wrap {
    width: 100%;
    border-left: none;
    border-right: none;
  }
}

/* 共通 */

.onelogbox {
  background: rgba(36, 32, 39, 0.9);
  border-radius: 12px;
  padding: 20px 20px 20px;
  margin: 20px 0;
  border: 1px solid #111111;
  border-bottom: none;
}

/* 個別 */

body.onelog .onelogbox > *:first-child {
  margin-top: 10px;
}

/* 鍵付き */

body:not(.onelog) .onelogbox {
  padding-top: 20px;
}

.onelogbox .passkeyinput {
  background: #494250;
  color: #dddddd;
  border: 1px solid #111111;
  padding: 6px 10px;
  margin-top: 12px;
  border-radius: 6px;
  width: 220px;
  max-width: 100%;
  box-sizing: border-box;
}

.onelogbox .passkeysubmit {
  background: #111111;
  color: #dddddd;
  border: 1px solid #111111;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.onelogbox .submitcover {
  margin-top: 12px;
  margin-left: 3px;
}

.onelogbox .passkeyinput:focus {
  outline: none;
  border-color: #ffd700;
}

/* 記事内の余白 */

.onelogbox p {
  margin-bottom: 1.5em;
  line-height: 2;
}

/* 全体の横幅を広げる */

.container {
  width: 100%;
  max-width: 1200px;
}

@media (min-width: 520px) {
  .contents .mainarea {
    width: calc(100% - 300px);
    width: 100%;
    min-width: 300px;
    box-sizing: border-box;
  }
  .contents .subarea {
    width: 100%;
    margin-top: 20px;
  }
}

/* 記事の変形対策 */

main {
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

/* 投稿時刻 */

.postdate a {
  text-decoration: none;
  letter-spacing: 1px;
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 投稿フォーム

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

/* 投稿フォーム全体 */

.postform {
  background: rgba(36, 32, 39, 0.9);
  border: 1px solid #111111;
  border-radius: 8px;
}

/* テキストエリア */

textarea.tegalogpost {
  width: 100%;
  box-sizing: border-box;
  background: #494250;
  color: #dddddd;
  border: 1px solid #111111;
}

/* 入力欄 */

input, select {
  background: #494250;
  color: #dddddd;
  border: 1px solid #111111;
}

/*－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－

 ボタン

－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－*/

/* ボタン */

.postbutton {
  font-size: 1.4rem;
  background: #111111;
  border: 1px solid #111111;
}

.postbutton:hover {
  background: #494250;
}

/* テキストボタン */

.decoBtns input {
  background: #111111;
  color: #dddddd;
  border: 1px solid #111111;
}

.decoBtns input:hover {
  background: #494250;
  border-color: #111111;
  color: #dddddd;
}

.submitbutton {
  background: #111111;
  color: #dddddd;
}

/* カテゴリボタン */

.onelogbox p.oneloginfo .categories a.categorylink:hover {
  color: #ffd700;
}

/* タグボタン */

ul.hashtaglist li {
  display: inline-block;
  background: #111111;
  color: #ffd700;
  padding: 7px 10px;
  border-radius: 999px;
  margin: 4px;
}

ul.hashtaglist li a {
  color: inherit;
  text-decoration: none;
}

ul.hashtaglist li::before {
  margin-right: 3px;
}

ul.hashtaglist .num {
  margin-left: 4px;
  opacity: 0.6;
}

/* 隠すボタン */

.onelogbox a.readmorebutton {
  background: #111111;
  color: #dddddd;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.onelogbox a.readmorebutton:hover {
  background: #111111;
  color: #ffd700;
}

.onelogbox a.readmoreopen::after {
  content: "";
  display: block;
}

.onelogbox .readmorearea {
  margin-top: 8px;
}

.onelogbox .readmorearea a.readmoreclose {
  display: block;
  width: fit-content;
  margin-top: 8px;
}