/* ==========================================================================
   article-template.css
   新規投稿（mode: "article"）および動的記事ページ用スタイル
   既存 guts-work.com のカラー・タイポグラフィ・余白バランスと統一
   ========================================================================== */

.gw-article-hero {
  background: linear-gradient(135deg, #f4f7fb 0%, #eaf1f8 100%);
  padding: 48px 20px 36px;
  border-bottom: 1px solid #e2e8f0;
}

.gw-article-hero__inner {
  max-width: 960px;
  margin: 0 auto;
}

.gw-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: #475569;
}

.gw-article-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: #1e40af;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}

.gw-article-date {
  font-family: "Goldman", "Noto Sans JP", sans-serif;
  color: #334155;
  letter-spacing: 0.04em;
}

.gw-article-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  line-height: 1.45;
  font-weight: 700;
  color: #0f172a;
}

.gw-article-lead {
  margin: 16px 0 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
}

.gw-article-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.gw-article-thumb {
  margin: 0 0 36px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.gw-article-thumb img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.gw-article-body {
  font-size: 1.03rem;
  line-height: 1.9;
  color: #1e293b;
  word-break: break-word;
}

.gw-article-body h2 {
  margin: 44px 0 18px;
  padding: 12px 18px;
  border-left: 5px solid #1e40af;
  background: #f8fafc;
  font-size: 1.4rem;
  line-height: 1.45;
  font-weight: 700;
  color: #0f172a;
}

.gw-article-body h3 {
  margin: 30px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #cbd5e1;
  font-size: 1.18rem;
  line-height: 1.45;
  font-weight: 700;
  color: #1e293b;
}

.gw-article-body p {
  margin: 0 0 18px;
}

.gw-article-body ul,
.gw-article-body ol {
  margin: 0 0 22px;
  padding-left: 1.5em;
}

.gw-article-body li {
  margin-bottom: 8px;
}

.gw-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 18px 0;
}

.gw-article-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid #64748b;
  background: #f1f5f9;
  color: #334155;
  border-radius: 0 8px 8px 0;
}

.gw-article-body a {
  color: #1d4ed8;
  text-decoration: underline;
}

.gw-article-points {
  margin: 36px 0;
  display: grid;
  gap: 18px;
}

.gw-point-card {
  padding: 22px 24px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
}

.gw-point-label {
  display: inline-block;
  font-family: "Goldman", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e40af;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.gw-point-title {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.gw-point-text {
  margin: 0;
  line-height: 1.75;
  color: #334155;
}

.gw-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.gw-article-tag {
  padding: 4px 12px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.85rem;
}

.gw-article-cta {
  margin-top: 44px;
  padding: 30px 24px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  text-align: center;
}

.gw-article-cta__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.gw-article-cta__desc {
  margin: 0 0 20px;
  color: #334155;
  line-height: 1.7;
}

.gw-article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.gw-btn-primary,
.gw-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gw-btn-primary {
  background: #1e40af;
  color: #ffffff;
}

.gw-btn-secondary {
  background: #ffffff;
  color: #1e40af;
  border: 2px solid #1e40af;
}

.gw-btn-primary:hover,
.gw-btn-secondary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.gw-related-wrap {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid #e2e8f0;
}

.gw-related-heading {
  margin: 0 0 24px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.gw-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gw-related-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: #ffffff;
  color: #0f172a;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gw-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.gw-related-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f1f5f9;
}

.gw-related-card__body {
  padding: 14px 16px;
}

.gw-related-card__date {
  display: block;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 6px;
}

.gw-related-card__title {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.5;
  font-weight: 600;
}

/* ページネーション用（動的生成時） */
.gw-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 36px auto 12px;
  padding: 0;
  list-style: none;
}

.gw-pager a,
.gw-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-weight: 500;
  text-decoration: none;
}

.gw-pager .is-current {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
}

.gw-pager a:hover {
  background: #f1f5f9;
}


/* ==========================================================================
   Owlet LP互換ブロック（チェックボックス_01 / ポイント_01 / 枠ありテキスト_02 / 画像＋テキスト）
   ========================================================================== */

.gw-article-en-sub {
  font-family: "Goldman", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1e40af;
  margin-bottom: 6px;
}

.gw-lp-sec-head {
  margin-bottom: 20px;
}

.gw-lp-sec-num {
  display: inline-block;
  font-family: "Goldman", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1e40af;
  background: #dbeafe;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.gw-lp-sec-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
}

.gw-lp-sec-sub {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #b45309;
}

.gw-lp-checkbox-box {
  margin: 0 0 36px;
  padding: 26px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff 0%, #f1f5f9 100%);
  border: 2px solid #bfdbfe;
}

.gw-lp-check-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.gw-lp-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
}

.gw-lp-check-icon {
  color: #16a34a;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.gw-lp-points-sec {
  margin: 40px 0;
}

.gw-point-img {
  display: block;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 14px;
}

.gw-lp-framed-box {
  margin: 36px 0;
  padding: 26px 24px;
  border: 2px solid #1e40af;
  border-radius: 12px;
  background: #ffffff;
}

.gw-lp-framed-box__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e40af;
}

.gw-lp-framed-box__body {
  color: #1e293b;
  line-height: 1.85;
}

.gw-lp-sub-sections {
  margin: 40px 0;
  display: grid;
  gap: 28px;
}

.gw-lp-media-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}

.gw-lp-media-row.is-reverse {
  grid-template-columns: 1.2fr 1fr;
}

.gw-lp-media-row.is-reverse .gw-lp-media-row__img {
  order: 2;
}

.gw-lp-media-row__img img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.gw-lp-media-row__title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.gw-lp-media-row__text {
  margin: 0;
  color: #334155;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .gw-lp-media-row,
  .gw-lp-media-row.is-reverse {
    grid-template-columns: 1fr;
  }
  .gw-lp-media-row.is-reverse .gw-lp-media-row__img {
    order: 0;
  }
}

/* ==========================================
   動的セクション（比較表 / リード見出し / 関連用語・求人・サイト内検索 / IG詳細モーダル）
   ========================================== */
.gw-article-lead-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--o-r-colors-accent, #26e281);
}

.gw-comparison-sec {
  max-width: min(1170px, 94vw);
  margin: 48px auto;
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.gw-comparison-sec__head {
  text-align: center;
  margin-bottom: 20px;
}

.gw-comparison-sec__en {
  display: inline-block;
  font-family: "Goldman", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--o-r-colors-accent, #26e281);
  font-weight: 700;
}

.gw-comparison-sec__title {
  margin: 6px 0 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

.gw-comparison-table-wrap {
  overflow-x: auto;
}

.gw-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.gw-comparison-table th,
.gw-comparison-table td {
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
  line-height: 1.65;
}

.gw-comparison-table thead th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  text-align: center;
}

.gw-comparison-table th.is-strong,
.gw-comparison-table td.is-strong {
  background: rgba(38, 226, 129, 0.09);
  border-color: rgba(38, 226, 129, 0.45);
  font-weight: 600;
}

.gw-comparison-table thead th.is-strong {
  background: var(--o-r-colors-accent, #26e281);
  color: #06301b;
}

.gw-comparison-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #475569;
}

.gw-directory-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0 36px;
}

.gw-directory-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.gw-directory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.gw-search-bar {
  display: flex;
  gap: 10px;
  margin: 18px 0 24px;
}

.gw-search-bar input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
}

.gw-search-bar button {
  padding: 12px 22px;
  border: none;
  border-radius: 8px;
  background: var(--o-r-colors-button, #26e281);
  color: #06301b;
  font-weight: 700;
  cursor: pointer;
}

.gw-ig-filter-bar {
  margin: 12px 0 18px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.gw-ig-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
}

.gw-ig-modal-backdrop.is-hidden {
  display: none;
}

.gw-ig-modal {
  background: #ffffff;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.gw-ig-modal img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

