/* ================================================================
   恋愛プロトコル CSS
   gw-protocol/protocol.css
   ================================================================ */


/* ================================================================
   一覧・TOPカードグリッド
   ================================================================ */

.gw-proto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 2em 0;
}

@media (max-width: 900px) {
  .gw-proto-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .gw-proto-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}


/* ---- カード ---- */
.gw-proto-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.gw-proto-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}


/* ---- サムネイル ---- */
.gw-proto-thumb-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0f0f0;
}

.gw-proto-thumb {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gw-proto-card:hover .gw-proto-thumb {
  transform: scale(1.04);
}

.gw-proto-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gw-proto-no-img-text {
  color: #bbb;
  font-size: 0.8em;
  letter-spacing: 0.05em;
}


/* ---- カード本文エリア ---- */
.gw-proto-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}


/* ---- カテゴリバッジ ---- */
.gw-proto-cat {
  display: inline-block;
  background: #fff3f0;
  color: #c0522a;
  font-size: 0.72em;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}

.gw-proto-cat:hover {
  background: #ffddd5;
}


/* ---- vol バッジ ---- */
.gw-proto-vol {
  display: inline-block;
  font-size: 0.68em;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.06em;
}


/* ---- タイトル ---- */
.gw-proto-title {
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.gw-proto-title a {
  color: #222;
  text-decoration: none;
}

.gw-proto-title a:hover {
  color: #c0522a;
}


/* ---- サブタイトル（補足説明） ---- */
.gw-proto-subtitle {
  font-size: 0.74em;
  color: #777;
  line-height: 1.55;
  margin: 0;
}


/* ---- スマホ用調整 ---- */
@media (max-width: 560px) {
  .gw-proto-body {
    padding: 8px 10px 10px;
    gap: 4px;
  }

  .gw-proto-cat {
    font-size: 0.64em;
    padding: 2px 7px;
  }

  .gw-proto-title {
    font-size: 0.78em;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .gw-proto-subtitle {
    font-size: 0.64em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


/* ---- 空状態 ---- */
.gw-proto-empty {
  color: #999;
  font-size: 0.9em;
  text-align: center;
  padding: 2em 0;
}


/* ================================================================
   詳細ページ
   ================================================================ */

.gw-proto-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 5vw 7vw;
}


/* ---- アイキャッチ ---- */
.gw-proto-eyecatch {
  margin-bottom: 2em;
}

.gw-proto-eyecatch-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}


/* ---- メタ（カテゴリ・vol） ---- */
.gw-proto-single-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.6em;
}


/* ---- タイトル ---- */
.gw-proto-single-title {
  font-size: 1.7em;
  font-weight: 700;
  line-height: 1.4;
  color: #08131a;
  margin: 0 0 0.4em 0;
  letter-spacing: 0.03em;
}

@media (max-width: 560px) {
  .gw-proto-single-title {
    font-size: 1.35em;
  }
}


/* ---- サブタイトル ---- */
.gw-proto-single-subtitle {
  font-size: 1em;
  color: #666;
  line-height: 1.7;
  margin: 0 0 0.6em 0;
  padding: 0.6em 1em;
  border-left: 3px solid #c0522a;
  background: #fff8f6;
  border-radius: 0 4px 4px 0;
}


/* ---- 投稿日 ---- */
.gw-proto-single-date {
  font-size: 0.78em;
  color: #aaa;
  margin-bottom: 2em;
}


/* ---- 本文 ---- */
.gw-proto-content {
  font-size: 17px;
  line-height: 1.95;
  color: #08131a;
  letter-spacing: 0.01em;
}

.gw-proto-content p {
  margin-top: 1.8em;
  margin-bottom: 0;
}

.gw-proto-content h2 {
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1.4;
  color: #08131a;
  margin-top: 2.8em;
  margin-bottom: 0.6em;
  padding: 0.4em 0.8em;
  border-left: 4px solid #c0522a;
  background: #fff8f6;
}

.gw-proto-content h2::after {
  display: none; /* 記事のh2::afterスタイルを無効化 */
}

.gw-proto-content h3 {
  font-size: 1.1em;
  font-weight: 700;
  color: #08131a;
  margin-top: 2em;
  margin-bottom: 0.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #e0d5d0;
}


/* ---- タグ ---- */
.gw-proto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid #eee;
}

.gw-proto-tag {
  font-size: 0.75em;
  color: #888;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 3px 10px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.gw-proto-tag:hover {
  background: #fff3f0;
  color: #c0522a;
  border-color: #f5c8b8;
}


/* ---- シリーズナビゲーション ---- */
.gw-proto-series-nav {
  margin-top: 2.5em;
  padding: 1.2em 1.5em;
  background: #f9f9f9;
  border-radius: 8px;
}

.gw-proto-series-label {
  font-size: 0.78em;
  font-weight: 700;
  color: #888;
  margin-bottom: 0.8em;
  letter-spacing: 0.05em;
}

.gw-proto-series-links {
  display: flex;
  justify-content: space-between;
  gap: 1em;
}

.gw-proto-series-prev,
.gw-proto-series-next {
  font-size: 0.88em;
  font-weight: 700;
  color: #c0522a;
  text-decoration: none;
  transition: opacity 0.2s;
}

.gw-proto-series-prev:hover,
.gw-proto-series-next:hover {
  opacity: 0.7;
}

.gw-proto-series-next {
  margin-left: auto;
}


/* ---- 一覧に戻るボタン ---- */
.gw-proto-back {
  margin-top: 2em;
  text-align: center;
}

.gw-proto-back a {
  font-size: 0.88em;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.gw-proto-back a:hover {
  color: #c0522a;
}


/* ================================================================
   💡 ざっくり言うとボックス
   ================================================================ */

.gw-proto-content .summary-box p,
.gw-proto-content .toc-box p {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0;
}

.gw-proto-content .summary-box {
  background: #fffdf0;
  border: 1.5px dashed #e2c96e;
  border-radius: 8px;
  padding: 0.5em 1.1em !important;
  margin-top: 1.2em !important;
  margin-bottom: 2.4em !important;
  font-size: 0.82em;
  line-height: 1.65;
  color: #666;
}

.gw-proto-content .summary-box__title {
  font-weight: 700;
  color: #c89608;
  display: block;
  margin-bottom: 0.4em;
}


/* ================================================================
   📋 目次（TOC）ボックス
   ================================================================ */

.gw-proto-content .toc-box {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0.8em 1.4em 0.9em 1.2em;
  margin-top: 1.8em !important;
  margin-bottom: 1.8em !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  display: block;
  width: fit-content;
  min-width: 200px;
  max-width: 480px;
}

@media (max-width: 781px) {
  .gw-proto-content .toc-box {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto;
    max-width: none;
    box-sizing: border-box;
  }
}

.gw-proto-content .toc-title {
  font-size: 0.78em;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.08em;
  margin: 0 0 0.5em 0 !important;
}

.gw-proto-content .toc-list {
  margin: 0;
  padding-left: 1.4em;
  list-style: decimal;
}

.gw-proto-content .toc-list li {
  margin: 0.25em 0;
  font-size: 0.88em;
  line-height: 1.5;
  color: #333;
}

.gw-proto-content .toc-list a {
  color: #333;
  text-decoration: none;
}

.gw-proto-content .toc-list a:hover {
  text-decoration: underline;
}
