@charset "UTF-8";

/* ========================================
   WORLD ARCHIVE
   全ページ共通CSS
======================================== */

:root {
  --bg-main: #d7c9ab;
  --bg-paper: #eee5d1;
  --bg-paper-dark: #e3d6b9;

  --ink: #332e27;
  --ink-soft: #61594c;
  --ink-faint: #8a806e;

  --line: #a99b7d;
  --line-dark: #76694f;

  --accent: #665638;
  --accent-dark: #403724;
  --accent-pale: rgba(90, 72, 43, 0.08);

  --shadow: rgba(38, 31, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-main);
}

body {
  min-height: 100vh;
  margin: 0;

  color: var(--ink);

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    "Noto Serif JP",
    serif;

  font-size: 13px;
  line-height: 1.9;

  background:
    radial-gradient(
      circle at 20% 10%,
      rgba(255,255,255,0.24) 0,
      rgba(255,255,255,0) 38%
    ),
    radial-gradient(
      circle at 80% 75%,
      rgba(91,73,45,0.09) 0,
      rgba(91,73,45,0) 42%
    ),
    linear-gradient(
      135deg,
      #d9ccb0 0%,
      #cfc09f 100%
    );
}


/* ========================================
   全体
======================================== */

.site-shell {
  width: 100%;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}


/* ========================================
   共通ヘッダー
======================================== */

.site-header {
  position: relative;

  padding:
    calc(18px + env(safe-area-inset-top))
    58px
    16px
    18px;

  color: #eee6d5;

  background:
    linear-gradient(
      135deg,
      #3c382e 0%,
      #28261f 100%
    );

  border-bottom: 1px solid #766d59;

  box-shadow:
    0 3px 12px rgba(25,21,15,0.22);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;

  height: 1px;

  background: rgba(221,207,174,0.26);
}

.site-name {
  margin: 0;

  font-size: 17px;
  font-weight: normal;
  line-height: 1.4;

  letter-spacing: 0.12em;
}

.site-name a {
  color: inherit;
  text-decoration: none;
}

.site-label {
  margin: 5px 0 0;

  color: #bdb29c;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 9px;
  line-height: 1.3;

  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/* ========================================
   NAVトグル
======================================== */

.nav-toggle {
  appearance: none;

  position: absolute;
  top: calc(17px + env(safe-area-inset-top));
  right: 14px;

  width: 34px;
  height: 34px;

  margin: 0;
  padding: 0;

  color: #e6ddca;

  background: rgba(255,255,255,0.035);

  border: 1px solid rgba(225,212,183,0.35);
  border-radius: 2px;

  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 8px;

  width: 16px;
  height: 1px;

  background: currentColor;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle span:nth-child(1) {
  top: 10px;
}

.nav-toggle span:nth-child(2) {
  top: 16px;
}

.nav-toggle span:nth-child(3) {
  top: 22px;
}

.nav-toggle.is-open span:nth-child(1) {
  top: 16px;
  transform: rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  top: 16px;
  transform: rotate(-45deg);
}


/* ========================================
   NAV本体
======================================== */

.site-nav {
  display: none;

  position: absolute;
  z-index: 100;

  top: calc(58px + env(safe-area-inset-top));
  right: 12px;

  width: min(78vw, 260px);

  padding: 8px;

  background:
    linear-gradient(
      145deg,
      #353128,
      #25231d
    );

  border: 1px solid #716752;

  box-shadow:
    0 7px 20px rgba(28,23,16,0.32);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;

  margin: 0;
  padding: 0;
}

.site-nav li + li {
  border-top: 1px solid rgba(211,198,169,0.14);
}

.site-nav a {
  display: block;

  padding: 11px 12px;

  color: #ded5c1;

  font-size: 11px;
  line-height: 1.5;

  letter-spacing: 0.08em;

  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(255,255,255,0.05);
}

.nav-en {
  display: block;

  margin-top: 2px;

  color: #918875;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 8px;

  letter-spacing: 0.14em;
}


/* ========================================
   共通メイン
======================================== */

.site-main {
  flex: 1;

  width: 100%;

  padding: 18px 12px 28px;
}

.archive-page {
  width: 100%;
  max-width: 540px;

  margin: 0 auto;
}


/* ========================================
   ページタイトル
======================================== */

.page-header {
  position: relative;

  margin-bottom: 16px;
  padding: 17px 15px 15px;

  background: rgba(240,232,213,0.84);

  border:
    1px solid
    rgba(108,94,68,0.48);

  box-shadow:
    0 3px 10px rgba(52,43,29,0.09);
}

.page-header::before {
  content: "\25C7";

  position: absolute;
  top: 13px;
  right: 13px;

  color: #8d816b;

  font-size: 10px;
}

.page-type {
  margin: 0 0 5px;

  color: var(--ink-faint);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 8px;

  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;

  color: #302b23;

  font-size: 20px;
  font-weight: normal;
  line-height: 1.45;

  letter-spacing: 0.08em;
}

.page-lead {
  margin: 8px 0 0;

  color: var(--ink-soft);

  font-size: 11px;
  line-height: 1.8;
}


/* ========================================
   インデックス専用
======================================== */

.index-hero {
  position: relative;

  margin-bottom: 16px;
  padding: 34px 20px 31px;

  text-align: center;

  background:
    linear-gradient(
      rgba(245,237,218,0.92),
      rgba(230,218,191,0.94)
    );

  border: 1px solid #9d8f71;

  box-shadow:
    0 5px 16px rgba(54,44,29,0.12);
}

.index-hero::before {
  content: "";

  position: absolute;
  inset: 5px;

  pointer-events: none;

  border: 1px solid rgba(99,82,51,0.22);
}

.index-mark {
  margin-bottom: 12px;

  color: #73664c;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 9px;

  letter-spacing: 0.2em;
}

.index-title {
  margin: 0;

  font-size: 24px;
  font-weight: normal;
  line-height: 1.5;

  letter-spacing: 0.12em;
}

.index-subtitle {
  margin: 12px auto 0;

  max-width: 29em;

  color: #6f6555;

  font-size: 10px;
  line-height: 2;
}

.index-divider {
  width: 80px;
  height: 1px;

  margin: 18px auto;

  background: #9c8b68;
}


/* ========================================
   共通パネル
======================================== */

.archive-panel {
  margin-bottom: 14px;
  padding: 15px;

  background: rgba(242,234,215,0.88);

  border: 1px solid rgba(112,96,68,0.43);

  box-shadow:
    0 3px 9px rgba(50,41,28,0.07);
}

.panel-title {
  position: relative;

  margin: 0 0 12px;
  padding: 0 0 7px 18px;

  color: #453d30;

  font-size: 13px;
  font-weight: normal;

  letter-spacing: 0.08em;

  border-bottom:
    1px solid
    rgba(104,89,64,0.32);
}

.panel-title::before {
  content: "\25C6";

  position: absolute;
  left: 2px;
  top: 1px;

  color: #88785b;

  font-size: 8px;
}


/* ========================================
   インデックスリンク
======================================== */

.archive-menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.archive-menu a {
  position: relative;

  display: block;

  padding: 13px 34px 13px 13px;

  color: var(--ink);

  background: rgba(255,255,255,0.19);

  border: 1px solid rgba(108,94,69,0.27);

  text-decoration: none;
}

.archive-menu a::after {
  content: "\203A";

  position: absolute;
  top: 50%;
  right: 13px;

  color: #817357;

  font-size: 19px;

  transform: translateY(-52%);
}

.menu-title {
  display: block;

  font-size: 12px;

  letter-spacing: 0.06em;
}

.menu-text {
  display: block;

  margin-top: 3px;

  color: #7b7161;

  font-size: 9px;
  line-height: 1.6;
}


/* ========================================
   国家・領地・都市一覧
======================================== */

.record-group {
  margin-bottom: 22px;
}

.group-header {
  display: flex;
  align-items: baseline;
  gap: 8px;

  margin: 0 0 9px;
  padding-bottom: 6px;

  border-bottom: 1px solid #9e9073;
}

.group-title {
  margin: 0;

  font-size: 14px;
  font-weight: normal;

  letter-spacing: 0.09em;
}

.group-en {
  color: var(--ink-faint);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 8px;

  letter-spacing: 0.14em;
}

.record-list {
  display: grid;
  gap: 7px;
}

.record-card {
  position: relative;

  display: block;

  padding: 12px 35px 11px 13px;

  color: var(--ink);

  background: rgba(242,234,215,0.86);

  border:
    1px solid
    rgba(108,94,69,0.34);

  box-shadow:
    0 2px 7px rgba(51,42,28,0.055);

  text-decoration: none;
}

.record-card::after {
  content: "\203A";

  position: absolute;
  top: 50%;
  right: 13px;

  color: #86785e;

  font-size: 18px;

  transform: translateY(-53%);
}

.record-class {
  display: block;

  margin-bottom: 2px;

  color: var(--ink-faint);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 7px;

  letter-spacing: 0.16em;
}

.record-name {
  display: block;

  font-size: 12px;

  letter-spacing: 0.055em;
}

.record-caption {
  display: block;

  margin-top: 3px;

  color: #796f5e;

  font-size: 9px;
  line-height: 1.55;
}


/* ========================================
   詳細ページ
======================================== */

.record-sheet {
  background: rgba(242,234,215,0.9);

  border:
    1px solid
    rgba(108,94,69,0.46);

  box-shadow:
    0 4px 13px rgba(48,39,27,0.09);
}

.record-sheet-header {
  padding: 17px 15px 14px;

  border-bottom:
    3px double
    rgba(105,89,62,0.4);
}

.record-id {
  margin: 0 0 4px;

  color: var(--ink-faint);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 8px;

  letter-spacing: 0.17em;
}

.record-title {
  margin: 0;

  font-size: 20px;
  font-weight: normal;
  line-height: 1.45;

  letter-spacing: 0.075em;
}

.record-subtitle {
  margin: 7px 0 0;

  color: #756a59;

  font-size: 10px;
}


/* ========================================
   基本情報表
======================================== */

.record-meta {
  margin: 0;
  padding: 12px 15px;

  background: rgba(105,86,52,0.04);

  border-bottom:
    1px solid
    rgba(107,92,66,0.28);
}

.record-meta div {
  display: grid;
  grid-template-columns: 6.8em 1fr;

  padding: 5px 0;

  border-bottom:
    1px dotted
    rgba(113,97,70,0.28);
}

.record-meta div:last-child {
  border-bottom: 0;
}

.record-meta dt {
  color: #766b59;

  font-size: 9px;
}

.record-meta dd {
  margin: 0;

  font-size: 10px;
}


/* ========================================
   本文セクション
======================================== */

.record-body {
  padding: 5px 15px 18px;
}

.record-section {
  padding-top: 18px;
}

.record-section + .record-section {
  margin-top: 8px;

  border-top:
    1px solid
    rgba(107,92,66,0.2);
}

.section-title {
  position: relative;

  margin: 0 0 10px;
  padding-left: 17px;

  color: #443b2e;

  font-size: 13px;
  font-weight: normal;

  letter-spacing: 0.07em;
}

.section-title::before {
  content: "\25C7";

  position: absolute;
  left: 1px;
  top: 1px;

  color: #8c7d60;

  font-size: 8px;
}

.record-section p {
  margin: 0 0 10px;
}

.record-section p:last-child {
  margin-bottom: 0;
}


/* ========================================
   小見出し
======================================== */

.sub-title {
  margin: 15px 0 7px;

  color: #5a4d38;

  font-size: 11px;
  font-weight: normal;

  letter-spacing: 0.06em;
}


/* ========================================
   リスト
======================================== */

.archive-list {
  margin: 8px 0;
  padding: 0;

  list-style: none;
}

.archive-list li {
  position: relative;

  margin-bottom: 5px;
  padding-left: 16px;
}

.archive-list li::before {
  content: "\00B7";

  position: absolute;
  left: 3px;

  color: #77694e;

  font-weight: bold;
}


/* ========================================
   注記
======================================== */

.archive-note {
  margin: 13px 0;
  padding: 11px 12px;

  color: #615744;

  background: rgba(116,93,52,0.07);

  border-left: 2px solid #958462;

  font-size: 10px;
  line-height: 1.8;
}

.note-label {
  display: block;

  margin-bottom: 4px;

  color: #817154;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 8px;

  letter-spacing: 0.14em;
}


/* ========================================
   タグ
======================================== */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;

  margin-top: 10px;
}

.archive-tag {
  display: inline-block;

  padding: 2px 7px;

  color: #6d604b;

  background: rgba(113,91,52,0.06);

  border:
    1px solid
    rgba(109,91,60,0.28);

  font-size: 8px;
}


/* ========================================
   前後リンク
======================================== */

.record-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;

  margin-top: 15px;
}

.record-navigation a {
  display: block;

  padding: 9px 8px;

  color: #625744;

  background: rgba(241,233,213,0.72);

  border:
    1px solid
    rgba(111,94,66,0.31);

  font-size: 9px;

  text-align: center;
  text-decoration: none;
}


/* ========================================
   共通フッター
======================================== */

.site-footer {
  padding:
    16px
    14px
    calc(16px + env(safe-area-inset-bottom));

  color: #aaa08d;

  background:
    linear-gradient(
      135deg,
      #302d25,
      #23211c
    );

  border-top: 1px solid #736a56;

  text-align: center;
}

.footer-title {
  margin: 0;

  color: #c7bda9;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 8px;

  letter-spacing: 0.17em;
}

.footer-text {
  margin: 5px 0 0;

  font-size: 8px;
  line-height: 1.6;
}


/* ========================================
   リンク共通
======================================== */

a {
  -webkit-tap-highlight-color:
    rgba(85,70,43,0.12);
}

a:focus-visible,
button:focus-visible {
  outline: 1px solid #827455;
  outline-offset: 2px;
}