/* SD Cloud - New Layout */

/* ② お悩み */
.sd-problem { background: #f0f4f8; padding: 60px 20px; text-align: center; }
.sd-problem h2 { font-size: 1.8rem; margin-bottom: 40px; color: #333; }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.problem-card { background: #fff; border-radius: 12px; padding: 30px 20px; box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: transform .3s; }
.problem-card:hover { transform: translateY(-4px); }
.problem-icon { font-size: 2.2rem; color: #e74c3c; margin-bottom: 16px; }
.problem-card p { font-size: .95rem; color: #555; line-height: 1.6; font-weight: 500; }

/* ③ 解決 */
.sd-solution { padding: 60px 20px; text-align: center; max-width: 1000px; margin: 0 auto; }
.sd-solution h2 { font-size: 1.8rem; margin-bottom: 10px; color: #1B9FFF; }
.solution-subtitle { font-size: 1.1rem; color: #666; margin-bottom: 36px; }

/* VS比較 */
.vs-compare { display: flex; align-items: stretch; gap: 0; margin-bottom: 0; }
.vs-box { flex: 1; padding: 32px 28px; border-radius: 14px; text-align: left; }
.vs-old { background: #fef2f2; border: 2px solid #fecaca; }
.vs-new { background: #eff6ff; border: 2px solid #bfdbfe; }
.vs-label { font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; padding: 8px 18px; border-radius: 20px; display: inline-block; }
.vs-old .vs-label { background: #fee2e2; color: #dc2626; }
.vs-new .vs-label { background: #dbeafe; color: #1B9FFF; }
.vs-flow-vertical { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 20px; padding: 16px 0; }
.vs-step { font-size: .95rem; color: #333; font-weight: 500; padding: 8px 16px; background: rgba(255,255,255,.6); border-radius: 8px; }
.vs-step i { margin-right: 6px; }
.vs-old .vs-step i { color: #dc2626; }
.vs-new .vs-step i { color: #1B9FFF; }
.vs-step-arrow { display: flex; flex-direction: column; align-items: center; color: #999; font-size: 1rem; }
.vs-step-arrow small { font-size: .78rem; color: #888; margin-top: 2px; }
.vs-old .vs-step-arrow { color: #dc2626; }
.vs-old .vs-step-arrow small { color: #dc2626; opacity: .7; }
.vs-new .vs-step-arrow { color: #1B9FFF; }
.vs-new .vs-step-arrow small { color: #1B9FFF; opacity: .7; }
.vs-problems { list-style: none; padding: 0; }
.vs-problems li { font-size: .95rem; color: #dc2626; padding: 6px 0; }
.vs-problems li i { margin-right: 8px; }
.vs-merits { list-style: none; padding: 0; }
.vs-merits li { font-size: .95rem; color: #1B9FFF; padding: 6px 0; font-weight: 600; }
.vs-merits li i { margin-right: 8px; }
.vs-divider { display: flex; align-items: center; padding: 0 16px; }
.vs-divider span { background: #333; color: #fff; font-weight: 800; font-size: .9rem; padding: 10px 14px; border-radius: 50%; }

/* 仕組み図 */
.solution-diagram-full { background: #f8fafe; border-radius: 16px; padding: 36px 24px; margin: 32px 0; border: 1px solid #e0ecf8; }
.diagram-title { font-size: 1rem; font-weight: 600; color: #1B9FFF; margin-bottom: 24px; }
.diagram-flow-full { display: flex; align-items: center; justify-content: center; gap: 16px; }
.diagram-step { text-align: center; min-width: 120px; }
.diagram-step-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 1.6rem; }
.diagram-step-icon.step-camera { background: #e0f2fe; color: #0284c7; }
.diagram-step-icon.step-sd { background: #fef3c7; color: #d97706; }
.diagram-step-icon.step-cloud { background: #dbeafe; color: #1B9FFF; }
.diagram-step-icon.step-browser { background: #d1fae5; color: #059669; }
.diagram-step span { display: block; font-weight: 600; font-size: .9rem; color: #333; }
.diagram-step small { display: block; font-size: .78rem; color: #888; margin-top: 2px; }
.diagram-arrow-full { font-size: 1.8rem; color: #ccc; }
.diagram-note { font-size: .8rem; color: #999; margin-top: 6px; }

/* テキスト+スクショ */
.solution-content { display: flex; gap: 36px; align-items: center; text-align: left; background: #f8fafe; border-radius: 16px; padding: 36px; border: 1px solid #e0ecf8; margin-top: 0; }
.solution-text { flex: 1; }
.solution-heading { font-size: 1.15rem; color: #1B9FFF; margin-bottom: 14px; }
.solution-heading i { margin-right: 8px; color: #fbbf24; }
.solution-desc { font-size: 1.05rem; line-height: 1.8; color: #333; margin-bottom: 20px; }
.solution-check-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.check-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 10px; padding: 14px 16px; border: 1px solid #e8f0fe; transition: box-shadow .3s; }
.check-card:hover { box-shadow: 0 2px 12px rgba(27,159,255,.12); }
.check-icon { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, #1B9FFF, #0d7dd9); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.check-card strong { display: block; font-size: .95rem; color: #333; }
.check-card small { display: block; font-size: .8rem; color: #999; margin-top: 2px; }
.solution-balance { font-size: .95rem; color: #1B9FFF; font-weight: 600; margin-top: 8px; padding: 12px 16px; background: #fff; border-radius: 8px; border-left: 3px solid #1B9FFF; white-space: nowrap; }
.solution-screenshot { flex: 1; }
.screenshot-browser { border-radius: 10px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.browser-bar { background: #2d2d2d; padding: 10px 14px; display: flex; align-items: center; gap: 6px; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #febc2e; }
.browser-dot.green { background: #28c840; }
.browser-url { margin-left: 12px; font-size: .75rem; color: #aaa; background: #3d3d3d; padding: 3px 12px; border-radius: 4px; }
.screenshot-browser img { width: 100%; display: block; }
.screenshot-caption { text-align: center; font-size: .85rem; color: #888; margin-top: 12px; }
.screenshot-caption i { margin-right: 4px; }

/* 比較表 */
.sd-compare { padding: 60px 20px; text-align: center; background: #fff; }
.sd-compare h2 { font-size: 1.8rem; margin-bottom: 36px; color: #333; }
.compare-table-wrap { max-width: 820px; margin: 0 auto; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.compare-table thead th { font-weight: 600; padding: 18px 20px; background: #f8f9fa; }
.compare-table thead th:first-child { background: #fff; }
.compare-other { background: #f8f9fa; color: #666; font-size: .9rem; }
.compare-ours { background: linear-gradient(135deg, #1B9FFF, #0d7dd9); color: #fff !important; font-size: 1rem; font-weight: 600; }
.compare-ours small { display: block; font-size: .75rem; opacity: .85; margin-top: 2px; }
.cell-ours { background: #f0f7ff; font-weight: 600; }
.text-red { color: #e74c3c; font-weight: 600; }
.text-blue { color: #1B9FFF; font-weight: 600; }
.compare-table tbody tr { transition: background .2s; }
.compare-table tbody tr:hover { background: #fafafa; }
.compare-table tbody tr:hover .cell-ours { background: #e3f0ff; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:first-child { font-weight: 600; color: #555; text-align: left; padding-left: 24px; }
/* 本サービス列のハイライト */
.compare-table tbody .cell-ours { position: relative; }
.compare-table tbody .cell-ours::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #1B9FFF; }

/* ④ 3つの特長 */
.sd-feature { background: linear-gradient(135deg, #1B9FFF 0%, #0d7dd9 100%); padding: 60px 20px; text-align: center; }
.sd-feature h2 { font-size: 1.8rem; color: #fff; margin-bottom: 40px; }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.feature-card { background: #fff; border-radius: 14px; padding: 36px 28px; text-align: left; box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.feature-num { font-size: 2.4rem; font-weight: 800; color: #1B9FFF; opacity: .3; margin-bottom: 8px; }
.feature-card h3 { font-size: 1.1rem; color: #333; margin-bottom: 20px; }
.feature-card h3 i { color: #1B9FFF; margin-right: 8px; }
.feature-list { list-style: none; padding: 0; margin-bottom: 16px; }
.feature-list li { font-size: .95rem; color: #555; padding: 6px 0; }
.feature-list li i { color: #1B9FFF; margin-right: 8px; font-size: .85rem; }
.feature-summary { font-size: .9rem; color: #888; border-top: 1px solid #eee; padding-top: 12px; margin-top: 8px; }

/* ⑤ 主な機能 */
.sd-function { padding: 60px 20px; text-align: center; }
.sd-function h2 { font-size: 1.8rem; margin-bottom: 40px; color: #333; }
.function-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.function-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: transform .3s; }
.function-card:hover { transform: translateY(-4px); }
.function-card-icon { padding: 20px 0 8px; font-size: 1.8rem; color: #1B9FFF; }
.function-card h4 { font-size: 1rem; color: #333; padding: 0 16px 16px; font-weight: 600; }
.function-desc { font-size: .82rem; color: #888; line-height: 1.5; padding: 0 16px 12px; }
.function-card img { width: 100%; height: 180px; object-fit: cover; border-top: 1px solid #eee; }

/* ⑥ 活用シーン - with photos */
.sd-scene { background: #f0f4f8; padding: 60px 20px; text-align: center; }
.sd-scene h2 { font-size: 1.8rem; margin-bottom: 12px; color: #333; }
.scene-lead { font-size: 1rem; color: #666; margin-bottom: 36px; }
.scene-grid-img { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.scene-card { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 15px rgba(0,0,0,.1); transition: transform .3s; }
.scene-card:hover { transform: translateY(-4px); }
.scene-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.scene-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.7)); padding: 30px 16px 14px; color: #fff; text-align: center; }
.scene-overlay i { font-size: 1.4rem; margin-bottom: 4px; display: block; }
.scene-overlay span { font-size: .95rem; font-weight: 600; }

/* ⑦ 導入の流れ */
.sd-flow { padding: 50px 20px; text-align: center; background: #fff; }
.sd-flow h2 { font-size: 1.8rem; margin-bottom: 36px; color: #333; }
.sd-flow-steps {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 0 !important;
  max-width: 880px;
  margin: 0 auto;
}
.sd-flow-card {
  display: block !important;
  flex: 1 1 0% !important;
  min-width: 150px !important;
  text-align: center;
  padding: 20px 14px;
  background: #f8f9fa;
  border-radius: 10px;
}
.sd-flow-num {
  width: 30px;
  height: 30px;
  background: #1B9FFF;
  color: #fff;
  border-radius: 50%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 10px;
}
.sd-flow-icon { font-size: 1.5rem; color: #1B9FFF; margin-bottom: 8px; }
.sd-flow-card h4 { font-size: .9rem; color: #333; margin-bottom: 6px; font-weight: 600; }
.sd-flow-card p { font-size: .8rem; color: #888; line-height: 1.5; margin: 0; }
.sd-flow-arrow {
  display: flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 30px !important;
  align-items: center !important;
  padding: 0 4px !important;
  padding-top: 40px;
  color: #ccc;
  font-size: 1rem;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
	.sd-problem { padding: 40px 16px; }
	.sd-problem h2 { font-size: 1.4rem; margin-bottom: 24px; }
	.problem-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.problem-card { padding: 20px 14px; }
	.problem-icon { font-size: 1.8rem; margin-bottom: 10px; }
	.problem-card p { font-size: .85rem; }

	.sd-solution { padding: 40px 16px; }
	.sd-solution h2 { font-size: 1.4rem; }
	.vs-compare { flex-direction: column; gap: 16px; }
	.vs-divider { justify-content: center; padding: 8px 0; }
	.vs-divider span { font-size: .8rem; padding: 8px 12px; }
	.vs-box { padding: 24px 20px; }
	.solution-content { flex-direction: column; gap: 24px; }
	.solution-screenshot { order: -1; }
	.diagram-flow-full { flex-wrap: wrap; gap: 10px; justify-content: center; }
	.diagram-arrow-full { display: none; }
	.diagram-step { min-width: 100px; }
	.diagram-step-icon { width: 50px; height: 50px; font-size: 1.3rem; }

	.sd-compare { padding: 40px 12px; }
	.sd-compare h2 { font-size: 1.4rem; margin-bottom: 24px; }
	.compare-table { font-size: .8rem; }
	.compare-table th, .compare-table td { padding: 10px 8px; }
	.compare-table tbody td:first-child { padding-left: 10px; font-size: .78rem; }

	.sd-feature { padding: 40px 16px; }
	.sd-feature h2 { font-size: 1.4rem; }
	.feature-cards { grid-template-columns: 1fr; gap: 16px; }
	.feature-card { padding: 28px 24px; }

	.sd-function { padding: 40px 16px; }
	.sd-function h2 { font-size: 1.4rem; }
	.function-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

	.sd-scene { padding: 40px 16px; }
	.sd-scene h2 { font-size: 1.4rem; }
	.scene-grid-img { grid-template-columns: repeat(2, 1fr); gap: 12px; }

	.flow-line { font-size: .95rem; padding: 16px 20px; gap: 10px; flex-wrap: wrap; }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
	.problem-grid { grid-template-columns: 1fr; gap: 10px; }
	.problem-card { padding: 18px 16px; }

	.vs-box { padding: 20px 16px; }
	.vs-label { font-size: .9rem; padding: 6px 14px; }
	.vs-flow-vertical { padding: 12px 0; }
	.vs-step { font-size: .85rem; padding: 6px 12px; }
	.solution-diagram-full { padding: 24px 16px; }
	.diagram-step span { font-size: .8rem; }
	.diagram-step small { font-size: .7rem; }
	.solution-content { padding: 24px 16px; }
	.solution-desc { font-size: .92rem; }
	.check-card { padding: 10px 12px; gap: 10px; }
	.check-icon { width: 36px; height: 36px; font-size: .9rem; }
	.check-card strong { font-size: .85rem; }
	.check-card small { font-size: .72rem; }
	.solution-balance { font-size: .85rem; white-space: normal; }

	/* 比較表 - 手机横滚 */
	.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.compare-table { min-width: 560px; font-size: .78rem; }

	.function-grid { grid-template-columns: 1fr; }
	.function-card img { height: 150px; }

	.scene-grid-img { grid-template-columns: 1fr; }
	.scene-card img { height: 160px; }

	.flow-line { font-size: .85rem; padding: 14px 16px; gap: 6px; }
	.flow-time { font-size: .85rem; }
}
