/*! Sendy | Copyright (c) 2026 Stock Value Inc. All rights reserved. No license is granted to copy, modify or redistribute this file. See LICENSE. */
.sendy-guide {
  --guide-paper: #f2f0e3;
  --guide-ink: #242329;
  --guide-accent: #4331ac;
  --guide-line: #dcd9cf;
  position: relative;
  isolation: isolate;
  background: var(--guide-paper) url('../noise-light.png') repeat;
  background-size: 220px 220px;
  color: var(--guide-ink);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sendy-guide::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../noise-light.png') repeat;
  background-size: 220px 220px;
  filter: brightness(0);
  opacity: .5;
}

.sendy-guide-header {
  padding: 20px max(20px, calc((100vw - 1060px) / 2));
  border-bottom: 1px solid var(--guide-line);
  background: var(--guide-paper) url('../noise-light.png') repeat;
  background-size: 220px 220px;
  font-family: 'Sendy Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.sendy-guide-header a { color: var(--guide-accent); }
.sendy-guide :is(.sendy-guide-header, .sendy-guide-nav, .prose h2, .sendy-guide-note, .prose pre, .prose thead th) { position: relative; isolation: isolate; }
.sendy-guide :is(.sendy-guide-header, .sendy-guide-nav, .prose h2, .sendy-guide-note, .prose pre, .prose thead th)::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: url('../noise-light.png') repeat; background-size: 220px 220px; filter: brightness(0); opacity: .4; }
.sendy-guide main { max-width: none; margin: 0; padding: 0; }
.sendy-guide-media { padding: 64px 0 96px; }
.sendy-guide-container { max-width: 1100px; margin-inline: auto; padding-inline: 20px; }
.sendy-guide-article-header { max-width: 720px; margin-bottom: 32px; }
.sendy-guide .sendy-guide-kicker { margin: 0 0 16px; font-size: 13px; color: var(--guide-accent); }
.sendy-guide h1 { margin: 0 0 24px; font-size: clamp(40px, 5vw, 64px); line-height: 1.2; }
.sendy-guide .sendy-guide-lead { margin: 0; font-size: 15px; line-height: 1.9; color: #55505d; }
.sendy-guide-layout { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 40px; align-items: start; }
.sendy-guide-article { grid-column: 1; grid-row: 1; min-width: 0; max-width: 720px; }
.sendy-guide-sidebar { grid-column: 2; grid-row: 1; min-width: 0; align-self: stretch; }
.sendy-guide .blog-sidebar-scroll { position: sticky; top: 96px; max-height: calc(100vh - 208px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #4331ac47 transparent; }

.sendy-guide .sendy-guide-nav {
  display: block;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: #f7f5eb url('../noise-light.png') repeat;
  background-size: 220px 220px;
}

.sendy-guide-toc-title { margin: 0 0 12px; color: var(--guide-ink); font-size: 14px; font-weight: 700; }
.sendy-guide .blog-toc-list { display: grid; gap: 4px; margin: 0; padding: 0 4px 0 0; list-style: none; }
.sendy-guide .blog-toc-list li { margin: 0; padding: 0; }
.sendy-guide .toc-link { display: block; padding: 3px 0 3px 12px; border-left: 2px solid transparent; color: #55505d; font-size: 13px; line-height: 1.65; text-decoration: none; transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease; }
.sendy-guide .toc-link:hover, .sendy-guide .toc-link:focus-visible { border-left-color: var(--guide-accent); background-color: #4331ac0a; color: var(--guide-accent); }
.sendy-guide section { padding: 0; border: 0; scroll-margin-top: 90px; }

.sendy-guide .prose h2 {
  margin: 80px 0 24px;
  padding: .7rem .9rem .7rem 1rem;
  border-left: 6px solid var(--guide-accent);
  border-bottom: 1px solid var(--guide-line);
  border-radius: 0 8px 8px 0;
  background: #f7f5eb url('../noise-light.png') repeat;
  background-size: 220px 220px;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: normal;
  scroll-margin-top: 90px;
}

.sendy-guide .prose > section:first-child h2 { margin-top: 0; }
.sendy-guide .prose h3 { margin: 52px 0 14px; padding: 0 0 .4rem .75rem; border-left: 4px solid var(--guide-accent); border-bottom: 1px dashed var(--guide-line); font-family: inherit; font-size: 19.2px; font-weight: 700; line-height: 1.5; scroll-margin-top: 90px; }
.sendy-guide .prose p { margin: 0 0 20px; color: #333; font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.sendy-guide .prose :is(ul, ol) { margin: 0 0 20px; padding-left: 24px; }
.sendy-guide .prose li { margin-bottom: 8px; font-size: 15px; line-height: 1.8; }
.sendy-guide .prose a { color: var(--guide-accent); text-underline-offset: 2px; }
.sendy-guide .prose a:hover { color: #30217e; }
.sendy-guide .prose .sendy-guide-note { margin: 24px 0; padding: 16px 20px; border-left: 3px solid var(--guide-accent); border-radius: 0 8px 8px 0; background: #f7f5eb url('../noise-light.png') repeat; background-size: 220px 220px; color: #55505d; font-size: 14px; }
.sendy-guide .sendy-guide-scenarios { display: block; margin: 0; }
.sendy-guide .sendy-guide-scenarios p { margin-bottom: 20px; font-size: 15px; }
.sendy-guide .prose code { padding: .15em .4em; border-radius: 3px; background: #4331ac08; font-size: .9em; }
.sendy-guide .prose pre { margin: 24px 0; padding: 20px; border: 1px solid var(--guide-line); border-radius: 8px; background: #f7f5eb url('../noise-light.png') repeat; background-size: 220px 220px; font-size: 13px; line-height: 1.8; }

.sendy-guide .prose table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 28px 0;
  border: 1px solid var(--guide-line);
  border-radius: 10px;
  font-size: .84rem;
  line-height: 1.65;
}

.sendy-guide .prose caption { padding: 16px; color: #65616d; font-size: 13px; text-align: left; }
.sendy-guide .prose thead { display: table-header-group; }
.sendy-guide .prose tbody tr { display: table-row; padding: 0; border: 0; }
.sendy-guide .prose :is(th, td) { display: table-cell; padding: .7rem .9rem; border: 0; border-bottom: 1px solid var(--guide-line); border-right: 1px solid #dcd9cf88; text-align: left; vertical-align: top; }
.sendy-guide .prose thead th { background: var(--guide-accent) url('../noise-light.png') repeat; background-size: 220px 220px; color: #fff; font-size: inherit; font-weight: 700; white-space: nowrap; }
.sendy-guide .prose tbody th { min-width: 160px; width: 26%; font-weight: 700; }
.sendy-guide .prose td { min-width: 200px; color: #333; }
.sendy-guide .prose td:last-child { width: 36%; color: #333; }
.sendy-guide .prose tr > :last-child { border-right: 0; }
.sendy-guide .prose tbody tr:last-child > * { border-bottom: 0; }
.sendy-guide .prose tbody tr:nth-child(even) { background: #ffffff24 url('../noise-light.png') repeat; background-size: 220px 220px; }
.sendy-guide .prose tbody tr:hover { background-color: #4331ac08; }
.sendy-guide .sendy-guide-status { margin-top: 5px; color: #65616d; font-size: 11px; line-height: 1.65; font-weight: 400; }
.sendy-guide .sendy-guide-pending { color: #715a36; }
.sendy-guide footer { max-width: 1100px; margin-inline: auto; padding: 24px 20px 80px; border-top: 1px solid var(--guide-line); color: #65616d; font-size: 12px; line-height: 1.8; }

@media (max-width: 1023px) {
  .sendy-guide-layout { display: flex; flex-direction: column; gap: 40px; }
  .sendy-guide-article, .sendy-guide-sidebar { width: 100%; max-width: 720px; }
  .sendy-guide .blog-sidebar-scroll { position: static; max-height: none; padding: 0; overflow: visible; }
  .sendy-guide .blog-toc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
}

@media (max-width: 767px) {
  .sendy-guide-media { padding: 40px 0 64px; }
  .sendy-guide-header { padding: 16px 20px; font-size: 16px; }
  .sendy-guide .sendy-guide-nav { padding: 24px; }
  .sendy-guide .blog-toc-list { grid-template-columns: 1fr; gap: 8px; }
  .sendy-guide .prose h2 { font-size: 22px; }
  .sendy-guide footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .sendy-guide .toc-link { transition: none; }
}
