/* =============================================================
 * assets/css/tools-crm.css
 * CRM顧客管理 紹介ページ専用スタイル（プレフィックス: tcrm-）
 * ============================================================= */

/* ── リセット・変数 ── */
.tcrm-page *, .tcrm-page *::before, .tcrm-page *::after { box-sizing: border-box; margin: 0; padding: 0; }
.tcrm-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', sans-serif;
  color: #1f2937;
  line-height: 1.6;
  --green      : #1a7a3c;
  --green-dark : #145f2e;
  --green-bg   : #f0f9f4;
  --navy       : #1A3A5C;
  --white      : #ffffff;
  --gray-50    : #f8f9fa;
  --gray-100   : #f3f4f6;
  --gray-200   : #e5e7eb;
  --gray-400   : #9ca3af;
  --gray-600   : #4b5563;
  --gray-800   : #1f2937;
  --radius     : 12px;
  --radius-sm  : 8px;
  --shadow     : 0 1px 4px rgba(0,0,0,.08);
  --shadow-md  : 0 6px 20px rgba(0,0,0,.10);
  --shadow-lg  : 0 12px 40px rgba(0,0,0,.14);
  --section-py : 80px;
}

/* ── ナビゲーション ── */
.tcrm-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}
.tcrm-nav__inner {
  max-width: 1200px; margin: 0 auto; height: 64px;
  padding: 0 24px; display: flex; align-items: center; gap: 32px;
}
.tcrm-nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; color: var(--green);
  flex-shrink: 0; text-decoration: none; letter-spacing: -0.3px;
}
.tcrm-nav__logo:hover { color: var(--green); text-decoration: none; }
.tcrm-nav__links { display: flex; align-items: center; gap: 4px; flex: 1; }
.tcrm-nav__links a {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  transition: background .15s, color .15s; text-decoration: none;
}
.tcrm-nav__links a:hover,
.tcrm-nav__links a.active { background: var(--gray-100); color: var(--gray-800); }
.tcrm-nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.tcrm-nav__user { font-size: 14px; font-weight: 500; color: var(--gray-600); }

/* ── ボタン共通 ── */
.tcrm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .15s, box-shadow .15s, color .15s;
  text-decoration: none; border: none; white-space: nowrap;
}
.tcrm-btn--primary {
  background: var(--green); color: var(--white);
  box-shadow: 0 4px 12px rgba(26,122,60,.3);
}
.tcrm-btn--primary:hover {
  background: var(--green-dark); box-shadow: 0 6px 18px rgba(26,122,60,.4);
  color: var(--white); text-decoration: none;
}
.tcrm-btn--outline {
  background: transparent; color: var(--green);
  border: 2px solid var(--green);
}
.tcrm-btn--outline:hover { background: var(--green-bg); color: var(--green); text-decoration: none; }
.tcrm-btn--ghost { background: none; border: none; color: var(--green); font-size: 14px; font-weight: 600; padding: 6px 0; cursor: pointer; text-decoration: none; }
.tcrm-btn--ghost:hover { text-decoration: underline; color: var(--green); }
.tcrm-btn--white { background: var(--white); color: var(--green); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.tcrm-btn--white:hover { background: var(--gray-100); color: var(--green); text-decoration: none; }
.tcrm-btn--navy { background: var(--white); color: var(--navy); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.tcrm-btn--navy:hover { background: var(--gray-100); color: var(--navy); text-decoration: none; }
.tcrm-nav-btn {
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px;
  font-weight: 500; color: var(--gray-600); border: 1px solid var(--gray-200);
  background: var(--white); cursor: pointer; transition: background .15s;
  text-decoration: none; display: inline-block;
}
.tcrm-nav-btn:hover { background: var(--gray-100); color: var(--gray-800); text-decoration: none; }
.tcrm-nav-btn--primary {
  background: var(--green); color: var(--white); border-color: var(--green);
  font-weight: 700;
}
.tcrm-nav-btn--primary:hover { background: var(--green-dark); color: var(--white); }

/* ── セクション共通 ── */
.tcrm-section { padding: var(--section-py) 24px; }
.tcrm-section--gray { background: var(--gray-50); }
.tcrm-section--green { background: var(--green); color: var(--white); }
.tcrm-section--navy { background: var(--navy); color: var(--white); }
.tcrm-container { max-width: 1100px; margin: 0 auto; }
.tcrm-section-label {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--green); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.tcrm-section-title {
  font-size: 2rem; font-weight: 800; color: var(--gray-800); line-height: 1.25;
  margin-bottom: 16px;
}
.tcrm-section-sub {
  font-size: 1rem; color: var(--gray-600); line-height: 1.7;
  max-width: 600px;
}
.tcrm-section-center { text-align: center; }
.tcrm-section-center .tcrm-section-sub { margin: 0 auto; }

/* ── フェードイン ── */
.tcrm-fade { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.tcrm-fade--visible { opacity: 1; transform: none; }

/* ════════════════════════════════════════
   セクション① ヒーロー
   ════════════════════════════════════════ */
.tcrm-hero {
  padding: 72px 24px 64px;
  background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 40%, #f8f9fa 100%);
}
.tcrm-hero__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px;
}
.tcrm-hero__text h1 {
  font-size: 2.2rem; font-weight: 800; color: var(--gray-800);
  line-height: 1.3; margin-bottom: 20px;
}
.tcrm-hero__text h1 em {
  font-style: normal; color: var(--green);
}
.tcrm-hero__sub {
  font-size: 1rem; color: var(--gray-600); line-height: 1.75;
  margin-bottom: 32px;
}
.tcrm-hero__sub p + p { margin-top: 12px; }
.tcrm-hero__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.tcrm-hero__images {
  position: relative;
  padding-bottom: 28%;
  min-height: 260px;
}
.tcrm-hero__img-pc {
  position: absolute; top: 0; left: 0;
  width: 82%; border-radius: 10px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.tcrm-hero__img-sp {
  position: absolute; bottom: 0; right: 0;
  width: 36%; border-radius: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 2; object-fit: cover;
}
.tcrm-hero__img-placeholder {
  background: var(--gray-200); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 13px;
}
.tcrm-hero__img-placeholder--pc {
  position: absolute; top: 0; left: 0; width: 82%; height: 75%;
}
.tcrm-hero__img-placeholder--sp {
  position: absolute; bottom: 0; right: 0; width: 36%; height: 55%; z-index: 2;
}

/* ════════════════════════════════════════
   セクション② 課題
   ════════════════════════════════════════ */
.tcrm-issues__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 40px;
}
.tcrm-issue-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow);
}
.tcrm-issue-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.tcrm-issue-text { font-size: 15px; color: var(--gray-800); font-weight: 500; line-height: 1.5; }

/* ════════════════════════════════════════
   セクション③ 機能
   ════════════════════════════════════════ */
.tcrm-features__list { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.tcrm-feature-block {
  background: var(--white); border-radius: var(--radius);
  border-left: 4px solid var(--green); padding: 24px 28px;
  box-shadow: var(--shadow); position: relative;
}
.tcrm-feature-block__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.tcrm-feature-block__icon { font-size: 22px; }
.tcrm-feature-block__title { font-size: 1.1rem; font-weight: 800; color: var(--gray-800); }
.tcrm-feature-block__body { font-size: .9rem; color: var(--gray-600); line-height: 1.7; }
.tcrm-feature-block__badge {
  position: absolute; top: 20px; right: 20px;
  background: #1A3A5C; color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}
.tcrm-feature-block__note { font-size: 12px; color: var(--gray-400); margin-top: 8px; }

/* ════════════════════════════════════════
   セクション④ 卒業
   ════════════════════════════════════════ */
.tcrm-before-after__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 40px;
}
.tcrm-ba-card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-md);
}
.tcrm-ba-card__before {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px;
}
.tcrm-ba-card__x { font-size: 18px; flex-shrink: 0; }
.tcrm-ba-card__before-text { font-size: 15px; font-weight: 600; color: var(--gray-800); line-height: 1.4; }
.tcrm-ba-card__arrow { color: var(--green); font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.tcrm-ba-card__after { font-size: 14px; color: var(--gray-600); line-height: 1.5; }

/* ════════════════════════════════════════
   セクション⑤ 料金
   ════════════════════════════════════════ */
.tcrm-pricing__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 720px; margin: 40px auto 0;
}
.tcrm-price-card {
  background: var(--white); border-radius: var(--radius);
  border: 2px solid var(--gray-200); padding: 32px 28px;
  box-shadow: var(--shadow); text-align: center;
  display: flex; flex-direction: column; gap: 16px;
}
.tcrm-price-card--featured { border-color: var(--green); box-shadow: 0 0 0 4px rgba(26,122,60,.08), var(--shadow-md); }
.tcrm-price-card__label {
  font-size: 13px; font-weight: 700; color: var(--gray-600);
  text-transform: uppercase; letter-spacing: .06em;
}
.tcrm-price-card--featured .tcrm-price-card__label { color: var(--green); }
.tcrm-price-card__amount { font-size: 2.6rem; font-weight: 800; color: var(--gray-800); line-height: 1; }
.tcrm-price-card__amount span { font-size: 1rem; font-weight: 500; color: var(--gray-400); }
.tcrm-price-card__annual { font-size: 13px; color: var(--gray-400); margin-top: -8px; }
.tcrm-price-card__desc { font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.tcrm-price-card .tcrm-btn { width: 100%; }

/* ════════════════════════════════════════
   セクション⑥ FAQ
   ════════════════════════════════════════ */
.tcrm-faq__list { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 8px; }
.tcrm-faq-item {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); overflow: hidden;
}
.tcrm-faq-item__question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-size: 15px; font-weight: 600;
  color: var(--gray-800); user-select: none; background: none; border: none;
  width: 100%; text-align: left; transition: background .15s;
}
.tcrm-faq-item__question:hover { background: var(--gray-50); }
.tcrm-faq-item__icon {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1; transition: transform .25s, background .15s;
  color: var(--green); font-weight: 700;
}
.tcrm-faq-item--open .tcrm-faq-item__icon { transform: rotate(45deg); background: var(--green-bg); }
.tcrm-faq-item__answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: 14px; color: var(--gray-600); line-height: 1.7;
  padding: 0 22px; background: var(--gray-50);
}
.tcrm-faq-item--open .tcrm-faq-item__answer { max-height: 300px; padding: 16px 22px; }

/* ════════════════════════════════════════
   セクション⑦ CTA
   ════════════════════════════════════════ */
.tcrm-cta-main {
  padding: var(--section-py) 24px;
  background: var(--green); color: var(--white); text-align: center;
}
.tcrm-cta-main__title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.tcrm-cta-main__sub { font-size: 1rem; opacity: .85; margin-bottom: 32px; }

/* ════════════════════════════════════════
   セクション⑧ 他ツール
   ════════════════════════════════════════ */
.tcrm-tools__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 40px;
}
.tcrm-tool-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .15s, border-color .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.tcrm-tool-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(26,122,60,.3);
}
.tcrm-tool-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--green-bg); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tcrm-tool-card__name { font-size: 1.05rem; font-weight: 800; color: var(--gray-800); }
.tcrm-tool-card__desc { font-size: .875rem; color: var(--gray-600); line-height: 1.65; flex: 1; }
.tcrm-tool-card__link {
  font-size: 13px; font-weight: 700; color: var(--green);
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.tcrm-tool-card__link:hover { text-decoration: underline; color: var(--green); }

/* ════════════════════════════════════════
   セクション⑨ ツール一覧バナー
   ════════════════════════════════════════ */
.tcrm-banner {
  padding: 56px 24px; background: var(--navy); color: var(--white); text-align: center;
}
.tcrm-banner__title { font-size: 1.6rem; font-weight: 800; margin-bottom: 10px; }
.tcrm-banner__sub { font-size: 1rem; opacity: .75; margin-bottom: 28px; }

/* ── フッター ── */
.tcrm-footer {
  background: var(--gray-800); color: var(--gray-400);
  text-align: center; padding: 24px; font-size: .8rem;
}
.tcrm-footer a { color: var(--gray-400); text-decoration: none; }
.tcrm-footer a:hover { color: var(--white); }

/* ════════════════════════════════════════
   レスポンシブ（768px以下）
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  .tcrm-page { --section-py: 48px; }

  .tcrm-nav__links { display: none; }
  .tcrm-nav__inner { gap: 16px; }

  .tcrm-hero { padding: 40px 20px 36px; }
  .tcrm-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .tcrm-hero__text h1 { font-size: 1.65rem; }
  .tcrm-hero__images { padding-bottom: 52%; min-height: 180px; }

  .tcrm-section { padding: var(--section-py) 20px; }
  .tcrm-section-title { font-size: 1.5rem; }

  .tcrm-issues__grid { grid-template-columns: 1fr; }
  .tcrm-before-after__grid { grid-template-columns: 1fr; }
  .tcrm-pricing__grid { grid-template-columns: 1fr; max-width: 100%; }
  .tcrm-tools__grid { grid-template-columns: 1fr; }

  .tcrm-cta-main__title { font-size: 1.5rem; }
  .tcrm-banner__title { font-size: 1.3rem; }

  .tcrm-btn { padding: 12px 22px; font-size: 14px; }
  .tcrm-hero__actions { gap: 12px; }

  .tcrm-faq-item__question { font-size: 14px; padding: 16px 18px; }
  .tcrm-faq-item--open .tcrm-faq-item__answer { padding: 14px 18px; }
}
