/* =========================================
   KURO探偵事務所
   黒を基調に、温かみのあるベージュ・ローズで
   「安心感」と「親しみやすさ」を出す配色
   ========================================= */

:root {
  --black: #1f1c1a;        /* メインの黒（真っ黒より少し柔らかく） */
  --text: #3a3532;
  --text-sub: #6f6762;
  --bg: #fbf8f4;           /* 生成り色の背景 */
  --bg-tint: #f3ece4;      /* セクションの交互背景 */
  --white: #ffffff;
  --accent: #c48b7a;       /* くすみローズ */
  --accent-soft: #ead6cd;
  --line: #06c755;         /* LINEのブランドカラー */
  --border: #e4dad0;

  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --radius: 16px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--black); line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.container--narrow { max-width: 760px; }
.sp { display: none; }
.center { text-align: center; }
.small { font-size: 0.85em; color: var(--text-sub); }
.note { font-size: 0.85rem; color: var(--text-sub); margin-top: 1em; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--line { background: var(--line); color: var(--white); }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(251, 248, 244, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header__inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding-inline: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__img { width: 48px; height: 48px; }
.logo__text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--black); }

.nav ul { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav__cta {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white) !important;
}
.nav-toggle { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  padding: calc(var(--header-h) + 80px) 20px 90px;
  background:
    radial-gradient(circle at 85% 20%, var(--accent-soft) 0, transparent 40%),
    radial-gradient(circle at 10% 90%, #efe4d8 0, transparent 45%),
    var(--bg);
  text-align: center;
}
.hero__inner { max-width: 820px; margin: 0 auto; }
.hero__logo {
  display: block;
  width: 200px; height: 200px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 10px 24px rgba(31, 28, 26, .25));
}
.hero__badge {
  display: inline-block;
  padding: 4px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 24px;
}
.hero__title { font-size: clamp(1.7rem, 4.5vw, 2.8rem); margin-bottom: 24px; }
.hero__lead { color: var(--text-sub); margin-bottom: 36px; }
.hero__points { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; }
.hero__points li {
  display: grid; place-items: center;
  width: 112px; height: 112px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.4;
  color: var(--black);
}
.hero__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

/* ---------- セクション共通 ---------- */
.section { padding-block: 96px; }
.section--tint { background: var(--bg-tint); }
.section__en {
  text-align: center;
  letter-spacing: .2em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.section__title { text-align: center; font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 20px; }
.section__desc { text-align: center; color: var(--text-sub); margin-bottom: 48px; }
.section__title + .cards,
.section__title + .services,
.section__title + .flow,
.section__title + .profile,
.section__title + .faq { margin-top: 48px; }

/* ---------- お悩み ---------- */
.worries__list {
  max-width: 680px;
  margin: 40px auto;
  padding: 32px 36px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(60, 40, 30, .06);
}
.worries__list li { position: relative; padding: 10px 0 10px 36px; border-bottom: 1px dashed var(--border); }
.worries__list li:last-child { border-bottom: none; }
.worries__list li::before {
  content: "";
  position: absolute; left: 4px; top: 50%;
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 2px solid var(--accent);
  transform: translateY(-50%);
}
.worries__list li::after {
  content: "";
  position: absolute; left: 10px; top: calc(50% - 6px);
  width: 6px; height: 11px;
  border: solid var(--accent);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.worries__message { font-size: 1.2rem; }

/* ---------- マスコットの吹き出し ---------- */
.mascot-talk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 680px;
  margin: 48px auto 0;
}
.mascot-talk--reverse { flex-direction: row-reverse; }
.mascot-talk__img { width: 160px; height: auto; flex-shrink: 0; }
.mascot-talk__bubble {
  position: relative;
  margin: 0;
  padding: 22px 28px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 24px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--black);
  line-height: 1.7;
}
.mascot-talk__bubble::before,
.mascot-talk__bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  border: 12px solid transparent;
  transform: translateY(-50%);
}
.mascot-talk__bubble::before { left: -26px; border-right-color: var(--black); }
.mascot-talk__bubble::after  { left: -21px; border-right-color: var(--white); }
.mascot-talk--reverse .mascot-talk__bubble::before { left: auto; right: -26px; border-right-color: transparent; border-left-color: var(--black); }
.mascot-talk--reverse .mascot-talk__bubble::after  { left: auto; right: -21px; border-right-color: transparent; border-left-color: var(--white); }
.mascot-talk__bubble a { color: var(--accent); }

/* ---------- 選ばれる理由 ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  position: relative;
  padding: 40px 32px 32px;
  background: var(--white);
  border-radius: var(--radius);
}
.card__num {
  position: absolute; top: -18px; left: 28px;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--black); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
}
.card__title { font-size: 1.25rem; margin-bottom: 14px; }
.card p { margin: 0; font-size: .95rem; }

/* ---------- 調査内容 ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.services--single { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
.service {
  padding: 40px 36px;
  background: var(--white);
  border-radius: var(--radius);
  border-top: 6px solid var(--black);
  box-shadow: 0 4px 24px rgba(60, 40, 30, .06);
}
.service__title { font-size: 1.4rem; margin-bottom: 6px; }
.service__lead { color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.service__list { margin-top: 20px; padding: 20px 24px; background: var(--bg); border-radius: 12px; }
.service__list li { position: relative; padding-left: 20px; }
.service__list li::before {
  content: ""; position: absolute; left: 0; top: .8em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}

/* ---------- 料金 ---------- */
.price-table-wrap { max-width: 720px; margin: 0 auto; overflow-x: auto; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table th,
.price-table td { padding: 20px 24px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.price-table tr:last-child th,
.price-table tr:last-child td { border-bottom: none; }
.price-table th { width: 32%; background: var(--black); color: var(--white); font-weight: 500; white-space: nowrap; }
.price-table strong { font-size: 1.25rem; color: var(--black); }

.example {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 32px;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
}
.example__title { font-size: 1.1rem; text-align: center; margin-bottom: 20px; }
.example__list { margin: 0; }
.example__list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.example__list dt { color: var(--text-sub); }
.example__list dd { margin: 0; font-weight: 700; white-space: nowrap; }
.example__total { border-bottom: none !important; padding-top: 16px !important; }
.example__total dt { color: var(--black); font-weight: 700; }
.example__total dd { font-size: 1.5rem; color: var(--black); }
.example__total dd span { display: block; font-size: .8rem; color: var(--text-sub); text-align: right; font-weight: 400; }

/* ---------- 流れ ---------- */
.flow { max-width: 760px; margin-inline: auto; counter-reset: none; }
.flow__item {
  position: relative;
  padding: 28px 32px;
  margin-bottom: 28px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 6px solid var(--accent);
  box-shadow: 0 4px 24px rgba(60, 40, 30, .06);
}
.flow__item:not(:last-child)::after {
  content: "";
  position: absolute; left: 50%; bottom: -22px;
  border: 10px solid transparent;
  border-top-color: var(--accent);
  transform: translateX(-50%);
}
.flow__step { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.flow__item h3 { font-size: 1.2rem; margin: 2px 0 8px; }
.flow__item p { margin: 0; font-size: .95rem; }

/* ---------- 代表紹介 ---------- */
.profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
  margin-inline: auto;
  padding: 48px;
  background: var(--white);
  border-radius: var(--radius);
}
.profile__img {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--black);
  display: grid; place-items: center;
  overflow: hidden;
}
.profile__img span { color: var(--white); font-family: var(--font-head); font-size: 4rem; font-weight: 700; }
.profile__img img { width: 100%; height: 100%; object-fit: cover; }
.profile__role { color: var(--accent); font-weight: 700; margin: 0; }
.profile__name { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--black); margin-bottom: 24px; }
.profile__name span { font-size: .9rem; color: var(--text-sub); font-weight: 500; margin-left: 8px; }
.profile__heading { font-size: 1.05rem; margin: 24px 0 8px; padding-left: 12px; border-left: 4px solid var(--black); }
.profile__career li { padding: 4px 0; }
.profile__message {
  margin: 28px 0 0;
  padding: 20px 24px;
  background: var(--bg-tint);
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--black);
}

/* ---------- FAQ ---------- */
.faq__item {
  margin-bottom: 14px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.faq__item summary {
  position: relative;
  padding: 20px 56px 20px 56px;
  cursor: pointer;
  font-weight: 700;
  color: var(--black);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "Q";
  position: absolute; left: 20px; top: 18px;
  font-family: var(--font-head); font-size: 1.2rem; color: var(--accent);
}
.faq__item summary::after {
  content: "+";
  position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { margin: 0; padding: 0 24px 22px 56px; position: relative; }
.faq__item p::before {
  content: "A";
  position: absolute; left: 20px; top: -2px;
  font-family: var(--font-head); font-size: 1.2rem; color: var(--black);
}

/* ---------- お問い合わせ ---------- */
.contact { background: var(--black); color: var(--white); }
.contact .section__title { color: var(--white); }
.contact .section__desc { color: #cfc6be; }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact__card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  transition: transform .2s;
}
.contact__card:hover { transform: translateY(-4px); }
.contact__label { font-size: .9rem; font-weight: 700; color: var(--text-sub); }
.contact__value { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin: 6px 0; word-break: break-all; }
.contact__sub { font-size: .82rem; color: var(--text-sub); }
.contact__card--tel { border-top: 6px solid var(--accent); }
.contact__card--line { border-top: 6px solid var(--line); }
.contact__card--line .contact__value { color: var(--line); }
.contact__card--mail { border-top: 6px solid #b9aea4; }

/* ---------- フッター ---------- */
.footer { padding: 56px 0 40px; background: #141210; color: #cfc6be; font-size: .9rem; }
.footer__name { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--white); }
.footer__info { margin: 0 0 20px; }
.footer__info div { display: flex; gap: 16px; padding: 2px 0; }
.footer__info dt { width: 7em; flex-shrink: 0; color: #8f857d; }
.footer__info dd { margin: 0; }
.footer__links a { color: #cfc6be; }
.footer__copy { margin: 24px 0 0; color: #8f857d; }

.fixed-cta { display: none; }

/* =========================================
   スマホ対応
   ========================================= */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 10px;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--black); transition: transform .3s, opacity .3s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 480px; }
  .nav ul { flex-direction: column; gap: 0; padding: 12px 20px 24px; }
  .nav li { width: 100%; }
  .nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav__cta { margin-top: 12px; text-align: center; border-bottom: none !important; }

  .cards, .services { grid-template-columns: 1fr; }
  .cards { gap: 36px; }
  .contact__grid { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .profile__img { width: 160px; margin-inline: auto; }
}

@media (max-width: 600px) {
  body { font-size: 15px; padding-bottom: 68px; }
  .sp { display: inline; }
  .section { padding-block: 72px; }
  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 64px; }
  .hero__logo { width: 150px; height: 150px; }
  .logo__img { width: 40px; height: 40px; }
  .hero__points { gap: 10px; }
  .mascot-talk,
  .mascot-talk--reverse { flex-direction: column-reverse; gap: 20px; text-align: center; }
  .mascot-talk__img { width: 130px; }
  .mascot-talk__bubble { padding: 18px 20px; font-size: 1rem; }
  .mascot-talk__bubble::before,
  .mascot-talk__bubble::after,
  .mascot-talk--reverse .mascot-talk__bubble::before,
  .mascot-talk--reverse .mascot-talk__bubble::after {
    top: auto; left: 50%; right: auto;
    transform: translateX(-50%);
    border-color: transparent;
  }
  .mascot-talk__bubble::before,
  .mascot-talk--reverse .mascot-talk__bubble::before { bottom: -26px; border-top-color: var(--black); }
  .mascot-talk__bubble::after,
  .mascot-talk--reverse .mascot-talk__bubble::after { bottom: -21px; border-top-color: var(--white); }
  .hero__points li { width: 96px; height: 96px; font-size: .8rem; }
  .btn { width: 100%; }
  .worries__list { padding: 20px; }
  .service { padding: 32px 22px; }
  .price-table th, .price-table td { padding: 14px 16px; }
  .price-table th { width: 30%; }
  .example { padding: 24px 18px; }
  .example__list div { flex-direction: column; gap: 0; }
  .example__list dd { text-align: right; }
  .flow__item { padding: 22px 20px; }
  .faq__item summary { padding: 16px 44px 16px 48px; }
  .faq__item p { padding: 0 18px 18px 48px; }

  .fixed-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed; inset: auto 0 0 0;
    z-index: 90;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--black);
  }
  .fixed-cta__btn {
    display: grid; place-items: center;
    height: 60px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
  }
  .fixed-cta__btn--tel { background: var(--black); }
  .fixed-cta__btn--line { background: var(--line); }
}

/* ---------- 元警察官の一文（ヒーロー） ---------- */
.hero__career {
  display: inline-block;
  margin: 0 0 20px;
  padding: 10px 24px;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.7;
}
.cards { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px)  { .cards { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .pc { display: none; }
  .hero__career { padding: 10px 16px; font-size: .92rem; }
}

/* ---------- 代表紹介：探偵になったきっかけ ---------- */
.profile__story p { margin-bottom: 1em; }
.profile__creed {
  margin: 1.4em 0 !important;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--black);
}

/* ---------- LINE QRコード（スマホでは非表示：自分の画面は読み取れないため） ---------- */
.contact__qr { width: 140px; height: 140px; margin: 8px 0; }
@media (max-width: 860px) { .contact__qr { display: none; } }

/* ---------- フッター：探偵業者の標識 ---------- */
.footer__body { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; margin-bottom: 20px; }
.footer__body .footer__info { margin: 0; }
.footer__sign { flex-shrink: 0; width: 180px; text-align: center; text-decoration: none; color: #8f857d; font-size: .78rem; }
.footer__sign img { display: block; width: 100%; height: auto; margin-bottom: 6px; border-radius: 4px; transition: opacity .2s; }
.footer__sign:hover img { opacity: .85; }
@media (max-width: 600px) {
  .footer__body { flex-direction: column; }
  .footer__sign { width: 200px; }
}

/* ---------- SNS（Instagram・note） ---------- */
.sns { max-width: 900px; margin: 56px auto 0; }
.sns__title { text-align: center; font-size: 1.25rem; margin-bottom: 24px; }
.sns__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sns__card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--black);
  transition: transform .2s, box-shadow .2s;
}
.sns__card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.sns__card--insta { border-top: 6px solid #d6457a; }
.sns__card--note  { border-top: 6px solid var(--black); }
.sns__label { font-size: .9rem; font-weight: 700; color: var(--text-sub); }
.sns__name { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin: 4px 0 12px; }
.sns__qr { width: 180px; height: auto; margin-bottom: 16px; }
.sns__text { font-size: .95rem; color: var(--text); margin-bottom: 20px; }
.sns__btn {
  margin-top: auto;
  padding: 10px 28px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: .92rem;
}
.sns__card--insta .sns__btn { background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af); }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
@media (max-width: 860px) {
  .sns__grid { grid-template-columns: 1fr; }
  .sns__qr { display: none; }
}

/* ---------- 調査内容：メイン＋その他の調査 ---------- */
.service--main { max-width: 860px; margin: 48px auto 0; }
.services--sub { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.service--sub { padding: 30px 26px; border-top-width: 4px; border-top-color: var(--accent); }
.service--sub .service__title { font-size: 1.2rem; }
.service--sub .service__lead { font-size: .92rem; margin-bottom: 10px; }
.service--sub p:last-child { margin: 0; font-size: .95rem; }
.services__note { max-width: 860px; margin: 32px auto 0; font-size: .85rem; color: var(--text-sub); }
@media (max-width: 1000px) { .services--sub { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px)  { .services--sub { grid-template-columns: 1fr; } }
