/* ==========================================
   となりのITサポート - 共通スタイルシート
   https://tonari-it.jp
========================================== */

/* ========== リセット・基本設定 ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a56db;
  --primary-dark: #1341a8;
  --primary-light: #ebf0ff;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --shadow: 0 4px 24px rgba(26,86,219,0.10);
  --shadow-lg: 0 8px 40px rgba(26,86,219,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --max-w: 1100px;
  --header-h: 68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ========== タイポグラフィ ========== */
h1, h2, h3, h4 { line-height: 1.4; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: .3em .9em;
  border-radius: 99px;
  margin-bottom: .8rem;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: .6rem;
  text-align: center;
}

.section-desc {
  color: var(--text-muted);
  text-align: center;
  font-size: .97rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* ========== レイアウト ========== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.2rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--primary); color: var(--white); }

.text-center { text-align: center; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }

/* ========== ヘッダー ========== */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: 0 1px 12px rgba(0,0,0,.08);
  z-index: 1000;
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.logo-main {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -.02em;
  line-height: 1.2;
}

.logo-sub {
  font-size: .65rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: .04em;
}

.nav-list {
  display: flex;
  gap: .2rem;
  align-items: center;
}

.nav-list a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  padding: .5rem .75rem;
  border-radius: 8px;
  transition: background .2s, color .2s;
}

.nav-list a:hover { background: var(--primary-light); color: var(--primary); }

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: .55rem 1.1rem !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.nav-cta:hover { background: var(--primary-dark) !important; }

.nav-tel {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ========== フッター ========== */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-main { color: var(--white); font-size: 1.1rem; }
.footer-brand .logo-sub { color: rgba(255,255,255,.5); }
.footer-brand p { font-size: .82rem; margin-top: .8rem; line-height: 1.7; }

.footer-nav h4 { color: var(--white); font-size: .85rem; margin-bottom: .8rem; font-weight: 700; }
.footer-nav ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-nav a { font-size: .82rem; color: rgba(255,255,255,.65); }
.footer-nav a:hover { color: var(--white); }

.footer-contact p { font-size: .82rem; line-height: 1.9; }
.footer-contact strong { color: var(--white); }
.footer-contact .tel { font-size: 1.3rem; font-weight: 800; color: var(--white); letter-spacing: .02em; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.footer-bottom p { font-size: .75rem; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { font-size: .75rem; color: rgba(255,255,255,.5); }
.footer-links a:hover { color: var(--white); }

/* ========== ボタン ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .97rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
  line-height: 1.3;
}

.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 14px rgba(26,86,219,.3); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); box-shadow: 0 6px 20px rgba(26,86,219,.4); transform: translateY(-1px); }

.btn-accent { background: var(--accent); color: var(--white); box-shadow: 0 4px 14px rgba(245,158,11,.3); }
.btn-accent:hover { background: #d97706; color: var(--white); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--primary-light); color: var(--primary); }

.btn-lg { padding: 1.1rem 2.8rem; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: .5rem 1.2rem; font-size: .82rem; }

/* ========== カード ========== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  transition: box-shadow .25s, transform .25s;
}

.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* ========== フローティングCTA ========== */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  z-index: 900;
}

.floating-cta a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: all .2s;
}

.floating-cta .float-tel { background: var(--success); color: var(--white); }
.floating-cta .float-mail { background: var(--primary); color: var(--white); }
.floating-cta a:hover { transform: scale(1.05); }

/* ========== ヒーロー（共通） ========== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-hero h1 { color: var(--white); font-size: clamp(1.6rem, 4vw, 2.2rem); }
.page-hero p { color: rgba(255,255,255,.85); margin-top: .7rem; font-size: 1.0rem; }

/* ========== FAQアコーディオン ========== */
.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .97rem;
  gap: 1rem;
}

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .25s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 1rem 1.2rem;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.8;
}

.faq-item.open .faq-a { display: block; }

/* ========== テーブル ========== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .75rem 1rem; border: 1px solid var(--border); text-align: left; vertical-align: middle; }
thead th { background: var(--primary); color: var(--white); font-weight: 700; }
tbody tr:nth-child(even) { background: #f7f9ff; }
.check { color: var(--success); font-size: 1.2rem; text-align: center; }
.cross { color: #ef4444; font-size: 1.2rem; text-align: center; }

/* ========== バッジ ========== */
.badge {
  display: inline-block;
  padding: .25em .8em;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 700;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* ========== 料金カード ========== */
.plan-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  background: var(--white);
  position: relative;
  transition: all .25s;
}

.plan-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,86,219,.12);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  padding: .3em 1.2em;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .3rem; }
.plan-price { font-size: 2.2rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.plan-price span { font-size: .85rem; font-weight: 400; color: var(--text-muted); }
.plan-initial { font-size: .82rem; color: var(--text-muted); margin: .3rem 0 1rem; }
.plan-features { margin: 1.2rem 0; }
.plan-features li { font-size: .88rem; padding: .4rem 0; border-bottom: 1px solid var(--border); display: flex; gap: .5rem; align-items: flex-start; }
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ========== ステップ ========== */
.step-list { counter-reset: step; display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
}
.step-body h3 { margin-bottom: .4rem; }
.step-body p { color: var(--text-muted); font-size: .92rem; }

/* ========== アニメーション ========== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ========== ページネーション ========== */
.breadcrumb {
  padding: .8rem 0;
  font-size: .8rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span::before { content: ' › '; margin: 0 .3rem; }

/* ========== モバイル対応 ========== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 999;
  }

  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: .3rem; }
  .nav-list a { display: block; padding: .75rem 1rem; border-radius: 8px; }
  .nav-cta { display: block; text-align: center; margin-top: .5rem; }
  .nav-tel { justify-content: center; margin-top: .5rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .floating-cta { bottom: 1rem; right: 1rem; }
  .floating-cta a { font-size: .82rem; padding: .65rem 1rem; }
}
