/* 例文集・ガイド・FAQ — 全ツール共通 */
.examples-intro,
.guide-intro {
  margin: 0 0 16px;
  color: var(--muted, #5c5c5c);
  font-size: var(--text-base, 1rem);
  line-height: 1.8;
}

.example-category {
  margin-bottom: 28px;
}

.example-category:last-child {
  margin-bottom: 0;
}

.example-category__title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: var(--text-base, 1rem);
  font-weight: 600;
  color: var(--text, #3d4543);
  border-bottom: 2px solid rgba(6, 199, 85, 0.35);
}

.example-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .example-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.example-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  background: #fbfffc;
  border: 1px solid #d8eedf;
  border-radius: var(--radius-sm, 12px);
}

.example-card__label {
  margin: 0;
  font-size: var(--text-fine, 0.8125rem);
  font-weight: 600;
  color: #2d6b4a;
  letter-spacing: 0.02em;
}

.example-card__text {
  margin: 0;
  flex: 1;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: var(--text-base, 1rem);
  line-height: 1.75;
  color: var(--text, #3d4543);
}

.btn--example-copy {
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  font-size: var(--text-base, 1rem);
  font-weight: 600;
  background: var(--surface, #fff);
  color: #2d6b4a;
  border: 1px solid #06c755;
  border-radius: 999px;
  cursor: pointer;
}

.btn--example-copy:hover {
  background: rgba(6, 199, 85, 0.12);
}

.btn--example-copy.is-copied {
  border-color: #52a078;
  background: rgba(6, 199, 85, 0.18);
}

.examples-copy-status {
  min-height: 1.25em;
  margin: 12px 0 0;
  font-size: var(--text-fine, 0.8125rem);
  color: #2d6b4a;
  text-align: center;
}

.guide-article {
  margin-bottom: 28px;
}

.guide-article:last-child {
  margin-bottom: 0;
}

.guide-article p {
  margin: 0 0 12px;
  font-size: var(--text-base, 1rem);
  line-height: 1.85;
  color: var(--text, #3d4543);
}

.guide-article p:last-child {
  margin-bottom: 0;
}

.guide-article ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
  font-size: var(--text-base, 1rem);
  line-height: 1.8;
}

.guide-article li {
  margin-bottom: 6px;
}

.guide-article a {
  color: #2c6b4a;
  font-weight: 500;
}

.faq-list {
  margin: 0;
  padding: 0;
}

.faq-item {
  border: 1px solid var(--border, #e8e8e8);
  border-radius: var(--radius-sm, 12px);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--surface, #fff);
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item summary {
  padding: 14px 40px 14px 16px;
  font-size: var(--text-base, 1rem);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.5;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  font-weight: 400;
  color: #06c755;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__body {
  padding: 0 16px 14px;
  font-size: var(--text-base, 1rem);
  line-height: 1.85;
  color: var(--text, #3d4543);
  border-top: 1px solid var(--border, #e8e8e8);
}

.faq-item__body p {
  margin: 12px 0 0;
}

.toc-nav {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: rgba(6, 199, 85, 0.1);
  border-radius: var(--radius-sm, 12px);
  font-size: 0.88rem;
}

.toc-nav ul {
  margin: 8px 0 0;
  padding-left: 1.2em;
  line-height: 1.7;
}

.toc-nav a {
  color: #2c6b4a;
  text-decoration: none;
}

.toc-nav a:hover {
  text-decoration: underline;
}

/* 実体験系ガイド（会話例・NG・上司別） */
.dialogue-sample {
  margin: 14px 0 0;
}

.dialogue-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px 16px;
  background: linear-gradient(180deg, #dfe6eb 0%, #d4dce3 100%);
  border-radius: var(--radius-sm, 12px);
  border: 1px solid #c5ced6;
}

.dialogue-line {
  display: flex;
  flex-direction: column;
  margin: 0;
  max-width: min(88%, 320px);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.dialogue-line--self {
  align-self: flex-end;
  align-items: flex-end;
}

.dialogue-line--other {
  align-self: flex-start;
  align-items: flex-start;
}

.dialogue-line__who {
  display: block;
  margin: 0 4px 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #5a6570;
}

.dialogue-line--self .dialogue-line__who {
  text-align: right;
  color: #3d6b52;
}

.dialogue-line__text {
  display: block;
  margin: 0;
  padding: 10px 14px;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.dialogue-line--self .dialogue-line__text {
  background: #8de055;
  color: #1a1a1a;
  border-radius: 18px 18px 4px 18px;
}

.dialogue-line--other .dialogue-line__text {
  background: #ffffff;
  color: #222;
  border-radius: 18px 18px 18px 4px;
}

.phrase-compare {
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #faf8f5;
  border: 1px solid var(--border, #e8e4df);
  border-radius: var(--radius-sm, 12px);
}

.phrase-compare__label {
  display: inline-block;
  margin-right: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.phrase-compare__bad {
  margin: 0 0 8px;
  color: #8a6b6b;
}

.phrase-compare__bad .phrase-compare__label {
  color: #a85858;
}

.phrase-compare__good {
  margin: 0 0 6px;
  color: var(--text, #3d4543);
}

.phrase-compare__good .phrase-compare__label {
  color: #3d7a5c;
}

.phrase-compare__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted, #6f7a77);
  line-height: 1.65;
}

.boss-example {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: var(--line-green-soft, #eef6f2);
  border-radius: var(--radius-sm, 12px);
  border: 1px solid #d8eedf;
}

.boss-example__type {
  margin: 0 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #3d6b52;
}

.boss-example__text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: var(--text-base, 1rem);
}

.dialogue-scenario {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: #faf8f5;
  border: 1px solid var(--border, #e8e4df);
  border-radius: var(--radius-sm, 12px);
}

.dialogue-scenario__title {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #3d6b52;
}

.dialogue-scenario__context {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: var(--muted, #6f7a77);
}

.dialogue-scenario .dialogue-sample {
  margin-top: 0;
}

@media (min-width: 520px) {
  .dialogue-line {
    max-width: min(78%, 360px);
  }
}
