/* ===== 記事ページ専用CSS ===== */

/* ラッパー */
.sng-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 64px;
  background: #F6F6F6;
}

/* パンくず */
.sng-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: #888;
  padding: 14px 0;
  border-bottom: 1px solid #E5E5E5;
  margin-bottom: 24px;
}
.sng-breadcrumb a {
  color: #5D9E32;
  text-decoration: none;
}
.sng-breadcrumb a:hover { text-decoration: underline; }
.sng-breadcrumb__sep { color: #CCC; }

/* 2カラムレイアウト */
.sng-layout {
  display: block;
}
@media (min-width: 860px) {
  .sng-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
  }
}

/* ===== メインコンテンツ ===== */
.sng-main { min-width: 0; }

.sng-article {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 36px 40px 40px;
  margin-bottom: 32px;
}
@media (max-width: 600px) {
  .sng-article { padding: 24px 18px 28px; }
}

/* 記事ヘッダー */
.sng-header { margin-bottom: 28px; }

.sng-cat {
  display: inline-block;
  background: #5D9E32;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 14px;
}
.sng-cat:hover { background: #3A6B1A; }

.sng-title {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 900;
  line-height: 1.55;
  color: #1A1A1A;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.sng-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: #888;
  padding: 12px 16px;
  background: #F8F8F8;
  border-radius: 6px;
}

/* アイキャッチ */
.sng-thumb {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}
.sng-thumb__img {
  width: 100%;
  height: auto;
  display: block;
}

/* 目次（本文内） */
.sng-toc {
  background: #F8FBF5;
  border: 2px solid #5D9E32;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 36px;
}
.sng-toc__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 15px;
  color: #1A4A1A;
}
.sng-toc__toggle {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #5D9E32;
  transition: transform .2s;
}
.sng-toc.is-closed .sng-toc__toggle { transform: rotate(180deg); }
.sng-toc.is-closed .sng-toc__list { display: none; }
.sng-toc__list {
  margin: 0;
  padding-left: 20px;
}
.sng-toc__item {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.sng-toc__item--sub {
  padding-left: 16px;
  font-size: 13px;
  color: #555;
}
.sng-toc__item a,
.sng-toc__item--sub a {
  color: #3A6B1A;
  text-decoration: none;
}
.sng-toc__item a:hover { text-decoration: underline; }

/* ===== 本文スタイル ===== */
.sng-content {
  font-size: 16px;
  line-height: 2.0;
  color: #333;
  letter-spacing: 0.03em;
}

.sng-content p {
  margin: 0 0 28px;
}

.sng-content h2 {
  font-size: 20px;
  font-weight: 900;
  color: #1A1A1A;
  background: #F0F8E8;
  border-left: 5px solid #5D9E32;
  padding: 14px 18px;
  margin: 52px 0 24px;
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.sng-content h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1A1A1A;
  border-left: 4px solid #5D9E32;
  padding: 4px 0 4px 14px;
  margin: 40px 0 18px;
  line-height: 1.5;
}

.sng-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed #CCC;
}

.sng-content ul,
.sng-content ol {
  margin: 0 0 28px 1.2em;
  padding: 0;
}
.sng-content li {
  margin-bottom: 10px;
  line-height: 1.9;
}

.sng-content strong {
  font-weight: 800;
  color: #1A4A1A;
  background: linear-gradient(transparent 60%, #C8EDA0 60%);
  padding: 0 2px;
}

.sng-content a {
  color: #3A6B1A;
  text-decoration: underline;
  text-decoration-color: #A0D070;
}
.sng-content a:hover { color: #5D9E32; }

.sng-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 20px auto;
  display: block;
}

/* テーブル */
.sng-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 32px;
  font-size: 15px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sng-content th {
  background: #3A6B1A;
  color: #fff;
  padding: 13px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid #2A5A10;
}
.sng-content td {
  padding: 12px 16px;
  border: 1px solid #E0E0E0;
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
  vertical-align: top;
}
.sng-content tr:nth-child(even) td { background: #F8F8F8; }

/* 引用 */
.sng-content blockquote {
  background: #F8F8F8;
  border-left: 4px solid #5D9E32;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: #555;
  line-height: 1.9;
}

/* SNSシェア */
.sng-share {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #E5E5E5;
  text-align: center;
}
.sng-share__label {
  font-size: 13px;
  color: #888;
  margin-bottom: 14px;
}
.sng-share__btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sng-share__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}
.sng-share__btn:hover { opacity: .85; }
.sng-share__btn--x    { background: #1A1A1A; color: #fff; }
.sng-share__btn--fb   { background: #1877F2; color: #fff; }
.sng-share__btn--line { background: #06C755; color: #fff; }

/* 著者ボックス */
.sng-author {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #F8FBF5;
  border: 1px solid #D4EAB8;
  border-radius: 10px;
  padding: 22px 24px;
  margin-top: 32px;
}
.sng-author__avatar {
  font-size: 48px;
  line-height: 1;
  flex-shrink: 0;
}
.sng-author__name {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 6px;
}
.sng-author__bio {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* 関連記事 */
.sng-related {
  background: #fff;
  border-radius: 10px;
  padding: 28px 32px;
}
@media (max-width: 600px) {
  .sng-related { padding: 20px 16px; }
}
.sng-related__title {
  font-size: 18px;
  font-weight: 800;
  color: #1A1A1A;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #5D9E32;
}
.sng-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .sng-related__grid { grid-template-columns: repeat(3, 1fr); }
}

.sng-rel-card {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E5E5E5;
  transition: box-shadow .15s;
  background: #fff;
}
.sng-rel-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.sng-rel-card__img-wrap { height: 140px; overflow: hidden; background: #F0F0F0; }
.sng-rel-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sng-rel-card__noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #CCC;
}
.sng-rel-card__body { padding: 12px 14px; }
.sng-rel-card__cat {
  font-size: 11px;
  font-weight: 700;
  color: #5D9E32;
  display: block;
  margin-bottom: 4px;
}
.sng-rel-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.5;
  margin: 0 0 6px;
}
.sng-rel-card__date {
  font-size: 12px;
  color: #AAA;
  margin: 0;
}

/* ===== サイドバー ===== */
.sng-sidebar {
  display: none;
}
@media (min-width: 860px) {
  .sng-sidebar {
    display: block;
    position: sticky;
    top: 80px;
  }
}

.sng-widget {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}

.sng-widget__head {
  background: #3A6B1A;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  letter-spacing: 0.05em;
}

/* サイドバー目次 */
.sng-sidebar-toc__list {
  margin: 0;
  padding: 16px 18px;
  list-style: none;
}
.sng-toc__item {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.5;
}
.sng-toc__item--sub {
  padding-left: 12px;
  font-size: 12px;
}
.sng-sidebar-toc__list a {
  color: #444;
  text-decoration: none;
  display: block;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all .15s;
}
.sng-sidebar-toc__list a:hover,
.sng-sidebar-toc__list a.is-active {
  color: #5D9E32;
  background: #F0F8E8;
  font-weight: 700;
}

/* CTA */
.sng-cta {
  padding: 20px;
  text-align: center;
}
.sng-cta__eyebrow {
  font-size: 12px;
  color: #888;
  margin: 0 0 6px;
}
.sng-cta__title {
  font-size: 18px;
  font-weight: 900;
  color: #1A1A1A;
  line-height: 1.4;
  margin: 0 0 10px;
}
.sng-cta__text {
  font-size: 13px;
  color: #555;
  line-height: 1.7;
  margin: 0 0 16px;
}
.sng-cta__btn {
  display: block;
  background: #5D9E32;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
  margin-bottom: 8px;
}
.sng-cta__btn:hover { background: #3A6B1A; }
.sng-cta__note {
  font-size: 11px;
  color: #AAA;
  margin: 0;
}

/* 人気記事 */
.sng-popular {
  list-style: none;
  margin: 0;
  padding: 12px 18px;
}
.sng-popular__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #F0F0F0;
}
.sng-popular__item:last-child { border-bottom: none; }
.sng-popular__num {
  font-size: 18px;
  font-weight: 900;
  color: #D0D0D0;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
}
.sng-popular__item:nth-child(1) .sng-popular__num { color: #F9A825; }
.sng-popular__item:nth-child(2) .sng-popular__num { color: #AAAAAA; }
.sng-popular__item:nth-child(3) .sng-popular__num { color: #C68C3C; }
.sng-popular__title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  line-height: 1.5;
}
.sng-popular__title:hover { color: #5D9E32; }

/* カテゴリ */
.sng-cats {
  list-style: none;
  margin: 0;
  padding: 12px 18px;
}
.sng-cats li {
  border-bottom: 1px solid #F0F0F0;
}
.sng-cats li:last-child { border-bottom: none; }
.sng-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: color .15s;
}
.sng-cats a:hover { color: #5D9E32; }

/* ===== リンクカード ===== */
.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, border-color .15s;
  overflow: hidden;
}
.link-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border-color: #5D9E32;
}
.link-card__icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F0F8E8;
  border-radius: 8px;
}
.link-card__icon--photo {
  width: 30%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #E5E5E5;
  padding: 4px;
}
.link-card__icon--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.link-card__body {
  flex: 1;
  min-width: 0;
}
.link-card__label {
  font-size: 11px;
  font-weight: 700;
  color: #5D9E32;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.link-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-card__url {
  font-size: 12px;
  color: #AAA;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-card__arrow {
  font-size: 18px;
  color: #CCC;
  flex-shrink: 0;
  transition: color .15s;
}
.link-card:hover .link-card__arrow { color: #5D9E32; }

/* ===== ポイントボックス（まとめ・注意） ===== */
.point-box {
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
}
.point-box--green {
  background: #F0F8E8;
  border: 2px solid #5D9E32;
}
.point-box--yellow {
  background: #FFFDE7;
  border: 2px solid #F9A825;
}
.point-box--red {
  background: #FFF3F3;
  border: 2px solid #E53935;
}
.point-box__title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.point-box--green .point-box__title { color: #2A6A10; }
.point-box--yellow .point-box__title { color: #E09000; }
.point-box--red .point-box__title { color: #C62828; }
.point-box ul {
  margin: 0;
  padding-left: 20px;
}
.point-box ul li {
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 6px;
}
.point-box p {
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}
