/* 90-pages.css
   --------------------------------
   - HOME専用（NEWSセクション / WORKSセクション）
   - NEWS アーカイブ
   - WORKS アーカイブ
   - パンくず非表示
-------------------------------- */

/* =========================
   HOME：NEWS セクション
   （グループに .news_section を付与）
========================= */

.news_section .wp-block-query-pagination-numbers a,
.news_section .wp-block-query-pagination-numbers span {
  display: inline-block;
  padding: .2rem .55rem;
  margin: 0 .15rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px;
  font-size: .9rem;
  text-decoration: none;
}
.news_section .wp-block-query-pagination-numbers .current {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* HOME：最新投稿（ブロック）をカード格子で並べる場合 */
.wp-block-latest-posts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 1.5em;
}
/* HOME：日付と抜粋を少し右に寄せる（使用していれば） */
.wp-block-post-date,
.wp-block-post-excerpt {
  margin-left: 3em;
}

/* =========================
   HOME：制作実績（.works_section）
========================= */

.works_section {
  margin: 3.5rem auto;
  max-width: 1200px;
  width: 100%;
}
.works_section h2,
.works_section .wp-block-heading {
  text-align: center;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 1.2rem;
  position: relative;
}
.works_section h2::after,
.works_section .wp-block-heading::after {
  content: "";
  display: block;
  width: 160px;
  height: 1px;
  margin: .75rem auto 0;
  background: currentColor;
  opacity: .35;
}

/* ULをグリッド化（3カラム固定） */
.works_section .wp-block-post-template {
  --wp--style--block-gap: 0;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3,1fr);
}

/* カード本体（高さ揃え＋装飾） */
.works_section .wp-block-post {
  margin: 0 !important;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}
.works_section .wp-block-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}

/* アイキャッチ */
.works_section .wp-block-post-featured-image {
  margin: 0 0 .8rem;
  width: 100%;
  max-width: 100%;
}
.works_section .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

/* タイトル */
.works_section .wp-block-post-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: .25rem 0 .35rem;
  line-height: 1.45;
}
.works_section .wp-block-post:hover .wp-block-post-title a {
  text-decoration: underline;
}
.works_section .wp-block-post-title,
.works_section .wp-block-post-title a {
  border: 0;
  text-decoration: none;
}
.works_section .wp-block-post-title::before,
.works_section .wp-block-post-title::after {
  content: none !important;
}

/* 親のスタイルかもしれない：WORKS h1に適用 他にも影響があるかも。。 */
.page-header .page-header-inner h1 {
  font-size: 1.8rem;
  text-align: center;
}

/* 抜粋（高さ稼ぎ役） */
.works_section .wp-block-post-excerpt {
  margin: 0;
  font-size: .95rem;
  color: #333;
  line-height: 1.7;
  flex-grow: 1;
}

/* 区切り線（使う場合） */
.works_section .wp-block-post hr.wp-block-separator {
  margin: .6rem 0 .4rem;
  opacity: .28;
}
.works_section .wp-block-post > .wp-block-separator:first-child {
  display: none;
}

/* 日付：カード下端に集約 */
.works_section .wp-block-post-date {
  font-size: .85rem;
  color: #777;
  text-align: right;
  margin-top: auto;
}

/* 先頭/末尾の余白を均一化 */
.works_section .wp-block-post > *:first-child { margin-top: 0; }
.works_section .wp-block-post > *:last-child  { margin-bottom: 0; }

/* レスポンシブ */
@media (max-width: 900px) {
  .works_section .wp-block-post-template {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width: 600px) {
  .works_section .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}

/* =========================
   NEWS アーカイブ
========================= */

body.category-news .page-header .container {
  max-width: var(--wp--style--global--content-size,1080px);
  margin: 0 auto;
  padding: 0 16px;
}
body.category-news .page-header h1.page-title {
  font-size: 1.8rem;
  letter-spacing: .05em;
}

/* NEWS：本文側（一覧） */
.category-news .news-archive {
  max-width: 1080px;
  margin: 2.5rem auto;
  padding: 0 1rem;
}
.category-news .news-item {
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 14px 0;
}
.category-news .news-item:first-child {
  border-top: none;
}
.category-news .news-date {
  display: block;
  font-size: .85rem;
  color: #777;
  margin-bottom: .35rem;
}
.category-news .news-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 .4rem;
}
.category-news .news-title a {
  color: #222;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.25);
  padding-bottom: 1px;
}
.category-news .news-excerpt {
  color: #444;
  font-size: .95rem;
  line-height: 1.7;
}

/* NEWS リスト（テーマ側のループ用） */
.category-news .content-area .news-list-item {
  border-top: 1px solid rgba(0,0,0,.12);
  padding: 18px 0;
}
.category-news .content-area .news-list-item:first-child {
  border-top: none;
}

/* NEWS ページネーション */
.category-news .pagination {
  margin: 2rem 0;
}

/* NEWS サイドバーのセレクト */
.category-news .sidebar select {
  width: 100%;
  padding: .5rem .6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  text-align: left;
  text-align-last: left;
}

/* NEWS / WORKS タイトルの字間 */
body.category-news .page-title,
body.tax-work-category .page-title {
  letter-spacing: .08em;
  font-weight: 600;
  text-align: center;
}

/* =========================
   WORKS アーカイブ（taxonomy: work-category）
========================= */

/* WORKS 黒帯（テンプレの page-header を装飾）
   ※ 幅・余白自体は 20-layout.css 側で指定済み */
body.tax-work-category .page-header .page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
body.tax-work-category .page-header .page-title {
  text-align: center;
  letter-spacing: .06em;
}

/* WORKS 一覧の線（最初は上線なし／最後は下線あり） */
body.tax-work-category .content-area .works-list-item {
  border-top: 1px solid rgba(0,0,0,.12);
  padding: 18px 0;
}
body.tax-work-category .content-area .works-list-item:first-child {
  border-top: none;
}
body.tax-work-category .content-area .works-list-item:last-child {
  border-bottom: 1px solid rgba(0,0,0,.12);
}

/* with-sidebar 版（WORKS 一覧の線） */
.with-sidebar .content-area .works-list-item {
  border-top: 1px solid rgba(0,0,0,.12);
  padding: 18px 0;
}
.with-sidebar .content-area .works-list-item:first-child {
  border-top: none;
}
.with-sidebar .content-area .works-list-item:last-child {
  border-bottom: 1px solid rgba(0,0,0,.12);
}

/* NEWS / WORKS 一覧の罫線統一（両方とも最後に下線あり） */
.content-area .news-list-item,
.content-area .works-list-item {
  border-top: 1px solid rgba(0,0,0,.12);
  padding: 18px 0;
}
.content-area .news-list-item:first-child,
.content-area .works-list-item:first-child {
  border-top: none;
}
.content-area .news-list-item:last-child,
.content-area .works-list-item:last-child {
  border-bottom: 1px solid rgba(0,0,0,.12);
}

/* NEWS / WORKS ページネーションは左寄せ＋余白 */
body.category-news .pagination,
body.tax-work-category .pagination {
  text-align: left !important;
  margin: 2rem 0;
}

/* WORKS / NEWS 共通：サイドバーのセレクト左寄せ */
.with-sidebar .sidebar select {
  width: 100%;
  padding: .5rem .6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  text-align: left;
  text-align-last: left;
}

/* =========================
   パンくず非表示（WORKS関連）
========================= */

body.single-case .breadcrumb,
body.tax-work-category .breadcrumb,
body.post-type-archive-case .breadcrumb {
  display: none !important;
}

/* reCAPTCHA バッジ位置調整：To Top ボタンと重ならないように少し上へ */
.grecaptcha-badge {
  bottom: 120px !important;  /* ここで「下から100px」に調整 */
  right: 24px !important;    /* 必要なら横位置も調整（任意） */
  z-index: 9999 !important;  /* 念のため手前に表示 */
}

/* WORKS：ページネーションの上下余白（NEWS と同じに） */
body.tax-case_cat .pagination,
body.taxonomy-work-category .pagination {
  margin: 2rem 0 !important;
  text-align: left !important; /* NEWS と揃えたい場合 */
}

/* お問い合わせページだけ 2カラムレイアウトを安定させる（PC） */
body.page-contact .container.column {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px; /* 本文 + サイドバー */
  gap: 32px;
}

/* 念のため、テーマ側のfloatやwidth指定を打ち消しておく */
body.page-contact .container.column .entry,
body.page-contact .container.column .sidebar,
body.page-contact .container.column .sidebar-area,
body.page-contact .container.column .widget-area {
  float: none;
  width: auto;
}

/* スマホは1カラムに戻す */
@media (max-width: 900px) {
  body.page-contact .container.column {
    display: block;
  }
}

/* =========================
   case_ページ整え
========================= */

.adel-dx-archive__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 64px;
  box-sizing: border-box;
}

/* カード一覧は1200pxを活用 */
.adel-dx-archive__cases {
  width: 100%;
}

/* DX事例アーカイブ：ページタイトル帯 */
.adel-dx-archive__title {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 60px 16px;
  background: #aaa;
  text-align: center;
  box-sizing: border-box;
}

.adel-dx-archive__title h1 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 767px) {
  .adel-dx-archive__title {
    padding: 22px 16px;
  }

  .adel-dx-archive__title h1 {
    font-size: 26px;
  }
}

/* DX事例アーカイブ：導入文を左揃え */
.adel-dx-archive .adel-dx-archive__intro p {
  margin-left: 0;
  margin-right: 0;
  text-align: left !important;
}

/* DX事例アーカイブ：課題別で探す */
.adel-dx-archive__topics {
  max-width: 1000px;
  margin: 0 auto 56px;
  padding: 28px 32px 32px;
  background: #f7f7f7;
  box-sizing: border-box;
}

.adel-dx-archive__topics h2 {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.5;
}

.adel-dx-archive__topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* DX事例アーカイブ：課題別で探す */


.adel-dx-archive__topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.adel-dx-archive__topic-list li {
  margin: 0;
}

.adel-dx-archive__topic-list a {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
}

.adel-dx-archive__topic-list a:hover {
  background: #f3f3f3;
}

/* =========================
   DX事例：アーカイブ
========================= */
/* DX事例アーカイブ：事例カード */
.dx-case-list {
  display: grid;
  gap: 24px;
}

.dx-case-item {
  margin: 0;
}

.dx-case-item__link {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.dx-case-item__thumbnail img {
  display: block;
  width: 100%;
  height: auto;
}

.dx-case-item__title {
  margin: 0 0 12px;
}

.dx-case-item__excerpt {
  color: #444;
}

@media (max-width: 767px) {
  .dx-case-item__link {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dx-case-item__thumbnail {
    max-width: 100%;
  }
}
/* DX事例アーカイブ：事例カード */

/* DX事例カード：課題カテゴリ（アーカイブの抜粋下のカテゴリ） */
.dx-case-item__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dx-case-item__term {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-size: 13px;
  line-height: 1.4;
}

/* DX事例カード：カード下を広め、次カード上をやや詰める */
.dx-case-item {
  margin: 0;
  padding-bottom: 40px;
  border-bottom: 1px solid #d6d6d6;
}

.dx-case-item + .dx-case-item {
  padding-top:18px;
}

/* DX事例アーカイブ：ページネーション */
.adel-dx-archive .navigation.pagination {
  margin-top: 24px;
}

/* 数字を正円にする */
.adel-dx-archive .page-numbers:not(.next):not(.prev) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d6d6d6;
  border-radius: 50%;
  box-sizing: border-box;
  text-decoration: none;
}

/* 現在のページ */
.adel-dx-archive .page-numbers.current {
  background: #000;
  border-color: #000;
  color: #fff;
}

/* 「前へ・次へ」は丸くしすぎず、そのまま横長 */
.adel-dx-archive .page-numbers.next,
.adel-dx-archive .page-numbers.prev {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 14px;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
  box-sizing: border-box;
  text-decoration: none;
}

/* TOP：DX事例一覧ボタン */
.adel-home-dx-cases__more {
  margin-top: 32px;
  text-align: right;
}

.adel-home-dx-cases__more a {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: #333;
  color: #fff;
  text-decoration: none;
  line-height: 1.4;
}

.adel-home-dx-cases__more a:hover {
  background: #555;
  color: #fff;
}

/* TOP：DX事例カード内のリンク下線を消す */
.adel-home-dx-cases .dx-case-item__link,
.adel-home-dx-cases .dx-case-item__link:hover,
.adel-home-dx-cases .dx-case-item__link:focus {
  text-decoration: none !important;
}

/* TOP：DX事例カードのタイトル装飾(罫線) を解除 */
.adel-home-dx-cases .dx-case-item__title {
  border-top: 0 !important;
  border-bottom: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
}

/* TOP：DX事例カード内の縦余白を調整 */
.adel-home-dx-cases .dx-case-item__title {
  margin: 4px 0 6px;
}

/* the_excerpt() が出力する p の余白を解除 */
.adel-home-dx-cases .dx-case-item__excerpt,
.adel-home-dx-cases .dx-case-item__excerpt p {
  margin-top: 0;
  margin-bottom: 0;
}

/* カテゴリを抜粋の直後へ */
.adel-home-dx-cases .dx-case-item__terms {
  margin-top: 8px;
}



/* DX事例：シンプル構成図 */
.dx-flow {
  margin: 14px 0 32px;
  padding: 0 !important;
  overflow-x: auto;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

/* 文字の長さまでグレー背景を伸ばす */
.dx-flow > code {
  display: inline-block !important;
  min-width: 100%;
  width: max-content;
  margin: 0;
  padding: 14px;  /*24px*/
  box-sizing: border-box;
  background: #f5f5f5 !important;
  border: 0;
  border-radius: 6px;
  color: #333;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    "Courier New",
    monospace;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre;
}

/* DX事例：運用イメージ */
.dx-flow-section {
  margin: 10px 0 32px;
  padding: 24px;
  background: #f5f5f5;
  border-radius: 6px;
  box-sizing: border-box;
}


.dx-flow-section__title {
  margin: 0 0 14px;
  padding: 0;
  border: 0 !important;
  font-size: 18px;
  line-height: 1.5;
}

.dx-flow-section .dx-flow {
  margin: 0;
}

/* DX事例：タイトル付きフロー図 */
.dx-flow-card {
  margin: 24px 0 24px;
  padding: 20px;
  overflow-x: auto;
  background: #f5f5f5;
  border-radius: 6px;
  box-sizing: border-box;
}

/* Nishiki Proの見出し装飾を解除 */
.dx-flow-card__title {
  margin: 0 0 14px;
  padding: 0;
  border: 0 !important;
  font-size: 18px;
  line-height: 1.5;
}

/* Nishiki Proの見出し装飾を解除 スマホ*/
@media only screen and (max-width: 680px) {
  .wp-post-content .dx-flow-card__title {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
    margin-bottom: 14px !important;
  }
}

/* 外側カードが背景を担当 */
.dx-flow-card .dx-flow {
  margin: 0;
  padding: 0 !important;
  overflow: visible;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 図の文字幅まで横スクロールできるようにする */
.dx-flow-card .dx-flow > code {
  display: inline-block !important;
  min-width: 100%;
  width: max-content;
  margin: 0;
  padding: 0;
  background: transparent !important;
  color: #333;
  white-space: pre;
}


.adel-breadcrumb-wrap {
    padding: 12px 0;
}

.adel-breadcrumb {
    font-size: 14px;
    line-height: 1.6;
}

.adel-breadcrumb a {
    text-decoration: none;
}

.adel-breadcrumb span[aria-hidden="true"] {
    margin: 0 6px;
}


/* =========================
   Adel ChatBOT Overlay Ver.1.0（最終・1本化）
   - 表示制御：aria-hidden="false" のみ
   - iOSの右見切れ対策：top/right/bottom/left で固定（100vw禁止）
========================= */

/*#adel-chat-overlay.adel-chat-overlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;                 /* 初期は非表示 */
/*  background: rgba(0,0,0,.35);
  padding: 0;
}

/* 開いたら表示（これだけが条件） */
/*#adel-chat-overlay.adel-chat-overlay[aria-hidden="false"]{
  display: flex;
}

/* パネルは常に「画面ぴったり固定」 */
/*#adel-chat-overlay .adel-chat-panel{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  width: auto;                   /* ← iOS対策（100vwを使わない） */
/*  height: auto;
  border-radius: 0;

  background: #fff;
  overflow: hidden;
}

/* iframe */
/*#adel-chat-overlay .adel-chat-iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 閉じるボタン（ノッチ考慮） */
/*#adel-chat-overlay .adel-chat-close{
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  right: calc(10px + env(safe-area-inset-right));
  z-index: 2;

  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* 開いてる間は背景スクロール停止（JSでbodyに付く前提） */
/*body.adel-chat-open{
  overflow: hidden;
  touch-action: none;
}
