@charset "utf-8";
/* ==========================================================================
   kcci-sp.css  神奈川県商工会議所連合会  FV刷新・スマホ対応（2026-10）
   - FV（トップのスライダー）は PC・スマホ共通の新デザイン（案2：左右分割・全幅）
   - それ以外は 767px 以下のときだけ 1カラムのスマホ表示に切り替え
   ========================================================================== */

:root {
  --k-navy: #18477a;
  --k-navy-d: #123760;
  --k-line: #e3e8ef;
  --k-ink: #1f2933;
}

/* ---------------------------------------------------------------
   FV（全画面幅）
   元画像（1000×276）の左側 約660px が写真部分。写真部分だけを表示する。
   --------------------------------------------------------------- */
.kfv-src { display: none !important; }

.kfv { width: 100%; background: #fff; }
.kfv__stage {
  display: grid;
  grid-template-columns: 62% 38%;
  background: var(--k-navy);
}
.kfv__photo {
  position: relative;
  overflow: hidden;
  height: clamp(300px, 25.9vw, 520px);
  background: #dfe5ec;
}
.kfv__slide {
  position: absolute; inset: 0;
  display: block;
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: 0 50%;
  opacity: 0;
  transition: opacity .9s ease;
}
.kfv__slide.is-on { opacity: 1; z-index: 1; }
.kfv__slide, .kfv__slide:focus { outline: 0; border: 0; }

/* サイドバーの無いページ（表彰・観光土産品など）で、スマホ時だけ本文下に出すメニュー */
aside.kaside-sp { display: none !important; }
@media (min-width: 2008px) {
  .kfv__slide { background-size: 151.5% auto; background-position: 0 40%; }
}

.kfv__panel {
  color: #fff;
  padding: 32px clamp(24px, 3.5vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
}
.kfv__label { font-size: 12px; letter-spacing: .18em; opacity: .8; margin: 0; }
.kfv__name {
  font-size: clamp(24px, 2.3vw, 38px);
  font-weight: bold; line-height: 1.3;
  margin: 8px 0 6px;
}
.kfv__desc { margin: 0 0 22px; font-size: 13px; opacity: .85; line-height: 1.7; }
.kfv__btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--k-navy) !important;
  font-weight: bold; font-size: 14px; text-decoration: none !important;
  padding: 11px 24px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.kfv__btn::after { content: "\2192"; }
.kfv__btn:hover, .kfv__btn:focus-visible { background: #dbe7f5; }

.kfv__ctrl {
  width: 1000px; max-width: 100%;
  margin: 0 auto; padding: 14px 0 4px;
  display: flex; align-items: center; gap: 12px;
  box-sizing: border-box;
}
.kfv__arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--k-line); background: #fff; color: var(--k-navy);
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
}
.kfv__arrow:hover, .kfv__arrow:focus-visible { background: var(--k-navy); color: #fff; border-color: var(--k-navy); }
.kfv__count { font-size: 13px; font-weight: bold; color: var(--k-navy); min-width: 64px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.kfv__dots { display: flex; gap: 6px; margin-left: auto; }
.kfv__dots button {
  width: 18px; height: 4px; padding: 0; border: 0; border-radius: 2px;
  background: var(--k-line); cursor: pointer; transition: width .3s, background .3s;
}
.kfv__dots button.is-on { width: 36px; background: var(--k-navy); }

/* ログイン中の管理バーがヘッダーに重ならないようにする（閲覧者には影響なし） */
html:has(#wpadminbar) body { padding-top: 32px; }
@media screen and (max-width: 782px) { html:has(#wpadminbar) body { padding-top: 46px; } }

/* PC・タブレット：ヘッダーとFV操作バーをFVと同じ画面幅に揃える */
@media screen and (min-width: 768px) {
  header, header.clearfix { width: auto; padding: 0 32px; box-sizing: border-box; }
  .kfv__ctrl { width: auto; padding: 14px 32px 4px; }
}

/* ---------------------------------------------------------------
   ハンバーガーメニュー（スマホのみ表示）
   --------------------------------------------------------------- */
.kmenu-btn { display: none; }
.kmenu { display: none; }

@media screen and (max-width: 767px) {

  html { -webkit-text-size-adjust: 100%; }
  body { min-width: 0; }
  img { max-width: 100%; height: auto; }

  /* ---------- ヘッダー ---------- */
  header, header.clearfix {
    width: auto !important;
    display: flex !important; align-items: center; justify-content: space-between;
    padding: 8px 12px; box-sizing: border-box;
    border-bottom: 1px solid var(--k-line);
  }
  header::after { display: none !important; }
  header .logo { display: block; margin: 0; }
  header .logo img { width: 220px; height: auto; display: block; }
  header .rbox { display: none !important; }

  .kmenu-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 52px; height: 48px; flex: 0 0 auto;
    border: 0; border-radius: 6px; background: var(--k-navy); color: #fff;
    font-size: 10px; line-height: 1; cursor: pointer; padding: 0;
  }
  .kmenu-btn i { display: block; width: 22px; height: 2px; background: #fff; }
  .kmenu-btn span { margin-top: 2px; }

  .kmenu { display: block; position: fixed; inset: 0; z-index: 100000; visibility: hidden; overflow: hidden; }
  .kmenu.is-open { visibility: visible; }
  .kmenu__shade { position: absolute; inset: 0; background: rgba(10, 25, 45, .5); opacity: 0; transition: opacity .3s; }
  .kmenu.is-open .kmenu__shade { opacity: 1; }
  .kmenu__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 86%; max-width: 360px;
    background: var(--k-navy); color: #fff;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(100%); transition: transform .3s ease;
    box-sizing: border-box; padding: 0 0 40px;
  }
  .kmenu.is-open .kmenu__panel { transform: none; }
  .kmenu__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.2); }
  .kmenu__title { font-weight: bold; font-size: 15px; }
  .kmenu__close { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }

  .kmenu__sec { border-bottom: 1px solid rgba(255,255,255,.18); }
  .kmenu__sec > summary {
    list-style: none; cursor: pointer;
    padding: 15px 44px 15px 18px; position: relative;
    font-weight: bold; font-size: 15px; line-height: 1.5;
  }
  .kmenu__sec > summary::-webkit-details-marker { display: none; }
  .kmenu__sec > summary::after {
    content: ""; position: absolute; right: 20px; top: 50%;
    width: 8px; height: 8px; margin-top: -6px;
    border-right: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(45deg); transition: transform .2s;
  }
  .kmenu__sec[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
  .kmenu__body { background: #fff; color: #333; padding: 14px 18px; font-size: 14px; line-height: 1.7; }
  .kmenu__body a { color: var(--k-navy); }
  .kmenu__body ul { margin: 0; padding: 0; }
  .kmenu__body li { float: none !important; width: auto !important; margin: 0 !important; border-bottom: 1px dotted #ccc; }
  .kmenu__body li a { display: block; padding: 9px 4px; }
  .kmenu__body p { margin: 0 0 8px; }
  .kmenu__body .bt { margin: 0 !important; }
  .kmenu__body .bt a { display: block; padding: 9px 4px; border-bottom: 1px dotted #ccc; }
  html.kmenu-lock, html.kmenu-lock body { overflow: hidden; }

  /* ---------- FV ---------- */
  .kfv__stage { display: block; }
  .kfv__photo { height: max(200px, 41.8vw); }
  .kfv__slide { background-size: auto 100%; background-position: 0 50%; }
  .kfv__panel { padding: 16px 18px 18px; }
  .kfv__name { font-size: 22px; margin: 4px 0; }
  .kfv__desc { margin-bottom: 12px; }
  .kfv__btn { font-size: 13px; padding: 9px 20px; }
  .kfv__ctrl { padding: 10px 14px 0; }
  .kfv__dots { display: none; }

  /* ---------- 骨格：固定幅を解除して1カラムに ---------- */
  #contents,
  #main,
  #main_content_max,
  footer ul { width: auto !important; }

  #contents { display: flex; flex-direction: column; padding: 0; }
  #contents::after { display: none !important; }
  #main_content, #main_content_max { float: none !important; width: auto !important; order: 1; padding: 0 14px; box-sizing: border-box; min-width: 0; }
  #contents > aside { order: 2; }
  #contents > .page_top { order: 3; padding: 20px 14px 0; }

  /* ---------- 本文下のメニュー（サイドバー） ---------- */
  aside {
    float: none !important; width: auto !important;
    margin-top: 30px; padding: 16px 14px 20px; box-sizing: border-box;
    display: flex; flex-direction: column; gap: 14px;
  }
  aside.kaside-sp { display: flex !important; }
  aside .box { margin: 0 !important; }
  aside .box.is-search { display: none; }   /* サイト内検索はメニュー内のみ */
  aside .box.is-extra { order: 2; }          /* バナー・DVDはメニュー項目の後ろ */
  aside .box ul li { width: 50%; box-sizing: border-box; }
  aside .box .bt a { box-sizing: border-box; }
  aside .box h2 img, aside .box .box-in img { max-width: 100%; height: auto; }
  aside .video-container iframe { max-width: 100%; }

  /* ---------- 見出し・一覧 ---------- */
  .title02 { height: auto !important; }
  #main_content .title02 { font-size: 110%; }
  .info .title dt, .info .title dd, .news dt, .news dd { float: none !important; }
  .info .title dd { text-align: left; display: inline-block; margin-right: 6px; }
  .news dd span { display: inline-block; }
  #panlist { font-size: 12px; line-height: 1.6; }
  .side_category li { float: none !important; display: inline-block; }

  /* ---------- 商工会議所マップ ---------- */
  .mapback { float: none !important; width: auto !important; max-width: 500px; margin: 0 auto 16px !important; }
  ul#maplist { margin-left: 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
  ul#maplist li { float: none !important; margin: 0 !important; }

  /* ---------- 本文中の表・埋め込み ---------- */
  #main_content table, #main_content_max table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #main_content iframe, #main_content video,
  #main_content_max iframe, #main_content_max video { max-width: 100%; }
  .cons, section { word-wrap: break-word; overflow-wrap: anywhere; }
  .btback { width: auto !important; }

  /* ---------- フッター ---------- */
  footer { padding: 14px; }
  footer > div { width: auto !important; padding-left: 0 !important; }
  footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  footer ul li { float: none !important; margin: 0 !important; width: calc(50% - 4px) !important; height: auto !important; text-align: center; }
  footer ul li img { max-width: 100%; height: auto; }
}


/* ==========================================================================
   2026-10-27 追加調整
   ========================================================================== */
/* PC：ロゴを左端に寄せる */
@media screen and (min-width: 768px) {
  header, header.clearfix { padding-left: 0; }
}

@media screen and (max-width: 767px) {
  /* スマホ：ヘッダー背景をロゴの背景色に合わせる */
  header, header.clearfix { background: #18477a; padding: 0 10px 0 0 !important; border-bottom: 0; }
  header .logo img { width: 230px; }
  .kmenu-btn { background: transparent; border: 1px solid rgba(255,255,255,.6); }

  /* スマホ：県内商工会議所マップ（クリック範囲ごと画面幅に合わせて縮小） */
  .mapback { width: 500px !important; max-width: none !important; margin: 0 auto 16px !important; }
  @media (min-width: 300px) and (max-width: 309.98px) { .mapback { zoom: 0.512; } }
  @media (min-width: 310px) and (max-width: 319.98px) { .mapback { zoom: 0.532; } }
  @media (min-width: 320px) and (max-width: 329.98px) { .mapback { zoom: 0.552; } }
  @media (min-width: 330px) and (max-width: 339.98px) { .mapback { zoom: 0.572; } }
  @media (min-width: 340px) and (max-width: 349.98px) { .mapback { zoom: 0.592; } }
  @media (min-width: 350px) and (max-width: 359.98px) { .mapback { zoom: 0.612; } }
  @media (min-width: 360px) and (max-width: 369.98px) { .mapback { zoom: 0.632; } }
  @media (min-width: 370px) and (max-width: 379.98px) { .mapback { zoom: 0.652; } }
  @media (min-width: 380px) and (max-width: 389.98px) { .mapback { zoom: 0.672; } }
  @media (min-width: 390px) and (max-width: 399.98px) { .mapback { zoom: 0.692; } }
  @media (min-width: 400px) and (max-width: 409.98px) { .mapback { zoom: 0.712; } }
  @media (min-width: 410px) and (max-width: 419.98px) { .mapback { zoom: 0.732; } }
  @media (min-width: 420px) and (max-width: 429.98px) { .mapback { zoom: 0.752; } }
  @media (min-width: 430px) and (max-width: 439.98px) { .mapback { zoom: 0.772; } }
  @media (min-width: 440px) and (max-width: 449.98px) { .mapback { zoom: 0.792; } }
  @media (min-width: 450px) and (max-width: 459.98px) { .mapback { zoom: 0.812; } }
  @media (min-width: 460px) and (max-width: 469.98px) { .mapback { zoom: 0.832; } }
  @media (min-width: 470px) and (max-width: 479.98px) { .mapback { zoom: 0.852; } }
  @media (min-width: 480px) and (max-width: 489.98px) { .mapback { zoom: 0.872; } }
  @media (min-width: 490px) and (max-width: 499.98px) { .mapback { zoom: 0.892; } }
  @media (min-width: 500px) and (max-width: 509.98px) { .mapback { zoom: 0.912; } }
  @media (min-width: 510px) and (max-width: 519.98px) { .mapback { zoom: 0.932; } }
  @media (min-width: 520px) and (max-width: 529.98px) { .mapback { zoom: 0.952; } }
  @media (min-width: 530px) and (max-width: 543.98px) { .mapback { zoom: 0.972; } }

  /* スマホ：バナー・紹介DVDを横幅いっぱいに */
  aside .box.is-extra h2 { padding: 12px !important; }
  aside .box.is-extra h2 a { display: block; }
  aside .box.is-extra h2 img { display: block; width: 100% !important; height: auto !important; }
  aside .box.is-extra .box-in { padding-left: 12px !important; padding-right: 12px !important; }
  aside .video-container { position: static !important; padding: 0 !important; height: auto !important; width: 100% !important; }
  aside .video-container iframe { position: static !important; display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }
}

/* 2026-10-27 追加調整2 */
/* sub.css の管理バー用余白（body.customize-support { margin-top: 50px }）と重複しないようにする */
html:has(#wpadminbar) body.customize-support { margin-top: 0; }
/* トップ以外：ヘッダー（ロゴ）と本文の間に余白 */
@media screen and (min-width: 768px) {
  header + #contents { margin-top: 24px; }
}

/* ==========================================================================
   表のスマホ表示（カード化）  2026-10-27
   ========================================================================== */
.kcards { display: none; }
@media screen and (max-width: 767px) {
  table.kcards-src { display: none !important; }
  .kcards { display: block; margin: 12px 0 24px; }
  .kcards__tools {
    position: sticky; top: 0; z-index: 5;
    background: #fff; padding: 10px 0 8px; margin-bottom: 4px;
    border-bottom: 1px solid #e3e8ef;
  }
  .kcards__select, .kcards__search {
    display: block; width: 100%; box-sizing: border-box;
    font-size: 16px; padding: 10px 12px; margin: 0 0 8px;
    border: 1px solid #b8c4d2; border-radius: 6px; background: #fff; color: #1f2933;
  }
  .kcards__count { margin: 0; font-size: 12px; color: #52606d; }
  .kcards__group {
    margin: 18px 0 8px; padding: 8px 12px;
    background: #18477a; color: #fff; font-size: 15px; font-weight: bold; border-radius: 4px;
  }
  .kcard {
    border: 1px solid #dfe5ec; border-radius: 8px; background: #fff;
    padding: 12px 14px; margin: 0 0 10px; box-shadow: 0 1px 2px rgba(20,52,87,.06);
  }
  .kcard__head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
  .kcard__no {
    flex: 0 0 auto; min-width: 26px; text-align: center;
    font-size: 12px; font-weight: bold; color: #18477a; background: #e8eef6; border-radius: 4px; padding: 1px 6px;
  }
  .kcard__title { font-size: 16px; font-weight: bold; line-height: 1.5; color: #1f2933; }
  .kcard__dl { margin: 0; }
  .kcard__row { display: flex; gap: 10px; padding: 5px 0; border-top: 1px dotted #dfe5ec; font-size: 14px; line-height: 1.6; }
  .kcard__row:first-child { border-top: 0; }
  .kcard__row dt { flex: 0 0 5.5em; color: #52606d; font-size: 12px; padding-top: 2px; }
  .kcard__row dd { flex: 1 1 auto; margin: 0; min-width: 0; overflow-wrap: anywhere; }
  .kcard__row dd a { color: #18477a; }
  .kcard__map { display: inline-block; margin-left: 4px; font-size: 12px; padding: 0 6px; border: 1px solid #b8c4d2; border-radius: 3px; text-decoration: none; }
  .kcard__imgs { display: flex; gap: 6px; margin-top: 8px; }
  .kcard__imgs a, .kcard__imgs img { flex: 1 1 0; min-width: 0; }
  .kcard__imgs img { display: block; width: 100%; height: auto; border-radius: 4px; }

  /* 2列以下の表（項目：内容 の表や写真の表）は縦に並べる */
  #main_content table:not(.kcards-src), #main_content_max table:not(.kcards-src) { display: table; width: 100% !important; overflow: visible; }
  #main_content table:not(.kcards-src) td, #main_content_max table:not(.kcards-src) td,
  #main_content table:not(.kcards-src) th, #main_content_max table:not(.kcards-src) th { overflow-wrap: anywhere; }
  table.shop_img td { width: 50%; }
  table.shop_img img { width: 100%; height: auto; }
}
