@charset "UTF-8";

/* ===============================
   オリジナルポータル用レイアウト上書き
   （Baser標準の余白を無効化）
================================ */

/* 全体の幅制限を解除して横いっぱいに */
#Contents,
.contents,
main#Contents {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
/*  padding: 20px 10px 10px 20px;*/
}

/* セクションやmain内の不要なパディング削除 */
section.contents,
main.contents {
  padding: 10px 10px 10px 10px;
  margin: 0 auto !important;
}


/* ===============================
   ポータル用スタイル
================================ */

html, body {
  margin: 0 !important;
  padding: 0 !important;
}

/* 全体リセット・ベース */
body {
  font-family: 'Noto Serif JP', serif;
  background: #f7f5f2;
  color: #202020;
/*  font-weight: bold;*/
}

/* <strong>要素を Bold (700) で強制的に表示させる */
strong {
    /* Boldに相当する数値「700」を指定する */
    font-weight: 700; 
}

/* ===============================
   ブログコンテンツ個別記事　single.php
================================ */
/* タイトル・見出しだけ明朝で美しく */
h1, h2, h3, h4, h5, h6,
.bs-blog-title,
.bs-blog-post__item-title {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS Mincho', serif;
  font-weight: 700; /* 明朝でも見出しっぽく */
}
/* 記事本文部分を明確にゴシックに固定 */
.page-content {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  padding-left: 20px;
}
.page-content h2{
  background: #9258ae;
}


/* ===============================
   ヘッダ
================================ */
.site-header {
  text-align: center;
  background: url('../img/com/portal.webp') no-repeat center/cover; /* portal.webpを背景に */
  padding: 10px 10px 10px 10px;
  position: relative;
}

.site-header .site-title a {
  display: block;
  font-size: 3rem;
  color: #202020;
  text-shadow: 4px 4px 8px rgba(255,255,255,1);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-style: italic;
}

.site-header .catch-copy {
  font-size: 1.5rem;
  color: #dedede;
  margin-top: 5px;
}

.global-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 4px 4px 8px rgba(255,255,255,1);
}

.global-nav a {
  text-decoration: none;
  color: #202020;
  font-weight: 500;
  padding: 5px 10px;
  transition: color 0.3s;
}

.global-nav a:hover {
  color: #007acc;
}

/* ドロップダウン */
.global-nav .dropdown {
  position: relative;
}

/* サブメニュー */
.global-nav .dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  opacity: 0;               /* 初期は透明 */
  transform: translateY(-10px); /* 少し上にずらす */
  pointer-events: none;     /* ホバーしてないときはクリック不可 */
  transition: opacity 0.3s ease, transform 0.3s ease; /* アニメーション */
}

/* リンク */
.global-nav .dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: #202020;
  text-decoration: none;
  white-space: nowrap;  /* ←リストを折り返さない */
}

.global-nav .dropdown-content a:hover {
  color: #ff6600;
}

/* ホバー時に表示 */
.global-nav .dropdown:hover .dropdown-content {
  opacity: 1;
  transform: translateY(0); /* 元の位置に */
  pointer-events: auto;     /* クリック可能に */
}

/* Heroはヘッダー背景で処理済み */
.hero {
  height: 30px; /* 必要に応じて調整 */
}

/* コンテンツエリア */
.contents {
  padding: 20px;
/*  max-width: 1200px;*/
/*  margin: 0 auto;*/
}


/* ===============================
   画像リンク領域
================================ */

.portal-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
/*  align-items: flex-start;*/
  gap: 20px;
  width: 100%;
/*  max-width: none;*/
  padding: 0; /* ほんの少し余白を残すなら2%、完全に消すなら0 */
}

.portal-links {
  flex: 1 1 60%; /*「親の幅 × 65%」＋「gap」＋「.portal-affiliate（30%）」が合計 100%を超えてしまう と下に落ちる。*/
}

/* 画像リンクグリッド */
.link-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 0 20px; /* ほんの少し余白を残すなら2%、完全に消すなら0 */
}

.link-grid a {
  display: block;
  width: 400px;
  height: 255px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  color: #000;
  text-decoration: none;
  flex: 0 1 calc(50% - 20px);
}

.link-grid a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.link-grid img.bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.link-grid a:hover img.bg {
  transform: scale(1.05);
}

.link-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  color: #202020;
  text-shadow: 4px 4px 8px rgba(255,255,255,1);
  width: 90%;
  line-height: 1.4;
}

.shop-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  pointer-events: none;
}


/* レスポンシブ対応 */
@media (max-width: 850px) {
  .site-header .site-title a {
    font-size: 2.6rem;
  }
  .site-header .catch-copy {
    font-size: 1.4rem;
  }
  .portal-flex {
    flex-direction: column;
    padding-left: 0;
  }
  .link-grid a {
/* link-grid の中央寄せを解除して左寄せ */
    justify-content: flex-start;
    flex: 0 1 80%;
    height: auto;
  }
  .link-grid img.bg {
    height: auto;
    width: 100%;
  }
  .shop-logo {
    width: 80px;
  }
  .link-text {
    font-size: 1.6em;
  }
  .global-nav {
    flex-direction: column;
    gap: 10px;
  }

  /* ここを削除・上書きして重ねる */
  .global-nav .dropdown-content {
    position: absolute;  /* ←staticを絶対配置に戻す */
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .global-nav .dropdown:hover .dropdown-content,
  .global-nav .dropdown:focus-within .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ===============================
   アフィリエイト領域
================================ */
.portal-affiliate {
  flex: 0 0 30%; /*flex-grow: 0 (拡大しない)flex-shrink: 0 (縮小しない)flex-basis: 30% (基準となる幅は親要素の30%)*/
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0px 0px 10px 10px;
}

.portal-affiliate img {
  width: 100%;
  max-width: 300px;
  min-width: 300px;
  height: auto;
/*  border-radius: 8px; 角を丸くする*/
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.portal-affiliate img:hover {
  transform: scale(1.03);
}

@media (max-width: 850px) {
  .portal-affiliate {
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
  }
  .portal-affiliate img {
    min-width: 300px;
  }
}

  /* A8.netの変なスペースできる対策 */
a[href*="a8.net"] + img[src*="0.gif"] {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
}


/* ===============================
   フッタ
================================ */
.site-footer {
  text-align: center;
  padding: 15px 20px;
  background: #fff;
  font-size: 0.9em;
  color: #555;
}

.site-footer .footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.site-footer .footer-nav a {
  text-decoration: none;
  color: #555;
}

.site-footer .footer-nav a:hover {
  text-decoration: underline;
}

/* 最近の投稿カスタム */
.recent-posts-custom{
  display: flex;
  flex-wrap: wrap;      /* 複数行に折り返す */
  gap: 8px;             /* 画像間の隙間 */
}

.recent-posts-custom a {
  width: 50%;           /* 2列に */
  list-style: none;
}

.recent-posts-custom img {
  width: 80px;          /* 画像幅 */
  height: auto;
  display: block;
}
