/* ==========================================================================
   Acca Kappa / WordPress news 向け調整
   ak-common.css（destyle含む）読込後に、本文エリアの最低限の体裁を戻す。
   ヘッダー・フッター以外のニュース本文が崩れる場合の保険。
   ========================================================================== */

/* ヘッダー／ドロワー／検索／フッター以外は WP 側のレイアウトを優先しやすくする */
body {
  /* ak-common が html/body を上書きしても、WPテーマの背景を残す */
  background-color: #fff;
}

/* メインコンテンツの基本タイポを復元（ニュース一覧・詳細） */
.ak-wp-content,
#main,
#content,
.site-content,
.page-home .container {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.ak-wp-content img,
#main img,
#content img {
  max-width: 100%;
  height: auto;
}

.ak-wp-content a,
#main a,
#content a {
  color: inherit;
  text-decoration: none;
}

.ak-wp-content h1,
.ak-wp-content h2,
#main h1,
#main h2 {
  font-weight: 600;
  line-height: 1.4;
}

/* sticky ヘッダー分の余白が必要な場合はテーマに合わせて調整 */
body.ak-has-ak-header {
  /* .ak-header 高さに合わせて必要なら変更 */
}

/* --------------------------------------------------------------------------
   WordPress 管理バー（ログイン時）
   ak-common の destyle / img{max-width:100%} / sticky header が潰すのを防ぐ
   -------------------------------------------------------------------------- */
#wpadminbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  z-index: 99999 !important;
  display: block !important;
  visibility: visible !important;
  direction: ltr;
  color: #ccc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: normal;
  word-break: normal;
}
#wpadminbar * {
  max-width: none !important;
  word-break: normal !important;
  box-sizing: content-box !important;
  letter-spacing: normal;
}
#wpadminbar a {
  color: #a7aaad !important;
  background: transparent !important;
  text-decoration: none !important;
}
#wpadminbar .ab-item::before,
#wpadminbar .ab-icon::before {
  /* dashicons を destyle の font 継承から守る */
  font-family: dashicons !important;
}
/* sticky サイトヘッダーを管理バーの下へ */
body.admin-bar .ak-site-header.is-sticky .ak-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .ak-site-header.is-sticky .ak-header {
    top: 46px;
  }
}

/* --------------------------------------------------------------------------
   フッター下部のリーガルリンクをトップと同じく右寄せに
   テーマ style.css の div::after / ul::after { content:""; clear:both } が
   flex の第3アイテムになり、space-between で中央寄りになるのを打ち消す
   -------------------------------------------------------------------------- */
body .ak-footer__bottom::after,
body .ak-footer__bottom::before,
body .ak-footer__legal::after,
body .ak-footer__legal::before {
  content: none !important;
  display: none !important;
  clear: none !important;
}
body .ak-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body .ak-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  gap: 0 16px;
}

/* --------------------------------------------------------------------------
   News 一覧タイトル・パンくず
   Futureshop /f/ourhistory の h2.page-title / nav.fs-c-breadcrumb に合わせる
   -------------------------------------------------------------------------- */

/* パンくず（WP: .breadcrumb.container → FS: nav.fs-c-breadcrumb） */
body .breadcrumb.container {
  width: 100%;
  max-width: var(--ak-page, 1600px);
  margin: 16px auto 0;
  padding: 0 var(--ak-gutter, 50px);
  color: var(--ak-text-mute, #333);
  font-family: var(--ak-font, "Urbanist", "Noto Sans JP", sans-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.4px;
  line-height: 1.8;
  box-sizing: border-box;
}
body .breadcrumb.container ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
body .breadcrumb.container li {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  word-break: break-all;
  padding: 0 !important;
  margin: 0;
}
/* WP テーマの li::after「>」を消し、FS と同じ「 > 」区切りに */
body .breadcrumb.container li::after {
  content: none !important;
}
body .breadcrumb.container li + li::before {
  content: " > ";
  color: #999;
}
body .breadcrumb.container a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 詳細の本文幅を一覧（.container ≈ 1170px）に揃える
   テーマの .postWrapper { display: inline-block } がコンテンツ幅に縮む原因 */
body .postWrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ページタイトル（一覧: h1.posts_list_title / 詳細: .postWrapper > h1 → FS: h2.page-title） */
body h1.posts_list_title,
body .postWrapper > h1 {
  margin: 40px 0 40px;
  padding: 0 !important;
  border: none !important;
  color: var(--ak-text, #000);
  font-family: var(--ak-font, "Urbanist", "Noto Sans JP", sans-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.8px;
  text-align: center;
}
@media (max-width: 749px) {
  body .breadcrumb.container {
    margin-top: 16px;
    padding: 0 16px;
  }
  body h1.posts_list_title,
  body .postWrapper > h1 {
    margin: 16px 0 24px;
    font-size: 28px;
    letter-spacing: 0.56px;
  }
}

/* WP テーマの古い SP メニュー（左上の二重ハンバーガー）を非表示 */
body .nav_sp,
body .menu-btn,
body #panel-btn-icon {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* WP 既存ヘッダー／フッターを隠す場合の例（セレクタはテーマに合わせて変更）
.old-header,
#header,
.site-header:not(.ak-site-header),
#footer,
.site-footer:not(.ak-footer) {
  display: none !important;
}
*/
