@charset "UTF-8";

/* ==========================================================================
   components.css
   ボタン／ヘッダ／フッタ／カード／テーブル／タグ
   WordPress wp_nav_menu の標準出力にも独自クラスにも対応する設計。
   ========================================================================== */
@layer components {

  /* ==========================================================================
     Button: 3種類＋幅バリアント
     ========================================================================== */
  .c-btn,
  a.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: 0.95em 1.75em;
    font-family: var(--ff-base);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    line-height: 1.4;
    letter-spacing: 0.04em;
    border-radius: var(--r-sm);
    text-decoration: none;
    cursor: pointer;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
                border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease);
  }

  /* wp:button ラッパ(div)はリセット（重要：二重ボーダー防止） */
  .wp-block-button.c-btn {
    display: inline-block;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    color: inherit;
  }
  .wp-block-button.c-btn > .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: 0.95em 1.75em;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    letter-spacing: 0.04em;
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
                border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  }

  /* Primary */
  a.c-btn--primary,
  .c-btn--primary,
  .wp-block-button.c-btn--primary > .wp-block-button__link {
    background: var(--c-action-primary);
    color: var(--c-action-on-primary);
    border: 1px solid var(--c-action-primary);
  }
  a.c-btn--primary:hover,
  .c-btn--primary:hover,
  .wp-block-button.c-btn--primary > .wp-block-button__link:hover {
    background: var(--c-action-primary-hover);
    border-color: var(--c-action-primary-hover);
    color: var(--c-action-on-primary);
    opacity: 1;
  }

  /* Secondary */
  a.c-btn--secondary,
  .c-btn--secondary,
  .wp-block-button.c-btn--secondary > .wp-block-button__link {
    background: transparent;
    color: var(--c-brand-800);
    border: 1px solid var(--c-brand-800);
  }
  a.c-btn--secondary:hover,
  .c-btn--secondary:hover,
  .wp-block-button.c-btn--secondary > .wp-block-button__link:hover {
    background: var(--c-brand-800);
    color: var(--c-action-on-primary);
    opacity: 1;
  }

  /* Text */
  a.c-btn--text,
  .c-btn--text {
    padding: 0.5em 0;
    background: transparent;
    color: var(--c-brand-800);
    border: 0;
    border-radius: 0;
  }

  /* Invert（色背景上） */
  a.c-btn--invert,
  .c-btn--invert {
    background: var(--c-bg);
    color: var(--c-brand-800);
    border: 1px solid var(--c-bg);
  }
  a.c-btn--invert:hover,
  .c-btn--invert:hover {
    background: transparent;
    color: var(--c-bg);
    opacity: 1;
  }

  /* Width */
  .c-btn--wide,
  .wp-block-button.c-btn--wide > .wp-block-button__link { width: 100%; }

  /* 矢印アイコン自動付与 */
  a.c-btn--arrow::after,
  .wp-block-button.c-btn--arrow > .wp-block-button__link::after {
    content: '\2192';
    display: inline-block;
    font-size: 1.1em;
    transition: transform var(--dur) var(--ease);
  }
  a.c-btn--arrow:hover::after,
  .wp-block-button.c-btn--arrow:hover > .wp-block-button__link::after {
    transform: translateX(3px);
  }

  /* ==========================================================================
     Icon
     ========================================================================== */
  .c-icon {
    width: var(--icon-md);
    height: var(--icon-md);
    stroke: currentColor;
    fill: none;
    stroke-width: var(--icon-stroke);
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    vertical-align: middle;
  }
  .c-icon--sm { width: var(--icon-sm); height: var(--icon-sm); }
  .c-icon--lg { width: var(--icon-lg); height: var(--icon-lg); }
  .c-icon--xl { width: var(--icon-xl); height: var(--icon-xl); }

  /* ==========================================================================
     Header
     ========================================================================== */
  .c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: rgba(var(--c-on-dark), 0.25); /* 透過率75%：白のalphaを0.5→0.25にしてより透過 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  /* トップページ：MV上に透明で乗せる（既存の挙動を踏襲） */
  .page-top .c-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .page-top .c-header.is-scrolled {
    background: rgba(var(--c-on-dark), 0.25); /* 透過率75%：白のalphaを0.5→0.25にしてより透過 */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-color: var(--c-line-soft);
  }
  .c-header__inner {
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: clamp(1rem, 2.5vw, 2rem);
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: var(--sp-5);
  }
  .c-header__logo {
    flex-shrink: 0;
    margin-right: auto;
  }
  .c-header__logo img {
    height: 48px;   /* ヘッダー高さ(72px固定)内でセンター表示。48px<72pxなので高さは不変 */
    width: auto;
  }

  /* ----- ヘッダ内ナビ（WordPress標準クラス + 独自クラス両対応） ----- */
  .c-header__nav { display: flex; align-items: center; }

  /* wp_nav_menu の標準クラス・独自クラス両方を拾う */
  .c-header__nav .menu,
  .c-header__nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.75rem);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .c-header__nav .menu-item,
  .c-header__nav li {
    position: relative;
  }
  .c-header__nav .menu-item > a,
  .c-header__nav li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.5em 0;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    color: var(--c-text);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
  }
  .c-header__nav .menu-item > a:hover,
  .c-header__nav li > a:hover { color: var(--c-brand-800); opacity: 1; }

  /* トップでMVに重なっている時は白文字（ドロップダウン内リンクは除く） */
  .page-top .c-header:not(.is-scrolled) .c-header__nav .menu-item:not(.menu-item-has-children) > a,
  .page-top .c-header:not(.is-scrolled) .c-header__nav > .menu > .menu-item > a,
  .page-top .c-header:not(.is-scrolled) .c-header__nav > ul > li > a {
    color: var(--c-text-invert);
  }
  .page-top .c-header:not(.is-scrolled) .c-header__nav > .menu > .menu-item > a:hover,
  .page-top .c-header:not(.is-scrolled) .c-header__nav > ul > li > a:hover {
    color: var(--c-text-invert);
    opacity: 0.7;
  }
  /* ドロップダウン内リンクは常に通常文字色（白背景上で見えるように） */
  .page-top .c-header:not(.is-scrolled) .c-header__nav .sub-menu li > a {
    color: var(--c-text) !important;
  }
  .page-top .c-header:not(.is-scrolled) .c-header__nav .sub-menu li > a:hover {
    color: var(--c-brand-800) !important;
    opacity: 1;
  }
  /* トップMV上のハンバーガー線色を白に */
  .page-top .c-header:not(.is-scrolled) .c-hamburger span {
    background: var(--c-bg);
  }

  /* ドロップダウン矢印（子メニューを持つ親に） */
  .c-header__nav .menu-item-has-children > a::after,
  .c-header__nav li.has-children > a::after {
    content: "";
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    background-color: currentColor;
    mask-image: var(--icon-chevron-down);
    -webkit-mask-image: var(--icon-chevron-down);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    transition: transform var(--dur) var(--ease);
  }
  .c-header__nav .menu-item-has-children:hover > a::after,
  .c-header__nav li.has-children:hover > a::after {
    transform: rotate(180deg);
  }

  /* ドロップダウン：子メニュー */
  .c-header__nav .sub-menu,
  .c-header__nav .children,
  .c-header__nav ul ul {
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 220px;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-md);
    padding: var(--sp-3);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    z-index: 10;
  }
  .c-header__nav .menu-item-has-children:hover > .sub-menu,
  .c-header__nav .menu-item-has-children:focus-within > .sub-menu,
  .c-header__nav li.has-children:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .c-header__nav .sub-menu li > a,
  .c-header__nav ul ul li > a {
    display: block;
    padding: 0.6em 0.8em;
    font-size: var(--fs-small);
    color: var(--c-text);
    border-radius: var(--r-sm);
  }
  .c-header__nav .sub-menu li > a:hover,
  .c-header__nav ul ul li > a:hover {
    background: var(--c-brand-50);
    color: var(--c-brand-800);
  }

  /* ドロップダウン内「〜TOP」項目：背景色で差別化 */
  .c-header__nav .sub-menu .menu-item--top > a {
    background: var(--c-brand-50);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--sp-1);
  }
  .c-header__nav .sub-menu .menu-item--top > a:hover {
    background: var(--c-brand-100, var(--c-brand-50));
  }

  /* 第3階層サブメニュー：親項目の右横にフライアウト表示 */
  .c-header__nav .sub-menu .sub-menu {
    top: calc(-1 * var(--sp-3));
    left: 100%;
    margin-left: 2px;
    transform: translateX(8px);
  }
  .c-header__nav .sub-menu .menu-item-has-children:hover > .sub-menu,
  .c-header__nav .sub-menu .menu-item-has-children:focus-within > .sub-menu {
    transform: translateX(0);
  }
  /* 第3階層を持つ親の矢印は右向き（回転させない） */
  .c-header__nav .sub-menu .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
  }
  .c-header__nav .sub-menu .menu-item-has-children > a::after {
    transform: rotate(-90deg);
  }
  .c-header__nav .sub-menu .menu-item-has-children:hover > a::after {
    transform: rotate(-90deg);
  }

  /* ヘッダ右側のアクションボタン群 */
  .c-header__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
  }
  .c-header__action {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.6em 1em;
    font-size: var(--fs-caption);
    font-weight: var(--fw-medium);
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .c-header__action--primary {
    background: var(--c-brand-800);
    color: var(--c-text-invert);
  }
  .c-header__action--primary:hover {
    background: var(--c-brand-900);
    opacity: 1;
  }
  .c-header__action--outline {
    background: transparent;
    color: var(--c-brand-800);
    border: 1px solid var(--c-brand-800);
  }
  .c-header__action--outline:hover {
    background: var(--c-brand-800);
    color: var(--c-text-invert);
    opacity: 1;
  }
  .c-header__action .c-icon { width: 1em; height: 1em; }

  /* ④ アウトラインボタン内の <img> アイコンをCSSで色制御 */
  .c-header__action--outline img {
    filter: invert(31%) sepia(72%) saturate(700%) hue-rotate(183deg) brightness(90%);
    /* → #0b67a2 相当 */
    transition: filter var(--dur) var(--ease);
  }
  .c-header__action--outline:hover img {
    filter: brightness(0) invert(1); /* 白 */
  }

  /* ① トップMV上：アウトラインボタンも白にする */
  .page-top .c-header:not(.is-scrolled) .c-header__action--outline {
    color: var(--c-text-invert);
    border-color: rgba(var(--c-on-dark), 0.7);
  }
  .page-top .c-header:not(.is-scrolled) .c-header__action--outline img {
    filter: brightness(0) invert(1);
  }
  .page-top .c-header:not(.is-scrolled) .c-header__action--outline:hover {
    background: rgba(var(--c-on-dark), 0.2);
    border-color: var(--c-text-invert);
    color: var(--c-text-invert);
  }
  /* ① トップMV上：プライマリボタンも見えるように */
  .page-top .c-header:not(.is-scrolled) .c-header__action--primary {
    background: rgba(var(--c-on-dark), 0.2);
    border: 1px solid rgba(var(--c-on-dark), 0.7);
    color: var(--c-text-invert);
  }
  .page-top .c-header:not(.is-scrolled) .c-header__action--primary:hover {
    background: rgba(var(--c-on-dark), 0.35);
  }
  .page-top .c-header:not(.is-scrolled) .c-header__action--primary img {
    filter: brightness(0) invert(1);
  }

  /* ハンバーガー */
  .c-hamburger {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
  }
  .c-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-text);
    margin-inline: auto;
    transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .is-menu-open .c-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .is-menu-open .c-hamburger span:nth-child(2) { opacity: 0; }
  .is-menu-open .c-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* メニュー展開中は背景が白になるため、×は常に濃色にする
     （TOP未スクロール時の白指定より優先させる） */
  .page-top.is-menu-open .c-header:not(.is-scrolled) .c-hamburger span,
  .is-menu-open .c-hamburger span {
    background: var(--c-text);
  }

  /* SPナビ */
  .c-nav-sp {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* ヘッダー分を上paddingで確保 */
    padding: var(--header-h-sp) var(--sp-5) var(--sp-8);
    background: var(--c-bg);
    z-index: calc(var(--z-header) - 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), visibility var(--dur);
  }
  /* ⑥ メニューオープン時：ヘッダーを確実に最前面に固定 */
  .is-menu-open .c-header.c-header {
    position: fixed;
    top: 0;
    background: rgba(var(--c-on-dark), 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-color: var(--c-line-soft);
  }
  .is-menu-open .c-nav-sp { opacity: 1; visibility: visible; }

  .c-nav-sp .menu,
  .c-nav-sp > ul {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .c-nav-sp .menu-item,
  .c-nav-sp > ul > li {
    border-bottom: 1px solid var(--c-line);
  }
  .c-nav-sp .menu-item > a,
  .c-nav-sp > ul > li > a {
    display: block;
    padding: var(--sp-4) 0;
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    color: var(--c-text);
  }
  .c-nav-sp .sub-menu,
  .c-nav-sp ul ul {
    padding: 0 0 var(--sp-3) var(--sp-4);
  }
  .c-nav-sp .sub-menu li > a,
  .c-nav-sp ul ul li > a {
    display: block;
    padding: var(--sp-3) 0;
    font-size: var(--fs-small);
    color: var(--c-text-muted);
  }
  /* SP：「〜TOP」項目の背景差別化 */
  .c-nav-sp .sub-menu .menu-item--top > a {
    background: var(--c-brand-50);
    padding-left: var(--sp-3);
    padding-right: var(--sp-3);
    border-radius: var(--r-sm);
    font-weight: var(--fw-semibold);
    color: var(--c-text);
  }
  /* SP：第3階層（MATCH KOBA事業の事例紹介）はインデントで下層表示 */
  .c-nav-sp .sub-menu .sub-menu {
    padding: 0 0 0 var(--sp-4);
  }
  .c-nav-sp .sub-menu .sub-menu .menu-item { border-bottom: none; }

  .c-nav-sp__actions {
    margin-top: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
  }

  @media (max-width: 1024px) {
    .c-header__nav,
    .c-header__actions { display: none; }
    .c-hamburger { display: flex; }
    .c-header__inner { height: var(--header-h-sp); }
    .c-header__logo img { height: 31px; }
  }

  /* ==========================================================================
     Floating Action Button: 図面検索
     ========================================================================== */
  .c-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--z-fab);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--c-brand-800);
    color: var(--c-text-invert);
    padding: 14px 22px;
    border-radius: var(--r-md);
    box-shadow: var(--sh-cta);
    text-decoration: none;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    line-height: 1.4;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .c-fab:hover {
    background: var(--c-brand-900);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 103, 162, 0.5);
    opacity: 1;
  }
  .c-fab__sub {
    font-size: 0.75em;
    opacity: 0.8;
  }

  /* ==========================================================================
     Card
     ========================================================================== */
  .c-card {
    display: flex;
    flex-direction: column;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  a.c-card { color: inherit; text-decoration: none; }
  a.c-card:hover {
    border-color: var(--c-brand-300);
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
    opacity: 1;
  }
  .c-card__media {
    aspect-ratio: 4 / 3;
    background: var(--c-bg-alt);
    overflow: hidden;
  }
  .c-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--ease);
  }
  a.c-card:hover .c-card__media img { transform: scale(1.04); }

  .c-card__body {
    padding: var(--sp-4) var(--sp-4) var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    flex: 1;
  }
  .c-card__eyebrow {
    font-family: var(--ff-num);
    font-size: var(--fs-eyebrow);
    letter-spacing: var(--tr-eyebrow);
    text-transform: uppercase;
    color: var(--c-brand-800);
  }
  .c-card__title {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    line-height: 1.5;
    color: var(--c-text);
    margin: 0;
  }
  .c-card__text {
    font-size: var(--fs-caption);
    color: var(--c-text-muted);
    line-height: 1.7;
    margin: 0;
  }
  .c-card__count {
    margin-top: auto;
    padding-top: var(--sp-3);
    font-family: var(--ff-num);
    font-size: var(--fs-caption);
    color: var(--c-text-subtle);
  }

  /* ==========================================================================
     Product Card（カテゴリページ用：横長）
     ========================================================================== */
  .c-product {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--sp-5);
    padding: var(--sp-5);
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  a.c-product { color: inherit; text-decoration: none; }
  a.c-product:hover {
    border-color: var(--c-brand-300);
    box-shadow: var(--sh-md);
    opacity: 1;
  }
  .c-product__media {
    aspect-ratio: 1 / 1;
    background: var(--c-bg-alt);
    border-radius: var(--r-sm);
    overflow: hidden;
  }
  .c-product__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .c-product__body { display: flex; flex-direction: column; gap: var(--sp-2); }
  .c-product__name {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    margin: 0;
  }
  .c-product__desc {
    font-size: var(--fs-small);
    color: var(--c-text-muted);
    line-height: 1.7;
  }
  .c-product__more {
    margin-top: auto;
    font-size: var(--fs-caption);
    color: var(--c-brand-800);
    font-weight: var(--fw-medium);
  }
  @media (max-width: 560px) {
    .c-product { grid-template-columns: 120px 1fr; gap: var(--sp-3); padding: var(--sp-4); }
  }

  /* ==========================================================================
     Spec Table（製品仕様）
     ========================================================================== */
  .c-spec {
    width: 100%;
    border-top: 1px solid var(--c-line);
    border-collapse: collapse;
  }
  .c-spec tr { border-bottom: 1px solid var(--c-line); }
  .c-spec th,
  .c-spec td {
    text-align: left;
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--fs-small);
    line-height: 1.7;
    vertical-align: top;
  }
  .c-spec th {
    width: 220px;
    background: var(--c-bg-alt);
    font-weight: var(--fw-semibold);
    color: var(--c-text);
  }
  @media (max-width: 640px) {
    .c-spec th { width: 40%; }
  }

  /* ==========================================================================
     Tag / Badge
     ========================================================================== */
  .c-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2em 0.7em;
    font-size: var(--fs-caption);
    line-height: 1.5;
    background: var(--c-bg-alt);
    color: var(--c-text-muted);
    border-radius: var(--r-sm);
  }
  .c-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15em 0.6em;
    font-size: var(--fs-eyebrow);
    line-height: 1.6;
    font-weight: var(--fw-medium);
    background: var(--c-badge-notice);
    color: var(--c-text-invert);
    border-radius: 2px;
    letter-spacing: 0.05em;
  }
  .c-badge--important { background: var(--c-badge-important); }
  .c-badge--press     { background: var(--c-badge-press); }
  .c-badge--new {
    background: #d96b1e;
    color: var(--c-text-invert);
  }

  /* ==========================================================================
     News List Item（一覧用）
     ========================================================================== */
  .c-news-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--sp-4);
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--c-line);
    align-items: start;
  }
  a.c-news-item { color: inherit; text-decoration: none; }
  a.c-news-item:hover .c-news-item__title { color: var(--c-brand-800); }
  a.c-news-item:hover { opacity: 1; }

  .c-news-item__thumb {
    aspect-ratio: 4 / 3;
    background: var(--c-bg-alt);
    border-radius: var(--r-sm);
    overflow: hidden;
  }
  .c-news-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .c-news-item__body { display: flex; flex-direction: column; gap: var(--sp-2); }
  .c-news-item__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-caption);
  }
  .c-news-item__date {
    font-family: var(--ff-num);
    color: var(--c-text-muted);
  }
  .c-news-item__title {
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    line-height: 1.5;
    color: var(--c-text);
    transition: color var(--dur) var(--ease);
  }
  @media (max-width: 560px) {
    .c-news-item { grid-template-columns: 88px 1fr; gap: var(--sp-3); }
  }

  /* ==========================================================================
     Pagination
     ========================================================================== */
  .c-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-2);
    margin-top: var(--sp-7);
    flex-wrap: wrap;
  }
  .c-pagination a,
  .c-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6em;
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    font-family: var(--ff-num);
    font-size: var(--fs-small);
    color: var(--c-text);
    text-decoration: none;
    transition: border-color var(--dur), background var(--dur), color var(--dur);
  }
  .c-pagination a:hover {
    border-color: var(--c-brand-800);
    color: var(--c-brand-800);
    opacity: 1;
  }
  .c-pagination .is-current,
  .c-pagination [aria-current="page"] {
    background: var(--c-brand-800);
    color: var(--c-text-invert);
    border-color: var(--c-brand-800);
  }

  /* ==========================================================================
     Q&A（accordion）
     ========================================================================== */
  .c-qa {
    border-top: 1px solid var(--c-line);
  }
  .c-qa__item {
    border-bottom: 1px solid var(--c-line);
  }
  /* core/details の save() は <summary> に class を出力しないため、
     .c-qa__q を付けるとエディタで「無効なコンテンツ」になる。
     class なしの <summary> でも同じ見た目になるようセレクタを併記する。 */
  .c-qa__q,
  .c-qa__item > summary {
    list-style: none;
    cursor: pointer;
    padding: var(--sp-4) var(--sp-2) var(--sp-4) var(--sp-7);
    position: relative;
    font-weight: var(--fw-medium);
  }
  .c-qa__q::-webkit-details-marker,
  .c-qa__item > summary::-webkit-details-marker { display: none; }
  .c-qa__q::before,
  .c-qa__item > summary::before {
    content: "Q";
    position: absolute;
    left: var(--sp-2);
    top: var(--sp-4);
    color: var(--c-brand-800);
    font-family: var(--ff-num);
    font-weight: var(--fw-bold);
  }
  .c-qa__q::after,
  .c-qa__item > summary::after {
    content: "";
    position: absolute;
    right: var(--sp-2);
    top: 50%;
    transform: translateY(-50%);
    width: 1em;
    height: 1em;
    background-color: currentColor;
    mask-image: var(--icon-chevron-down);
    -webkit-mask-image: var(--icon-chevron-down);
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    transition: transform var(--dur) var(--ease);
  }
  details[open] > .c-qa__q::after,
  .c-qa__item[open] > summary::after { transform: translateY(-50%) rotate(180deg); }
  .c-qa__a {
    padding: 0 var(--sp-2) var(--sp-5) var(--sp-7);
    color: var(--c-text-muted);
    position: relative;
  }
  .c-qa__a::before {
    content: "A";
    position: absolute;
    left: var(--sp-2);
    top: 0;
    color: var(--c-brand-700);
    font-family: var(--ff-num);
    font-weight: var(--fw-bold);
  }

  /* ==========================================================================
     Form
     ========================================================================== */
  .c-form { display: flex; flex-direction: column; gap: var(--sp-5); }
  .c-form__row { display: flex; flex-direction: column; gap: var(--sp-2); }
  .c-form__label {
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
  }
  .c-form__required {
    background: var(--c-badge-important);
    color: var(--c-text-invert);
    font-size: var(--fs-eyebrow);
    padding: 0.1em 0.5em;
    border-radius: 2px;
  }
  .c-form__input,
  .c-form__textarea,
  .c-form__select {
    width: 100%;
    padding: 0.8em 1em;
    font-family: inherit;
    font-size: var(--fs-body);
    border: 1px solid var(--c-line);
    border-radius: var(--r-sm);
    background: var(--c-bg);
    transition: border-color var(--dur) var(--ease);
  }
  .c-form__input:focus,
  .c-form__textarea:focus,
  .c-form__select:focus {
    border-color: var(--c-brand-800);
    outline: none;
  }
  .c-form__textarea { min-height: 160px; resize: vertical; }
  .c-form__help {
    font-size: var(--fs-caption);
    color: var(--c-text-subtle);
  }

  /* 郵便番号は7桁しか入らないため、欄を狭くして自然に見せる */
  .c-form__input--zip { max-width: 14em; }

  /* 郵便番号検索の結果表示（js/zipcode.js が挿入する） */
  .c-form__status:empty { display: none; }
  .c-form__status { margin-top: calc(var(--sp-2) * -1 + 0.4em); }

  /* ==========================================================================
     CTA Block（既存デザインを温存：背景画像＋白枠ボタン）
     ========================================================================== */
  .c-cta {
    background: url(../img/home_cta_bg.webp) no-repeat center center;
    background-size: cover;
    padding-block: 100px;
    text-align: center;
    color: var(--c-text-invert);
  }
  .c-cta__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 20px;
  }
  .c-cta__eyebrow {
    font-size: var(--fs-caption);
    font-weight: var(--fw-medium);
    color: rgba(var(--c-on-dark), 0.8);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: var(--sp-4);
    font-family: var(--ff-base);
  }
  .c-cta__title {
    font-size: clamp(1.75rem, 2vw + 0.8rem, 2rem);
    font-weight: var(--fw-regular);
    color: var(--c-text-invert);
    letter-spacing: 0.05em;
    margin: 0 0 var(--sp-5);
  }
  .c-cta__lead {
    font-size: 1rem;
    color: rgba(var(--c-on-dark), 0.85);
    line-height: 1.9;
    margin-bottom: 48px;
  }
  /* CTA帯のボタン（既存 .cta_btn と同じ） */
  .c-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    border: 1px solid rgba(var(--c-on-dark), 0.7);
    background: transparent;
    color: var(--c-text-invert);
    font-size: 1rem;
    font-weight: var(--fw-regular);
    padding: 20px 60px;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: background 0.3s, border-color 0.3s;
    min-width: 360px;
    text-align: center;
  }
  .c-cta__btn:hover {
    background: rgba(var(--c-on-dark), 0.15);
    border-color: var(--c-text-invert);
    color: var(--c-text-invert);
    opacity: 1;
  }
  .c-cta__btn-text {
    transition: transform 0.3s var(--ease);
  }
  .c-cta__btn:hover .c-cta__btn-text { transform: translateX(6px); }
  .c-cta__btn::after {
    content: '\2192';
    display: inline-block;
    font-size: 1.1em;
    color: var(--c-text-invert);
    flex-shrink: 0;
    transition: transform var(--dur) var(--ease);
  }
  .c-cta__btn:hover::after { transform: translateX(4px); }
  @media (max-width: 768px) {
    .c-cta { padding-block: 70px; }
    .c-cta__inner { padding-inline: 5%; }
    .c-cta__title { font-size: 1.75rem; }
    .c-cta__lead { font-size: 0.9375rem; }
    .c-cta__btn { min-width: 0; width: 100%; padding: 20px 32px; }
  }

  /* ==========================================================================
     Footer（既存デザインを忠実に再現：背景#0e233e、3カラムナビ、ラベル付きグループ）
     ========================================================================== */
  .c-footer {
    background: #0e233e;
    color: rgba(var(--c-on-dark), 0.7);
  }
  .c-footer a { color: inherit; text-decoration: none; }
  .c-footer a:hover { color: var(--c-text-invert); opacity: 1; }

  .c-footer__inner {
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 20px;
  }

  /* ---------- 上段：会社情報＋ナビ3カラム ---------- */
  .c-footer__main {
    padding: 80px 0 60px;
  }
  .c-footer__top {
    display: flex;
    gap: 200px;
    align-items: flex-start;
  }
  @media (max-width: 1024px) {
    .c-footer__top { gap: 80px; }
  }
  @media (max-width: 768px) {
    .c-footer__main { padding: 60px 0 48px; }
    .c-footer__top { flex-direction: column; gap: 48px; padding-inline: 5%; }
    .c-footer__inner { padding-inline: 0; } /* SPは内側で5%取るため外を0に */
  }

  /* 左：会社情報 */
  .c-footer__info {
    flex: 0 0 280px;
  }
  @media (max-width: 768px) {
    .c-footer__info { flex: none; width: 100%; }
  }
  .c-footer__logo {
    margin-bottom: 28px;
  }
  .c-footer__logo img {
    width: 340px;      /* ロゴ幅。info列(280px)を超える分は右のgapにはみ出す＝ナビ幅は不変で崩れない */
    max-width: none;   /* reset の img{max-width:100%} を解除。これが無いとinfo列280pxで頭打ちになり小さいまま */
    height: auto;
  }
  .c-footer__company {
    font-size: 1rem;
    font-weight: var(--fw-medium);
    color: var(--c-text-invert);
    margin: 0 0 var(--sp-4);
  }
  .c-footer__address {
    font-size: 0.875rem;
    color: rgba(var(--c-on-dark), 0.7);
    line-height: 1.8;
    margin: 0 0 var(--sp-3);
  }
  .c-footer__tel {
    font-size: 0.875rem;
    color: rgba(var(--c-on-dark), 0.7);
    margin: 0 0 var(--sp-7);
  }
  .c-footer__cert img {
    width: 200px;
    height: auto;
  }
  /* SP：ロゴ・社名・住所・電話をセンター寄せ（認証マークは既定のまま） */
  @media (max-width: 768px) {
    .c-footer__logo,
    .c-footer__company,
    .c-footer__address,
    .c-footer__tel {
      text-align: center;
    }
    .c-footer__logo a { display: block; }             /* アンカーをブロック化して幅100%に */
    .c-footer__logo img {
      max-width: 100%;      /* 狭い端末で340pxが溢れないように */
      margin-inline: auto;  /* imgはreset.cssでdisplay:blockのため margin auto で中央 */
    }
  }

  /* 右：ナビ3カラム（WP wp_nav_menu の標準クラスに対応） */
  .c-footer__nav {
    flex: 1;
    display: flex;
    gap: 0;
    justify-content: space-between;
  }
  @media (max-width: 768px) {
    /* SP：ナビ4カラムを2列グリッドで表示 */
    .c-footer__nav {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 36px 24px;
      width: 100%;
    }
  }
  .c-footer__nav-col {
    flex: 1;
  }
  .c-footer__nav-heading {
    font-size: 1rem;
    font-weight: var(--fw-medium);
    color: var(--c-text-invert);
    margin: 0 0 var(--sp-5);
    padding: 0;
    border: 0;
  }
  .c-footer__nav-heading > a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s;
  }
  .c-footer__nav-heading > a:hover { opacity: 0.7; }
  /* WP_nav_menu 出力 / 独自クラス 両対応 */
  .c-footer__nav-col .menu,
  .c-footer__nav-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .c-footer__nav-col .menu-item > a,
  .c-footer__nav-col li > a {
    font-size: 0.875rem;
    color: rgba(var(--c-on-dark), 0.65);
    transition: color 0.3s;
  }
  .c-footer__nav-col .menu-item > a:hover,
  .c-footer__nav-col li > a:hover { color: var(--c-text-invert); opacity: 1; }

  /* ---------- 中段：グループサイト（ラベル枠＋名前） ---------- */
  .c-footer__group {
    border-top: 1px solid rgba(var(--c-on-dark), 0.1);
    padding: 48px 0;
  }
  @media (max-width: 768px) {
    .c-footer__group { padding: 40px 0; }
    .c-footer__group .c-footer__inner { padding-inline: 5%; }
  }
  .c-footer__group-title {
    font-size: 1rem;
    font-weight: var(--fw-medium);
    color: var(--c-text-invert);
    margin: 0 0 var(--sp-5);
    letter-spacing: 0;
    text-transform: none;
  }
  /* 3カラムグリッド：1列目 340px 固定 + 2/3列が伸縮 */
  .c-footer__group-list {
    display: grid;
    /* 列幅は中身に合わせ、余白は列間に均等配分（テキストは折り返さない） */
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 12px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  @media (min-width: 769px) {
    .c-footer__group-name { white-space: nowrap; }
  }
  /* 3列が収まらない中間幅では2列に（左寄せ） */
  @media (max-width: 1280px) {
    .c-footer__group-list { grid-template-columns: repeat(2, auto); justify-content: start; }
  }
  @media (max-width: 768px) {
    .c-footer__group-list { grid-template-columns: 1fr; gap: 10px; }
  }
  /* ラベル＋名前のリンク */
  .c-footer__group-item {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    transition: opacity 0.3s;
  }
  .c-footer__group-item:hover { opacity: 0.7; }
  .c-footer__group-label {
    font-size: 0.6875rem;
    color: rgba(var(--c-on-dark), 0.8);
    border: 1px solid rgba(var(--c-on-dark), 0.4);
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
    min-width: 160px;
    letter-spacing: 0.05em;
    font-family: var(--ff-num);
  }
  .c-footer__group-name {
    font-size: 0.75rem;
    color: rgba(var(--c-on-dark), 0.8);
    padding-left: 12px;
    line-height: 1.4;
  }
  @media (max-width: 768px) {
    .c-footer__group-label { width: 175px; min-width: 175px; }
    .c-footer__group-name { font-size: 0.8125rem; }
  }

  /* ---------- 下段：SNS＋コピーライト（中央寄せ縦並び） ---------- */
  .c-footer__bottom {
    border-top: 1px solid rgba(var(--c-on-dark), 0.1);
    padding: 40px 0;
  }
  .c-footer__bottom .c-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  @media (max-width: 768px) {
    .c-footer__bottom .c-footer__inner { padding-inline: 5%; }
  }
  .c-footer__sns {
    display: flex;
    gap: 28px;
    align-items: center;
  }
  .c-footer__sns a {
    display: block;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    transition: opacity 0.3s;
  }
  .c-footer__sns a:hover { background: transparent; opacity: 0.7; }
  .c-footer__sns img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: none;
    opacity: 1;
  }
  .c-footer__copy {
    font-size: 0.875rem;
    color: rgba(var(--c-on-dark), 0.5);
    text-align: center;
    margin: 0;
    letter-spacing: 0;
    font-family: var(--ff-base);
  }
  .c-footer__copy a { color: rgba(var(--c-on-dark), 0.7); }

  /* ==========================================================================
     Drawing Search Modal
     ========================================================================== */
  .c-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    background: rgba(10, 20, 35, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--sp-4);
  }
  .c-modal.is-open { display: flex; }
  .c-modal__panel {
    background: var(--c-bg);
    border-radius: var(--r-lg);
    padding: var(--sp-7);
    width: 100%;
    max-width: 560px;
    position: relative;
    box-shadow: var(--sh-lg);
  }
  .c-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: var(--c-text-muted);
    font-size: 1.5rem;
  }
  .c-modal__title {
    font-size: var(--fs-h3);
    margin: 0 0 var(--sp-4);
  }

  /* ==========================================================================
     Back to top button
     ========================================================================== */
  .c-pagetop {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: calc(var(--z-fab) - 1);
    width: 44px;
    height: 44px;
    background: rgba(11, 103, 162, 0.85);
    color: var(--c-text-invert);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sh-md);
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease);
  }
  .c-pagetop.is-visible { opacity: 1; pointer-events: auto; }
  .c-pagetop:hover { background: var(--c-brand-900); opacity: 1; }
  .c-pagetop::before {
    content: "";
    width: 12px;
    height: 12px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg) translateY(2px);
  }

  /* === 追加: 定義リスト（構造解説など） === */
  .c-deflist{ list-style:none; margin:var(--sp-4) 0 0; padding:0; display:grid; gap:var(--sp-2); }
  .c-deflist > li{ display:grid; grid-template-columns:minmax(140px,200px) 1fr; gap:var(--sp-3); padding:var(--sp-3) 0; border-bottom:1px solid var(--c-line-soft); align-items:baseline; }
  .c-deflist__term{ font-weight:var(--fw-semibold); color:var(--c-brand-800); font-size:var(--fs-small); }
  .c-deflist__desc{ color:var(--c-text-muted); font-size:var(--fs-small); line-height:var(--lh-body); }
  @media (max-width:640px){ .c-deflist > li{ grid-template-columns:1fr; gap:var(--sp-1); } }

  /* === 追加: 数字スタット === */
  .c-stat{ text-align:center; padding:var(--sp-5); background:var(--c-bg); border:1px solid var(--c-line); border-radius:var(--r-md); }
  .c-stat__num{ display:block; font-family:var(--ff-num); font-weight:var(--fw-bold); font-size:clamp(2rem,4vw,2.75rem); color:var(--c-brand-800); line-height:1.1; letter-spacing:-0.01em; }
  .c-stat__unit{ font-size:var(--fs-h4); font-weight:var(--fw-semibold); margin-left:2px; }
  .c-stat__label{ display:block; margin-top:var(--sp-2); color:var(--c-text-muted); font-size:var(--fs-small); }

  /* === 追加: バッジ バリアント（お知らせ/マガジン）=== */
  .c-badge--notice{ background:var(--c-badge-notice); color:var(--c-text-invert); }
  .c-badge--magazine{ background:var(--c-brand-700); color:var(--c-text-invert); }

  /* === 追加: 小型カード（一覧グリッド用） === */
  .c-card--sm .c-card__body{ padding:var(--sp-3) var(--sp-4) var(--sp-4); }
  .c-card--sm .c-card__title{ font-size:var(--fs-small); }
}

  /* ===== ニュース／マガジン一覧（アイキャッチ付きカードリスト） ===== */
  .c-news-list { list-style: none; margin: 0; padding: 0; }
  .c-news-list__item { border-bottom: 1px solid var(--c-line); }
  .c-news-list__item:first-child { border-top: 1px solid var(--c-line); }
  .c-news-list__link {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: var(--sp-5);
    align-items: center;
    padding: var(--sp-4) var(--sp-2);
    text-decoration: none;
    color: var(--c-text);
    transition: background var(--dur) var(--ease);
  }
  .c-news-list__link:hover { background: var(--c-bg-alt); }
  .c-news-list__thumb {
    aspect-ratio: 16 / 9;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--c-bg-alt);
  }
  .c-news-list__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
  .c-news-list__link:hover .c-news-list__thumb img { transform: scale(1.05); }
  .c-news-list__meta { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
  .news_item_date { font-size: var(--fs-small); color: var(--c-text-muted); }
  /* 一覧の「New」（7/31修正④）。TOPの .news_item_new は home.css 側にあり
     一覧ページ(sub.css)では読まれないため、グローバルの当ファイルで補う。 */
  .c-news-list__meta .news_item_new,
  .c-magazine-card__meta .news_item_new {
    font-size: var(--fs-caption);
    font-weight: var(--fw-medium);
    color: #e03c3c;
  }
  .c-news-list__title { font-size: var(--fs-body); line-height: 1.6; margin: 0; font-weight: var(--fw-medium); }
  .c-news-list__link:hover .c-news-list__title { color: var(--c-brand-800); }
  @media (max-width: 640px) {
    .c-news-list__link { grid-template-columns: 110px 1fr; gap: var(--sp-3); }
  }

  /* ===== マガジン カードグリッド ===== */
  .c-magazine-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6);
  }
  .c-magazine-card { display: flex; flex-direction: column; }
  .c-magazine-card__link {
    display: flex; flex-direction: column; height: 100%;
    text-decoration: none; color: var(--c-text);
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md);
    overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .c-magazine-card__link:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
  .c-magazine-card__thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-bg-alt); }
  .c-magazine-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
  .c-magazine-card__link:hover .c-magazine-card__thumb img { transform: scale(1.06); }
  .c-magazine-card__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
  .c-magazine-card__meta { display: flex; align-items: center; gap: var(--sp-3); }
  .c-magazine-card__date { font-size: var(--fs-small); color: var(--c-text-muted); }
  .c-magazine-card__title { font-size: var(--fs-body); line-height: 1.6; margin: 0; font-weight: var(--fw-medium); }
  .c-magazine-card__link:hover .c-magazine-card__title { color: var(--c-brand-800); }
  @media (max-width: 900px) { .c-magazine-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 600px) { .c-magazine-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   縦積み製品カードの間隔（unlayered）
   WordPress の is-layout-flow が子要素の margin を 0 にするため、
   テーマの @layer 内ルールでは負ける。ここはレイヤー外(unlayered)に置き、
   WP のレイアウトCSSを上書きしてカード間に余白を確保する。
   ※間隔を変えたいときはこの --sp-6(=32px) を --sp-5(24px)/--sp-7(48px)等に
   ========================================================================== */
.c-product + .c-product { margin-block-start: var(--sp-6); }


/* ==========================================================================
   Category Card（製品カテゴリ／建築設備機材事業で共通・unlayered）
   元の文字焼き込み画像（900×675）を実測し、同じ体裁をHTMLで再現している。
   実測値：縦線 x48 幅2px / y390-634、EN 77px・行送り80px・Inter Thin(100)、
   JA 65px・Medium(500)、文字色は純白 #fff、スクリム(グラデ)なし。
   画像幅に対する比率で組むため cqw（コンテナ幅の1%）を使用。900px時 1cqw=9px。
   ========================================================================== */
.c-cat-card{ display:flex; flex-direction:column; background:var(--c-bg); border:1px solid var(--c-line); border-radius:var(--r-md); overflow:hidden; text-decoration:none; color:inherit; transition:border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.c-cat-card:hover{ border-color:var(--c-brand-300); box-shadow:var(--sh-md); transform:translateY(-2px); opacity:1; }

/* 画像エリア：ここを基準（コンテナ）にして文字を比率配置する */
.c-cat-card__media{ position:relative; aspect-ratio:4/3; background:var(--c-bg-alt); overflow:hidden; container-type:inline-size; }
.c-cat-card__media img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform 400ms var(--ease); }
.c-cat-card:hover .c-cat-card__media img{ transform:scale(1.04); }

/* 文字ブロック：左位置 x75、下端から 4.4cqw（元画像の位置） */
.c-cat-card__label{ position:absolute; left:8.333cqw; right:4cqw; bottom:4.4cqw; z-index:1; }
/* 縦線：EN上端からJA下端まで1本で貫通（元画像 y390-634・幅2px） */
.c-cat-card__label::before{ content:""; position:absolute; left:-3cqw; top:1.18cqw; bottom:.41cqw; width:max(1px,.222cqw); background:#fff; }

.c-cat-card__en{ display:block; margin:0; font-family:"Inter","Helvetica Neue",Arial,sans-serif; font-weight:100; font-size:8.556cqw; line-height:1.04; letter-spacing:0; color:#fff; text-transform:uppercase; }
.c-cat-card__ja{ display:block; margin:3.4cqw 0 0; font-family:var(--ff-base); font-weight:500; font-size:7.222cqw; line-height:1; color:#fff; }

/* コンテナクエリ非対応ブラウザ向けのフォールバック（比率固定はできないため近似） */
@supports not (container-type: inline-size){
  .c-cat-card__label{ left:8.4%; right:4%; bottom:5.5%; }
  .c-cat-card__label::before{ left:-3%; }
  .c-cat-card__en{ font-size:clamp(1.6rem,3.1vw,2.6rem); }
  .c-cat-card__ja{ font-size:clamp(1.35rem,2.6vw,2.2rem); margin-top:1.2em; }
}

.c-cat-card__body{ padding:var(--sp-4) var(--sp-4) var(--sp-5); display:flex; flex-direction:column; gap:var(--sp-2); flex:1; }
.c-cat-card__text{ font-size:var(--fs-caption); color:var(--c-text-muted); line-height:1.7; margin:0; }
.c-cat-card__count{ margin:auto 0 0; padding-top:var(--sp-3); font-family:var(--ff-num); font-size:var(--fs-caption); color:var(--c-text-subtle); }

/* ==========================================================================
   事例紹介カードの間隔（unlayered）
   .l-stack の gap は @layer 内のため WP の is-layout-flow に負ける。
   ここはレイヤー外に置いてカード間の余白を確保する。
   ※間隔を変えるときは --sp-8(64px) を --sp-7(48px)/--sp-6(32px) 等に
   ========================================================================== */
.c-case + .c-case { margin-block-start: var(--sp-8); }
