@charset "UTF-8";
/* ==================================================
 * tpl-topics-wide.php（ワイド画面）専用：目次 [custom_toc]
 * HTML：assets/template/function/custom_shortcode.php（custom_toc_wide_html）
 * JS  ：assets/js/topics-wide-toc.js
 * ================================================== */

.p-topics-wide {
  --p-topics-accent: #da5238;
}

/* tpl-topics-wide.php（ワイド画面）専用 */
.p-topics-wide .c-post-article__title {
    max-width: 1040px;
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.45;
    letter-spacing: -.045em;
    margin: 0 0 27px;
}
@media screen and (max-width: 767px) {
  .p-topics-wide .c-post-article__title {
    font-size: clamp(27px, 7vw, 38px);
  }
}

.p-topics-wide .hero-line {
    width: 58px;
    height: 3px;
    background: #da5238;
    margin-bottom: 28px;
}

/* 目次をスクロールで固定（sticky）させるため、本文の overflow:hidden を解除
   （回り込みの解除は display:flow-root で代替） */
.p-topics-wide .c-post-article__content {
  overflow: visible;
  display: flow-root;
}

/* 目次本体 ------------------------------------------ */
.p-topics-toc {
  position: sticky;
  top: var(--p-topics-toc-top, 0px); /* ヘッダーの高さはJSで自動設定 */
  z-index: 50;
  margin: 4rem 0 6rem;
  /* 背景と下線を画面幅いっぱいまで伸ばす（横スクロールは発生しない） */
  border-image: linear-gradient(to top, #e6e9e6 1px, #fff 1px) fill 0 / 0 / 0 100vmax;
}

.p-topics-toc__inner {
  display: grid;
  grid-template-columns: 19rem 1fr;
  gap: 2.2rem;
  padding: 3rem 0 3.6rem;
}

.p-topics-toc__head {
  display: block;
  padding: 0.8rem 0 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: default;
  pointer-events: none;
}
.p-topics-toc__label {
  color: var(--p-topics-accent);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}
.p-topics-toc__icon {
  display: none;
}

.p-topics-toc__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.p-topics-wide .p-topics-toc__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8em;
  padding: 1.1rem 1.6rem;
  border: 1px solid #e2e6e2;
  background: #fff;
  color: #1b2421;
  font-size: 1.2rem;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.2s;
}
.p-topics-wide .p-topics-toc__link:hover {
  background: #f6f8f6;
  opacity: 1;
}
.p-topics-toc__num {
  color: var(--p-topics-accent);
  font-weight: 700;
}

/* SP：タップで開閉 ---------------------------------- */
@media screen and (max-width: 767px) {
  .p-topics-toc {
    margin: 3rem 0 4rem;
  }
  .p-topics-toc__inner {
    display: block;
    padding: 0;
  }
  .p-topics-toc__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.6rem 0;
    cursor: pointer;
    pointer-events: auto;
  }
  .p-topics-toc__icon {
    display: block;
    position: relative;
    width: 1.4rem;
    height: 1.4rem;
  }
  .p-topics-toc__icon::before,
  .p-topics-toc__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1b2421;
    transform: translateY(-50%);
    transition: transform 0.25s;
  }
  .p-topics-toc__icon::after {
    transform: translateY(-50%) rotate(90deg);
  }
  .p-topics-toc.is-open .p-topics-toc__icon::after {
    transform: translateY(-50%) rotate(0deg);
  }

  .p-topics-toc__nav {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.8rem;
    padding: 0 0 2rem;
    max-height: calc(100vh - var(--p-topics-toc-top, 0px) - 8rem);
    max-height: calc(100dvh - var(--p-topics-toc-top, 0px) - 8rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .p-topics-toc.is-open .p-topics-toc__nav {
    display: flex;
  }
  .p-topics-wide .p-topics-toc__link {
    display: flex;
    font-size: 1.3rem;
  }
}

/* ==================================================
 * 見出し：HTMLアンカー付き H2 →「SECTION 01」付きスタイル
 * HTML：custom_shortcode.php（custom_section_heading_filter）
 * ================================================== */
.p-topics-section-heading {
  display: grid;
  grid-template-columns: 13.5rem 1fr;
  gap: 2.6rem;
  margin: 11.2rem 0 5.3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #aeb7af;
  scroll-margin-top: 8.5rem;
}
.p-topics-section-heading:first-child {
  margin-top: 0;
}
.p-topics-section-heading__num {
  padding-top: 0.6em;
  color: var(--p-topics-accent);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.5;
}
/* 既存の .c-post-article__content h2（下線・余白）を打ち消す */
.p-topics-wide .c-post-article__content .p-topics-section-heading h2 {
  max-width: 850px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(2.8rem, 3.1vw, 4.4rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.05em;
}

@media screen and (max-width: 767px) {
  .p-topics-section-heading {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin: 7.2rem 0 2.8rem;
  }
  .p-topics-section-heading__num {
    padding-top: 0;
  }
  .p-topics-wide .c-post-article__content .p-topics-section-heading h2 {
    font-size: 2.8rem;
  }
}

/* コンテンツ ------------------------------------------ */
.p-topics-wide .intro {
    max-width: 870px;
    font-size: 15px;
    line-height: 2.15;
        color: #58645f;
        margin: 0 auto;
}

.p-topics-wide .topi-products .wp-block-column{
    padding: 1.5em;
    border: 1px solid #e5e9e3;
    color: #58645f;
}

.p-topics-wide .topi-products figure{
    width: 80%;
    margin: auto;
}

.p-topics-wide .topi-products h3 {
    display: block;
    padding-left: 0;
    border-left: none;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.5;
}

.topi-products .wp-block-button__link, .topi-brand .wp-block-button__link {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    min-width: 26rem;
    min-height: 50px;
    border-radius: 0;
    background-color: #fff;
    color: #000;
    font-size: 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.3s;
    border-bottom: 1px solid #000;
}

.p-topics-wide .topi-products .wp-block-button__link, .p-topics-wide .topi-brand .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #000;
    padding: 11px 10px 13px;
    gap: 25px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    margin-top: auto;
    border-radius: 0;
}

.p-topics-wide .topi-products .wp-block-button__link::after,.p-topics-wide .topi-brand .wp-block-button__link::after {
    content: '↗';
    font-size: 18px;
    font-weight: 400;
}

.p-topics-wide .topi-products .wp-block-button__link:hover,.p-topics-wide .topi-brand .wp-block-button__link:hover {
background-color: #eee;
}

.topi-tech{color:#58645f; line-height: 2.3;}
.topi-tech .pickup {
    color: #fff;
    font-size: 0.8em;
    letter-spacing: .24em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1em !important;
    background-color: #58645f;
    display: inline-block;
    padding: 0 10px;
    border-radius: 3px;
    margin-top: 3em;
}

.topi-tech h3 {
font-size: clamp(23px, 2.2vw, 34px);
    line-height: 1.52;
    letter-spacing: -.04em;
    margin-top: 0!important;
    margin: 0 0 23px;
        display: block;
    padding-left: 0;
    border-left: none;
    font-weight: 600;
    color:#000;
}

@media screen and (max-width: 767px) {
.wp-block-media-text.topi-tech { grid-template-columns: 1fr;}
}

.p-topics-wide .topi-brand{
    padding: 1.5em;
    border: 1px solid #e5e9e3;
    color: #58645f;
    margin-top:6rem;
}

/* common ------------------------------------------ */

/* flex-box 上下中央配置 */
.flx-al-itm-c{ display: flex; align-items: center;}

.p-topics-wide .wp-block-button__link {border-radius: 6px;}

  /* 1列目のセルに背景色 */
.teble-clm1-clr td:nth-of-type(1) { background-color: #F4F3F2; font-weight: bold;}
  /* 1行目のセルに背景色を指定する場合 */
.teble-line1-clr td:first-child {background-color: #F4F3F2; font-weight: bold;}

@media screen and (max-width: 767px) {
.flx-rvs{flex-direction: column-reverse;}
}