@charset "UTF-8";
/**
 * デザイントークンと LP 由来の共通部品
 *   変数名は元 LP（css/style.css）と同じ。各 CSS（layout / front）はこの変数を使う
 *   LP のリセットはトップページの .bt365 の中だけに効かせ、Cocoon の本文（.entry-content）には持ち込まない
 */

/* ---------- デザイントークン ---------- */
:root {
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic Medium", "Meiryo", system-ui, sans-serif;

  --c-text: #323232;       /* 本文 */
  --c-heading: #1c1c1c;    /* 見出し */
  --c-muted: #666666;
  --c-blue: #166dff;       /* プライマリ */
  --c-blue-dark: #0d56d6;
  --c-navy: #16223e;       /* 濃紺（コストサマリーの構築費用など） */
  --c-hero: #141414;       /* ヒーロー背景ベース */
  --c-gray: #f7f7f7;       /* カテゴリ背景グレー */
  --c-cta: #e3e3e3;        /* CTA 背景 */
  --c-border: #e2e2e2;
  --c-line: var(--c-blue); /* ヘッダー上部アクセント（ブランドカラーから派生） */
  --c-hover-blue: #f3f6ff; /* リンクホバーの淡い青背景 */

  --max: 1180px;
  --radius: 4px;                                         /* ボタン等 */
  --radius-card: 8px;                                    /* カード・画像 */
  --card-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.08);      /* カード通常時 */
  --card-shadow-hover: 0 6px 20px 0 rgba(0, 0, 0, 0.3);  /* カード hover 時 */

  --header-h: 64px;        /* ヘッダー本体の高さ */
  --header-accent: 3px;    /* ヘッダー上部アクセント線の太さ */
}

/* ---------- サイト全体 ---------- */
/* 文字は Noto Sans JP、背景は白（Cocoon の灰色背景をやめる） */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  color: var(--c-text);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- LP 由来のリセット（.bt365 の中だけ） ---------- */
/* 詳細度を要素セレクタ 1 個分に抑え、各部品のクラス指定で上書きできるようにする */
:where(.bt365) {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
}
:where(.bt365) img { max-width: 100%; height: auto; display: block; }
:where(.bt365) a,
:where(.bt365) a:hover { color: inherit; text-decoration: none; }
:where(.bt365) ul,
:where(.bt365) ol { list-style: none; margin: 0; padding: 0; }
:where(.bt365) :is(h1, h2, h3, h4) {
  margin: 0; color: var(--c-heading); font-weight: 700; line-height: 1.4; overflow-wrap: break-word;
}
:where(.bt365) p { margin: 0; overflow-wrap: break-word; }

/* ---------- コンテナ ---------- */
/* Cocoon 外枠の #container 自身には効かせない（中の .container だけ） */
:where(#container) .container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ヘッダーは追従しないため、アンカー遷移の余白は少しだけ */
:where(.bt365) section[id],
.service-category[id] { scroll-margin-top: 16px; }

/* ---------- 共通ボタン（白地・黒枠。コストシミュレーションの「リセット」） ---------- */
/* Cocoon のボタンブロック（.btn.btn-red 等）を壊さないよう、LP の色クラスと組み合わせたときだけ効かせる */
/* 書体・行の高さは元 LP と同じくブラウザ既定のまま（line-height は Cocoon の .btn の normal） */
.btn.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--c-heading);
  background: #fff;  /* Cocoon の .btn の background-clip も既定に戻る */
  border: 1px solid var(--c-heading);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
/* opacity: Cocoon の .btn:hover の半透明を打ち消す */
.btn.btn-outline:hover { background: #f3f3f3; color: var(--c-heading); opacity: 1; }

/* キーボードフォーカスの可視化 */
.btn:focus-visible,
.anchor-nav a:focus-visible,
.cat-quicknav a:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section--gray { background: var(--c-gray); }
.section-head { text-align: center; max-width: 860px; margin: 0 auto 48px; }
.section-head h2 { font-size: 32px; line-height: 1.4; margin-bottom: 20px; }
.section-head p { font-size: 16px; line-height: 1.9; color: var(--c-text); }

/* ---------- カード（サービスカード等） ---------- */
/* 1 枚でも中央、2 枚なら中央 2 列、3 枚以上で最大 3 列に整列 */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 24px;
}
.cards > li { flex: 1 1 320px; max-width: 360px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-card);
  overflow: hidden; height: 100%;
  box-shadow: var(--card-shadow);
  cursor: default;
}
/* 画像は <img> 自身に 16:9 を指定（正方形の画像でも崩れないように） */
.card-img { overflow: hidden; line-height: 0; }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card-body { padding: 20px 22px 26px; }
.card-body h4 { font-size: 18px; margin-bottom: 12px; text-align: center; transition: color .2s; }
.card-body p { font-size: 14px; line-height: 1.8; color: var(--c-text); }

/* ---------- サービス一覧（template-parts/front/services.php） ---------- */
/* カテゴリのクイックナビ：灰色帯＋テキスト＋下向きキャレット */
.cat-quicknav-band { background: var(--c-gray); padding: 36px 0; }
.cat-quicknav {
  display: flex; flex-wrap: wrap; row-gap: 22px; justify-content: center;
  margin: 0 auto; max-width: 1060px;
}
.cat-quicknav a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: #424242;
  padding: 8px 18px; line-height: 1.6;
}
/* キャレットは文字と同色。hover で文字とともに青くなる */
.cat-quicknav a::after {
  content: ""; width: 7px; height: 7px; flex: 0 0 auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -2px);
}
.cat-quicknav a:hover { color: var(--c-blue); }

/* 全体像の図 */
.service-overview { max-width: 1040px; margin: 56px auto; padding: 0 24px; }
.service-overview img { width: 100%; border-radius: var(--radius-card); }

/* 各カテゴリ。背景の灰／白は .service-categories 内の順番で交互（先頭が白。末尾が灰になり、白のコストシミュレーションと続く） */
.service-category { padding: 56px 0; }
.service-categories > .service-category:nth-child(even) { background: var(--c-gray); }
.category-head { text-align: center; max-width: 860px; margin: 0 auto 36px; }
.category-head h3 { font-size: 26px; margin-bottom: 16px; }
.category-head p { font-size: 16px; line-height: 1.9; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 24px; }
  .cards > li { flex-basis: 100%; max-width: 460px; }

  /* カテゴリナビ：2 列（ラベル左＋キャレット右、行・列に区切り線） */
  .cat-quicknav-band { padding: 12px 0; }
  .cat-quicknav { row-gap: 0; max-width: none; justify-content: flex-start; }
  .cat-quicknav a {
    width: 50%; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid var(--c-border);
  }
  .cat-quicknav a:nth-child(odd) { border-right: 1px solid var(--c-border); }
}

@media (max-width: 480px) {
  :where(#container) .container { padding-left: 18px; padding-right: 18px; }
  .btn.btn-outline { min-width: 0; width: 100%; }
}
