/* ===== リセット・ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #1E293B;
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.pc-only { display: inline; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo a {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
}
.logo-main {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1E2B7B;
  letter-spacing: 0.05em;
}
.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: #64748B;
  letter-spacing: 0.04em;
}

.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s;
}
.nav a:hover { color: #1E2B7B; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #475569;
  border-radius: 2px;
  transition: 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #E2E8F0;
  padding: 8px 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 24px;
  font-size: 0.95rem;
  color: #475569;
  border-bottom: 1px solid #F1F5F9;
}
.nav-mobile a:hover { background: #F8FAFC; }

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.2s;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: #1E2B7B;
  color: #fff;
  border: 2px solid #1E2B7B;
}
.btn-primary:hover {
  background: #162063;
  border-color: #162063;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30,43,123,0.3);
}

.btn-outline {
  background: transparent;
  color: #1E2B7B;
  border: 2px solid #1E2B7B;
}
.btn-outline:hover {
  background: #ECEEFF;
  transform: translateY(-1px);
}

.btn-line {
  background: #06C755;
  color: #fff;
  border: 2px solid #06C755;
  font-size: 1rem;
}
.btn-line:hover {
  background: #05a847;
  border-color: #05a847;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6,199,85,0.3);
}

.btn-full { width: 100%; display: block; }

/* ===== セクション共通 ===== */
section { padding: 80px 0; }

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: #1E2B7B;
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title-sm {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-sub {
  text-align: center;
  color: #64748B;
  margin-top: 8px;
  margin-bottom: 48px;
  font-size: 0.95rem;
}

/* ===== ヒーロー ===== */
.hero {
  background: linear-gradient(135deg, #ECEEFF 0%, #EEF0FF 100%);
  padding: 100px 0 80px;
  border-bottom: 1px solid #E2E8F0;
}

.hero-inner { text-align: center; }

.hero-label {
  display: inline-block;
  background: #D9DCFF;
  color: #1E2B7B;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #0F172A;
}

.hero-sub {
  color: #475569;
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-contact-quick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #475569;
}
.quick-tel, .quick-mail {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #1E2B7B;
  font-weight: 500;
  transition: opacity 0.2s;
}
.quick-tel:hover, .quick-mail:hover { opacity: 0.75; }
.quick-sep { color: #CBD5E1; }

/* ===== サービス ===== */
.services { background: #fff; }

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

.service-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0F172A;
}

.service-card p {
  font-size: 0.875rem;
  color: #64748B;
  line-height: 1.7;
}

/* サービスカード：7枚目は横長 */
.service-card--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.service-card--wide .service-icon { flex-shrink: 0; }

/* ===== ツール紹介ティーザー（トップページ） ===== */
.tools-teaser { background: #F8FAFC; }

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.teaser-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.teaser-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}
.teaser-img-wrap {
  background: #EEF0F5;
  overflow: hidden;
}
.teaser-img-dark { background: #1E1E2E; }
.teaser-img-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
}
.teaser-card:hover .teaser-img-wrap img { transform: scale(1.02); }

.teaser-body { padding: 20px 20px 24px; }
.teaser-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.teaser-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F172A;
  margin-right: 2px;
}
.teaser-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 16px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

/* ===== ツール紹介 ===== */
.tools { background: #F8FAFC; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.tool-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tool-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tool-icon { font-size: 2rem; flex-shrink: 0; }
.tool-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.tool-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0F172A;
}
.tool-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  width: fit-content;
}
.tool-badge--web { background: #D9DCFF; color: #1E2B7B; }
.tool-badge--win { background: #DCFCE7; color: #166534; }

.tool-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: #F59E0B;
  background: #FEF3C7;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tool-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
}

.tool-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.tool-features li {
  font-size: 0.875rem;
  color: #374151;
  padding-left: 1.4em;
  position: relative;
}
.tool-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1E2B7B;
  font-weight: 700;
}

.tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}
.tool-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1E2B7B;
}
.btn-tool-disabled {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  background: #E2E8F0;
  color: #94A3B8;
  border: none;
  cursor: not-allowed;
}

/* ===== 対応エリア ===== */
.area { background: #F8FAFC; }

.area-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.area-item {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 28px 40px;
  text-align: center;
  min-width: 220px;
}

.area-pref {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1E2B7B;
  margin-bottom: 8px;
}

.area-item p {
  font-size: 0.875rem;
  color: #64748B;
}

.area-note {
  text-align: center;
  font-size: 0.875rem;
  color: #94A3B8;
}

/* ===== お問い合わせ ===== */
.contact { background: #fff; }

/* 連絡先カード行 */
.contact-info-row {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.contact-info-card {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.contact-info-card:not(.contact-info-card--plain):hover {
  box-shadow: 0 4px 14px rgba(30,43,123,0.12);
  transform: translateY(-2px);
}
.cic-icon { font-size: 1.5rem; }
.cic-label { font-size: 0.75rem; color: #94A3B8; font-weight: 500; }
.cic-value { font-size: 0.9rem; font-weight: 700; color: #1E2B7B; word-break: break-all; }

/* 担当者カード */
.rep-card {
  margin-top: 24px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 20px 24px;
  text-align: center;
}
.rep-title { font-size: 0.75rem; color: #94A3B8; margin-bottom: 4px; }
.rep-name { font-size: 1.2rem; font-weight: 700; color: #0F172A; letter-spacing: 0.1em; }
.rep-name-en { font-size: 0.8rem; color: #64748B; margin-top: 2px; }
.rep-role { font-size: 0.8rem; color: #64748B; margin-top: 6px; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.contact-method-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #E2E8F0;
}

/* フォーム */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #374151;
}

.required {
  background: #EF4444;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.optional {
  background: #94A3B8;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1E293B;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1E2B7B;
  box-shadow: 0 0 0 3px rgba(30,43,123,0.15);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-check { display: flex; align-items: center; gap: 8px; }
.form-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.875rem;
  cursor: pointer;
}
.form-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.form-check a { color: #1E2B7B; text-decoration: underline; }

/* LINE カード */
.line-card {
  background: #F0FFF4;
  border: 1px solid #BBF7D0;
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
}

.line-card p {
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 10px;
  line-height: 1.7;
}

.line-note {
  font-size: 0.8rem !important;
  color: #64748B !important;
  margin-bottom: 20px !important;
}

/* ===== プライバシーポリシー ===== */
.privacy {
  background: #F8FAFC;
  padding: 60px 0;
}

.privacy-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.875rem;
  color: #475569;
}

.privacy-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  margin-top: 20px;
  margin-bottom: 6px;
}

.privacy-body p { margin-bottom: 8px; }

/* ===== フッター ===== */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 48px 0 32px;
}

.footer-inner { text-align: center; }

.footer-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 0.8rem;
  color: #64748B;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-contact a {
  font-size: 0.875rem;
  color: #94A3B8;
  transition: color 0.2s;
}
.footer-contact a:hover { color: #fff; }
.footer-sep { color: #334155; font-size: 0.8rem; }
.footer-area {
  font-size: 0.8rem;
  margin-bottom: 20px;
  color: #64748B;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-nav a {
  font-size: 0.875rem;
  color: #94A3B8;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }

.footer-copy {
  font-size: 0.8rem;
  color: #475569;
}

/* ===== レスポンシブ（タブレット） ===== */
@media (max-width: 768px) {
  .pc-only { display: none; }

  .nav { display: none; }
  .nav-toggle { display: flex; }

  /* タップしやすいようナビリンクを広く */
  .nav-mobile a { padding: 14px 24px; }

  .hero { padding: 70px 0 60px; }
  .hero-title { font-size: 1.6rem; }
  .hero-sub { font-size: 0.9rem; }

  section { padding: 60px 0; }
  .section-title { font-size: 1.5rem; }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .tools-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }

  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-info-row { gap: 12px; }
  .contact-info-card { min-width: calc(50% - 6px); flex: unset; }

  /* LINEカードをスマホで見やすく */
  .line-card { padding: 24px 20px; }
  .btn-line { width: 100%; display: block; }

  /* サービス7枚目（横長）は縦並びに戻す */
  .service-card--wide { flex-direction: column; }

  .footer-nav { gap: 16px; }
  .footer-contact { gap: 8px; }
  .footer-sep { display: none; }
  .footer-contact a { display: block; }
}

/* ===== レスポンシブ（スマートフォン） ===== */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero { padding: 56px 0 48px; }
  .hero-title { font-size: 1.45rem; }
  .hero-label { font-size: 0.8rem; }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 22px 18px; }

  .area-item { padding: 22px 24px; min-width: unset; width: 100%; }

  /* iOS Safariでの自動ズームを防ぐ（font-size 16px以上が必須） */
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 320px; }

  /* ボタンのタップ領域を広く */
  .btn { padding: 14px 28px; }

  .contact-method-title { font-size: 1rem; }

  section { padding: 48px 0; }
  .section-title { font-size: 1.35rem; }
}
