/* 本番トップ本文のCTAボタン（q_custom_button1/2）と同じ配色：資料請求＝ピンク、お問合せ＝青紫のグラデーション。
   ヘッダーメニューの「資料請求」「お問合せ」をボタン表示にする（PC＝グローバルメニュー、スマホ＝ドロワーメニュー） */
body #global_menu > ul > li.pf-nav-btn { margin-left:12px; vertical-align:top; }
body #global_menu > ul > li.pf-nav-btn:first-of-type { margin-left:0; }
body #global_menu > ul > li.pf-nav-btn-primary { margin-left:24px; }
body #global_menu > ul > li.pf-nav-btn > a { height:44px; line-height:44px; margin-top:18px; padding:0 26px; border:none; border-radius:999px; color:#fff !important; font-size:18px; font-weight:800; letter-spacing:0.08em; white-space:nowrap; box-shadow:inset 0 0 0 40px rgba(26,26,26,0); transition:box-shadow 0.5s ease; }
body #global_menu > ul > li.pf-nav-btn-primary > a { background-image:linear-gradient(120deg, #f857a6 10%, #ef3f6e 100%); }
body #global_menu > ul > li.pf-nav-btn-outline > a { background-image:linear-gradient(100deg, #605dba 20%, #3f78e0 85%); }
body #global_menu > ul > li.pf-nav-btn > a:hover { box-shadow:inset 0 0 0 40px rgba(26,26,26,1); } /* ホバーで、通常色の上に黒を重ねてなめらかに黒へ変える（内側の影で塗る。端に色が残らない） */

/* スマホのドロワーメニュー：最後の2項目を横幅いっぱいのボタンにして、文字リンクと区別する（背景は紫なので枠なし） */
#mobile_menu li.pf-nav-btn { padding:0 20px; }
#mobile_menu li.pf-nav-btn-primary { padding-top:24px; }
#mobile_menu li.pf-nav-btn-outline { padding-top:20px; }
#mobile_menu li.pf-nav-btn:last-child { padding-bottom:24px; }
#mobile_menu li.pf-nav-btn > a { height:48px; line-height:48px; padding:0; border:none; border-radius:999px; text-align:center; font-size:16px; font-weight:800; letter-spacing:0.08em; box-shadow:inset 0 0 0 40px rgba(26,26,26,0); transition:box-shadow 0.5s ease; }
#mobile_menu li.pf-nav-btn > a:hover { box-shadow:inset 0 0 0 40px rgba(26,26,26,1); }
#mobile_menu li.pf-nav-btn-primary > a { background-image:linear-gradient(120deg, #f857a6 10%, #ef3f6e 100%); }
#mobile_menu li.pf-nav-btn-outline > a { background-image:linear-gradient(100deg, #605dba 20%, #3f78e0 85%); }

/* ロゴ横のキャッチテキスト（PC・SP） */
#header_logo a { flex-direction:row; gap:14px; }
#header_logo .logo_tagline { font-size:13px; font-weight:700; line-height:1.35; color:#333; white-space:nowrap; }
#header_logo .logo_tagline_name { color:var(--tcd-main-color); font-weight:800; font-size:15px; }
@media only screen and (max-width:800px) {
  #header_logo a { gap:10px; }
  #header_logo .logo_tagline { font-size:11px; line-height:1.3; }
  #header_logo .logo_tagline_name { font-size:13px; }
}

/* ボタン左のアイコン（SVGをマスクにして文字色で塗る）。資料請求＝ファイル、お問合せ＝封筒 */
body #global_menu > ul > li.pf-nav-btn > a::before,
#mobile_menu li.pf-nav-btn > a::before {
  content:""; display:inline-block; width:1.3em; height:1.3em; margin-right:8px; vertical-align:-0.3em;
  background-color:currentColor;
  -webkit-mask:var(--pf-nav-icon) center / contain no-repeat; mask:var(--pf-nav-icon) center / contain no-repeat;
}
li.pf-nav-btn-primary { --pf-nav-icon:url(../img/icons/icon-file.svg); }
li.pf-nav-btn-outline { --pf-nav-icon:url(../img/icons/icon-envelope-question.svg); }

/* PCヘッダーの左右余白を40pxに（ロゴ側は標準で left:40px。メニュー側は標準の80pxを40pxに） */
@media only screen and (min-width:1101px) {
  body #global_menu { right:40px; }
}

/* スマホのドロワーメニュー：左上の白ロゴ（右上は閉じるボタン） */
#drawer_menu .header .drawer_logo { position:absolute; top:0; left:20px; height:100%; display:flex; align-items:center; }
#drawer_menu .header .drawer_logo img { display:block; height:26px; width:auto; }

/* 「機能」個別ページ（/service/xxx/）はヘッダーが写真に重なる作りのまま、バーの見た目だけを白にする（位置・動きはテーマ標準） */
body.header_type2.single-service #header { background-color:#fff !important; border-bottom:1px solid #ddd; } /* テーマの動的CSSが付ける透明の紫（!important）を上書き */
body.header_type2.single-service #header_logo { opacity:1; pointer-events:auto; }
body.header_type2.single-service #header_logo2 { opacity:0; pointer-events:none; }
body.header_type2.single-service #global_menu > ul > li:not(.pf-nav-btn) > a { color:#000 !important; } /* スクロール時にテーマの動的CSS（inline）が白に戻すのを上書き。現在ページ(機能)は下で紫に戻す */
body.header_type2.single-service #global_menu > ul > li.current-menu-item > a, body.header_type2.single-service #global_menu > ul > li:not(.pf-nav-btn) > a:hover { color:var(--tcd-main-color) !important; }
body.header_type2.single-service #global_menu > ul > li.pf-nav-btn > a, body.header_type2.single-service #global_menu > ul > li.pf-nav-btn > a:hover { color:#fff !important; } /* CTAボタンはホバーでも白抜きのまま */
body.header_type2.single-service #header_search .search_button:before { color:#000 !important; }
body.header_type2.single-service #drawer_menu_button span { background:#000; }

/* 「機能」個別ページ上部の写真：全体が見えるよう、ヘッダーに重なる上部を少し避けて縮小して置く（PCのみ）。写真に入らない左右は写真の端と同じ濃紺で埋める */
@media only screen and (min-width:1101px) {
  #single_service_header { background-color:#01023a; }
  #single_service_header .image { top:20px; left:50%; width:auto; max-width:100%; height:calc(100% - 20px); transform:translateX(-50%); object-fit:contain;
    -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image:linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); } /* 左右の端をぼかして境目をなじませる */
}

/* 「機能」個別ページ：背景（アイキャッチ）の上・右側にイラストを重ねる（投稿ごとに登録。未登録のページは上の従来表示） */
#single_service_header .header_illust { position:absolute; z-index:3; top:80px; left:0; right:0; height:440px; max-width:1700px; margin:0 auto; padding:30px 100px; box-sizing:border-box; display:flex; justify-content:flex-end; align-items:center; pointer-events:none; }
#single_service_header .header_illust img { display:block; height:100%; width:auto; max-width:50%; object-fit:contain; }
@media only screen and (min-width:1101px) {
  #single_service_header.has_illust { background-color:transparent; }
  #single_service_header.has_illust .image { top:0; left:0; width:100%; height:100%; transform:none; object-fit:cover; -webkit-mask-image:none; mask-image:none; }
}
@media only screen and (max-width:1391px) { #single_service_header .header_illust { padding-left:60px; padding-right:60px; } }
@media only screen and (max-width:1100px) { #single_service_header .header_illust { top:60px; height:340px; padding-left:40px; padding-right:40px; } }
/* スマホ：文字の右横にイラストを置く（PCと同じ左文字・右イラスト。ヘッダーの高さは標準のまま） */
@media only screen and (max-width:767px) {
  #single_service_header .header_illust { top:50px; height:300px; padding:0; justify-content:flex-end; }
  #single_service_header .header_illust img { width:54vw; max-width:260px; margin-right:-6px; height:auto; max-height:100%; }
}

/* 機能の一覧カード：背景（アイキャッチ）の上にイラストを重ねて、本番の合成画像と同じ見た目にする */
.service_category_post_list .image_wrap img.image_illust,
#archive_service .image_wrap img.image_illust { object-fit:contain; padding:8px; box-sizing:border-box; z-index:1; }

/* 機能の一覧カードのタイトルを少し大きく（標準：22px／タブレット以下 18〜20px。/service/ と カテゴリ一覧の両方） */
#archive_service .service_category_post_list .title,
.service_category_content .post_list.type1 .title,
.service_category_content .post_list.type2 .title { font-size:26px; }
@media only screen and (max-width:1100px) { #archive_service .service_category_post_list .title,
  .service_category_content .post_list.type1 .title,
  .service_category_content .post_list.type2 .title { font-size:22px; } }

/* 本文のCTA枠（.post_row.cta）：ボタン下の余白が、テーマの「.post_content *:last-child { margin-bottom:0 }」で消えて枠の中で下に下がるのを、本番と同じ見た目に戻す */
.post_content .post_row.cta .q_button_wrap { margin-bottom:2em; }
@media only screen and (max-width:800px) { .post_content .post_row.cta .q_button_wrap { margin-bottom:1em; } }

/* 「機能」個別ページ：縦並びになる幅では、最初の行だけ画像が先、2行目以降は文章が先・画像が一番下（左右交互のジグザグを避ける） */
@media only screen and (max-width:1100px) {
  .single-service .post_content .post_row:not(.cta) ~ .post_row { display:flex; flex-direction:column; }
  .single-service .post_content .post_row:not(.cta) ~ .post_row > .post_col:has(> img:only-child) { order:2; }
}

/* 「機能」一覧・カテゴリページの説明文：PC用とモバイル用の文章が両方出てしまうため、画面幅でどちらかだけ表示する */
.service_category_content .header .desc span.mobile { display:none; }
@media only screen and (max-width:800px) {
  .service_category_content .header .desc span.pc { display:none; }
  .service_category_content .header .desc span.mobile { display:inline; }
}
