/* ========== 1. angkor-base.css ============== */
body {
  background-color: #f2e6c9;
  color: #2e1d0f;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 1rem;
  margin: 0 auto;
  text-align: center;
}
p {
  color: #2e1d0f;
  line-height: 1.5em;
  margin: 0;
  padding: 5px 2px;
}
h1,
h2 {
  color: #3c2b17;
  font-size: 1.33rem;
  font-weight: bold;
  line-height: 1em;
  margin: 0;
  padding: 0;
}
h3 {
  color: #3c2b17;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1em;
  margin: 7px 3px 1px 3px;
}
a,
a:link {
  color: #704214;
  text-decoration: none;
}
a:visited {
  color: #5a3319;
}
a:hover {
  color: #bb6e2b;
  text-decoration: underline;
}
a:active {
  color: #a0522d;
}
table {
  color: #5b3b1e;
  background-color: #fdf6e3;
}

/* ==========2.angkor-layout.css ============== */
.angkor-ruins-wrapper {
  margin: 0 auto;
  text-align: left;
  width: 800px;
  display: flex;
  flex-direction: column;
}
/* site-header */
.angkor-ruins-header {
  background: linear-gradient(
      to top,
      rgba(242, 230, 201, 0.3),
      rgba(242, 230, 201, 0.1)
    ),
    url(../img/header-logo-1.png) no-repeat center bottom;
  background-size: contain;
  background-blend-mode: lighten;
  box-shadow: inset 0 -55px 55px rgba(112, 66, 20, 0.3);
  height: 210px;
  position: relative;
  width: 800px;
  margin: 0 auto;
}

.angkor-ruins-header-title {
  position: absolute;
  top: 20px;
  left: 25px;
  margin: 0;
  font-size: 1.8rem;
  color: #5a3e1b;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========== MENUBAR ============== */
.angkor-ruins-menubar {
  background-color: #d4bb9a;
  font-size: 0.9rem;
  height: 28px;
}
.angkor-ruins-menubar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex; /* 横並び */
  flex: 1; /* 横幅いっぱいに広がる */
}
.angkor-ruins-menubar li {
  flex: 1; /* 各項目を均等に伸ばす */
  margin: 0;
  padding: 0;
}
.angkor-ruins-menubar a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  color: #2e1d0f;
  text-decoration: none;
  border-right: 1px solid #5e4120;
  width: 100%;
}
.angkor-ruins-menubar li:first-child a {
  border-left: 1px solid #5e4120;
}
.angkor-ruins-menubar a:hover {
  background-color: #b28c64;
}
.angkor-ruins-content {
  margin: 7px 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.5rem;
}

.angkor-ruins-sidebar {
  background-color: #e7d7bb;
  border: 3px double #a4876c;
  padding-bottom: 3px;
}
.angkor-ruins-sidebar ul {
  list-style-type: none;
  margin: 0;
  padding: 10px;
}
.angkor-ruins-sidebar li {
  border-top: 1px solid #b4977f;
  border-right: 1px solid #b4977f;
  border-left: 1px solid #b4977f;
  color: #5e4120;
  line-height: 1.5em;
  padding: 5px 3px;
  font-size: 0.83rem;
}
.angkor-ruins-sidebar h2 {
  margin: 5px 8px;
}
.angkor-ruins-sidebar p {
  text-indent: 0.5em;
  margin: 0 5px;
}
.angkor-ruins-sidebar img {
  margin-left: 3px;
}
.angkor-ruins-sidebar li.end {
  border-bottom: 1px solid #555;
}
.angkor-ruins-main-content {
  width: 100%;
  background-color: #f7f1e3;
  padding: 0 2px 0 7px;
}
.angkor-ruins-main-content p {
  text-indent: 1em;
}
.angkor-ruins-main-content h1 {
  font-size: 1.33rem;
  height: 30px;
  margin-bottom: 5px;
  padding: 0 0 3px 0;
  letter-spacing: 0.8em;
}
.cont_right_about ul {
  list-style-type: none;
  margin: 0;
  padding: 10px;
}
.cont_right_about li {
  border-bottom: 1px solid #b4977f;
  line-height: 1.5em;
  padding: 7px 0;
}
.angkor-ruins-footer {
  width: 100%;
  color: #2e1d0f;
  background-color: #dcc8ab;
  font-size: 1rem;
  padding: 8px 5px;
  text-align: center;
}

/* ==========3. angkor-components.css============== */
.angkor-ruins-entry-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-top: 1px solid #c3b8a5;
  padding: 10px 0 0 0;
  font-weight: normal;
  flex-wrap: wrap;
}
.angkor-ruins-entry-top h2,
.angkor-ruins-entry-top h3 {
  font-size: 1rem;
  font-size: clamp(1rem, calc(0.8rem + 0.5vw), 1.333rem);
  padding-bottom: 15px;
}
.angkor-ruins-entry-top-image {
  flex-shrink: 0;
  max-width: 100%;
}
.angkor-ruins-entry-top-image img {
  background: linear-gradient(#f4e3c3, #e1c7a0);
  border: 1px solid #b38b5d;
  padding: 4px;
  object-fit: cover;
  display: block;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  box-sizing: border-box;
}
.angkor-ruins-entry-top-text {
  flex: 1;
  min-width: 200px;
}
#profile {
  padding-bottom: 5px;
}
#profile img {
  border: 3px solid #ccc;
  margin-left: 10px;
}
.angkor-ruins-profile {
  color: #6e4d30;
}

.angkor-ruins-table-compact {
  border-collapse: collapse;
  width: 600px;
  margin-top: 0;
  margin-bottom: 10px;
  background-color: #f5ecd8;
}
.angkor-ruins-table-compact tr,
.angkor-ruins-table-compact td {
  color: #3b2b1f;
  border: 1px solid #d8cfc0;
  font-size: 0.92rem;
  padding: 6px;
}
.angkor-ruins-table-compact th {
  border: 1px solid #c6b89e;
  font-size: 0.92rem;
  text-align: center;
  background-color: #e7dbc6;
  color: #2e1d0f;
}
/* キャプション（あれば使用推奨） */
.angkor-ruins-table-compact caption {
  caption-side: top;
  text-align: left;
  font-weight: bold;
  padding: 8px 12px;
  color: #2e1d0f;
}
.angkor-ruins-image-map {
  width: 595px;
  border: 3px solid #704214;
  margin: 0 0 10px 0;
  padding: 0;
}
.angkor-ruins-image-map img {
  border: none;
  display: block;
  margin: 15px auto;
}
/* ===== ギャラリー ===== */
.angkor-ruins-gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
}
.angkor-ruins-gallery {
  font-size: 0.8em;
  border: 3px solid #a4876c;
  width: 184px;
  height: 196px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #f2e6c9;
  text-align: center;
}
.angkor-ruins-gallery img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  display: block;
  margin-top: 8px;
}
.angkor-ruins-gallery p {
  color: #2e1d0f;
  font-size: 0.9em;
  margin: 0;
}
.angkor-ruins-gallery .caption {
  color: #2e1d0f;
  font-size: 0.9em;
  margin: 0;
}

.angkor-ruins-page-top {
  text-align: right;
  margin-bottom: 15px;
}

/* ==========4.angkor-responsive.css============== */
/* ========== レスポンシブ ========== */
@media screen and (max-width: 768px) {
  .angkor-ruins-wrapper,
  .angkor-ruins-content {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }
  .angkor-ruins-content {
    grid-template-columns: 1fr;
  }
  table-compact {
    width: 100%;
  }
  .angkor-ruins-gallery {
    margin: 10px auto;
    width: 184px;
    height: 196px;
    font-size: 0.8em;
    border: 3px solid #a67c52;
    background: #f2e6c9;
  }
  .angkor-ruins-gallery img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border: 1px solid #8b5c2c;
    margin-top: 8px;
  }
  .angkor-ruins-gallery p {
    font-size: 0.65em;
    text-align: center;
    line-height: 1.25;
    margin: 4px 0 0;
  }
  .menu-toggle {
    display: block;
    font-size: 2rem;
    color: #3e2f1c;
    background-color: #f2e6c9;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    text-align: right;
    margin-bottom: 5px;
  }
  .angkor-ruins-menubar {
    display: none;
    background-color: #a67c52;
    padding: 0;
    height: auto;
  }
  .angkor-ruins-menubar.show {
    display: block;
  }
  .angkor-ruins-menubar ul {
    display: block;
    margin: 0;
    padding: 0;
  }
  .angkor-ruins-menubar li {
    width: 100%;
  }
  .angkor-ruins-menubar a {
    display: block;
    width: 100%;
    padding: 12px 10px;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #8b5e34;
  }
  .angkor-ruins-menubar li:first-child a {
    border-left: none;
  }
  .angkor-ruins-menubar a {
    border-right: none;
  }
  .angkor-ruins-menubar a:hover {
    background-color: #8b5e34;
  }
  .angkor-ruins-wrapper,
  .angkor-ruins-header {
    width: 100%;
    max-width: 800px;
  }
  .angkor-ruins-header-title {
    font-size: 1.5rem;
    top: 15px;
    left: 8px;
  }
  .angkor-ruins-entry-top-text {
    min-width: 0;
    width: 100%;
  }
}
@media screen and (max-width: 600px) {
  .angkor-ruins-entry-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .angkor-ruins-entry-top-image img {
    width: 100%;
    height: auto;
  }
}
@media screen and (max-width: 480px) {
  .angkor-ruins-gallery-container {
    justify-content: flex-start;
  }
  .angkor-ruins-gallery p {
    font-size: 0.85em;
  }
}


/* 印刷用 */
@media print {
  .angkor-ruins-table-compact {
    box-shadow: none;
    border: 1px solid #333;
  }
}

/* ===== 5. angkor-lightbox.css ===== */
/* ===== Luminous Lightbox2風 ===== */
.lum-lightbox {
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
}
.lum-image-angkor-ruins-wrapper img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
}
.lum-lightbox .lum-prev,
.lum-lightbox .lum-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  user-select: none;
  padding: 10px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.lum-lightbox .lum-prev:hover,
.lum-lightbox .lum-next:hover {
  opacity: 1;
}
.lum-lightbox .lum-prev {
  left: 20px;
}
.lum-lightbox .lum-next {
  right: 20px;
}
.lum-lightbox .lum-caption {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  color: #fff;
  font-size: 1rem;
  text-align: center;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

body.lb-scroll-lock {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* PCのみmenu-toggle非表示 */
@media screen and (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}
