@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/


/* ============================================
   実績アーカイブページ専用CSS (修正版)
   ============================================ */

/* ページ全体の背景 */
body.post-type-archive-works #content.l-content {
    background: #fff !important;
    padding: 80px 0 !important;
}

/* ★ヘッダーのコンテナ幅を維持(元に戻す) */
body.post-type-archive-works .l-header__inner.l-container {
    max-width: none !important;
    padding: 0 20px !important; /* SWELLのデフォルト値 */
}

/* ★メインコンテンツのコンテナ幅を調整 */
body.post-type-archive-works main .l-container,
body.post-type-archive-works .p-pageHeader,
body.post-type-archive-works .p-worksArchive {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

/* ★#content自体の左右padding解除 */
body.post-type-archive-works #content.l-content.l-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* サイドバーを非表示 */
body.post-type-archive-works .l-sidebar {
    display: none !important;
}

/* メインコンテンツを全幅に */
body.post-type-archive-works .l-mainContent {
    width: 100% !important;
    max-width: 100% !important;
}

/* ページヘッダー */
.p-pageHeader {
    text-align: center !important;
    margin-bottom: 80px !important;
    padding: 0 !important;
    border: none !important;
}

.p-pageHeader__title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 20px !important;
    letter-spacing: 0.05em !important;
    position: relative !important;
    display: inline-block !important;
}

.p-pageHeader__title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #26768E 0%, #DE0F3F 100%) !important;
    border-radius: 2px !important;
}

/* 実績カードグリッド */
.p-worksArchive {
    width: 100% !important;
}

.p-worksArchive__grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 50px 40px !important;
    margin-bottom: 80px !important;
    list-style: none !important;
    padding: 0 !important;
}

/* 実績カード - Boxなし */
.p-worksCard {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.4s ease !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

.p-worksCard:hover {
    transform: translateY(-8px) !important;
}

/* サムネイル */
.p-worksCard__thumbnail {
    position: relative !important;
    width: 100% !important;
    padding-top: 60% !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    margin-bottom: 20px !important;
    border-radius: 0 !important;
}

.p-worksCard__thumbnail a {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.p-worksCard__thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.p-worksCard:hover .p-worksCard__thumbnail img {
    transform: scale(1.05) !important;
}

/* コンテンツエリア */
.p-worksCard__content {
    padding: 0 !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* メタ情報(会社名と日付) */
.p-worksCard__meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}

/* 会社名 */
.p-worksCard__company {
    font-size: 0.8rem !important;
    color: #26768E !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    display: inline-block !important;
    padding: 4px 12px !important;
    background: rgba(38, 118, 142, 0.08) !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

/* 日付 */
.p-worksCard__date {
    font-size: 0.85rem !important;
    color: #999 !important;
    font-weight: 400 !important;
}

/* タイトル - 黒太字 */
.p-worksCard__title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
    color: #1a1a1a !important;
}

.p-worksCard__title a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.p-worksCard__title a:hover {
    color: #26768E !important;
}

/* サービス名 - 12px */
.p-worksCard__service {
    font-size: 12px !important;
    color: #666 !important;
    font-weight: 400 !important;
    margin-bottom: 4px !important;
    line-height: 1.6 !important;
}

/* タグ - 12px、背景色なし */
.p-worksCard__tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: auto !important;
}

.p-worksCard__tag {
    display: inline-block !important;
    color: #999 !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    transition: color 0.3s ease !important;
}

.p-worksCard__tag::before {
    content: '#' !important;
    margin-right: 2px !important;
}

.p-worksCard__tag:hover {
    color: #26768E !important;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .p-worksArchive__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px 30px !important;
    }
}

@media (max-width: 768px) {
    body.post-type-archive-works #content.l-content {
        padding: 60px 0 !important;
    }
    
    body.post-type-archive-works .l-container {
        padding: 0 20px !important;
    }
    
    .p-pageHeader {
        margin-bottom: 60px !important;
    }
    
    .p-pageHeader__title {
        font-size: 2.2rem !important;
    }
    
    .p-worksArchive__grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    
    .p-worksCard__meta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
}

/* ページネーション */
.p-worksArchive__pagination {
    margin-top: 80px !important;
    text-align: center !important;
}

.p-worksArchive__pagination .pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    list-style: none !important;
}

.p-worksArchive__pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 48px !important;
    height: 48px !important;
    padding: 0 16px !important;
    background: #fff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    color: #555 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.p-worksArchive__pagination .page-numbers.current {
    background: #26768E !important;
    color: #fff !important;
    border-color: #26768E !important;
}

.p-worksArchive__pagination .page-numbers:hover:not(.current) {
    background: #DE0F3F !important;
    color: #fff !important;
    border-color: #DE0F3F !important;
}

/* 投稿なしメッセージ */
.p-worksArchive__nopost {
    text-align: center !important;
    padding: 80px 40px !important;
    color: #999 !important;
    font-size: 1.1rem !important;
}


/* ========================================
   実績詳細ページ：JS生成ラッパー用レイアウト
======================================== */

/* PCサイズ（960px以上）の時のみレイアウトを変更 */
@media (min-width: 960px) {

  /* 大枠（ラッパー） */
  .works-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    width: 100%;
  }

  /* 1. 左側：画像ブロック */
  .works-image-block {
    width: 50%;
    padding-right: 40px;
    box-sizing: border-box;
  }

  .works-image-block .p-articleThumb {
    margin: 0 !important;
  }
  
  .works-image-block img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    vertical-align: top;
  }

  /* 2. 右側：テキストブロック */
  .works-text-block {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px; /* 全体の開始位置 */
  }

  /* 基本の要素間隔（15px） */
  .works-text-block > * {
    margin-bottom: 15px;
  }
  .works-text-block > *:last-child {
    margin-bottom: 0;
  }
  
  /* 会社名のスタイル */
  .custom-company-name {
    font-weight: bold;
    color: #26768E;
    line-height: 1.4;
  }

  /* ★サービス名のスタイル（修正箇所） */
  .custom-service-name {
    font-size: 12px;
    color: #666;
    font-weight: normal;
    line-height: 1.5;
    
    /* ここで下の余白を詰める！ 15px → 5px */
    margin-bottom: 5px !important; 
  }
}

/* スマホ対応（960px未満）は変更なし */
@media (max-width: 959px) {
  .works-header-wrapper {
    display: block;
  }
  .works-image-block,
  .works-text-block {
    width: 100%;
    padding-right: 0;
  }
  .works-image-block {
    margin-bottom: 30px;
  }
  
  /* スマホでもフォントサイズを反映 */
  .custom-service-name {
    font-size: 12px;
    color: #666;
  }
}



/* =========================================
   CookieYesのデザイン（修正版）
   ========================================= */

/* --- 1. 共通デザイン（PC・スマホ共通） --- */

/* コンテナ（バー全体）のデザイン */
.cky-consent-container .cky-consent-bar,
.cky-consent-container .cky-box-bottom-left {
    background-color: rgba(26, 26, 26, 0.9) !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3) !important;
}

/* ボタンを囲む枠の修正（PC・スマホ共通でFlexbox化） */
.cky-notice-btn-wrapper {
    display: flex !important;
    justify-content: flex-end !important; /* PCでは右寄せ（スマホで上書きされます） */
    align-items: center !important;
    gap: 15px !important; /* ボタン同士の間隔 */
}

.cky-notice-group {
    justify-content: space-around !important;
}

/* テキスト（白） */
.cky-consent-container .cky-notice-des p,
.cky-consent-container .cky-title,
.cky-consent-container .cky-notice-des {
    color: #ffffff !important;
    font-size: 13px !important;
}

/* ★★★ ボタンの共通設定＆並び順指定 ★★★ */

/* 「はい」ボタン（#26768E） */
.cky-consent-container button.cky-btn-accept {
    background-color: #26768E !important;
    border-color: #26768E !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    font-weight: bold !important;
    padding: 10px 24px !important;
    
    /* 順番を 1番目（左）に強制 */
    order: 1 !important;
}

/* 「いいえ」ボタン（透明＋白枠） */
.cky-consent-container button.cky-btn-reject {
    background-color: transparent !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    padding: 10px 24px !important;
    
    /* 順番を 2番目（右）に強制 */
    order: 2 !important;
}

/* ホバー時の動き */
.cky-consent-container button:hover {
    opacity: 0.8 !important;
}


/* --- 2. スマホ・タブレット専用（幅1280px以下） --- */
@media (max-width: 1280px) {

    /* チャットボットの位置調整（バーが出ている間浮かせる） */
    #chat-widget-container,
    .wa__btn_popup, 
    div[class*="chat"] { 
        bottom: 150px !important;
        transition: bottom 0.3s;
        z-index: 9999 !important;
    }

    /* ボタンエリアのレイアウト調整（スマホ用） */
    .cky-consent-container .cky-notice-btn-wrapper {
        flex-direction: row !important; /* ★強制的に横並び */
        flex-wrap: nowrap !important;   /* ★折り返し（縦並び）を禁止 */
        justify-content: space-between !important;
        width: 90% !important;
        max-width: 400px !important;
        margin: 15px auto 0 auto !important;
        gap: 10px !important; /* 隙間を少し狭めて安全に */
    }

    /* ボタンの幅調整（スマホのみ） */
    
    /* 幅を%指定ではなく flex:1 (均等割り) に変更して崩れ防止 */
    .cky-consent-container button.cky-btn-accept {
        flex: 1 !important;
        width: auto !important;
        margin: 0 !important;
    }

    .cky-consent-container button.cky-btn-reject {
        flex: 1 !important;
        width: auto !important;
        margin: 0 !important;
    }
}


/* ====================================
   ワクドリ用：スマート診断カード（完全版）
   ==================================== */

/* ▼ 全体の枠：アニメーション付き ▼ */
.wakudori-dynamic-cta {
  margin: 60px 0;
  width: 100%;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.wakudori-dynamic-cta.wd-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ▼ メインカード枠 ▼ */
.wd-dynamic-container {
  display: flex;
  background: #ffffff;
  border: 1px solid #e0e0e0; 
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(38, 118, 142, 0.1); 
  overflow: hidden;
  position: relative;
}

/* ▼ 左パネル：テキストエリア ▼ */
.wd-left-panel {
  flex: 1.3; 
  padding: 30px 35px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ヘッダーエリア */
.wd-text-header {
  margin-bottom: 20px;
  border-bottom: 1px solid #f5f5f5; 
  padding-bottom: 15px;
}

/* バッジ */
.wd-badge {
  background: #f0f6f8;
  color: #26768E;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

/* タイトル */
.wd-main-title {
  font-size: 18px; 
  font-weight: 700;
  color: #555; 
  margin: 0;
  line-height: 1.5;
}

/* ステップ数表示 */
.wd-step-count {
  font-size: 10px;
  color: #aaa;
  font-weight: bold;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* 質問文エリア */
.wd-q-text {
  font-size: 18px;
  font-weight: 700;
  color: #26768E; 
  margin-bottom: 25px;
  line-height: 1.6;
  min-height: 3em; 
  display: flex; 
  flex-direction: column;
  align-items: flex-start;
}

/* Q番号のデザイン */
.wd-q-prefix {
  display: inline-block;
  color: #26768E;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 5px; 
  opacity: 0.8;
}

/* ボタン群 */
.wd-btn-group {
  display: flex;
  gap: 12px;
}

.wd-btn {
  flex: 1;
  padding: 12px 10px; 
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

/* Yesボタン */
.wd-btn-yes {
  background: #26768E;
  color: #fff !important;
  box-shadow: 0 4px 8px rgba(38, 118, 142, 0.2);
}
.wd-btn-yes:hover {
  background: #1e5f73;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(38, 118, 142, 0.3);
}

/* Noボタン */
.wd-btn-no {
  background: #f9f9f9;
  color: #666;
  border-color: #e0e0e0;
}
.wd-btn-no:hover {
  background: #eee;
  color: #333;
}

/* ▼ 右パネル：画像エリア ▼ */
.wd-right-panel {
  flex: 0.7; 
  background: #fbfdfd; 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  border-left: 1px solid #f0f0f0;
}

/* 画像サイズ調整 */
.wd-image-wrapper img {
  width: 100%;
  max-width: 280px; /* PCでのバランス考慮（大きすぎず小さすぎず） */
  height: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05)); 
}

.wd-image-wrapper img.switching {
  opacity: 0;
  transform: scale(0.95);
}

/* ▼ 結果表示エリア（赤 #de0f3f） ▼ */
.wd-result-label {
  font-size: 10px;
  color: #de0f3f; 
  letter-spacing: 0.2em;
  font-weight: bold;
  margin-bottom: 5px;
}
.wd-result-title {
  font-size: 18px;
  font-weight: 800;
  color: #de0f3f; 
  margin-bottom: 10px;
}
.wd-result-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 15px;
  background: #fef8f9; 
  padding: 12px;
  border-radius: 6px;
}
.wd-cta-btn {
  display: block;
  width: 100%;
  background: #333;
  color: #fff !important;
  text-align: center;
  padding: 14px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
}
.wd-cta-btn:hover {
  background: #555;
  transform: translateY(-2px);
}

/* ▼▼▼ スマホ専用改行クラスの設定（ここが重要） ▼▼▼ */
/* デフォルト（PC）では非表示 */
.wd-br-sp { 
  display: none; 
}

/* ▼ スマホ対応 ▼ */
@media screen and (max-width: 768px) {
  /* スマホの時だけ改行を有効化 */
  .wd-br-sp { 
    display: inline; 
  }
  
  .wd-dynamic-container {
    flex-direction: column-reverse; 
  }
  .wd-right-panel {
    padding: 20px;
    border-left: none;
    border-bottom: 1px solid #f0f0f0;
    min-height: 160px;
  }
  /* スマホの画像サイズ（大きめに確保） */
  .wd-image-wrapper img {
    max-width: 220px; 
  }
  .wd-left-panel {
    padding: 25px 20px;
  }
  .wd-main-title {
    font-size: 16px;
    text-align: center;
  }
  .wd-text-header {
    text-align: center;
  }
  .wd-q-text {
    font-size: 16px;
    align-items: center;
    text-align: center;
  }
}