/*
 * devlog-static.css
 * Dev Log 静的詳細ページ専用スタイル
 * Generated pages: devlog/log/ja/*.html, devlog/log/en/*.html
 */

/* ========================= */
/* Body / 背景               */
/* ========================= */

/* body タグに付くクラス — tavern 背景 */
.dls-body {
  margin: 0;
  font-family: serif;
  color: #f5f5f5;
  background:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)),
    url("../assets/images/tavern.png") center/cover fixed no-repeat;
  min-height: 100vh;
}

/* ========================= */
/* ヘッダー                  */
/* ========================= */

.dls-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(20, 12, 8, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(245, 231, 200, 0.1);
}

.dls-site-title {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 600;
  color: #f5e7c8;
  text-decoration: none;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.dls-site-title:hover {
  color: #f5d08a;
}

.dls-header-nav {
  display: flex;
  gap: 16px;
}

.dls-header-nav a {
  color: #c8a870;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.dls-header-nav a:hover {
  color: #f5d08a;
}

/* ========================= */
/* メインコンテンツ          */
/* ========================= */

.dls-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ========================= */
/* パンくず                  */
/* ========================= */

.dls-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.88rem;
  color: #9a8060;
}

.dls-breadcrumb a {
  color: #c8a870;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dls-breadcrumb a:hover {
  color: #f5d08a;
}

.dls-breadcrumb span {
  color: #9a8060;
}

/* ========================= */
/* 記事本体                  */
/* ========================= */

.dls-article {
  padding: 28px 32px 32px;
  background: rgb(53, 39, 31);
  border: 1px solid rgba(160, 100, 45, 0.45);
  border-radius: 10px;
  margin-bottom: 28px;
}

/* 日付 */
.dls-date {
  display: block;
  font-size: 0.87rem;
  color: #b8966a;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* タイトル */
.dls-title {
  margin: 0 0 24px;
  font-size: 1.7rem;
  font-weight: bold;
  color: #f0e0c0;
  line-height: 1.4;
}

/* 本文ラッパー（div.dls-content）— background を指定しない */
.dls-content {
  /* 背景は .dls-article から継承 — 追加の background 指定なし */
}

.dls-content p {
  margin: 0 0 1em;
  font-size: 1rem;
  line-height: 1.9;
  color: #d8c8a8;
}

.dls-content p:last-child {
  margin-bottom: 0;
}

/* ========================= */
/* タグ                      */
/* ========================= */

.dls-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.dls-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.78rem;
  color: #c8a868;
  background: rgba(120, 70, 25, 0.2);
  border: 1px solid rgba(160, 100, 40, 0.38);
  border-radius: 999px;
}

/* ========================= */
/* ページ下部ナビ            */
/* ========================= */

.dls-page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dls-back-link,
.dls-lang-link {
  display: inline-block;
  padding: 10px 22px;
  font-family: serif;
  font-size: 0.95rem;
  font-weight: bold;
  color: #f8e8c3;
  background: linear-gradient(to bottom, #6b4423 0%, #4d2f17 100%);
  border: 2px solid #b8894c;
  border-radius: 999px;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.3);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.dls-back-link:hover,
.dls-lang-link:hover {
  background: linear-gradient(to bottom, #80542d 0%, #5e391c 100%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 7px 16px rgba(0, 0, 0, 0.4);
}

.dls-back-link:focus-visible,
.dls-lang-link:focus-visible {
  outline: 2px solid #f5d08a;
  outline-offset: 3px;
}

/* ========================= */
/* タブレット                */
/* ========================= */

@media (max-width: 900px) {
  .dls-main {
    padding: 40px 20px 60px;
  }

  .dls-article {
    padding: 24px 24px 28px;
  }

  .dls-title {
    font-size: 1.45rem;
  }

  .dls-content p {
    font-size: 0.97rem;
  }
}

/* ========================= */
/* スマホ                    */
/* ========================= */

@media (max-width: 600px) {
  .dls-header {
    padding: 10px 14px;
  }

  .dls-site-title {
    font-size: 0.88rem;
  }

  .dls-header-nav {
    gap: 10px;
  }

  .dls-header-nav a {
    font-size: 0.82rem;
  }

  .dls-main {
    padding: 28px 12px 60px;
  }

  .dls-breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }

  .dls-article {
    padding: 20px 18px 24px;
  }

  .dls-title {
    font-size: 1.2rem;
  }

  .dls-content p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .dls-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
  }

  .dls-page-nav {
    gap: 10px;
  }

  .dls-back-link,
  .dls-lang-link {
    padding: 9px 16px;
    font-size: 0.86rem;
  }
}
