/*
Theme Name: GEM_Theme_1019
Description: Converted from HTML to WordPress
Author: ChatGPT
Version: 1.0
*/
@import url('css/main.css');
@import url('css/tailwind.css');



/* ====== Manual Slider (content-width 100%) ====== */
.gem-manual-slider .swiper {
  width: 100%; /* 親コンテンツ幅いっぱい（テーマのコンテンツ幅に追従） */
}
.gem-manual-slider .swiper-slide {
  height: auto;
}

/* ====== Media box (16:9・サムネ100%) ====== */
.gem-manual-slider .gem-slide-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 14px;
  background: #f2f4f7;
}
.gem-manual-slider .gem-slide-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gem-manual-slider .gem-thumb-placeholder {
  background: linear-gradient(180deg,#eaecef,#dfe3e8);
  width: 100%;
  height: 100%;
}

/* ====== Category pill (左上) ====== */
.gem-manual-slider .gem-slide-cat {
  position: absolute;
  left: 10px;
  top: 10px;
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: #fff;
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* ====== Title overlay box（左下固定・黒70%） ====== */
.gem-manual-slider .gem-title-box {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.7); /* 70% Black */
  padding: 18px 24px;             /* 余白はお好みで調整 */
  z-index: 1;
}
.gem-manual-slider .gem-slide-title {
  margin: 0;
  /* 少し大きめ */
  font-size: clamp(20px, 3.24vw, 26px);
  line-height: 1.35;
  font-weight: 800;
  color: #fff;                     /* 背景黒に対して白文字 */
}

.gem-manual-slider .gem-slide-title a,
.gem-manual-slider .gem-slide-title a:hover {
  text-decoration: none!important;
  -webkit-transition: all .3s ease-out;
  -moz-transition: all .3s ease-out;
  -ms-transition: all .3s ease-out;
  transition: all .3s ease-out;
}
.gem-manual-slider .gem-slide-title a:hover {
  opacity: 0.8;
  text-decoration: none!important;
  border:none;
}

/* ====== Link block ====== */
.gem-manual-slider .gem-slide {
  text-decoration: none;
  display: block;
}
.gem-manual-slider .gem-slide:hover .gem-slide-title {
}

/* ====== Swiper UI ====== */
.gem-manual-slider .swiper-button-prev,
.gem-manual-slider .swiper-button-next {
  color: #111827;
}
.gem-manual-slider .swiper-pagination-bullet { opacity: .4; }
.gem-manual-slider .swiper-pagination-bullet-active { opacity: 1; }

/* 微調整（多段表示時の間隔） */
@media (min-width: 768px) {
  .gem-manual-slider .swiper { padding-bottom: 8px; }

}

@media (max-width: 767px) {
  .gem-manual-slider .gem-slide-title {
    font-size: clamp(16px, 2.25vw, 20px);
    line-height: 1.35;                /* 背景黒に対して白文字 */
  }

  .gem-manual-slider .gem-slide-media {
    border-radius: 0px;
  }
}


.cat-tabs {
  --tab-fg: var(--gem-tab-fg, #1a202c);
  --tab-bg: var(--gem-tab-bg, #f1f5f9);
  --tab-active-fg: var(--gem-tab-active-fg, #fff);
  --tab-active-bg: var(--gem-tab-active-bg, #111827);
  --tab-border: var(--gem-tab-border, #e5e7eb);
  --link-fg: var(--gem-link-fg, #111827);
  --link-hover: var(--gem-link-hover, #0ea5e9);
  --muted: var(--gem-muted, #6b7280);
  --line: var(--gem-line, #e5e7eb);

  margin: clamp(16px, 3vw, 28px) auto;
  padding: 0 clamp(12px, 2.5vw, 20px);
  max-width: 1100px;
}

.screen-reader-text {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Tabs */
.cat-tabs__tablist {
  display: flex; gap: 8px;
  flex-wrap: nowrap; overflow-x: auto;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.cat-tabs__tab {
  appearance: none;
  border: 1px solid var(--tab-border);
  background: var(--tab-bg); color: var(--tab-fg);
  border-radius: 9999px;
  padding: 8px 14px;
  font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  white-space: nowrap; cursor: pointer;
}
.cat-tabs__tab.is-active,
.cat-tabs__tab:focus-visible {
  outline: none;
  background: var(--tab-active-bg);
  color: var(--tab-active-fg);
  border-color: var(--tab-active-bg);
}

/* Panels */
.cat-tabs__panels { padding-top: 14px; }
.cat-tabs__panel[hidden] { display: none; }

/* Title list */
.post-titles {
  list-style: decimal;
  margin: 0;
  padding-left: 1.25em;
  display: grid; gap: 8px;
}
.post-titles__item {
  display: flex; gap: 8px; align-items: baseline;
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}
.post-titles__link {
  flex: 1;
  text-decoration: none;
  color: var(--link-fg);
  font-weight: 600;
}
.post-titles__link:hover,
.post-titles__link:focus-visible {
  text-decoration: underline;
  color: var(--link-hover);
  outline: none;
}
.post-titles__date {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.post-titles__more { margin-top: 10px; text-align: right; }
.post-titles__more-link {
  font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor;
}

.titles-fallback__heading {
  font: 700 18px/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  margin: 8px 0 12px;
}

/* Dark scheme */
@media (prefers-color-scheme: dark) {
  .cat-tabs {
    --tab-fg:#e5e7eb; --tab-bg:#111827; --tab-border:#1f2937;
    --tab-active-fg:#111827; --tab-active-bg:#e5e7eb;
    --link-fg:#e5e7eb; --link-hover:#38bdf8; --muted:#9ca3af; --line:#1f2937;
  }
}
