/* =========================================================
   Header（スタンドアローン：他CSSに依存しない）
   ========================================================= */
.site-header{
  position:relative;
  z-index:100;
  background:#fff;
  /* box-shadow:0 1px 0 rgba(0,0,0,.05); */
}

/* 3カラム（ロゴ｜メニュー｜CTA） */
.site-header .container{
  max-width: var(--page-max);   /* 1440px */
  margin: 0 auto;
  padding: 10px 20px;

  display: grid;
  grid-template-columns: auto 1fr auto; /* ロゴ｜メニュー｜CTA */
  align-items: center;
  column-gap: 24px;
}

.site-logo img{ display:block; height:40px; }

.site-nav .nav-list{
  display:flex; gap:24px; list-style:none; margin:0; padding:0;
}
.site-nav .nav-list > li > a{
  display:inline-block; padding:10px 4px;
  color:#111; text-decoration:none; font-weight:500;
}
.site-nav .nav-list > li > a:hover{ opacity:.85 }

.header-actions{ display:flex; gap:12px; }

.btn-header{
  display:inline-flex; align-items:center; justify-content:center;
  height:40px; padding:0 16px;
  font-weight:700; text-decoration:none; color:#fff;
}
.btn-join{ background:#0D774A; }
.btn-contact{ background:#EB6238; }

/* 960px以下：最小の折返し */
@media (max-width:960px){
  .site-header .container{ grid-template-columns:auto 1fr; row-gap:8px; }
  .header-actions{ justify-self:end; }
  .site-nav .nav-list{ flex-wrap:wrap; row-gap:6px; }
}

/* =========================================
   Header (isolated) — 1440px container
   Project: 青梅法人会
   ========================================= */

/* ヘッダーの土台：常に独立スコープ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  /* border-bottom: 1px solid var(--color-border, #E0E6ED); */
}

/* コンテナ幅：中央寄せ・最大1440px */
.site-header .header-inner{
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* ブランド */
.site-branding{
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

/* ナビ（ULのリセット＋横並び） */
.site-header ul,
.site-header nav ul,
.site-header .menu,
.site-header #primary-menu{
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header nav ul,
.site-header .menu,
.site-header #primary-menu{
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

.site-header li{ margin: 0; }
.site-header nav ul li::marker{ content:""; }

.site-header .primary-nav{ margin-left: auto; }

/* メニューリンク */
.site-header .menu a,
.site-header #primary-menu a{
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: var(--color-text, #1A1A1A);
  font-weight: 600;
  line-height: 1;
}

/* サブメニュー（必要最低限） */
.primary-nav .menu > li{ position: relative; }
.primary-nav .menu li:hover > .sub-menu{ display: block; }

.primary-nav .sub-menu{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--color-border, #E0E6ED);
  padding: 8px 0;
  margin: 0;
  list-style: none;
}
.primary-nav .sub-menu li a{ padding: 8px 12px; }

/* CTA ボタン（ヘッダー専用スタイル） */
.header-ctas{
  display: flex;
  gap: 12px;
}
.header-ctas .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  text-decoration: none;
  line-height: 1;
  border: 1px solid var(--color-border, #E0E6ED);
  box-shadow: none;
  transform: none;
}

/* カラールール：#008CD6 をプライマリとして固定 */
.header-ctas .btn--primary{
  background: var(--color-primary, #008CD6);
  color: #fff;
  border-color: var(--color-primary, #008CD6);
}

/* ホバー／フォーカス（アクセシビリティ強化） */
.site-header a:focus-visible,
.header-ctas .btn:focus-visible{
  outline: 3px solid rgba(0,140,214,.35);
  outline-offset: 2px;
}
.header-ctas .btn--primary:hover{ filter: brightness(0.95); }
.header-ctas .btn:hover{ background: rgba(0,0,0,.02); }

/* モバイル簡易対応（JSなしの当面措置） */
@media (max-width: 1024px){
  .site-header .header-inner{ flex-wrap: wrap; gap: 12px; }
  .primary-nav{ order: 10; width: 100%; }
  .site-header .menu,
  .site-header #primary-menu{
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid var(--color-border, #E0E6ED);
    padding-top: 8px;
  }
  .header-ctas{ margin-left: auto; }
}

/* CTA 専用色分けルール */
.header-ctas .btn-join {
  background: #0D774A;
  color: #fff;
  border-color: #0D774A;
}
.header-ctas .btn-join:hover {
  filter: brightness(0.95);
}

.header-ctas .btn-contact {
  background: #EB6238;
  color: #fff;
  border-color: #EB6238;
}
.header-ctas .btn-contact:hover {
  filter: brightness(0.95);
}

/* =========================================
   CTA buttons (Header) – color & states
   ========================================= */

.header-ctas .btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 16px; line-height:1;
  text-decoration:none; border:1px solid transparent;
  transition: filter .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}

.header-ctas .btn-join{
  background:#0D774A;        /* base */
  color:#fff;
  border-color:#0D774A;
}
.header-ctas .btn-join:hover,
.header-ctas .btn-join:focus-visible{    /* rollover */
  background:#0A5F3B;
  border-color:#0A5F3B;
}
.header-ctas .btn-join:active{           /* press */
  background:#084A2E;
  border-color:#084A2E;
}

.header-ctas .btn-contact{
  background:#EB6238;        /* base */
  color:#fff;
  border-color:#EB6238;
}
.header-ctas .btn-contact:hover,
.header-ctas .btn-contact:focus-visible{ /* rollover */
  background:#D9552E;
  border-color:#D9552E;
}
.header-ctas .btn-contact:active{        /* press */
  background:#B74626;
  border-color:#B74626;
}

/* アクセシブルなフォーカスリング */
.header-ctas .btn:focus-visible{
  outline:3px solid rgba(0,140,214,.35);
  outline-offset:2px;
}

/* =========================================
   Home Hero Slider – 1440px container cap
   ========================================= */

/* 代表的なクラス名をまとめて“器”を中央寄せで1440pxに制限 */
.home .hero-block,
.home .hero,
.home .hero-slider,
.home .wp-block-group.is-hero,
.home .swiper,                 /* Swiper.js のコンテナ想定 */
.home .slick-slider{           /* Slick のコンテナ想定 */
  max-width:1440px;
  margin:0 auto;
}

/* スライド内の画像/カバーを枠内で伸縮 */
.home .hero-block img,
.home .hero img,
.home .swiper img,
.home .slick-slider img,
.home .hero-block .wp-block-cover__image-background{
  width:100%;
  height:auto;
  display:block;
}

/* 矢印ボタンが外に飛び出す場合の内側寄せ（必要に応じて調整） */
.home .hero .swiper-button-prev,
.home .hero .swiper-button-next,
.home .slick-slider .slick-prev,
.home .slick-slider .slick-next{
  left:16px; right:auto;
}
.home .hero .swiper-button-next,
.home .slick-slider .slick-next{
  left:auto; right:16px;
}


/* =========================================
    Header 10/1 以降追加
    Project: 青梅法人会
   ========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  /* border-bottom: 1px solid var(--color-border, #E0E6ED); */
}

/* コンテナ幅：中央寄せ・最大1440px */
.site-header .header-inner {
  max-width: 1440px;
  margin: auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.site-header .site-logo {
  background: #fff;
  padding: 12px 24px;
  height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
    
    z-index: 300;
}

.site-header .site-logo img {
  height: 38px;
}

.site-header .btn-ctas {
  display: flex;
  align-items: center;
}

.site-header .btn {
  color: #fff;
  width: 146px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
    z-index:900;
}

.site-header .btn-contact {
  background: #eb6238;
}

.site-header .btn-join {
  background: #007b43;
}

.site-header .btn-hmb {
  display: none;
}

.site-header .header-nav {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header .header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  margin-left: 217px;
}

.site-header .header-nav a {
  background: #fff;
  color: #111111;
  font-size: 16px;
  padding: 16px 14px 12px 14px;
  text-decoration: none;
  display: block;
}

.site-header ul.header-nav__sub {
  display: none;
  overflow-y: scroll;
}

.site-header ul.header-nav__sub a {
  border-bottom: none;
}

@media screen and (max-width: 1239px) {
  .site-header .header-nav ul {
    gap: 0;
  }

  .site-header .header-nav a {
    background: #fff;
    color: #111111;
    font-size: 14px;
    padding: 16px 14px 12px 14px;
    text-decoration: none;
    display: block;
  }
}

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

  .site-header .header-inner {
    background: #fff;
    height: 46px;
    position: relative;
    display: flex;
    justify-content: right;
    z-index: 10;
  }

  .site-header .site-logo {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
  }

  .site-header .header-nav {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #008CD6;
    z-index: 1;
    top: 0;
    display: none;
  }

  .site-header .header-nav ul {
    flex-direction: column;
    margin: auto;
    width: 80%;
    align-items: baseline;
    padding-top: 120px;
  }

  .site-header .header-nav li {
    width: 100%;
  }

  .site-header .header-nav a {
    background: none;
    color: #fff;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,.2);
  }

  .site-header ul.header-nav__sub {
    display: block;
    padding: 0 0 0 8px;
  }

  .site-header .btn {
    height: 46px;
  }

  .site-header .btn-hmb {
    height: 36px;
    width: 36px;
    border: 1px solid #AFAFAF;
    display: block;
    margin: 0 24px 0 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .site-header .btn-hmb span {
    width: 20px;
    height: 2px;
    background: #000;
    display: block;
  }

  .site-header .btn-hmb span::before {
    content: "";
    width: 20px;
    height: 2px;
    background: #000;
    display: block;
    position: absolute;
    top: 10px;
  }

  .site-header .btn-hmb span::after {
    content: "";
    width: 12px;
    height: 2px;
    background: #000;
    display: block;
    position: absolute;
    bottom: 10px;
  }
}

@media screen and (max-width: 768px) {
    .site-header{
    padding-bottom: 5px;
    border-bottom: 1px solid var(--color-border);
    }
  .site-header .header-inner {
    height: 56px;
  }

  .site-header .site-logo {
    padding: 12px;
    height: 56px;
  }

  .site-header .header-nav a {
    padding: 12px 14px 8px 14px;
  }

  .site-header ul.header-nav__sub {
    font-size: 14px;
  }

  .site-header .btn-ctas {
    display: flex;
    align-items: center;
  }

  .site-header .btn-join {
    display: none;
    font-size: 16px;
    padding: 16px;
    width: 50%;
    position: absolute;
    left: 0;
    top: 56px;
    text-align: center;
    padding: 8px;
  }

  .site-header .btn-contact {
    display: none;
    font-size: 16px;
    width: 50%;
    position: absolute;
    right: 0;
    top: 56px;
    text-align: center;
    padding: 8px;
  }
}
/* =========================================================
 * 会員ログインアイコン
 * ========================================================= */
.member_icn {
  position: fixed;
  right: 0;
  top: 120px; /* PC位置 */
  z-index: 999;
}

.member_icn a {
  display: inline-block;
  width: 44px;
}

.member_icn img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.member_icn a:hover img {
  opacity: 0.8;
}

/* タブレット調整 */
@media (max-width: 1024px) {
  .member_icn {
    top: 110px;
    right: 0;
  }
    
.member_icn a {
  display: inline-block;
  width: 35px;
}
}
/*PCでは非表示*/
.pc_hide{
    display: none;
}
/* スマホ時は非表示 */
@media (max-width: 768px) {
  .member_icn {
    display: none;
  }
.pc_hide{
    display: block;
    }
}

/* =========================================
    Footer 10/1 以降追加
    Project: 青梅法人会
   ========================================= */

footer {
  background: #007b43;
  padding: 30px 36px 80px;
}

.site-footer {
  width: 100%;
  max-width: 1440px;
  margin: auto;
  display: flex;
  justify-content: space-between;
}

.site-footer__nav div {
  display: flex;
  gap: 32px;
}

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.site-footer__nav a {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
}

.site-footer__nav ul.list-adjust li {
  margin-bottom: 20px;
}

.site-footer__sns {
  display: flex;
  gap: 20px;
  position: absolute;
  align-items: center;
  left: 0;
  bottom: 0;
  fill: #ccc;
}

.site-footer__sns img,
.site-footer__sns svg {
  width: 15px;
  fill: #ccc;
}

.site-footer__company {
  color: #fff;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__company img {
  width: 132px;
}
site-footer__company a,
site-footer__company a:hover,
site-footer__company a:active,
site-footer__company a:visited{
    color:#fff;
    text-decoration: none;
}
.site-footer__copy {
  color: #fff;
  font-size: 12px;
  text-align: center;
  margin-top: 40px;
}

@media screen and (max-width: 1023px) {
  .site-footer {
    gap: 40px;
    flex-direction: column;
  }

  .site-footer__nav div {
    justify-content: center;
  }

  .site-footer__company {
    align-items: center;
    text-align: left;
  }
}

@media screen and (max-width: 768px) {
  .site-footer__nav div {
    flex-direction: column;
    gap: 0;
  }

  .site-footer__nav ul.list-adjust li {
    margin-bottom: 0;
  }

  .site-footer__sns {
    position: relative;
    margin-top: 16px;
  }

  .site-footer__sns img {
    width: 24px;
  }
}

/* =========================================================
   Footer Line Art (背景SVG)
   ========================================================= */
.footer-lineart {
  width: 100%;
  height: 140px;
  background: url("../images/footer-lineart.svg") center calc(100% + 25px) repeat-x;
  background-size: contain;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* フッター本体との隙間をなくす */
.site-footer {
  position: relative;
  color: #fff;
}

/* SPで少し高さを抑える */
@media screen and (max-width: 768px) {
  .footer-lineart {
    height: 100px;
    background-size: cover;
  }
}


/* =========================================================
 * Footer Banner Area（PC & SP共通）
 * ========================================================= */
.c-footerbanner {
  margin-top: 40px;
  background: #fff;
  border-top: 1px solid var(--color-border, #ddd);
  padding: 24px 0;
  position: relative;
}

.c-footerbanner__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 40px;
}

/* --- リンク・画像共通設定 --- */
.c-footerbanner__inner a {
  display: block;
  transition: transform .2s ease, opacity .2s ease;
}
.c-footerbanner__inner a:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}
.c-footerbanner__inner img {
  display: block;
  height: 70px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  border: 1px solid #ddd;
  background: #fff;
}

/* =========================================================
 * Footer Banner – SP（Swiperカルーセル）
 * ========================================================= */
@media (max-width: 767px) {
  .c-footerbanner {
    padding: 20px 0 30px;
    overflow: hidden;
  }

  .c-footerbanner__inner {
    display: block; /* Swiper構造に変換される想定 */
    overflow: hidden;
    padding: 0 20px;
  }

  .c-footerbanner__inner .swiper-wrapper {
    display: flex;
  }

  .c-footerbanner__inner .swiper-slide {
    width: 80%;
    flex-shrink: 0;
    text-align: center;
  }

  .c-footerbanner__inner .swiper-pagination {
    margin-top: 10px;
    text-align: center;
  }

  .c-footerbanner__inner img {
    width: 100%;
    height: auto;
  }
}
/* =========================================================
 * Footer Banner Area – Responsive (PC + SP)
 * ========================================================= */
.c-footerbanner {
  margin-top: 40px;
  border-top: 1px solid #ddd;
  background: #fff;
  padding: 20px 0 40px; /* ← ドット分の下余白を追加 */
  position: relative;
  overflow: hidden;
}

.c-footerbanner__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0 40px;
}

/* --- PC --- */
@media (min-width: 768px) {
  .c-footerbanner__inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  .c-footerbanner__inner a img {
    width: auto;
    height: 70px;
  }
}

/* --- SPカルーセル（Swiper） --- */
@media (max-width: 767px) {
    .c-footerbanner{
        display: none;
    }
  .c-footerbanner {
    padding: 20px 0 50px; /* ドットと画像が重ならないよう調整 */
  }

  .c-footerbanner__inner {
    display: block;
    overflow: hidden;
    padding: 0 20px;
  }

  .c-footerbanner__inner .swiper-wrapper {
    display: flex;
  }

  .c-footerbanner__inner .swiper-slide {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    flex-shrink: 0;
  }

  .c-footerbanner__inner .swiper-pagination {
    position: absolute;
    bottom: 15px;
    text-align: center;
    left: 0;
    right: 0;
  }

  .c-footerbanner__inner img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    background: #fff;
  }
}

/* --- ドットのデザイン（シンプル） --- */
.swiper-pagination-bullet {
  background: #999;
  opacity: 0.4;
  transition: opacity .3s ease;
}
.swiper-pagination-bullet-active {
  background: #008cd6; /* 青梅ブルー */
  opacity: 1;
}

