/* =========================================================
   aidame-style.css（整理版：ヘッダー/白箱/ハンバーガー安定）
   適用：LP(496) + aidame_info（single/archive）
   ========================================================= */

/* -----------------------------
   1) SWELL標準のヘッダー/フッター等を非表示
----------------------------- */
#header,
.l-header,
#footer,
.l-footer,
#breadcrumb,
.c-breadcrumb {
  display: none !important;
}

/* SWELL標準のタイトル・日付（重複防止） */
.c-postTitle,
.c-post_title,
.p-articleMeta,
.p-articleMeta__date {
  display: none !important;
}

/* -----------------------------
   2) レイアウト初期化（白箱が狭く/左寄りになりにくくする）
----------------------------- */
.l-container,
.l-main,
.l-content,
.c-post_content {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.l-main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 画像がはみ出さない */
.aidame-body img,
.aidame-white-box img {
  max-width: 100%;
  height: auto;
}

/* -----------------------------
   3) ページ全体の背景（元CSSの背景画像を維持）
----------------------------- */
body {
  background-image: url("http://www.mikimaki.site/wp-content/uploads/2025/07/51914157_p29.png") !important;
  background-repeat: repeat !important;
  background-size: auto !important;
  background-color: #f0f0f0 !important;
}

/* -----------------------------
   4) LP用ヘッダー（PC表示）
----------------------------- */
.lp-header-wrap {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9990;
}

.lp-header {
  width: 100%;
  background: rgba(14, 24, 61, 0.95);
  backdrop-filter: blur(6px);
}

.lp-nav {
  width: 100%;
  box-sizing: border-box;
}

.lp-nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 14px 20px;
}

.lp-nav-list li a {
  position: relative;
  display: inline-block;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 4px;
}

.lp-nav-list li a:hover {
  color: #1fe1bc;
}

/* 下線エフェクト */
.lp-nav-list li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #1fe1bc;
  transition: width 0.3s ease, left 0.3s ease;
}

.lp-nav-list li a:hover::after {
  width: 100%;
  left: 0;
}

/* -----------------------------
   5) ハンバーガー（SP表示）
   ※旧(.hamburger-menu / .mobile-menu)と新(.aidame-*)両対応
----------------------------- */

/* PCでは非表示（スマホだけ使う） */
.hamburger-menu,
.aidame-hamburger-menu {
  display: none;
}

/* スマホ：ヘッダー非表示（必須①）＋ハンバーガー表示 */
@media (max-width: 768px) {
  .lp-header-wrap,
  .lp-header {
    display: none !important;
  }

  .hamburger-menu,
  .aidame-hamburger-menu {
    display: block;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
  }

  .hamburger-icon,
  .aidame-hamburger-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s ease;
  }

  .hamburger-icon:hover,
  .aidame-hamburger-icon:hover {
    opacity: 0.85;
  }
}

/* メニュー本体（オーバーレイ） */
.mobile-menu,
.aidame-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9998;
}

/* 旧JS（.active）でも新JS（.is-open）でも開く（必須③） */
.mobile-menu.active,
.aidame-mobile-menu.is-open {
  display: block;
}

.mobile-menu-inner,
.aidame-mobile-menu-inner {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  text-align: center;
}

.close-button,
.aidame-close-button {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

.mobile-menu-list,
.aidame-mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 70px 0 30px;
}

.mobile-menu-list li,
.aidame-mobile-menu-list li {
  margin: 18px 0;
}

.mobile-menu-list a,
.aidame-mobile-menu-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}

/* メニューOPEN中のスクロール抑制（新JS側のクラス） */
html.aidame-menu-open {
  overflow: hidden;
}

/* -----------------------------
   6) 白い箱（必須①：SPで広げてセンター）
----------------------------- */
.aidame-white-box {
  box-sizing: border-box;
  background-color: #ffffff;
  max-width: 1000px;
  width: min(1000px, calc(100% - 32px));
  margin: 24px auto;
  padding: 60px 40px;
  border-radius: 20px;
  text-align: left;
  clear: both;
  border: 2px solid #000080;
}

@media (max-width: 768px) {
  .aidame-white-box {
    width: calc(100% - 24px);
    margin: 12px auto;
    padding: 28px 16px;
    border-radius: 16px;
  }
}

/* 日付・タイトル・本文 */
.aidame-date {
  text-align: right;
  color: #555555;
  font-size: 14px;
  margin: 0 0 10px;
  font-family: inherit;
}

.aidame-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: #555555;
  margin: 0 0 24px;
  line-height: 1.4;
}

.aidame-body {
  font-size: 16px;
  line-height: 1.85;
  color: #555555;
}

/* -----------------------------
   7) 記事ナビ（次/一覧/前）
----------------------------- */
.aidame-custom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e5e5e5;
}

.aidame-custom-nav a,
.aidame-custom-nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

/* 左右 */
.aidame-custom-nav .nav-next,
.aidame-custom-nav .nav-prev {
  color: #015aff;
  background: #ffffff;
  border: 2px solid #015aff;
  flex: 1;
}

/* 中央：一覧 */
.aidame-custom-nav .nav-archive {
  color: #ffffff;
  background: #015aff;
  border: 2px solid #015aff;
  flex: 0 0 auto;
  min-width: 120px;
}

.aidame-custom-nav a:hover {
  opacity: 0.9;
}

/* 空要素：幅キープ用（display:noneにしない） */
.aidame-custom-nav .nav-empty {
  visibility: hidden;
  flex: 1;
  border: 2px solid transparent;
  padding: 10px 14px;
}

/* スマホ：縦積み＋一覧を上へ */
@media (max-width: 768px) {
  .aidame-custom-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .aidame-custom-nav .nav-archive {
    order: 1;
  }
  .aidame-custom-nav .nav-next {
    order: 2;
  }
  .aidame-custom-nav .nav-prev {
    order: 3;
  }

  .aidame-custom-nav a,
  .aidame-custom-nav span {
    width: 100%;
  }

  .aidame-custom-nav .nav-empty {
    display: none;
  }
}

/* -----------------------------
   8) 一覧（archive-aidame_info.php）
----------------------------- */
.aidame-news-list {
  margin-top: 28px;
  padding: 0;
}

.aidame-news-item {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid #e5e5e5;
}

.aidame-news-item a {
  display: block;
  text-decoration: none;
}

.news-date {
  display: block;
  font-size: 13px;
  color: #777777;
  margin-bottom: 6px;
}

.news-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #015aff;
  line-height: 1.4;
}

.aidame-news-item a:hover .news-title {
  opacity: 0.9;
}

/* ページネーション */
.aidame-pagination {
  margin-top: 40px;
  text-align: center;
}

.aidame-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  margin: 0 4px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #015aff;
  color: #015aff;
  background: #ffffff;
}

.aidame-pagination .page-numbers.current {
  background: #015aff;
  color: #ffffff;
}

/* -----------------------------
   9) カスタムボックス/ボタン/テーブル（元CSSの要素を維持）
----------------------------- */
.custom-box {
  background-color: #ffffff;
  border: 0;
  padding: 20px;
  border-radius: 20px;
}

.round-button {
  display: inline-block;
  padding: 0.9em 2em;
  border-radius: 50px;
  background: #1fe1bc;
  color: #0e183d;
  text-decoration: none;
  font-weight: 800;
}

.round-button:hover {
  opacity: 0.9;
}

.button-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  margin: 0 auto;
  padding: 0.9em 2em;
  border: none;
  border-radius: 50px;
  background-color: #015aff;
  color: #ffffff;
  font-weight: 700;
  font-size: 1em;
  text-decoration: none;
}

.button-2:hover {
  background-color: #1fe1bc;
  color: #ffffff;
}

/* プロフィールテーブル */
.proftable {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 20px !important;
  border: none;
}

.proftable th.proftable__label {
  width: 40%;
  background-color: #59597d !important;
  color: #ffffff !important;
  font-weight: 800;
  text-align: center;
  padding: 8px;
  vertical-align: middle;
  border: none !important;
  border-radius: 30px;
}

.proftable td.proftable__value {
  background-color: #ffffff;
  color: #000000;
  padding: 14px 16px;
  vertical-align: middle;
  border: none !important;
  border-radius: 20px;
}

/* ========================================================= */

/* ===== ハンバーガーがメニューより前に出ないようにする ===== */
.hamburger-menu,
.aidame-hamburger-menu{
  z-index: 9997 !important; /* メニューより下に */
}

.mobile-menu,
.aidame-mobile-menu{
  z-index: 9998 !important; /* オーバーレイを上に */
}

.close-button,
.aidame-close-button{
  z-index: 9999 !important; /* ×を最前面に */
}

/*2025/12/28追加
/* newsアーカイブ：本文ブロックの段落間を広げる */
.post-type-archive-news .my-news-entry .entry-content p {
  margin: 0 0 1em;
}

/* 連続する段落の間隔（ブロック由来の詰まり対策） */
.post-type-archive-news .my-news-entry .entry-content p + p {
  margin-top: 1em;
}

/* 見出しやリストも詰まりやすいので軽く余白 */
.post-type-archive-news .my-news-entry .entry-content h1,
.post-type-archive-news .my-news-entry .entry-content h2,
.post-type-archive-news .my-news-entry .entry-content h3,
.post-type-archive-news .my-news-entry .entry-content ul,
.post-type-archive-news .my-news-entry .entry-content ol {
  margin: 1em 0;
}
