/* ===================================================
   common.css
   テーマ: gala
   全ページ共通スタイル
   ---------------------------------------------------
   0. 外部フォント・アイコン読み込み
   ※ functions.php の wp_enqueue_style で <link> タグ出力（パフォーマンス優先）
   ---------------------------------------------------
   読み込みフォント一覧:
   - Noto Sans JP（本文用・サンセリフ）: wght 100〜900（全9ウェイト）
   - Shippori Mincho（見出し用・明朝）: wght 400〜800（全5ウェイト）
   - Bootstrap Icons 1.11.3（アイコンフォント）
=================================================== */

/* ===================================================
   1. CSS変数（:root）
=================================================== */
:root {
  /* カラー */
  --color_main:   #429361;
  --color_sub1:   #316E48;
  --color_logo:   #134A28;
  --color_sub2:   #A0B1A7;
  --color_sub3:   #3F895B;
  --color_sub4:   #36784F;
  --color_sub5:   #D8E3DD;
  --color_dark:   #062B14;
  --color_text:   #333333;
  --color_muted:  #666666;
  --color_bg:     #EBEBEB;
  --color_gray:   #D9D9D9;
  --color_white:  #ffffff;
  /* グラデーション */
  --gradient1: linear-gradient(134.34deg, #316E48 -0.05%, #90B09C 95%);
  --gradient2: linear-gradient(180deg, #77C186 -0.05%, #195946 95%);
  --gradient3: linear-gradient(180deg, #427255 -0.05%, #062B14 95%);
  /* フォント */
  --font_jp:    "Noto Sans JP", sans-serif;
  --font_serif: "Shippori Mincho", serif;
  --font_bs: "bootstrap-icons";
  /* トランジション */
  --transition: all .3s ease;
  /* レイアウト */
  --design-width: 1440; /* デザイン基準幅（unitless）。clamp() 内の calc() で使用 */
  --sectionSmallWidth: clamp(34.5rem, calc(875 / var(--design-width) * 100vw), 87.5rem);
  --sectionMediumWidth: clamp(34.5rem, calc(1000 / var(--design-width) * 100vw), 100rem);
  --sectionWidth:      1200px;
  --sectionLargeWidth: 1440px;
  /* ヘッダー高さ（PC: 80px / SP: 50px） */
  --header_height: clamp(5rem, calc(80 / var(--design-width) * 100vw), 8rem);
  /* フッター高さ（目安: 432px） */
  --footer_height: clamp(20rem, calc(432 / var(--design-width) * 100vw), 43.2rem);
}

/* ===================================================
   2. font-size 基本設定
=================================================== */
html {
  font-size: 62.5%; /* 1rem = 10px */
}
body {
  font-size: 1.6rem;
}
main {
  overflow-x: hidden;
}
html, body {
  overscroll-behavior-x: none;
}

/* ===================================================
   2-1. ユーティリティ
=================================================== */
/* スクリーンリーダー・クローラー向け非表示（SEO用テキスト） */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================================================
   3. リセット・body 基本スタイル
=================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font_jp);
  color: var(--font_text, var(--color_text));
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  background-color: var(--color_white);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}
ul, ol {
  list-style: none;
}

/* ===================================================
   4. WP管理バーを下部に移動（fixedヘッダーと干渉防止）
=================================================== */
#wpadminbar {
  top: unset !important;
  bottom: 0;
  position: fixed;
  opacity: 0.7;
}
html {
  margin-top: 0 !important; /* WPが付与するmargin-topを無効化 */
}

/* ===================================================
   5. main ヘッダー高さオフセット
=================================================== */
main {
  /*padding-top: var(--header_height); fixed header offset */
}

/* ===================================================
   6. セクション共通レイアウト
=================================================== */
/* .section：セクションの上下余白 */
.section {
  padding: clamp(8rem, calc(170 / var(--design-width) * 100vw), 17rem) 0;
}
/* .section-inner：コンテナ */
.section-inner {
  max-width: var(--sectionWidth);
  padding: 0 clamp(2rem, calc(40 / var(--design-width) * 100vw), 4rem);
  margin: 0 auto;
}
.section-sm-inner {
  max-width: var(--sectionSmallWidth);
  padding: 0 clamp(2rem, calc(40 / var(--design-width) * 100vw), 4rem);
  margin: 0 auto;
}
.section-md-inner {
  max-width: var(--sectionMediumWidth);
  padding: 0 clamp(2rem, calc(40 / var(--design-width) * 100vw), 4rem);
  margin: 0 auto;
}
.section-lg-inner {
  max-width: var(--sectionLargeWidth);
  padding: 0 clamp(2rem, calc(40 / var(--design-width) * 100vw), 4rem);
  margin: 0 auto;
}
/* .section-head：見出しブロック（中央揃え） */
.section-head {
  text-align: center;
  margin-bottom: 6rem;
}
/* .section-label：英語ラベル */
.section-label {
  display: block;
  font-family: var(--font_serif);
  font-size: clamp(1.6rem, calc(20 / var(--design-width) * 100vw), 2.0rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: var(--color_sub1);
}
/* .section-title：セクションタイトル */
.section-title {
  font-family: var(--font_serif);
  font-size: clamp(3.6rem, calc(60 / var(--design-width) * 100vw), 6.0rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color_sub1);
}

/* ===================================================
   7. .page-hero / .breadcrumb-wrap
=================================================== */
/* ページ上部ヒーローエリア（front-page.php には設置しない） */
.page-hero {
  width: max(36rem, calc(100% - clamp(1.5rem, calc(120 / var(--design-width) * 100vw), 12.0rem)));
  background: url('../images/kv-bg.webp') center / cover no-repeat;
  padding: clamp(6rem, calc(120 / var(--design-width) * 100vw), 12rem) 0;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content:'';
  background: var(--gradient2);
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  opacity: 1;
  mix-blend-mode: multiply;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: clamp(4rem, calc(60 / var(--design-width) * 100vw), 6rem);
  right: clamp(-6rem, calc(-60 / var(--design-width) * 100vw), -4rem);
  /* width: max(36rem, calc(100% - clamp(1.5rem, calc(120 / var(--design-width) * 100vw), 12.0rem))); */
  width: 100%;
  height: 100%;
  background-color: var(--color_sub2);
  z-index: -1;
  opacity: 0.5;
}
.page-hero .section-inner {
  position: relative;
  z-index: 1;
}
.page-hero .section-label {
  margin-bottom: 0.8rem;
  text-align: left;
  color: white;
}
.page-hero .section-title {
  text-align: left;
  color: var(--color_white);
  font-size: clamp(3.2rem, calc(52 / var(--design-width) * 100vw), 5.2rem);
}
/* パンくずリスト */
.breadcrumb-wrap {
  padding: 1.2rem 0;
  text-transform: uppercase;
}
.breadcrumb-wrap .section-inner {
  display: flex;
  align-items: center;
  gap: 0 0.4rem;
  font-size: 1.2rem;
  color: var(--color_muted);
  flex-wrap: wrap;
}
.breadcrumb-wrap a {
  color: var(--color_muted);
}
.breadcrumb-wrap a:hover {
  color: var(--color_main);
}
/* 固定ページ セクション見出し */
.page-title {
  font-family: var(--font_serif);
  font-size: clamp(3rem, calc(46 / var(--design-width) * 100vw), 4.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--color_sub1);
}
.page-title.text-white {
  color: var(--color_white);
}

/* ===================================================
   8. ボタン（.btn）
=================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: fit-content;
  padding: 1.6rem 0 1.6rem 2rem;
  font-size: clamp(1.6rem, calc(20 / var(--design-width) * 100vw), 2rem);
  font-weight: 600;
  font-family: var(--font_serif);
  line-height: 1;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}
.btn::after {
  content:'';
  width: 4rem;
  height: 1px;
  position: relative;
  transition: var(--transition);
}
.btn:hover::after {
  transform: translateX(1rem);
}
/* 暗背景用ボタン */
.btn.btn-white {
  color: var(--color_white);
  border-color: var(--color_white);
}
.btn.btn-white::after {
  background-color: var(--color_white);
}
.btn.btn-white:hover {
  color: var(--color_main);
  background-color: var(--color_white);
}
.btn.btn-white:hover::after {
  background-color: var(--color_main);
}
/* グレー背景用ボタン */
.btn.btn-outline {
  color: var(--color_main);
  border-color: var(--color_main);
}
.btn.btn-outline::after {
  background-color: var(--color_main);
}
.btn.btn-outline:hover {
  color: var(--color_main);
  background-color: var(--color_white);
}
/* 白背景用ボタン */
.btn.btn-solid {
  color: var(--color_main);
  border-color: var(--color_main);
}
.btn.btn-solid::after {
  background-color: var(--color_main);
}
.btn.btn-solid:hover {
  color: white;
  background-color: var(--color_main);
}
.btn.btn-solid:hover::after {
  background-color: var(--color_white);
}
/* 白背景用ボタン（BLACK） */
.btn.btn-black {
  color: var(--color_text);
  border-color: var(--color_text);
}
.btn.btn-black::after {
  background-color: var(--color_text);
}
.btn.btn-black:hover {
  background-color: var(--color_bg);
}
.btn.btn-black:hover::after {
  background-color: var(--color_text);
}
/* カードボタン */
.btn.btn-card {
  font-size: clamp(1.6rem, calc(18 / var(--design-width) * 100vw), 1.8rem);
  font-weight: 500;
  gap: 1.2rem;
  padding: 0.8rem 0;
}
.btn.btn-card::after {
  width: 4rem;
  background-color: var(--color_text);
}
.btn.btn-card:hover {
  color: var(--color_main);
}
.btn.btn-card:hover::after {
  background-color: var(--color_main);
}
/* ドロワー内・フォーム送信ボタン */
.drawer .btn,
.wpcf7-submit {
  width: 100%;
  padding: 1.6rem;
}

/* ===================================================
   9. Slick スライダー
=================================================== */
.slider {
  position: relative;
}
/* Slick flex 等高レイアウト */
.slick-track {
  display: flex;
  padding: 4rem 0;
  margin-right: calc(clamp(1.5rem, calc(30 / var(--design-width) * 100vw), 3rem) * -1);
}
.wp-singular .slick-track {
  margin-right: auto !important;
}
.slick-slide {
  display: flex;
  height: auto;
}
.slick-slide > div {
  display: flex;
  flex-direction: column;
  width: 100%;
}
/* 矢印ボタン */
.slider .slick-prev,
.slider .slick-next {
  width: 4rem;
  height: 4rem;
  background: var(--color_white);
  border: 1px solid var(--color_logo);
  border-radius: 50%;
  z-index: 1;
  transition: var(--transition);
}
.slider .slick-prev:hover,
.slider .slick-next:hover {
  background: var(--color_logo);
}
.slider .slick-prev::before,
.slider .slick-next::before {
  font-family: var(--font_bs);
  font-size: 2.0rem;
  color: var(--color_logo);
  opacity: 1;
}
.slick-prev:before {
  content: "\F284";
}
.slick-next:before {
  content: "\F285";
}
.slider .slick-prev:hover::before,
.slider .slick-next:hover::before {
  color: var(--color_white);
}
/* dots */
.slider .slick-dots {
  bottom: -3.2rem;
  left: 0;
  right: 0;
}
.slider .slick-dots li button::before {
  font-size: 1.0rem;
  color: var(--color_gray);
  opacity: 1;
  transition: var(--transition);
}
.slider .slick-dots li.slick-active button::before {
  color: var(--color_main);
  opacity: 1;
}

/* 導入事例 / 研修プログラム 汎用スライダー */
.case_slider {
  margin-bottom: 4rem;
}
.case_slider .case_card {
  margin: 0 1.2rem;
  display: flex !important;
}
.case_slider .slick-prev,
.case_slider .slick-next {
  top: 30%;
}
@media (max-width: 768px) {
  .case_slider .slick-prev { left: -0.8rem; }
  .case_slider .slick-next { right: -0.8rem; }
}

/* ===================================================
   10. フォーム（CF7）基本スタイル
=================================================== */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 1.2rem 1.6rem;
  border: 1px solid var(--color_gray);
  border-radius: 0.4rem;
  font-family: var(--font_jp);
  font-size: 1.6rem;
  color: var(--color_text);
  background: var(--color_white);
  transition: var(--transition);
  appearance: none;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: var(--color_main);
}
.wpcf7 textarea {
  min-height: 16rem;
  resize: vertical;
}
.wpcf7-submit {
  display: block;
  background: var(--color_main);
  color: var(--color_white);
  border: 2px solid var(--color_main);
  border-radius: 5rem;
  font-size: 1.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.wpcf7-submit:hover {
  background: transparent;
  color: var(--color_main);
}
/* バリデーションメッセージ */
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 1.2rem;
  color: #e00;
  margin-top: 0.4rem;
}
.wpcf7 .wpcf7-response-output {
  font-size: 1.4rem;
  margin-top: 2rem;
  padding: 1.2rem 1.6rem;
  border-radius: 0.4rem;
}

/* ===================================================
   11. アーカイブカード・ページネーション・404
=================================================== */
.archive-content {
  padding: clamp(4rem, calc(60 / var(--design-width) * 100vw), 6rem) 0;
}
/* アーカイブカード */
.archive-list {
  display: grid;
  gap: 4rem 3.2rem;
}
.archive-card {
  display: flex;
  flex-direction: column;
}
.archive-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.archive-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.archive-card:hover .archive-card__thumb img {
  transform: scale(1.05);
}
.archive-card__date {
  font-size: 1.2rem;
  color: var(--color_muted);
  margin-bottom: 0.8rem;
}
.archive-card__title {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color_sub1);
}
/* ページネーション */
.pagination {
  margin-top: 6rem;
}
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--color_gray);
  border-radius: 0.4rem;
  font-size: 1.4rem;
  color: var(--color_text);
  transition: var(--transition);
}
.pagination a:hover,
.pagination .current {
  background: var(--color_main);
  border-color: var(--color_main);
  color: var(--color_white);
}
/* 404 */
.error404-body {
  text-align: center;
  padding: clamp(8rem, calc(170 / var(--design-width) * 100vw), 17rem) 0;
}
.error404-body .error-code {
  font-size: 12rem;
  font-weight: 700;
  color: var(--color_bg);
  line-height: 1;
  margin-bottom: 2rem;
}
.error404-body .error-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color_sub1);
  margin-bottom: 1.6rem;
}
.error404-body .error-text {
  font-size: 1.6rem;
  color: var(--color_muted);
  margin-bottom: 4rem;
}

/* ===================================================
   12. 導入事例カード・コラムカード（アーカイブ共通）
=================================================== */
/* 導入事例 グリッド（アーカイブページ用） */
.case_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
}
/* 導入事例 カード */
.case_card {
  background: var(--color_white);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px #316e481a;
}
.case_card__img {
  overflow: hidden;
}
.case_card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}
.case_card:hover .case_card__img img {
  transform: scale(1.04);
}
.case_card__body {
  padding: 3rem clamp(2rem, calc(30 / var(--design-width) * 100vw), 3rem);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.case_card .no-img {
  background-color: var(--color_logo);
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 3/2;
}
.case_card .no-img img {
  width: 20rem;
  height: auto;
}
.case_card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.case_card__tag {
  font-size: 1.2rem;
  background-color: var(--color_sub5);
  padding: 0.2rem 0.8rem;
}
.case_card__title {
  font-family: var(--font_serif);
  font-size: clamp(2rem, calc(24 / var(--design-width) * 100vw), 2.4rem);
  font-weight: 700;
  color: var(--color_logo);
  line-height: 1.6;
}
.case_card__text {
  font-size: clamp(1.4rem, calc(16 / var(--design-width) * 100vw), 1.6rem);
  line-height: 1.8;
  color: var(--color_text);
  flex: 1;
}
/* コラム リスト・カード */
.column_list {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, calc(40 / var(--design-width) * 100vw), 4rem);
}
.column_item {
  display: flex;
  align-items: flex-start;
  background: var(--color_white);
  box-shadow: 0 0 30px #316e481a;
  text-decoration: none;
  transition: var(--transition);
}
.column_item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.column_item__img {
  width: 100%;
  height: stretch;
  flex-shrink: 0;
  overflow: hidden;
  transition: var(--transition);
}
.column_item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.column_item:hover .column_item__img {
  opacity: 0.7;
}
.column_item__img .no-img {
  background-color: var(--color_logo);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.column_item .no-img img {
  width: 20rem;
  height: auto;
}
.column_item__body {
  flex: 1;
  min-width: 0;
  padding: clamp(2rem, calc(24 / var(--design-width) * 100vw), 2.4rem) clamp(2rem, calc(30 / var(--design-width) * 100vw), 3rem);
}
.column_item__meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color_muted);
}
.column_item__cat {
  background: var(--color_sub2);
  padding: 0.4rem 0.6rem;
  color: white;
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 500;
}
.column_item__title {
  font-family: var(--font_serif);
  font-size: clamp(2.2rem, calc(24 / var(--design-width) * 100vw), 2.4rem);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.column_item__text {
  font-size: 1.4rem;
  line-height: 1.7;
}
.column_empty {
  font-size: 1.4rem;
}

/* ===================================================
   13. ヘッダー
=================================================== */
/* ベース */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header_height);
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
/* スクロール後：白背景 */
.header.is-scrolled {
  background: var(--color_white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
/* KVを超えたら白背景 */
.header.is_active {
  background: var(--color_white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
/* 内側レイアウト */
.header_section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--sectionLargeWidth);
  margin: 0 auto;
}
/* ロゴ */
.header_logo a {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.header_logo img {
  height: clamp(4rem, calc(55 / var(--design-width) * 100vw), 5.5rem);
  width: auto;
}
.header_logo__text {
  display: flex;
  align-items: center;
  color: var(--color_white);
  transition: color var(--transition);
}
.header_logo__text svg {
  height: clamp(3.5rem, calc(50 / var(--design-width) * 100vw), 5rem);
  width: auto;
}
.header.is_active .header_logo__text {
  color: var(--color_logo);
}
/* PC ナビ */
.header_nav {
  display: flex;
  align-items: center;
  gap: 2.8rem;
}
.header_list {
  display: flex;
  align-items: center;
  gap: clamp(2rem, calc(40 / var(--design-width) * 100vw), 4rem);
}
.header_list li a {
  font-family: var(--font_serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color_white);
  position: relative;
  letter-spacing: 0.05em;
  transition: var(--transition);
  padding: 1.1rem 0;
}
/* ホバー：下線 + 色変化 */
.header_list li a::after {
  content: '';
  position: absolute;
  bottom: 1.1rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color_main);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.header_list li a:hover {
  color: var(--color_main) !important;
}
.header_list li a:hover::after {
  transform: scaleX(1);
}
/* スクロール後：リンクを濃色に */
.header.is-scrolled .header_list li a,
.header.is_active .header_list li a {
  color: var(--color_text);
}
/* ドロップダウン：親 li */
.header_list li.menu-item-has-children {
  position: relative;
}
/* PC：親リンクの下矢印アイコンは非表示 */
.header_list li.menu-item-has-children > a::before {
  content: none;
}
/* ドロップダウン本体 */
.header_list .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(16px);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header.is-scrolled .header_list .sub-menu,
.header.is_active .header_list .sub-menu {
  background: rgba(255, 255, 255, 0.4);
}
/* ホバーで表示 */
.header_list li.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(8px);
}
/* サブメニューのリンク */
.header_list .sub-menu li a {
  display: block;
  padding: 1.2rem 2rem;
  font-size: 1.4rem;
  font-weight: 500;
  transition: var(--transition);
}
.header_list .sub-menu li a::after {
  display: none;
}
.header_list .sub-menu li a:hover {
  color: var(--color_main) !important;
}
.header_contact__btn {
  background-color: var(--color_logo);
  color: var(--color_white);
  letter-spacing: 0.05em;
  padding: 1.1rem 2rem;
}
.header_contact__btn::after {
  display: none;
}
.header_contact__btn:hover {
  color: var(--color_logo);
  background-color: var(--color_white);
  border-color: var(--color_logo);
}
/* ドロワー展開中：ヘッダー背景・ロゴを透明に */
.header.is-drawer-open {
  background: transparent !important;
  box-shadow: none !important;
}
.header.is-drawer-open .header_logo {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
/* ============================================================
   ハンバーガーボタン（SP用、PC では非表示）
============================================================ */
.header_drawer__btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  width: 4.4rem;
  height: 4.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.header_drawer__btn span {
  display: block;
  width: 2.4rem;
  height: 2px;
  background: var(--color_white);
  border-radius: 2px;
  transition: var(--transition);
}
/* スクロール後：バーを濃色に */
.header.is-scrolled .header_drawer__btn span,
.header.is_active .header_drawer__btn span {
  background: var(--color_text);
}
/* 閉じる状態（×） */
.header_drawer__btn.--close span {
  background: var(--color_white) !important;
}
.header_drawer__btn.--close span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.header_drawer__btn.--close span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.header_drawer__btn.--close span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* ============================================================
   SP ドロワーメニュー
============================================================ */
.header_drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color_sub1);
  z-index: 99;
  display: flex;
  align-items: self-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden;
}
.header_drawer.is-open {
  opacity: 1;
  visibility: visible;
}
.header_drawer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  background-image: url(../images/footer-logo.svg);
  background-size: 110% auto;
  background-position: bottom center;
  background-repeat: no-repeat;
}
.header_drawer__inner {
  width: 100%;
  padding: 10vh 3.2rem 0;
  position: relative;
  z-index: 1;
  text-align: center;
}
.header_drawer__list {
  margin-bottom: 4rem;
}
.header_drawer__list li a {
  display: block;
  padding: 2rem 0;
  font-family: var(--font_serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color_white);
  letter-spacing: 0.1em;
  transition: var(--transition);
}
.header_drawer__list li a:hover {
  opacity: 0.7;
}
/* SP：親リンク右端に下矢印アイコン */
.header_drawer__list li.menu-item-has-children > a {
  position: relative;
}
.header_drawer__list li.menu-item-has-children > a::after {
  content: '\F282';
  font-family: var(--font_bs);
  font-size: 1.6rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}
.header_drawer__list li.menu-item-has-children.is-open > a::after {
  transform: translateY(-50%) rotate(180deg);
}
/* ドロワー内サブメニュー */
.header_drawer__list .sub-menu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.header_drawer__list li.menu-item-has-children.is-open .sub-menu {
  max-height: 40rem;
}
.header_drawer__list .sub-menu li a {
  font-size: 1.6rem;
  padding: 1rem 0;
  opacity: 0.75;
}
/* ドロワー内 CONTACT ボタン */
.header_drawer__contact {
  width: 100%;
  padding: 1.6rem;
  background: var(--color_white);
  color: var(--color_sub1);
  border-color: var(--color_white);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.header_drawer__contact:hover {
  background: transparent;
  color: var(--color_white);
}
.header_drawer__contact::after {
  display: none;
}
/* ウォーターマーク */
.header_drawer__watermark {
  position: absolute;
  bottom: -6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font_serif);
  font-size: 20rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}
/* オーバーレイ（未使用のため非表示） */
.header_drawer__overlay {
  display: none;
}

/* ===================================================
   13. フッター
=================================================== */
.footer {
  background: var(--color_dark);
  padding: 6rem 0 0;
  position: relative;
}
.footer::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  mix-blend-mode: overlay;
  width: 100%;
  height: 100%;
  max-width: 96rem;
  background-image: url(../images/footer-logo.svg);
  background-repeat: no-repeat;
  background-position: right bottom;
}
.footer_inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: clamp(4rem, calc(48 / var(--design-width) * 100vw), 4.8rem);
  position: relative;
  z-index: 1;
}
/* ロゴ */
.footer_logo a {
  display: inline-block;
}
.footer_logo img {
  height: 8rem;
  width: auto;
  margin-bottom: 2rem;
}
/* 会社情報 */
.footer_info {
  font-size: 1.4rem;
  color: var(--color_white);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, calc(50 / var(--design-width) * 100vw), 5rem);
}
.footer_info p {
  line-height: 2;
}
.footer_companyname {
  font-family: var(--font_serif);
  font-size: clamp(2.6rem, calc(30 / var(--design-width) * 100vw), 3rem);
}
/* フッターナビ */
.footer_list {
  row-gap: 2.4rem;
  column-gap: clamp(2.4rem, calc(50 / var(--design-width) * 100vw), 5rem);
  display: grid;
  flex-direction: column;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "top    service"
    "about  service"
    "case service"
    "column service"
    "contact   service";
  grid-template-rows: repeat(5, auto);
}
.footer_list li a {
  display: block;
  font-family: var(--font_serif);
  font-size: clamp(1.4rem, calc(16 / var(--design-width) * 100vw), 1.6rem);
  line-height: 1.2;
  color: var(--color_white);
  transition: var(--transition);
}
.footer_list li a:hover {
  opacity: 0.7;
}
.footer_list .sub-menu {
  display: flex;
  flex-direction: column;
}
.footer_list .sub-menu li {
  padding-left: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
}
.footer_list .sub-menu li::before {
  content: '-';
  position: relative;
  display: inline-block;
  padding-right: .5rem;
  color: var(--color_white);
}
/* 各liにエリア名を割り当て */
#menu-item-15      { grid-area: top; }
#menu-item-49    { grid-area: about; }
#menu-item-17  { grid-area: case; }
#menu-item-18  { grid-area: column; }
#menu-item-19  { grid-area: contact; }
/* WHAT WE DO は右側（2列目） */
#menu-item-70 {
  grid-area: service;
}
/* コピーライト */
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.4rem 1.6rem;
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
}
/* SP 底部 CTA バー（PCでは非表示） */
.fixed_footer {
  display: none;
}

/* ===================================================
   14. ページトップボタン（.pagetop）
=================================================== */
.pagetop {
  position: fixed;
  bottom: 3.2rem;
  right: 3.2rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.pagetop.is-show {
  opacity: 1;
  visibility: visible;
}
.pagetop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  background: var(--color_main);
  border-radius: 50%;
  color: var(--color_white);
  font-size: 2rem;
  transition: var(--transition);
}
.pagetop a:hover {
  background: var(--color_sub1);
}

/* ===================================================
   15. 固定ページ本文（.page-content__body）
=================================================== */
.page-content__body .wp-block-heading,
.page-content__body .wp-block-paragraph,
.page-content__body .wp-block-list,
.page-content__body .wp-block-image {
  margin-bottom: 2rem;
}

/* ===================================================
   16. SP共通レスポンシブ
=================================================== */
@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
  /* ヘッダー：PC ナビを非表示 → ハンバーガー表示 */
  .header_section {
    padding: 0 .5rem 0 1.5rem;
  }
  .header_nav {
    display: none;
  }
  .header_drawer__btn {
    display: flex;
  }
  /* ドロワー：文字サイズ調整 */
  .header_drawer__list li a {
    font-size: 2.0rem;
    padding: 1.6rem 0;
  }
  /* フッター：縦並び */
  .footer::after {
    background-size: 100% auto;
    bottom: 5rem;
  }
  .footer_inner {
    flex-direction: column;
    gap: 8rem;
    padding-bottom: 10rem;
  }
  .footer_list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .footer_list li a {
    display: block;
    padding: 1rem 0;
  }
    /* SP 底部 CTA バー */
  .fixed_footer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5rem;
    z-index: 98;
  }
  .fixed_footer-contact,
  .fixed_footer-tel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
  }
  /* CONTACT（左） */
  .fixed_footer-contact {
    background: var(--color_sub1);
    color: var(--color_white);
    font-family: var(--font_serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
  }
  .fixed_footer-contact:hover {
    background: var(--color_logo);
  }
  .fixed_footer-contact svg,
  .fixed_footer-tel svg {
    width: 1.8rem;
    height: 1.8rem;
    flex-shrink: 0;
  }
  /* TEL（右） */
  .fixed_footer-tel {
    background: var(--color_white);
    color: var(--color_text);
    justify-content: flex-start;
    padding: 0 1.4rem;
    gap: 0.8rem;
  }
  .fixed_footer-tel:hover {
    opacity: 0.85;
  }
  .fixed_footer-info {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .fixed_footer-num {
    display: block;
    font-family: var(--font_jp);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color_text);
    line-height: 1.2;
  }
  .fixed_footer-hours {
    display: block;
    font-size: 1.0rem;
    font-weight: 400;
    color: var(--color_muted);
    line-height: 1.4;
    white-space: nowrap;
  }
  /* ページトップ：SP */
  .pagetop {
    bottom: 1.6rem;
    right: 1.6rem;
  }
  .pagetop a {
    width: 5.2rem;
    height: 5.2rem;
  }
  /* セクション余白 */
  .section {
    padding: 8rem 0;
  }
  /* 見出し */
  .section-head {
    margin-bottom: 4rem;
  }
  /* アーカイブカード：1カラム */
  .archive-list {
    grid-template-columns: 1fr;
    gap: 3.2rem;
  }
  /* ボタン */
  .btn {
    padding: 1.4rem 3.2rem;
  }
  /* Slick 矢印 */
  .slider .slick-prev {
    left: 0;
  }
  .slider .slick-next {
    right: 0;
  }
  /* 導入事例グリッド：1カラム */
  .case_grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  .case_card__tags {
    justify-content: center;
  }
  /* コラムカード：縦積み */
  .column_item {
    flex-direction: column;
  }
  .column_item__img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
  }
}
@media (min-width: 769px) {
  .sp-only {
    display: none;
  }
  .header_section {
    padding: 0 clamp(2rem, calc(40 / var(--design-width) * 100vw), 4rem);
  }
  .footer::after {
    background-size: auto 100%;
  }
  .footer_list .sub-menu {
    gap: 2rem;
    margin-top: 2rem;
  }
  .archive-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .slider .slick-prev {
    left: -2.4rem;
  }
  .slider .slick-next {
    right: -2.4rem;
  }
  .column_item__img {
    max-width: min(39.5%, 30rem);
  }
}
