/* =========================
   基本配色とタイポ
========================= */
:root{
  --base-bg: #ffffff;
  --base-border: #e8f1fb; /* やわらかい青みの境界 */
  --panel-bg: #f9fbfe;    /* ごく薄い青白 */
  --accent: #5c9df2;      /* 明るめだが目に優しい青 */
  --text-main: #222222;
  --text-sub: #555555;
  --radius: 6px;
  --line-thin: 1px;
  --line-med: 2px;
  --container-pad: 16px;
  --content-width: 720px; /* タブレット以上での最大幅 */
  --tap: 48px;            /* タップしやすい高さ目安 */
}

html,body{
  background: var(--base-bg);
  color: var(--text-main);
  margin:0;
  padding:0;
  -webkit-text-size-adjust:100%;
}
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
  letter-spacing: .02em;
}

.wrap {
    width: 1200px;
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}
.post-thumbnail{
        float: none;
    margin: 0 auto 20px;
    text-align: center;
}
/* =========================
   レイアウト
========================= */
/* go-wrap をスマホ専用化 */
.go-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.main-inner{margin:0;}
.left-content .main-inner{margin: 0;}
/* PCではXeoryのレイアウトをそのまま使う */
@media screen and (min-width: 992px) {

  /* go-wrap の制限を無効化する（PCは横幅広く） */
  .go-wrap {
    max-width: none !important;
    padding: 0 20px !important;
  }

  /* PCレイアウトをXeoryのまま維持 */
  #main {
    width: 68% !important;
    float: left !important;
    padding-right: 20px;
  }
}
 /* Xeory のレガシー side CSS を無効化 */
#side .side-widget-area,
#side .side-widget,
#side ul,
#side li,
#side .side-title {
  all: unset;
  display: block;
}

/* サイドバー全体のレイアウト維持（PCは浮動幅） */
.left-content #side,#side {
        width: 32% !important;
        box-sizing: border-box;
        float: left;
        margin: 0;
}

/* GameOmega 版サイドカード（go_styleでの新方式） */
/* カード全体の余白・角丸統一 */
.go-side-block {
  background: #fff;
  border: 1px solid #e7eef8;
  border-radius: 8px;
  padding: 16px 16px 20px;
  margin-bottom: 28px;
}

/* タイトルを今っぽい濃フラットに */
.go-side-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-left: 8px;
  border-left: 4px solid #4b96f3;
  color: #1a1a1a;
}

/* 一覧全体のリセット */
#side .go-popular-list {
  display: grid;
  gap: 18px;
}

.go-popular-item {
  list-style: none;
}


.go-popular-card {
  list-style: none;
  margin-bottom: 16px;
}

.go-popular-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ✅ サムネ：横長・今風 */
.go-popular-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 6px;
}

.go-popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ✅ ランクバッジ */
.go-popular-rank {
  position: absolute;
  z-index: 10;
  top: 6px;
  left: 6px;
  padding: 4px 10px;
  background: #4b96f3;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 4px;
}

/* ✅ タイトルの余白を整える */
.go-popular-title {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.go-popular-card a:hover .go-popular-title {
  color: #4b96f3;
}

/* 余白統一 */
.go-popular-meta {
  padding-right: 4px;
}
/* 新着記事も色味合わせ */
.go-latest-list a {
  color: #1a1a1a;
}
.go-latest-list a:hover {
  color: #4b96f3;
}

/* 全体の文字色統一 */
#side a {
  text-decoration: none;
}
    /* カード一覧を2列にする */
  .post-loop-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 28px; /* カード同士の統一された間隔 */
    align-items: flex-start;
  }

  /* カードは半分の横幅 */
  .post-loop-wrap .go-card {
    flex: 0 0 calc(50% - 14px);
    box-sizing: border-box;
    margin: 0;
  }

  /* サムネ比率を“16:9固定”にする（最も視認性が良い） */
  .post-loop-wrap .go-card__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    display: block;
  }

  .post-loop-wrap .go-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* タイトル行の読みやすさ調整 */
  .post-loop-wrap .go-card__title {
    font-size: 18px;
    line-height: 1.45;
    margin-bottom: 6px;
    font-weight: 600;
    min-height: calc(1.45em * 2); /* 2行ぶんの高さを確保 → 揺れ防止 */
    overflow: hidden;
  }

  /* タイトル内リンク */
  .post-loop-wrap .go-card__title a {
    color: #1a1a1a;
    text-decoration: none;
  }

  .post-loop-wrap .go-card__title a:hover {
    color: #4b96f3;
  }

  /* 日付の配置とバランス */
  .post-loop-wrap .go-card__date {
    font-size: 13px;
    color: #7083a0;
    margin-top: 6px;
    display: block;
    text-align: right;
  }

  /* カードの内側余白調整 */
  .post-loop-wrap .go-card__body {
    padding: 14px 16px 18px;
  }



@media screen and (max-width: 991px) {

  /* go-wrap の幅調整 */
  .go-wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
  }

  /* 記事一覧は1カラムにする */
  .post-loop-wrap {
    display: grid;
    grid-template-columns: 1fr; /* 1列 */
    gap: 22px;
  }

  /* 各カードの調整 */
  .post-loop-wrap .go-card {
    width: 100%;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
  }

  /* サムネを横長維持（16:9） */
  .post-loop-wrap .go-card__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    display: block;
  }

  .post-loop-wrap .go-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* タイトル周辺 */
  .post-loop-wrap .go-card__title {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    margin-bottom: 6px;
  }

  /* 日付 */
  .post-loop-wrap .go-card__date {
    font-size: 12px;
    color: #7083a0;
    text-align: right;
    margin-top: 4px;
  }

  /* 内側余白 */
  .post-loop-wrap .go-card__body {
    padding: 12px 14px 14px;
  }

  /* サイドバーは下に来てフル幅 */
  #side {
    width: 100% !important;
    float: none !important;
    margin-top: 24px;
  }

  /* サイドカードも整える */
  .go-side-block {
    padding: 14px 14px 18px;
    border-radius: 10px;
  }
}

/* スマホでは1カラム（サイド下） */
@media screen and (max-width: 991px) {
  #main, #side {
    width: 100% !important;
    float: none !important;
  }
  .wrap{width: 100%;}
}

#side img{ max-width: 100%;}

/* ===============================
   サイドバー 新着記事（カード型）
   =============================== */
#side .go-side-latest-list {
  display: grid;
  gap: 16px;
}

.go-side-latest-item a {
  display: block;
  text-decoration: none;
  color: #333;
}

.go-side-latest-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.go-side-latest-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.go-side-latest-date-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 4px;
  line-height: 1;
  backdrop-filter: blur(2px);
}

.go-side-latest-title {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
/* =========================
   ヘッダー
========================= */
.go-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--base-bg);
  border-bottom: var(--line-thin) solid var(--base-border);
}
.go-header__inner{
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.go-logo{
  font-weight: 700;
  font-size: 18px;
  color: var(--text-main);
}
.go-navbtn{
  position: absolute;
  left: 0;
  height: 40px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: var(--line-thin) solid var(--base-border);
  background: var(--base-bg);
}

/* サイドバー共通 */
#side .side-widget-area {
  background: #ffffff;
  border: 1px solid #e7eef8;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
}

#side .side-widget-area h3 {
  font-size: 15px;
  margin-bottom: 10px;
  border-left: 4px solid #4b96f3;
  padding-left: 8px;
  color: #222;
}

#side .side-widget-area ul li {
  margin-bottom: 8px;
}

#side .side-widget-area a {
  text-decoration: none;
  color: #1a1a1a;
}

#side .side-widget-area a:hover {
  color: #4b96f3;
}

/* =========================
   セクション共通
========================= */
.go-section{
  margin: 16px 0;
}

.go-card {
  background: #fff;
  border: 1px solid #e7eef8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: background 0.2s ease;
}

.go-card:hover {
  background: #f9fbff;
}

.go-card__thumb img {
  width: 100%;
  display: block;
  height: auto;
  border-bottom: 1px solid #e7eef8;
}

.go-card__body {
  padding: 14px 16px 16px;
}

.go-card__title {
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 6px;
  font-weight: 600;
}

.go-card__title a {
  text-decoration: none;
  color: #1a1a1a;
}

.go-card__title a:hover {
  color: #4b96f3;
}

.go-card__date {
  font-size: 12px;
  color: #7083a0;
  display: block;
  text-align: right;
}

/* =========================
   上部広告
========================= */
.go-ad{
  padding: 8px;
}
.go-ad__label{
  font-size: 12px;
  color: var(--text-sub);
  margin: 6px 8px 0;
}
.go-ad__box{
  height: 120px; /* 実際は広告タグの高さに合わせて調整 */
  border-radius: calc(var(--radius) - 2px);
  background: var(--panel-bg);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--text-sub);
}

/* =========================
   タイトルとリード
========================= */
.go-title{
  font-size: 22px;
  font-weight: 700;
  margin: 18px 0 10px;
}
.go-title__underline{
  width: 56px;
  height: var(--line-med);
  background: var(--accent);
  border-radius: 2px;
}
.go-lead{
  margin: 14px 0 6px;
  color: var(--text-sub);
}

/* =========================
   本文（引用ブロック等）
========================= */
.go-article{
  margin-top: 10px;
}
.go-article p{
  margin: 14px 0;
}
.go-quote{
  border: var(--line-thin) solid var(--base-border);
  background: var(--panel-bg);
  border-radius: var(--radius);
  padding: 12px;
  color: #2a2a2a;
}
.go-quote .go-quote__meta{
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

/* =========================
   本文中広告
========================= */
.go-inline-ad{
  margin: 16px 0;
  padding: 8px;
}

/* =========================
   コメント
========================= */
.go-comments{
  margin-top: 24px;
}
.go-comments__form{
  padding: 12px;
}
.go-input, .go-textarea{
  width: 100%;
  border: var(--line-thin) solid var(--base-border);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  font-size: 16px;
}
.go-textarea{ min-height: 120px; }
.go-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--tap);
  padding: 0 16px;
  border-radius: var(--radius);
  border: var(--line-thin) solid var(--accent);
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.go-btn:active{ filter: saturate(1.2); }

.go-comments__list{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.go-comment{
  padding: 12px;
}
.go-comment__meta{
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

/* =========================
   関連記事（横スクロール）
========================= */
.go-related{
  padding: 12px 0 4px;
}
.go-related__title{
  font-weight: 700;
  margin: 4px 0 10px;
}
.go-related__rail{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.go-related__card{
  scroll-snap-align: start;
  padding: 10px;
}
.go-related__thumb{
  aspect-ratio: 16/9;
  border-radius: calc(var(--radius) - 2px);
  background: var(--panel-bg);
  border: var(--line-thin) solid var(--base-border);
  margin-bottom: 8px;
}
.go-related__titletext{
  font-size: 14px;
  line-height: 1.5;
}

/* =========================
   下部広告
========================= */
.go-bottom-ad{ padding: 8px; }

/* =========================
   フッター
========================= */
.go-footer{
  margin: 20px 0 28px;
  color: var(--text-sub);
  font-size: 12px;
  text-align: center;
}

/* =========================
   リンク/アクセシビリティ
========================= */
a{ color: var(--accent); text-decoration: none; }
a:focus-visible, .go-btn:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.site-alert {
  background: #fff3cd;       /* 落ち着いた薄黄色 */
  border-left: 5px solid #ffca2c;
  padding: 15px;
  margin: 0 0 20px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #664d03;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}



.fa-home:before {
    content: "";
    position: absolute;
    -webkit-mask: url(./lib/images/icon/home.svg) no-repeat;
    mask: url(./lib/images/icon/home.svg) no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: #383838;
    width: 13px;
    height: 13px;
    top: -11px;
    left: -16px;
}

.fa-folder:before {
    content: "";
    position: absolute;
    -webkit-mask: url(./lib/images/icon/folder.svg) no-repeat;
    mask: url(./lib/images/icon/folder.svg) no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: #383838;
    width: 12px;
    height: 12px;
    top: -11px;
    left: -16px;
}

.fa-file-text:before {
    content: "";
    position: absolute;
    -webkit-mask: url(./lib/images/icon/file-text.svg) no-repeat;
    mask: url(./lib/images/icon/file-text.svg) no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-color: #383838;
    width: 12px;
    height: 12px;
    top: -11px;
    left: -16px;
}

.breadcrumb {
    margin: 0 0 15px;
    overflow: hidden;
    font-size: 12px;
    line-height: 22px;
    padding: 0;
    width: 100%;
}

article.post .post-thumbnail img{ width: 100%;}