@charset "UTF-8";

/* ==================================================
  スロッターの道具箱 共通デザイン
================================================== */

:root {
  --slot-main: #1E3A5F;
  --slot-accent: #D6A84F;
  --slot-bg: #F7F8FA;
  --slot-text: #222222;
  --slot-border: #DDE3EA;
  --slot-notice-bg: #FFF7E6;
  --slot-notice-accent: #E0A12B;
  --slot-white: #FFFFFF;
  --slot-muted: #667085;
}

/* 全体 */
body {
  background: var(--slot-bg);
  color: var(--slot-text);
}

/* リンク */
a {
  color: var(--slot-main);
}

a:hover {
  color: var(--slot-accent);
}

/* ==================================================
  ヘッダー・グローバルナビ
================================================== */

/* ヘッダー背景 */
.header-container,
#header {
  background: var(--slot-white);
}

/* ロゴ周辺 */
.logo-header {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ヘッダーロゴ画像 */
.logo-image {
  max-height: 58px;
  width: auto;
}

/* グローバルナビ */
.navi,
#navi,
.navi-in {
  background: var(--slot-white);
}

.navi-in > ul > li > a {
  color: var(--slot-main);
  font-weight: 700;
}

.navi-in > ul > li > a:hover {
  color: var(--slot-accent);
  background: transparent;
}

/* ==================================================
  フッター
================================================== */

.footer,
.footer-container {
  background: var(--slot-main);
  color: var(--slot-white);
}

.footer a,
.footer-container a {
  color: var(--slot-white);
}

.footer a:hover,
.footer-container a:hover {
  color: var(--slot-accent);
}

/* フッターロゴを少し控えめに */
.footer .logo-image {
  max-height: 48px;
  width: auto;
}

/* ==================================================
  記事本文 共通
================================================== */

.article {
  color: var(--slot-text);
}

/* H2 */
.article h2 {
  border-left: 6px solid var(--slot-accent);
  border-bottom: 1px solid var(--slot-border);
  background: var(--slot-white);
  color: var(--slot-main);
  padding: 14px 16px;
  border-radius: 6px;
}

/* H3 */
.article h3 {
  border-left: 4px solid var(--slot-main);
  color: var(--slot-main);
  padding-left: 10px;
}

/* H4 */
.article h4 {
  color: var(--slot-main);
}

/* 表 */
.article table {
  width: 100%;
  border-collapse: collapse;
  background: var(--slot-white);
  border: 1px solid var(--slot-border);
}

.article th {
  background: var(--slot-main);
  color: var(--slot-white);
  border: 1px solid var(--slot-border);
  font-weight: 700;
}

.article td {
  border: 1px solid var(--slot-border);
  color: var(--slot-text);
}

.article th,
.article td {
  padding: 10px 12px;
}

/* 表の横スクロール対策 */
.wp-block-table,
.table-scroll {
  overflow-x: auto;
}

/* ==================================================
  機種記事テンプレ用ボックス
================================================== */

.slot-machine-article {
  color: var(--slot-text);
}

/* 冒頭の要点ボックス */
.machine-summary-box {
  background: var(--slot-white);
  border: 1px solid var(--slot-border);
  border-top: 5px solid var(--slot-main);
  border-radius: 12px;
  padding: 16px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
}

.machine-summary-box > p:first-child {
  margin-top: 0;
  color: var(--slot-main);
  font-size: 1.1em;
}

/* ポイントボックス */
.point-box {
  background: var(--slot-white);
  border: 1px solid var(--slot-border);
  border-left: 5px solid var(--slot-accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 20px 0;
}

/* 注意事項ボックス */
.notice-box {
  background: var(--slot-notice-bg);
  border: 1px solid var(--slot-notice-accent);
  border-left: 5px solid var(--slot-notice-accent);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 20px 0;
}

.notice-box p:last-child,
.point-box p:last-child {
  margin-bottom: 0;
}

/* ツール設置エリア */
.tool-placeholder {
  background: var(--slot-white);
  border: 2px dashed var(--slot-border);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.tool-placeholder strong {
  color: var(--slot-main);
}

/* ==================================================
  FAQ
================================================== */

.rank-math-faq.faq-container {
  margin: 24px 0;
}

.faq-item {
  background: var(--slot-white);
  border: 1px solid var(--slot-border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  background: var(--slot-main);
  color: var(--slot-white);
  font-weight: 700;
  padding: 12px 14px;
}

.faq-answer {
  padding: 14px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==================================================
  ボタン・CTA
================================================== */

.slot-button,
.article .slot-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--slot-main);
  color: var(--slot-white) !important;
  border-radius: 999px;
  padding: 10px 18px;
  margin: 8px 0 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(30, 58, 95, 0.16);
}

.slot-button:hover,
.article .slot-button:hover {
  background: var(--slot-accent);
  color: var(--slot-white) !important;
  text-decoration: none !important;
}

/* スマホでは少し余裕を持たせる */
@media screen and (max-width: 834px) {
  .slot-button,
  .article .slot-button {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    font-size: 0.95em;
    text-align: center;
  }
}

/* ==================================================
  カード系
================================================== */

.entry-card-wrap,
.related-entry-card-wrap {
  border-radius: 12px;
}

.entry-card-wrap:hover,
.related-entry-card-wrap:hover {
  box-shadow: 0 4px 14px rgba(30, 58, 95, 0.12);
}

/* ==================================================
  スマホ調整
================================================== */

@media screen and (max-width: 834px) {
  .logo-image {
    max-height: 44px;
    width: auto;
  }

  .article h2 {
    padding: 12px 14px;
    font-size: 1.15em;
  }

  .article th,
  .article td {
    padding: 8px 10px;
    font-size: 0.92em;
  }

  .machine-summary-box,
  .notice-box,
  .point-box {
    padding: 12px;
    border-radius: 10px;
  }
}

/* ==================================================
  設定差チェックツール一覧
================================================== */

.tool-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.tool-list-card {
  background: var(--slot-white);
  border: 1px solid var(--slot-border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
}

.tool-list-card h3 {
  margin-top: 8px;
}

.tool-status {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 700;
}

.status-ready {
  background: var(--slot-notice-bg);
  color: var(--slot-notice-accent);
  border: 1px solid var(--slot-notice-accent);
}

.status-planned {
  background: #EEF2F6;
  color: var(--slot-main);
  border: 1px solid var(--slot-border);
}

@media screen and (max-width: 834px) {
  .tool-list-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tool-list-card {
    padding: 14px;
  }
}

/* ==================================================
  固定ページ：ページタイトル・日付を非表示
================================================== */

body.page .article-header,
body.page .entry-header,
body.page .entry-title,
body.page .date-tags,
body.page .post-date,
body.page .post-update {
  display: none !important;
}

/* ==================================================
  ヘッダーメニュー：カテゴリー説明文を非表示
================================================== */

#navi .item-description,
#navi .caption-wrap .item-description,
.header-container .item-description {
  display: none !important;
}

/* ==================================================
  ヘッダーメニュー：PC表示を1行に整える
================================================== */

@media screen and (min-width: 1024px) {
  #navi .navi-in > ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
  }

  #navi .navi-in > ul > li {
    width: auto !important;
    flex: 0 0 auto;
  }

  #navi .navi-in > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    white-space: nowrap;
    min-width: auto;
  }

  #navi .item-label {
    white-space: nowrap;
    font-size: 0.95em;
    font-weight: 700;
  }
}

/* ==================================================
  記事・固定ページ：H2見出しの余白調整
================================================== */

.article h2 {
  margin-top: 30px;
  margin-bottom: 14px;
}

/* H2直後の要素との間隔を少し自然に */
.article h2 + p,
.article h2 + div,
.article h2 + table,
.article h2 + ul {
  margin-top: 0;
}

/* スマホではさらに少しだけ詰める */
@media screen and (max-width: 834px) {
  .article h2 {
    margin-top: 26px;
    margin-bottom: 12px;
  }
}


/* ==================================================
  トップページ：セクション・H2余白を少しコンパクトに
================================================== */

.slot-home-page .home-section {
  margin: 26px 0 !important;
}

.slot-home-page .home-section > h2 {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

/* H2直後のボックス・グリッドとの余白を詰める */
.slot-home-page .home-section > h2 + .home-profile-box,
.slot-home-page .home-section > h2 + .home-card-grid,
.slot-home-page .home-section > h2 + .home-tool-area,
.slot-home-page .home-section > h2 + .home-new-list {
  margin-top: 0 !important;
}

/* スマホではさらに少しだけ詰める */
@media screen and (max-width: 834px) {
  .slot-home-page .home-section {
    margin: 22px 0 !important;
  }

  .slot-home-page .home-section > h2 {
    margin-bottom: 8px !important;
  }
}


/* ==================================================
  共通：注意・免責メッセージボックス
================================================== */

.slot-common-notice {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  background: #fffaf0;
  border: 1px solid var(--slot-notice-accent);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 28px 0;
  box-shadow: none;
}

.slot-common-notice-icon {
  display: flex;
  justify-content: center;
  color: var(--slot-notice-accent);
  font-size: 28px;
  line-height: 1;
  padding-top: 4px;
}

/* タイトルは現状維持 */
.slot-common-notice-title {
  margin: 0 0 4px;
  color: var(--slot-main);
  font-size: 1.08em;
  font-weight: 700;
  line-height: 1.4;
}


/* 共通注意ボックスの本文 */
.slot-common-notice-text p {
  margin: 0 0 4px;
  font-size: 0.88em;
  line-height: 1.7;
}

.slot-common-notice-text p:last-child {
  margin-bottom: 0;
}

.slot-common-notice-text strong {
  color: #b7791f;
}

/* トップページや固定ページで少し横長に見せる場合 */
.site-about-notice {
  margin-top: 30px;
}

/* スマホ */
@media screen and (max-width: 834px) {
  .slot-common-notice {
    grid-template-columns: 32px 1fr;
    gap: 10px;
    padding: 12px 13px;
    margin: 24px 0;
  }

  .slot-common-notice-icon {
    font-size: 23px;
    padding-top: 3px;
  }

  .slot-common-notice-title {
    font-size: 1.02em;
  }

  .slot-common-notice-text p {
    font-size: 0.86em;
    line-height: 1.65;
  }
}


/* ==================================================
  画像引用元表記
================================================== */

.image-source {
  margin: 6px 0 18px;
  color: var(--slot-muted);
  font-size: 0.82em;
  line-height: 1.5;
}

.image-source a {
  color: var(--slot-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.image-source a:hover {
  color: var(--slot-accent);
}