/* kintoneプラグインストア 共通スタイル */
:root {
  --blue: #2563eb;
  --blue-dark: #1e40af;
  --blue-pale: #eff6ff;
  --accent: #f97316;       /* アクセント（オレンジ） */
  --accent-pale: #fff7ed;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f5f5f4;      /* 交互セクション用のニュートラルなグレー（青帯と区別がつく色） */
  --ok: #059669;
  --radius: 12px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .brand-mark { color: var(--blue); }
.gnav { display: flex; gap: 24px; font-size: 0.95rem; }
.gnav a { color: var(--ink-soft); }

/* ヒーロー */
.hero {
  background: linear-gradient(180deg, var(--blue-pale) 0%, #fff 100%);
  padding: 72px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.4;
  margin-bottom: 16px;
}
.hero .lead {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
}
.hero .accent { color: var(--blue); }

/* ボタン */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-ghost { border: 2px solid var(--blue); color: var(--blue); }
.btn-large { font-size: 1.1rem; padding: 16px 40px; }

/* セクション */
section { padding: 64px 0; }
section.alt { background: var(--bg-soft); }
.section-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
/* 見出し下のバー（単色ブルー） */
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
  margin: 10px auto 16px;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

/* プラグインカード */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.plugin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s;
}
.plugin-card:hover { box-shadow: 0 4px 20px rgba(37, 99, 235, .1); }
.plugin-card .tag {
  align-self: flex-start;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: 99px;
  padding: 2px 12px;
  margin-bottom: 12px;
}

/* カテゴリ別バッジ配色（一覧・詳細ページ共通） */
.tag.tag-input     { color: #1d4ed8; background: #dbeafe; }  /* 入力効率化：青 */
.tag.tag-analytics { color: #047857; background: #d1fae5; }  /* 経営分析：緑 */
.tag.tag-ui        { color: #6d28d9; background: #ede9fe; }  /* 画面カスタマイズ：紫 */
.tag.tag-field     { color: #c2410c; background: #ffedd5; }  /* 現場入力：オレンジ */
.plugin-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.plugin-card p { font-size: .92rem; color: var(--ink-soft); flex: 1; }
.plugin-card .price {
  margin: 16px 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-dark);
}
.plugin-card .price small { font-size: .85rem; font-weight: 400; color: var(--ink-soft); }
.plugin-card .btn { text-align: center; }

/* 流れ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.step .num {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: .88rem; color: var(--ink-soft); }

/* 特徴リスト */
.feature-list { list-style: none; max-width: 720px; margin: 0 auto; }
.feature-list li {
  padding: 12px 0 12px 36px;
  position: relative;
  border-bottom: 3px dotted #6b7280;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 8px;
  color: var(--ok);
  font-weight: 700;
}

/* FAQ（アコーディオン） */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.faq details[open] {
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .1);
}
.faq summary {
  padding: 16px 20px 16px 56px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}
.faq summary::before {
  content: "Q";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-size: .8rem;
}
.faq summary:hover { background: var(--blue-pale); }
.faq details[open] summary { background: var(--blue-pale); }
.faq .a {
  padding: 14px 20px 16px 56px;
  color: var(--ink-soft);
  position: relative;
}
.faq .a::before {
  content: "A";
  position: absolute;
  left: 18px;
  top: 14px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
}

/* 詳細ページ */
.detail-hero {
  background: var(--blue-pale);
  padding: 56px 0;
}
.detail-hero .tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  background: #fff;
  border-radius: 99px;
  padding: 2px 14px;
  margin-bottom: 12px;
}
.detail-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 12px; }
.detail-hero .lead { color: var(--ink-soft); max-width: 680px; margin-bottom: 24px; }
.detail-hero .price-line { font-size: 1.4rem; font-weight: 700; margin-bottom: 24px; }
.detail-hero .price-line small { font-weight: 400; font-size: .9rem; color: var(--ink-soft); }

.pain-list { list-style: none; max-width: 720px; margin: 0 auto; }
.pain-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #fca5a5;
  border-radius: 8px;
  padding: 14px 20px 14px 48px;
  margin-bottom: 10px;
  position: relative;
}
.pain-list li::before {
  content: "×";
  position: absolute;
  left: 18px;
  color: #dc2626;
  font-weight: 700;
}

.spec-table { width: 100%; border-collapse: collapse; max-width: 760px; margin: 0 auto; }
.spec-table th, .spec-table td {
  border: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  font-size: .95rem;
}
.spec-table th { background: var(--bg-soft); width: 32%; font-weight: 700; }

/* 申込テンプレ */
.mail-template {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 640px;
  margin: 24px auto 0;
  font-size: .92rem;
  white-space: pre-wrap;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

/* CTAバンド（青の帯。お知らせより一段濃い青） */
.cta-band {
  background: #dbeafe;
  color: var(--ink);
  text-align: center;
  padding: 56px 20px;
}
.cta-band h2 { font-size: 1.5rem; margin-bottom: 12px; }
.cta-band p { color: var(--ink-soft); margin-bottom: 28px; }
.cta-band .btn { background: var(--blue); color: #fff; }

/* 申込フォーム */
.apply-form {
  max-width: 560px;
  margin: 8px auto 0;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.apply-form .form-row { margin-bottom: 18px; border: none; padding: 0; }
.apply-form label, .apply-form legend {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 6px;
}
.apply-form .req {
  font-size: .72rem;
  font-weight: 700;
  color: #dc2626;
  border: 1px solid #dc2626;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form select,
.apply-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.apply-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  outline: 2px solid var(--blue);
  border-color: var(--blue);
}
.apply-form small { display: block; color: var(--ink-soft); font-weight: 400; margin-top: 4px; font-size: .8rem; }
.apply-form .chk {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: .95rem;
  padding: 6px 0;
  margin-bottom: 0;
  cursor: pointer;
}
.apply-form .chk input { width: 18px; height: 18px; accent-color: var(--blue); }
.apply-form button.btn {
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
}
.apply-form button.btn:disabled { opacity: .6; cursor: wait; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.apply-result { margin-top: 14px; font-size: .92rem; line-height: 1.7; }
.apply-result.is-success { color: var(--ok); font-weight: 700; }
.apply-result.is-error { color: #dc2626; font-weight: 700; }

/* 法的ページ */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 1.6rem; margin: 48px 0 24px; }
.legal h2 { font-size: 1.15rem; margin: 32px 0 12px; border-left: 4px solid var(--blue); padding-left: 12px; }
.legal p, .legal li { font-size: .95rem; color: var(--ink-soft); }
.legal ol, .legal ul { padding-left: 24px; margin: 8px 0; }
.legal .updated { text-align: right; font-size: .85rem; color: var(--ink-soft); margin: 24px 0 64px; }

/* フッター */
.site-footer {
  background: #1e293b;
  padding: 40px 0;
  font-size: .88rem;
  color: #cbd5e1;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }

@media (max-width: 640px) {
  .gnav { display: none; }
  section { padding: 48px 0; }
}

/* 設定手順セクション */
.setup-steps { max-width: 720px; margin: 0 auto; padding-left: 1.4em; line-height: 1.9; }
.setup-steps li { margin-bottom: 10px; }
.setup-shot { margin: 24px auto 0; max-width: 720px; text-align: center; }
.setup-shot img { max-width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.setup-shot figcaption { font-size: .85rem; color: #6b7280; margin-top: 8px; }

/* 設定画面スライドショー（複数枚を自動切り替え） */
.setup-shot.slideshow .slideshow-inner {
  position: relative;
  height: 420px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  background: #f9fafb;
  overflow: hidden;
}
.setup-shot.slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  animation-name: setup-slideshow;
  animation-duration: calc(var(--slide-count, 2) * 3s);
  animation-iteration-count: infinite;
}
.setup-shot.slideshow .slide:nth-child(1) { animation-delay: 0s; }
.setup-shot.slideshow .slide:nth-child(2) { animation-delay: 3s; }
.setup-shot.slideshow .slide:nth-child(3) { animation-delay: 6s; }
.setup-shot.slideshow .slide:nth-child(4) { animation-delay: 9s; }
@keyframes setup-slideshow {
  0%      { opacity: 0; }
  8%      { opacity: 1; }
  42%     { opacity: 1; }
  50%     { opacity: 0; }
  100%    { opacity: 0; }
}
@media (max-width: 640px) {
  .setup-shot.slideshow .slideshow-inner { height: 320px; }
}

/* お知らせ欄（淡い青の帯＋白カード） */
.news-section {
  padding: 48px 0;
  background: var(--blue-pale);
}
.news-section .section-title { margin-bottom: 4px; }
.news-list {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(37, 99, 235, .1);
}
.news-list li {
  display: flex;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid #eef0f3;
  font-size: .95rem;
  line-height: 1.7;
}
.news-list li:last-child { border-bottom: none; }
.news-list time {
  flex-shrink: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: .88rem;
  padding-top: 2px;
}
