/* 縦スクロールガイドページ */
.guide-container {
  min-height: 100vh;
  background: var(--bg-color);
}

/* ヘッダー */
.guide-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background: var(--bg-color);
  box-shadow: 0 3px 8px var(--shadow-dark);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guide-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.guide-close {
  width: 44px;
  height: 44px;
  background: var(--bg-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(128, 128, 128, 0.5);
  box-shadow:
    5px 5px 8px var(--shadow-dark),
    -5px -5px 8px var(--shadow-light);
  transition: all 0.3s ease;
}

.guide-close:hover {
  box-shadow:
    3px 3px 6px var(--shadow-dark),
    -3px -3px 6px var(--shadow-light);
}

/* メインコンテンツ */
.guide-content {
  padding-top: 80px;
  padding-bottom: 4rem;
  max-width: 800px;
  margin: 0 auto;
}

/* セクション */
.guide-section {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.guide-section:last-of-type {
  border-bottom: none;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.section-intro {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.section-intro a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* 目次セクション */
.toc-section {
  text-align: center;
  padding: 3rem 1.5rem;
}

.toc-section .section-title {
  display: block;
  border-bottom: none;
  margin-bottom: 0.5rem;
}

.toc-description {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 2rem;
}

.toc-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* 目次カード */
.toc-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: var(--bg-color);
  border-radius: 20px;
  text-decoration: none;
  box-shadow:
    6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.toc-card:hover {
  transform: translateY(-2px);
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}

.toc-card:active {
  transform: translateY(0);
  box-shadow:
    inset 3px 3px 6px var(--shadow-dark),
    inset -3px -3px 6px var(--shadow-light);
}

.toc-card-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--primary-color), #ffb3b3);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(255, 153, 153, 0.3);
}

.toc-card-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.toc-card-content {
  flex: 1;
  text-align: left;
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  gap: 0.1rem 0.5rem;
  align-items: baseline;
}

.toc-card-number {
  grid-row: 1;
  grid-column: 1;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.1em;
}

.toc-card-title {
  grid-row: 1;
  grid-column: 2;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.toc-card-desc {
  grid-row: 2;
  grid-column: 2;
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.7;
}

.toc-card-arrow {
  width: 24px;
  height: 24px;
  color: rgba(128, 128, 128, 0.4);
  transition: all 0.3s ease;
}

.toc-card:hover .toc-card-arrow {
  color: var(--primary-color);
  transform: translateX(3px);
}

.toc-card-arrow svg {
  width: 100%;
  height: 100%;
}

/* サブ目次 */
.sub-toc {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 280px;
}

.sub-toc-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--bg-color);
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  box-sizing: border-box;
  box-shadow:
    3px 3px 6px var(--shadow-dark),
    -3px -3px 6px var(--shadow-light);
  transition: all 0.3s ease;
}

.sub-toc-item:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow:
    4px 4px 8px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
}

.sub-toc-item:active {
  transform: translateY(0);
  box-shadow:
    inset 2px 2px 4px var(--shadow-dark),
    inset -2px -2px 4px var(--shadow-light);
}

/* セクション末の目次に戻るボタン */
.section-back-to-toc {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
  margin-top: 1rem;
}

.back-to-toc-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: var(--bg-color);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  box-shadow:
    4px 4px 8px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
  transition: all 0.3s ease;
}

.back-to-toc-btn:hover {
  color: var(--primary-color);
  box-shadow:
    3px 3px 6px var(--shadow-dark),
    -3px -3px 6px var(--shadow-light);
}

.back-to-toc-btn:active {
  box-shadow:
    inset 2px 2px 4px var(--shadow-dark),
    inset -2px -2px 4px var(--shadow-light);
}

.back-to-toc-btn svg {
  width: 1rem;
  height: 1rem;
}

/* 記事 */
.guide-article {
  margin-bottom: 3rem;
  padding-top: 1rem;
}

.article-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary-color);
}

.article-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 2rem 0 1rem;
}

.article-subtitle-small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid rgba(255, 153, 153, 0.5);
}

.article-text {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.article-note {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(128, 128, 128, 0.3);
}

.article-warning {
  font-size: 0.9rem;
  color: #e74c3c;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  padding: 0.8rem 1rem;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 10px;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.article-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-color);
  line-height: 1.6;
}

.article-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 0.8rem;
}

.article-text a,
.article-list a,
.article-note a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.article-text a:hover,
.article-list a:hover,
.article-note a:hover {
  opacity: 0.7;
}

/* スクリーンショット - 縦長スマホ用（大きく表示） */
.screenshot-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.screenshot-placeholder {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 19.5;
  background: var(--bg-color);
  border-radius: 36px;
  box-shadow:
    10px 10px 20px var(--shadow-dark),
    -10px -10px 20px var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.screenshot-placeholder::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 8px;
  background: rgba(128, 128, 128, 0.2);
  border-radius: 4px;
  z-index: 1;
}

.screenshot-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
}

/* インラインアイコン */
.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin: 0 0.2rem;
}

.inline-icon {
  width: 1.2em;
  height: 1.2em;
  color: var(--primary-color);
}


/* ========================================
   画像スライダー
======================================== */
.image-slider {
  position: relative;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider-container {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  border-radius: 36px;
  background: var(--bg-color);
  box-shadow:
    10px 10px 20px var(--shadow-dark),
    -10px -10px 20px var(--shadow-light);
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
}

.slider-slide {
  flex: 0 0 100%;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
}

/* スライダーナビゲーションボタン */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--bg-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  box-shadow:
    5px 5px 8px var(--shadow-dark),
    -5px -5px 8px var(--shadow-light);
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-btn:hover:not(:disabled) {
  box-shadow:
    3px 3px 6px var(--shadow-dark),
    -3px -3px 6px var(--shadow-light);
  transform: translateY(-50%) scale(1.05);
}

.slider-btn:active:not(:disabled) {
  box-shadow:
    inset 3px 3px 6px var(--shadow-dark),
    inset -3px -3px 6px var(--shadow-light);
  transform: translateY(-50%) scale(0.95);
}

.slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

/* スライダードット */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 4px;
}

.slider-dot:hover:not(.active) {
  background: rgba(128, 128, 128, 0.5);
}

/* 目次セクション */
.toc-section {
  text-align: center;
}

.toc-section .section-title {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.toc-description {
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 2rem;
}

/* 目次リスト */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: var(--bg-color);
  border-radius: 18px;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow:
    6px 6px 12px var(--shadow-dark),
    -6px -6px 12px var(--shadow-light);
  transition: all 0.3s ease;
}

.toc-item:hover {
  transform: translateY(-3px);
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light);
}

.toc-item:hover .toc-number {
  background: var(--primary-color);
  color: white;
}

.toc-item:hover .toc-text {
  color: var(--primary-color);
}

.toc-item:active {
  transform: translateY(0);
  box-shadow:
    inset 3px 3px 6px var(--shadow-dark),
    inset -3px -3px 6px var(--shadow-light);
}

.toc-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 153, 153, 0.15);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.toc-text {
  flex: 1;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

/* 目次に戻るリンク */
.back-to-toc {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(128, 128, 128, 0.1);
}

.back-to-toc a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--bg-color);
  border-radius: 25px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow:
    4px 4px 8px var(--shadow-dark),
    -4px -4px 8px var(--shadow-light);
  transition: all 0.3s ease;
}

.back-to-toc a:hover {
  color: var(--primary-color);
  box-shadow:
    3px 3px 6px var(--shadow-dark),
    -3px -3px 6px var(--shadow-light);
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .guide-header {
    padding: 1rem;
  }

  .guide-logo {
    font-size: 1rem;
  }

  .guide-content {
    padding-top: 70px;
  }

  .guide-section {
    padding: 1.5rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .article-title {
    font-size: 1.2rem;
  }

  .screenshot-placeholder {
    max-width: 280px;
    border-radius: 30px;
  }

  .screenshot-placeholder::before {
    width: 60px;
    height: 6px;
  }

  .screenshot-placeholder img {
    border-radius: 30px;
  }

  /* スライダー */
  .slider-container {
    max-width: 280px;
    border-radius: 30px;
  }

  .slider-slide img {
    border-radius: 30px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  /* 目次 */
  .toc-list {
    max-width: 100%;
  }

  .toc-item {
    padding: 1rem 1.25rem;
    border-radius: 16px;
  }

  .toc-number {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .toc-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .toc-nav {
    max-width: 100%;
  }

  .toc-card {
    padding: 1rem;
    gap: 0.8rem;
  }

  .toc-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
  }

  .toc-card-icon svg {
    width: 20px;
    height: 20px;
  }

  .toc-card-title {
    font-size: 1rem;
  }

  .toc-card-desc {
    font-size: 0.75rem;
  }

  .sub-toc {
    gap: 0.5rem;
    max-width: 100%;
  }

  .sub-toc-item {
    font-size: 0.75rem;
    padding: 0.5rem 0.5rem;
    border-radius: 10px;
  }

  .screenshot-placeholder {
    max-width: 260px;
    border-radius: 28px;
  }

  .screenshot-placeholder::before {
    width: 50px;
    height: 5px;
  }

  .screenshot-placeholder img {
    border-radius: 28px;
  }

  /* スライダー */
  .slider-container {
    max-width: 260px;
    border-radius: 28px;
  }

  .slider-slide img {
    border-radius: 28px;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }

  /* 目次 */
  .toc-list {
    gap: 0.75rem;
  }

  .toc-item {
    padding: 0.9rem 1.1rem;
    gap: 0.75rem;
    border-radius: 15px;
  }

  .toc-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .toc-text {
    font-size: 0.95rem;
  }

  .toc-description {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }
}
