/*
Theme Name: AI corp
Theme URI: https://funos-studio.com/
Description: 独自テーマ
Version: 1.0.0
Author: S.F. Studio
Author URI: https://funos-studio.com/
*/

/* ------------------------------
  ベース設定
------------------------------ */
:root {
  --bg-body: #0f1115;
  --bg-card: #181a20;
  --bg-card-hover: #20232b;
  --text-main: #ffffff;
  --text-muted: #b5bbc7;
  --accent: #4f8dff;
  --border-subtle: rgba(255, 255, 255, 0.12);

  --radius-card: 18px;
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.6);

  /* コンテンツ最大幅：1440pxモニターも意識 */
  --max-width: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;

  /* グリッド背景 */
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 120px 120px;
}

/* ------------------------------
  レイアウト全体
------------------------------ */

.site-shell {
  min-height: 100vh;
}

/* サイドバー＋メインの横並び */
.layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-inline: clamp(1.5rem, 4vw, 3rem);
}

/* メインコンテンツ */
.site-main {
  flex: 1;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* ------------------------------
  サイドナビ（sidebar.php）
------------------------------ */

.side-nav-wrapper {
  position: relative;
  flex: 0 0 auto;
}

/* ドットナビは画面左に固定表示（PC想定） */
.side-nav {
  position: fixed;
  inset-block: 50%;
  inset-inline-start: clamp(16px, 2vw, 24px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 0.5rem + 0.7vw, 1.6rem);
  z-index: 50;
}

.side-nav__dot {
  position: relative;  /* ラベル位置の基準にする */
  /* 14px〜24px くらい */
  width:  clamp(0.9rem, 0.55rem + 0.8vw, 1.5rem);
  height: clamp(0.9rem, 0.55rem + 0.8vw, 1.5rem);

  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.45);
  background: transparent;
  display: block;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease;
}

/* ホバー時に出すラベル本体 */
.side-nav__dot::after {
  content: attr(data-label);
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 20px;        /* ドットの右側から出す基準位置 */
  transform: translate(-8px, -50%);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  /* background: rgba(0, 0, 0, 0.78); */ /* うっすら透けた黒 */
  background:
  radial-gradient(circle at top left, rgba(122,240,255,0.35), transparent 60%),
  rgba(0,0,0,0.85);
  color: #7af0ff;                  /* サイバー感のあるシアン */
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;            /* ラベルにマウスが乗っても邪魔しない */
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(122, 240, 255, 0.4);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.side-nav__dot:hover,
.side-nav__dot.is-active {
  transform: scale(1.28); /* ← 少し大きく */
  border-color: var(--accent);
  background: rgba(79,141,255,0.4); /* サイバー感 */
  box-shadow: 0 0 16px rgba(122, 240, 255, 0.7);
}

.side-nav__dot::after {
  inset-inline-start: calc(100% + 0.5rem);
  padding: 0.32rem 0.8rem; /* ラベルもバランス調整 */
}

/* ホバー時はドットも少し光らせる */
.side-nav__dot:focus-visible {
  box-shadow: 0 0 16px rgba(122, 240, 255, 0.7);
}

/* ホバー or キーボードフォーカスで表示 */
.side-nav__dot:hover::after,
.side-nav__dot:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);   /* 左からスッと出す */
}




/* ------------------------------
  ヘッダー
------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 17, 21, 0.94), transparent);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.site-header__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 0 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* 下にスクロールしたら上にスッと消える */
.site-header.is-hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}


/* ロゴ */
.site-logo a,
.site-logo__text {
  color: var(--text-main);
  text-decoration: none;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 画像ロゴのリンク（WordPressが自動で付けるクラス） */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

/* ロゴ画像本体 */
.custom-logo {
  display: block;
  height: clamp(1.75rem, 1.6rem + 0.75vw, 2.5rem);  /* ここでサイズ調整 */
  width: auto;
}

/* テキストロゴ（画像ロゴ未設定時に表示するテキスト） */
.site-logo__text {
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-main);
  white-space: nowrap;
}

/* テキストロゴのホバー時 */
.site-logo__text:hover {
  opacity: 0.85;
}


/* グローバルナビ（必要ならメニュー登録） */
.site-global-nav {
  display: flex;
  align-items: center;
}

.global-nav__list {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav__list a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.global-nav__list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ヘッダー右側の「お問い合わせ」ボタン */
.header-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 1.5rem;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, var(--accent), #7aa7ff);
  color: #050609;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(79,141,255,0.45);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.header-contact-cta:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 14px 34px rgba(79,141,255,0.6);
}


/* 現在位置用 */
.global-nav__list a.is-current {
  color: var(--accent);
  border-color: var(--accent);
}

/* モバイル用トグル（見た目だけ用意） */
.site-header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;

  align-items: center;
  justify-content: center;
  flex-direction: column;        /* ← 縦方向に並べる */
  gap: 5px;                      /* ← 線の間隔 */
}

.site-header__toggle-line {
  /* display: block; */
  width: 20px;
  height: 2px;
  /* margin: 0 auto; */
  border-radius: 999px;
  background: var(--text-main);
}

/* ------------------------------
  グローバルナビ：サブメニュー
------------------------------ */
.global-nav__list .menu-item {
  position: relative;
}

.global-nav__list .menu-item-has-children > a {
  padding-inline-end: 1.2em;
}

.global-nav__list .menu-item-has-children > a::after {
  content: "▾";
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
  opacity: 0.75;
}

/* 親メニューとサブメニューの間の “橋” */
.global-nav__list .menu-item-has-children::after{
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
  height: 14px; /* ギャップより少し大きめ */
}


/* サブメニュー（PC） */
.global-nav__list .sub-menu {
  display: none;
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: calc(100% + 10px);
  min-width: clamp(12rem, 18vw, 16rem);
  padding: 0.7rem 0.8rem;
  margin: 0;
  list-style: none;

  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(15, 17, 21, 0.96);
  box-shadow: 0 14px 36px rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  z-index: 60;
}

.global-nav__list .sub-menu a {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
}

.global-nav__list .menu-item-has-children:hover > .sub-menu,
.global-nav__list .menu-item-has-children:focus-within > .sub-menu {
  display: block;
}



/* ------------------------------
  セクション共通
------------------------------ */

.section {
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* .section__inner--narrow {
  max-width: min(720px, 100% - 6vw);
} */

.section__title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.section__lead {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: clamp(0.95rem, 1.9vw, 1.05rem);
}

/* セクション用 背景ブロック */
.section-bg {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  padding: clamp(2.2rem, 4vw, 2.8rem);
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.04),
      rgba(0,0,0,0.6)
    );
  backdrop-filter: blur(8px);
}


/* ------------------------------
  ヒーロー(TOP)
------------------------------ */

.hero {
  display: flex;
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  aspect-ratio: 16 / 9;            /* ここで16:9に固定 */
  overflow: hidden;                /* はみ出し防止 */

  /* align-items: center;
  justify-content: flex-start; */

  /* height: clamp(22.5rem, 15rem + 37.5vw, 60rem); */
}


/* 背景側のwrapper */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}


/* 画像スライダー（背景部分共通） */
.hero__slides {
  position: absolute;
  inset: 0;
}

/* 各スライド */
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 15s infinite;  /*18*/
}

.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 5s; }  /*6*/
.hero__slide:nth-child(3) { animation-delay: 10s; } /*12*/

/* 1枚目：人物を少し中央寄りに */
.hero__slide:nth-child(1) {
  background-position: 20% 50%;
}

/* 2枚目：脳の位置をやや右寄りに */
.hero__slide:nth-child(2) {
  background-position: 60% 50%;
}

/* 3枚目：工場＋脳なら中央寄り など */
.hero__slide:nth-child(3) {
  background-position: 50% 50%;
}


/* 上にうっすら暗いグラデーションを重ねる */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(79,141,255,0.35), transparent 55%),
    linear-gradient(to bottom right, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
}

@keyframes heroFade {
  0%   { opacity: 0; }
  10%  { opacity: 1; }
  30%  { opacity: 1; }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}

/* テキスト＋CTA */
.hero__inner {
  position: relative;
  z-index: 2;

  height: 100%;                    /* aspect-ratioで決まった高さにフィット */
  display: flex;
  align-items: center;
  padding-inline: clamp(1.5rem, 6vw, 2.8rem);
  /* max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 6vw, 2.8rem); */
}

/* テキストのブロック */
.hero__content {
  max-width: 460px;
}

.hero__title {
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  line-height: 1.3;
  margin: 0 0 1.1rem;  margin: 0 0 1.1rem;
}

/* ヒーロータイトル：１文字ずつフェードイン */
/* JS で１文字ずつ span に分解し、ディレイを付けて読み込み */
/* アニメーションタイミングはJS側で制御 */
.hero__title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  animation: heroCharFade 0.6s ease forwards;
}

/* 文字フェードの動き */
@keyframes heroCharFade {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ヒーロータイトル：１文字ずつフェードインここまで */

/* ヒーローサブタイトル：下からフェードイン */
.hero__lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  margin: 0 0 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroLeadFade 0.8s ease forwards;
  animation-delay: 0.4s;  /* 後からJSで上書き */
}

@keyframes heroLeadFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ヒーローサブタイトル：下からフェードイン ここまで */

/* hero__cta：サブタイトルから遅れてふわっと表示 */
/* CTAボタン */
.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(135deg, var(--accent), #7aa7ff);
  color: #050609;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: 0.25s;

  opacity: 0;
  transform: translateY(20px);
  animation: heroCtaFade 0.8s ease forwards;
  animation-delay: 0.8s; /* 後からJSで上書き */
}

@keyframes heroCtaFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* hero__cta：サブタイトルから遅れてふわっと表示 ここまで*/

.hero__cta:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(79,141,255,0.4);
}


/* ------------------------------
  カードレイアウト(TOPサービス)
------------------------------ */
/* ------------------------------
  導入実績カウンター(TOPサービス)
------------------------------ */

.card-grid {
  display: grid;
  gap: 1.4rem;
}

/* 導入実績カウンター */
/* PCでは3~4カラム */
.card-grid--stats {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.4rem, 2.6vw, 1.9rem);
}

/* 導入実績：セクション全体のトーン調整 */
.section__inner--metrics {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* 見出しまわりを少し強調 */
.section__inner--metrics .section__title {
  font-size: clamp(1.7rem, 2.7vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.section__inner--metrics .section__lead {
  max-width: 40rem;
  font-size: clamp(1.02rem, 2vw, 1.12rem);
  color: var(--text-muted);
}

/* グリッドの余白を少し広めに */
.section__inner--metrics .card-grid--stats {
  margin-top: 2rem;
  gap: clamp(1.4rem, 2.6vw, 1.9rem);
}

/* ラベルを少し控えめにして数字を引き立てる */
.card--stat .card__label {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  letter-spacing: 0.14em;
  opacity: 0.9;
  margin-bottom: 0.4rem;
  color: rgba(122,240,255,0.95);
}

/* 説明文は少しトーンを落として差を出す */
.card--stat .card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
}


/* 数字本体：中央寄せ気味に */
.card--stat .stat-card__value {
  position: relative;
  display: block;        /* 横幅をカードいっぱいに */
  width: 100%;
  text-align: center;    /* ここで数字を中央寄せ */
  font-size: clamp(2.8rem, 5.6vw, 3.5rem);
  font-weight: 650;
  line-height: 1.05;
  margin: 0.2rem 0 0.5rem;
  color: #fff;
}

/* 数字の下の小さな光にじみ */
.card--stat .stat-card__value::after {
  content: "";
  position: absolute;

  left: 50%;
  transform: translateX(-50%) scaleX(0.7); /* 中央寄せ＋横方向だけ縮める */
  bottom: clamp(-0.25rem, -0.3vw, -0.15rem);

  width: 60%;  /* 数字幅より少し広いくらい */
  height: clamp(0.6rem, 1.6vw, 0.9rem);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(79, 141, 255, 0.65), transparent 70%);
  filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
}

/* カウントアップ開始後に光がふわっと強まる */
.card--stat.is-active .stat-card__value::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

/* 数字テキストを前面に */
.card--stat .stat-card__value span {
  position: relative;
  z-index: 1;
}

/* 導入実績カード：数字を主役にしたデザイン */
/* 通常状態（数字カード）：紺系 + 透け感 + シアン枠 */
.card--stat {
  display: flex;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(79,141,255,0.25), transparent 60%),
    rgba(3, 9, 24, 0.42);  /* 透け感 */
  border-radius: 22px;
  padding: clamp(1.5rem, 2.2vw, 1.8rem) clamp(1.5rem, 2.4vw, 2rem);
  border: 1px solid rgba(122,240,255,0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(12px);

}
/* ホバー時：現在の光るデザインに切り替え */
.card--stat:hover {
  /* transform: translateY(-4px);
  border-color: rgba(122,240,255,0.85);
  background:
    radial-gradient(circle at top left, rgba(122,240,255,0.4), transparent 55%),
    rgba(3, 9, 24, 0.65); */
  box-shadow: 0 0 6px rgba(122,240,255,0.55);
}

/* 導入実績カウンター ここまで */


/* ------------------------------
  サービス紹介(TOPサービス)
------------------------------ */
/* PCでは4カラム */
.card-grid--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
}

/* セクションタイトル（サービス紹介） */
.section--services .section__title {
  font-size: clamp(1.7rem, 2.7vw, 2.1rem);   /* 導入実績と統一 */
  margin-bottom: 0.75rem;
}

/* リード文  */
.section--services .section__lead {
  font-size: clamp(1.02rem, 2vw, 1.12rem);
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

/* タイトルと本文サイズを「導入実績」と近いバランスにアップ */
.section--features-steps .card__title {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  margin-bottom: 0.6rem;
}


/* カードグリッドの余白調整 */
.section__inner--services .card-grid--services {
  margin-top: 2.2rem;
  gap: clamp(1.6rem, 2.8vw, 2.2rem);
}

/* カード内の余白を少しだけ広げる */

.card-grid--services .card {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(79, 141, 255, 0.25), transparent 60%),
    rgba(3, 9, 24, 0.38);
  border-radius: var(--radius-card);
  border: 1px solid rgba(122, 240, 255, 0.22);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  backdrop-filter: blur(12px);
  padding: clamp(1.7rem, 2.4vw, 2rem) clamp(1.7rem, 2.6vw, 2.1rem);


}

.card-grid--services .card:hover {
  border-color: rgba(122, 240, 255, 0.85);
  background:
    radial-gradient(circle at top left, rgba(122, 240, 255, 0.4), transparent 55%),
    rgba(3, 9, 24, 0.5);
  box-shadow: 0 0 26px rgba(122, 240, 255, 0.55);
}
/* 表示後だけホバーを有効にする */
.card-grid--services .card.is-inview:hover {
  transform: translateY(-4px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}


/* カード上の小ラベル（例：文章生成AI） */
.card-grid--services .card__label {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  color: rgba(122,240,255,0.95);
}

/* カードタイトル（例：文章生成AIの見出し） */
.card-grid--services .card__title {
  font-size: clamp(1.15rem, 2vw, 1.3rem);     /* 少し大きくして視認性UP */
  margin-bottom: 0.7rem;
}

/* カード本文（説明テキスト） */
.card-grid--services .card__text {
  font-size: clamp(0.98rem, 1.7vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 0.8rem;
}


/* カード右下に寄せて配置する案 */
.section__inner--services .card--link {
  position: relative;
  padding-bottom: clamp(2.4rem, 2.343rem + 0.29vw, 2.8rem); /* 下に少し余白を追加 */
}

.card--link:hover .card__more--service {
  color: var(--accent);
  transform: translateX(3px);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.card__more--service {
  position: absolute;
  right: 24px;   /* 右から24px */
  bottom: 10px;  /* 下から18px */

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.84rem, 1.5vw, 0.92rem);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

.card__more--service::after {
  content: "→";
  font-size: 1em;
}


/* ------------------------------
  特徴/導入ステップ(TOP)
------------------------------ */
/* PCでは3カラム */
.card-grid--steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 特徴・メリット：3カラムカードレイアウト */
.card-grid--features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.8rem;
}

/* 特徴・導入ステップセクション：カードの見た目調整 */
.section--features-steps .card {
  position: relative;
  /* 紺色ベースで少し透ける背景 */
  background:
    radial-gradient(circle at top left, rgba(79, 141, 255, 0.25), transparent 60%),
    rgba(3, 9, 24, 0.38);
  border-radius: var(--radius-card);
  border: 1px solid rgba(122, 240, 255, 0.22);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  backdrop-filter: blur(12px);   /* うっすらガラス感（対応ブラウザのみ） */
  padding: clamp(1.7rem, 2.4vw, 2rem) clamp(1.7rem, 2.6vw, 2.1rem);

}

/* ホバー時：カード枠がシアンに光る */
.section--features-steps .card:hover {
  /* transform: none;
  border-color: rgba(122, 240, 255, 0.85);
  background:
    radial-gradient(circle at top left, rgba(122, 240, 255, 0.4), transparent 55%),
    rgba(3, 9, 24, 0.5); */

    box-shadow: 0 0 6px rgba(122, 240, 255, 0.55);
}

/* カード全体がリンクのときの調整 */
.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* フォーカス時の枠線（キーボード操作向け） */
.card--link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 小さなラベル */
.card__label {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.9;
}

.card__title {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  margin: 0 0 0.5rem;
}

/* ステップ内説明card__text の読みやすさアップ */
.section--features-steps .card__text {
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  line-height: 1.95;
  color: var(--text-muted);
}

/* 導入ステップ番号付きカードも同じトーンにそろえる */
.section--features-steps .card--step {
  position: relative;
  padding-top: 2.4rem;
}


.card-step__number {
  position: absolute;
  inset-block-start: 0.9rem;
  inset-inline-start: 1.3rem;
  font-size: 0.9rem;
  text-transform: uppercase;

  letter-spacing: 0.14em;
  color: rgba(122, 240, 255, 0.9); /* ほんの少し明るめ */

}


/* 特徴・導入ステップセクション全体の余白調整 */
.section--features-steps {
  padding-block: clamp(3.4rem, 7.5vw, 4.8rem);
}

.section__inner--split {
  gap: clamp(2.6rem, 4vw, 3.2rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);  /* 1カラムに変更 */
}

.split-block {
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  padding: clamp(2.1rem, 3.4vw, 2.6rem) clamp(1.8rem, 3vw, 2.2rem);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    rgba(0, 0, 0, 0.7)
  );
}

/* 特徴/導入ステップ:見出し・リード文のサイズを「導入実績」と揃える */
.section--features-steps .split-block .section__title {
  font-size: clamp(1.7rem, 2.7vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.section--features-steps .split-block .section__lead {
  font-size: clamp(1.02rem, 2vw, 1.12rem);
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

/* 特徴カード:テキスト調整 */
.card-grid--features .feature-card__title {
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  margin: 0 0 0.4rem;

}

.card-grid--features .feature-card__text {
  font-size: 0.96rem;
  line-height: 1.9;
  margin: 0;
  color: var(--text-muted);
}

/* 導入ステップカードの見出し・本文 */
.card-grid--steps .card__title {
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  margin-bottom: 0.45rem;
}

.card-grid--steps .card__text {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.feature-item__title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.feature-item__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}


/* ------------------------------
  導入事例(TOP)
------------------------------ */
.card-grid--cases {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  display: flex;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(circle at top left, rgba(79,141,255,0.25), transparent 60%),
    rgba(3, 9, 24, 0.38);  /* 透け感 */
  border-radius: var(--radius-card);
  padding: clamp(1.7rem, 2.4vw, 2rem) clamp(1.7rem, 2.6vw, 2.1rem);
  border: 1px solid rgba(122,240,255,0.22);

  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(12px);
  gap: 0.7rem;

}

/* ホバー時：現在の光るデザインに切り替え */
.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122,240,255,0.85);
  background:
    radial-gradient(circle at top left, rgba(122, 240, 255, 0.4), transparent 55%),
    rgba(3, 9, 24, 0.5);
  box-shadow: 0 0 26px rgba(122,240,255,0.55);
}

/* 表示後だけホバーを有効にする */
.card-grid--cases .case-card.is-inview:hover {
  transform: translateY(-4px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.case-card__tag {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.case-card__size {
  opacity: 0.8;
}

.case-card__title {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  margin: 0 0 0.4rem;
}

.case-card__text {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* 導入事例カード：右下の「詳細はこちら」 */
.case-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;       /* 右寄せ */
  gap: 0.35rem;

  font-size: clamp(0.84rem, 1.5vw, 0.92rem);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

.case-card__more::after {
  content: "→";
  font-size: 1em;
}

/* 導入事例カード：ホバー時の薄い光オーバーレイ */
.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(122,240,255,0.18), transparent 55%);
  transition: opacity 0.2s ease;
}

.case-card:hover .case-card__more,
.case-card:focus-visible .case-card__more {
  color: var(--accent);
  transform: translateX(3px);
  transition: color 0.2s ease, transform 0.2s ease;
}

.case-card:hover::before,
.case-card:focus-visible::before {
  opacity: 1;
}

/* 導入事例：一覧リンクの余白を確保 */
.cases-footer {
  margin-top: clamp(1.2rem, 2.2vw, 1.8rem);
  text-align: center;

}

.cases-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.25);

  font-size: clamp(0.88rem, 1.4vw, 0.95rem);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.82);
  text-decoration: none;

  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cases-footer__link::after {
  content: "→";
}

.cases-footer__link:hover,
.cases-footer__link:focus-visible {
  color: var(--accent);
  border-color: rgba(122,240,255,0.65);
  transform: translateY(-2px);
}


/* ------------------------------
  会社 / チーム紹介(TOP)
------------------------------ */
.section__inner--company {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: clamp(1.8rem, 3vw, 2.4rem);
  align-items: stretch;
}

.section__inner--company .section-bg{
  height: 100%;
}

/* 会社 / チーム紹介：1枚画像レイアウト */
.company-visual {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  height: 100%;
  min-height: clamp(22.5rem, 19.464rem + 15.18vw, 43.75rem);
  background-color: #050609;
  box-shadow: 0 26px 60px rgba(0,0,0,0.7);
}

/* 画像左1枚 */
.company-visual__single {
  height: 100%;
  position: absolute;
  inset: 0;
  background-size: cover;        /* どの画面でも余白なし */
  background-position: center 70%; /* 下側を多めに表示 */
  background-repeat: no-repeat;  /* ループ防止 */
}

/* 画像内の文字 */
.company-badges{
  position: absolute;
  inset-inline-start: clamp(1rem, 2vw, 1.4rem);
  inset-block-end: clamp(1rem, 2vw, 1.4rem);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 1vw, 0.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.company-badge{
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.06em;
}
/* 画像内の文字 ここまで*/

.company-content {
  font-size: 0.96rem;
}

.company-eyebrow{
  margin: 0 0 0.7rem;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: rgba(122,240,255,0.9);
  letter-spacing: 0.08em;
}

.company-text {
  color: var(--text-muted);
}

.company-points{
  margin: 1.1rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.95rem, 1.6vw, 1.02rem);
}

.company-mini{
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.company-mini__item{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  padding: 0.75rem 0.9rem;
}

.company-mini__label{
  display:block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}

.company-mini__value{
  display:block;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
}

/* チーム紹介カード */
.company-team{
  margin-top: clamp(1.1rem, 2.4vw, 1.6rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.8vw, 1rem);
}

.company-team-card{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  padding: clamp(0.9rem, 2vw, 1.1rem);
}

.company-team-card__role{
  margin: 0 0 0.35rem;
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(122,240,255,0.28);
  color: rgba(122,240,255,0.92);
  font-size: clamp(0.75rem, 1.3vw, 0.85rem);
  letter-spacing: 0.12em;
}

.company-team-card__title{
  margin: 0 0 0.4rem;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.5;
}

.company-team-card__text{
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1.5vw, 0.98rem);
  line-height: 1.8;
}

.company-more{
  margin-top: clamp(1.2rem, 2.5vw, 1.8rem);
  text-align: right;
}

.company-more a{
  color: rgba(122,240,255,0.9);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.company-more a:hover{
  color: #7af0ff;
  text-shadow: 0 0 10px rgba(122,240,255,0.4);
}

/* 会社ページへの導線 */
.company-link{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(122,240,255,0.9);
  text-decoration: none;
  letter-spacing: 0.06em;
  padding: 0.25rem 0;
}

.company-actions {
  text-align: right;
  margin-top: clamp(1.2rem, 2.5vw, 1.8rem);
}

.company-link:hover{
  color: #7af0ff;
  text-shadow: 0 0 10px rgba(122,240,255,0.35);
}

.company-link__arrow{
  transition: transform 0.2s ease;
}

.company-link:hover .company-link__arrow{
  transform: translateX(3px);
}



/* ------------------------------
  お問い合わせ(TOP)
------------------------------ */
.section__inner--contact{
  max-width: min(1100px, 100% - 6vw);
  margin: 0 auto;
}

#contact .contact-card{
  position: relative;
  padding: clamp(2.4rem, 4.5vw, 3.2rem) clamp(1.6rem, 3.6vw, 2.6rem);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 26px 60px rgba(0,0,0,0.9);
  background:
    radial-gradient(circle at top left, rgba(79,141,255,0.28), transparent 60%),
    radial-gradient(circle at bottom right, rgba(34,197,235,0.18), transparent 60%),
    rgba(8,10,16,0.95);

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "title"
    "left"
    "right";
  gap: clamp(1.4rem, 2.6vw, 2rem);
}

#contact .contact-card__title{
  grid-area: title;
  margin: 0;
}

#contact .contact-card__left{
  grid-area: left;
}

#contact .contact-card__right{
  grid-area: right;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact .contact-card__lead{
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.9vw, 1.05rem);
  line-height: 1.85;
}

#contact .contact-card__points{
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

#contact .contact-card__points li{
  font-size: clamp(0.88rem, 1.6vw, 0.95rem);
  line-height: 1.7;
  opacity: 0.88;
}

#contact .contact-card__sub{
  margin: 0;
  font-size: clamp(0.9rem, 1.6vw, 0.98rem);
  color: var(--text-muted);
  line-height: 1.7;
}

#contact .contact-card__note{
  margin: 0;
  font-size: clamp(0.82rem, 1.4vw, 0.9rem);
  color: var(--text-muted);
  opacity: 0.78;
}

/* ボタン */
#contact .btn-primary--contact{
  margin-inline: 0;
  align-self: flex-start;

}



/* お問い合わせCTA（ボタン） */
#contact .contact-cta{
  text-decoration: none;
  margin-top: clamp(0.6rem, 1.2vw, 1rem);
}

/* ボタン本体（既存のbtn-primaryを上書きしてCTA化） */
#contact .btn-primary--contact{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: clamp(11rem, 18vw, 13.5rem);
  padding-block: clamp(0.85rem, 1.2vw, 1rem);
  padding-inline: clamp(1.6rem, 2.6vw, 2.2rem);

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.55);
  background: linear-gradient(135deg, var(--accent), #7aa7ff);
  color: #050609;

  font-size: clamp(0.9rem, 1.5vw, 0.98rem);
  letter-spacing: 0.06em;

  box-shadow: 0 14px 32px rgba(79,141,255,0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

#contact .btn-primary--contact:hover{
  transform: translateY(-2px);
  opacity: 0.96;
  box-shadow: 0 18px 38px rgba(79,141,255,0.7);
}

#contact .btn-primary--contact:focus-visible{
  outline: 2px solid rgba(122,240,255,0.9);
  outline-offset: 4px;
}

/* ----------------------------------------
  アニメーション設定
  サービス紹介セクション、
  特徴・メリット／導入ステップセクション、
  導入事例セクションのフェードイン
  タイトル → リード → カードを順番に表示
---------------------------------------- */
/* 背景が変わりにくい “ふわっと” */
.section--fadein-no-opacity{
  opacity: 1;
  transform: none;
  filter: blur(10px);
  transition: filter 1.2s ease;
}

.section--fadein-no-opacity.is-inview{
  filter: blur(0);
}

/* タイトル → リード → カードを順番に表示 */
.js-services-title,
.js-services-lead,
.js-service-card,
.js-features-title,
.js-features-lead,
.js-feature-card,
.js-steps-title,
.js-steps-lead,
.js-step-card,
.js-cases-title,
.js-cases-lead,
.js-case-card {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

/* 導入事例カードだけ、表示にカクツキがあるため
  少し控えめな動きに調整 */
.case-card.js-case-card {
  transition-property: opacity, transform;
  transition-duration: 0.7s;
  transition-timing-function: ease-out;
}

/* 導入事例カード：ホバー反応を遅らせないために分離 */
/* ホバー時の動作は即座に反応させる */
.case-card:hover {
  transition-duration: 0.15s;
  transform: translateY(-6px);
}

.js-services-title.is-inview,
.js-services-lead.is-inview,
.js-service-card.is-inview,
.js-features-title.is-inview,
.js-features-lead.is-inview,
.js-feature-card.is-inview,
.js-steps-title.is-inview,
.js-steps-lead.is-inview,
.js-step-card.is-inview,
.js-cases-title.is-inview,
.js-cases-lead.is-inview,
.js-case-card.is-inview {
  opacity: 1;
  transform: translateY(0);
}



/* ------------------------------
  サービス個別ページ
------------------------------ */
/* ヒーロー */
.service-single-hero {
  margin-bottom: clamp(2.4rem, 5vw, 3rem);
}

/* ヒーロー画像 */
.service-single-hero__visual {
  margin: 0 0 1.5rem;
  border-radius: 16px;
  overflow: hidden;
}

.service-single-hero__visual img {
  display: block;
  width: 100%;
  /* 16:9 に近い比率で表示する想定 */
  max-height: 360px;
  object-fit: cover;
}

/* ヒーローテキスト部分 */
.service-single-hero__inner {
  padding: clamp(2rem, 4vw, 2.6rem) clamp(2.2rem, 5vw, 3rem);
  border-radius: 16px;
  background: radial-gradient(circle at top left, rgba(80,120,255,0.4), transparent 55%),
              radial-gradient(circle at bottom right, rgba(0,0,0,0.9), #050608);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.service-single__label {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(21, 132, 255, 0.12);
  margin-bottom: 0.75rem;
}

.service-single__title {
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.service-single__lead {
  max-width: 40rem;
  font-size: clamp(0.95rem, 1.2vw, 1rem);
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.service-single-hero__actions .btn--primary {
  min-width: 11rem;
}

/* 汎用ブロック */
.service-single-block {
  margin-bottom: clamp(2.2rem, 4vw, 3rem);
}

.section__title--sub {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  margin-bottom: 1rem;
}

.service-single-block__body p {
  margin: 0;
}

/* ステップカード番号 */
.service-step-card__number {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.35rem;
}

/* FAQ */
.service-faq__item {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(6, 8, 12, 0.8);
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
}

.service-faq__question {
  cursor: pointer;
  font-size: 0.95rem;
}

.service-faq__answer {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ------------------------------
  サービス詳細個別ページ 下部CTA
------------------------------ */
.section--next{
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

#service-next .section__inner--narrow{
  width: min(980px, 100%);
  max-width: 980px;
}

.next-card{
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(24, 26, 32, 0.78);
  box-shadow: 0 24px 60px rgba(0,0,0,0.65);
  backdrop-filter: blur(14px);
}

.next-card__title{
  margin: 0 0 clamp(0.6rem, 1.2vw, 0.85rem);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.next-card__text{
  margin: 0 0 clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.9;
}

.next-actions{
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.6vw, 1rem);
}

.next-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: clamp(0.9rem, 1.6vw, 1rem) clamp(1.1rem, 2vw, 1.3rem);
  border: 1px solid rgba(255,255,255,0.16);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
  flex: 1;
  min-width: 220px;
}

.next-btn--primary{
  color: #fff;
  background: linear-gradient(135deg, rgba(79,141,255,0.9), rgba(79,141,255,0.55));
  box-shadow: 0 16px 40px rgba(79,141,255,0.22);
}

.next-btn--ghost{
  color: var(--text-main);
  background: rgba(15, 17, 21, 0.55);
}

.next-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}



/* ------------------------------
  導入事例(一覧ページ)
------------------------------ */
/* チェックボックス版 絞込フォーム用 */
.case-filter {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: flex-end;
  margin-block: clamp(1rem, 2vw, 1.5rem);
}

.case-filter__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.case-filter__label {
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  white-space: nowrap;
}

.case-filter select {
  min-width: clamp(8rem, 14vw, 12rem);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 15, 0.9);
  color: inherit;
}

.case-filter__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
}

.case-filter__option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  cursor: pointer;
}

.case-filter__option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent); /* 対応ブラウザで色を揃える */
}

.case-filter__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.case-filter__clear {
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  text-decoration: underline;
}

/* ------------------------------
  サービス個別下部 CTA
------------------------------ */
.section--next{
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

#service-next .section__inner--narrow{
  width: min(980px, 100%);
  max-width: 980px;
}

.next-card{
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(24, 26, 32, 0.78);
  box-shadow: 0 24px 60px rgba(0,0,0,0.65);
  backdrop-filter: blur(14px);
}

.next-card__title{
  margin: 0 0 clamp(0.6rem, 1.2vw, 0.85rem);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.next-card__text{
  margin: 0 0 clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.9;
}

.next-actions{
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.6vw, 1rem);
}

.next-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: clamp(0.9rem, 1.6vw, 1rem) clamp(1.1rem, 2vw, 1.3rem);
  border: 1px solid rgba(255,255,255,0.16);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
  flex: 1;
  min-width: 220px;
}

.next-btn--primary{
  color: #fff;
  background: linear-gradient(135deg, rgba(79,141,255,0.9), rgba(79,141,255,0.55));
  box-shadow: 0 16px 40px rgba(79,141,255,0.22);
}

.next-btn--ghost{
  color: var(--text-main);
  background: rgba(15, 17, 21, 0.55);
}

.next-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}








/* ------------------------------
  会社情報ページ（page-company.php）
------------------------------ */

.section__inner--company-page{
  max-width: min(1100px, 100% - 6vw);
  margin: 0 auto;
}

/* ヘッダー */
.company-page__header{
  margin-bottom: clamp(1.6rem, 3vw, 2.2rem);
}

/* 会社情報ページ：ブロック（section）同士の間隔を統一 */
.section__inner--company-page > * + *{
  margin-top: clamp(2.2rem, 4.8vw, 3.6rem);
}

/* 会社情報ページ：ヘッダーと最初のブロックの間隔 */
.section__inner--company-page > .company-page-header + section {
  margin-top: clamp(2.2rem, 4.5vw, 3.5rem);
}


.company-page-header .section__title{
  font-size: clamp(1.7rem, 2.7vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.company-page-header .section__lead{
  max-width: 52rem;
  font-size: clamp(1.02rem, 2vw, 1.12rem);
  color: var(--text-muted);
  margin-bottom: clamp(1.2rem, 2.2vw, 1.6rem);
}

/* 上の数字バッジ（ページ版） */
.company-mini--page{
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2vw, 1.1rem);
}

.company-mini--page .company-mini__item{
  border-radius: 16px;
  border: 1px solid rgba(122,240,255,0.18);
  background:
    radial-gradient(circle at top left, rgba(79,141,255,0.18), transparent 60%),
    rgba(3, 9, 24, 0.42);
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
  padding: clamp(0.8rem, 1.2vw, 0.95rem) clamp(0.9rem, 1.6vw, 1.1rem);
  backdrop-filter: blur(10px);
}

.company-mini--page .company-mini__label{
  color: rgba(255,255,255,0.68);
  letter-spacing: 0.14em;
  font-size: clamp(0.72rem, 1.3vw, 0.78rem);
  margin-bottom: 0.25rem;
}

.company-mini--page .company-mini__value{
  display: block;  
  text-align: center;  
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.94);
  width: 100%;  
}

/* ブロック共通（見出し＋本文） */
.section__inner--company-page .company-page-block{
  margin-top: clamp(1.6rem, 3.2vw, 2.2rem);
  padding: clamp(1.6rem, 2.6vw, 2rem);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(0,0,0,0.25)
  );
  box-shadow:
  inset 0 1px 0 rgba(255,255,255,0.06),
  0 18px 40px rgba(0,0,0,0.35);
}

/* 伴走の流れセクション */
.section__inner--company-page .company-page__block{
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(0,0,0,0.25)
  );
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;

  padding: clamp(1.6rem, 2.6vw, 2.1rem);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 40px rgba(0,0,0,0.35);
}

.company-page-block .section__title--sub{
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  margin-bottom: 0.9rem;
}


/* 伴走ステップ */
.section__inner--company-page .company-steps{
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.4rem);
}

.section__inner--company-page .company-step{
  border-radius: 18px;
  border: 1px solid rgba(122, 240, 255, 0.18);
  background:
    radial-gradient(circle at top left, rgba(79,141,255,0.18), transparent 60%),
    rgba(3, 9, 24, 0.42);
  box-shadow: 0 12px 28px rgba(0,0,0,0.6);
  padding: clamp(0.8rem, 1.2vw, 0.95rem) clamp(0.9rem, 1.6vw, 1.1rem);
  backdrop-filter: blur(10px);
}


.company-step__label{
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: rgba(122,240,255,0.92);
  margin-bottom: 0.6rem;
}

.company-step__title{
  margin: 0 0 0.4rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.company-step__text{
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.92rem, 1.5vw, 1rem);
  line-height: 1.9;
}


/* 会社概要（dl） */
.section__inner--company-page .company-profile{
  margin: 1rem 0 0;
}

.company-profile__row{
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  margin-top: clamp(0.6rem, 1.2vw, 0.8rem);
  padding: 0.85rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.3);
}

.company-profile__row dt{
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

.company-profile__row dd{
  margin: 0;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
}

.company-profile__row a{
  color: rgba(122,240,255,0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* お問い合わせCTAの設定を会社情報ページのみ適応 */
#company-page .section__inner--contact{
  max-width: 100%;
  padding-inline: 0;
}

#company-page .contact-card{
  width: 100%;
}


/* ------------------------------
  お問い合わせ 個別ページ
------------------------------ */
.section--contact{
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

/* innerを他ページにと同じくらいにする */
#contact-page .section__inner--narrow{
  width: min(980px, 100%);
  max-width: 980px;
}

#contact-page .section__title {
    max-width: 100%;
}

/* ------------------------------
  お問い合わせ：1行目（本文先頭を帯にする）
------------------------------ */
#contact-page .section__title__sub {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;

  background: rgba(79,141,255,0.10);
  border: 1px solid rgba(79,141,255,0.25);
  color: var(--text-main);

  box-shadow: 0 18px 46px rgba(0,0,0,0.35);
}

/* 先頭コピーの下に余白を作る（以降の本文がある場合） */
#contact-page .section__title__sub {
  margin: 0.9rem 0;
}

/* コピー内の強調（必要なら本文で <strong> を使う） */
#contact-page .section__title__sub {
  color: var(--text-main);
  text-decoration: none;
}


/* リード文 */
#contact-page .section__lead{
  margin-top: clamp(0.75rem, 1.6vw, 1.25rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 100%;
}

/* STEP */
.contact-flow{
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.6rem, 1.4vw, 0.9rem);
  max-width: 100%;
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(1.2rem, 2.4vw, 1.75rem);
}

.contact-flow li{
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(24, 26, 32, 0.5);
  color: var(--text-main);
  font-size: clamp(0.9rem, 1vw, 0.98rem);
}

.contact-flow__step{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(79,141,255,0.38);
  background: rgba(79,141,255,0.12);
  color: var(--text-main);
  font-size: 0.85em;
  letter-spacing: 0.02em;
}

/* フォームカード */
.contact-card{
  width: min(760px, 100%);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(24, 26, 32, 0.78);
  box-shadow: 0 24px 60px rgba(0,0,0,0.65);
  backdrop-filter: blur(14px);
}


/* ------------------------------
  Contact Form 7（contact-card 内）
------------------------------ */
.contact-card .wpcf7{
  margin: 0;
}

.contact-card .wpcf7 form{
  margin: 0;
}

/* CF7の p を行間として使っているケースが多いので調整 */
.contact-card .wpcf7 form p{
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

/* 入力欄共通 */
.contact-card .wpcf7 input[type="text"],
.contact-card .wpcf7 input[type="email"],
.contact-card .wpcf7 input[type="tel"],
.contact-card .wpcf7 input[type="url"],
.contact-card .wpcf7 textarea,
.contact-card .wpcf7 select{
  width: 100%;
  color: var(--text-main);
  background: rgba(15, 17, 21, 0.75);

  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: clamp(0.95rem, 1.2vw, 1.05rem) 0.95rem;

  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* プレースホルダー */
.contact-card .wpcf7 input::placeholder,
.contact-card .wpcf7 textarea::placeholder{
  color: rgba(181,187,199,0.75);
}

/* textarea */
.contact-card .wpcf7 textarea{
  min-height: clamp(140px, 18vw, 220px);
  resize: vertical;
}

/* フォーカス */
.contact-card .wpcf7 input:focus,
.contact-card .wpcf7 textarea:focus,
.contact-card .wpcf7 select:focus{
  border-color: rgba(79,141,255,0.7);
  box-shadow: 0 0 0 4px rgba(79,141,255,0.18);
  background: rgba(15, 17, 21, 0.88);
}

/* エラー */
.contact-card .wpcf7-not-valid-tip{
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: #ff7b7b;
}

.contact-card .wpcf7-response-output{
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(15, 17, 21, 0.75);
  color: var(--text-main);
}

/* 送信ボタン */
.contact-card .wpcf7 input[type="submit"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  margin-top: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  background: linear-gradient(135deg, rgba(79,141,255,0.9), rgba(79,141,255,0.55));
  box-shadow: 0 16px 40px rgba(79,141,255,0.22);
  cursor: pointer;

  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

.contact-card .wpcf7 input[type="submit"]:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 18px 46px rgba(79,141,255,0.28);
}

/* スピナー */
.contact-card .wpcf7-spinner{

  margin: 12px auto 0;
  display: block;
}

/*  Turnstile のボックスが浮くのを抑える */
.contact-card .wpcf7 .cf-turnstile {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15, 17, 21, 0.55);
}

/* 1行ごとに余白を確保 */
.contact-form .form-row{
  display: grid;
  gap: clamp(0.45rem, 1vw, 0.65rem); /* ラベルと入力の間 */
  margin-bottom: clamp(1rem, 2vw, 1.35rem); /* 行間 */
}

/* ラベルは少し小さめ + 読みやすい余白 */
.contact-form .form-row > label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
  color: var(--text-main);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
}

/* 必須バッジ */
.contact-form .form-row .is-required{
  margin-left: 0.55em;
  padding: 0.08em 0.5em;
  line-height: 1.2;
  font-size: 0.75rem;
  transform: translateY(-1px);
  color: #ff7b7b;
  border: 1px solid rgba(255, 123, 123, 0.6);
  background: rgba(255, 123, 123, 0.12);
}

/* 最後の行だけ余白を減らす */
.contact-form .form-row:last-of-type{
  margin-bottom: clamp(0.8rem, 1.4vw, 1rem);
}

/* CF7のwrapが勝手にinlineになることがあるのでブロック化 */
.contact-form .wpcf7-form-control-wrap{
  display: block;
}


/* 送信エリア全体 */
.contact-form .form-actions{
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);

  border-top: 1px solid rgba(255,255,255,0.12);
}
/* ボタン下の余白（カード下端との距離） */
.contact-card{
  padding-bottom: clamp(1.75rem, 3.5vw, 2.25rem);
}
/* 送信前の補足テキスト */
.contact-form .form-actions::before{
  content: "内容を確認のうえ、送信してください。\A(デモサイトのため実際には送信されません。)";
  white-space: pre-wrap;  /* \Aを開業と認識させる */
  display: block;
  margin-bottom: 0.75rem;
  text-align: center;

  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--text-muted);
}

/* 送信ボタン */
.contact-card .wpcf7 input[type="submit"]{
  padding-block: clamp(1rem, 1.8vw, 1.15rem);
  font-size: clamp(1rem, 1.1vw, 1.05rem);
  letter-spacing: 0.04em;
}
/* hover時は動かしすぎない */
.contact-card .wpcf7 input[type="submit"]:hover{
  transform: translateY(-0.5px);
}

/* スピナー中央寄せ */
.contact-card .wpcf7-spinner{
  margin: 14px auto 0;
}

/* 送信結果メッセージを送信ボタン下に固定 */
.contact-card .wpcf7-response-output{
  margin-top: 1rem;
  text-align: center;
}


/* ------------------------------
  サンクスページ
------------------------------ */
.section--thanks{
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

#thanks-page .section__inner--narrow{
  width: min(980px, 100%);
  max-width: 980px;
}

#thanks-page .section__lead{
  margin-top: clamp(0.75rem, 1.6vw, 1.25rem);
  margin-bottom: clamp(1.2rem, 2.4vw, 1.75rem);
  color: var(--text-muted);
  line-height: 1.9;
}

/* カード */
.thanks-card{
  width: min(760px, 100%);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(24, 26, 32, 0.78);
  box-shadow: 0 24px 60px rgba(0,0,0,0.65);
  backdrop-filter: blur(14px);
}

/* メタ情報 */
.thanks-meta{
  margin: 0 0 clamp(1rem, 2vw, 1.25rem);
}

.thanks-meta__row{
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 0.75rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.thanks-meta__row:last-child{
  border-bottom: none;
}

.thanks-meta dt{
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1vw, 0.98rem);
}

.thanks-meta dd{
  margin: 0;
  color: var(--text-main);
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
}

/* ボタン */
.thanks-actions{
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.6vw, 1rem);
  margin-top: clamp(1rem, 2vw, 1.25rem);
  padding-top: clamp(1rem, 2vw, 1.25rem);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.thanks-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: clamp(0.9rem, 1.6vw, 1rem) clamp(1.1rem, 2vw, 1.3rem);
  border: 1px solid rgba(255,255,255,0.16);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
  flex: 1;
  min-width: 200px;
}

.thanks-btn--primary{
  color: #fff;
  background: linear-gradient(135deg, rgba(79,141,255,0.9), rgba(79,141,255,0.55));
  box-shadow: 0 16px 40px rgba(79,141,255,0.22);
}

.thanks-btn--ghost{
  color: var(--text-main);
  background: rgba(15, 17, 21, 0.55);
}

.thanks-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

/* 注意文 */
.thanks-note{
  margin-top: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  font-size: clamp(0.9rem, 1vw, 0.98rem);
  line-height: 1.9;
}




/* ------------------------------
  FAQ一覧ページ
------------------------------ */

.faq-archive-header {
  max-width: min(720px, 100% - 6vw);
  margin: 0 auto clamp(1.8rem, 3vw, 2.4rem);
  text-align: left;
}

/* 絞り込みフォーム */
.faq-filter {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 2.4vw, 1.5rem);
  align-items: flex-end;
  margin-bottom: clamp(2rem, 4vw, 2.6rem);
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: radial-gradient(circle at top left, rgba(79,141,255,0.16), transparent 55%),
              rgba(8, 10, 16, 0.96);
}

.faq-filter__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: min(260px, 100%);
}

.faq-filter__group--search {
  flex: 1;
}

.faq-filter__label {
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  color: var(--text-muted);
}

/* カテゴリ選択 */
.faq-filter__select {
  min-width: 220px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(3, 6, 12, 0.9);
  color: var(--text-main);
  font-size: 0.9rem;
}

/* 検索 */
.faq-filter__search-wrap {
  position: relative;
}

.faq-filter__search {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(3, 6, 12, 0.9);
  color: var(--text-main);
  font-size: 0.9rem;
}

.faq-filter__search::placeholder {
  color: rgba(255,255,255,0.45);
}

/* ボタン */
.faq-filter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-left: auto;
}

.faq-filter__submit {
  min-width: 150px;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(135deg, var(--accent), #7aa7ff);
  color: #050609;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-filter__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(79,141,255,0.45);
}

.faq-filter__clear {
  align-self: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
}

/* FAQカード一覧 */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.faq-card {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 55%),
    var(--bg-card);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.faq-card__inner {
  display: block;
  padding: 1.4rem 1.4rem 1.2rem;
  text-decoration: none;
  color: inherit;
}

.faq-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255,255,255,0.22);
  background:
    radial-gradient(circle at top left, rgba(79,141,255,0.18), transparent 60%),
    var(--bg-card-hover);
}

.faq-card__question {
  margin: 0 0 0.5rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.faq-card__answer {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.faq-card__more {
  display: inline-flex;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* FAQカードのフッター：カテゴリ＋導入サービス */
.faq-card__footer {
  display: flex;
  flex-direction: column;      /* 縦並びに変更 */
  align-items: flex-start;     /* 左揃え */
  gap: 0.4rem;
  padding: 0 1.4rem 1.1rem;    /* カード本文と左右をそろえる */
  margin-top: 0.2rem;
}


/* カテゴリタグ */
.faq-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-card__tag {
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ページネーション／空表示 */
.faq-pagination {
  margin-top: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
}

.faq-empty {
  margin-top: 2rem;
  color: var(--text-muted);
}

/* 導入サービス表示 */
.faq-card__service {
  margin: 0;
  font-size: clamp(0.78rem, 1.6vw, 0.92rem);
  color: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.35);
  white-space: nowrap;
}


.faq-card__service-label {
  opacity: 0.75;
}

.faq-card__service-name {
  font-weight: 500;
}



/* 各サービスごとに色アクセントを入れる（任意） */
.faq-service-text-generation {
  border-color: rgba(132, 255, 177, 0.4);
  color: rgba(176, 255, 204, 0.9);
}

.faq-service-image-analysis {
  border-color: rgba(137, 208, 255, 0.4);
  color: rgba(182, 230, 255, 0.9);
}

.faq-service-workflow-automation {
  border-color: rgba(255, 214, 110, 0.4);
  color: rgba(255, 234, 171, 0.9);
}

.faq-service-chat-support {
  border-color: rgba(255, 157, 215, 0.4);
  color: rgba(255, 200, 230, 0.9);
}


/* ------------------------------
  FAQ下部のCTA
------------------------------ */
.section--cta{
  padding-block: clamp(2rem, 4vw, 3.5rem);
}

#faq-cta .section__inner--narrow{
  width: min(980px, 100%);
  max-width: 980px;
}

.cta-card{
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(24, 26, 32, 0.78);
  box-shadow: 0 24px 60px rgba(0,0,0,0.65);
  backdrop-filter: blur(14px);
}

.cta-card__title{
  margin: 0 0 clamp(0.6rem, 1.2vw, 0.85rem);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.cta-card__text{
  margin: 0 0 clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.9;
}

.cta-actions{
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 1.6vw, 1rem);
  margin-bottom: clamp(1rem, 2vw, 1.25rem);
}

.cta-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: clamp(0.9rem, 1.6vw, 1rem) clamp(1.1rem, 2vw, 1.3rem);
  border: 1px solid rgba(255,255,255,0.16);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
  flex: 1;
  min-width: 220px;
}

.cta-btn--primary{
  color: #fff;
  background: linear-gradient(135deg, rgba(79,141,255,0.9), rgba(79,141,255,0.55));
  box-shadow: 0 16px 40px rgba(79,141,255,0.22);
}

.cta-btn--ghost{
  color: var(--text-main);
  background: rgba(15, 17, 21, 0.55);
}

.cta-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.cta-links{
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta-links a{
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.cta-links a:hover{
  color: var(--text-main);
  border-bottom-color: rgba(79,141,255,0.6);
}








/* ----------------------------------------
  スクロールで下からふわっと表示
  JSでis-inviewを付与
---------------------------------------- */

.section--fadein {
  opacity: 0;
  transform: translateY(40px); /* ふわっと度UP */
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
  transition-delay: 0.4s; /* 全体の発火を遅らせる */
}

.section--fadein.is-inview {
  opacity: 1;
  transform: translateY(0);
}




/* ------------------------------
  フッター
------------------------------ */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 1.4rem;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ------------------------------
  レスポンシブ
  ・1440px以上：大きいモニター
  ・1024〜1440px：中くらい
  ・760〜1023px：タブレット
  ・320〜759px：スマホ
------------------------------ */


/* 1024px 以上（PC・大きめタブレット横向き）だけ少し縮小 */
@media (min-width: 1024px) {
  .site-header__inner {
    padding-inline: clamp(2rem, 6vw, 4rem); /* 左右に大きめの余白を追加 */
  }

/* お問い合わせセクション(TOP+会社情報ページ) */
  .contact-card__sub {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }


  .company-visual__single {
    background-position: center 70%;
  }
}

/* ------------------------------
  会社情報ページ（page-company.php）
------------------------------ */
  .company-flow{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

/* 1440px 以下（中くらい〜ノートPCの調整） */
@media (max-width: 1440px) {
  .layout {
    padding-inline: clamp(1rem, 3vw, 2rem);
  }

  .site-header__inner {
    padding-inline: clamp(1rem, 3vw, 2rem);
  }

  .site-footer__inner {
    padding-inline: clamp(1rem, 3vw, 2rem);
  }

  /* 会社 / チーム紹介(TOP) */
  .section__inner--company{
    grid-template-columns: minmax(0, 1fr);
  }

  .company-visual{
    aspect-ratio: 16 / 9;
    min-height: auto;
  }

}



/* 1023px 以下（ノートPC〜タブレット想定） */
@media (max-width: 1023px) {
  .layout {
    gap: 1.5rem;
  }

  /* タブレットサイズからハンバーガーメニューにする */
  .site-global-nav {
    display: none; /* 初期状態では非表示 */
    position: absolute;
    inset-inline-end: clamp(1rem, 4vw, 1.5rem);
    inset-block-start: 100%;

    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 17, 21, 0.96);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7);
  }

  /* JS で .is-open が付いたら表示 */
  .site-global-nav.is-open {
    display: block;
  }

  .global-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .global-nav__list a {
    font-size: 0.9rem;
    padding-bottom: 0;
    border-bottom: none;
  }

  .global-nav__list a.is-current {
    color: var(--accent);
  }

  /* メニュー内のお問い合わせCTAボタン調整 */
  .site-global-nav .header-contact-cta {
    width: 100%;
    justify-content: center;
    margin: 0;                  /* 左マージンなどをリセット */
    margin-top: 0.8rem;         /* よくあるご質問との間に余白を付ける */
  }


/* サブメニュー設定：縦メニューとして表示 */
  .global-nav__list .sub-menu {
    position: static;
    display: block;
    padding: 0.3rem 0 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    min-width: auto;
  }

  .global-nav__list .menu-item-has-children > a::after {
    display: none;
  }

  .global-nav__list .sub-menu a {
    padding: 0.45rem 0;
  }

  /* ハンバーガーボタンを表示 */
  .site-header__toggle {
    display: inline-flex;
  }

  .site-header__toggle.is-active {
    border-color: var(--accent);
  }

  /* 導入実績カウンター タブレット2カラム */
  .card-grid--stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* サービスカードを3カラムに */
  .card-grid--services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 特徴を2カラムに */
  .card-grid--features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section__inner--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid--cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section__inner--company {
    grid-template-columns: minmax(0, 1fr);
  }

   /* 会社・チーム紹介(TOP) */
  /* 760〜1023px：高さをもう少し確保する */
  .company-visual {
    width: 100%;
    aspect-ratio: 16 / 9;   /* 枠の比率を決める → 余白が出にくい */
    min-height: auto;       /* 固定の min-height は解除 */
  }

  .company-visual__single {
    background-size: cover;   /* 枠いっぱいにフィットさせる */
    /* background-position: center 60%; */
    background-repeat: no-repeat;
  }

  .company-mini{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-team{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 会社・チーム紹介(TOP) ここまで*/


  /* グローバルナビを少し詰める */
  .global-nav__list {
    gap: 1rem;
  }


/* ------------------------------
  会社情報ページ（page-company.php）
------------------------------ */
  .company-mini--page{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .company-steps{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .company-profile__row{
    grid-template-columns: 8rem minmax(0, 1fr);
  }


/* ------------------------------
  FAQ一覧ページ（archive-faq.php）
------------------------------ */
  /* FAQ一覧ページ */
  /* タブレット以下で1カラムに */
  .faq-list {
    grid-template-columns: minmax(0, 1fr);
  }

}


/* ------------------------------
  760px 以上（タブレット以上）
------------------------------ */
/* お問い合わせ(TOP+会社情報ページ) 行頭位置を揃える */
/* 760px以上：タイトルを1行目、2行目を左右に分ける */
@media (min-width: 760px){
  #contact .contact-card{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "title title"
      "left right";
    align-items: start;
  }

  #contact .contact-card__right{
    align-items: flex-start;
    text-align: left;
  }

  #contact .btn-primary--contact{
    align-self: flex-start;
  }

}


/* 759px 以下（スマホ領域：320〜759px） */
@media (max-width: 759px) {
  /* ヘッダーロゴ */
  .site-logo {
    font-size: clamp(1.05rem, 4vw, 1.3rem);
  }

  .custom-logo {
    height: clamp(1.5rem, 1.4rem + 0.5vw, 2rem);
  }

  .site-logo__text {
    font-size: clamp(0.95rem, 3.6vw, 1.05rem);
  }

  /* レイアウトを縦並びに */
  .layout {
    flex-direction: column;
    padding-inline: clamp(1rem, 5vw, 1.5rem);
  }

  /* サイドナビはスマホでは非表示 */
  .side-nav-wrapper {
    display: none;
  }

  /* スマホ時のヘッダーお問い合わせCTAボタン */
  .header-contact-cta {
    margin-left: auto;
    margin-right: 0.4rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    box-shadow: 0 8px 20px rgba(79,141,255,0.5);
  }

  /* ヒーローセクション */
  /* ヒーローの高さを少し低く */
  .hero {
    aspect-ratio: auto;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-inline: clamp(1rem, 5vw, 1.4rem);
    padding-top: clamp(3.5rem, 12vh, 4.5rem);
    padding-bottom: clamp(2.4rem, 2.28rem + 0.6vw, 3rem);
    background-color: #050609;

  }

  .hero__slide {
    background-size: cover;        /* 画像全体を優先 */
    background-repeat: no-repeat;
    background-position: center; /* 上寄せで顔や脳を見せる */
  }

  /* オーバーレイ少し薄めにして画像を見せる */
  .hero__overlay {
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.9));
  }

  .hero__inner {
    height: auto;
    max-width: 420px;
    margin: 0 auto;
    padding-inline: 0;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
    margin-top: clamp(1.6rem, 5vh, 2.2rem);  /* 画像と少し距離を取るため、タイトルブロックを下げる */
  }

  .hero__title {
    font-size: clamp(1.6rem, 5vw, 1.9rem); /* 少しだけ小さく */
    line-height: 1.3;
    margin-bottom: 0.7rem;
  }

  .hero__lead {
    font-size: clamp(0.85rem, 3.4vw, 0.95rem);
    margin-bottom: 1.3rem;
  }

  .hero__cta {
    width: 100%;
    max-width: 260px;
    margin-inline: auto;
  }

  /* 1枚目：顔がテキストとかぶりにくい位置にずらす */
  .hero__slide:nth-child(1) {
    background-size: 115%;     /* 少しだけ縮小寄りの拡大 */
    background-position: 18% 8%;
    /* 横18% = 左寄せ気味 / 縦8% = 上寄せ気味 */

  }

  /* 2枚目：頭が少し見えるように、全体を少し上に */
  .hero__slide:nth-child(2) {
    background-size: 120%;
    background-position: 40% 18%;
    /* 中央寄り＋やや上寄せ */
  }

  /* 3枚目：顔をやや右に逃がして、文字は中央付近に */
  .hero__slide:nth-child(3) {
    background-size: 120%;
    background-position: 68% 18%;
    /* 横68% = 右寄せ気味 / 縦18% = やや上寄せ */
  }

  /* 導入実績カウンター スマホ1カラム */
  .card-grid--stats {
    grid-template-columns: minmax(0, 1fr);
  }

  /* カードグリッド：ステップは2列、サービスは2列 */
  .card-grid--services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--cases {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 導入実績(TOP) */
  /* .case-card__more {
    justify-content: flex-start;
  } */


/* ------------------------------
  会社 / チーム紹介(TOPサービス)
------------------------------ */
  .company-mini--page{
    grid-template-columns: minmax(0, 1fr);
  }
  .company-steps{
    grid-template-columns: minmax(0, 1fr);
  }
  .company-profile__row{
    grid-template-columns: minmax(0, 1fr);
  }

/* 会社 / チーム紹介(TOPサービス) ここまで */

  /* お問い合わせの余白調整 */
  .section {
    padding-block: clamp(2.4rem, 7vw, 3.2rem);
  }

  /* ヘッダー内の余白を調整（左右に少しだけ余白を足す） */
  .site-header__inner {
    padding: 0.7rem clamp(1rem, 5vw, 1.4rem);
  }

  /* 特徴を1カラムに */
  .card-grid--features {
    grid-template-columns: minmax(0, 1fr);
  }

/* ------------------------------
  お問い合わせ(TOP)
------------------------------ */
  #contact .contact-card__right{
    align-items: center;
    text-align: center;
  }

  #contact .btn-primary--contact{
    width: 100%;
    max-width: 260px;
    align-self: center;
  }

  #contact .btn-primary--contact{
    width: 100%;
    max-width: 260px;
    align-self: center;
  }


/* TOP お問い合わせセクション ここまで */



/* ------------------------------
  サービス個別ページ設定
------------------------------ */

  .service-single-hero__inner {
    padding: 1.6rem 1.4rem 1.8rem;
  }

  /* 導入事例一覧絞込 */
  .case-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .case-filter__group {
    width: 100%;
  }

  .case-filter select {
    width: 100%;
  }

  .case-filter__actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  /* 会社 / チーム紹介  */
  .company-visual {
    width: 100%;
    aspect-ratio: 16 / 9;   /* 枠の比率を決める → 余白が出にくい */
    min-height: auto;       /* 固定の min-height は解除 */
  }

  .company-visual__single {
    background-size: cover;   /* 枠いっぱいにフィットさせる */
    background-position: center 65%;
    background-repeat: no-repeat;
  }


/* ------------------------------
  会社情報ページ（page-company.php）
------------------------------ */
  .company-mini--page{
    grid-template-columns: minmax(0, 1fr);
  }

  .company-page-block{
    padding: 1.35rem 1.15rem;
  }

  .company-profile__row{
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .company-profile__row dt{
    white-space: normal;
  }


/* ------------------------------
  FAQ一覧ページ（archive-faq.php）
------------------------------ */
  /* スマホでフォームを縦並びに */
  .faq-filter {
    padding: 1rem 1rem 1.1rem;
  }

  .faq-filter__actions {
    margin-left: 0;
  }

  .faq-filter__submit {
    width: 100%;
    justify-content: center;
  }

  .faq-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-card__service {
    white-space: normal;  /* 折り返し可にする */
  }


/* ------------------------------
  お問い合わせ個別(page-contact.php)
------------------------------ */
/* STEPを縦並び */
  .contact-flow{
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-flow li{
    width: 100%;
    justify-content: flex-start;
  }


}

/* 480px 以下（スマホ小さめの調整） */
@media (max-width: 480px) {
  .card-grid--services,
  .card-grid--steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__lead {
    margin-bottom: 2rem;
  }

  .site-header__inner {
    padding-block: 0.8rem;
  }
}
