.guide {
  color: var(--text);
  padding-bottom: 112px; }

.guide-shell {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px; }
  .guide-shell--wide {
    max-width: 900px; }

.guide-header {
  padding-top: 48px; }

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--grey--1); }
  .guide-breadcrumb a {
    color: var(--grey--1);
    text-decoration: none; }
    .guide-breadcrumb a:hover {
      color: var(--grey--3); }
  .guide-breadcrumb .sep {
    opacity: 0.5; }
  .guide-breadcrumb [aria-current="page"] {
    max-width: 24ch;
    overflow: hidden;
    color: var(--grey--2);
    text-overflow: ellipsis;
    white-space: nowrap; }

.guide-title {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 42px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.015em; }

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--grey--2); }
  .guide-meta .dot {
    opacity: 0.5; }

.guide-hero {
  margin: 36px 0 0; }
  .guide-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px; }

.guide-content {
  margin-top: 48px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text); }
  .guide-content > * {
    margin: 0 0 22px; }
  .guide-content > *:last-child {
    margin-bottom: 0; }
  .guide-content h2 {
    margin: 52px 0 16px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.01em; }
  .guide-content h3 {
    margin: 36px 0 12px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700; }
  .guide-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px; }
  .guide-content ul,
  .guide-content ol {
    margin: 0 0 22px;
    padding-left: 24px; }
  .guide-content li {
    margin-top: 8px; }
    .guide-content li::marker {
      color: var(--grey--1); }
  .guide-content hr {
    display: none; }
  .guide-content img {
    display: block;
    width: 100%;
    height: auto;
    margin: 32px 0;
    border-radius: 14px; }
  .guide-content .toc {
    margin: 36px 0;
    padding: 26px 30px;
    background: var(--grey--main--background);
    border-radius: 18px;
    counter-reset: toc; }
    .guide-content .toc .toctitle {
      margin: 0 0 16px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--grey--2); }
    .guide-content .toc ul {
      margin: 0;
      padding: 0;
      list-style: none; }
    .guide-content .toc ul ul {
      margin-top: 4px;
      padding-left: 18px; }
    .guide-content .toc > ul > li {
      margin: 0;
      counter-increment: toc; }
    .guide-content .toc a {
      display: flex;
      align-items: baseline;
      gap: 12px;
      padding: 7px 0;
      color: var(--grey--3);
      font-size: 15px;
      line-height: 1.4;
      text-decoration: none;
      transition: color 0.15s ease; }
      .guide-content .toc a:hover {
        color: var(--primary); }
    .guide-content .toc > ul > li > a::before {
      content: counter(toc, decimal-leading-zero);
      flex-shrink: 0;
      font-size: 12px;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
      color: var(--primary); }
    .guide-content .toc ul ul a {
      color: var(--grey--2);
      font-size: 14px; }
  .guide-content .guide-table {
    margin: 32px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; }
  .guide-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px; }
    .guide-content table th,
    .guide-content table td {
      padding: 12px 14px;
      text-align: left;
      vertical-align: top;
      border-bottom: 1px solid var(--grey--border); }
    .guide-content table th {
      font-weight: 700;
      color: var(--grey--3);
      border-bottom-width: 2px; }
    .guide-content table tr:last-child td {
      border-bottom: none; }
  .guide-content blockquote {
    margin: 32px 0;
    padding: 22px 26px;
    background: var(--background--purple);
    border-radius: 16px;
    font-size: 16px; }
    .guide-content blockquote > * {
      margin: 0; }
    .guide-content blockquote > * + * {
      margin-top: 10px; }
    .guide-content blockquote a {
      font-weight: 700;
      text-decoration: none; }
      .guide-content blockquote a:hover {
        text-decoration: underline; }

.guide-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 56px; }
  .guide-share__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--grey--2); }
  .guide-share__buttons {
    display: flex;
    gap: 10px; }
  .guide-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grey--main--background);
    color: var(--grey--3);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease; }
    .guide-share__btn svg {
      width: 19px;
      height: 19px; }
    .guide-share__btn:hover {
      color: var(--white);
      transform: translateY(-2px); }
    .guide-share__btn--x:hover {
      background: #000; }
    .guide-share__btn--fb:hover {
      background: #1877f2; }
    .guide-share__btn--li:hover {
      background: #0a66c2; }

.guide-faq {
  margin-top: 72px; }

.guide-related {
  margin-top: 56px; }

.guide-section-title {
  margin: 0 0 24px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em; }

.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px; }

.guide-related-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text);
  text-decoration: none; }
  .guide-related-card__thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: var(--grey--main--background); }
    .guide-related-card__thumb img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.35s ease; }
  .guide-related-card__label {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    transition: color 0.15s ease; }
  .guide-related-card:hover .guide-related-card__label {
    color: var(--primary); }
  .guide-related-card:hover img {
    transform: scale(1.04); }

.guide-index {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 20px 112px; }
  .guide-index__header {
    margin-bottom: 52px; }
    .guide-index__header h1 {
      margin: 0 0 14px;
      font-size: clamp(30px, 4.6vw, 44px);
      line-height: 1.12;
      font-weight: 800;
      letter-spacing: -0.015em; }
    .guide-index__header p {
      max-width: 620px;
      margin: 0;
      font-size: 18px;
      line-height: 1.6;
      color: var(--grey--2); }
  .guide-index__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 44px 32px; }
  .guide-index__empty {
    color: var(--grey--2); }

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--text);
  text-decoration: none; }
  .guide-card__thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: var(--grey--main--background); }
    .guide-card__thumb img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease; }
  .guide-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px; }
  .guide-card__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.15s ease; }
  .guide-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.55;
    color: var(--grey--2);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; }
  .guide-card__meta {
    font-size: 13px;
    color: var(--grey--1); }
  .guide-card:hover .guide-card__title {
    color: var(--primary); }
  .guide-card:hover .guide-card__thumb img {
    transform: scale(1.04); }

@media (max-width: 640px) {
  .guide {
    padding-bottom: 72px; }
  .guide-shell {
    padding: 0 16px; }
  .guide-index {
    padding-right: 16px;
    padding-left: 16px; }
  .guide-header {
    padding-top: 32px; }
  .guide-content {
    font-size: 16px; }
    .guide-content h2 {
      font-size: 22px; }
  .guide-section-title {
    font-size: 22px; }
  .guide-related-grid {
    gap: 20px; } }
