/*
Theme Name: FFBA2026-b
Author: G2
Description: 福岡フードビジネス協会2026。業種をタグ付けするように表示
Version: 1.0.0
*/

:root {
    /* カラーパレット */
    --color-main: #ed7117;
    --color-bg-base: #f9f5ed;
    --color-text-main: #333333;
    --color-white: #ffffff;
    
    /* フォント設定 (Google Fonts) */
    --font-serif: 'Noto Serif JP', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-en: 'Noto Serif JP', serif;

    /* ヘッダーの高さ */
    --header-height: 80px;
}

/* =========================================================
   Base & Reset
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}


/* =========================================================
   フェードイン・アニメーション共通ベース
========================================================= */
.js-hero-fade {
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* サイトが読み込まれたあと、JSで .is-loaded をつけて現れる */
.js-hero-fade.is-loaded {
  opacity: 1;
}

/* 基本の「下からふわっと（単発）」 */
.js-fade {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 2.0s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 2.0s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 左右からふわっと（見出しや画像などで変化をつけたい場合） */
.js-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 2.0s cubic-bezier(0.16, 1, 0.3, 1), transform 2.0s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 少しズームアウトしながら現れる（バナー・イメージ画像用） */
.js-fade-zoom {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 共通：画面に入ったら元に戻る（表示される） */
.js-fade.is-inview,
.js-fade-left.is-inview,
.js-fade-zoom.is-inview {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* =========================================================
   li やカードリストを「順番に（時間差で）」出すルール
========================================================= */
/* 親要素（ulなど）に .js-fade-list をつけ、子要素（liなど）を隠しておく */
.js-fade-list > * {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 2.0s cubic-bezier(0.16, 1, 0.3, 1), transform 2.0s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 親が画面に入ったら、子要素を最大6個目まで「0.2秒ずつ遅らせて」表示 */
.js-fade-list.is-inview > *:nth-child(1) { transition-delay: 0.0s; opacity: 1; transform: translateY(0); }
.js-fade-list.is-inview > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.js-fade-list.is-inview > *:nth-child(3) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.js-fade-list.is-inview > *:nth-child(4) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.js-fade-list.is-inview > *:nth-child(5) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }
.js-fade-list.is-inview > *:nth-child(6) { transition-delay: 1.0s; opacity: 1; transform: translateY(0); }
/* 7個目以降は全て0.6秒遅れで一斉に表示 */
.js-fade-list.is-inview > *:nth-child(n+7) { transition-delay: 1.2s; opacity: 1; transform: translateY(0); }



/* =========================================================
   Header Layout
   ========================================================= */
/* =========================================================
   ヘッダー全体（スクロールで消える部分）
   ========================================================= */
.l-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 100;
}
.l-header__inner {
    position: relative;
    width: 100%;
    height: 100%;
}

@media screen and (max-width: 767px) {
    .l-header {
        height: 100px;
    }
}


/* =========================================================
   ロゴ
   ========================================================= */
.l-header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    z-index: 101;
}
.l-header__logo img{
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.8));
}

@media screen and (max-width: 767px) {
    .l-header__logo {
        left: 5%;
        transform: translateY(-50%);
    }
    .l-header__logo img{
        width: 250px;
        height: 50px;
    }
}


/* =========================================================
   ロゴの下の白い横線
   ========================================================= */
.l-header__line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 1px;
    background-color: var(--color-white);
    z-index: 101;
}

/* =========================================================
   右側エリア（スクロールしても追従・固定される部分）
   ========================================================= */
.l-header__right {
    position: fixed;
    top: 25px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 9999;
}

/* =========================================================
   言語切り替えスイッチ (JP/EN 単一ボタン)
   ========================================================= */
.p-header-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-main);
    color: var(--color-white) !important;
    font-family: var(--font-en);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(205, 90, 40, 0.2);
}

.p-header-lang-btn:hover {
    opacity: 0.7;
}

@media screen and (max-width: 767px) {
    .p-header-lang-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* メニュー展開時 */
.l-header__right:has(.l-header__hamburger.is-active) .p-header-lang a {
    color: var(--color-text-main);
}
.l-header__right:has(.l-header__hamburger.is-active) .p-header-lang li.current-lang a {
    color: var(--color-main);
}

@media screen and (max-width: 767px) {
    .l-header__right {
        gap: 12px;
    }
    .p-header-lang li {
        font-size: 0.75rem;
    }
}

/* =========================================================
   Hamburger Button (PC/SP共通)
   ========================================================= */
.l-header__hamburger {
    position: relative;
    margin-left: auto;
    width: 50px;
    height: 50px;
    background: transparent;
    filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.4));
    border: none;
    cursor: pointer;
    z-index: 110;
    padding: 0;
}

.hamburger-line {
    position: absolute;
    left: 8px;
    width: 28px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) { top: 10px; }
.hamburger-line:nth-child(2) { top: 18px; }
.hamburger-line:nth-child(3) { top: 26px; }

/* ハンバーガー展開時 */
.l-header__hamburger.is-active .hamburger-line:nth-child(1) {
    top: 18px;
    transform: rotate(45deg);
    background-color: var(--color-text-main);
}
.l-header__hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.l-header__hamburger.is-active .hamburger-line:nth-child(3) {
    top: 18px;
    transform: rotate(-45deg);
    background-color: var(--color-text-main);
}
/* MENUテキスト */
.hamburger-text {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--color-white);
    transition: color 0.3s;
}

.l-header__hamburger.is-active .hamburger-text {
    color: var(--color-text-main);
}


/* =========================================================
   Drawer Menu (Fullscreen / 右からのスライド)
   ========================================================= */
.l-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-base);
    z-index: 105;
    visibility: hidden;
    
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.l-header__nav.is-active {
    transform: translateX(0);
    visibility: visible;
}

.l-header__nav-inner {
    text-align: center;
}

.p-global-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.p-global-nav li {
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-family: var(--font-serif);
}


/* =========================================================
   Footer Layout
   ========================================================= */
.l-footer {
    background-color: #1a1b20; 
    color: var(--color-white);
    margin-top: 80px;
}

.l-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.l-footer__name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: 0.05em;
}

.l-footer__address {
    font-size: 0.875rem;
    line-height: 1.8;
    margin: 0;
    opacity: 0.8;
}

/* 右側：フッターメニュー（ul）のデザイン */
.l-footer__menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.l-footer__menu a {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.l-footer__menu a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* スマートフォン表示（767px以下の場合）：縦積みに変更 */
@media screen and (max-width: 767px) {
  .l-footer__inner {
    flex-direction: column;
    gap: 32px;
  }
}

/* =========================================================
   Footer Copyright
   ========================================================= */
.l-footer__copyright {
    background-color: var(--color-main);
    color: var(--color-white);
    text-align: center;
    padding: 12px 20px;
}

.l-footer__copyright small {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    letter-spacing: 0.05em;
}

/* =========================================================
   Back to Top Button
   ========================================================= */
.c-back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-main);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 90; /* フッターより上、ドロワーより下 */
    
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-back-to-top.is-active {
    opacity: 1;
    visibility: visible;
}

.c-back-to-top:hover {
    background-color: var(--color-text-main);
}

.c-back-to-top__arrow {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 2px solid var(--color-white);
    border-left: 2px solid var(--color-white);
    transform: translateY(3px) rotate(45deg);
}

@media screen and (max-width: 767px) {
    .c-back-to-top {
        right: 15px;
        bottom: 15px;
        width: 44px;
        height: 44px;
    }
}


/* =========================================================
   Layout Settings
   ========================================================= */
.l-section {
    padding: 80px 0;
}
.l-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.u-text-center { text-align: center; }
.u-mt-40 { margin-top: 40px; }

/* 共通タイトル */
.c-sec-title {
    text-align: center;
    color: var(--color-main);
    font-size: 2rem;
    margin-bottom: 40px;
}
.c-sec-title span {
    display: block;
    font-size: 1rem;
    color: #999999;
    margin-top: 8px;
    font-family: var(--font-sans);
}

/* 共通ボタン */
.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 200px;
    padding: 16px 32px;
    background-color: var(--color-main);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.c-btn::after {
    content: "→";
    font-family: var(--font-en);
    font-weight: 400;
    transition: transform 0.3s ease;
}
.c-btn:hover::after {
    transform: translateX(4px);
}
.c-btn:hover {
    background-color: #e07700;
    color: var(--color-white);
}

/* ボタン派生：ダウンロード用ボタン */
.c-btn.c-btn--download {
    border-radius: 100vh;
}
/* アイコンを下矢印に変更 */
.c-btn.c-btn--download::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f019";
}
.c-btn.c-btn--download:hover::after {
    transform: translateY(4px);
}

/* ボタン派生：お問い合わせ（メール）用ボタン */
table .c-btn.c-btn--mail {
    border-radius: 9999px;
    border: 2px solid var(--color-main);
    background: var(--color-white);
    color: var(--color-main) !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.c-btn.c-btn--mail::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    content: "\f0e0";
}
table .c-btn.c-btn--mail:hover {
    background-color: var(--color-main);
    color: var(--color-white) !important;
}


/* =========================================================
   パンくずリスト
========================================================= */
.c-breadcrumb {
    background-color: #f7f7f7;
    padding: 12px 0;
    font-size: 0.8125rem;
    color: #666;
}
.c-breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}
.c-breadcrumb a:hover {
    color: #FF8500;
    text-decoration: underline;
}
.c-breadcrumb span[property="itemListElement"] {
    display: inline-block;
}



/* =========================================================
   front-page
   ========================================================= */
/* =========================================================
   Hero Slider
   ========================================================= */
.p-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    
    aspect-ratio: 13 / 8;
    max-height: 100vh;
    
    overflow: hidden;
}

@media screen and (max-width: 767px) {
    .p-hero {
        aspect-ratio: 13 / 8;
    }
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
}

.p-hero__catch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100; /* Swiperの要素より確実に上に乗せる */
    width: 100%;
    text-align: center;
    pointer-events: none;
    font-size: 2.5em;
    color: #fff;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.1em;
}
@media screen and (max-width: 767px) {
    .p-hero__catch {
        top: 60%;
        font-size: 1.2em;
    }
}

.hero-slider .swiper-pagination {
    position: absolute !important;
    bottom: 100px !important;
    z-index: 9999 !important;
}
.hero-slider .swiper-pagination-bullet {
    background-color: #ffffff !important;
    opacity: 0.5 !important;
}
.hero-slider .swiper-pagination-bullet-active {
    background-color: #ffffff !important;
    opacity: 1 !important;
}

.swiper-button-prev,
.swiper-button-next {
    color: #ffffff !important;
}
.swiper-button-prev {
    left: 20px !important;
}
.swiper-button-next {
    right: 20px !important;
}
@media screen and (max-width: 767px) {
    .hero-slider .swiper-pagination {
        bottom: 50px !important;
    }
    .swiper-button-prev,
    .swiper-button-next {
        transform: scale(0.6) !important;
    }
}

/* =========================================================
   Aboutセクションをヒーローに被せる（白いボックス）
   ========================================================= */
.p-logo{
    margin: 0 auto 50px;
    text-align: center;
}
.p-about {
    position: relative;
    z-index: 20; /* ヒーロー画像(10)より上に乗せる */
    background-color: var(--color-white);
    max-width: 1000px;
    width: 90%;
    margin: -80px auto 0;
    padding: 60px 40px 100px;
    border-radius: 20px 20px 0 0;
}
.p-about__text{
    text-align: center;
}

@media screen and (max-width: 767px) {
    .p-about {
        margin-top: -40px;
        padding: 40px 20px;
    }
}


/* =========================================================
   Memberセクションの背景色追加
   ========================================================= */
.p-member {
    background-color: #f4edda;
    width: 100%;
}


/* =========================================================
   Grid Layout (最大3列並び、折り返し)
   ========================================================= */
.c-grid-3 {
    display: grid;
    /* パソコンでは3列（1fr 1fr 1fr）、隙間30px */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
@media screen and (max-width: 767px) {
    .c-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Grid Layout（1〜2件の時は中央寄せにする3列）
========================================================= */
.c-grid-3--center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.c-grid-3--center > * {
    /* ギャップ(30px × 2ヶ所 = 60px)を引いて3で割る */
    width: calc((100% - 60px) / 3);
}
@media screen and (max-width: 767px) {
    .c-grid-3--center > * {
        width: 100%;
    }
}

/* =========================================================
   Component Styles
   ========================================================= */
/* Member */
.p-member__item {
    background-color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-radius: 8px; 
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.p-member__item:hover {
    transform: translateY(-5px); /* 上に5px移動 */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* 枠全体をクリッカブルにする */
.p-member__item a {
    display: block;
    text-decoration: none;
    color: var(--color-text-main);
    height: 100%; /* aタグの高さを親要素に合わせて100%にする */
}

.p-member__thumb {
    position: relative;
    border-bottom: 2px solid var(--color-main);
}

.p-member__thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block; 
}

/* タクソノミー（業種） */
.p-member__cat {
  display: inline-block;
  background-color: var(--color-main);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

/* 複数の業種バッジを並べるエリア */
.p-member__cats {
  display: flex;
  flex-wrap: wrap; 
  gap: 4px 8px;    
 
  margin-top: 10px;
  margin-bottom: 8px;
  padding-left: 16px;  
  padding-right: 16px; 
}



/* 企業名 */
.p-member__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 16px 20px;
}


/* =========================================================
   Information (お知らせ一覧)
   ========================================================= */
.p-info__list {
    max-width: 900px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.p-info__item {
    border-bottom: 1px solid #ddd;
}
.p-info__item:first-child {
    border-top: 1px solid #ddd;
}

.p-info__link {
    display: flex;
    align-items: center;
    padding: 24px 0;
    text-decoration: none;
    color: var(--color-text-main);
    transition: background-color 0.3s ease;
}

.p-info__link:hover {
    background-color: #fafafa;
}

/* 左側：アイキャッチ画像 */
.p-info__thumb {
    width: 160px;
    height: 100px;
    flex-shrink: 0;
    margin-right: 32px;
    border-radius: 4px;
    overflow: hidden;
}

.p-info__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 右側：テキストエリア */
.p-info__body {
    flex-grow: 1; /* 残りの幅をすべて使う */
}

.p-info__date {
    display: block; /* ブロック要素にして強制的に改行させる */
    font-size: 0.875rem;
    color: var(--color-main);
    margin-bottom: 8px;
    font-family: var(--font-en);
}

.p-info__title {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
}

@media screen and (max-width: 767px) {
    .p-info__link {
        align-items: flex-start; /* スマホでは上揃えにする */
        padding: 16px 0;
    }
    .p-info__thumb {
        width: 120px;
        height: 80px;
        margin-right: 16px;
    }
    .p-info__date {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }
    .p-info__title {
        font-size: 1rem;
    }
}


/* =========================================================
   セクション間の装飾ライン（横リピート）
   ========================================================= */
.p-section-divider {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 29px;
    
    background-image: url('assets/images/line-kenjyo.png'); 
    background-repeat: repeat-x; 
    background-position: center; 
    margin-top: 60px;
    margin-bottom: 60px;
}

/* Download */
.p-download__item {
    background-color: var(--color-white);
    padding-bottom: 20px;
    border: 1px solid #ddd;
}
.p-download__thumb {
    width: 100%;
    aspect-ratio: 300 / 210;
    overflow: hidden;
}
.p-download__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.p-download__title {
    font-size: 1rem;
    margin: 16px;
    text-align: center;
}


/* =========================================================
   セクション背景の薄いアイコン（共通ベース設定）
   ========================================================= */
/* 1. セクションをアイコン配置の基準点にする */
.p-about,
.p-member,
.p-info,
.p-download {
    position: relative;
    overflow: hidden;
}
/* 2. 背景アイコンの共通ルール */
.p-about::before,
.p-member::before,
.p-info::before,
.p-download::before {
    content: "";
    position: absolute;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    opacity: 0.6;
}
/* 3. セクション内のコンテンツを確実に「アイコンより手前」に表示する */
.p-about > *,
.p-member > *,
.p-info > *,
.p-download > * {
    position: relative;
    z-index: 1;
}

/* 各セクションごとの背景アイコン設定 ---不採用--- */
/*
.p-about::before {
    background-image: url('assets/images/index/icon-1.png');
    width: 120px;
    height: 120px;
    right: 15%;
    top: 30%;
}
.p-member::before {
    background-image: url('assets/images/index/icon-2.png');
    width: 120px;
    height: 123px;
    right: 18%;
    top: 20%;
}
.p-info::before {
    background-image: url('assets/images/index/icon-3.png');
    width: 120px;
    height: 120px;
    left: 30%;
    top: 20%;
}
.p-download::before {
    background-image: url('assets/images/index/icon-4.png');
    width: 120px;
    height: 120px;
    left: 5%;
    bottom: 20px;
}
*/



/* =========================================================
   下層ページの共通ヘッダー
   ========================================================= */
.p-page-header {
    background-image: 
        linear-gradient(
            -45deg,
            rgba(255, 255, 255, 0.06) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(255, 255, 255, 0.06) 75%,
            transparent 75%,
            transparent
        ),
        linear-gradient(135deg, var(--color-main) 0%, #cc5a00 100%);
    background-size: 8px 8px, 100% 100%;    
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    padding: 140px 0 40px;
    text-align: center;
    position: relative;
}
.p-page-header__title {
    color: var(--color-white);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 767px) {
    .p-page-header {
        padding-top: 130px !important;
        padding-bottom: 30px !important;
    }
    .p-page-header__title {
        font-size: 1.5rem !important;
        margin-top: 0 !important;
    }
}

/* =========================================================
   共通レイアウト（コンテナ）
   ========================================================= */
.l-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
}

.u-py-60 {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* =========================================================
   会員企業一覧（アーカイブ用グリッドレイアウト）
   ========================================================= */
.p-member__list--archive {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCでは3列 */
    gap: 40px 24px; /* 縦の隙間40px、横の隙間24px */
    margin-bottom: 60px;
}

@media screen and (max-width: 767px) {
    .p-page-header {
        padding: 100px 0 40px;
    }
    .p-page-header__title {
        font-size: 1.5rem;
    }
    .p-member__list--archive {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* 業種ブロック（セクションごとの間隔を空ける） */
.p-member-group {
    margin-bottom: 80px;
}

/* 一番最後の業種ブロックは下余白を付けない */
.p-member-group:last-child {
    margin-bottom: 0;
}

/* 業種名の見出し */
.p-member-group__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    padding: 12px 16px;
    margin-bottom: 32px;
    background-color: #fff3e6;
    border-left: 5px solid var(--color-main);
    border-radius: 0 4px 4px 0;
}

/* スマホ表示時の微調整 */
@media screen and (max-width: 767px) {
    .p-member-group {
        margin-bottom: 60px;
    }
    .p-member-group__title {
        font-size: 1.25rem;
        padding: 10px 12px;
        margin-bottom: 24px;
    }
}

/* 業種の絞り込みボタン群 */
.p-member-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px; /* 企業一覧との間の余白 */
}

/* 絞り込み用のボタンデザイン */
.p-member-filter__btn {
  background-color: #ffffff;
  color: #FF8500;
  border: 1px solid #FF8500;
  padding: 8px 20px;
  border-radius: 100vh;
  font-size: 0.875rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* ホバー時、および選択中（is-active）のボタン */
.p-member-filter__btn:hover,
.p-member-filter__btn.is-active {
  background-color: #FF8500;
  color: #ffffff;
}

/* ★JSで絞り込みから外れた企業を隠す用のクラス */
.p-member__item.is-hidden {
  display: none;
}
/* 通常時のアイテムにアニメーション時間を設定 */
.p-member__list .js-filter-item {
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}
/* フワッと消える時のクラス */
.p-member__list .js-filter-item.is-fade-out {
    opacity: 0 !important;
    transform: scale(0.95) !important;
    pointer-events: none;
}


/* =========================================================
   ページネーション
   ========================================================= */
.p-pagination {
    text-align: center;
    margin-top: 60px;
}

.p-pagination .nav-links {
    display: inline-flex;
    gap: 8px;
}

.p-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background-color: #f5f5f5;
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.p-pagination .page-numbers:hover {
    background-color: #ddd;
}

/* 現在のページ */
.p-pagination .page-numbers.current {
    background-color: var(--color-main);
    color: var(--color-white);
}



/* =========================================================
   記事詳細ページ (single.php)
   ========================================================= */
.p-single-post {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 記事ヘッダー */
.p-single-post__header {
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.p-single-post__date {
    display: block;
    color: var(--color-main);
    font-family: var(--font-en);
    font-weight: 700;
    margin-bottom: 12px;
}

.p-single-post__title {
    font-size: 1.5rem;
    line-height: 1.5;
    margin: 0;
}

/* 記事アイキャッチ */
.p-single-post__thumb {
    margin-bottom: 40px;
    border-radius: 4px;
    overflow: hidden;
}

.p-single-post__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.p-single-post__content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.p-single-post__content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.5em 0 1em;
    padding-left: 12px;
    border-left: 4px solid var(--color-main);
}

.p-single-post__content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 2em 0 1em;
}

.p-single-post__content ul,
.p-single-post__content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.p-single-post__content li {
    margin-bottom: 0.5em;
}

.p-single-post__content a {
    color: var(--color-main);
    text-decoration: underline;
}

.p-single-post__content a:hover {
    text-decoration: none;
}

.u-text-center { text-align: center; }
.u-mt-60 { margin-top: 60px; }

@media screen and (max-width: 767px) {
    .p-single-post {
        padding: 24px 16px;
    }
    .p-single-post__title {
        font-size: 1.25rem;
    }
}



/* =========================================================
   会員企業 詳細ページ (single-member_company.php)
   ========================================================= */

/* 企業概要 */
.p-member-detail__cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    margin-bottom: 16px;
}
.p-member-detail__cats .p-member__cat {
    font-size: 1rem;
}
.p-member-detail__title{
    font-size: 1.8em;
}
.p-member-detail__logo{
    max-width: 550px;
    margin: 5px auto;
}

.p-member-detail__logo {
    max-width: 550px;
    margin: 5px auto;
    text-align: center;
}
.p-member-detail__logo img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.p-member-detail__overview {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 60px;
}

/* セクション共通 */
.p-member-detail__section {
    margin-bottom: 60px;
}

/* ------------------------------
   商品情報
------------------------------ */
.p-product-list {
    display: flex;
    flex-direction: column;
    gap: 40px; /* 商品ごとの余白 */
}

.p-product-item {
    display: flex;
    gap: 32px; /* 画像とテキストの間の余白 */
    background: var(--color-white);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.p-product-item__thumb {
    width: 300px;
    flex-shrink: 0;

    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.p-product-item__thumb img {
    max-width: 100%;
    max-height: 500px;    
    width: auto;          
    height: auto;         
    object-fit: contain;  
    border-radius: 4px;
}

.p-product-item__body {
    flex-grow: 1;
}

.p-product-item__name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-main);
    padding-bottom: 12px;
}

.p-product-item__meta dl {
    margin: 0;
}

.p-product-item__row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}

.p-product-item__row:last-child {
    border-bottom: none;
}

.p-product-item__row dt {
    width: 120px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--color-main);
}

.p-product-item__row dd {
    margin: 0;
    flex-grow: 1;
}

.p-product-item__row--comment {
    flex-direction: column;
}

.p-product-item__row--comment dt {
    width: 100%;
    margin-bottom: 8px;
}

@media screen and (max-width: 767px) {
    .p-product-item {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
    }
    .p-product-item__thumb {
        width: 100%;
    }
    .p-product-item__row {
        flex-direction: column;
    }
    .p-product-item__row dt {
        margin-bottom: 4px;
    }
}

/* ------------------------------
   会社情報 テーブル
------------------------------ */
.p-company-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-white);
}

.p-company-table th,
.p-company-table td {
    padding: 20px;
    border: 1px solid #ddd;
}

.p-company-table th {
    width: 25%;
    background-color: #f9f9f9;
    font-weight: 700;
    text-align: left;
}

.p-company-table td a {
    color: var(--color-main);
    text-decoration: underline;
}

.p-company-table td a:hover {
    text-decoration: none;
}
.p-company-table .c-btn {
    color: var(--color-white) !important;
    text-decoration: none !important;
}

@media screen and (max-width: 767px) {
    .p-company-table th,
    .p-company-table td {
        display: block; /* セルをブロック化して縦並びに */
        width: 100%;
    }
    .p-company-table th {
        border-bottom: none;
    }
}


/* ------------------------------
   SNSアイコン（横並びリンク）
------------------------------ */
.p-sns-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.p-sns-list__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f4f4f4;
    color: var(--color-text-main);
    border-radius: 50%;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.p-sns-list__item svg {
    display: block;
}

.p-sns-list__item:hover {
    background-color: var(--color-main);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}



/* =========================================================
   固定ページ (page.php)
   ========================================================= */

/* アイキャッチ画像 */
.p-page-thumb {
    max-width: 900px;
    margin: 0 auto 48px;
    border-radius: 8px;
    overflow: hidden;
}

.p-page-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* 本文エリア */
.p-page-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-main);
}

.p-page-content p {
    margin-bottom: 1.8em;
}

.p-page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 3em 0 1.2em;
    padding: 12px 16px;
    background-color: #fff3e6;
    border-left: 5px solid var(--color-main);
    border-radius: 0 4px 4px 0;
}

/* 最初に見出しが来た場合は余白を調整 */
.p-page-content > h2:first-child,
.p-page-content > h3:first-child {
    margin-top: 0;
}

/* 見出し（H3）: 下線で区切る */
.p-page-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.5em 0 1em;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-main);
}

/* 見出し（H4〜H6） */
.p-page-content h4,
.p-page-content h5,
.p-page-content h6 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 2em 0 1em;
}

/* リスト（箇条書き） */
.p-page-content ul,
.p-page-content ol {
    margin: 0 0 1.8em 1.5em;
    padding: 0;
}

.p-page-content li {
    margin-bottom: 0.5em;
}

/* リンク */
.p-page-content a {
    color: var(--color-main);
    text-decoration: underline;
}

.p-page-content a:hover {
    text-decoration: none;
}

/* 汎用テーブル（ブロックエディタで作った表用） */
.p-page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2em;
}

.p-page-content table th,
.p-page-content table td {
    padding: 16px;
    border: 1px solid #ddd;
}

.p-page-content table th {
    background-color: #f9f9f9;
    font-weight: 700;
    text-align: left;
    width: 30%;
}

@media screen and (max-width: 767px) {
    .p-page-content h2 {
        font-size: 1.25rem;
        padding: 10px 12px;
    }
    .p-page-content h3 {
        font-size: 1.125rem;
    }
    .p-page-content table th,
    .p-page-content table td {
        display: block;
        width: 100%;
    }
    .p-page-content table th {
        border-bottom: none;
    }
}




/* =========================================================
   お問い合わせフォーム (Contact Form 7)
   ========================================================= */
.p-form {
    max-width: 760px;
    margin: 0 auto;
}

.p-form__item {
    display: flex;
    align-items: flex-start;
    margin: 0 0 32px 0;
    padding-bottom: 32px;
    border-bottom: 1px solid #eee;
}

/* ラベルエリア（左側） */
.p-form__label {
    width: 240px;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--color-text-main);
    padding-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* 必須・任意のバッジ */
.p-form__req,
.p-form__opt {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1;
}

.p-form__req {
    background-color: var(--color-main);
    color: var(--color-white);
}

.p-form__opt {
    background-color: #999;
    color: var(--color-white);
}

/* 入力エリア（右側） */
.p-form__input {
    flex-grow: 1;
    margin: 0;
}

/* テキストボックス・テキストエリアの基本デザイン */
.p-form__input input[type="text"],
.p-form__input input[type="email"],
.p-form__input input[type="tel"],
.p-form__input textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--color-text-main);
    background-color: #fcfcfc;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: all 0.3s ease;
    appearance: none;
}

/* 入力中（フォーカス時）の演出 */
.p-form__input input[type="text"]:focus,
.p-form__input input[type="email"]:focus,
.p-form__input textarea:focus {
    outline: none;
    background-color: var(--color-white);
    border-color: var(--color-main);
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.15);
}

/* テキストエリアの高さ調整 */
.p-form__input textarea {
    height: 200px;
    resize: vertical; /* 縦方向のみユーザーがリサイズ可能に */
}

/* 送信ボタンエリア */
.p-form__submit {
    text-align: center;
    margin-top: 48px;
}

/* CF7が出力する送信ボタン（共通クラス.c-btnを適用） */
.p-form__submit input[type="submit"] {
    cursor: pointer;
    border: none;
    min-width: 240px;
    padding: 18px 40px;
    font-size: 1.125rem;
}

/* エラーメッセージ・送信完了メッセージの装飾 */
.wpcf7-not-valid-tip {
    font-size: 0.875rem;
    color: #e53e3e;
    margin-top: 8px;
}

.wpcf7-response-output {
    margin-top: 32px !important;
    padding: 16px 24px !important;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
}

/* 送信ボタングループの基準 */
.p-form__submit {
    position: relative;
    text-align: center;
}

/* Contact Form 7 のスピナー（読み込み中アイコン）をボタン横に絶対配置 */
.p-form__submit .wpcf7-spinner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 0 0 12px; /* ボタンの右側に少し隙間を空けて表示 */
}


/* ------------------------------
   スマホ表示時のレスポンシブ調整
------------------------------ */
@media screen and (max-width: 767px) {
    .p-form__item {
        flex-direction: column; /* 縦並びにして入力しやすく */
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .p-form__label {
        width: 100%;
        padding-top: 0;
    }

    .p-form__input {
        width: 100%;
    }

    .p-form__input input[type="text"],
    .p-form__input input[type="email"],
    .p-form__input textarea {
        font-size: 16px; /* スマホで勝手にズームされるのを防ぐ16pxルール */
    }
}


/* =========================================================
   404 エラーページ
========================================================= */
.p-404 {
  text-align: center;
  padding: 60px 20px 100px;
}

.p-404__message {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.p-404__btn-wrap {
  display: flex;
  justify-content: center;
}