/* ===========================================
   Shopify App Manual Template - Style
   PC/SP Responsive Design
   =========================================== */

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #004499;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ----- Utility ----- */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
}

/* ===========================================
   Header
   =========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #242424;
  height: 60px;
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-nav ul {
  display: flex;
  gap: 2rem;
}

.header-nav a {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.header-nav a:hover {
  opacity: 0.7;
  color: #fff;
}

/* ----- Hamburger Button ----- */
.hamburger {
  width: 30px;
  height: 24px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* ===========================================
   Drawer Menu (SP)
   =========================================== */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background-color: #fff;
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: #242424;
  color: #fff;
  font-weight: 700;
}

.drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.drawer-nav {
  padding: 1rem 0;
}

.drawer-nav li {
  border-bottom: 1px solid #eee;
}

.drawer-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: #333;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.drawer-nav a:hover {
  background-color: #f5f5f5;
}

/* ===========================================
   Main Layout
   =========================================== */
.main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 80px 1.5rem 3rem;
  display: flex;
  gap: 3rem;
}

@media (max-width: 768px) {
  .main {
    padding: 70px 1rem 2rem;
    display: block;
  }
}

/* ----- Sidebar ----- */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-nav {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #666;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #242424;
}

.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.5rem 0;
  color: #333;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  padding-left: 0.75rem;
  transition: all 0.3s ease;
}

.sidebar-nav a:hover {
  color: #0066cc;
  border-left-color: #0066cc;
}

/* ----- Content ----- */
.content {
  flex: 1;
  min-width: 0;
}

/* ===========================================
   Breadcrumbs
   =========================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.breadcrumb-link {
  color: #666;
}

.breadcrumb-link:hover {
  color: #0066cc;
}

.breadcrumb-separator {
  color: #ccc;
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: #333;
  font-weight: 500;
}

/* ===========================================
   First View
   =========================================== */
.fv {
  text-align: center;
  margin-bottom: 2rem;
}

.fv-image {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fv-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #242424;
}

.fv-catchcopy {
  font-size: 1.1rem;
  color: #666;
}

@media (max-width: 768px) {
  .fv-title {
    font-size: 1.5rem;
  }
  .fv-catchcopy {
    font-size: 1rem;
  }
}

/* ===========================================
   CTA Section
   =========================================== */
.cta-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
  border-radius: 12px;
}

.btn-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-cta:hover {
  background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 768px) {
  .cta-section {
    padding: 1.5rem 1rem;
  }
  .btn-cta {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
}

/* ===========================================
   Introduction (Problem / Solution)
   =========================================== */
.problem-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background-color: #fff5f5;
  border-radius: 8px;
  border-left: 4px solid #e53e3e;
  color: #555;
}

.problem-item::before {
  content: '\2716';
  color: #e53e3e;
  font-weight: 700;
  flex-shrink: 0;
}

.solution-box {
  background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  border-left: 4px solid #38a169;
}

.solution-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d6a4f;
  margin-bottom: 0 !important;
}

/* ===========================================
   Section
   =========================================== */
.section {
  margin-bottom: 4rem;
  scroll-margin-top: 80px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #242424;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 3px solid #242424;
}

.section-body {
  font-size: 1rem;
  line-height: 1.9;
}

.section-body p {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section {
    margin-bottom: 3rem;
  }
  .section-title {
    font-size: 1.25rem;
  }
}

/* ===========================================
   Feature List
   =========================================== */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.feature-icon {
  color: #28a745;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-text {
  flex: 1;
}

/* ===========================================
   Pricing
   =========================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  border: 2px solid #242424;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.pricing-card-header {
  background-color: #242424;
  color: #fff;
  padding: 2rem;
  text-align: center;
}

.pricing-plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.pricing-price-yearly {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.pricing-trial {
  display: inline-block;
  background-color: #28a745;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  margin-top: 0.5rem;
}

.pricing-card-body {
  padding: 2rem;
}

.pricing-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-price {
    font-size: 1.75rem;
  }
}

/* ===========================================
   Step (Install / Settings)
   =========================================== */
.step {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #eee;
}

.step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.step-number {
  display: inline-block;
  background-color: #242424;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}

.step-image {
  margin-bottom: 1rem;
}

.step-image img {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

.step-description {
  color: #555;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .step-title {
    font-size: 1.1rem;
  }
}

/* ===========================================
   FAQ
   =========================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  padding-right: 3rem;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #eee;
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: #555;
  line-height: 1.8;
}

/* ===========================================
   Summary
   =========================================== */
.summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.summary-point {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #f0f7ff;
  border-radius: 8px;
  font-weight: 500;
}

.summary-closing {
  font-size: 1rem;
  color: #555;
  line-height: 2;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

/* ===========================================
   Reference Articles
   =========================================== */
.reference-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reference-list li {
  padding-left: 1.25rem;
  position: relative;
}

.reference-list li::before {
  content: '\25B6';
  position: absolute;
  left: 0;
  color: #0066cc;
  font-size: 0.7rem;
  top: 0.4rem;
}

.reference-list a {
  font-weight: 500;
}

/* ===========================================
   Buttons
   =========================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: #242424;
  color: #fff;
}

.btn-primary:hover {
  background-color: #444;
  color: #fff;
}

@media (max-width: 768px) {
  .btn {
    display: block;
    width: 100%;
  }
}

/* ===========================================
   Footer
   =========================================== */
.footer {
  background-color: #242424;
  color: #fff;
  padding: 2rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  text-align: center;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 1rem;
  }
}

/* ===========================================
   Related Apps
   =========================================== */
.related-apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.related-app-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: #333;
}

.related-app-card:hover {
  background-color: #eee;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-app-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
}

.related-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-app-info {
  flex: 1;
}

.related-app-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.related-app-desc {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .related-apps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-app-card {
    flex-direction: row;
    align-items: center;
  }
}
