@charset "UTF-8";

/*
 * kurofuku.jp のスタイル。
 *
 * WordPress + Elementor で組まれていたものを手組みに置き換えた。
 * Elementor は1ページあたり数十KBのCSSを吐き、要素ごとに
 * .elementor-element-xxxx という固有クラスで指定するため、
 * 見た目を変えるたびに管理画面へ戻る必要があった。
 * ここでは配色とフォントを変数にまとめ、部品単位で組み立てる。
 *
 * 配色は旧サイトから取っている:
 *   #1E3041 濃紺（見出し・フッター）
 *   #7DA3C4 くすんだ青（アクセント）
 *   #B6BEC5 グレー（補助テキスト）
 *   #031126 ほぼ黒の紺（ヒーロー背景）
 */

:root {
  --navy: #1E3041;
  --navy-deep: #031126;
  --navy-soft: #3A4957;
  --accent: #7DA3C4;
  --accent-warm: #FFBC7D;
  --gray: #B6BEC5;
  --gray-line: #e6eef5;
  --text: #202020;
  --white: #FFFFFF;

  --font-sans: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Kaku Gothic ProN',
               'Yu Gothic', Meiryo, sans-serif;
  --font-en: 'Jost', var(--font-sans);

  --wrap: 1120px;
  --gutter: 24px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; }

/* ---------------- レイアウト ---------------- */

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--soft { background: #f6f9fc; }

/* ---------------- ヘッダー ---------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header__logo img { height: 34px; }
.header__logo span { font-size: 12px; color: var(--navy-soft); letter-spacing: .04em; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav__link:hover { border-bottom-color: var(--accent); }
.nav__link.is-active { border-bottom-color: var(--navy); }

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
}
.btn-contact:hover { background: var(--navy-soft); }

/* スマホのメニュー。JSを使わず checkbox で開閉する。 */
.nav-toggle { display: none; }
.nav-toggle__label { display: none; }

/* ---------------- ヒーロー ---------------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, #24405a 100%);
  color: var(--white);
  padding: 104px 0 96px;
  overflow: hidden;
}
.hero::after {
  /* 右下に淡い光。旧サイトの雰囲気に寄せる。 */
  content: '';
  position: absolute;
  right: -12%;
  bottom: -40%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(125,163,196,.28) 0%, transparent 68%);
  pointer-events: none;
}
.hero__label {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--accent);
  margin: 0 0 18px;
}
.hero__title {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 24px;
}
.hero__lead { font-size: clamp(15px, 2vw, 19px); margin: 0 0 10px; color: #dce6ef; }
.hero__en {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--gray);
  margin: 26px 0 0;
}

/* ---------------- 見出し ---------------- */

.head { text-align: center; margin-bottom: 52px; }
.head__en {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--accent);
  margin: 0 0 10px;
}
.head__title {
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 700;
  margin: 0;
  color: inherit;
}
.section--navy .head__title { color: var(--white); }
.head__lead { margin: 16px auto 0; max-width: 720px; color: var(--navy-soft); }
.section--navy .head__lead { color: #cdd8e2; }

/* ---------------- カード ---------------- */

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  height: 100%;
}
.card__icon { width: 40px; height: 40px; margin-bottom: 14px; }
.card__title { font-size: 17px; font-weight: 700; margin: 0 0 10px; color: var(--navy); }
.card__body { margin: 0; font-size: 14px; color: #4a5560; }
.card__list { margin: 10px 0 0; padding-left: 1.1em; font-size: 14px; color: #4a5560; }
.card__list li { margin-bottom: 2px; }

/* 課題カード。番号を大きく出す。 */
.issue { position: relative; padding-top: 34px; }
.issue__no {
  position: absolute;
  top: 18px; left: 24px;
  font-family: var(--font-en);
  font-size: 34px;
  line-height: 1;
  color: var(--gray-line);
  font-weight: 700;
}

/* 強みは横並びの帯にする。 */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-line);
}
.feature:last-child { border-bottom: none; }
.feature__title { font-size: 20px; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.feature__no {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--accent);
  margin: 0 0 6px;
}
.feature__body { margin: 0; font-size: 15px; color: #4a5560; }

/* ---------------- FAQ ---------------- */

.faq { border-top: 1px solid var(--gray-line); }
.faq__item { border-bottom: 1px solid var(--gray-line); }
.faq__q {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  padding: 22px 4px;
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
}
.faq__q::after {
  content: '＋';
  margin-left: auto;
  color: var(--accent);
  font-weight: 400;
}
.faq__item[open] .faq__q::after { content: '−'; }
.faq__mark { font-family: var(--font-en); color: var(--accent); }
.faq__a {
  padding: 0 4px 24px 34px;
  margin: 0;
  font-size: 15px;
  color: #4a5560;
}

/* ---------------- 表 ---------------- */

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td {
  text-align: left;
  padding: 18px 8px;
  border-bottom: 1px solid var(--gray-line);
  vertical-align: top;
}
.table th { width: 200px; color: var(--navy); font-weight: 700; }

/* ---------------- CTA ---------------- */

.cta { background: var(--navy); color: var(--white); }
.cta__title { font-size: clamp(18px, 2.6vw, 24px); font-weight: 700; margin: 0 0 12px; }
.cta__points { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 32px; padding: 0; list-style: none; }
.cta__points li {
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  padding: 6px 16px;
}
.cta__boxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cta__box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.cta__box h3 { font-size: 14px; margin: 0 0 12px; color: var(--gray); font-weight: 500; }
.cta__tel {
  font-family: var(--font-en);
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  display: block;
}
.cta__note { font-size: 12px; color: var(--gray); margin: 6px 0 0; }
.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
}
.btn-mail:hover { background: var(--gray-line); }

/* ---------------- フッター ---------------- */

.footer { background: var(--navy-deep); color: var(--gray); padding: 56px 0 24px; font-size: 14px; }
.footer a { color: var(--gray); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.footer__name { color: var(--white); font-weight: 700; margin: 0 0 10px; }
.footer__links { display: grid; gap: 14px; }
.footer__link {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.footer__link strong { display: block; font-family: var(--font-en); font-size: 12px; letter-spacing: .18em; color: var(--accent); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 12px;
}
.footer__bottom a { text-decoration: none; }
.footer__copy { margin-left: auto; }

/* ---------------- 下層ページの見出し ---------------- */

.pagehead {
  background: linear-gradient(135deg, var(--navy) 0%, #2b4considered 100%);
  background: linear-gradient(135deg, var(--navy) 0%, #2b465f 100%);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.pagehead__en { font-family: var(--font-en); font-size: 12px; letter-spacing: .22em; color: var(--accent); margin: 0 0 8px; }
.pagehead__title { font-size: clamp(24px, 4vw, 34px); font-weight: 700; margin: 0; }

.breadcrumb { font-size: 12px; color: var(--navy-soft); padding: 16px 0; }
.breadcrumb a { text-decoration: none; }
.breadcrumb span + span::before { content: '›'; margin: 0 8px; color: var(--gray); }

/* ---------------- フォーム ---------------- */

.form { display: grid; gap: 22px; max-width: 720px; margin-inline: auto; }
.form__row { display: grid; gap: 8px; }
.form__label { font-size: 14px; font-weight: 700; color: var(--navy); }
.form__req { font-size: 11px; background: #d7443e; color: #fff; border-radius: 3px; padding: 2px 6px; margin-left: 8px; }
.form__input, .form__textarea, .form__select {
  font: inherit;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfd8e2;
  border-radius: 6px;
  background: #fbfdff;
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.form__textarea { min-height: 180px; resize: vertical; }
.form__note { font-size: 13px; color: var(--navy-soft); }
.form__submit {
  justify-self: center;
  font: inherit;
  font-weight: 700;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  padding: 15px 56px;
  cursor: pointer;
}
.form__submit:hover { background: var(--navy-soft); }
.notice {
  background: #fff6e5;
  border: 1px solid #f0d9a8;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14px;
}

/* ---------------- 法務ページ ---------------- */

.legal h2 { font-size: 18px; color: var(--navy); margin: 40px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 15px; color: #404a55; }
.legal ol, .legal ul { padding-left: 1.3em; }

/* ---------------- Cookie 同意 ---------------- */

.cookie {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 80;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.cookie a { color: var(--accent); }
.cookie__ok {
  margin-left: auto;
  font: inherit;
  font-weight: 700;
  background: var(--white);
  color: var(--navy);
  border: 0;
  border-radius: 999px;
  padding: 9px 24px;
  cursor: pointer;
}
.cookie[hidden] { display: none; }

/* ---------------- 画面幅への対応 ---------------- */

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }

  /* ナビはハンバーガーに畳む。JSを持たせず checkbox で開閉する。 */
  .nav-toggle__label {
    display: block;
    margin-left: auto;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--navy);
    user-select: none;
  }
  .nav {
    display: none;
    order: 10;
    width: 100%;
    margin-left: 0;
    padding-bottom: 14px;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: 13px 2px; border-bottom: 1px solid var(--gray-line); }
  .nav__link.is-active { border-bottom-color: var(--navy); }
  .nav-toggle:checked ~ .nav { display: block; }
  .header__inner { flex-wrap: wrap; }
  .btn-contact { order: 9; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .cta__boxes { grid-template-columns: 1fr; }
  .table th { width: auto; display: block; padding-bottom: 4px; border-bottom: 0; }
  .table td { display: block; padding-top: 0; }
  .footer__copy { margin-left: 0; }
}

/* 印刷は本文だけ残す。 */
@media print {
  .header, .footer, .cookie, .cta { display: none; }
}

/* ---------------- 汎用ブロック（原文をそのまま描く） ---------------- */

.head__icon { display: block; margin: 0 auto 14px; width: 56px; height: 56px; object-fit: contain; }
.section__lead { max-width: 820px; margin: 0 auto 8px; color: #4a5560; }

.card__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin: -4px 0 16px;
}

.faq__group {
  font-size: 20px;
  color: var(--navy);
  margin: 44px 0 10px;
}
.faq__group:first-child { margin-top: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

.legal h3 { font-size: 17px; color: var(--navy); margin: 26px 0 8px; }

/* ---------------- 節の背景（原本の指定に合わせる） ----------------
 *
 * 旧サイトは主要な節に背景画像を敷いていた。CSS の background-image で
 * 指定されており <img> ではないため、移設時の画像取得から漏れていた。
 * 原本のサイトは閉じられ、サーバにもバックアップにも残っていないため
 * 画像そのものは回収できていない（2026-08-24）。
 *
 * 寸法・位置・繰り返し方は原本の指定をそのまま写してある。
 * assets/img/bg/ に同名で置けば、それだけで元の見た目に戻る。
 * 画像が無い間は下地の色だけが出る。
 */

.bg-section {
  position: relative;
  display: flex;
  align-items: center;
  background-repeat: no-repeat;
  color: var(--white);
}
.bg-section > .wrap { position: relative; z-index: 1; width: min(100% - 40px, var(--wrap)); }

/* 画像が無いときに文字が読めなくなるのを防ぐ下地。
   画像を置いたあとも、その上に薄くかかって可読性を保つ。 */
.bg-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,17,38,.72) 0%, rgba(30,48,65,.62) 100%);
}
.bg-section > .wrap { z-index: 2; }

/* hero: top_img1.jpg / 650px / top left / contain（幅94%） */
.bg-hero {
  min-height: 650px;
  background-color: var(--navy-deep);
  background-image: url('/assets/img/bg/top_img1.jpg');
  background-position: top left;
  background-size: 94% auto;
}

/* 課題: top_img2.png / 660px / center / cover */
.bg-issues {
  min-height: 660px;
  background-color: var(--navy);
  background-image: url('/assets/img/bg/top_img2.png');
  background-position: center center;
  background-size: cover;
}

/* 統合管理: top_img5.png / 644px / center / cover */
.bg-about-system {
  min-height: 644px;
  background-color: var(--navy);
  background-image: url('/assets/img/bg/top_img5.png');
  background-position: center center;
  background-size: cover;
}

/* CTA: top_img6.png / 400px / top left / contain */
.bg-cta {
  min-height: 400px;
  padding: 40px 20px;
  background-color: var(--navy);
  background-image: url('/assets/img/bg/top_img6.png');
  background-position: top left;
  background-size: contain;
}

/* フッター直前の帯は色指定のみ（画像なし）。 */
.bg-band { background: var(--navy-soft); padding: 80px 0; color: var(--white); }

/* 背景の上では見出し・本文を白にする。 */
.bg-section .head__title,
.bg-section .card__title { color: var(--white); }
.bg-section .head__lead,
.bg-section .card__body,
.bg-section .card__list { color: #dbe4ed; }
.bg-section .card {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

@media (max-width: 720px) {
  .bg-hero, .bg-issues, .bg-about-system { min-height: 420px; }
  .bg-hero { background-size: cover; }
}

/* 原本は見出しに IBM Plex Sans JP、英字に Jost、本文に Noto Sans JP を
   自前配信で使っていた。同じ書体を Google Fonts から読む。 */
.hero__title, .head__title, .pagehead__title, .card__title, .feature__title {
  font-family: 'IBM Plex Sans JP', var(--font-sans);
}
